Skip to content

Commit

Permalink
chore(demo): explicit ng-dev-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Jan 22, 2024
1 parent a3bc112 commit 99f4e57
Show file tree
Hide file tree
Showing 45 changed files with 79 additions and 45 deletions.
68 changes: 34 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"@taiga-ui/eslint-plugin-experience": "0.46.6",
"@taiga-ui/prettier-config": "0.7.0",
"@taiga-ui/stylelint-config": "0.12.5",
"@taiga-ui/tsconfig": "0.12.0",
"@taiga-ui/tsconfig": "0.14.0",
"@tinkoff/ng-event-plugins": "3.1.0",
"@tinkoff/tui-editor": "1.11.0",
"@types/glob": "8.1.0",
Expand Down
1 change: 1 addition & 0 deletions projects/addon-doc/utils/to-flat-map-pages.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import type {TuiDocPage} from '@taiga-ui/addon-doc/interfaces';
import type {TuiDocPages} from '@taiga-ui/addon-doc/types';

Expand Down
1 change: 1 addition & 0 deletions projects/addon-tablebars/services/table-bars.service.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {Injectable} from '@angular/core';
import {tuiAssert, tuiIsObserved} from '@taiga-ui/cdk';
import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/abstract/control.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {
ChangeDetectorRef,
Directive,
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/classes/assert.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants';

export const tuiAssert = {
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/date-time/day-range.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {tuiAssert} from '@taiga-ui/cdk/classes';
import {TuiDateMode} from '@taiga-ui/cdk/types';

Expand Down
1 change: 1 addition & 0 deletions projects/cdk/date-time/day.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {tuiAssert} from '@taiga-ui/cdk/classes';
import {TuiDayOfWeek, TuiMonthNumber} from '@taiga-ui/cdk/enums';
import {
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/date-time/month-range.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {tuiAssert} from '@taiga-ui/cdk/classes';

import {RANGE_SEPARATOR_CHAR} from './date-time';
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/date-time/month.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {tuiAssert} from '@taiga-ui/cdk/classes';
import {TuiMonthNumber} from '@taiga-ui/cdk/enums';
import {TuiMonthLike} from '@taiga-ui/cdk/interfaces';
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/date-time/time.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {tuiAssert} from '@taiga-ui/cdk/classes';
import {TuiTimeLike} from '@taiga-ui/cdk/interfaces';
import {TuiTimeMode} from '@taiga-ui/cdk/types';
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/date-time/year.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {tuiAssert} from '@taiga-ui/cdk/classes';
import {TuiYearLike} from '@taiga-ui/cdk/interfaces';
import {tuiInRange, tuiNormalizeToIntNumber} from '@taiga-ui/cdk/utils/math';
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/decorators/default-prop.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {tuiAssert} from '@taiga-ui/cdk/classes';
import {TuiBooleanHandler} from '@taiga-ui/cdk/types';

Expand Down
1 change: 1 addition & 0 deletions projects/cdk/exceptions/computed-document.exception.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
export class TuiComputedDocumentException extends Error {
constructor() {
super(ngDevMode ? 'Only use computedDocument after load event' : '');
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/exceptions/document-selection.exception.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
export class TuiDocumentSelectionException extends Error {
constructor() {
super(ngDevMode ? 'Failed to get document selection' : '');
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/exceptions/invalid-day.exception.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
export class TuiInvalidDayException extends Error {
constructor(day: number) {
super(ngDevMode ? `Invalid day: ${day}` : '');
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/exceptions/invalid-year.exception.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
export class TuiInvalidYearException extends Error {
constructor(year: number) {
super(ngDevMode ? `Invalid year: ${year}` : '');
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/exceptions/no-host.exception.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
export class TuiNoHostException extends Error {
constructor() {
super(ngDevMode ? 'Portals cannot be used without TuiPortalHostComponent' : '');
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/exceptions/owner-document.exception.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
export class TuiOwnerDocumentException extends Error {
constructor() {
super(ngDevMode ? 'Element does not have ownerDocument' : '');
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/exceptions/pure.exception.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
export class TuiPureException extends Error {
constructor() {
super(ngDevMode ? 'tuiPure can only be used with functions or getters' : '');
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/exceptions/table-sort-key.exception.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
export class TuiTableSortKeyException extends Error {
constructor() {
super(ngDevMode ? 'Trying to sort with no key' : '');
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/exceptions/ts-parser.exception.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
export class TuiTsParserException extends Error {
constructor() {
super(ngDevMode ? 'TsFileParser: 1 component/module per ts-file' : '');
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/exceptions/value-changes.exception.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
export class TuiValueChangesException extends Error {
constructor() {
super(ngDevMode ? 'Control does not have valueChanges' : '');
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/exceptions/xml-parsing.exception.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
export class TuiXmlParsingException extends Error {
constructor() {
super(ngDevMode ? 'Error parsing XML string' : '');
Expand Down
2 changes: 1 addition & 1 deletion projects/cdk/schematics/tsconfig.schematics.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"composite": false,
"incremental": false,
"tsBuildInfoFile": null,
"types": ["node", "webpack-env", "ng-dev-mode"]
"types": ["node", "webpack-env"]
},
"include": ["../constants/version.ts", "./**/*", "./**/collection.json", "./**/migration.json", "./**/schema.json"],
"exclude": ["./**/*.spec.ts"]
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/services/scroll.service.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {Inject, Injectable} from '@angular/core';
import {ANIMATION_FRAME, PERFORMANCE} from '@ng-web-apis/common';
import {tuiAssert} from '@taiga-ui/cdk/classes';
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/utils/dom/get-element-offset.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {tuiAssert} from '@taiga-ui/cdk/classes';

import {tuiIsHTMLElement} from './element-checks';
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/utils/format/px.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {tuiAssert} from '@taiga-ui/cdk/classes';

/**
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/utils/math/clamp.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {tuiAssert} from '@taiga-ui/cdk/classes';

/**
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/utils/math/in-range.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {tuiAssert} from '@taiga-ui/cdk/classes';

export function tuiInRange(
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/utils/math/normalize-to-int-number.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {tuiAssert} from '@taiga-ui/cdk/classes';

/**
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/utils/math/quantize.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {tuiAssert} from '@taiga-ui/cdk/classes';

/**
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/utils/math/round.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {tuiAssert} from '@taiga-ui/cdk/classes';

const MAX_PRECISION = 292;
Expand Down
1 change: 1 addition & 0 deletions projects/cdk/utils/miscellaneous/ease-in-out-quad.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {tuiAssert} from '@taiga-ui/cdk/classes';

export function tuiEaseInOutQuad(t: number): number {
Expand Down
1 change: 1 addition & 0 deletions projects/core/components/svg/svg.component.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {DOCUMENT} from '@angular/common';
import {
ChangeDetectionStrategy,
Expand Down
1 change: 1 addition & 0 deletions projects/core/pipes/calendar-sheet/utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {
DAYS_IN_WEEK,
tuiAssert,
Expand Down
1 change: 1 addition & 0 deletions projects/core/pipes/format-phone/format-phone.pipe.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {Pipe, PipeTransform} from '@angular/core';
import {CHAR_PLUS, tuiAssert} from '@taiga-ui/cdk';
import {tuiFormatPhone} from '@taiga-ui/core/utils/format';
Expand Down
1 change: 1 addition & 0 deletions projects/core/services/svg.service.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {Inject, Injectable, Optional, Sanitizer, SecurityContext} from '@angular/core';
import {DomSanitizer, SafeHtml} from '@angular/platform-browser';
import {tuiAssert} from '@taiga-ui/cdk';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {
CHAR_HYPHEN,
CHAR_NO_BREAK_SPACE,
Expand Down
1 change: 1 addition & 0 deletions projects/core/utils/mask/create-correction-mask.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {tuiAssert} from '@taiga-ui/cdk';
import {MASK_CARET_TRAP} from '@taiga-ui/core/constants';
import {
Expand Down
1 change: 1 addition & 0 deletions projects/core/utils/mask/create-number-mask.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {CHAR_EN_DASH, CHAR_HYPHEN, CHAR_NO_BREAK_SPACE, tuiAssert} from '@taiga-ui/cdk';
import {
MASK_CARET_TRAP,
Expand Down
4 changes: 2 additions & 2 deletions projects/demo-cypress/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"typeRoots": ["../../node_modules/@types", "../../node_modules/cypress/types", "../../scripts/types"],
"types": ["cypress", "node", "ng-dev-mode"]
"typeRoots": ["../../node_modules/@types", "../../node_modules/cypress/types"],
"types": ["cypress", "node"]
},
"include": ["./cypress/**/*.ts"],
"exclude": []
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
import {
AfterContentInit,
ChangeDetectionStrategy,
Expand Down
7 changes: 1 addition & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist",
"typeRoots": [
"node_modules/@types",
"node_modules/@taiga-ui/tsconfig/@types",
"../node_modules/@types",
"../node_modules/@taiga-ui/tsconfig/@types"
],
"typeRoots": ["node_modules/@types"],
"paths": {
"@demo-cypress/*": ["projects/demo-cypress/cypress/*"],
"@demo-playwright/utils": ["projects/demo-playwright/utils/index"],
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "./tsconfig.json",
"exclude": ["projects/demo-cypress", "**/scripts/**/*.ts"],
"compilerOptions": {
"types": ["jest", "node", "webpack-env", "ng-dev-mode"]
"types": ["jest", "node", "webpack-env"]
}
}

0 comments on commit 99f4e57

Please sign in to comment.