@formatjs/ecma402-abstract
Version:
A collection of implementation for ECMAScript abstract operations
14 lines (13 loc) • 475 B
JavaScript
import { __extends } from "tslib";
var MissingLocaleDataError = /** @class */ (function (_super) {
__extends(MissingLocaleDataError, _super);
function MissingLocaleDataError() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.type = 'MISSING_LOCALE_DATA';
return _this;
}
return MissingLocaleDataError;
}(Error));
export function isMissingLocaleDataError(e) {
return e.type === 'MISSING_LOCALE_DATA';
}