mem-ts

1.0.1 • Public • Published

mem-ts

install:

npm install "mem-ts"

usage:

import memTS from "mem-ts";
let {tsDeclarationMap} = memTS.compile({
  "./test.js": `var a:number = 1`
}, {
  compilerOptions: {
    moduleResolution: ts.ModuleResolutionKind.Node,
    esModuleInterop: true,
    allowJs: false,
    allowUnreachableCode: true,
    allowUnusedLabels: true,
    noStrictGenericChecks: true,
    skipLibCheck: true
  }
});

tsDeclarationMap["./test.js"] = "var a = 1;";

Package Sidebar

Install

npm i mem-ts

Weekly Downloads

6

Version

1.0.1

License

ISC

Unpacked Size

4.65 kB

Total Files

4

Last publish

Collaborators

  • lxjwlt