UNPKG

type-graphql

Version:

Create GraphQL schema and resolvers with TypeScript, using classes and decorators!

10 lines (9 loc) 126 B
export function isThrowing(fn) { try { fn(); return false; } catch { return true; } }