10.2.0 • Published 2 years ago

@ltd/j-ts v10.2.0

Weekly downloads
46
License
LGPL-3.0
Repository
github
Last release
2 years ago

@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-tsAlt
public / protected / private / readonly constructor parameterECMAScript 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-tstypescriptAlt
let v :T = /*#__PURE__*/ f();let v :T =/*#__PURE__*/ f();
10.2.0

2 years ago

10.1.0

2 years ago

9.0.3

3 years ago

10.0.0

3 years ago

8.0.0

3 years ago

9.0.2

3 years ago

9.0.1

3 years ago

9.0.0

3 years ago

6.3.1

3 years ago

7.0.0

3 years ago

7.1.0

3 years ago

6.3.0

3 years ago

6.2.5

3 years ago

6.2.4

3 years ago

6.2.3

3 years ago

6.2.2

3 years ago

6.2.1

3 years ago

6.1.1

4 years ago

6.1.0

4 years ago

6.0.5

4 years ago

6.0.4

5 years ago

6.0.3

5 years ago

6.0.2

5 years ago

6.0.1

5 years ago

6.0.0

5 years ago

5.1.1

5 years ago

5.1.0

5 years ago

5.0.0

5 years ago

4.3.3

5 years ago

4.3.2

5 years ago

4.3.1

5 years ago

4.3.0

5 years ago

4.2.0

5 years ago

4.1.1

5 years ago

4.1.0

5 years ago

4.0.0

5 years ago

3.0.8

5 years ago

3.0.7

5 years ago

3.0.6

5 years ago

3.0.5

5 years ago

3.0.4

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.0

5 years ago

1.0.0

5 years ago