initial
This commit is contained in:
13
.typegen.js
Normal file
13
.typegen.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import path from 'node:path'
|
||||
import { generateApi } from 'swagger-typescript-api'
|
||||
import 'dotenv/config';
|
||||
|
||||
(async () => {
|
||||
await generateApi({
|
||||
name: 'swagger-types.ts',
|
||||
output: path.resolve(process.cwd(), 'api'),
|
||||
typePrefix: 'I',
|
||||
url: 'https://wp.koptilnya.xyz/rest-api/schema',
|
||||
extractEnums: true,
|
||||
})
|
||||
})()
|
||||
Reference in New Issue
Block a user