Commit Graph
65439 Commits
Author SHA1 Message Date
Kyle ChineandEmrio 33e4ecd2fc Bugfix: Change the Export Method of UIDGenerator Class from Named-Export to Default-Export - @types/uid-generator (#39672)
* bugfix: class should be exported default

* bugfix: test failure

* temp

* also export interfaces

* syntax error fix

* syntax error fix

* syntax error fix

* syntax error fix

* syntax error fix

* syntax error fix

* syntax error fix

* syntax error fix

* syntax error fix

* syntax error fix

* index.d.ts done

* Bugfix: Change the Export Method of UIDGenerator Class from Named-Export to Default-Export

Motivation

In the original package (uid-generator), the class is exported by Default-Export:

  module.exports = UIDGenerator;

But in the current version of the type definition, the class is exported by Named-Export:

  export const UIDGenerator: UIDGeneratorConstructor;

Which leads to a piece of wrong JavaScript code after compilation:

  const uid_generator_1 = require("uid-generator");
  const uidgen = new uid_generator_1.UIDGenerator(bitLength);

The correct piece should be:

  const uid_generator_1 = require("uid-generator");
  const uidgen = new uid_generator_1(bitLength);

So I feel it may be necessary to fix this.

Fixed List

1. Interface Renaming

UIDGenerator            -> UIDGeneratorInstance
UIDGeneratorConstructor -> UIDGeneratorClass

In the current version, the name UIDGenerator used as both the name of the interface and the class, which may leads to confusion.
So I give them a little bit more clear names.

2. Default-Export UIDGenerator

3. UIDGeneratorInstance.generate(call-back): Error Parameter Added

In the orginal (uid-generator) package, the call-back function also accepts an error parameter. And when error did triggered, uid parameter may be optional.

4. Corresponding updates in test script

* syntax fix

* add target es2015

* Update types/uid-generator/tsconfig.json

Remove useless spaces.

Co-Authored-By: Emrio <emrio@emrio.fr>

* ES2015 to es6

* Restore to last time test-passed

"target":            "ES2015",

* Remove extra spaces

"target": "es6"

* Update types/uid-generator/index.d.ts

Remove the ? from uid parameter.

Co-Authored-By: Emrio <emrio@emrio.fr>

* Update types/uid-generator/uid-generator-tests.ts

uid must be string now.

Co-Authored-By: Emrio <emrio@emrio.fr>

* uid required now

* Remove target option

* add target:es6
2019-11-01 09:02:41 -07:00
Marek Dědič 1e2b2c39a1 [imagesloaded] Added a JQuery constructor with options (#40001)
* Imagesloaded: Added a JQuery constructor with options

* Imagesloaded: Added tests for the JQuery constructor with options
2019-11-01 08:43:30 -07:00
Nicolas Morel 9f640addd2 [@types/mongodb] Correctly type ReadPreference options (#40000) 2019-11-01 08:43:02 -07:00
Sebastian Silbermann 9c70ebd0b3 feat(testing__library/dom): Add defaultHidden to config (#39993)
* feat(testing__library/dom): Add defaultHidden to config

* Bump version
2019-11-01 08:35:11 -07:00
Huachao Mao 242b0e7fa6 got: Fix typo for firstByte timings phase (#39990) 2019-11-01 08:33:51 -07:00
Gregory Chen 2b22209554 change grid layout position() param type to NodeSingular (#39988) 2019-11-01 08:29:23 -07:00
Daniel Del Core a8d3379d75 react-select export types from main entrypoint (#39960) 2019-11-01 08:24:52 -07:00
Emelia Smith 6ffc82df70 pg-types: actually remove moment dependency (#39931)
It seems to have not been removed from the package.json in fbdaba3edc
2019-11-01 08:24:34 -07:00
Pete Nykänen 2d1c6d8a70 Update node-resque types to match v5.5.7. (#39973)
* Update Queue types

Signed-off-by: petetnt <pete.a.nykanen@gmail.com>

* Fix lint issues for Queue

Signed-off-by: petetnt <pete.a.nykanen@gmail.com>

* Add tests, small fixes

Signed-off-by: petetnt <pete.a.nykanen@gmail.com>

* Add redis as a connection parameter

Signed-off-by: petetnt <pete.a.nykanen@gmail.com>

* Add ConnectionOptions test for the redis parameter

Signed-off-by: petetnt <pete.a.nykanen@gmail.com>
2019-11-01 08:22:36 -07:00
Alexander T f9c7b8f4d4 cson-parser: Provides its own types (#39632) 2019-11-01 08:11:24 -07:00
Alexander T b3eed04fcf dialogflow: Provides its own types (#39627) 2019-11-01 08:11:15 -07:00
Alexander T ae51786702 uuidv4: Provides its own types (#39565) 2019-11-01 08:10:52 -07:00
Alexander T a459a44b1e stellar-base: Provides its own types (#39548)
* stellar-base: Provides its own types

* remove package.json from stellar-sdk
2019-11-01 08:10:28 -07:00
Alexander T 3a39645255 react-toastify: Provides its own types (#39531) 2019-11-01 08:10:18 -07:00
Alexander T 7dbea86f24 react-joyride: Provides its own types (#39513) 2019-11-01 08:09:45 -07:00
Alexander T b0d33e68ae react-alice-carousel: Provides its own types (#39503) 2019-11-01 08:09:35 -07:00
Alexander T 244b82ca60 react-native-mauron85-background-geolocation: Provides its own types (#39518) 2019-11-01 08:09:23 -07:00
Alexander T d12b4cf567 react-helmet-async: Provides its own types (#39509) 2019-11-01 08:09:02 -07:00
Alexander T 160bc540b5 oembed-parser: Provides its own types (#39486) 2019-11-01 08:08:45 -07:00
Dmytro Gokun f49f88dec0 [mapbox-gl] update definitions to align with mapbox-gl-js 1.5.0 (#39961)
* [mapbox-gl] update definitions to align with mapbox-gl-js 1.5.0 (https://github.com/mapbox/mapbox-gl-js/releases/tag/v1.5.0)

* [mapbox-gl]: Fix type definitions header + update lint rules to validate it.
2019-11-01 08:06:43 -07:00
Luiz Machado 5e44c2e345 Revert "rename folder to make it work for Swiper 5.x (#39968)" (#40022)
This reverts commit 20d3870dc8.
2019-11-01 08:06:34 -07:00
Joel Denning 1387ad621b Add types for systemjs@6 (#39372)
* Add types for SystemJS@6

* Self review

* Fixing build

* Fixing things

* Self review

* Switching from namespace to const.

* Fixing tests

* Review feedback

* Merging namespace into const

* Removing unneeded suppression
2019-11-01 08:06:23 -07:00
Alexander T f2b8b3b4e0 notyf: Provides its own types (#39484) 2019-11-01 08:06:00 -07:00
Alexander T 1481ed3807 navigation-react: Provides its own types (#39475) 2019-11-01 08:05:53 -07:00
Alexander T e2ae23ff33 koa-requestid: Provides its own types (#39453) 2019-11-01 08:05:41 -07:00
Alexander T 446cb62274 material-components-web: Provides its own types (#39460) 2019-11-01 08:05:18 -07:00
Alexander T 0767699127 zipkin-instrumentation-express: Provides its own types (#39445) 2019-11-01 08:04:57 -07:00
Abhinav Srivastava c3770b5a23 adding models for ignite (#39417) 2019-11-01 07:52:09 -07:00
Sergio Nizama 5e724a89a8 [@types/react-material-ui-form-validator 2.0.9] Added missing SelectValidator export. (#39396)
* Added missing export for SelectValidator

* fixed linting errors

* added ValidatorComponent definition

* changed indentention of props to make it more readable
2019-11-01 07:51:44 -07:00
ocavue db42458e8a [@types/prosemirror-transform] Fix canSplit type (#39380)
* fix canSplit

* update version

* revert version update
2019-11-01 07:51:17 -07:00
Arne Deruwe aa561f1dfa [DropZone] Prettier formatting + updated some fields in DropZoneOptions (#39345)
* applied prettier ruleset

* Fixed some linting rules, a lot of work still remains
edited dropzone version and added my name to maintainers

* Updated DropZoneOptions interface to reflect the current docs:
- added function type to url property
- added function type to method property
- replaced thumbnailMethod and resizeMethod to a union type as they can only contain 2 specific strings as options
2019-11-01 07:50:44 -07:00
Jonathan Flower 2561381939 added getState prop for react-redux-toastr 7.6 (#39305)
* added getState prop for react-redux-toastr 7.6

* improved whitespace

* fix missing simicolon
2019-11-01 07:48:19 -07:00
Elizabeth Samuel d58af468c0 [office-js] [office-js-preview] (Outlook) Mailbox 1.8 (#39984)
* [office-js] [office-js-preview] (Outlook) Mailbox 1.8

* Link to Item subclasses

* Update event.completed

* Update link

* Updates based on feedback

* Update handler comments
2019-11-01 07:45:51 -07:00
Matt Krick 23ebe0869c relay-runtime: Add overloads to proxies (#40049)
* add generics to storeTypes
add getRelayHandleKey

* lint

* link up to updater

* simplify with [never]

* use overloads

* lint

* add tests

* add extra test to ensure objects with extra props can be passed through
2019-10-31 23:28:54 +01:00
Anders Hejlsberg 853958ca36 Fix mergerino types and tests in preparation for TS #34742 (#39924)
* Fix mergerino types and tests in preparation for TS #34742

* Preserve type annotation for TS versions before 3.5

* Revert change to FunctionPatch<T> and fix test accordingly
2019-10-31 06:14:06 -07:00
Agilit-e 1bf8b34a9d Initial upload of V7.0 of 'agilite' node module @types definition (#39146)
* Initial upload of V7.0 of 'agilite' node module @types definition

* Initial upload of V7.0 of 'agilite' node module @types definition

* Applied fixes as per travis test result

* Refactored agilite types according to reviewer feedback

* Formatting fixes to agilite
2019-10-30 17:49:39 -07:00
Justin Hall 4b67565486 [react-helmet] relax htmlAttributes and bodyAttributes types (#39983)
* style(react-helmet): format with prettier

* fix(react-helmet): relax htmlAttributes and bodyAttributes types

This preserves type-checking of known attributes but also allows for arbitrary attributes like
`data-*`.
2019-10-30 11:25:56 -07:00
Asitha de Silva a04f0db950 Stripe - CreateLoginLink Redirect Option (#39979)
* CreateLoginLink - Redirect Option

* CreateLoginLink - Redirect Option
2019-10-30 11:22:01 -07:00
Alex Jerabek 9617fb31f2 [office-js-preview] Fixing AttachmentsChangedEventArgs object links (#39977)
* Fixing object links

* PR Feedback
2019-10-30 11:20:27 -07:00
axelfran 9226bb28bb Add transfer_group to type definitions for Stripe update charge. Documentation: https://stripe.com/docs/api/charges/update (#39976) 2019-10-30 11:16:41 -07:00
Tom Yam cd1e6eb888 [@types/jquery.fancytree] various fixes (#39974)
Add missing expandAll() method
https://wwwendt.de/tech/fancytree/doc/jsdoc/Fancytree.html#expandAll

All options to filter are optional
https://github.com/mar10/fancytree/blob/v2.33.0/src/jquery.fancytree.filter.js#L353

Fix typing for filter.mode option: can be either "dimm" or "hide"
"string" seems like just a mistake, the code doesn't use it

All translation strings are optional
This is because options are deep merged
https://github.com/jquery/jquery-ui/blob/1.12.1/ui/widget.js#L324
https://github.com/jquery/jquery-ui/blob/1.12.1/ui/widget.js#L180

toggleEffect can be false
From the docs: Animation options, false:off
2019-10-30 11:16:02 -07:00
Konstantin Azizov b6ca97ece0 [recharts] mark most of array props as readonly (#39970)
Recharts does not modify them internally and having 'readonly' modifier allows both readonly and non-readonly arrays to be passed through
2019-10-30 10:28:34 -07:00
Hao Chen 446815c8ae fix: axisPointer.label.margin should be number (#39969)
* fix: axisPointer.label.margin should be number

(xAxis | yAxis).axisPointer.label.margin should be number instead of boolean.

* fix: color type

color type is not limited to string. It can be `string`, `Linear gradient`, `Radial gradient` or `Fill with texture`.
2019-10-30 10:25:16 -07:00
Asher Nguyen 20d3870dc8 rename folder to make it work for Swiper 5.x (#39968) 2019-10-30 10:24:18 -07:00
Max Komarychev bb846d4225 detox: fix typo in device.takeScreenshot (#39963)
relevant docs: https://github.com/wix/Detox/blob/master/docs/APIRef.DeviceObjectAPI.md#devicetakescreenshotname
2019-10-30 10:23:28 -07:00
Tom Jenkinson 70d9e5e15f add isOurError() to Opossum (#39950)
* add isOurError() to Opossum

* add to 'definitions by'

* prettier

* update version

* remove patch version
2019-10-30 10:14:31 -07:00
Pierre Lebrun 78c8295f88 Update onFilterChange function signature (#39958)
Add type argument to onFilterChange function signature, which now accepts 3 arguments instead of 2.
https://github.com/gregnb/mui-datatables
2019-10-30 10:13:47 -07:00
Rauno Viskus e7d0af6a9d [uuid] Allow native Buffer in place of number[] (#39956) 2019-10-30 10:12:17 -07:00
Sam Hinshaw 500811ec0e Update types for chardet v0.8 (#39953)
* Update types for chardet v0.8

* Fix extraneous spaces
2019-10-30 10:05:39 -07:00
Calvin Chhour d3e0b091b0 Updated some gestalt components (#39952)
* Updated types for some gestalt components

* Removed change to toast prop
2019-10-30 10:02:37 -07:00