MCPcopy Create free account
hub / github.com/ardatan/graphql-tools / assertStringArray

Function assertStringArray

packages/utils/tests/mapSchema.test.ts:603–607  ·  view source on GitHub ↗
(input: Array<unknown>)

Source from the content-addressed store, hash-verified

601 }
602
603 function assertStringArray(input: Array<unknown>): asserts input is Array<string> {
604 if (input.some(item => typeof item !== 'string')) {
605 throw new Error('All items in array should be strings.');
606 }
607 }
608
609 function checkErrors(expectedCount: number, ...expectedNames: Array<string>) {
610 return function ({ errors = [], data }: ExecutionResult) {

Callers 1

checkErrorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected