Commit Graph
25714 Commits
Author SHA1 Message Date
Andy Hanson dc028e0a39 Revert "Merge more from types-2.0 to `master (#13770)"
This reverts commit 5bce8fab2e.
2017-01-05 12:43:24 -08:00
Bradford Wagner f2d8c8ac18 Feature/fine uploader (#13768)
* Adding FineUploader typings

* noImplicitThis true

* adding tslint.json

* tslint.json -> tslint

* fixing some lintings

* fixing lintings

* removing version

* added typescript version

* defaults that are null/undefined now are | null/undefined respectively

* removed minor version from fineuploader definition, removed typescript 2 version
2017-01-05 12:37:43 -08:00
Tom Wanzek a0951d1210 d3-ease:
* [Fix]: Added interfaces and changed definitions for three classes of easing functions, which can be parameterized. Fixes #13767.
* [Enhancement]: Activated `strictNullChecks` after validation
* [Chore]: Added JSDoc comments
* [Chore]: Added linting config file.
2017-01-05 15:33:14 -05:00
Andy 5bce8fab2e Merge more from types-2.0 to `master (#13770)
* Add memoizee definitions

* Fix common issues, added doc

* Removed blank line

* fix test

* Fix test methods

* Fix check style

* Fix check style

* Fixing semver header

* Fixing semver header

* `memoizee`: Clean up types

* Types 2.0 - Fix JS-quantities (#12739)

* Enable strict null checking per readme FAQ.

* Add tslint.json.

* Improve test file with project spec.

* Fix js-quantities d.ts, with adjustment of test.

* Add trailing newline to tslint.

* Simplify functional interface per linter.

* js-quantities: add readme examples to tests

* js-quantities: fix & clean declaration

* d3-selection: Mark before param of insert() as optional (#13090)

Selection<etc>.insert functions perfectly well without a `before` selector -- it does so in many d3 official examples.

This corrects the type signature to mark it as optional.

* [react-intl] bugfix for #12716 (#12906)

* fix for issue introduced in https://github.com/DefinitelyTyped/DefinitelyTyped/pull/12716

* injectIntl is now usable as class decorator

* fixed test

* use inferface instead of type

* format document

* fix chai-json-schema styling (#13537)

* googlemaps: Allow Marker.setAnimation(null) and Marker.setMap(null) (#13240)

* googlemaps: Allow Marker.setAnimation(null)

 * Also, turn on strictNullChecks
 * Allow new google.maps.Map(null) since it's technically possible with Google's example code from the docs

Signed-off-by: Iqbal Yusuf <iyusuf@corelogic.com>

* googlemaps: Allow Marker.setMap(null)

 * Also, add more test code from the Google Maps API documentation

Signed-off-by: Grant Hutchins <ghutchins@pivotal.io>

* Added the brand property to the StripeCardData and fix style issues, lint (#13084)

* Add the "brand" field to StipeCardData
Added the StipeCardDataBrand type.
Added the `brand` property to the `StripeCardData` declaration with the type
`'Visa' | 'American Express' | 'MasterCard' | 'Discover JCB' | 'Diners Club' | 'Unknown'`
Reference: https://stripe.com/docs/api#card_object

* Run linter, fix issues. set --strictNullChecks.
Unsure about ambient declaration:
Removed as it seemed to be in error:
  1. case was not correct
  2. the export was the type of the global which is unconditionally defined.
  3. this module does not seem a suitable candidate for a UMD declaration.

* Use header version of 0.0; explain Stripe versioning in comments

* Restore global

* Added tests
2017-01-05 12:05:44 -08:00
Ben Katz ce5eb0cc2c fix enzyme CommonWrapper.reduce function to return R instead of R[] (#13763) 2017-01-05 12:02:09 -08:00
denisname 694b16f5b0 CKEditor: add properties in buttonDefinition (#13636)
* CKEditor add icon in buttonDefinition

Add icon and iconOffset optional properties in buttonDefinition
interface

* Test

Add test

* Confirm to style
2017-01-05 11:57:15 -08:00
Craig 93357460d2 chore(selenium-webdriver): split apart test files (#13573)
- splitting apart test files
- fix single and double quotes for consistency - replace " for '
- updated ActionSequence sendKeys (https://github.com/SeleniumHQ/selenium/blob/master/javascript/node/selenium-webdriver/lib/actions.js#L368)
- updated WebElement sendKeys (https://github.com/SeleniumHQ/selenium/blob/master/javascript/node/selenium-webdriver/lib/webdriver.js#L2056)
2017-01-05 11:56:02 -08:00
Jan Molak 470febda1f Support for Cucumber event listeners for TypeScript (#13552)
* Added the Listener and Event types so that you can register custom cucumber event listeners in TypeScript

Contribution based on the [Serenity/JS implementation](https://github.com/jan-molak/serenity-js/blob/3e733369f4fd456239c4d97ef20ae4447e407799/src/serenity-cucumber/cucumber.d.ts)

* Removed myself from the list of contributors, because being there apparently breaks some regex somewhere ....

* Replaced non-existent 'assert' type reference with a dummy implementation based on https://github.com/DefinitelyTyped/DefinitelyTyped/blob/4869992bc079b88280b9ff91213528904109e8ae/json-merge-patch/json-merge-patch-tests.ts

* Added myself to the list of contributors as per @andy-ms instructions. Thanks!
2017-01-05 11:53:37 -08:00
Michael Jones f82552638c Improve keyMirror types & tests (#13738)
Using mapped types from Typescript 2.1.

The type returned is as we might expect from keyMirror. In the test case
of:

  keyMirror({key1: null, key2: null})

We get the type:

  { key1: 'key1'; key2: 'key2'; }

Instead of:

  { [key: string]: string; }

Which is what we got before.

Both check lines in the test file fail with the previous type
definition.
2017-01-05 11:38:53 -08:00
Andy a31c3dd12f Clarify pull request template: new packages must be linted (#13760) 2017-01-05 11:23:53 -08:00
Tom Wanzek 7eeb19eab6 Merge remote-tracking branch 'DefinitelyTyped/master' 2017-01-05 14:14:46 -05:00
Tristan Jones 989a69ee7c Node emoji (#13764)
* Added definitions for node-emoji

* Added test for node-emoji
2017-01-05 11:11:57 -08:00
Pierre Chaussalet 8b1d75f1b7 Fix appendHash property type in hasher 2017-01-05 10:52:30 -08:00
Daniel Rosenwasser 33ef965fef Merge pull request #13674 from smhc/patch-1
Added option comparator parameter to IFilterOrderBy
2017-01-05 12:42:52 -05:00
Mohamed Hegazy 5757550c40 Do not use Node and NodeList in rx-lite defintions (#13737)
* Fix https://github.com/DefinitelyTyped/DefinitelyTyped/issues/13733: Do not use `Node` and `NodeList` and instead define `DOMEventTarget`
- Also adds NodeEventTarget support

* Fix lint errors

* Make selector take variable number of arguments

* Make selector take variable number of arguments
2017-01-05 09:36:46 -08:00
Martin D ff2d63b83b TinyMCE typings (WIP) (#13728)
* TinyMCE typings

* TinyMCE declaration file

* Update tsconfig.json

Changed `strictNullChecks` to true and added `noImplicitThis`

* Update index.d.ts

Added namespace

* Update index.d.ts
2017-01-05 09:26:08 -08:00
BrunoLM a1cbc2a5dc Add definitions for mockdate package (#13754)
* Add mockdate package definition file

* Fix mockdate comments

* Apply revision checks on mockdate

Add tslint.json
Enable strciNullChecks
Change definition to export functions intead of default.

* Fix mockdate to export as namespace
2017-01-05 08:30:40 -08:00
Tobias Kündig fc5b949e78 Added definitions for KyleAMathews/deepmerge (#13752) 2017-01-05 06:57:15 -08:00
jKey Lu 7f88646e17 Fix koa-compose typings and remove koa-compose 2.3.1 (#13751)
* Fix koa-compose typings

* remove koa-compose 2.3.1
2017-01-05 06:56:21 -08:00
jKey Lu fcd23452ba Type definitions for keygrip 2017-01-05 22:50:17 +08:00
cervengoc 763a5e57a8 Add ko.ignoreDependencies 2017-01-05 11:11:47 +01:00
Irmantas Zenkus 7655929542 Type definitions for siema 2017-01-05 10:07:08 +02:00
Michael Loughry d20a983f78 Allow @types/webpack-env to coexist with @types/node (#13741)
* Allow @types/webpack-env to coexist with @types/node
- Took suggestion from `rikoe` in issue #11324

* Increment header version
2017-01-04 22:17:35 -08:00
Horiuchi_H 7dfdbd8078 Merge pull request #13651 from evictor/patch-1
JasmineAjaxRequest.data() def
2017-01-05 14:03:00 +09:00
JJJ 3796367a4f Add clndr types (#13721)
* Add clndr types

* remove unused import

* export interfaces
2017-01-04 19:12:39 -08:00
Paul Lockwood 08fca8e2d3 First attempt adding browser-bunyan types (#13717)
* First attempt adding browser-bunyan types

* package.json only need dependencies

* Addressed all comments made by andy-ms
  https://github.com/DefinitelyTyped/DefinitelyTyped/pull/13717

* export * from "@types/bunyan" ->
export * from "bunyan";

Trying literally how andy-ms suggested

* Adding package version as-per base64-js example

* Changed back to copy/paste version of typings
 - browser-bunyan is a fork of bunyan
 - Errors from Travis CI were not helping so it seems wise to revert to a known good

* Resolved linting issues
 - Tested with: yarn lint -- browser-bunyan

* Trying: export * from "bunyan";
 - as suggested by andy-ms
2017-01-04 16:19:37 -08:00
Bowen Ni c65a20d6df Update 'ncp' to version 2.0.0 (#13742)
* Update ncp-tests.ts

* Update index.d.ts
2017-01-04 15:31:24 -08:00
avidenic 5358bfd10a added typings for jQuery Mask plugin (#13706)
* added typings for jQuery Mask plugin

* turned on null strict checking

* type fix

* added missing semicolon
2017-01-04 14:33:32 -08:00
Roman 6d6e460e2a Disallow arbitrary objects in clipboard.write. (#13595) 2017-01-04 13:16:58 -08:00
James Nail 844164f7c0 enhanced cors package, up to v2.8 (#13593)
* enhanced cors package, up to v2.8

* added missing test cases
2017-01-04 13:13:52 -08:00
Olivier a218626522 * Add JsDocs on : (#13558)
* [`MapOptions`](https://developers.google.com/maps/documentation/javascript/reference#MapOptions)
(comments are copied as-is from official Google documentation, so properties zoom and center are indicated as Required, even if there seems to be optionals)
 * [`MapTypeId`](https://developers.google.com/maps/documentation/javascript/reference#MapTypeId)
 * [`MapTypeControlOptions`](https://developers.google.com/maps/documentation/javascript/reference#MapTypeControlOptions)
 * [`PanControlOptions`](https://developers.google.com/maps/documentation/javascript/reference#PanControlOptions)
 * [`RotateControlOptions`](https://developers.google.com/maps/documentation/javascript/reference#RotateControlOptions)
 * [`ScaleControlOptions`](https://developers.google.com/maps/documentation/javascript/reference#ScaleControlOptions)
 * [`StreetViewControlOptions`](https://developers.google.com/maps/documentation/javascript/reference#StreetViewControlOptions)
 * [`ZoomControlOptions`](https://developers.google.com/maps/documentation/javascript/reference#ZoomControlOptions)
 * [`ControlPosition`](https://developers.google.com/maps/documentation/javascript/reference#ControlPosition)
 * [`FullscreenControlOptions`](https://developers.google.com/maps/documentation/javascript/reference#FullscreenControlOptions)
* Add Properties [`MapOptions.fullscreenControl`](https://developers.google.com/maps/documentation/javascript/reference#MapOptions) and [`MapOptions.fullscreenControlOptions`](https://developers.google.com/maps/documentation/javascript/reference#MapOptions)
* Add property [`MapOptions.signInControl`](https://developers.google.com/maps/documentation/javascript/reference#MapOptions)
* Move `clickableIcons` in `MapOptions` interface to respect alphabetic sort of properties.
* Remove `mapMaker` property : this property is not documented and does not appear in google maps Javascript.
2017-01-04 13:01:58 -08:00
oosoloviov 162d8bb776 Update index.ts (#13539)
Adding this fild will solve the problem of module build failed: Error:  Property 'defaults' does not exist on type 'typeof Chart'. And You can use this Chart.defaults.global in ts
2017-01-04 12:59:18 -08:00
Andy bc1da27217 node: path.join arguments must be strings (#13715) 2017-01-04 12:57:51 -08:00
Andy c839a6579f Add missing "noImplicitThis": true (#13736) 2017-01-04 12:16:33 -08:00
Andy 3d6a15ee16 Strip BOM from all files (#13735) 2017-01-04 12:07:53 -08:00
António Marques bf1450711a Add pg-query-stream typings (#13729) 2017-01-04 11:26:56 -08:00
Andy 559daaaea9 Fix ace tests (#13734)
They formerly did not run because the `/// <reference>`s for tests were not placed at the top of the file, so they were regular comments.
2017-01-04 11:04:09 -08:00
Tom Crockett b06425da6d Enzyme: add signature for exists method (#13720) 2017-01-04 10:36:58 -08:00
Aluan Haddad 25ecee9513 Added the brand property to the StripeCardData and fix style issues, lint (#13084)
* Add the "brand" field to StipeCardData
Added the StipeCardDataBrand type.
Added the `brand` property to the `StripeCardData` declaration with the type
`'Visa' | 'American Express' | 'MasterCard' | 'Discover JCB' | 'Diners Club' | 'Unknown'`
Reference: https://stripe.com/docs/api#card_object

* Run linter, fix issues. set --strictNullChecks.
Unsure about ambient declaration:
Removed as it seemed to be in error:
  1. case was not correct
  2. the export was the type of the global which is unconditionally defined.
  3. this module does not seem a suitable candidate for a UMD declaration.

* Use header version of 0.0; explain Stripe versioning in comments

* Restore global

* Added tests
2017-01-04 09:20:13 -08:00
Josh Hargreaves e8088fd229 Add missing onMomentum* properties to ScrollView. (#13732)
Added missing definitions for onMomentumScrollBegin & onMomentumScrollEnd.
2017-01-04 09:07:44 -08:00
John Reilly 44422f775b Merge pull request #13730 from stonio/patch-5
[jQuery] Minor typo
2017-01-04 16:19:15 +00:00
stonio e8761854cd Update index.d.ts 2017-01-04 16:56:52 +01:00
John Reilly 061df283a7 Merge pull request #13726 from stonio/patch-4
[jQuery] Fix typos
2017-01-04 15:32:06 +00:00
Colton J. Provias e715f19af9 Adding extension functions to Codec (#13718) 2017-01-04 06:39:32 -08:00
stonio 52350a2c51 Update index.d.ts
Fix basic typo
2017-01-04 15:26:41 +01:00
Dolan 2a888886b1 Typings for xml2json (#13711)
* typings for xml2json

* carried out suggestions made by andy-ms

* fixed: 9:1 unified-signatures  These overloads can be combined into one signature taking `{} | string`.
2017-01-04 06:25:46 -08:00
António Marques d5b790f578 Allow document size to be specified as a string (e.g. "a4") 2017-01-04 12:43:58 +00:00
António Marques 24001b9657 Fix spelling of paragraphGap option 2017-01-04 12:43:49 +00:00
KostiaTretiak 7c6e2e4521 Fixed declarations for 'assert-plus'. 2017-01-04 02:03:07 +02:00
Mohamed Hegazy a5a69f514a Refactor rx (#13652)
* Move rx.virtualtime to its own package

* Update headers

* Update module name

* Move rx.time to its own package

* Update header and module name

* Move rx.testing to its own package

* Update headers and module name

* Move rx.joinpatterns to its own package

* Update headers and module name

* Move rx.expermental to its own package

* Update headder and module name

* Move rx.coincidence to its own package

* Combine rx.coincidence-lite.d.ts and rx.coincidence.d.ts into one file

* Update header and module name

* Move rx.binding to its own package

* combine rx.binding into index.d.ts

* Update headers and module name

* Move rx.backpressure to its own package

* Fix headers and update module name

* Move rx.aggregte to its own package

* Fix headers and update module name

* move rx.async to its own package

* Fix headers and module name

* move startAsync to rx-lite-async

* Move fromCallback tests back to rx

* Move rx-lite to its own package

* Fix headers

* Combine files

* import new module

* Fix file extension

* Fix strict null checks

* Move definitions back to rx

* move rx-core to its own package

* Update header and change module name

* Fix lint errors

* reference new rx-core

* update index.d.ts

* Point to new submodules

* turn strictNull On

* update tslint config

* Update module name

* Move Subject to core-binding

* Make rx-lite-* libraries depend on rx-lite

* Fix reference

* Fix lint errors

* Disable lint rules

* Disable lint rules

* Fix failing test

* Fixed up indentation on 'rx-lite-async-tests.ts'

* Fix formatting

* Switch tabs to spaces
2017-01-03 15:53:49 -08:00