-
-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v7] transform + nullable issue with Identifier with Node.js API #1688
Comments
Do you think this is related: microsoft/TypeScript#40263 |
Did you manage to solve this? 🙂 |
Nope, I'm not using this at the moment. |
Seems to work to wrap the Identifiers in const BLOB = ts.factory.createTypeReferenceNode(ts.factory.createIdentifier("Blob"));
const FILE = ts.factory.createTypeReferenceNode(ts.factory.createIdentifier("File"));
const NULL = ts.factory.createLiteralTypeNode(ts.factory.createNull()); Btw. I found out by using the TypeScript AST Viewer, where you can type in some TypeScript and see the factory method calls needed to generate that TypeScript: https://ts-ast-viewer.com/#code/C4TwDgpgBMEM7CgXigMQJYBsIB8B2ArppkA |
Oh I hadn’t seen that website before! That’s very handy! Bookmarking it. |
Description
I'm trying to use the docs example to transform the schema for Date & Blobs.
openapi-typescript
7.0.0-rc.0
v20.11.1
v5.5.5
macOS 14.5
Reproduction
Here's my TS file I'm using to generate my SDK:
Expected result
No Typescript errors.
Checklist
npx @redocly/cli@latest lint
)The text was updated successfully, but these errors were encountered: