Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Unexpected TypeNode kind: OptionalType #95

Open
agilob opened this issue Jan 2, 2021 · 0 comments
Open

Unexpected TypeNode kind: OptionalType #95

agilob opened this issue Jan 2, 2021 · 0 comments

Comments

@agilob
Copy link

agilob commented Jan 2, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant