Compare commits

..

No commits in common. "7d4473075f482ce617fc6dc2656ebf6f62e6e441" and "e55ee7c11e5669d2c4b017a80108c847d3026fae" have entirely different histories.

2 changed files with 11 additions and 3 deletions

8
client/src/api/Client.ts Normal file
View File

@ -0,0 +1,8 @@
import { client } from '../../../types/gen/client.gen';
import { getToken } from '../Utils';
client.setConfig({
auth: () => getToken(),
});
export default client

View File

@ -1,11 +1,11 @@
// import { defaultPlugins } from '@hey-api/openapi-ts';
import { defaultPlugins } from '@hey-api/openapi-ts';
export default {
input: 'api.yml',
output: 'gen',
plugins: [
// ...defaultPlugins,
// '@hey-api/client-fetch',
...defaultPlugins,
'@hey-api/client-fetch',
{
enums: 'javascript',
name: '@hey-api/typescript',