UNPKG

type-graphql

Version:

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

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