Commit Graph
65615 Commits
Author SHA1 Message Date
Matej Vilk af35fe53d6 Fix Geo Object's key name (#40038) 2019-11-05 13:36:10 -08:00
Marik Shnitman 49ed33321e Updated wix-style-react Text definition to match WSR docs (#40040)
* Updated wix-style-react text

Updated ellipsed to ellipsis, based on WSR latest docs

* updated tests for Wix style react
2019-11-05 13:35:36 -08:00
Doug Ayers 633a708031 Add getter signature to job.progress function (#40097) 2019-11-05 13:35:06 -08:00
Kyle Chine 65d3b17a6f Motivation (#40091)
Use "export =" syntax instead of "export default" syntax. Because in Node.js environment, ES6 module syntax could not be converted correctly to CommonJS module syntax.

Solution

Use "export =" syntax. Refer to <https://www.typescriptlang.org/docs/handbook/modules.html>
2019-11-05 13:34:31 -08:00
Linus Unnebäck fb3c5606ad [dot-prop-immutable] Allow passing undefined as object (#40045) 2019-11-05 13:33:32 -08:00
Jani Šumak 736a20b93f Added includeTypeName to IndicesPutMappingParams (#40055)
* Added includeTypeName to IndicesPutMappingParams

* Added includeTypeName to IndicesPutMappingParams
2019-11-05 13:33:01 -08:00
Gareth JonesandJeroen Claassens f5ae60c0ac [@types/jest]: add generics to matches (#40092)
* [@types/jest]: add generics to matches

* Update types/jest/index.d.ts

Co-Authored-By: Jeroen Claassens <jeroen.claassens@live.nl>

* Apply suggestions from code review

Co-Authored-By: Jeroen Claassens <jeroen.claassens@live.nl>
2019-11-05 13:30:36 -08:00
Clay Miller 47a8bdda3e Revert "Make 'Omit' a distributive conditional type to support union prop types. Fixes #39300. (#39323)" (#40095)
This reverts commit f71b4a0526.
2019-11-05 13:28:39 -08:00
Gareth Jones 1d5494e2a9 [@types/jest]: improve definition of MatcherUtils (#40068)
* [@types/jest]: improve definition of MatcherUtils

* Update `equals` types
2019-11-05 13:28:06 -08:00
Christophe Coevoet a872962928 Fix the package name in the description of the autosize types (#40047) 2019-11-05 13:26:52 -08:00
anadutova d6a12689b1 [react-responsive] Add device prop on MediaQuery component (#40039)
* Add 'device' prop on MediaQuery component

* Typo
2019-11-05 13:26:30 -08:00
Christophe Coevoet 0f0d84477c [humane-js] Fix humane-js types (#40043)
* Rename the humane types to humane-js to match the package name

* Improve humane-js types

- define the exported CommonJS API instead of documenting the global
  variable from the UMD pattern
- fix the list of available options
- use proper signatures for various functions instead of generic
  Function types
- use optional parameters instead of function overload without extra
  params for proper types

* Enable the strict linting rules for the humane-js types
2019-11-05 13:25:01 -08:00
cdoe afd89d0e4f [intercom-client] Add separate User type for creating and updating (#40035) 2019-11-05 13:23:37 -08:00
Yves Kaufmann 6d1bed7dac [koa__multer] Allows to access the properties file and files through the koa context. (#40034)
* [koa__multer] Allows to access the file nad files through the koa contet.

* Extends the koa context and request by the fields file, files.

* Removes unecessary import
2019-11-05 13:21:16 -08:00
Matt Burstein 1cb82bdd9f [@types/nunjucks] Fix types for functions in Environment (#40026)
* [@types/nunjucks] Fix function signiatures in Environment

* [@types/nunjucks] Add tests for improved Environment function signiatures
2019-11-05 13:20:37 -08:00
Johannes Dobler 62ef71cd97 add number type to maxRetries (#40019)
maxRetries can also be a number to specify the number of retries. Currently it is only possible to either do no retry or 1 retry (with setting to true).
2019-11-05 13:19:19 -08:00
Noah Chase 1c44f1681f initial Apple Music API typings (#40090)
* initial Apple Music API typings - start with Song-related things

* add additional Apple Music API types
2019-11-05 13:16:38 -08:00
ExE Boss 34cc085a65 chore(package): Remove empty dependencies object (#40009) 2019-11-05 13:15:16 -08:00
ikokostya 7803774c1f [leveldown] Add clear() method (#40083) 2019-11-05 13:14:38 -08:00
Ricardo Mello ea18e353c1 Add type definitions for js-roman-numerals (#40033) 2019-11-05 13:13:53 -08:00
Alex Lee 469a9dad40 fix minor problem in typing of node-forge.pkcs12.Pkcs12Pfx.safeContents (#40088) 2019-11-05 13:13:25 -08:00
Saeed Tabrizi 0e295fc600 Update OrientJs (#40084)
* Update OrientJs

* Update orientjs

- fix orientjs ODatabaseSession

* Update orientjs 

- fix linting issues
2019-11-05 13:12:17 -08:00
Prain f7d76b4bd1 Add typing for graphql-bigint (#40041) 2019-11-05 13:11:33 -08:00
Kerminate 2e7765f18a docs: improve readme.cn on external dependencies (#40014)
* feat: create README.cn.md

* chore: add Chinese README

* feat: Switch status badges to Azure Pipelines in README.cn.md

* docs: Readme TOC

* docs: improve readme.cn on external dependencies

* style: use full-width characters
2019-11-05 13:05:04 -08:00
Nikita Galkin 6171e79c95 [node] Improve os.constants.errno (#40017)
* Add missed os.constants.errno for win32

* Add deprecation message for errno at constants module
2019-11-05 13:02:18 -08:00
Christophe Coevoet c9e13869e9 Add types for insert-text-at-cursor (#40058) 2019-11-05 11:23:02 -08:00
Christophe Coevoet 59856c5fa7 Add types for timeago (#40062) 2019-11-05 11:22:41 -08:00
ikokostya 7a15881b4f [got] Add event property to TimeoutError (#40087) 2019-11-05 11:22:09 -08:00
Masaki Muranaka 3fcd9539a6 Add types for IOST smart contract library. (#40066)
Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
2019-11-05 11:19:41 -08:00
Felix Hao 2e2227cdde Add package: openurl & openurl2 (#40065)
* add package: openurl & openurl2

* fix lint
2019-11-05 11:18:42 -08:00
Slobodan Stojanović 144b45d7c1 minimal-request-promise: Add initial typings (#40072) 2019-11-05 11:17:52 -08:00
James Charlesworth 23332fa2c8 [jump.js] Add option for passing duration as a function (#40082)
* Add option for passing duration as a function, it has been supported in jump.js just missing from typings https://github.com/callmecavs/jump.js/blob/master/src/jump.js#L133

* jump.js remove myself from the defitions by (also kick off another build)
2019-11-05 11:15:34 -08:00
Ben Grynhaus 2f8b27fdb0 add types for lucene (#40074) 2019-11-05 10:52:08 -08:00
Shrouded Shrew b09b89241b Add types for sic-list (#40126)
* Add types for sic-list

* Fix version number

* Add more tests

* Remove void type for overwrite test
2019-11-05 10:42:28 -08:00
Ben Allfree a312d33554 Add struct definitions (#40073)
* Add struct definitions

* Struct generics
2019-11-05 09:58:13 -08:00
Rayhan Wirjowerdojo ed6743ecbe Added type definitions for react-loader-spinner (#40080)
* Added type definitions for react-loader-spinner

* Added version reference of react-loader-spinner to 3.1

* Changed TypeScript version reference to 3.6

* Removed JSDoc for possible types

* Removed I prefix on the LoaderProps interface
2019-11-05 09:55:23 -08:00
Emily Marigold Klassen 60bd0fc81e Add types for json-schema-compare (#40085)
* Add types for json-schema-compare

* Use JSONSchemaDefinition instead of only schema
2019-11-05 09:32:36 -08:00
ExE Boss 0410320f11 feat: Add globalThis (#40096) 2019-11-05 09:07:36 -08:00
Ozum Eldogan 3a19d3f7c9 update TypeScript version (#40093)
knex which is a dependency of this module, requires TypeScript 3 and above.
2019-11-05 09:04:43 -08:00
Michał Wadas 11a7038978 [@types/hapi] Add new point of extension (ServerMethods interface) (#38716) 2019-11-05 09:04:14 -08:00
Guillaume 625d9ea5ee Fix rox-node fetch() return type (#40153) 2019-11-05 08:41:59 -08:00
Alexander T 1ef0f7d3b2 libra-core: Provides its own types (#39455) 2019-11-05 08:19:37 -08:00
Malcolm Kee 807f5db163 Fix JSDOC for react-textarea-autosize (#39975) 2019-11-04 16:35:34 -08:00
Evgeny Samsonov 3997447162 [react-stripe-elements] Replace tabs with spaces (#39999) 2019-11-04 16:35:17 -08:00
Bert Verhelst c21ee1885d [simple-oauth2] Allow http options for getToken (#39940)
* [simple-oauth2] Allow http options for getToken

According to the docs of simple-oauth2 the getToken function optionally accepts an httpOptions object:
https://www.npmjs.com/package/simple-oauth2#authorization-code-flow

```
// Optional per-call http options
const httpOptions = {};
 
// Save the access token
try {
  const result = await oauth2.authorizationCode.getToken(tokenConfig, httpOptions);
  const accessToken = oauth2.accessToken.create(result);
} catch (error) {
  console.log('Access Token Error', error.message);
}
```

* [simple-oauth2] Allow scope in getToken config

According to the docs of simple-oauth2 a scope property is allowed:
https://www.npmjs.com/package/simple-oauth2#authorization-code-flow

```
// Get the access token object (the authorization code is given from the previous step).
const tokenConfig = {
  code: '<code>',
  redirect_uri: 'http://localhost:3000/callback',
  scope: '<scope>', // also can be an array of multiple scopes, ex. ['<scope1>, '<scope2>', '...']
};
 
// Optional per-call http options
const httpOptions = {};
 
// Save the access token
try {
  const result = await oauth2.authorizationCode.getToken(tokenConfig, httpOptions);
  const accessToken = oauth2.accessToken.create(result);
} catch (error) {
  console.log('Access Token Error', error.message);
}
```

* [simple-oauth2] Fix missing type for scope

* [simple-oauth2] Add http options to all func

* [simple-oauth2] Update interface for WreckHttpOptions

* [simple-oauth2] bump version to trigger rebuild

* [simple-oauth2] Fix build errors

Error in simple-oauth2
Error: /home/travis/build/DefinitelyTyped/DefinitelyTyped/types/simple-oauth2/index.d.ts:1:25
ERROR: 1:25    dt-header                        Error parsing header. Expected: foo MAJOR.MINOR (patch version not allowed). See: https://github.com/Microsoft/dtslint/blob/master/docs/dt-header.md
ERROR: 97:11   strict-export-declare-modifiers  All declarations in this module are exported automatically. Prefer to explicitly write 'export' for clarity. If you have a good reason not to export this declaration, add 'export {}' to the module to shut off automatic exporting. See: https://github.com/Microsoft/dtslint/blob/master/docs/strict-export-declare-modifiers.md
ERROR: 99:13   typedef-whitespace               expected nospace before colon in property-declaration
ERROR: 110:10  no-any-union                     Including `any` in a union will override all other members of the union. See: https://github.com/Microsoft/dtslint/blob/master/docs/no-any-union.md
2019-11-04 16:35:00 -08:00
즈눅 b4f18cc47a [terser-webpack-plugin] bump up version (#39907)
* [terser-webpack-plugin] bump up version

* source argument can be undefined
2019-11-04 16:31:58 -08:00
hasezoey 49846d93c2 [@types/mongoose] Allow the use of "DocumentArray.discriminator(name, schema, value)" (#39927)
* Allow the use of "DocumentArray.discriminator(name, schema, value)"

* Add test for signature change
2019-11-04 16:31:05 -08:00
Rory McElearney 800fe54715 [jsforce] Add typing for get-recent-items method (#39997)
* Add typing for get-recent-items method

* Combine overloads into one signature

* add test and update with callback signature

* empty
2019-11-04 16:30:34 -08:00
Elwyn 49dda886f2 filterSensitiveData should allow strings & regexs (#39981) 2019-11-04 16:28:10 -08:00
Johnson Lee 3bdf9dc509 fix: update type of eureka-js-client config object (#39946) 2019-11-04 16:27:29 -08:00