Skip to content

Commit ede9ceb

Browse files
committed
docs: add schema import
1 parent c7dda6c commit ede9ceb

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

packages/compose/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ npm install --save @json-types/compose
99
## Usage
1010

1111
```ts
12-
import { Compose } from "@json-types/compose";
12+
import { type Compose } from "@json-types/compose";
13+
import schema from "@json-types/compose/schema.json";
1314
```
1415

1516
## Details

packages/tsconfig/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ npm install --save @json-types/tsconfig
99
## Usage
1010

1111
```ts
12-
import { TSConfig } from "@json-types/tsconfig";
12+
import { type TSConfig } from "@json-types/tsconfig";
13+
import schema from "@json-types/tsconfig/schema.json";
1314
```
1415

1516
## Details

packages/web-manifest/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ npm install --save @json-types/web-manifest
99
## Usage
1010

1111
```ts
12-
import { WebManifest } from "@json-types/web-manifest";
12+
import { type WebManifest } from "@json-types/web-manifest";
13+
import schema from "@json-types/web-manifest/schema.json";
1314
```
1415

1516
## Details

scripts/README.tpl.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ npm install --save @json-types/$name
99
## Usage
1010

1111
```ts
12-
import { $importName } from "@json-types/$name";
12+
import { type $importName } from "@json-types/$name";
13+
import schema from "@json-types/$name/schema.json";
1314
```
1415

1516
## Details

0 commit comments

Comments
 (0)