get return cache type

does a generic type for return cache fonction exist ? did i miss it ? right now, i do it on my own but i feel this should be import from solid
type CachedFunctionResolved<T extends (...args: any[]) => Promise<unknown>> = Accessor<Awaited<ReturnType<T>>>;

const C = (props:{ data: CachedFunctionResolved<typeof getData> }) => ...
type CachedFunctionResolved<T extends (...args: any[]) => Promise<unknown>> = Accessor<Awaited<ReturnType<T>>>;

const C = (props:{ data: CachedFunctionResolved<typeof getData> }) => ...
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server