Skip to content

fix(corel): remove useEffect in favour of useObservable #18185

fix(corel): remove useEffect in favour of useObservable

fix(corel): remove useEffect in favour of useObservable #18185

Triggered via push July 1, 2024 10:41
Status Failure
Total duration 1m 35s
Artifacts

typeCheck.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

8 errors
typeCheck
Argument of type '<T extends { _id: string; _type: string; _version?: Record<string, never> | undefined; }>(documents: T[], { bundlePerspective }?: CollateOptions) => CollatedHit<T>[]' is not assignable to parameter of type '(value: SanityDocumentLike[], index: number) => CollatedHit<SanityDocumentLike>[]'.
typeCheck
'collated' is of type 'unknown'.
typeCheck
Parameter 'entry' implicitly has an 'any' type.
typeCheck
Argument of type '<T extends { _id: string; _type: string; _version?: Record<string, never> | undefined; }>(documents: T[], { bundlePerspective }?: CollateOptions) => CollatedHit<T>[]' is not assignable to parameter of type '(value: SanityDocumentLike[], index: number) => CollatedHit<SanityDocumentLike>[]'.
typeCheck
'collated' is of type 'unknown'.
typeCheck
Parameter 'entry' implicitly has an 'any' type.
typeCheck
Property '_id' does not exist on type 'PreviewValue | Partial<SanityDocument>'.
typeCheck
Process completed with exit code 2.