chore: add type tests #611
Annotations
10 errors and 1 warning
Types:
src/helpers/asLink.ts#L152
Argument of type '[] | [FilledContentRelationshipField<string, string, unknown> | EmptyLinkField<"Any"> | FilledLinkToWebField | FilledLinkToMediaField, ...(FilledContentRelationshipField<...> | ... 2 more ... | FilledLinkToMediaField)[]] | PrismicDocument<...>' is not assignable to parameter of type 'SetOptional<PrismicDocument<Record<string, any>, string, string>, "slugs">'.
|
Types:
src/helpers/asLink.ts#L169
Property 'link_type' does not exist on type 'LinkField'.
|
Types:
src/helpers/asLink.ts#L180
Argument of type 'FilledContentRelationshipField<string, string, unknown> | FilledLinkToMediaField' is not assignable to parameter of type 'FilledContentRelationshipField<string, string, unknown>'.
|
Types:
src/lib/resolveMigrationDocumentData.ts#L84
Property 'url' does not exist on type 'RTImageNode | FilledImageFieldImage | LinkToMediaField<"filled">'.
|
Types:
src/lib/resolveMigrationDocumentData.ts#L143
Type 'LinkField<string, string, unknown, "filled"> | undefined' is not assignable to type 'FilledContentRelationshipField<string, string, unknown> | FilledLinkToWebField | FilledLinkToMediaField | undefined'.
|
Types:
src/types/migration/Asset.ts#L76
Type 'string' does not satisfy the constraint 'never'.
|
Types:
src/types/migration/Asset.ts#L78
Type 'string' does not satisfy the constraint 'never'.
|
Types:
src/types/migration/Asset.ts#L91
Type 'string' does not satisfy the constraint 'never'.
|
Types:
test/writeClient-migrate-patch-linkToMedia.test.ts#L95
Type 'LinkToMediaField<"filled">' is not assignable to type 'FilledContentRelationshipField<string, string, unknown> | FilledLinkToMediaField | MigrationLinkToMedia | MigrationContentRelationship | { ...; }'.
|
Types
Process completed with exit code 2.
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Loading