mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
384 B
TypeScript
22 lines
384 B
TypeScript
//// [tests/cases/compiler/processingDiagnosticTsIgnore.ts] ////
|
|
|
|
//// [index.d.ts]
|
|
// @ts-ignore
|
|
/// <reference types="cookie-session"/>
|
|
export const foo = 1;
|
|
|
|
//// [package.json]
|
|
{
|
|
"name": "foo",
|
|
"version": "1.0.0",
|
|
"types": "index.d.ts"
|
|
}
|
|
//// [index.ts]
|
|
import { foo } from 'foo';
|
|
const y = foo;
|
|
|
|
|
|
//// [index.js]
|
|
import { foo } from 'foo';
|
|
const y = foo;
|