Skip to content

orta/typescript-api-shim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TS API Shim

Provides a single API layer to any version of TypeScript. Right now the goal is to first just handle a generic "TS -> JS" conversion.

The goal is:

const ts = require("typescript")
const {createTSShim} = require("typescript-api-shim")
const shim = createTSShim(ts)

const code = `const hello: string = "world"`
const js = shim.toJS(code)

With any version of TypeScript. I'd like to also get consistent error messages, line numbers etc.

Contribute

git clone https://github.com/orta/typescript-api-shim
pnpm i

node test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •