Skip to content

Commit fceb8bb

Browse files
authored
Apply suggestions from code review
1 parent 30d7d15 commit fceb8bb

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/utils.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,9 @@ export function graphql15InterfaceType<T extends GraphQLInterfaceType>(
601601
return type as T & { getInterfaces(): GraphQLInterfaceType[] }
602602
}
603603

604-
// A function that is correctly typed to get arround a TypeScript issue.
605-
// See https://github.com/microsoft/TypeScript/issues/17002
604+
/**
605+
* A specially typed version of `Array.isArray` to work around [this issue](https://github.com/microsoft/TypeScript/issues/17002).
606+
*/
606607
export function isArray<T>(
607608
arg: T | {}
608609
): arg is T extends readonly any[] ? (unknown extends T ? never : readonly any[]) : any[] {

0 commit comments

Comments
 (0)