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
My suggestion here isn't about lack of type checking, only that you can't reference those unexported types in your own declarations. Like:
importDataLoaderfrom'dataloader';exportdefaultclassMyDataLoaderextendsDataLoader<string,MyType>{constructor(someArg: string,options: /* what type declaration to put here? */){super(someBatchLoadFn,options);}someHelperMethod(): void{}}
The type definitions are helpful, but because they're not exported, it makes them difficult to use in composed APIs.
The only real change request here is to add
export
to those type definitions.The text was updated successfully, but these errors were encountered: