UNPKG

type-graphql

Version:

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

14 lines (13 loc) • 263 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isThrowing = void 0; function isThrowing(fn) { try { fn(); return false; } catch (_a) { return true; } } exports.isThrowing = isThrowing;