typescript - How do I require the typescriptServices.d.ts in a Node.js app? -
i'm trying use typescriptservices.d.ts , typescriptservices.js built\local after running jake local
. i'm trying use them in node.js app, i'm getting confused how require them.
1: module cannot aliased non-module type.
2: duplicate identifier 'typescript'.
3: compiles & runs, missing intellisense
if wrap code in export function
compiles , runs, have comment out var typescript = require('./typescriptservices');
in order intellisense work. bug in intellisense?
4: use aliases workaround
this restores intellisense in function, intellisense doesn't work when writing import statement unless comment out require line.
code typescript: syntax tree.
the typescript compiler api / or / language service not readily consumable node.js
you can how ever open did compiler api : https://stackoverflow.com/a/23956556
Comments
Post a Comment