@jovian/type-tools
Version:
TypeTools is a Typescript library for providing extensible tooling runtime validations and type helpers.
36 lines • 1.04 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Context = exports.runtimeLocation = void 0;
exports.runtimeLocation = (new Function('try {return this===global;}catch(e){return false;}'))() ?
'server' : 'client';
exports.Context = {
location: 'all',
online: true,
onlineUpstream: {},
throwErrors: true,
trackErrors: true,
trackCancels: true,
disabled: false,
disabledClasses: {},
disabledExtensions: {},
defineDisabled: false,
target: null,
current: null,
beforeDefCurrent: null,
gettingSkeleton: false,
gettingSampleInstance: false,
getter: { ignoredClasses: {} },
setter: { ignoredClasses: {} },
change: { ignoredClasses: {} },
beforeDefinition: {},
serializeMeta: false,
validationError: null,
anyPropertyFailed: false,
lineageMap: null,
lineageHas: null,
cast: null,
defineOnUnlock: false,
throwErrorsForCommonValidations: false,
beforeSuper: false,
};
//# sourceMappingURL=context.js.map