Commit Graph
64083 Commits
Author SHA1 Message Date
Már Örlygsson 4b29f4bd1d feat: Add type definitions for npm module ospec (#37645)
* feat: Add type definitions for npm module `ospec`

* Apply suggestions from code review

Co-Authored-By: Isiah Meadows <contact@isiahmeadows.com>

* fix: Disable no-unnecessary-generics for dummy o.spy() generation

* fix: Rename namespace to match thew global export's name

* fix: Properly guard against non-newable functions

...and relax TypeScript version requirement to 3.1

* feat: Simplify the assertion signature

* fix: Error in `tslint:disable` syntax

* feat: Make .notEquals() and .notDeepEquals() type safe

* feat: Update the `Definer` type...

* Allow tests to return any `PromiseLike` objects.
* Disallow anything but Error and null as argument for `done()`

* feat: Add tests for Definer` functions returning promises

* style: Prefer `import o = require('')` over `import o from` in test file
2019-08-20 12:00:30 -07:00
Kwok Chi Leong a9950fcb4a [@types/eslint] Added rules definitions for ESLint (#37704)
* [@types/map-to-obj] New type definition

* [@types/map-to-obj] Fixed typo

* [@types/eslint] Added rules definitions for ESLint

* [@types/eslint] Fixed coding style

* [@types/eslint] Updated headers

* Revert "[@types/eslint] Fixed coding style"

This reverts commit b1ac79f159efe5bd70a0295e76853f19c52045f7.

* [@types/eslint] Removed unused file

* [@types/eslint] fixed tsconfig.json
2019-08-20 11:58:27 -07:00
Zaoqi 5cca2ef9a3 luaparse: fix FunctionDeclaration & IfStatement & UnaryExpression (#37588)
* luaparse: fix FunctionDeclaration

* Update index.d.ts

* Update ast.d.ts

* Update ast.d.ts

* Update ast.d.ts

* Update ast.d.ts
2019-08-20 11:58:05 -07:00
Zaoqi d3d853ce90 luaparse: add loc & fix comments (#37665)
* Update ast.d.ts

* Update ast.d.ts

* Update ast.d.ts
2019-08-20 11:57:05 -07:00
Chia-Lun Wu 7486a70620 [@types/intercom-web] Fix and Make IntercomSettings Complete (#37764)
* Fix and make IntercomSettings complete

IntercomSettings.company.created_at should be optional.
Added multiple missing attributes in IntercomSettings.

* Fix intercom-web-tests.ts

* Add Definitions By
2019-08-20 11:56:21 -07:00
skalma 532d2c98f5 Added returntype JSX.Element to option customSearchRender (#37769)
Added returntype JSX.Element to option customSearchRender in MUIDataTableOptions
2019-08-20 11:55:15 -07:00
Kalley Powell e650ec14ab [yup] Use TestOptionsMessage consistently throughout (#37648)
* [yup] Use TestOptionsMessage consistently throughout

* With updated formatting

* full on prettier

* update to 3.1 (forgot it on the redo)

* Update tests to illustrate changes

* Add bad setLocale test

* Add example of message returning an object

* restrict return type to string | Record<string, any>

* Make return value generic, fill out remaining messages with their respective params

* Add name to maintainers
2019-08-20 11:54:53 -07:00
Gabrielle Dias 6dccf84292 Included missing props according to react-aria-modal's doc (#37654)
* Including missing props according to react-aria-modal's doc; Fixing return type of RenderTo

* Removing auto-generated file to comply with npm test result

* 4 spaces; Changed version

* Delete 2.1.0
2019-08-20 11:51:15 -07:00
maroon 8b375da0fe react-native-scrollable-tab-view DefaultTabBarProps style (#37551)
* react-native-scrollable-tab-view DefaultTabBarProps missing style

* 【react-native-scrollable-tab-view】DefaultTabBar component modify style would be simpler
2019-08-20 11:43:35 -07:00
Guillaume VanderEst fea56cdd61 bwip-js - Add Browser implementation of the BwipJs function (#37548)
* Add Browser implementation of the BwipJs function

* Use $ExpectType in unit test for types
2019-08-20 11:22:57 -07:00
Oliver Joseph Ash 8266be6d79 Node: specify UnhandledRejectionListener reason param type (#37751) 2019-08-20 11:13:46 -07:00
Patrick Weygand d14d57cea2 Add typings for tti-polyfill (#37731)
* Add typings for tti-polyfill

* fix minValue definition
2019-08-19 16:06:38 -07:00
fivitti 21a2f12b2b Add mergerino type definitions (#37712) 2019-08-19 15:58:49 -07:00
Adam BergmanandPranav Senthilnathan 99bff85ef4 Add types for raf-schd (#37582)
* [raf-schd] Add types for raf-schd

* Remove note from header

* Update Schedule interface

Co-Authored-By: Pranav Senthilnathan <pranav.senthilnathan@live.com>

* Enable esModuleInterop

* Skip esModuleInterop
2019-08-19 15:43:36 -07:00
Candid Dauth 7efed2a5e2 Add typings for wav-encoder 1.3 (#37727) 2019-08-19 15:41:16 -07:00
Kamontat Chantrachirathumrong 00ac11f1e1 Add new npm package called: omelette (#37733)
* Create index.d.ts

* Create omelette-tests.ts

* Create tsconfig.json

* Create tslint.json

* Update omelette-tests.ts

* remove Array<T>

* support ts2.7 more

* Update omelette-tests.ts

* Update omelette-tests.ts
2019-08-19 15:36:42 -07:00
Joris 9c1db51afd Add types for react-immutable-proptypes (#37746) 2019-08-19 15:26:49 -07:00
Andrew Hill ed915d5618 Add asyncUtilTimeout to Config (#37734) 2019-08-19 15:09:59 -07:00
izgeorge 39eddf69f1 allow loop to be boolean or number (#37749) 2019-08-19 15:09:23 -07:00
Juliette Regimbal 853cc1c8da Add headless function for Firefox Options (#37752) 2019-08-19 15:08:48 -07:00
Ifiok Jr aa5b9deff7 feat: update testing-library__react (#37705)
Add pure module types
2019-08-19 15:05:51 -07:00
Jeroen ClaassensandPranav Senthilnathan bbe8520b9e fix(jest-environment-puppeteer): Class & Exports (#37647)
* fix(jest-environment-puppeteer): Class & Exports

This makes the typings actually compatible to create your own test
environment and not just as part of the bigger jest-puppeteer package.
How to do this is pretty much what the test covers. One of the reasons
to do this is to write a handler where Puppeteer takes screenshots after
each failed test, as discussed [here](https://github.com/smooth-code/jest-puppeteer/issues/131)

* Change to `export =` syntax

Co-Authored-By: Pranav Senthilnathan <pranav.senthilnathan@live.com>

* Fix the last stuff requested
2019-08-19 14:55:15 -07:00
Jordy van Dortmont bd2ed19428 Extend the gulp-autoprefixer Options type (#37671)
* Extend the gulp-autoprefixer Options type

* Fix TypeScript version
2019-08-19 14:20:03 -07:00
Imran Nazir d4459b6afc MicroModal.close missing optional parameter from types (#37682)
* addition of targetModal parameter for close

`micromodal.close` can be passed a parameter for the target modal this is missing from the types

* missing ;
2019-08-19 14:18:20 -07:00
Nick Hehr d7cdee2d0b Update ESC API, include Collection class (#37572) 2019-08-19 14:14:08 -07:00
Sergio Arbeo 94f0f93013 Update chromecast-caf-receiver union types to enum in cast.framework.system (#37587)
* Update chromecast-caf-receiver union types to enum in cast.framework.system

* Fix lint

* Fix indentation
2019-08-19 14:10:46 -07:00
Simon Tabor 14f337ea02 [sonic-boom] Add extra constructor parameter types (#37589)
* Add minLength and sync params to sonic-boom

Two new optional params were added to the constructor in 0.7 - minLength and sync. As they're optional, they aren't breaking changes

* Add extra params to sonic-boom
2019-08-19 14:07:14 -07:00
Roman Charugin ce4df95708 Add types for scroll (#37592)
* Add types for scroll

* Remove tslint-rules and change version of the target

* Fix linter errors
2019-08-19 14:05:44 -07:00
Dylan Tack 0069742408 update Stripe.IEvent with request object (#37604) 2019-08-19 14:03:44 -07:00
C Lentfort af99f6ea12 feat(react-native): add global URLSearchParams (#37615) 2019-08-19 13:59:40 -07:00
James Mulholland 55458bae44 React stripe elements token type (#37619)
* prettify

* add TokenType to TokenOptions on createToken
2019-08-19 13:55:58 -07:00
Gunnar 06ddc1ccad create jsmediatags 3.9 (#37180)
* jsmediatags initial

* linting updates

* tag and type updates

* remove currently unused

* unused files error

* consolidate to single index file

* Revert "consolidate to single index file"

This reverts commit fe0b24b49eaa1c8a6ff7ce581980dcc3c5e583a2.

* further restructuring

* Further fixes

* update paths

* Revert "update paths"

This reverts commit 4711549a8e930f548546bbb1d405b015cadcd8c7.

* more attempts at path updates

* simplify jsmediatags namespace

* strip useless comments
2019-08-19 13:37:28 -07:00
Nacim Goura 2443a4722e complete return of DeleteWriteOpResultObject (#37501) 2019-08-19 13:23:00 -07:00
agathekieny 352d73d639 Add package @react-native-community/cli (#37528)
* react-native-community/cli : add types

* react-native-community/cli : add tests and types

* correct types

* pass test

* pass tests with func returns  promise void

* add line breaks for tests

* rename interfaces

* add default function of package
2019-08-19 13:11:24 -07:00
Léo Joseph 15ee6fb20a Add type number for parameter named rule on method scheduleJob (#37549) 2019-08-19 13:05:17 -07:00
Sebastian Silbermann 4b81edcaf8 feat(react-dom): Add async act (#37554)
* feat(react-dom): Add async act typings

* Update version

* Normalize typing with react-test-renderer
2019-08-19 13:02:30 -07:00
Fahad Mansoor f0708acb4b Fixed Type definition to match the actual implementation (#37556)
Now you are able to remove from the `Session Storage`. As the previous implementation only removed from the local storage ( or whatever the current storage type was provided), this was not inline with the underlying implementation.
2019-08-19 12:57:27 -07:00
d3a31dec76 D3 V3 (Added Index as optional parameter in interface Axis tickformat) (#35994)
* Added Index as optional parameter 

Index can be use in tickFormat function. Hence added it as optional Parameter.

* Index updated

* added author

* updated the version

* Added console

* Test Fix

* Update types/d3/v3/d3-tests.ts

Co-Authored-By: denisname <denisname@users.noreply.github.com>

* Update types/d3/v3/d3-tests.ts

Co-Authored-By: Ron Buckton <ron.buckton@microsoft.com>
2019-08-19 12:39:35 -07:00
ltlombardi 2113856740 Knockout mapping return properly typed with TS 2.8 (#36025)
* Small fix

* - fixed KnockoutMappingOptions wrong typing.
- overhall of typing.
- add JSDoc.
- add Undocumented when method doesn't have documentation.
- complete new tests.

* Small fixes for tslint

* Modification to tslint rules

* Changes to match tslint rules

* Improve KnockoutObservableType with Conditional Typings.
- Upped TS version
- Removed semicolons, changed to double quotes
- Better formating

* Mapping of object of type 'any' returns 'any'
- Instead of returning KnockoutObservableType<any> that is useless

* Remove some rules not working as expected

* Remove duplicate not needed any more

* Small fixes

* Small improvement in documentation

* Remove knockout.mapping plugin tests.

* Remove knockout.mapping plugin tests.

* Small fix

Co-Authored-By: Ron Buckton <ron.buckton@microsoft.com>

* Support for more Primitives.
Remove Primitive type from  global

* Small simplification

* Add support for ReadonlyArray

* Formatting

* Reverted quote to maintain consistency with new prettier formating rules in repo.

* Remove bigint. Not supported in TS 2.8
2019-08-19 12:37:55 -07:00
TypeScript Bot 25be8aba83 Update CODEOWNERS (#37750) 2019-08-19 12:36:47 -07:00
Luis Arias 869de6421f Fix passReqToCallback type in passport-azure-ad (#36030)
* Fix passReqToCallback type

Fixes the following compilation error:

error TS2345: Argument of type '{ allowHttpForRedirectUrl: true; clientID: string; clientSecret: string | undefined; identityMetadata: string; passReqToCallback: boolean; redirectUrl: string; responseMode: "form_post"; responseType: "code id_token"; scope: string[]; validateIssuer: false; }' is not assignable to parameter of type 'IOIDCStrategyOption'.
  Object literal may only specify known properties, and 'passReqToCallback' does not exist in type 'IOIDCStrategyOption'.

69     passReqToCallback: false,

* Update according to feedback from @rbuckton
https://github.com/DefinitelyTyped/DefinitelyTyped/pull/36030#discussion_r293151320

* Fix leftover "true"
2019-08-19 12:05:20 -07:00
orblazer 65355267e7 [@types/vuelidate] Add return for async rule (#36159)
* Add return for async rule

* Add missing validation properties

* Remove useless property

* Strict type of custom rules
2019-08-19 12:00:38 -07:00
Connor Fitzgerald 26c41b10db oracledb - Implemented generics for DB results (#37747)
* WIP updating oracledb typings to 3.1.2

* WIP

* SODA WIP

* .d.ts done. Needs tests writing

* Finished

* Added pool stats methods. Fixed bug with BindParameter being string or number

* Making _enableStats optional

* Allow parameters to be nulled

* Capitalise namespace

* Update contribution URL

* Revert "Update contribution URL"

This reverts commit f329d293dceaf44832ae3424753c1ccb98378df2.

* Update contribution URL

* Change poolAlias to string. SODA not in preview. Add BindParameters interface

* getRows should not return void

* Added pino-std-serializers

* Adding @types/clear

* Upgrading oracledb to 4.0

* Retained oracledb v3 files. Made requested changes

* Added Buffer to BindParameters

* Implemented generics

* Added tests
2019-08-19 11:25:49 -07:00
Valentin Agachi fff503732c [promise-sftp] Return array from list() (#37738) 2019-08-19 11:24:20 -07:00
orangain ac96b67e36 [react-material-ui-form-validator] Update to v2.0.9 (#37626)
* [react-material-ui-form-validator] Change return type of ValidatorForm.isFormValid for v2.0.7

react-form-validator-core: v0.6.2

* [react-material-ui-form-validator] Add ValidatorForm.removeValidationRule() for v2.0.9

react-form-validator-core: v0.6.4
2019-08-19 11:23:47 -07:00
Burak Shen ab424e5e88 Update index.d.ts (#37693) 2019-08-19 11:21:40 -07:00
domschmidt 1686f3c4be fix for missing 'week' definition (#37740) 2019-08-19 11:21:24 -07:00
Niels fa7211a481 Change 'custom' property in 'Data' Interface (#37739)
* change custom property in data to object

* property can also be a number
2019-08-19 11:19:11 -07:00
Nick Winans 20565740b3 Add contentStyle to Tooltip (#37729) 2019-08-19 11:17:12 -07:00
Slava Fomin II a5200306f9 Extended "overrideBrowserslist" option to support environment maps (#37642) 2019-08-19 11:17:00 -07:00