0.1.30 • Published 8 months ago

swagger-to-typescript2 v0.1.30

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

Generate typescript code from swagger spec.

image

Example

const res = fs.readFileSync("../spec.json").toString();
const doc = getDoc(JSON.parse(res));
if (!doc) {
  throw "Document cannot be null";
}
const tsCode = swaggerToTypescript(doc);
writeTsToFile(`src/api.generated.ts`, tsCode);
0.1.30

8 months ago

0.1.29

8 months ago

0.1.28

1 year ago

0.1.27

2 years ago

0.1.25

2 years ago

0.1.23

2 years ago

0.1.22

2 years ago

0.1.21

2 years ago

0.1.20

2 years ago

0.1.19

2 years ago

0.1.18

2 years ago

0.1.11

2 years ago

0.1.17

2 years ago

0.1.16

2 years ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago