17 Commits

Author SHA1 Message Date
Tom MacWright
ca17de55ff fix: Fix parsing of optional parameters with annotations 2019-05-08 14:49:45 -07:00
Devon Govett
3773e02949 feat: TypeScript support & inference 2019-04-25 08:13:33 -07:00
Devon Govett
7947e974d8 feat: Add flow inference for generators 2019-04-18 09:47:51 -07:00
Devon Govett
8e3cd47906 feat: Support generator functions 2019-04-18 09:47:51 -07:00
Devon Govett
d31c3b70d6 feat: Support async functions 2019-04-18 09:47:51 -07:00
Devon Govett
d1ee0f3983 Merge explicit and inferred param defaults (#1230) 2019-04-18 09:37:48 -07:00
Szymon Nowacki
2d0bd0e0f7 fix: inferred properties duplicating explicitly specified ones 2018-12-21 10:01:38 -08:00
Victor
49c0f72793 feat: Babel 7 support
BREAKING CHANGE: This moves documentation.js to Babel 7. From now on,
documentation.js will only support Babel 7: please stick to older
releases if you need to support Babel 6. Additionally, this work
temporarily disables support for following dynamic imports.
2018-09-20 23:21:14 -07:00
Konstantin Petryaev
40b17839a6 fix: membership infering for methods (#1122)
* Fix membership infering for methods

Improve inferMembership to allow to use next code:
```js
/**
 * @memberof BigFeature
 */
class MyClass {
  method() {}
}
```
Before this improvement, we have `method` inside
 `global.MyClass` instead of `global.BigFeature.MyClass`

* Add tests fir membership infering for methods
2018-08-23 09:55:03 -07:00
Tom MacWright
ccce516b49
feat: documentation.js now requires node v6 or newer. (#1034)
BREAKING CHANGE: documentation.js requires node v6 or newer.
2018-03-01 22:19:53 -08:00
Anton Shchekota
7d74060caf Eslint add new rules - no-var and prefer-const 2018-01-24 14:10:41 +03:00
Tom MacWright
61b6976594 test: More tests 2017-09-14 17:04:34 -07:00
Tom MacWright
8779369ce5 test: Add stronger jest tests for inference 2017-09-14 16:17:15 -07:00
Tom MacWright
adf1bd04c0 test: Add specific test for quoted properties in type definitions 2017-09-14 15:57:13 -07:00
Ryan Hendrickson
7a07d5118d feat: implement @hideconstructor (#898)
Per usejsdoc.org, this tag goes either in a comment attached to a
function that has declared that function to be a class, or in a comment
on an ES6 class constructor.
2017-09-03 23:07:13 -07:00
Tom MacWright
290fc09b91 test: Improve coverage of infer/kind, remove unused filterAccess line (#776) 2017-05-11 10:33:45 -04:00
Tom MacWright
11d9045a00 Native Flow, use Jest (#767)
* build: Use Flow syntax without comments.

We're switching to Flow annotations - not Flow comments. This
gives documentation.js the ability to self-document without
JSDoc types and improves our compatibility with tools like
prettier.

Fixes #729. Fixes #709
2017-05-08 20:46:21 -04:00