Commit Graph
64027 Commits
Author SHA1 Message Date
Tiago dc4b0cbfa4 Fixed dirty-chai typing (#37658)
To handle Promise type correctly, the result must be a PromisedAssertion like as chai-as-promised
2019-08-19 11:00:18 -07:00
Alexey Immoreev 0a3b8c0096 Recluster extends EventEmitter (#37707) 2019-08-19 10:59:57 -07:00
Joe Flateau 93177988c3 adding myself as a video.js maintainer (#37565)
per #37037
2019-08-19 10:59:38 -07:00
Eric Wang 469a9f65da Additional types for webpack (#37434)
* Add type definition for webpack

* Add types to webpack

* Add types to webpack

* fix test

* fix linting

* fix ts2.9

* fix lint

* change interface to class with static methods

* fix linting

* fix linting

* fix lint

* add requirefn

* .

* ac
2019-08-19 10:48:40 -07:00
Michael Gale b1963014c3 Added missing Chance.postcode() to @types/chance (#37560)
* Added missing Chance.postcode()

* Added test for chance.postcode()#
2019-08-19 10:44:10 -07:00
Crindzebra Sjimo c376b9fcd1 type fixed🐞 (#37699)
Convert error type `Error` to `Error|null`
Fixed WriteCallback's param
2019-08-19 10:42:07 -07:00
Teodor Tanasoaia 7953464b17 update operators to be on par with lua 5.3 (#37694) 2019-08-19 10:41:40 -07:00
skalma 7792bdb6d1 Update to reflect types for mui-datatables v2.8.0 (#37701)
* Update index.d.ts

Added 'custom' to type FilterType and added searchText as string to MUIDataTableOptions

* Update to reflect types for mui-datatables v2.8.0

- Added interface type MUIDataTableFilterOptions as: 
export interface MUIDataTableFilterOptions {
    names?: string[];
    display?: (filterList:string[], onChange: any, index: number, column: any) => void;
    logic?: any;
}
- Changed type of filterOptions in MUIDataTableColumnOptions to MUIDataTableFilterOptions (breaking change if filteroptions is used)
- Added customFilterListRender?: (value: any) => string; to MUIDataTableColumnOptions 
- Added to MUIDataTableOptions: 
     - selectableRowsOnClick?: boolean;
     - rowsExpanded?: any[];
     - onSearchOpen?: () => void;
     - customSearchRender?: (searchText: string, handleSearch: any, hideSearch: any, options: any) => React.Component;

* Added whitespace after colon in line 108, pos 27

To correct travis build failure

* Changed typing of logic in MUIDataTableFilterOptions

As per review i changed the typing of logic in MUIDataTableFilterOptions from <any> to <logic?: (prop: string, filterValue: any[]) => boolean>
2019-08-19 10:41:22 -07:00
Melvin Groenhoff e719acfd6e Remove i18next and i18next-express-middleware and update dependents (#37555)
* Remove i18next and i18next-express-middleware

* Update i18next-node-fs and i18next-printf-postprocessor to use bundled i18next typings.

* Update i18next-ko
2019-08-19 10:39:49 -07:00
Victor Tyazhelnikov 98cdab1985 Fix isMobilePhone function definition (#37577) 2019-08-19 10:39:00 -07:00
Elizabeth Samuel eda7a2372e [office-js] [office-js-preview] (Outlook) Alphabetize and clean up (#37681)
* [office-js] [office-js-preview] (Outlook) Alphabetize and clean up

* Minor cleanup
2019-08-19 10:38:15 -07:00
Waseem Dahman f104ec4ddf add jest.advanceTimersToNextTimer (#37713) 2019-08-19 10:34:07 -07:00
kyletsang 7afa2627eb feat(reactstrap): Added range to list of allowable CustomInput types (#37723) 2019-08-19 10:33:10 -07:00
Edoardo Morandi 6935049547 Updated hashmap to 2.3.0 (#37460)
* Updated hashmap to 2.3.0

* Changed from quotes to double quotes

* Chaining both `delete` and `remove` funtions

* Reverted to default lints and fixed accordingly
2019-08-19 10:30:07 -07:00
Wilfred Tan 1f2dadb728 @types/notp { New type definition } (#37650)
* [@types/notp]
Initial commit

* [@types/notp]
Code revision and filling up test case

* [@types/notp]
+ Added missing optional 'window' to 'TOTPVerifyOpt'.
# Shortened the names for the interfaces (final)
# Minor edits to comments
2019-08-19 10:25:29 -07:00
Yuri Drabik 235b3182f1 Added types for module compress.js (#37675)
* Added types for module compress.js

* Fixed definition of compress.js
2019-08-19 10:18:47 -07:00
David Kartnaller 2d6e3c5ee4 typings are now bundled within the package (#37725) 2019-08-19 10:10:42 -07:00
Silas Rech 63dccaf6c4 Add .getViewsManager() (#37741) 2019-08-19 10:10:01 -07:00
Eric Wang 5c05e66482 Export interfaces for yarn lockfile (#37742)
* Export interfaces for yarn lockfile

* fix linting
2019-08-19 10:05:41 -07:00
Oliver Joseph Ash 3cd6ad7fa4 Express: use generics for params, default to dictionary (#37718)
* Revert "Express: improve type of `Request['params']` aka `req.params` (#37502)"

This reverts commit 9aa863ef23.

* Express: use generics for params, default to dictionary

* Lint

* Bump all dependants

* Spacing

* Bump dependants

* Bump dependants

* Bump dependants

* Bump dependants

* Bump dependants

* Bump dependants

* Bump dependants

* Bump dependants

* Bump dependants

* Bump dependants

* Bump dependants (via tests)

* Bump dependants

* Bump dependants (via tests)

* Bump dependants

* Simplify test

* Hoist imports

* Tidy test

* Add tests

* Add reasons

* Remove redundant params

* Add tests

* Format

* Remove redundant params

* Add tests

* Add JSDoc

* Improve comment

* Improve comment
2019-08-18 17:47:36 -07:00
Simon Jespersen 518700405e Add types for @testing-library/cypress (#37692) 2019-08-17 13:53:53 +01:00
Alan Agius 017b0245d9 webpack: add deprecated to futureEmitAssets (#37623)
* webpack: add deprecated to futureEmitAssets

* webpack: add library object type
2019-08-17 05:55:00 +01:00
Svet Nikolov 9a8eef8fec feat(rijndael-js): Added type definitions for the rijndael-js package (#37691) 2019-08-16 17:15:20 -07:00
Ryoga Kitagawa 4e61a08d6b More generics flatten. (#37398) 2019-08-16 16:59:33 -07:00
toddrobinsonce 4884c3a2c8 stripe: Add missing field to invoice and missing field value option to subscription (#37685) 2019-08-16 15:13:53 -07:00
Svet Nikolov 41fa048193 feat(pkcs7-padding): Added types for the pkcs7-padding package (#37687) 2019-08-16 15:12:22 -07:00
Hossein Saniei 6918b0f6bb [@types/mongodb] reorganize tests into different meaningful test files (#37595)
* fix(@tyeps/mongodb): reorganize tests into different files (old test are mostly untouched)

* fix: add support for quering arrays by element type

* fix: $not and $regex and $mod queries

* fix: move $text to root query

* fix: accept regex options only when the field type is string

* fix: $where types in filterQuery

* fix: use array operators only for array field

* feat: add extensive filterQuery tests

* fix: readd useUnifiedTopology to tests

* fix: add regex support to $not operator
2019-08-16 14:16:02 -07:00
Evan Shortiss 1d379aed92 add pixl-xml types (#37683)
* add pixl-xml types

* address linter errors
2019-08-16 12:56:01 -07:00
Connor Fitzgerald 8b1cf09315 oracledb - Add Buffer to BindParameters (#37678)
* 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
2019-08-16 11:54:45 -07:00
Ben Salili-James c2b584cfdc Add editorKey and textDirectionality props to draft-js (#37674) 2019-08-16 11:52:07 -07:00
ikokostya 89e4834fc3 [pg] Add connectionTimeoutMillis and keepAliveInitialDelayMillis options to ConnectionConfig (#37635) 2019-08-16 11:51:23 -07:00
Tim Yates bafd802370 [@testing-library/vue] Update to 2.0 and relax dependency versions (#37676)
* [@testing-library/vue] Update to 2.0

* [@testing-library/vue] Relax dependency versions

vue-router and vuex are *not* listed as dependencies of @testing-library/vue. They are essentially optional, but we need them for the type definitions.

Relaxing these constraints makes it less likely that npm/yarn will install a private copy under `@types/testing-library__vue/node_modules/` simply becuase the user's package declares an older minor or patch release.
2019-08-16 11:50:29 -07:00
Charmander 2ffd0e0828 pg: Update return type for query() callback overloads (#37661)
`Client.prototype.query` switched from returning a (thenable) `Query` when given a callback to returning nothing in pg@7.0.0. `Pool.prototype.query`’s history is similar.
2019-08-16 11:44:09 -07:00
Gabriel JUCHAULT 8f18d93086 webtorrent: add missing fields to Torrent, create Piece interface (#37609)
* webtorrent: add missing fields to Torrent, create Piece interface

* chore: bump package version in comments

* update tests

* fix: use only major/minor

* fix: pieces can have null values

* fix: build
2019-08-16 11:41:42 -07:00
Harris Lummis ae10522911 [pino] Extend stdSerializers Object (#37477)
* [pino] Extend stdSerializers Object

- Add missing methods to stdSerializers object:
  - mapHttpRequest
  - mapHttpResponse
  - wrapErrorSerializer
  - wrapRequestSerializer
  - wrapResponseSerializer
- Import types from pinoStdSerializers
- Replace existing property types of stdSerializers with imported types
- Add tests for serializers
- Export return types of serializers

* [pino] Bump Minimum TypeScript Version

- dependency  requires minimum TypeScript version 2.7, so bump
  pino minimum version from 2.3 to 2.7

* [koa-pino-logger] Bump Minimum TypeScript Version

- Dependency 's minimum TypeScript version bumped to 2.7, update minimum version here as well

* [pino] Update Author List

- Add self as definition author :)

* [pino] Add Comment to Tests

- Add comment to explain additional tests, trigger a new Travis build

* [pino-http] Bump Minimum TypeScript Version

- Bump minimum TS version to satisfy minimum version of dependency pino

* [pino-multi-stream] Bump Minimum TypeScript Version

- Bump minimum TS version to satisfy minimum version of dependency pino
2019-08-16 11:37:03 -07:00
Teodor Tanasoaia dd3969787b add VarargLiteral to FunctionDeclaration parameters (#37662) 2019-08-16 11:30:51 -07:00
Tony Narlock e587fea7e6 video.js: Fill in missing controlBar option (#37632) 2019-08-16 11:30:02 -07:00
Andrew Schmadel 91f947cfb1 lodash: infer return type of flattenDeep when using _.chain (#37443)
* lodash: infer return type of flattenDeep when using _.chain

* lodash: additional tests for _().flattenDeep()

* lodash: remove unnecessary infer

* lodash: better type inference for _.flattenDeep()
2019-08-16 11:28:57 -07:00
Alex Jerabek 3ce08c0fc0 [office-js, office-js-preview] Deprecating number version of isSetSupported (#37656)
* Increased urgency around using strings in isSetSupported

* Fixing param name

* Adding deprecated tag

* Addressing feedback

* Fixing spacing
2019-08-16 11:27:58 -07:00
David Sommerich 1f0451d588 Switch await-timeout from export default to export = (#37663) 2019-08-16 11:25:14 -07:00
Oliver Joseph Ash 9aa863ef23 Express: improve type of Request['params'] aka req.params (#37502)
* Express: improve type of `Request['params']` aka `req.params`

* Lint

* Hoist

* Fix tests

* Fix tests

* Dot notation

* Fix tests

* Fix tests
2019-08-16 11:05:20 -07:00
Tim Yates 4648d9453d Add types for @testing-library/vue (#37655) 2019-08-16 05:57:09 +01:00
Jack Allen 00a6bcfbfc [@brainhubeu/react-carousel] Added new package (#37617) 2019-08-15 17:39:43 -07:00
Andrew Lineyschikov 59cb9669eb Add types for Leaflet.UTM (#37625)
* Add types for Leaflet.UTM

* Add dt-header check for leaflet.utm
2019-08-15 17:37:27 -07:00
Jeroen Claassens 592e81a21c [leaflet-draw] Upgrade leaflet-draw compatibility to latest version (#37372)
* Upgrade leaflet-draw to new version

- Formatted the code with VSCode formatter
- Made some parts easier to read
- Included new properties where necessary
- Included the Localization namespace to cover all the localization
types used by leaflet-draw
- Use actual JSDoc tags to document the code (improving VSCode IntelliSense)
- Wherever the JSDoc would say "see code", they are now replaced
with the actual code that it is defaulted to
- Generally went through leaflet-draw's documentation and fixed what
could be fixed

Signed-off-by: Jeroen Claassens <support@favware.tech>

* Change indent to spaces
2019-08-15 17:17:49 -07:00
Eliseu Monar dos Santos 6789a2961f styled-system: Add individual border and overflow props (#37573)
* Add overflowX and overflowY properties

Add @eliseumds as contributor to styled-system

* Add individual border props to styled-system

* styled-system: bump up the version to 5.1
2019-08-15 16:09:42 -07:00
Nivesh Ravindran 787107603a react-resize-detector: Generically type withResizeDetector HoF (#37425)
* feat: generically type withResizeDetector HoF

* test: add example for HoF consumption

* feat: revert typescript version upgrade and add Omit type
2019-08-15 16:01:28 -07:00
Martin V b6c6778f4f Fix forceUpdate callback typo (#37628) 2019-08-15 15:52:01 -07:00
Alex Ilyaev 525d1d8b0f @types/promptly: Add replace property inside options (#37534)
* promptly: Add `replace` property inside `options`

Was missing `replace`, see https://github.com/moxystudio/node-promptly

* Updated promptly version
2019-08-15 15:46:37 -07:00
TypeScript Bot 1709112cb6 Update CODEOWNERS (#37538) 2019-08-15 14:51:59 -07:00