Previously, the code that supports the oldest version of Typescript was in the root: 3.1 and below. Newer versions were in ts*/ subdirectories.
This PR puts the newest version in the root, and older versions -- before 3.3 in this case -- in ts*/ subdirectories. This is possible because all supported versions of the Typescript now understand the typesVersions property in package.json.
This PR needs a new version of DefinitelyTyped-tools and dtslint, which I will ship soon. It also needs to be brought up to date with master.
* Update some new/bad types after reviewing emmet plugin
* Mark several event handlers as returning Disposable
I haven't exhaustively tested all of these, however I have spot checked
and think this is likely correct. I haven't found that event handlers on
LanguageClient return Disposable, and I also am assuming things that
conform to Disposable should be directly disposed.
* update documentation link
* Update index.d.ts
* tests
* Add options arg to issue assistant registration
* Use es7 insetad of es2015
* make path.join more usable
* Make TreeItem properties settable
* Add color to TreeItem (beta 18)
The SuperAgent intro doc uses 'headers': https://visionmedia.github.io/superagent/#request-basics
I tested with superagent v3.x-6.x and both '.header' and '.headers' have
the same value:
```
const superagent = require('superagent');
superagent.get('https://www.google.com').then(res => {
console.log('header', res.header);
console.log('headers', res.headers);
});
```
Update the aria-relevant type to include "additions removals" as the existing type is inaccurate. The actual type is a space delimited list of keywords: "additions", "removals", "text", or "all".
* added language option
* added language option to the test file
* change to single quote
Co-authored-by: Timothy Trowbridge <timothy.trowbridge@neolution.ch>
* fix types for other components (compare with event and eventWrapper, they just have no special props)
* also define props for view-specific event component override
* fix withDragAndDrop type definition. disable automatic exports.
* any is unnecessary here
* fix tests
* revert change to ViewsProps due to @eps1lon comments / https://github.com/DefinitelyTyped/DefinitelyTyped/pull/43215
* change DragAndDropCalendarProps from type to interface, as suggested by @DanielRosenwasser
* 🤖 Merge PR #46905 Package Proclaim: Make msg parameter optional for all assertions by @JakeChampion
* Make msg param optional for assertions in proclaim
* Mark message and operator params of fail as optional
* Update tests to check the optional parameters are indeed optionals
* Make the commonjs export of proclaim point to proclaim.ok function
* Add test to prove proclaim.ok points to proclaim
* Properly describe props for (custom) View, with new test with wrong prop (expecting error). Pass generic types for event and resource at more places (and fix test).
Plus: turned off automatic exports for index.d.ts aswell due to own Omit (added to keep compat with older TS versions).
* typo
* Revert strict views (with their disfunctional tests), but retain ViewProps for optional use (guarded with a test)
Strict views cannot expressed du to current limitaion in TypeScript, see <https://github.com/Microsoft/TypeScript/issues/13195>
Co-authored-by: Jake Champion <me@jakechampion.name>