tornapi-typescript 0.0.6 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/dist/index.d.ts +246 -140
- package/dist/openapi.json +4983 -3696
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -15,9 +15,7 @@ These types are generated in the following way:
|
|
|
15
15
|
|
|
16
16
|
* load [openapi specification](https://www.torn.com/swagger/openapi.json)
|
|
17
17
|
* clean the specification for better types
|
|
18
|
-
* remove `type` when `allOf` is present, otherwise the specification is not valid
|
|
19
18
|
* remove `type` when `oneOf` is present, for improved types
|
|
20
|
-
* mark all fields as required, for improved types
|
|
21
19
|
* convert the specification to Typescript definitions using [typeconv](https://github.com/grantila/typeconv)
|
|
22
20
|
* clean the type definitions
|
|
23
21
|
* remove all "[key: string]: any;", because typeconv adds it everywhere for some reason
|