chore: enable exactOptionalPropertyTypes #5792
lint_test_build.yml
on: pull_request
checkout
52s
backend
4m 52s
frontend
34s
auth
1m 11s
mock-account-servicing-entity
42s
token-introspection
54s
graphql
2m 1s
all_pr_checks_passed
0s
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.
|