diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2022-10-21 11:20:18 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-21 15:20:18 +0000 |
| commit | bcfe279fba865763c87f9cd8d5a2d0b2cbf451be (patch) | |
| tree | 68e4d1bc52e261df50279f9ecea14795d1c46f6c /cli/tests/testdata/npm/registry/@denotest/check-error | |
| parent | 0e1a71fec6fff5fe62d7e6b2bfffb7ab877d7b71 (diff) | |
feat(unstable/npm): initial type checking of npm specifiers (#16332)
Diffstat (limited to 'cli/tests/testdata/npm/registry/@denotest/check-error')
3 files changed, 17 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/registry/@denotest/check-error/1.0.0/index.d.ts b/cli/tests/testdata/npm/registry/@denotest/check-error/1.0.0/index.d.ts new file mode 100644 index 000000000..673c0035e --- /dev/null +++ b/cli/tests/testdata/npm/registry/@denotest/check-error/1.0.0/index.d.ts @@ -0,0 +1,6 @@ +// intentional type checking errors +export class Class1 extends Class2 { +} + +export class Class2 extends Class1 { +} diff --git a/cli/tests/testdata/npm/registry/@denotest/check-error/1.0.0/index.js b/cli/tests/testdata/npm/registry/@denotest/check-error/1.0.0/index.js new file mode 100644 index 000000000..7eb6b784d --- /dev/null +++ b/cli/tests/testdata/npm/registry/@denotest/check-error/1.0.0/index.js @@ -0,0 +1,6 @@ +module.exports = { + Class1: class { + }, + Class2: class { + }, +}; diff --git a/cli/tests/testdata/npm/registry/@denotest/check-error/1.0.0/package.json b/cli/tests/testdata/npm/registry/@denotest/check-error/1.0.0/package.json new file mode 100644 index 000000000..295920a8f --- /dev/null +++ b/cli/tests/testdata/npm/registry/@denotest/check-error/1.0.0/package.json @@ -0,0 +1,5 @@ +{ + "name": "@denotest/check-error", + "version": "1.0.0", + "types": "./index.d.ts" +} |
