Skip to Content
GraphQL Tools
DocumentationAPI@graphql-tools/utilssrcfunctionsassertSome

Function: assertSome()

assertSome<T>(input, message?): asserts input is Exclude<T, null | undefined>

Defined in: packages/utils/src/helpers.ts:136

Type Parameters

T

T

Parameters

input

T

message?

string = 'Value should be something'

Returns

asserts input is Exclude<T, null | undefined>