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/cjs-default-export | |
| parent | 0e1a71fec6fff5fe62d7e6b2bfffb7ab877d7b71 (diff) | |
feat(unstable/npm): initial type checking of npm specifiers (#16332)
Diffstat (limited to 'cli/tests/testdata/npm/registry/@denotest/cjs-default-export')
| -rw-r--r-- | cli/tests/testdata/npm/registry/@denotest/cjs-default-export/1.0.0/index.d.ts | 6 | ||||
| -rw-r--r-- | cli/tests/testdata/npm/registry/@denotest/cjs-default-export/1.0.0/package.json | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/cli/tests/testdata/npm/registry/@denotest/cjs-default-export/1.0.0/index.d.ts b/cli/tests/testdata/npm/registry/@denotest/cjs-default-export/1.0.0/index.d.ts new file mode 100644 index 000000000..90fdfe5f6 --- /dev/null +++ b/cli/tests/testdata/npm/registry/@denotest/cjs-default-export/1.0.0/index.d.ts @@ -0,0 +1,6 @@ +export default function (): number; +export declare function named(): number; +declare class MyClass { + static someStaticMethod(): string; +} +export { MyClass }; diff --git a/cli/tests/testdata/npm/registry/@denotest/cjs-default-export/1.0.0/package.json b/cli/tests/testdata/npm/registry/@denotest/cjs-default-export/1.0.0/package.json index 4765d25d2..8da28b919 100644 --- a/cli/tests/testdata/npm/registry/@denotest/cjs-default-export/1.0.0/package.json +++ b/cli/tests/testdata/npm/registry/@denotest/cjs-default-export/1.0.0/package.json @@ -1,4 +1,5 @@ { "name": "@denotest/cjs-default-export", - "version": "1.0.0" + "version": "1.0.0", + "types": "./index.d.ts" } |
