Closed razzeee closed 4 years ago
As sync now returns Output, we need a way to tell the compiler which output it is. One thing we could do is just cast x = x as PathsOutput; but that needs the types combined to create Output to be exported in the .d.ts file.
sync
Output
x = x as PathsOutput;
.d.ts
Yes, we can export the Output types.
I am not a TS Ninja but there might be some better way to automatically resolve this based on what flags are on. Open to any suggestions.
As
sync
now returnsOutput
, we need a way to tell the compiler which output it is. One thing we could do is just castx = x as PathsOutput;
but that needs the types combined to createOutput
to be exported in the.d.ts
file.