You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code is [MIT-licensed](https://github.com/openapi-ts/openapi-typescript/blob/main/packages/openapi-typescript/LICENSE") and free for use.
6
6
7
-
::: tip
8
-
9
-
New to OpenAPI? Speakeasy’s [Intro to OpenAPI](https://www.speakeasyapi.dev/openapi) is an accessible guide to newcomers that explains the “why” and “how” of OpenAPI.
10
-
11
-
:::
7
+
> **Tip:**
8
+
> New to OpenAPI? Speakeasy’s [Intro to OpenAPI](https://www.speakeasyapi.dev/openapi) is an accessible guide to newcomers that explains the “why” and “how” of OpenAPI.
12
9
13
10
## Features
14
11
@@ -33,34 +30,26 @@ npm i -D openapi-typescript typescript
33
30
34
31
And in your `tsconfig.json`, to load the types properly:
35
32
36
-
::: code-group
37
-
38
-
```json [tsconfig.json]
33
+
```diff [tsconfig.json]
39
34
{
40
35
"compilerOptions": {
41
-
"module": "ESNext", // or "NodeNext" // [!code ++]
42
-
"moduleResolution": "Bundler"// or "NodeNext" // [!code ++]
36
+
+ "module": "ESNext", // or "NodeNext"
37
+
+ "moduleResolution": "Bundler" // or "NodeNext"
43
38
}
44
39
}
45
40
```
46
41
47
-
:::
48
-
49
-
::: tip Highly recommended
50
-
51
-
Also adding the following can boost type safety:
52
-
53
-
::: code-group
54
-
55
-
```json [tsconfig.json]
56
-
{
57
-
"compilerOptions": {
58
-
"noUncheckedIndexedAccess": true// [!code ++]
59
-
}
60
-
}
61
-
```
62
-
63
-
:::
42
+
> **Tip:**
43
+
> **Highly recommended**
44
+
>
45
+
> Also adding the following can boost type safety:
0 commit comments