Commit Graph

59 Commits

Author SHA1 Message Date
Mohamed Hegazy
454545bd32 Merge pull request #8066 from rschmukler/expand-google-maps
expand googlemaps definitions
2016-06-26 16:56:50 -07:00
Allan Nienhuis
4199cfdac8 add streetview panorama options (#9650)
* add streetview panorama options

including undocumented 'mode' parameter
http://osdir.com/ml/google-maps-js-api-v3/2013-02/msg00015.html

* add FullscreenControlOptions type
2016-06-19 10:22:24 +09:00
Paul Welter
d63ae9035b Googlemaps label (#8972)
* Add typings for redux-debounced.

* add SFTP type in `ssh2`

* New options have been added

* Firebase: Generic Github, Twitter and Facebook authentication providers (#8870)

* Firebase: Generic Github, Twitter and Facebook authentication providers

* Firebase: Authentication definitions for Email and Password, Twitter, Github, Facebook and Anonymous

* Added definition files for koa-json (#8873)

* Add toDate() sanitizer (#8871)

* typo at TextGeometryParameters (#8874)

* Update Kendo UI TypeScript Definitions (#8879)

* Updated material-ui.d.ts (#8881)

Added DOMAttributes to FlatButton and Dialog properties.

* Methods were missing on kendo.Observable (#8883)

* Enable type checking for constant and value (#8885)

Using a generic type one can type check the `constant` or `value` in angular.module.

* Try to provide a new definition for ioredis (#8910)

* Create ioredis.d.ts

* Create ioredis-tests.ts

* Update ioredis.d.ts

* Update ioredis-tests.ts

* expose interfaces as type

* mark Response.error() and Response.redirect() as static (#8887)

Fixes #7777

* Created definitions for promise-pg (#8888)

* Created definitions for promise-pg

Dependencies:
* node
* Q
* pg

Tests script is cribbed from pg typings and modified for promise-pg.

'promise-pg'.Client does not inherit from 'pg'.Client because the
functions redefined to return promises completely replace the originals
from 'pg'.

* fix: QueryConfig.buffer is optional

It's only needed when doing a SELECT anyway, so mark it optional.

* Bring promise-pg tests in line with examples from promise-pg readme

* Add the promise-pg readme examples as tests

* Add ControllerService to angular-mocks (#8889)

* Add ControllerService to angular-mocks

The definition in angular.d.ts changed that used to included this definition.
Needed because of 69d2fb9

* Added unit tests for controller service mock

* Create html-entities definitions file (#8890)

* Create html-entities definitions file

* Fix Travis test

* Introduce done function declaration with fail method (#8891)

* Updated node-mssql to v3.2.1 (#8893)

* Updated node-mssql to v3.2.1

According to https://github.com/patriksimek/node-mssql#2x-to-3x-changes, updated the definitions.

* Update mssql.d.ts

* Update mssql.d.ts

* Introduce `unfoundState` type from `$stateNotFound` event (#8894)

* partition's thisArg should be optional (#8895)

* Added react-tagcloud (#8899)

* Fixing a few API set annotations in Office-js.d.ts (#8892)

Fixed api set annotations on half-a-dozen methods that were erroneously labeled as 1.1, whereas they really belong the the 1.2 set.

* add declare module "nouislider" (#8905)

* Added Filesize definitions (#8908)

* filesize definition file added.

* Updated filesize definition.

* Added SiJedec type to suffixes

* Created filesize tests file.

* Added definition file reference in tests.

* Allow import statement from Typescript (#8911)

* Missing loglevel public API methods added (#8914)

* Update definition of Flatten method in chain. (#8901)

* RxJS: resultSelector is optional in combineLatest (#8917)

* declare namespace ExpressUseragent (#8918)

* declare namespace ExpressUseragent

- declare namespace ExpressUseragent
- fix error Import declaration conflicts with local declaration of 'express'

* Update express-useragent.d.ts

* Update express-useragent.d.ts

* Node.js Buffer should be useable as a Uint8Array and is missing a constructor (#8919)

* make NodeBuffer extend Uint8Array

* add missing Buffer(ArrayBuffer) constructor

* add TODOs for missing Buffer methods

* Add option that can be set for CircleMarker (#8912)

* Return typed definition from toJSON method (#8859)

* Return typed definition from toJSON method

* Test toJSON returns IMyResource

* Update http-status to 0.2.1 (#8920)

* Add rebass (#8925)

* Add type definitions for 'rebass' module

https://github.com/jxnblk/rebass

* Add tests for rebass.d.ts

* github-electron update (#8922)

* Update URLs to new location: https://github.com/electron/electron/blob/master/docs

* Fix CrashReporter interface

* Fix isMainFrame type in WebViewElement.LoadCommitEvent

* Update menu-item documentation

* Fix ContentTracing interface

* Create Falcor definitions (#8882)

* Create Falcor definitions

* Rename some interfaces(Upper camel)

* Add type definitions for 'twitter-text' module (#8928)

* Add type definitions for 'twitter-text' module

* Add tests for twitter-text.d.ts

* Add user defined type guard for entities to tests

* Add a missing file reference to test file

* adding microgears definitions (#8930)

* qrcode-generator added (#8932)

* Add type definitions for Handsontable (#8934)

* feat(): add type definition for cordova-plugin-background-mode (#8936)

fix(): space out the comment text from commenting slash

* add js-md5 export (#8940)

add js-md5 export

* Update avaiable hooks. (#8909)

Apply comments.

Minor changes.

* Fix dom4 typings so they work with latest nightlies of TS (#8943)

The deleted members are defined in lib.d.ts's ElementTraversal interface
and thus don't need to be defined in here.

* Fix function definitions in flowjs.d.ts (#8942)

* Fix function definitions in flowjs.d.ts

* Update flowjs-tests.ts

* Update gapi.d.ts (#8944)

Adding the optional url param to gapi.client.load

* Update angular-material.d.ts (#8896)

Add IColorPalette for [$mdColorPalette](https://github.com/angular/material/blob/master/src/core/services/theming/theme.palette.js)

* Allow specifying `void` for component state type parameter. (#8673)

* Allow specifying `void` for component state type parameter.

Per comments on https://github.com/DefinitelyTyped/DefinitelyTyped/pull/8543,
the type parameter for component state was changed to `{}` from `any` for
increased type safety, but prevents specifying (non-functional) stateless
components without having empty state parameters, which seems messy. This
changes the type to `{} | void` to allow this while staying stricter than
`any`.

* Make react tests a bit more strict.

* Rename State -> ComponentState to make it a bit more explicit.

* Add documentation for cookie-js (#8836)

* Backbone: History.getFragment, the implementation doesn't have any mention of a second argument (#8949)

* Update react-intl locale data location (#8945)

* Stripe node 4.5.0 (#8907)

* Update Stripe library definitions to version 4.5.0.

And update to API version 2016-03-07.

Ideally more tests need to be added, but I've ran out of time to
implement all that is needed. The tests cover just enough for now,
although they are by no means thorough.

* Fix CI test errors

* Add correct header options

Add correct header options to method definitions.

As I understand it, all methods have the ability to have header options,
and they should always appear after any data options, see:

https://github.com/stripe/stripe-node/blob/master/lib/StripeMethod.js#L61
https://stripe.com/docs/connect/authentication

Tests still need to be added.

* Rename account to accounts

And fix other small bugs:
- L4626: Fix duplicate arg name
- L4999: Add missing method definition

* Rename CustomerSubscription Methods

Rename some CustomerSubscription methods that were named incorrectly.

* Define chargeObj.refunds methods

Add ChargeRefunds methods to ICharge interface and add resource class.

https://github.com/stripe/stripe-node/blob/master/lib/resources/ChargeRefunds.js

* Add verifySource placeholder methods

Add verifySource placeholder method to the Customer resource class. This
needs to be properly implemented later.

Also update InvoiceLineItem.type property to be a string literal type.

* Test clean up

Clean up the tests and add a few missing tests. All current tests now
also test for Promise method returns.

Still a lot of missing tests, but it's better than before.

* Dropzone update (#8950)

* Update dropzone.d.ts to 4.3.0

* Update dropzone-commonjs-tests.ts

* Update dropzone-tests.ts

* Update dropzone.d.ts

* Update dropzone.d.ts

* Update dropzone-tests.ts

* Update dropzone-commonjs-tests.ts

* Update dropzone-tests.ts

* Update dropzone.d.ts

* Update dropzone.d.ts

* added "src and "fields" to bunyan Logger definition (#8954)

* Added typings for rx-dom (#8792)

* Added typings for rx-dom

* Added missing references

* Rename test file to tests

* Rename tests

* Fixed tests

* Fixed tests

* Update to 15.2.9 (#8953)

* add MarkerLabel definition

* add docs to MarkerLabel

* add missing getLabel and setLabel to Marker
2016-04-14 21:44:51 +09:00
Pavel Hlobil
e626d8edbf Update google.maps.d.ts
fix indentation
update MapOptions interface
2016-04-01 20:43:35 -04:00
bmiller1
f0f6c7f00d Added remove() function to MapsEventListener
See 
https://developers.google.com/maps/documentation/javascript/reference?csw=1#MapsEventListener
2016-03-27 21:52:52 -05:00
vvakame
7de6c3dd94 Merge branch 'master' into rename-repo-url 2016-03-17 21:06:54 +09:00
vvakame
14fe4313f4 replace internal module to namespace 2016-03-17 02:18:10 +09:00
vvakame
56295f5058 replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
Olivier Foissac
a81e85f5ed googlemaps : Add some JSDoc copied from https://developers.google.com/maps/documentation/javascript/reference on :
* PolygonOptions interface
* StrokePosition enum
* event class
* spherical class
2016-02-18 22:23:42 +01:00
Ryan Schmukler
0a45f05661 expand googlemaps definitions 2016-02-14 17:22:09 -05:00
Josua Meier
8772519c05 Fix Typo in google.maps.d.ts 2016-01-27 11:55:23 +01:00
Vinh Tran
4f1c2d48e0 Update DirectionsWaypoint's location field optional types 2015-12-05 15:52:10 -05:00
Vinh Tran
d4c62f3297 Update interface DirectionRequest
Added ```LatLngLiteral``` as an option type for ```origin``` and ```destination``` fields for DirectionRequest. 
Reference: [https://developers.google.com/maps/documentation/javascript/reference#Place](https://developers.google.com/maps/documentation/javascript/reference#Place)
2015-12-05 15:15:10 -05:00
Vinh Tran
4f0c326e45 Update search request optional fields
Update PlaceSearchRequest, RadarSearchRequest, and TextSearchRequest interfaces to better reflect their optional fields.
Reference: https://developers.google.com/maps/documentation/javascript/places
2015-12-03 14:35:42 -05:00
chrmcg
beea5fcbc1 Add two missing semicolons 2015-11-30 02:43:33 -05:00
Rasmus Eeg Møller
e248bbd069 Added weight to MapTypeStyler
As described here: https://developers.google.com/maps/documentation/javascript/styling
2015-11-16 13:51:52 +01:00
Jacques Kang
78fba6d957 Add QueryAutocompletionRequest.offset
Reference: https://developers.google.com/maps/documentation/javascript/reference#QueryAutocompletionRequest
2015-11-05 23:25:45 +01:00
Jacques Kang
5cf81608b5 Add GeocoderRequest.placeId
Add GeocoderRequest.placeId
ref: https://developers.google.com/maps/documentation/javascript/reference#GeocoderRequest
2015-11-01 15:53:58 +01:00
Masahiro Wakame
07a5117fcb Merge pull request #5127 from EnableSoftware/google-maps-3.20
Fix definition of `google.maps.GeocoderRequest()`
2015-08-03 01:18:07 +09:00
Chris Wrench
eea06e6fe9 Fix definition of google.maps.GeocoderRequest()
Fixes #4364.
2015-07-29 15:49:16 +01:00
Leo Romanovsky
7e2b64ccfa Added trailing semicolon.
Fixing compiler error.
2015-07-28 08:14:09 -07:00
Chris Wrench
a4623dbd70 Mark Google Maps options properties as optional.
Fixes #4364.
2015-07-20 16:05:11 +01:00
Chris Wrench
381072091d Fix definition of google.maps.InfoWindow.open().
Fixes #4364.
2015-07-13 17:25:26 +01:00
Chris Wrench
efd764c643 Fix typo in license 2015-07-06 13:22:22 +01:00
Chris Wrench
df6407f271 Update Google Maps definitions to v3.20
Fixes #4364.
2015-07-06 13:15:14 +01:00
FalloutPL
0c85dc3d18 Update google.maps.d.ts
Missing *overview_polyline* in DirectionsRoute as defined in: https://developers.google.com/maps/documentation/javascript/directions
2015-06-26 16:22:48 +02:00
Jan Trejbal
689ee644bb Add tests 2015-06-18 14:19:09 +02:00
Jan Trejbal
17f1434526 Fix PhpStorm lexical analysis 2015-06-18 14:17:53 +02:00
Jan Trejbal
98c5ba0d56 Add missing semicolons 2015-06-18 14:17:53 +02:00
Jan Trejbal
1e5786baef Fix MapTypeStyle (elementType and featureType accept only string) 2015-06-18 14:17:16 +02:00
mcivort
d3dd026976 Add ability to specify custom map types 2015-06-11 16:11:37 -06:00
Olivier Foissac
4ad9034a40 * Add comments from https://developers.google.com/maps/documentation/javascript/3.19/reference on MarkerOptions, Symbol, SymbolPath, InfoWindow, InfoWindowOptions, LatLng, Point.
* Add missing interface google.maps.Icon.
2015-06-03 18:57:03 +02:00
Chris Wrench
3e467db265 Begin update of Google Maps definitions to v3.20
As part of #4364, update some of the Google Maps API to the latest
version, v3.20.

Changes include:

- Addition of `LatLngLiteral` type;
- Remove `MarkerImage` type;
- Update `Marker` class.

The following areas of the API have been updated and checked for
consistency with the latest API reference:

- Map;
- Controls;
- Data;
- Overlays;
- Services;
- Save to Google Maps;
- Base;
- MVC.

All other areas of the API still need to be updated.
2015-05-27 17:24:46 +01:00
Chris Wrench
241e3f2fc7 Fix issue with Polygon and MultiPolygon contructors 2015-05-18 08:35:03 +01:00
Chris Wrench
79fe4ff375 Add missing Google Maps Data Layer API
Fixes #2249.

- Add a `data` property to the `Map` class.
- Add Google Maps test file and Data Layer API tests.
- Add the following classes and interfaces which form the Data Layer API:

  - `Data`
  - `Data.DataOptions`
  - `Data.GeoJsonOptions`
  - `Data.StyleOptions`
  - `Data.StylingFunction`
  - `Data.Feature`
  - `Data.FeatureOptions`
  - `Data.Geometry`
  - `Data.Point`
  - `Data.MultiPoint`
  - `Data.LineString`
  - `Data.MultiLineString`
  - `Data.LinearRing`
  - `Data.Polygon`
  - `Data.MultiPolygon`
  - `Data.GeometryCollection`
  - `Data.MouseEvent`
  - `Data.AddFeatureEvent`
  - `Data.RemoveFeatureEvent`
  - `Data.SetGeometryEvent`
  - `Data.SetPropertyEvent`
  - `Data.RemovePropertyEvent`
2015-05-15 14:50:38 +01:00
Alasdair Mercer
45595b7509 updated places sub-module for google.maps 2015-05-13 18:40:00 +01:00
Adrien Kohlbecker
1a3e3a11f4 Add google places AutocompleteService 2015-04-11 15:38:52 +02:00
Jared Kells
6eaa9d0a16 The data property can be an MVCArray or LatLng[]. All other properties are optional 2014-11-12 10:36:14 +11:00
Simon Lovely
b4571c30c2 Updated "google.maps.geometry.poly" to static
The 'poly' class should be static (as already correctly marked on the 'spherical' class).
2014-09-22 18:08:22 +01:00
colinbreame
8afb1c1a5f Make AutocompleteOptions optional
The maps API treats the members of AutocompleteOptions as optional - update typings to reflect this.
2014-04-20 15:11:50 +01:00
44ka28ta
adbdf2705f fix the return type of google.maps.Polygon.getPaths 2014-03-13 03:32:59 +09:00
Johan Nilsson
acf9de177a StreetView : bool => StreetViewControl:bool
Added StreetView: StreetViewPanorama
2014-02-17 21:59:39 -04:00
Masahiro Wakame
01c8bbcd47 Merge pull request #1593 from 44ka28ta/fixPrototype
Fix a minor definition.
2014-01-27 17:24:59 -08:00
Bartvds
03eecbb681 added/fixed headers e-i
https://github.com/borisyankov/DefinitelyTyped/issues/1570
2014-01-24 00:19:24 +01:00
44ka28ta
ed65b59f16 fix the return type of google.maps.geometry.encoding.decodePath. 2014-01-22 22:37:54 +09:00
Christopher McGinnis
6889109c5e Added the SearchBox class and SearchBoxOptions interface to the places namespace 2013-11-29 15:26:32 -08:00
Dmitrij Koniajev
f66d407c43 fixed getTileUrl method signature of ImageMapTypeOptions interface 2013-10-05 18:25:36 +03:00
Gary Bortosky
2a33b4b43e fixed implicit any in google.maps.d.td 2013-09-15 10:38:02 -05:00
Boris Yankov
ba2c8c2b1e Fix google.maps definitions 2013-08-07 18:44:33 +03:00
Boris Yankov
dd35f69637 Big replacement: bool with boolean 2013-08-07 16:59:39 +03:00