Comments (1)
A simpler approach would be: let OpenAPI.TOKEN
be either a string or an asynchronous function that returns a string.
from openapi-typescript-codegen.
Related Issues (20)
- Add support for cancel reason
- Path parameter and query parameter with same name results in duplicate property HOT 2
- Append route parameter to request name
- No result when optional "Content-Type" header is not present
- Support for OpenAPI 3.1 HOT 1
- TS target 2022 doesn't allow CancelablePromise as a return type in async functions
- Option to convert constant size arrays into tuples
- Share Generated BaseHttpRequest and associated models if generating client code for more than one api spec
- Tuple with multiple data types not converted HOT 1
- PascalCase for type names, or interfaces instead of types in models
- don't include the full namespace like be.company.User, but rather just User as type or interface
- Why does this schema produce a model of Record<string, any> ? HOT 2
- CancelablePromise error - Typescript (intermediate value)(intermediate value)(intermediate value) is not a function HOT 1
- Bearer should be configure.
- Add the ability to modify the syntax of the generated service method names
- command not found: openapi HOT 1
- OneOf property is failing during OAS Schema Validation HOT 1
- NodeNext moduleResolution support HOT 1
- (FormData) TypeError: source.on is not a function HOT 8
- Using `oneOf` and `properties` generates incorrect code HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openapi-typescript-codegen.