js_facade_gen icon indicating copy to clipboard operation
js_facade_gen copied to clipboard

Unexpected TypeNode kind: OptionalType

Open agilob opened this issue 4 years ago • 0 comments

I'm getting 100s of

❯ dart_js_facade_gen http.d.ts
http.d.ts:299:51: Unexpected TypeNode kind: OptionalType
http.d.ts:299:51: Internal error. Generate null type name.
http.d.ts:299:74: Unexpected TypeNode kind: OptionalType
http.d.ts:299:74: Internal error. Generate null type name.
http.d.ts:299:74: Unexpected TypeNode kind: OptionalType
http.d.ts:299:74: Internal error. Generate null type name.
http.d.ts:299:74: Unexpected TypeNode kind: OptionalType

Line 299 is

export type ArrayBatchRequest = [ string, string, (RequestBody | null)?, (Params | null)? ];

Change to

export type ArrayBatchRequest = [ string, string, RequestBody, Params];

allows transpilation of the file.

trying to convert 0.28.3 of @types/k6

dart_js_facade_gen produces no new files

agilob avatar Jan 02 '21 13:01 agilob