Skip to content

Add warning in development when a result function is x => x. #287

Add warning in development when a result function is x => x.

Add warning in development when a result function is x => x. #287

Triggered via pull request November 30, 2023 07:08
Status Failure
Total duration 2m 38s
Artifacts 1

build-and-test-types.yml

on: pull_request
Matrix: build
Matrix: Check package config with are-the-types-wrong
Matrix: test-published-artifact
Matrix: test-types
Fit to window
Zoom out
Zoom in

Annotations

62 errors and 7 warnings
Test Published Artifact node-esm
Process completed with exit code 1.
Test Published Artifact node-standard
Process completed with exit code 1.
Test Types with TypeScript 5.0: typescript_test/argsMemoize.typetest.ts#L722
Argument of type 'unknown' is not assignable to parameter of type '{ id: number; completed: boolean; }[]'.
Test Types with TypeScript 5.0: typescript_test/argsMemoize.typetest.ts#L728
Argument of type 'unknown' is not assignable to parameter of type '{ id: number; completed: boolean; }[]'.
Test Types with TypeScript 5.0: 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 with TypeScript 5.0: 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 with TypeScript 5.0: 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'?
Test Types with TypeScript 5.2: typescript_test/argsMemoize.typetest.ts#L722
Argument of type 'unknown' is not assignable to parameter of type '{ id: number; completed: boolean; }[]'.
Test Types with TypeScript 5.2: typescript_test/argsMemoize.typetest.ts#L728
Argument of type 'unknown' is not assignable to parameter of type '{ id: number; completed: boolean; }[]'.
Test Types with TypeScript 5.2: 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 with TypeScript 5.2: 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 with TypeScript 5.2: 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'?
Test Types with TypeScript 5.1: typescript_test/argsMemoize.typetest.ts#L722
Argument of type 'unknown' is not assignable to parameter of type '{ id: number; completed: boolean; }[]'.
Test Types with TypeScript 5.1: typescript_test/argsMemoize.typetest.ts#L728
Argument of type 'unknown' is not assignable to parameter of type '{ id: number; completed: boolean; }[]'.
Test Types with TypeScript 5.1: 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 with TypeScript 5.1: 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 with TypeScript 5.1: 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'?
Test Types with TypeScript 4.9: typescript_test/argsMemoize.typetest.ts#L722
Argument of type 'unknown' is not assignable to parameter of type '{ id: number; completed: boolean; }[]'.
Test Types with TypeScript 4.9: typescript_test/argsMemoize.typetest.ts#L728
Argument of type 'unknown' is not assignable to parameter of type '{ id: number; completed: boolean; }[]'.
Test Types with TypeScript 4.9: 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 with TypeScript 4.9: 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 with TypeScript 4.9: 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'?
Test Types with TypeScript 4.7: typescript_test/argsMemoize.typetest.ts#L722
Argument of type 'unknown' is not assignable to parameter of type '{ id: number; completed: boolean; }[]'.
Test Types with TypeScript 4.7: typescript_test/argsMemoize.typetest.ts#L728
Argument of type 'unknown' is not assignable to parameter of type '{ id: number; completed: boolean; }[]'.
Test Types with TypeScript 4.7: 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 with TypeScript 4.7: 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 with TypeScript 4.7: 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:...'.
Test Types with TypeScript 4.8: typescript_test/argsMemoize.typetest.ts#L722
Argument of type 'unknown' is not assignable to parameter of type '{ id: number; completed: boolean; }[]'.
Test Types with TypeScript 4.8: typescript_test/argsMemoize.typetest.ts#L728
Argument of type 'unknown' is not assignable to parameter of type '{ id: number; completed: boolean; }[]'.
Test Types with TypeScript 4.8: 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 with TypeScript 4.8: 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 with TypeScript 4.8: 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'?
Build and Test on Node 16.x
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2, actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Test Published Artifact node-esm
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/download-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Test Published Artifact node-standard
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/download-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Test Published Artifact vite
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/download-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Test Published Artifact cra5
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/download-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Test Published Artifact next
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/download-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Test Published Artifact cra4
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/download-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/

Artifacts

Produced during runtime
Name Size
package Expired
141 KB