Commit Graph

66 Commits

Author SHA1 Message Date
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
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
zhengbli
c2a54db3e9 Merge branch 'master' into types-2.0
# Conflicts:
#	amcharts/AmCharts.d.ts
#	angular-gettext/angular-gettext.d.ts
#	angular-jwt/angular-jwt.d.ts
#	angular-material/angular-material.d.ts
#	angularjs/angular.d.ts
#	auth0-js/auth0-js.d.ts
#	aws-lambda/aws-lambda.d.ts
#	aws-sdk/aws-sdk.d.ts
#	azure-mobile-apps/azure-mobile-apps.d.ts
#	azure-mobile-services-client/AzureMobileServicesClient.d.ts
#	blessed/blessed-tests.ts
#	blessed/blessed.d.ts
#	bootbox/bootbox.d.ts
#	bowser/bowser.d.ts
#	cache-manager/cache-manager.d.ts
#	chai-things/chai-things.d.ts
#	colors/colors.d.ts
#	cordova/cordova-tests.ts
#	cordova/plugins/Contacts.d.ts
#	cordova/plugins/FileSystem.d.ts
#	couchbase/couchbase.d.ts
#	cucumber/cucumber-tests.ts
#	cucumber/cucumber.d.ts
#	d3/d3.d.ts
#	dojo/dojo.d.ts
#	dustjs-linkedin/dustjs-linkedin.d.ts
#	esprima/esprima.d.ts
#	express-serve-static-core/express-serve-static-core.d.ts
#	express-session/express-session.d.ts
#	fetch-mock/fetch-mock.d.ts
#	fs-extra/fs-extra.d.ts
#	fullCalendar/fullCalendar.d.ts
#	github-electron/github-electron.d.ts
#	gulp-uglify/gulp-uglify.d.ts
#	gulp/gulp.d.ts
#	highcharts/highcharts.d.ts
#	imap/imap.d.ts
#	incremental-dom/incremental-dom.d.ts
#	inversify/inversify.d.ts
#	ionic/ionic.d.ts
#	ioredis/ioredis.d.ts
#	isomorphic-fetch/isomorphic-fetch-tests.ts
#	jake/jake.d.ts
#	joi/joi.d.ts
#	jquery-mockjax/jquery-mockjax.d.ts
#	jquery/jquery.d.ts
#	js-data-http/js-data-http-tests.ts
#	js-data-http/js-data-http.d.ts
#	js-data/js-data.d.ts
#	jsdom/jsdom.d.ts
#	jsts/jsts-tests.ts
#	knex/knex.d.ts
#	koa-favicon/koa-favicon.d.ts
#	koa-router/koa-router-tests.ts
#	koa-router/koa-router.d.ts
#	lodash/lodash.d.ts
#	mailparser/mailparser.d.ts
#	maquette/maquette.d.ts
#	material-ui/material-ui.d.ts
#	matter-js/matter-js.d.ts
#	moment/moment.d.ts
#	mongoose-promise/mongoose-promise-tests.ts
#	mongoose/mongoose-tests.ts
#	mongoose/mongoose.d.ts
#	multer/multer.d.ts
#	ncp/ncp.d.ts
#	nock/nock.d.ts
#	node/node-tests.ts
#	node/node.d.ts
#	nvd3/nvd3.d.ts
#	object-assign/object-assign.d.ts
#	openlayers/openlayers.d.ts
#	parse/parse.d.ts
#	pdf/pdf.d.ts
#	pdfkit/pdfkit.d.ts
#	pg/pg.d.ts
#	pixi.js/pixi.js.d.ts
#	progress/progress.d.ts
#	pusher-js/pusher-js.d.ts
#	quill/quill-tests.ts
#	quill/quill.d.ts
#	radium/radium.d.ts
#	ravenjs/ravenjs-tests.ts
#	react-dropzone/react-dropzone.d.ts
#	react-mdl/react-mdl.d.ts
#	react-native/react-native.d.ts
#	react-notification-system/react-notification-system.d.ts
#	react-router/history-tests.ts
#	react-router/react-router-tests.tsx
#	react-router/react-router.d.ts
#	react-select/react-select-tests.tsx
#	react-select/react-select.d.ts
#	react/react.d.ts
#	redux-form/redux-form.d.ts
#	request-promise/request-promise.d.ts
#	resolve-from/resolve-from.d.ts
#	riot-api-nodejs/riot-api-nodejs.d.ts
#	sanitize-html/sanitize-html.d.ts
#	segment-analytics/segment-analytics.d.ts
#	simple-assign/simple-assign-tests.ts
#	simple-assign/simple-assign.d.ts
#	slate-irc/slate-irc.d.ts
#	soap/soap.d.ts
#	socket.io/socket.io.d.ts
#	sql.js/sql.js-tests.ts
#	sql.js/sql.js.d.ts
#	steam/steam.d.ts
#	stylus/stylus.d.ts
#	swiper/swiper.d.ts
#	tedious/tedious.d.ts
#	threejs/three.d.ts
#	twilio/twilio.d.ts
#	underscore/underscore.d.ts
#	ws/ws.d.ts
#	yeoman-generator/yeoman-generator.d.ts
2016-09-14 18:44:24 -07:00
Zhengbo Li
a28c67225e Merge pull request #11077 from Hongbo-Miao/patch-2
add engine.ws to SocketIO.Server
2016-09-09 13:58:35 -07:00
Hongbo Miao
44104ccdc3 add length for io.sockets.adapter.rooms['foo'] (#11005)
const room = io.sockets.adapter.rooms['foo'];
console.log(room.length);
2016-09-07 19:29:48 +09:00
Hongbo Miao
a8706001db Update socket.io.d.ts 2016-09-07 03:38:19 -04:00
Hongbo Miao
8f455d7c99 add engine.ws to Server 2016-09-07 03:23:27 -04: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
Ryan Cavanaugh
e105eabd48 Remove invalid references 2016-05-10 16:27:59 -07:00
Ryan Cavanaugh
bfd400a8f8 Add noEmit to all config files 2016-05-10 12:24:49 -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
Ilya Mochalov
abc2bcfb85 node: improved EventEmitter's definition with this-typing 2016-02-25 02:10:08 +05:00
Florent Poujol
4128f7af06 Update definitions for socket.io to v1.4.4. 2016-01-17 21:52:54 +01:00
pyoungon
0f6f5f6b69 changed close parameter as optional. 2015-12-28 13:59:47 +09:00
Jacob Jenkins
20e721cefd Add optional string parameter to removeAllListeners
As socket essentially extends EventEmitter (save emit), and EventEmitter allows passing an event string to removeAllListeners, the typings should be updated to reflect that. I've updated removeAllListeners to take an option event string parameter.

Reference [Node 4.1.1](https://nodejs.org/api/events.html#events_emitter_removealllisteners_event)
& [Node 0.12.7](https://nodejs.org/docs/latest-v0.12.x/api/events.html#events_emitter_removealllisteners_event)
2015-10-02 16:38:52 -04:00
vvakame
1321ffbee6 remove socket.io/legacy and socket.io-client/legacy 2015-08-29 00:11:17 +09:00
Damian Connolly
6e279163da Fixed author attribution 2015-07-21 00:10:40 +02:00
Damian Connolly
0985544e4f Fixed the legacy code declaring under the same name 2015-07-18 14:15:18 +02:00
Damian Connolly
dd0d09a18b Fixed problem with broadcast declaration and added right reference path to the tests file 2015-07-17 21:59:37 +02:00
Damian Connolly
9c07a9d602 Added the correct paths for the definition files in the tests 2015-07-11 21:39:25 +02:00
Damian Connolly
9c47c6a65a Added the test files for the legacy socket.io code 2015-07-11 21:33:48 +02:00
Damian Connolly
812ed1d1a8 Fixed bad link to node.d.ts in the legacy file 2015-07-11 21:31:56 +02:00
Damian Connolly
cd5de37f83 Added definitions for v1.3.5 of the socket.io lib 2015-07-11 21:17:37 +02:00
FalloutPL
beac5c03fe Missing id for Client interface
It`s exposed in:
https://github.com/Automattic/socket.io/blob/master/lib/client.js#L28
2015-06-01 01:58:49 +02:00
Elisée Maurer
c3a1f48983 Add SocketIO.Socket.handshake 2015-04-30 06:12:32 +02:00
Elisée
fcc48530e3 socket.io: SocketIO.Namespace has an "in" method 2015-04-29 23:00:06 +02:00
Elisée
b66b42f5d4 Declare Socket.conn as any
SocketIO.Socket.conn is an EngineIO.Socket, not a SocketIO.Socket so use any rather declaring as the wrong type.
2015-03-11 19:59:40 +01:00
Yuki KAN
24991f9398 Fix socket.io.d.ts: argument of send(), write()
oops
2015-02-25 10:05:33 +09:00
Yuki KAN
aebd7dec12 Fix many incorrect types of socket.io.d.ts.
references:
https://github.com/Automattic/socket.io
2015-02-25 07:57:03 +09:00
Yuki KAN
4ec69330e8 Fix socket.io.d.ts: argument of Socket.disconnect 2015-02-24 08:56:43 +09:00
Yuki KAN
070980d5f2 Fix socket.io.d.ts for wrong type in Namespace.connected 2015-02-24 08:26:47 +09:00
Eric Lu
85c227ebf0 Expose connected property and discount function. 2015-01-26 19:32:44 -08:00
wokim
417aa79b1a Make 'opts' to optional parameter 2014-12-11 23:41:13 +09:00
PROGRE
a012987c65 fix String to string 2014-11-07 07:01:15 +09:00
progre
d68d470bbd add socket.io 1.2.0 2014-11-04 00:09:02 +09:00
progre
5eba93f581 move to legacy 2014-11-03 12:11:41 +09:00
Mohamed Hegazy
2aaa293cb1 Remove quotes from response files 2014-09-02 14:53:39 -07:00
Václav Oborník
efc61c9d55 added handshake data to socket.io Socket interface 2014-03-20 07:57:12 +01:00
vvakame
5a37274782 remove not required .tscparams 2014-03-15 19:00:36 +09:00
Václav Oborník
01dd203b6c Socket.io - moved interfaces from global evil namespace 'socket.io' module 2014-03-10 12:19:57 +01:00
Václav Oborník
e7491baf9d Socket.io - added return type of SocketNamespace for authorization method 2014-03-10 12:15:15 +01:00