Skip to content

Commit d1855e7

Browse files
committed
Revert a few unknowns back to any
1 parent 68f46c2 commit d1855e7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/testing/execute-operation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { TypedDocumentNode } from '@graphql-typed-document-node/core'
33
import type { AnyGraphqlContext } from '@makerx/graphql-core'
44
import type { DocumentNode, FormattedExecutionResult } from 'graphql'
55

6-
export type VariableValues = { [key: string]: unknown }
6+
export type VariableValues = { [key: string]: any }
77

88
export type TypedGraphQLRequest<TData = Record<string, unknown>, TVariables extends VariableValues = VariableValues> = Omit<
99
GraphQLRequest<TVariables>,

src/testing/jwt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface BuildJwtInput {
88
email: string
99
scopes: string[]
1010
roles: string[]
11-
[key: string]: unknown
11+
[key: string]: any
1212
}
1313

1414
/**

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/***
22
* Returns a new object with all keys of the original object except the ones that have a value of undefined or null.
33
*/
4-
export function omitNil<T extends Record<string, unknown>>(obj: T): Partial<T> {
4+
export function omitNil<T extends Record<string, any>>(obj: T): Partial<T> {
55
return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !== undefined && value !== null)) as Partial<T>
66
}

0 commit comments

Comments
 (0)