Skip to content

Pure transpiler for TypeScript. Belong to "Plan J"./TypeScript 纯转译工具。从属于“简计划”。

License

Notifications You must be signed in to change notification settings

LongTengDao/j-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@ltd/j-ts

npm install @ltd/j-ts

@ltd/j-ts vs typescript

input.ts

	type T = any;
	
	function * f (v :T) :T {
		return <T> v as T;
	}
	

require('@ltd/j-ts')(input :string, jsx :( (name :string, context :object) => string ) | boolean = false, fileName? :string)

	             
	
	function * f (v   )    {
		return     v     ;
	}
	

(The error thrown for input will have a index :number property.)
(对 input 抛出的错误,会带上 index :number 属性。)

require('typescript').transpileModule(input :string, options :object).outputText

function* f(v) {
    return v;
}

typescript ko @ltd/j-ts

typescript @ltd/j-ts Alt
public / protected / private / readonly constructor parameter ECMAScript class field
enum $ { } / namespace $ { } / module $ { } import * as $ from '';
import $ = require(''); var $ :typeof import('') = require('');
export = $; module.exports = $;
@$ wait ECMAScript decorator proposal

@ltd/j-ts ko typescript

@ltd/j-ts typescript Alt
let v :T = /*#__PURE__*/ f(); let v :T =
/*#__PURE__*/ f();

About

Pure transpiler for TypeScript. Belong to "Plan J"./TypeScript 纯转译工具。从属于“简计划”。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published