Skip to content

Commit

Permalink
ci: fix problem with IDE typings
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Nov 7, 2023
1 parent 50d0dbe commit 516a7f9
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 20 deletions.
2 changes: 0 additions & 2 deletions projects/cdk/schematics/utils/is-ci.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference types="node" />

export function tuiIsCI(): boolean {
return (
process.env.TUI_CI === `true` ||
Expand Down
1 change: 0 additions & 1 deletion projects/cdk/schematics/utils/progress.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="node" />
import {clearLine, cursorTo} from 'readline';

import {SMALL_TAB_SYMBOL, SUCCESS_SYMBOL} from './colored-log';
Expand Down
1 change: 0 additions & 1 deletion projects/demo-cypress/cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="node" />
import {defineConfig} from 'cypress';

import {
Expand Down
2 changes: 0 additions & 2 deletions projects/demo-cypress/cypress/support/helpers/deep-paths.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference types="cypress" />

export const DEEP_PATHS = [
/* CORE */
`components/button`,
Expand Down
3 changes: 0 additions & 3 deletions projects/testing/cypress/assertions/be-in-viewport.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/// <reference types="cypress" />
/// <reference types="node" />

/**
* Check if element is inside viewport
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference types="cypress" />

export const tuiWaitAllImgInside = (
prevSubject: Cypress.PrevSubjectMap<void>[Cypress.PrevSubject],
enabled: boolean = true,
Expand Down
1 change: 0 additions & 1 deletion projects/testing/cypress/snapshot/command.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="cypress" />
// eslint-disable-next-line @taiga-ui/experience/no-deep-imports
import {tuiIsObject, tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';
import {Options} from 'cypress-image-snapshot';
Expand Down
3 changes: 0 additions & 3 deletions projects/testing/cypress/snapshot/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/// <reference types="cypress" />
/// <reference types="node" />

import fs from 'fs';

declare module 'cypress-image-snapshot/plugin' {
Expand Down
2 changes: 0 additions & 2 deletions projects/testing/setup-jest/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference types="jest" />

const {TextEncoder: TextEncoderMock, TextDecoder: TextDecoderMock} = require(`util`);

global.TextEncoder = TextEncoderMock;
Expand Down
2 changes: 0 additions & 2 deletions projects/testing/utils/input/cleaner.unit-common.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference types="jasmine" />

import {DebugElement} from '@angular/core';
import {ComponentFixture} from '@angular/core/testing';
import {FormControl} from '@angular/forms';
Expand Down
11 changes: 10 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,14 @@
"@taiga-ui/testing": ["projects/testing/index"],
"@taiga-ui/testing/*": ["projects/testing/*"]
}
}
},
"references": [
{"path": "./projects/cdk/schematics/tsconfig.schematics.json"},
{"path": "./projects/demo-cypress/tsconfig.json"},
{"path": "./projects/demo/tsconfig.server.json"},
{"path": "./projects/demo/tsconfig.app.json"},
{"path": "./tsconfig.build.json"},
{"path": "./tsconfig.spec.json"},
{"path": "./tsconfig.eslint.json"}
]
}

0 comments on commit 516a7f9

Please sign in to comment.