Wang Zhongliang
5eea8aa2f5
feat(typescript): support TSPlusToken
2018-03-16 14:08:25 +08:00
Wang Zhongliang
67277f7477
feat(typescript): support TSMinusToken
2018-03-16 10:46:12 +08:00
Lucas Duailibe
41098a06b5
Prevent "over-indenting" class properties values ( #4085 )
2018-03-02 11:28:27 -03:00
Lucas Duailibe
f119d4a90f
Change run_spec to have explicit parser list ( #3356 )
2017-11-30 03:31:52 -03:00
jackyho112
b77b1c82a7
Strip away unnecessary quotes in keys in type objects and interfaces ( #2643 )
...
* Use printPropertyKey function to print keys in object type property in TS and Flow
* Remove flow test modification
* Add tests for new object key cases
* Add new test file
* Fix some styles
2017-08-21 20:08:38 +10:00
Lucas Azzola
a666a29aa3
Print semi after DeclareFunction, fixes #2534 ( #2536 )
2017-07-24 21:55:16 +10:00
Lucas Azzola
e8f12cf621
TypeScript: Remove parens from type annotations where possible ( #2098 )
...
* fix(typescript): remove parens from union types where possible, fixes #1885
* fix(typescript): ensure parenthesis removal is stable
* fix(typescript): don't strip parens around function type
2017-06-11 18:06:47 -07:00
Christopher Chedeau
0d239477cb
Use semi-colon for object separator ( #1918 )
...
Looks like the convention for typescript separator is `;` whereas for flow it's `,`. Let's migrate to that.
Fixes #1896
Fixes #1879
Fixes #1874
2017-06-02 15:32:51 -07:00
Lucas Azzola
3471ce4584
feat(typescript): print semi instead of comma in TS interface ( #1548 )
2017-05-07 07:39:21 -07:00
Lucas Azzola
f655233ba2
fix(typescript): handle declare global syntax ( #1546 )
2017-05-07 03:44:41 -07:00
Lucas Azzola
0fa38cce33
fix(typescript): remove extraneous newline with namespace exports ( #1542 )
2017-05-06 20:28:49 -07:00
Lucas Azzola
3d45278ea7
fix(typescript): print readonly and ? tokens in TSMappedType ( #1535 )
2017-05-06 10:30:59 -07:00
Lucas Azzola
4629db6b0d
TypeScript: improve handling of computed properties ( #1532 )
...
* fix(typescript): improve handling of computed properties
* test(typescript): add Symbol computed property test
* fix(typescript): do not print brackets for literals
2017-05-06 08:00:26 -07:00
Lucas Azzola
b9a7549e47
TypeScript: correctly print nested namespaces ( #1522 )
...
* fix(typescript): correctly print nested namespaces
* test(typescript): update snapshots
2017-05-05 21:14:07 -07:00
Lucas Azzola
c689f2a0e7
Fix module block, add enum initializers and fix type parameters ( #1501 )
...
* fix(typescript): fix module block, add enum initializers and fix type parameters
* fix(typescript): use printStatementSequence for TSModuleBlock
* fix(type-params): move typeParameters out of printFunctionParams
* refactor(type-params): move typeParameters out of printArgumentList
2017-05-05 19:44:26 -07:00
Lucas Azzola
aeeaffca35
Fix handling of new keyword and call signatures and improve type parameter formatting ( #1491 )
...
* fix(typescript): fix handling of new keyword
* fix(typescript): fix handling of call signatures
* feat(typescript): share type parameter formatting with flow
2017-05-03 08:01:45 -07:00
Lucas Azzola
7d1e24ea7d
Add supertype tests and add TSAbstractClassProperty ( #1467 )
...
* feat(typescript): add supertype tests and add TSAbstractClassProperty
* chore(typescript): bump parser version
* fix(flow): allow both variance and accessibility mods
2017-04-30 17:41:19 -07:00
Lucas Azzola
7a02e9ad27
feat(typescript): add delcare modifier support for vars, classes and functions ( #1436 )
2017-04-27 09:37:42 -07:00
Lucas Azzola
fff743024c
Add TSParameterProperty, TSAbstractClassDeclaration and TSAbstractMethodDefnition ( #1410 )
...
* feat(typescript): implement TSParameterProperty
* test(typescript): add TypeScript's classes/constructorDeclarations/constructorParameters tests
* feat(typescript): implement TSAbstractClassDeclaration and TSAbstractMethodDefinition
* test(typescript): add TypeScript's classes/classDeclarations/classAbstractKeyword tests
* fix(build): use join instead of spread operator
* fix(typescript): fix semicolon handling
* fix(typescript): handle accessibility modfiers in TSAbstractMethodDefinition
* test(typescript): remove invalid test results
* test(typescript): remove unimplemented abstract properties from tests
* test(typescript): add snapshots for abstract keyword newline behavior
2017-04-26 09:25:58 -07:00