Commit Graph

51 Commits

Author SHA1 Message Date
Vilmos Ioo
f59657e7a7 Updated argument type 2017-01-29 15:16:18 +00:00
Vilmos Ioo
fb08851a25 Allowing any arguments to be passed for callsFake 2017-01-27 11:02:08 +00:00
Vilmos Ioo
a859959abc Added callsFake method on SinonStub 2017-01-26 16:56:03 +00:00
Andy
ae4fe7b6de Use "lib" in tsconfigs instead of "target". (#13968)
* Use "lib" in tsconfigs instead of "target".

Only add "dom" to libraries that need it. This is determined by a script, so many libraries that have "dom" maybe should not.

* Update new-package and readme

* Add back "target" where necessary
2017-01-18 07:51:51 -08:00
Viktor Zozuliak
4942f142b6 [sinon] properly type sinon.createStubInstance (#13522) 2016-12-30 06:34:59 -08:00
Andy
a4bd9fa3c1 Add "noImplicitThis" to all tsconfig.json (#13446)
* Add "noImplicitThis" to all tsconfig.json

* Use `"noImplicitThis": false` on packages with broken tests.
2016-12-19 14:11:46 -08:00
Andy
c968762595 Merge 'master' to 'types-2.0' one last time (#13277)
* Added missing nconf.required(keys) and Provider.required(keys) methods.

* update to 4.7.0, add querycursor.map() and schema.loadClass()

* add error callback for schema.post()

* Added playsInline property as introduced in React 15.3.2

* Add definitions for redux-localstorage and main enhancers (#12580)

* Add definitions for redux-localstorage

* Add definitions for redux-localstorage-filter enhancer

* Add definitions for redux-localstorage-debounce enhancer

* csurf.d.ts relying on CookieOptions from express

It seems express no longer exports `CookieOptions`, we need to import `express-serve-static-core` instead.

* Added height property to IDialogOptions

* versionKey type

* kendo-ui: mark toString() params as optional (#13164)

These function parameters are optional according to the upstream
docs, e.g.
  http://docs.telerik.com/kendo-ui/api/javascript/geometry/matrix#methods-toString

* Ensure that zoneAbbr and zoneName are expected type (string).

* Update moment-timezone.d.ts

* Fix syntax error in interact.d.ts

A parameter name was missing making TypeScript compiler fail.

* adding type for move to fs-extra

* fixing signature of sinon/alwaysReturned based on the http://sinonjs.org/docs/#sinonspy

* increasing version number

* returning back the version number to the origin number

* reversing changes in fs-extra

* Request that PRs have meaningful titles

* Improvement to existing nouislider type definition. (#12033)

* updated nouislider version and added a lot of tests out of the documentation

* corrected intentation

* corrected untyped variables, issue raised by Travis

* incorporated feedback on pull request

* #13037 (#13039)

* #13037

* pointToLayer first argument type fixed
GeoJSON.Point to GeoJSON.Feature<GeoJSON.Point>

* Missing cc in sendgrid packate (#13063)

The sendgrid package was missing the `cc` field, and the `bcc` field had a too generic type (`any` instead of `string[]`, as used on the `setCcs` and `setBccs` below.

* Fixes #12414 (#13076)

* Fixes #12414

* Make applicationServerKey optional

* added ariaLabelledBy and ariaDescribedBy to IModalSettings (#13004)

* Ceymard leaflet (#13007)

* replaced all overrides of LatLng by a single use of LatLngExpression when appropriate

* Changed Point, PointTuple overrides to use PointExpression instead

* Changet use of LatLngBounds and Bounds in general to use the Expression variant instead of having several overrides

* add ElasticSeach 5.x API function for deleteByQuery (#13014)

* add ElasticSeach 5.x API function for deleteByQuery

* use searchParams for deleteByQuery, as theses resemble the documentation.

* add DeleteByQueryParams parameter type.

* add deleteByQuery to tests.

* Make `less` render options optional (#13078)

* Added semver

* Updated gravity definition. (#13088)

* Full Redis client options (#13108)

* Added missing return type to on() methods. (#13082)

* Update react-native.0.29.d.ts (#13118)

drawerPosition is of type `number`
Android DrawerConsts.DrawerPosition.Left is equivalent to DrawerLayoutAndroid.positions.Left
Android DrawerConsts.DrawerPosition.Right is equivalent to DrawerLayoutAndroid.positions.Right

* Upgrade to match braintree-web 3.6.1 (#13098)

* Update to match braintree-web version 3.3.0

* Upgrade to match Braintree-web v3.5.0

* upgrade to match braintree-web 3.6.1

add US bank class

* Fix missing parameters from svg append (#13119)

* Add parameter declarations to append()

* Made insertFirst parameter optional

* Correct missing ‘auto’ option of GridList’s cellHeight (#13094)

* Add new Angular 1.5.9 methods to $compileProvider  (#13096)

* Add new Angular 1.5.9 methods to $compileProvider

Add new methods available in Angular 1.5.9: onChangesTtl(), commentDirectivesEnabled() and cssClassDirectivesEnabled()

* Add JSDoc to Angular 1.59 new methods of $compileProvider

JSDoc for onChangesTtl(), commentDirectivesEnabled() and cssClassDirectivesEnabled() methods.

* Expand $compileProvider JSDoc

Urls added to JSDoc of Angular 1.5.9 new methods .

* Changed type of injectedScript property to string (#13120)

The injectedScript property should take string value with script code, not the bool flag as in current version

* Use unions for openlayers string enums (#13134)

* Update google.maps.MapPane interface (#13122)

* Removing myself (AlStar01) as definition author from angular-material.d.ts (#13125)

* Clarify that notNeededPackages.json is just for packages formerly on DefinitelyTyped (#13156)

* Update Parsimmon typings (#13146)

* Update AmCharts.d.ts (#13170)

* knex: add MySqlConnectionConfig, tests (#13161)

* knex: add MySqlConnectionConfig, tests

* knex: add types for MySqlConnectionConfig queryFormat params

* Add note in readme about tsjs-lib-generator (#13210)

* Remove redux-localstorage packages; added by #13115 instead
2016-12-12 11:00:28 -08:00
Andy Hanson
c0f2401de3 Sinon is globally available by a lowercase sinon variable, not Sinon 2016-11-04 12:10:32 -07:00
Andy Hanson
89d6358b54 Merge remote-tracking branch 'origin/master' into merge_24sep
Conflicts:
	angular-material/angular-material.d.ts
	bookshelf/bookshelf.d.ts
	react-widgets/react-widgets.d.ts
	vinyl/vinyl.d.ts
2016-09-24 16:40:57 -07:00
Umed Khudoiberdiev
4bb4c29cad fixes #11351 (#11453) 2016-09-24 21:03:26 +09:00
Andy Hanson
28ef3d201b Remove <reference path="../xxx/xxx.d.ts"> from definitions files and replace it with import * as Xxx from "xxx" or <reference types="xxx"/> 2016-09-16 08:59:57 -07:00
Ryan Cavanaugh
5e9440c8ad Merge commit 'upstream/master~700' into merge_7_25
# Conflicts:
#	angular-ui-router/angular-ui-router.d.ts
#	bookshelf/bookshelf-tests.ts
#	bookshelf/bookshelf.d.ts
#	enzyme/enzyme-tests.tsx
#	enzyme/enzyme.d.ts
#	escodegen/escodegen-tests.ts
#	helmet/helmet.d.ts
#	joi/joi.d.ts
#	knex/knex-tests.ts
#	moment/index.d.ts
#	mongoose/index.d.ts
#	pg/pg.d.ts
#	react-select/react-select-tests.tsx
#	soap/index.d.ts
#	ssh2/ssh2.d.ts
#	turf/turf-tests.ts
#	underscore.string/underscore.string.d.ts
2016-07-25 16:10:34 -07:00
Ryan Cavanaugh
a5f4d50ccc Fix tsconfig files for new option name / behavior.
Also fixes some inconsistent whitespace.
2016-07-12 13:54:56 -07:00
Raghav Katyal
395c4e1639 Turning on consistent casing flag and fixing failures 2016-06-30 15:14:49 -07:00
Raghav Katyal
89cb02de7d Fixing test failures 2016-06-27 17:40:37 -07:00
Raghav Katyal
c17b1b78b8 OldUMD and many other module fixes. 2016-06-20 14:15:13 -07:00
Connor Wyatt
6f5c53028a Modified call signature of Sinon's calledWithNew method to no longer take a parameter (#9343) 2016-05-16 23:47:23 -07:00
Ryan Cavanaugh
bfd400a8f8 Add noEmit to all config files 2016-05-10 12:24:49 -07:00
Ryan Cavanaugh
e808e8e062 Remove unneeded references 2016-05-10 12:22:25 -07:00
Ryan Cavanaugh
50387d4046 Change relative reference paths to types references. Errors incoming... 2016-05-09 18:06:27 -07:00
Ryan Cavanaugh
49b1ac6a38 Rename all entry points to index.d.ts and explicitify all file lists 2016-05-09 17:29:10 -07:00
Ryan Cavanaugh
ab2b4191c5 Add typesRoot to all config files 2016-05-09 13:52:25 -07:00
Ryan Cavanaugh
ded70421be Turn off strict null checks 2016-05-04 15:08:38 -07:00
Ryan Cavanaugh
69d1929d8a Add tsconfig.json files 2016-05-04 14:14:39 -07:00
Ryan Cavanaugh
e7c111c4b7 Merge remote-tracking branch 'upstream/master' into types2.0
Add tsconfig files everywhere

# Conflicts:
#	azure-mobile-services-client/AzureMobileServicesClient.d.ts
#	bookshelf/bookshelf.d.ts
#	hapi/hapi.d.ts
#	helmet/helmet.d.ts
#	mongodb/mongodb.d.ts
#	nock/nock.d.ts
#	react-bootstrap/react-bootstrap.d.ts
#	react-helmet/react-helmet.d.ts
#	restify/restify.d.ts
#	sequelize/sequelize.d.ts
2016-04-27 20:40:21 -07: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
Tim Kindberg
6e7d83167d Add returnsThis method to SinonStub 2015-10-27 10:34:16 -04:00
Roger Chen
9bf545421a Add respondImmediately property to SinonFakeServer 2015-10-02 15:07:30 -07:00
Rogier Schouten
e92bf37538 Update Sinon typings for Sinon 1.16.0
Add setSystemTime() method
2015-08-20 10:56:30 +02:00
Radosław Eichler
639337b32b fixed *withMatch methods incorrectly requiring SinonMatcher type arguments 2015-05-18 14:57:14 +02:00
Jed Mao
1a52576856 Fix chai libraries, plugins 2015-04-28 16:21:00 -05:00
Matt York
d5b8b95a2d Add onCall(n) and friends to SinonStub definition
These were added in Sinon 1.8, and the definition claims to be Sinon
1.8.1

From documentation:
"As of Sinon version 1.8, you can use the onCall method to make a stub
respond differently on consecutive calls."

http://sinonjs.org/docs/
2014-06-20 18:35:42 -07:00
Bart van der Schoor
1d345f6c14 cleaned-up headers 2014-06-18 23:31:11 +02:00
Luís Rudge
177897f1c5 added missing object to sinon
requests: SinonFakeXMLHttpRequest[];
2014-02-26 10:41:42 -03:00
SomaticIT
80cbd12aae Update SinonJS Definitions to 1.8.1 2014-02-05 20:32:04 +01:00
Sobieck00
78a57d6e37 Update sinon.d.ts
I updated sinon to export for RequireJs with a declare statement at the bottom of the document.
2014-01-11 07:37:32 -06:00
Alex Varju
0babed6558 make sinon signatures --noImplicitAny friendly 2013-09-20 15:19:13 -07:00
Alex Varju
3369d546a1 sinon expectations extend the stub class 2013-09-18 09:58:08 -07:00
Alex Varju
2b69839469 improve signatures for sinon sandbox methods 2013-09-18 09:58:08 -07:00
Alex Varju
204ec28733 rename sinon definitions now that newer versions are supported 2013-09-18 09:58:08 -07:00
marioK
81d419bacf Fixed withArgs return type on SinonStub and SinonSpy 2013-09-05 13:12:43 -07:00
Boris Yankov
dd35f69637 Big replacement: bool with boolean 2013-08-07 16:59:39 +03:00
Neil Stalker
7b441a8d21 fix i18next, jsFixtures, sinon and expect for TS 0.9
move and rename i18next test file
2013-06-21 15:47:23 +01:00
Fyodor Soikin
2fc878b482 Typo: no param name for "xhr" param in respondWith on fakeServer 2013-04-21 18:18:25 -04:00
JesperSchultz
893f366fdc fix for combined matchers in sinon 2013-04-18 18:42:10 +02:00
Richard Towers
426b27e929 mock expects should return an Expectation, rather than a ExpectationStatic.
http://sinonjs.org/docs/#mocks
2013-03-25 15:05:08 +00:00
William Sears
104f81e5e4 Add defs for new and missed APIs
Add defs for new APIs callArgOn, callArgOnWith, yieldOn and yieldToOn.
Add def to make SinonSpy/SinonStub callable.
Add def for missed API SinonStub.resetBehavior
2013-02-05 13:18:13 -08:00
William Sears
60e2bdc916 Restructure to existing standards and update to more closely reflect the
actual implementation of the JavaScript library.
2013-01-30 13:59:31 -08:00