You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Typescript emits TS4023 error because it cannot find the 'shape' of the function when emitting type declarations. Exporting AsyncConstructor solves this.
For example when I write:
import {createInstance} from "react-async";
export const AsyncData = createInstance<MyData>({});
Uh oh!
There was an error while loading. Please reload this page.
Typescript emits TS4023 error because it cannot find the 'shape' of the function when emitting type declarations. Exporting AsyncConstructor solves this.
For example when I write:
Typescript wants to generate:
However this is not possible because AsyncConstructor is not exported
The text was updated successfully, but these errors were encountered: