cevek / ttypescript

Over TypeScript tool to use custom transformers in the tsconfig.json
1.53k stars 56 forks source link

missing import in published declaration file #31

Closed ajafff closed 4 years ago

ajafff commented 5 years ago

lib/typescript.d.ts

/// <reference path="patchCreateProgram.d.ts" />
declare const TS: typeof ts;
export = TS;

Gives a compiler error Cannot find name 'ts'. and causes intellisense to not work. Maybe you could use the newer declare const TS: import('typescript'); syntax added in typescript@2.9

cevek commented 4 years ago

fixed