UNPKG

type-graphql

Version:

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

13 lines (12 loc) 229 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isThrowing = isThrowing; function isThrowing(fn) { try { fn(); return false; } catch { return true; } }