Add warning in development when a result function is x => x
.
#287
Annotations
10 errors
Test types:
typescript_test/argsMemoize.typetest.ts#L705
No overload matches this call.
|
Test types:
typescript_test/argsMemoize.typetest.ts#L722
Argument of type 'unknown' is not assignable to parameter of type '{ id: number; completed: boolean; }[]'.
|
Test types:
typescript_test/argsMemoize.typetest.ts#L728
Argument of type 'unknown' is not assignable to parameter of type '{ id: number; completed: boolean; }[]'.
|
Test types:
typescript_test/argsMemoize.typetest.ts#L729
Unused '@ts-expect-error' directive.
|
Test types:
typescript_test/argsMemoize.typetest.ts#L731
Unused '@ts-expect-error' directive.
|
Test types:
typescript_test/argsMemoize.typetest.ts#L733
Unused '@ts-expect-error' directive.
|
Test types:
typescript_test/argsMemoize.typetest.ts#L735
Unused '@ts-expect-error' directive.
|
Test types:
typescript_test/argsMemoize.typetest.ts#L739
Property 'cache' does not exist on type '((state: any, ...params: any[]) => unknown) & { clearCache: () => void; } & { resultFunc: (...resultFuncArgs: readonly unknown[]) => unknown; memoizedResultFunc: ((...resultFuncArgs: readonly unknown[]) => unknown) & { clearCache: () => void; }; lastResult: () => unknown; dependencies: SelectorArray; recomputations:...'.
|
Test types:
typescript_test/argsMemoize.typetest.ts#L741
Property 'fn' does not exist on type '((state: any, ...params: any[]) => unknown) & { clearCache: () => void; } & { resultFunc: (...resultFuncArgs: readonly unknown[]) => unknown; memoizedResultFunc: ((...resultFuncArgs: readonly unknown[]) => unknown) & { clearCache: () => void; }; lastResult: () => unknown; dependencies: SelectorArray; recomputations:...'.
|
Test types:
typescript_test/argsMemoize.typetest.ts#L743
Property 'isMemoized' does not exist on type '((state: any, ...params: any[]) => unknown) & { clearCache: () => void; } & { resultFunc: (...resultFuncArgs: readonly unknown[]) => unknown; memoizedResultFunc: ((...resultFuncArgs: readonly unknown[]) => unknown) & { clearCache: () => void; }; lastResult: () => unknown; dependencies: SelectorArray; recomputations:...'. Did you mean 'memoize'?
|
The logs for this run have expired and are no longer available.
Loading