UNPKG

@assertive-ts/core

Version:

A type-safe fluent assertion library

28 lines 1.65 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.usePlugin = exports.assertThat = exports.assert = exports.expect = exports.Assertion = exports.TypeFactories = exports.AssertionError = void 0; const Assertion_1 = require("./lib/Assertion"); Object.defineProperty(exports, "Assertion", { enumerable: true, get: function () { return Assertion_1.Assertion; } }); const Config_1 = require("./lib/config/Config"); const expect_1 = require("./lib/expect"); Object.defineProperty(exports, "expect", { enumerable: true, get: function () { return expect_1.expect; } }); Object.defineProperty(exports, "assert", { enumerable: true, get: function () { return expect_1.expect; } }); Object.defineProperty(exports, "assertThat", { enumerable: true, get: function () { return expect_1.expect; } }); var strict_1 = require("assert/strict"); Object.defineProperty(exports, "AssertionError", { enumerable: true, get: function () { return strict_1.AssertionError; } }); var TypeFactories_1 = require("./lib/helpers/TypeFactories"); Object.defineProperty(exports, "TypeFactories", { enumerable: true, get: function () { return TypeFactories_1.TypeFactories; } }); /** * Extends `@assertive-ts/core` with local or 3rd-party plugin(s). * * @param plugins a plugin or an array of plugins to use * @see {@link Plugin Plugin} */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function usePlugin(plugins) { Array.isArray(plugins) ? plugins.forEach(plugin => Config_1.config.addPlugin(plugin)) : Config_1.config.addPlugin(plugins); } exports.usePlugin = usePlugin; //# sourceMappingURL=index.js.map