TypeScript/tests/cases/conformance
Nathan Shively-Sanders 7cda045d52
Always export typedefs (#23723)
* Always export typedefs

This actually just required deleting a check in declareModuleMembers
and checking for external AND commonjs modules in a couple of places.

However, while experimenting with this feature, I discovered that even
previously-exported typedefs would only be exported if they came after a
commonjs export node. So I added a commonjs check to the pass in the
parser. It will not catch nested module.exports, but it will catch
top-level assignments.

The new test tests both changes.

* Post-bind typedef instead of pre-checking for commonjs

* Duplicate identifier errors

* Fix class type reference resolution+update baselines

* Move to a type-based check for duplicate identifiers
2018-04-30 14:55:26 -07:00
..
ambient
async Remove _this, _super, and _newTarget name conflict errors (#22890) 2018-03-30 17:43:37 -07:00
classes
constEnums
controlFlow avoid generated helpers in baseline 2018-04-20 16:39:37 +02:00
declarationEmit
decorators
dynamicImport
emitter
enums accept baseline 2018-04-21 12:06:29 +08:00
es6 Merge pull request #23430 from Microsoft/taggedTemplateTypeArguments 2018-04-19 15:50:19 -07:00
es7 Allow rest parameter trailing commas in ambient contexts (#23139) 2018-04-04 11:33:29 -07:00
es2017
es2018 Change esnext.promise to es2018.promise (#22292) 2018-03-02 17:08:36 -08:00
es2019/importMeta Specify ESNext module in test. 2018-04-27 18:17:49 -07:00
expressions
externalModules
functions
interfaces
internalModules
jsdoc Always export typedefs (#23723) 2018-04-30 14:55:26 -07:00
jsx Parse and check type arguments on JSX opening and self-closing tags (#22415) 2018-03-22 15:07:36 -07:00
moduleResolution Improve error message for untyped import of scoped package (#22189) 2018-02-26 10:38:54 -08:00
parser
references
salsa Check base type for special property declarations (#23671) 2018-04-26 08:14:22 -07:00
scanner
statements Fix #21617: Give detailed message on for-of of iterators without downlevelIteration 2018-03-01 23:13:04 +01:00
Symbols
types Add tests 2018-04-29 07:55:23 -07:00
typings
fixSignatureCaching.ts