Skip to content

Commit 4bc68b2

Browse files
committed
docs: update TypeScript readme with importing from main entry point
WE2-1179 Signed-off-by: Sven Mitt <svenzik@users.noreply.github.com>
1 parent 9e27d05 commit 4bc68b2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ When using a build tool like WebPack, Babel, Rollup or the TypeScript compiler:
250250
251251
```javascript
252252
// Import the Web-eID library
253-
import * as webeid from '@web-eid/web-eid-library/web-eid';
253+
import * as webeid from '@web-eid/web-eid-library';
254254
255255
// ...or only what you need
256256
import {
@@ -262,7 +262,13 @@ import {
262262
263263
264264
// If you need TypeScript interfaces, they are also available!
265-
import ActionOptions from '@web-eid/web-eid-library/models/ActionOptions';
265+
import {
266+
ActionOptions,
267+
LibraryAuthenticateResponse,
268+
LibraryGetSigningCertificateResponse,
269+
LibrarySignResponse,
270+
LibraryStatusResponse
271+
} from '@web-eid/web-eid-library';
266272
```
267273
268274
### ES module for browsers

0 commit comments

Comments
 (0)