Compare commits
No commits in common. "7d4473075f482ce617fc6dc2656ebf6f62e6e441" and "e55ee7c11e5669d2c4b017a80108c847d3026fae" have entirely different histories.
7d4473075f
...
e55ee7c11e
8
client/src/api/Client.ts
Normal file
8
client/src/api/Client.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import { client } from '../../../types/gen/client.gen';
|
||||
import { getToken } from '../Utils';
|
||||
|
||||
client.setConfig({
|
||||
auth: () => getToken(),
|
||||
});
|
||||
|
||||
export default client
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user