Skip to content

chore: enable exactOptionalPropertyTypes #5792

chore: enable exactOptionalPropertyTypes

chore: enable exactOptionalPropertyTypes #5792

Triggered via pull request January 18, 2024 18:18
Status Failure
Total duration 6m 37s
Artifacts

lint_test_build.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
build: packages/auth/src/access/model.ts#L41
Type 'string | undefined' is not assignable to type 'string'.
build: packages/auth/src/grant/model.ts#L109
Type '{ access_token: { value: string; }; uri: string; wait: number | undefined; }' is not assignable to type '{ access_token: { value: string; }; uri: string; wait?: number; }' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
build: packages/auth/src/graphql/resolvers/grant.ts#L19
Argument of type '{ after?: InputMaybe<string>; before?: InputMaybe<string>; first?: InputMaybe<number>; last?: InputMaybe<number>; }' is not assignable to parameter of type 'Pagination' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
build: packages/auth/src/graphql/resolvers/grant.ts#L22
Argument of type 'InputMaybe<GrantFilter>' is not assignable to parameter of type 'GrantFilter | undefined'.
build: packages/auth/src/graphql/resolvers/grant.ts#L97
Type '{ id: string; client: string; access: SchemaAccess[]; state: GrantState; finalizationReason: GrantFinalization | undefined; createdAt: string; }' is not assignable to type 'Grant' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
build: packages/auth/src/graphql/resolvers/grant.ts#L106
Type '{ id: string; actions: ("create" | "complete" | "read" | "read-all" | "list" | "list-all")[]; type: AccessType; identifier: string | undefined; createdAt: string; limits: OutgoingPaymentLimit | undefined; }' is not assignable to type 'Access' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
build: packages/auth/src/grant/service.ts#L238
Type instantiation is excessively deep and possibly infinite.
build: packages/auth/src/grant/service.ts#L238
No overload matches this call.
build: packages/auth/src/signature/middleware.ts#L19
Type '{ url: string; method: string; headers: IncomingHttpHeaders; body: string | undefined; }' is not assignable to type 'HttpLike' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
build: packages/auth/src/tests/grant.ts#L43
Type '{ type: AccessType; actions: ("create" | "complete" | "read" | "read-all" | "list" | "list-all")[]; identifier: string | undefined; }' is not assignable to type 'AccessRequest' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.