We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30d7d15 commit fceb8bbCopy full SHA for fceb8bb
1 file changed
src/utils.ts
@@ -601,8 +601,9 @@ export function graphql15InterfaceType<T extends GraphQLInterfaceType>(
601
return type as T & { getInterfaces(): GraphQLInterfaceType[] }
602
}
603
604
-// A function that is correctly typed to get arround a TypeScript issue.
605
-// See https://github.com/microsoft/TypeScript/issues/17002
+/**
+ * A specially typed version of `Array.isArray` to work around [this issue](https://github.com/microsoft/TypeScript/issues/17002).
606
+ */
607
export function isArray<T>(
608
arg: T | {}
609
): arg is T extends readonly any[] ? (unknown extends T ? never : readonly any[]) : any[] {
0 commit comments