UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

17 lines 759 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DateFnsCompatibleRule = void 0; const schematics_1 = require("@angular/cdk/schematics"); const injection_token_rule_1 = require("./injection-token-rule"); class DateFnsCompatibleRule extends injection_token_rule_1.InjectionTokenRule { constructor() { super(...arguments); this.enabled = this.targetVersion === schematics_1.TargetVersion.V10; this.tokens = ['NZ_DATE_FNS_COMPATIBLE']; } getFailure(token) { return `Found deprecated symbol "${token}" which has been removed. Please migrate to date-fns v2 manually.`; } } exports.DateFnsCompatibleRule = DateFnsCompatibleRule; //# sourceMappingURL=date-fns-compatible-rule.js.map