mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
412 B
TypeScript
21 lines
412 B
TypeScript
// @filename: /node_modules/foo/index.d.ts
|
|
// @ts-ignore
|
|
/// <reference types="cookie-session"/>
|
|
export const foo = 1;
|
|
|
|
// @filename: /node_modules/foo/package.json
|
|
{
|
|
"name": "foo",
|
|
"version": "1.0.0",
|
|
"types": "index.d.ts"
|
|
}
|
|
// @filename: /index.ts
|
|
import { foo } from 'foo';
|
|
const y = foo;
|
|
|
|
// @filename: /tsconfig.json
|
|
{
|
|
"compilerOptions": {
|
|
"strict": true,
|
|
}
|
|
} |