This commit is contained in:
Nadar
2025-07-23 20:58:21 +03:00
commit 80616ccf51
30 changed files with 22512 additions and 0 deletions

13
.typegen.js Normal file
View 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,
})
})()