printer-notifications/node_modules/svelte-preprocess/dist/modules/errors.js
2023-11-13 16:10:04 -05:00

12 lines
402 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.throwTypescriptError = exports.throwError = void 0;
const throwError = (msg) => {
throw new Error(`[svelte-preprocess] ${msg}`);
};
exports.throwError = throwError;
const throwTypescriptError = () => {
(0, exports.throwError)(`Encountered type error`);
};
exports.throwTypescriptError = throwTypescriptError;