From 541e24b685e257ca23b747c231fbeceaf464ae8d Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Mon, 25 Apr 2016 13:02:25 -0700 Subject: [PATCH] Fix angularjs/angular; 'export declare'/'declare export' --- JSONStream/JSONStream.d.ts | 12 +- adal/adal-angular.d.ts | 2 +- amazon-product-api/amazon-product-api.d.ts | 2 +- amqp-rpc/amqp-rpc.d.ts | 4 +- .../angular-dynamic-locale.d.ts | 2 +- angular-formly/angular-formly.d.ts | 2 +- angular-fullscreen/angular-fullscreen.d.ts | 2 +- angular-gettext/angular-gettext.d.ts | 2 +- .../angular-google-analytics.d.ts | 2 +- angular-growl-v2/angular-growl-v2.d.ts | 2 +- angular-hotkeys/angular-hotkeys-tests.ts | 2 +- angular-hotkeys/angular-hotkeys.d.ts | 2 +- angular-http-auth/angular-http-auth.d.ts | 2 +- angular-httpi/angular-httpi.d.ts | 2 +- angular-idle/angular-idle.d.ts | 2 +- angular-jwt/angular-jwt-tests.ts | 2 +- angular-jwt/angular-jwt.d.ts | 2 +- angular-load/angular-load.d.ts | 2 +- angular-loading-bar/angular-loading-bar.d.ts | 2 +- angular-localForage/angular-localForage.d.ts | 2 +- angular-locker/angular-locker.d.ts | 2 +- angular-material/angular-material-0.8.3.d.ts | 2 +- angular-material/angular-material-0.9.0.d.ts | 2 +- angular-material/angular-material.d.ts | 2 +- angular-media-queries/match-media.d.ts | 2 +- angular-meteor/angular-meteor.d.ts | 2 +- angular-modal/angular-modal-tests.ts | 2 +- angular-modal/angular-modal.d.ts | 2 +- .../angular-notifications.d.ts | 2 +- angular-notify/angular-notify.d.ts | 2 +- .../angular-odata-resources.d.ts | 2 +- angular-permission/angular-permission.d.ts | 2 +- angular-scroll/angular-scroll.d.ts | 2 +- angular-spinner/angular-spinner.d.ts | 2 +- angular-strap/angular-strap.d.ts | 2 +- angular-toastr/angular-toastr.d.ts | 2 +- angular-toasty/angular-toasty.d.ts | 2 +- angular-touchspin/angular-touchspin.d.ts | 2 +- angular-translate/angular-translate.d.ts | 2 +- .../angular-ui-bootstrap.d.ts | 2 +- angular-ui-router/angular-ui-router.d.ts | 2 +- angular-ui-scroll/angular-ui-scroll.d.ts | 2 +- .../angular-ui-sortable-tests.ts | 2 +- angular-ui-sortable/angular-ui-sortable.d.ts | 2 +- angular-wizard/angular-wizard-tests.ts | 2 +- .../angularLocalStorage-tests.ts | 2 +- angulartics/angulartics-tests.ts | 2 +- angulartics/angulartics.d.ts | 2 +- ansi-styles/ansi-styles.d.ts | 50 +-- any-db/any-db.d.ts | 8 +- .../anydb-sql-migrations.d.ts | 2 +- apn/apn.d.ts | 10 +- argparse/argparse.d.ts | 10 +- aspnet-identity-pw/aspnet-identity-pw.d.ts | 8 +- assertsharp/assertsharp.d.ts | 2 +- atpl/atpl.d.ts | 18 +- auth0-angular/auth0-angular.d.ts | 2 +- aws-sdk/aws-sdk.d.ts | 36 +- azure/azure.d.ts | 106 +++--- bardjs/bardjs-tests.ts | 2 +- bardjs/bardjs.d.ts | 2 +- bcrypt-nodejs/bcrypt-nodejs.d.ts | 16 +- bcrypt/bcrypt.d.ts | 20 +- bcryptjs/bcryptjs.d.ts | 20 +- blueimp-md5/blueimp-md5.d.ts | 2 +- browser-harness/browser-harness.d.ts | 8 +- bunyan-logentries/bunyan-logentries.d.ts | 2 +- bunyan/bunyan.d.ts | 20 +- byline/byline.d.ts | 6 +- camo/camo.d.ts | 4 +- complex/complex.d.ts | 2 +- confidence/confidence.d.ts | 2 +- configstore/configstore.d.ts | 12 +- convert-source-map/convert-source-map.d.ts | 14 +- copy-paste/copy-paste.d.ts | 8 +- cradle/cradle.d.ts | 6 +- cron/cron.d.ts | 4 +- cross-storage/cross-storage.d.ts | 4 +- cson/cson.d.ts | 36 +- diff-match-patch/diff-match-patch.d.ts | 8 +- documentdb/documentdb.d.ts | 2 +- dot-prop/dot-prop.d.ts | 4 +- dts-bundle/dts-bundle.d.ts | 2 +- dustjs-linkedin/dustjs-linkedin.d.ts | 32 +- easy-api-request/easy-api-request.d.ts | 2 +- easy-xapi-supertest/easy-xapi-supertest.d.ts | 2 +- easy-xapi-utils/easy-xapi-utils.d.ts | 6 +- .../electron-json-storage.d.ts | 12 +- email-validator/email-validator.d.ts | 2 +- encoding-japanese/encoding-japanese.d.ts | 50 +-- enzyme/enzyme.d.ts | 12 +- event-stream/event-stream.d.ts | 36 +- expect/expect.d.ts | 14 +- .../express-brute-memcached.d.ts | 2 +- express-graphql/express-graphql.d.ts | 2 +- express-openapi/express-openapi.d.ts | 4 +- eyes/eyes.d.ts | 4 +- fast-stats/fast-stats.d.ts | 2 +- fbemitter/fbemitter.d.ts | 4 +- field/field.d.ts | 4 +- .../flux-standard-action.d.ts | 4 +- form-data/form-data.d.ts | 2 +- formidable/formidable.d.ts | 2 +- fs-ext/fs-ext.d.ts | 18 +- fs-extra-promise/fs-extra-promise.d.ts | 346 +++++++++--------- fs-extra/fs-extra.d.ts | 258 ++++++------- ftpd/ftpd.d.ts | 4 +- git-config/git-config.d.ts | 2 +- git/git.d.ts | 58 +-- glob-stream/glob-stream.d.ts | 4 +- graphviz/graphviz.d.ts | 6 +- gulp-sourcemaps/gulp-sourcemaps.d.ts | 6 +- hapi/hapi-8.2.0.d.ts | 6 +- hapi/hapi.d.ts | 10 +- highcharts-ng/highcharts-ng-tests.ts | 2 +- htmlparser2/htmlparser2.d.ts | 2 +- http-status-codes/http-status-codes.d.ts | 106 +++--- http-string-parser/http-string-parser.d.ts | 10 +- icepick/icepick.d.ts | 48 +-- imagemagick-native/imagemagick-native.d.ts | 2 +- imagemagick/imagemagick.d.ts | 20 +- incremental-dom/incremental-dom.d.ts | 16 +- iniparser/iniparser.d.ts | 6 +- ionic/ionic.d.ts | 2 +- jade/jade.d.ts | 12 +- johnny-five/johnny-five.d.ts | 50 +-- joi/joi.d.ts | 36 +- js-data-angular/js-data-angular.d.ts | 2 +- jsdom/jsdom.d.ts | 38 +- jsonpath/jsonpath.d.ts | 18 +- jsonwebtoken/jsonwebtoken.d.ts | 6 +- jwt-simple/jwt-simple.d.ts | 4 +- kafka-node/kafka-node.d.ts | 14 +- kefir/kefir.d.ts | 42 +-- keytar/keytar.d.ts | 10 +- kue/kue.d.ts | 12 +- libxmljs/libxmljs.d.ts | 22 +- linqsharp/linqsharp.d.ts | 2 +- lockfile/lockfile.d.ts | 16 +- log4js/log4js.d.ts | 34 +- lolex/lolex.d.ts | 6 +- luaparse/luaparse.d.ts | 2 +- magic-number/magic-number.d.ts | 2 +- mandrill-api/mandrill-api.d.ts | 32 +- memory-cache/memory-cache.d.ts | 20 +- mime/mime.d.ts | 12 +- mmmagic/mmmagic.d.ts | 42 +-- mobservable-react/mobservable-react.d.ts | 8 +- mockery/mockery.d.ts | 28 +- mongodb/mongodb-1.4.9.d.ts | 16 +- mongodb/mongodb.d.ts | 30 +- .../mongoose-deep-populate.d.ts | 2 +- mongoose/mongoose.d.ts | 16 +- msnodesql/msnodesql.d.ts | 22 +- mssql/mssql.d.ts | 98 ++--- mu2/mu2.d.ts | 20 +- multiparty/multiparty.d.ts | 2 +- nanoajax/nanoajax.d.ts | 2 +- nconf/nconf.d.ts | 60 +-- netmask/netmask.d.ts | 6 +- ng-command/ng-command-tests.ts | 2 +- ng-command/ng-command.d.ts | 2 +- ng-cordova/actionSheet-tests.ts | 2 +- ng-cordova/actionSheet.d.ts | 2 +- ng-cordova/app-version.d.ts | 2 +- ng-cordova/appAvailability-tests.ts | 2 +- ng-cordova/appAvailability.d.ts | 2 +- ng-cordova/badge-tests.ts | 2 +- ng-cordova/badge.d.ts | 2 +- ng-cordova/camera.d.ts | 2 +- ng-cordova/datepicker.d.ts | 2 +- ng-cordova/device-tests.ts | 2 +- ng-cordova/deviceMotion-tests.ts | 2 +- ng-cordova/deviceMotion.d.ts | 2 +- ng-cordova/deviceOrientation-tests.ts | 2 +- ng-cordova/deviceOrientation.d.ts | 2 +- ng-cordova/dialogs-tests.ts | 2 +- ng-cordova/dialogs.d.ts | 2 +- ng-cordova/emailComposer-tests.ts | 2 +- ng-cordova/emailComposer.d.ts | 2 +- ng-cordova/file-tests.ts | 2 +- ng-cordova/file.d.ts | 2 +- ng-cordova/fileTransfer-tests.ts | 2 +- ng-cordova/fileTransfer.d.ts | 2 +- ng-cordova/geolocation-tests.ts | 2 +- ng-cordova/geolocation.d.ts | 2 +- ng-cordova/network-tests.ts | 2 +- ng-cordova/network.d.ts | 2 +- ng-cordova/toast-tests.ts | 2 +- ng-cordova/toast.d.ts | 2 +- ng-dialog/ng-dialog-tests.ts | 2 +- ng-dialog/ng-dialog.d.ts | 2 +- ng-facebook/ng-facebook.d.ts | 2 +- ng-file-upload/ng-file-upload.d.ts | 2 +- ng-flow/ng-flow.d.ts | 2 +- ng-grid/ng-grid-tests.ts | 2 +- ng-stomp/ng-stomp-tests.ts | 2 +- ng-stomp/ng-stomp.d.ts | 2 +- ng-table/ng-table.d.ts | 2 +- ngbootbox/ngbootbox-tests.ts | 2 +- ngprogress-lite/ngprogress-lite-tests.ts | 2 +- ngstorage/ngstorage-tests.ts | 2 +- ngtoaster/angularjs-toaster.d.ts | 2 +- noble/noble.d.ts | 26 +- node-array-ext/node-array-ext.d.ts | 4 +- node-dir/node-dir.d.ts | 18 +- node-gcm/node-gcm.d.ts | 4 +- node-sass/node-sass.d.ts | 4 +- node-schedule/node-schedule.d.ts | 10 +- node-snap7/node-snap7.d.ts | 18 +- nodemailer/nodemailer.d.ts | 6 +- nodeunit/nodeunit.d.ts | 2 +- nw.gui/nw.gui.d.ts | 16 +- oclazyload/oclazyload.d.ts | 2 +- oracledb/oracledb.d.ts | 62 ++-- osmtogeojson/osmtogeojson.d.ts | 4 +- package.json | 2 +- parse5/parse5.d.ts | 16 +- passport-jwt/passport-jwt.d.ts | 4 +- password-hash/password-hash.d.ts | 6 +- pg/pg.d.ts | 12 +- png-async/png-async.d.ts | 8 +- pngjs2/pngjs2.d.ts | 4 +- precond/precond.d.ts | 20 +- prettyjson/prettyjson.d.ts | 6 +- project-oxford/project-oxford.d.ts | 10 +- promise-pg/promise-pg.d.ts | 10 +- promise-pool/promise-pool.d.ts | 2 +- promptly/promptly.d.ts | 16 +- pty.js/pty.js.d.ts | 12 +- query-string/query-string.d.ts | 6 +- rabbit.js/rabbit.js.d.ts | 20 +- radius/radius.d.ts | 14 +- react-motion/react-motion.d.ts | 12 +- react-redux/react-redux-2.1.2.d.ts | 6 +- react-redux/react-redux.d.ts | 8 +- rebass/rebass.d.ts | 114 +++--- redis/redis.d.ts | 10 +- redux-action-utils/redux-action-utils.d.ts | 8 +- redux-debounced/redux-debounced.d.ts | 2 +- .../redux-devtools-dock-monitor.d.ts | 2 +- .../redux-devtools-log-monitor.d.ts | 2 +- redux-devtools/redux-devtools-2.1.4.d.ts | 4 +- redux-devtools/redux-devtools.d.ts | 4 +- redux-form/redux-form.d.ts | 4 +- redux-immutable/redux-immutable.d.ts | 2 +- ref/ref.d.ts | 90 ++--- request-ip/request-ip.d.ts | 2 +- rest-io/rest-io.d.ts | 8 +- restangular/restangular.d.ts | 2 +- restful.js/restful.js.d.ts | 2 +- restify/restify.d.ts | 150 ++++---- rethinkdb/rethinkdb.d.ts | 32 +- riot-api-nodejs/riot-api-nodejs.d.ts | 6 +- rx-angular/rx.angular.d.ts | 2 +- sanitizer/sanitizer.d.ts | 10 +- sax/sax.d.ts | 10 +- sharepoint/SharePoint-tests.ts | 2 +- shelljs/shelljs.d.ts | 130 +++---- shortid/shortid.d.ts | 10 +- ski/ski.d.ts | 6 +- smoothie/smoothie.d.ts | 4 +- sockjs-node/sockjs-node.d.ts | 2 +- source-map-support/source-map-support.d.ts | 10 +- speakeasy/speakeasy.d.ts | 10 +- sprintf/sprintf.d.ts | 4 +- sqlite3/sqlite3.d.ts | 12 +- stack-trace/stack-trace.d.ts | 4 +- swig/swig.d.ts | 40 +- swiz/swiz.d.ts | 18 +- tabtab/tabtab.d.ts | 12 +- tar/tar.d.ts | 28 +- tedious/tedious.d.ts | 10 +- temp/temp.d.ts | 32 +- thrift/thrift.d.ts | 2 +- timezone-js/timezone-js.d.ts | 6 +- twig/twig.d.ts | 18 +- twitter-text/twitter-text.d.ts | 60 +-- typescript-deferred/typescript-deferred.d.ts | 6 +- ui-grid/ui-grid-tests.ts | 2 +- ui-select/ui-select.d.ts | 2 +- umbraco/umbraco-resources.d.ts | 2 +- umbraco/umbraco-services.d.ts | 2 +- urlsafe-base64/urlsafe-base64.d.ts | 8 +- usage/usage.d.ts | 6 +- uuid-1345/uuid-1345.d.ts | 92 ++--- uuid/UUID.d.ts | 12 +- watch/watch.d.ts | 10 +- websocket/websocket.d.ts | 8 +- windows-service/windows-service.d.ts | 10 +- winston/winston.d.ts | 58 +-- wrench/wrench.d.ts | 20 +- xlsx/xlsx.d.ts | 6 +- 293 files changed, 2013 insertions(+), 2013 deletions(-) diff --git a/JSONStream/JSONStream.d.ts b/JSONStream/JSONStream.d.ts index a3481906b3..81ae366529 100644 --- a/JSONStream/JSONStream.d.ts +++ b/JSONStream/JSONStream.d.ts @@ -11,11 +11,11 @@ export interface Options { recurse: boolean; } -declare export function parse(pattern: any): NodeJS.ReadWriteStream; -declare export function parse(patterns: any[]): NodeJS.ReadWriteStream; +export declare function parse(pattern: any): NodeJS.ReadWriteStream; +export declare function parse(patterns: any[]): NodeJS.ReadWriteStream; -declare export function stringify(): NodeJS.ReadWriteStream; -declare export function stringify(open: string, sep: string, close: string): NodeJS.ReadWriteStream; +export declare function stringify(): NodeJS.ReadWriteStream; +export declare function stringify(open: string, sep: string, close: string): NodeJS.ReadWriteStream; -declare export function stringifyObject(): NodeJS.ReadWriteStream; -declare export function stringifyObject(open: string, sep: string, close: string): NodeJS.ReadWriteStream; +export declare function stringifyObject(): NodeJS.ReadWriteStream; +export declare function stringifyObject(open: string, sep: string, close: string): NodeJS.ReadWriteStream; diff --git a/adal/adal-angular.d.ts b/adal/adal-angular.d.ts index 1d0b88d55a..6339ef7e86 100644 --- a/adal/adal-angular.d.ts +++ b/adal/adal-angular.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -/// +/// declare namespace adal { diff --git a/amazon-product-api/amazon-product-api.d.ts b/amazon-product-api/amazon-product-api.d.ts index 9b5604ff5b..6cb7389c73 100644 --- a/amazon-product-api/amazon-product-api.d.ts +++ b/amazon-product-api/amazon-product-api.d.ts @@ -21,4 +21,4 @@ interface IAmazonProductClient { browseNodeLookup(query: any, callback?: IAmazonProductQueryCallback): Promise; } -declare export function createClient(credentials: ICredentials): IAmazonProductClient; +export declare function createClient(credentials: ICredentials): IAmazonProductClient; diff --git a/amqp-rpc/amqp-rpc.d.ts b/amqp-rpc/amqp-rpc.d.ts index 49760498f0..122012ec22 100644 --- a/amqp-rpc/amqp-rpc.d.ts +++ b/amqp-rpc/amqp-rpc.d.ts @@ -56,9 +56,9 @@ export interface CallbackWithError { (err: any, ...args: any[]): void; } -declare export function factory(opt?: Options): amqpRPC; +export declare function factory(opt?: Options): amqpRPC; -declare export class amqpRPC { +export declare class amqpRPC { constructor(opt?: Options); generateQueueName(type: string): string; disconnect(): void; diff --git a/angular-dynamic-locale/angular-dynamic-locale.d.ts b/angular-dynamic-locale/angular-dynamic-locale.d.ts index 4b7a1f9656..6952a06776 100644 --- a/angular-dynamic-locale/angular-dynamic-locale.d.ts +++ b/angular-dynamic-locale/angular-dynamic-locale.d.ts @@ -3,7 +3,7 @@ // Definitions by: Stephen Lautier // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare module "angular-dynamic-locale" { import ng = angular.dynamicLocale; diff --git a/angular-formly/angular-formly.d.ts b/angular-formly/angular-formly.d.ts index 206d3294f9..af3c40895b 100644 --- a/angular-formly/angular-formly.d.ts +++ b/angular-formly/angular-formly.d.ts @@ -3,7 +3,7 @@ // Definitions by: Scott Hatcher // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare module 'AngularFormly' { export = AngularFormly; diff --git a/angular-fullscreen/angular-fullscreen.d.ts b/angular-fullscreen/angular-fullscreen.d.ts index 414754db43..daa74e8c12 100644 --- a/angular-fullscreen/angular-fullscreen.d.ts +++ b/angular-fullscreen/angular-fullscreen.d.ts @@ -3,7 +3,7 @@ // Definitions by: Julien Paroche // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/angular-fullscreen -/// +/// declare namespace angular.fullscreen { diff --git a/angular-gettext/angular-gettext.d.ts b/angular-gettext/angular-gettext.d.ts index 48734d4433..979a447cbd 100644 --- a/angular-gettext/angular-gettext.d.ts +++ b/angular-gettext/angular-gettext.d.ts @@ -3,7 +3,7 @@ // Definitions by: Ákos Lukács // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace angular.gettext { interface gettextCatalog { diff --git a/angular-google-analytics/angular-google-analytics.d.ts b/angular-google-analytics/angular-google-analytics.d.ts index 03ef64ba75..ee3be71958 100644 --- a/angular-google-analytics/angular-google-analytics.d.ts +++ b/angular-google-analytics/angular-google-analytics.d.ts @@ -3,7 +3,7 @@ // Definitions by: Cyril Schumacher // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace angular.google.analytics { /** diff --git a/angular-growl-v2/angular-growl-v2.d.ts b/angular-growl-v2/angular-growl-v2.d.ts index 7b67678b85..7ebb45090a 100644 --- a/angular-growl-v2/angular-growl-v2.d.ts +++ b/angular-growl-v2/angular-growl-v2.d.ts @@ -3,7 +3,7 @@ // Definitions by: Tadeusz Hucal // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace angular.growl { diff --git a/angular-hotkeys/angular-hotkeys-tests.ts b/angular-hotkeys/angular-hotkeys-tests.ts index c683540a3a..6189993a05 100644 --- a/angular-hotkeys/angular-hotkeys-tests.ts +++ b/angular-hotkeys/angular-hotkeys-tests.ts @@ -1,4 +1,4 @@ -/// +/// /// var scope: ng.IScope; diff --git a/angular-hotkeys/angular-hotkeys.d.ts b/angular-hotkeys/angular-hotkeys.d.ts index 407d1c7313..feb889d022 100644 --- a/angular-hotkeys/angular-hotkeys.d.ts +++ b/angular-hotkeys/angular-hotkeys.d.ts @@ -3,7 +3,7 @@ // Definitions by: Jason Zhao , Stefan Steinhart // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace angular.hotkeys { diff --git a/angular-http-auth/angular-http-auth.d.ts b/angular-http-auth/angular-http-auth.d.ts index d5fb52fd6c..bbc7b78e54 100644 --- a/angular-http-auth/angular-http-auth.d.ts +++ b/angular-http-auth/angular-http-auth.d.ts @@ -3,7 +3,7 @@ // Definitions by: vvakame // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace angular.httpAuth { interface IAuthService { diff --git a/angular-httpi/angular-httpi.d.ts b/angular-httpi/angular-httpi.d.ts index d9aa2b5609..5e8ccc2d12 100644 --- a/angular-httpi/angular-httpi.d.ts +++ b/angular-httpi/angular-httpi.d.ts @@ -3,7 +3,7 @@ // Definitions by: Andrew Camilleri // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace Httpi { export interface HttpiPayload extends ng.IRequestShortcutConfig { diff --git a/angular-idle/angular-idle.d.ts b/angular-idle/angular-idle.d.ts index 0a980204cb..6f6b8f814d 100644 --- a/angular-idle/angular-idle.d.ts +++ b/angular-idle/angular-idle.d.ts @@ -3,7 +3,7 @@ // Definitions by: mthamil // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace angular.idle { diff --git a/angular-jwt/angular-jwt-tests.ts b/angular-jwt/angular-jwt-tests.ts index 7f66f26114..041744f2f6 100644 --- a/angular-jwt/angular-jwt-tests.ts +++ b/angular-jwt/angular-jwt-tests.ts @@ -1,4 +1,4 @@ -/// +/// /// var app = angular.module("angular-jwt-tests", ["angular-jwt"]); diff --git a/angular-jwt/angular-jwt.d.ts b/angular-jwt/angular-jwt.d.ts index d8c719e2ef..58657194ec 100644 --- a/angular-jwt/angular-jwt.d.ts +++ b/angular-jwt/angular-jwt.d.ts @@ -3,7 +3,7 @@ // Definitions by: Reto Rezzonico // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace angular.jwt { diff --git a/angular-load/angular-load.d.ts b/angular-load/angular-load.d.ts index cd806c31f3..49c7389748 100644 --- a/angular-load/angular-load.d.ts +++ b/angular-load/angular-load.d.ts @@ -3,7 +3,7 @@ // Definitions by: david-gang // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace angular.load { diff --git a/angular-loading-bar/angular-loading-bar.d.ts b/angular-loading-bar/angular-loading-bar.d.ts index 22a00f9ee7..3ad6879197 100644 --- a/angular-loading-bar/angular-loading-bar.d.ts +++ b/angular-loading-bar/angular-loading-bar.d.ts @@ -3,7 +3,7 @@ // Definitions by: Stephen Lautier // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace angular { diff --git a/angular-localForage/angular-localForage.d.ts b/angular-localForage/angular-localForage.d.ts index edc4ca268d..dbc505b703 100644 --- a/angular-localForage/angular-localForage.d.ts +++ b/angular-localForage/angular-localForage.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -/// +/// declare namespace angular.localForage { diff --git a/angular-locker/angular-locker.d.ts b/angular-locker/angular-locker.d.ts index 3327521f1a..f560f9554f 100644 --- a/angular-locker/angular-locker.d.ts +++ b/angular-locker/angular-locker.d.ts @@ -3,7 +3,7 @@ // Definitions by: Niko Kovačič // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare module "angular-locker" { var _: string; diff --git a/angular-material/angular-material-0.8.3.d.ts b/angular-material/angular-material-0.8.3.d.ts index 599a39ba9b..130ba48e66 100644 --- a/angular-material/angular-material-0.8.3.d.ts +++ b/angular-material/angular-material-0.8.3.d.ts @@ -3,7 +3,7 @@ // Definitions by: Matt Traynham // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace angular.material { interface MDBottomSheetOptions { diff --git a/angular-material/angular-material-0.9.0.d.ts b/angular-material/angular-material-0.9.0.d.ts index daeedc0085..60ac1c2461 100644 --- a/angular-material/angular-material-0.9.0.d.ts +++ b/angular-material/angular-material-0.9.0.d.ts @@ -3,7 +3,7 @@ // Definitions by: Matt Traynham // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace angular.material { interface MDBottomSheetOptions { diff --git a/angular-material/angular-material.d.ts b/angular-material/angular-material.d.ts index 12fe28a9b8..7d7e32ee9c 100644 --- a/angular-material/angular-material.d.ts +++ b/angular-material/angular-material.d.ts @@ -3,7 +3,7 @@ // Definitions by: Matt Traynham // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace angular.material { interface IBottomSheetOptions { diff --git a/angular-media-queries/match-media.d.ts b/angular-media-queries/match-media.d.ts index 401c61f46c..dd225ff75d 100644 --- a/angular-media-queries/match-media.d.ts +++ b/angular-media-queries/match-media.d.ts @@ -3,7 +3,7 @@ // Definitions by: Joao Monteiro // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace angular.matchmedia { interface IScreenSize { diff --git a/angular-meteor/angular-meteor.d.ts b/angular-meteor/angular-meteor.d.ts index 1e14ae9659..8ceb7f8669 100644 --- a/angular-meteor/angular-meteor.d.ts +++ b/angular-meteor/angular-meteor.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -/// +/// declare namespace angular.meteor { interface IRootScopeService extends angular.IRootScopeService { diff --git a/angular-modal/angular-modal-tests.ts b/angular-modal/angular-modal-tests.ts index cbb090cee9..5bd6ff8828 100644 --- a/angular-modal/angular-modal-tests.ts +++ b/angular-modal/angular-modal-tests.ts @@ -1,5 +1,5 @@ /// -/// +/// /// var btfModal: angularModal.AngularModalFactory; diff --git a/angular-modal/angular-modal.d.ts b/angular-modal/angular-modal.d.ts index 0bc46ee1f1..77e926fa77 100644 --- a/angular-modal/angular-modal.d.ts +++ b/angular-modal/angular-modal.d.ts @@ -3,7 +3,7 @@ // Definitions by: Paul Lessing // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// /// declare namespace angularModal { diff --git a/angular-notifications/angular-notifications.d.ts b/angular-notifications/angular-notifications.d.ts index 58a388e580..9b6ee86e29 100644 --- a/angular-notifications/angular-notifications.d.ts +++ b/angular-notifications/angular-notifications.d.ts @@ -3,7 +3,7 @@ // Definitions by: Tomasz Ducin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace angular.notifications { diff --git a/angular-notify/angular-notify.d.ts b/angular-notify/angular-notify.d.ts index 541d06d720..41caac1557 100644 --- a/angular-notify/angular-notify.d.ts +++ b/angular-notify/angular-notify.d.ts @@ -3,7 +3,7 @@ // Definitions by: Suwato // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace angular.cgNotify { diff --git a/angular-odata-resources/angular-odata-resources.d.ts b/angular-odata-resources/angular-odata-resources.d.ts index 04c9ef3cfe..9d57f99c80 100644 --- a/angular-odata-resources/angular-odata-resources.d.ts +++ b/angular-odata-resources/angular-odata-resources.d.ts @@ -3,7 +3,7 @@ // Definitions by: Raphael ATALLAH // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace OData { diff --git a/angular-permission/angular-permission.d.ts b/angular-permission/angular-permission.d.ts index afe32ce875..2987aeeb93 100644 --- a/angular-permission/angular-permission.d.ts +++ b/angular-permission/angular-permission.d.ts @@ -3,7 +3,7 @@ // Definitions by: Voislav Mishevski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// /// declare namespace angular.permission { diff --git a/angular-scroll/angular-scroll.d.ts b/angular-scroll/angular-scroll.d.ts index 1c96194e8b..1a8cd35cfc 100644 --- a/angular-scroll/angular-scroll.d.ts +++ b/angular-scroll/angular-scroll.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace duScroll { diff --git a/angular-spinner/angular-spinner.d.ts b/angular-spinner/angular-spinner.d.ts index ba85d0e53c..63868d9073 100644 --- a/angular-spinner/angular-spinner.d.ts +++ b/angular-spinner/angular-spinner.d.ts @@ -3,7 +3,7 @@ // Definitions by: Marcin Biegała // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// /** * SpinnerService diff --git a/angular-strap/angular-strap.d.ts b/angular-strap/angular-strap.d.ts index 5b85f77de1..0c1f51f830 100644 --- a/angular-strap/angular-strap.d.ts +++ b/angular-strap/angular-strap.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace mgcrea.ngStrap { diff --git a/angular-toastr/angular-toastr.d.ts b/angular-toastr/angular-toastr.d.ts index 698ced16cc..d42f590c4e 100644 --- a/angular-toastr/angular-toastr.d.ts +++ b/angular-toastr/angular-toastr.d.ts @@ -3,7 +3,7 @@ // Definitions by: Niko Kovačič // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare module "angular-toastr" { var _: string; diff --git a/angular-toasty/angular-toasty.d.ts b/angular-toasty/angular-toasty.d.ts index bec5bb32f1..22109af778 100644 --- a/angular-toasty/angular-toasty.d.ts +++ b/angular-toasty/angular-toasty.d.ts @@ -3,7 +3,7 @@ // Definitions by: Dominik Muench // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace toasty { diff --git a/angular-touchspin/angular-touchspin.d.ts b/angular-touchspin/angular-touchspin.d.ts index 5423b17e55..77add90d24 100644 --- a/angular-touchspin/angular-touchspin.d.ts +++ b/angular-touchspin/angular-touchspin.d.ts @@ -3,7 +3,7 @@ // Definitions by: Niko Kovačič // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -//// +//// declare module "angular-touchspin" { diff --git a/angular-translate/angular-translate.d.ts b/angular-translate/angular-translate.d.ts index 9d9eeb98a1..ea905a210e 100644 --- a/angular-translate/angular-translate.d.ts +++ b/angular-translate/angular-translate.d.ts @@ -3,7 +3,7 @@ // Definitions by: Michel Salib // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare module "angular-translate" { import ngt = angular.translate; diff --git a/angular-ui-bootstrap/angular-ui-bootstrap.d.ts b/angular-ui-bootstrap/angular-ui-bootstrap.d.ts index 29ad03485b..5bb4c99055 100644 --- a/angular-ui-bootstrap/angular-ui-bootstrap.d.ts +++ b/angular-ui-bootstrap/angular-ui-bootstrap.d.ts @@ -3,7 +3,7 @@ // Definitions by: Brian Surowiec // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// // Support for AMD require declare module 'angular-bootstrap' { diff --git a/angular-ui-router/angular-ui-router.d.ts b/angular-ui-router/angular-ui-router.d.ts index 0512528097..0a8f1324f5 100644 --- a/angular-ui-router/angular-ui-router.d.ts +++ b/angular-ui-router/angular-ui-router.d.ts @@ -3,7 +3,7 @@ // Definitions by: Michel Salib // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// // Support for AMD require and CommonJS declare module 'angular-ui-router' { diff --git a/angular-ui-scroll/angular-ui-scroll.d.ts b/angular-ui-scroll/angular-ui-scroll.d.ts index 168c6ba271..c46e28254c 100644 --- a/angular-ui-scroll/angular-ui-scroll.d.ts +++ b/angular-ui-scroll/angular-ui-scroll.d.ts @@ -3,7 +3,7 @@ // Definitions by: Mark Nadig // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace angular.ui { interface IScrollDatasource { diff --git a/angular-ui-sortable/angular-ui-sortable-tests.ts b/angular-ui-sortable/angular-ui-sortable-tests.ts index 836dc71e9a..a31c128ac5 100644 --- a/angular-ui-sortable/angular-ui-sortable-tests.ts +++ b/angular-ui-sortable/angular-ui-sortable-tests.ts @@ -1,4 +1,4 @@ -/// +/// /// var myApp = angular.module('testModule'); diff --git a/angular-ui-sortable/angular-ui-sortable.d.ts b/angular-ui-sortable/angular-ui-sortable.d.ts index ac3ac89fc7..03978a6599 100644 --- a/angular-ui-sortable/angular-ui-sortable.d.ts +++ b/angular-ui-sortable/angular-ui-sortable.d.ts @@ -3,7 +3,7 @@ // Definitions by: Thodoris Greasidis // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace angular.ui { diff --git a/angular-wizard/angular-wizard-tests.ts b/angular-wizard/angular-wizard-tests.ts index 05a5d574f1..512327d3a9 100644 --- a/angular-wizard/angular-wizard-tests.ts +++ b/angular-wizard/angular-wizard-tests.ts @@ -1,5 +1,5 @@ /// -/// +/// /// /// diff --git a/angularLocalStorage/angularLocalStorage-tests.ts b/angularLocalStorage/angularLocalStorage-tests.ts index 366ab6e44a..0071d3e661 100644 --- a/angularLocalStorage/angularLocalStorage-tests.ts +++ b/angularLocalStorage/angularLocalStorage-tests.ts @@ -1,4 +1,4 @@ -/// +/// /// interface TestScope extends ng.IScope { diff --git a/angulartics/angulartics-tests.ts b/angulartics/angulartics-tests.ts index f5a7190bd6..70989261b5 100644 --- a/angulartics/angulartics-tests.ts +++ b/angulartics/angulartics-tests.ts @@ -1,5 +1,5 @@ /// -/// +/// namespace Analytics { angular.module("angulartics.app", ["angulartics"]) diff --git a/angulartics/angulartics.d.ts b/angulartics/angulartics.d.ts index 8714e1a903..29eedba9bf 100644 --- a/angulartics/angulartics.d.ts +++ b/angulartics/angulartics.d.ts @@ -3,7 +3,7 @@ // Definitions by: Steven Fan // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace angulartics { interface IAngularticsStatic { diff --git a/ansi-styles/ansi-styles.d.ts b/ansi-styles/ansi-styles.d.ts index 2d853a0c49..4522ece77a 100644 --- a/ansi-styles/ansi-styles.d.ts +++ b/ansi-styles/ansi-styles.d.ts @@ -10,31 +10,31 @@ export interface EscapeCodePair { close: string; } -declare export var reset: EscapeCodePair; +export declare var reset: EscapeCodePair; -declare export var bold: EscapeCodePair; -declare export var dim: EscapeCodePair; -declare export var italic: EscapeCodePair; -declare export var underline: EscapeCodePair; -declare export var inverse: EscapeCodePair; -declare export var hidden: EscapeCodePair; -declare export var strikethrough: EscapeCodePair; +export declare var bold: EscapeCodePair; +export declare var dim: EscapeCodePair; +export declare var italic: EscapeCodePair; +export declare var underline: EscapeCodePair; +export declare var inverse: EscapeCodePair; +export declare var hidden: EscapeCodePair; +export declare var strikethrough: EscapeCodePair; -declare export var black: EscapeCodePair; -declare export var red: EscapeCodePair; -declare export var green: EscapeCodePair; -declare export var yellow: EscapeCodePair; -declare export var blue: EscapeCodePair; -declare export var magenta: EscapeCodePair; -declare export var cyan: EscapeCodePair; -declare export var white: EscapeCodePair; -declare export var gray: EscapeCodePair; +export declare var black: EscapeCodePair; +export declare var red: EscapeCodePair; +export declare var green: EscapeCodePair; +export declare var yellow: EscapeCodePair; +export declare var blue: EscapeCodePair; +export declare var magenta: EscapeCodePair; +export declare var cyan: EscapeCodePair; +export declare var white: EscapeCodePair; +export declare var gray: EscapeCodePair; -declare export var bgBlack: EscapeCodePair; -declare export var bgRed: EscapeCodePair; -declare export var bgGreen: EscapeCodePair; -declare export var bgYellow: EscapeCodePair; -declare export var bgBlue: EscapeCodePair; -declare export var bgMagenta: EscapeCodePair; -declare export var bgCyan: EscapeCodePair; -declare export var bgWhite: EscapeCodePair; +export declare var bgBlack: EscapeCodePair; +export declare var bgRed: EscapeCodePair; +export declare var bgGreen: EscapeCodePair; +export declare var bgYellow: EscapeCodePair; +export declare var bgBlue: EscapeCodePair; +export declare var bgMagenta: EscapeCodePair; +export declare var bgCyan: EscapeCodePair; +export declare var bgWhite: EscapeCodePair; diff --git a/any-db/any-db.d.ts b/any-db/any-db.d.ts index 5d6f665f57..77f93a4620 100644 --- a/any-db/any-db.d.ts +++ b/any-db/any-db.d.ts @@ -286,7 +286,7 @@ export interface PoolConfig { * @param callback * @returns Connection object. */ -declare export function createConnection(url: string, callback?: (error: Error, connection: Connection) => void): Connection; +export declare function createConnection(url: string, callback?: (error: Error, connection: Connection) => void): Connection; /** * Create a database connection. @@ -294,8 +294,8 @@ declare export function createConnection(url: string, callback?: (error: Error, * @param callback * @returns Connection object. */ -declare export function createConnection(opts: ConnectOpts, callback?: (error: Error, connection: Connection) => void): Connection; +export declare function createConnection(opts: ConnectOpts, callback?: (error: Error, connection: Connection) => void): Connection; -declare export function createPool(url: string, config: PoolConfig): ConnectionPool; -declare export function createPool(opts: ConnectOpts, config: PoolConfig): ConnectionPool; +export declare function createPool(url: string, config: PoolConfig): ConnectionPool; +export declare function createPool(opts: ConnectOpts, config: PoolConfig): ConnectionPool; diff --git a/anydb-sql-migrations/anydb-sql-migrations.d.ts b/anydb-sql-migrations/anydb-sql-migrations.d.ts index a6f3f36be0..222a5640c7 100644 --- a/anydb-sql-migrations/anydb-sql-migrations.d.ts +++ b/anydb-sql-migrations/anydb-sql-migrations.d.ts @@ -23,7 +23,7 @@ export interface MigrationTask { down: MigFn; name: string; } -declare export function create(db: AnydbSql, tasks: any): { +export declare function create(db: AnydbSql, tasks: any): { run: () => Promise; migrateTo: (target?: string) => Promise; check: (f: (m: { diff --git a/apn/apn.d.ts b/apn/apn.d.ts index 2c4d39d81b..99e20ce44e 100644 --- a/apn/apn.d.ts +++ b/apn/apn.d.ts @@ -77,7 +77,7 @@ export interface ConnectionOptions { */ fastMode?: boolean; } -declare export class Connection extends events.EventEmitter { +export declare class Connection extends events.EventEmitter { constructor(options: ConnectionOptions); /** * This is the business end of the module. Create a `Notification` object and pass it in, along with a single recipient or an array of them and node-apn will take care of the rest, delivering the notification to each recipient. @@ -145,7 +145,7 @@ export interface NotificationAlertOptions { "loc-args"?: string[]; "launch-image"?: string; } -declare export class Notification { +export declare class Notification { /** * The maximum number of retries which should be performed when sending a notification if an error occurs. A value of 0 will only allow one attempt at sending (0 retries). Set to -1 to disable (default). */ @@ -255,7 +255,7 @@ declare export class Notification { */ trim(): number; } -declare export class Device { +export declare class Device { public token: Buffer; /** * `deviceToken` can be a `Buffer` or a `String` containing a "hex" representation of the token. Throws an error if the deviceToken supplied is invalid. @@ -312,7 +312,7 @@ export interface FeedbackData { /** * Connection to the Apple Push Notification Feedback Service and if `interval` isn't disabled automatically begins polling the service. Many of the options are the same as `apn.Connection()` */ -declare export class Feedback { +export declare class Feedback { constructor(options: FeedbackOptions); /** * Trigger a query of the feedback service. If `interval` is non-zero then this method will be called automatically. @@ -337,7 +337,7 @@ declare export class Feedback { on(event: string, listener: Function): Feedback; } -declare export enum Errors { +export declare enum Errors { "noErrorsEncountered" = 0, "processingError" = 1, "missingDeviceToken" = 2, diff --git a/argparse/argparse.d.ts b/argparse/argparse.d.ts index 7847c962bc..845d5d8fd3 100644 --- a/argparse/argparse.d.ts +++ b/argparse/argparse.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare export class ArgumentParser extends ArgumentGroup { +export declare class ArgumentParser extends ArgumentGroup { constructor(options?: ArgumentParserOptions); addSubparsers(options?: SubparserOptions): SubParser; @@ -69,10 +69,10 @@ interface ArgumentGroupOptions { description?: string; } -declare export class HelpFormatter { } -declare export class ArgumentDefaultsHelpFormatter { } -declare export class RawDescriptionHelpFormatter { } -declare export class RawTextHelpFormatter { } +export declare class HelpFormatter { } +export declare class ArgumentDefaultsHelpFormatter { } +export declare class RawDescriptionHelpFormatter { } +export declare class RawTextHelpFormatter { } interface ArgumentOptions { action?: string; diff --git a/aspnet-identity-pw/aspnet-identity-pw.d.ts b/aspnet-identity-pw/aspnet-identity-pw.d.ts index 4fd74c721b..cadffeef1a 100644 --- a/aspnet-identity-pw/aspnet-identity-pw.d.ts +++ b/aspnet-identity-pw/aspnet-identity-pw.d.ts @@ -5,8 +5,8 @@ -declare export function hashPassword(password: string): string; -declare export function hashPassword(password: string, callback: (err: any, result: string) => void): void; +export declare function hashPassword(password: string): string; +export declare function hashPassword(password: string, callback: (err: any, result: string) => void): void; -declare export function validatePassword(password: string, hashedPass: string): boolean; -declare export function validatePassword(password: string, hashedPass: string, callback: (err: any, result: boolean) => void): void; +export declare function validatePassword(password: string, hashedPass: string): boolean; +export declare function validatePassword(password: string, hashedPass: string, callback: (err: any, result: boolean) => void): void; diff --git a/assertsharp/assertsharp.d.ts b/assertsharp/assertsharp.d.ts index ef800f5396..2bcd92dd93 100644 --- a/assertsharp/assertsharp.d.ts +++ b/assertsharp/assertsharp.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare export default class Assert { +export declare default class Assert { static AreEqual(expected: T, actual: T, message?: string): void; static AreNotEqual(notExpected: T, actual: T, message?: string): void; static AreNotSame(notExpected: T, actual: T, message?: string): void; diff --git a/atpl/atpl.d.ts b/atpl/atpl.d.ts index ccb3bfa1c7..1a97a957ff 100644 --- a/atpl/atpl.d.ts +++ b/atpl/atpl.d.ts @@ -6,14 +6,14 @@ // Imported from: https://github.com/soywiz/typescript-node-definitions/atpl.d.ts -declare export function compile(templateString: string, options: any): (context: any) => string; -declare export function __express(filename: string, options: any, callback: Function): any; +export declare function compile(templateString: string, options: any): (context: any) => string; +export declare function __express(filename: string, options: any, callback: Function): any; -declare export function registerExtension(items: any): void; -declare export function registerTags(items: any): void; -declare export function registerFunctions(items: any): void; -declare export function registerFilters(items: any): void; -declare export function registerTests(items: any): void; +export declare function registerExtension(items: any): void; +export declare function registerTags(items: any): void; +export declare function registerFunctions(items: any): void; +export declare function registerFilters(items: any): void; +export declare function registerTests(items: any): void; -declare export function renderFileSync(viewsPath: string, filename: string, parameters: any, cache: boolean): string; -declare export function renderFile(viewsPath: string, filename: string, parameters: any, cache: boolean, done: (err: Error, result?: string) => void): void; +export declare function renderFileSync(viewsPath: string, filename: string, parameters: any, cache: boolean): string; +export declare function renderFile(viewsPath: string, filename: string, parameters: any, cache: boolean, done: (err: Error, result?: string) => void): void; diff --git a/auth0-angular/auth0-angular.d.ts b/auth0-angular/auth0-angular.d.ts index fef9dbd3ef..e4a0799e4b 100644 --- a/auth0-angular/auth0-angular.d.ts +++ b/auth0-angular/auth0-angular.d.ts @@ -3,7 +3,7 @@ // Definitions by: Matt Emory // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace auth0.angular { diff --git a/aws-sdk/aws-sdk.d.ts b/aws-sdk/aws-sdk.d.ts index 786e840b84..dbf2404e9b 100644 --- a/aws-sdk/aws-sdk.d.ts +++ b/aws-sdk/aws-sdk.d.ts @@ -9,11 +9,11 @@ -declare export var config: ClientConfig; +export declare var config: ClientConfig; -declare export function Config(json: any): void; +export declare function Config(json: any): void; -declare export class Credentials { +export declare class Credentials { constructor(accessKeyId: string, secretAccessKey: string, sessionToken?: string); accessKeyId: string; } @@ -31,7 +31,7 @@ export interface HttpOptions { xhrWithCredentials?: boolean; } -declare export class Endpoint { +export declare class Endpoint { constructor(endpoint: string); host: string; @@ -108,7 +108,7 @@ export interface ClientConfig extends ClientConfigPartial { region: string; } -declare export class SQS { +export declare class SQS { constructor(options?: any); endpoint: Endpoint; @@ -131,28 +131,28 @@ declare export class SQS { setQueueAttributes(params: SQS.SetQueueAttributesParams, callback: (err: Error, data: any) => void): void; } -declare export class SES { +export declare class SES { constructor(options?: any); public client: Ses.Client; } -declare export class SNS { +export declare class SNS { constructor(options?: any); public client: Sns.Client; } -declare export class SimpleWorkflow { +export declare class SimpleWorkflow { constructor(options?: any); public client: Swf.Client; } -declare export class S3 { +export declare class S3 { constructor(options?: any); putObject(params: s3.PutObjectRequest, callback: (err: any, data: any) => void): void; getObject(params: s3.GetObjectRequest, callback: (err: any, data: any) => void): void; } -declare export class ECS { +export declare class ECS { constructor(options?: any); createService(params: ecs.CreateServicesParams, callback: (err: any, data: any) => void): void; @@ -162,17 +162,17 @@ declare export class ECS { updateService(params: ecs.UpdateServiceParams, callback: (err: any, data: any) => void): void; } -declare export class DynamoDB { +export declare class DynamoDB { constructor(options?: any); } -declare export module DynamoDB { +export declare module DynamoDB { export class DocumentClient { constructor(options?: any); } } -declare export module SQS { +export declare module SQS { export interface SqsOptions { params?: any; @@ -364,7 +364,7 @@ declare export module SQS { } -declare export module Ses { +export declare module Ses { export interface Client { config: ClientConfig; @@ -407,7 +407,7 @@ declare export module Ses { } -declare export module Swf { +export declare module Swf { export class Client { //constructor(options?: any); @@ -1018,7 +1018,7 @@ declare export module Swf { } -declare export module Sns { +export declare module Sns { export interface Client { config: ClientConfig; @@ -1053,7 +1053,7 @@ declare export module Sns { } -declare export module s3 { +export declare module s3 { export interface PutObjectRequest { ACL?: string; @@ -1097,7 +1097,7 @@ declare export module s3 { } -declare export module ecs { +export declare module ecs { export interface CreateServicesParams { desiredCount: number; serviceName: string; diff --git a/azure/azure.d.ts b/azure/azure.d.ts index ffa545166f..e6a65b769b 100644 --- a/azure/azure.d.ts +++ b/azure/azure.d.ts @@ -16,7 +16,7 @@ import stream = require("stream"); import url = require("url"); //#region Services -declare export class TableService extends BatchServiceClient { +export declare class TableService extends BatchServiceClient { static incorrectTableNameErr: string; static incorrectCallbackErr: string; static incorrectTableQuery: string; @@ -114,7 +114,7 @@ declare export class TableService extends BatchServiceClient { //#endregion } -declare export class BlobService extends StorageServiceClient { +export declare class BlobService extends StorageServiceClient { singleBlobPutThresholdInBytes: number; parallelOperationThreadCount: number; @@ -479,7 +479,7 @@ declare export class BlobService extends StorageServiceClient { //#endregion } -declare export class QueueService extends StorageServiceClient { +export declare class QueueService extends StorageServiceClient { authenticationProvider: SharedKey; //#region Constructors @@ -619,44 +619,44 @@ declare export class QueueService extends StorageServiceClient { //#endregion } -declare export class ServiceBusService { +export declare class ServiceBusService { } -declare export class SqlService { +export declare class SqlService { } -declare export class ServiceManagementService { +export declare class ServiceManagementService { } -declare export class SqlManagementService { +export declare class SqlManagementService { } //#endregion //#region Service Creators -declare export function createTableService(): TableService; -declare export function createTableService(connectionString: string): TableService; -declare export function createTableService(storageAccount: string, storageAccessKey: string, host?: string, authenticationProvider?: string): TableService; +export declare function createTableService(): TableService; +export declare function createTableService(connectionString: string): TableService; +export declare function createTableService(storageAccount: string, storageAccessKey: string, host?: string, authenticationProvider?: string): TableService; -declare export function createBlobService(): BlobService; -declare export function createBlobService(connectionString: string): BlobService; -declare export function createBlobService(storageAccount: string, storageAccessKey: string, host?: string, authenticationProvider?: string): BlobService; +export declare function createBlobService(): BlobService; +export declare function createBlobService(connectionString: string): BlobService; +export declare function createBlobService(storageAccount: string, storageAccessKey: string, host?: string, authenticationProvider?: string): BlobService; -declare export function createQueueService(): QueueService; -declare export function createQueueService(connectionString: string): QueueService; -declare export function createQueueService(storageAccount: string, storageAccessKey: string, host?: string, authenticationProvider?: string): QueueService; +export declare function createQueueService(): QueueService; +export declare function createQueueService(connectionString: string): QueueService; +export declare function createQueueService(storageAccount: string, storageAccessKey: string, host?: string, authenticationProvider?: string): QueueService; -declare export function createServiceBusService(): ServiceBusService; -declare export function createServiceBusService(connectionString: string): ServiceBusService; -declare export function createServiceBusService(namespace: string, accessKey?: string, issuer?: string, acsNamespace?: string, host?: string, authenticationProvider?: string): ServiceBusService; +export declare function createServiceBusService(): ServiceBusService; +export declare function createServiceBusService(connectionString: string): ServiceBusService; +export declare function createServiceBusService(namespace: string, accessKey?: string, issuer?: string, acsNamespace?: string, host?: string, authenticationProvider?: string): ServiceBusService; -declare export function createSqlService(serverName: string, administratorLogin: string, administratorLoginPassword: string, host?: string, acsHost?: string, authenticationProvider?: string): SqlService; +export declare function createSqlService(serverName: string, administratorLogin: string, administratorLoginPassword: string, host?: string, acsHost?: string, authenticationProvider?: string): SqlService; -declare export function createServiceManagementService(subscriptionId: string, authentication: string, hostOptions: string): ServiceManagementService; +export declare function createServiceManagementService(subscriptionId: string, authentication: string, hostOptions: string): ServiceManagementService; -declare export function createSqlManagementService(subscriptionId: string, authentication: string, hostOptions: string): SqlManagementService; +export declare function createSqlManagementService(subscriptionId: string, authentication: string, hostOptions: string): SqlManagementService; //#endregion //#region RoleEnvironment @@ -745,12 +745,12 @@ interface RoleEnvironmentInterface extends events.EventEmitter { clearStatus(callback: ErrorCallback): void; } -declare export var RoleEnvironment: RoleEnvironmentInterface; +export declare var RoleEnvironment: RoleEnvironmentInterface; //#endregion //#region Export of internal classes -declare export class WebResource { +export declare class WebResource { rawResponse: boolean; queryString: Dictionary; @@ -777,7 +777,7 @@ declare export class WebResource { pipeInput(inputStream: stream.Stream, destStream: stream.Stream): stream.Stream; } -declare export class ServiceClient extends events.EventEmitter { +export declare class ServiceClient extends events.EventEmitter { static EnvironmentVariables: any; static DEVSTORE_STORAGE_ACCOUNT: string; static DEVSTORE_STORAGE_ACCESS_KEY: string; @@ -807,7 +807,7 @@ declare export class ServiceClient extends events.EventEmitter { setProxy(proxyUrl: string, proxyPort: number): void; } -declare export class BatchServiceClient extends StorageServiceClient { +export declare class BatchServiceClient extends StorageServiceClient { operations: any[]; constructor(storageAccount: string, storageAccessKey: string, host: string, usePathstyleUri: boolean, authenticationProvider: any); @@ -822,11 +822,11 @@ declare export class BatchServiceClient extends StorageServiceClient { processOperation(webResource: WebResource, rawResponse: string): any; } -declare export class ServiceManagementClient { +export declare class ServiceManagementClient { } -declare export class TableQuery { +export declare class TableQuery { static select(...fields: string[]): TableQuery; from(table: string): TableQuery; whereKeys(partitionKey: string, rowKey: string): TableQuery; @@ -839,7 +839,7 @@ declare export class TableQuery { toPath(): string; } -declare export class BlobResult { +export declare class BlobResult { blob: string; container: string; @@ -889,7 +889,7 @@ declare export class BlobResult { getPropertiesFromHeaders(headers: any): void; } -declare export class ContainerResult { +export declare class ContainerResult { name: string; publicAccessLevel: string; @@ -912,7 +912,7 @@ declare export class ContainerResult { getPropertiesFromHeaders(headers: any): void; } -declare export class LeaseResult { +export declare class LeaseResult { container: string; blob: string; id: string; @@ -929,7 +929,7 @@ declare export class LeaseResult { getPropertiesFromHeaders(header: any): void; } -declare export class QueueResult { +export declare class QueueResult { name: string; metadata: StorageMetadata; approximatemessagecount: number; @@ -943,7 +943,7 @@ declare export class QueueResult { getPropertiesFromHeaders(headers: any): void; } -declare export class QueueMessageResult { +export declare class QueueMessageResult { queue: string; insertiontime: string; expirationtime: string; @@ -966,7 +966,7 @@ declare export class QueueMessageResult { getPropertiesFromHeaders(headers: any): void; } -declare export class SpeedSummary { +export declare class SpeedSummary { name: string; totalSize: number; completeSize: number; @@ -1022,7 +1022,7 @@ declare export class SpeedSummary { getCompleteSize(humanReadable: boolean): number; } -declare export module Constants { +export declare module Constants { } @@ -1030,14 +1030,14 @@ export interface Filter { handle(requestOptions: any, next: Function): void; } -declare export class LinearRetryPolicyFilter implements Filter { +export declare class LinearRetryPolicyFilter implements Filter { constructor(retryCount?: number, retryInterval?: number); retryCount: number; retryInterval: number; handle(requestOptions: any, next: Function): void; } -declare export class ExponentialRetryPolicyFilter implements Filter { +export declare class ExponentialRetryPolicyFilter implements Filter { constructor(retryCount?: number, retryInterval?: number, minRetryInterval?: number, maxRetryInterval?: number); retryCount: number; retryInterval: number; @@ -1046,11 +1046,11 @@ declare export class ExponentialRetryPolicyFilter implements Filter { handle(requestOptions: any, next: Function): void; } -declare export class HmacSha256Sign { +export declare class HmacSha256Sign { } -declare export class SharedAccessSignature { +export declare class SharedAccessSignature { storageAccount: string; storageAccessKey: string; permissionSet: string[]; @@ -1079,7 +1079,7 @@ declare export class SharedAccessSignature { _permissionMatchesRequest(sharedAccessSignature: string, webResource: WebResource, resourceType: string, requiredPermissions: string[]): string; } -declare export class SharedKey { +export declare class SharedKey { storageAccount: string; storageAccessKey: string; usePathStyleUri: string; @@ -1114,7 +1114,7 @@ declare export class SharedKey { _getCanonicalizedHeaders(webResource: WebResource): string; } -declare export class SharedKeyLite { +export declare class SharedKeyLite { storageAccount: string; storageAccessKey: string; usePathStyleUri: string; @@ -1149,7 +1149,7 @@ declare export class SharedKeyLite { _getCanonicalizedHeaders(webResource: WebResource): string; } -declare export class SharedKeyTable { +export declare class SharedKeyTable { storageAccount: string; storageAccessKey: string; usePathStyleUri: string; @@ -1168,7 +1168,7 @@ declare export class SharedKeyTable { _getCanonicalizedResource(webResource: WebResource): string; } -declare export class SharedKeyLiteTable { +export declare class SharedKeyLiteTable { torageAccount: string; storageAccessKey: string; usePathStyleUri: string; @@ -1187,7 +1187,7 @@ declare export class SharedKeyLiteTable { _getCanonicalizedResource(webResource: WebResource): string; } -declare export module ISO8061Date { +export declare module ISO8061Date { /** * Formats a date into an iso 8061 string. */ @@ -1199,7 +1199,7 @@ declare export module ISO8061Date { export function parse(stringDateTime: string): Date; } -declare export class Logger { +export declare class Logger { level: string; loggerFunction: (level: string, message: string) => void; @@ -1228,7 +1228,7 @@ declare export class Logger { defaultLoggerFunction(level: string, message: string): void; } -declare export class ConnectionStringParser { +export declare class ConnectionStringParser { _value: string; _pos: number; _state: string; @@ -1247,7 +1247,7 @@ declare export class ConnectionStringParser { static parse(connectionString: string): Dictionary; } -declare export module ServiceSettings { +export declare module ServiceSettings { export var DEFAULT_PROTOCOL: string; export class NoMatchError implements Error { @@ -1318,7 +1318,7 @@ declare export module ServiceSettings { export function parseHost(uri: string): url.Url; } -declare export class StorageServiceSettings { +export declare class StorageServiceSettings { _name: string; _key: string; _blobEndpointUri: string; @@ -1371,15 +1371,15 @@ declare export class StorageServiceSettings { static customizeConfig(config: any): void; } -declare export class ServiceBusSettings { +export declare class ServiceBusSettings { } -declare export class ServiceManagementSettinsg { +export declare class ServiceManagementSettinsg { } -declare export module Validate { +export declare module Validate { /** * Checks if the given uri is valid or not. */ @@ -1441,7 +1441,7 @@ declare export module Validate { export function validateArgs(functionName: string, validationRules: Function): boolean; } -declare export module date { +export declare module date { /** * Generates a Date object which is in the given days from now. */ @@ -1878,4 +1878,4 @@ declare class StorageServiceClient extends ServiceClient { } //#endregion -declare export function isEmulated(): boolean; +export declare function isEmulated(): boolean; diff --git a/bardjs/bardjs-tests.ts b/bardjs/bardjs-tests.ts index b29900ad7d..d99a746684 100644 --- a/bardjs/bardjs-tests.ts +++ b/bardjs/bardjs-tests.ts @@ -1,7 +1,7 @@ /// /// /// -/// +/// /// namespace bardTests { diff --git a/bardjs/bardjs.d.ts b/bardjs/bardjs.d.ts index 4395ef6ddb..27fabe7617 100644 --- a/bardjs/bardjs.d.ts +++ b/bardjs/bardjs.d.ts @@ -3,7 +3,7 @@ // Definitions by: Andrew Archibald // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// /// /// diff --git a/bcrypt-nodejs/bcrypt-nodejs.d.ts b/bcrypt-nodejs/bcrypt-nodejs.d.ts index 982efaa60c..d6baffaffa 100644 --- a/bcrypt-nodejs/bcrypt-nodejs.d.ts +++ b/bcrypt-nodejs/bcrypt-nodejs.d.ts @@ -9,14 +9,14 @@ * @param rounds Number of rounds to process the data for (default - 10) * @return Generated salt */ -declare export function genSaltSync(rounds?: number): string; +export declare function genSaltSync(rounds?: number): string; /** * Generate a salt asynchronously * @param rounds Number of rounds to process the data for (default - 10) * @param callback Callback with error and resulting salt, to be fired once the salt has been generated */ -declare export function genSalt(rounds: number, callback: (error: Error, result: string) => void): void; +export declare function genSalt(rounds: number, callback: (error: Error, result: string) => void): void; /** * Generate a hash synchronously @@ -24,7 +24,7 @@ declare export function genSalt(rounds: number, callback: (error: Error, result: * @param salt Salt to be used in encryption (default - new salt generated with 10 rounds) * @return Generated hash */ -declare export function hashSync(data: string, salt?: string): string; +export declare function hashSync(data: string, salt?: string): string; /** * Generate a hash asynchronously @@ -32,7 +32,7 @@ declare export function hashSync(data: string, salt?: string): string; * @param salt Salt to be used in encryption * @param callback Callback with error and hashed result, to be fired once the data has been encrypted */ -declare export function hash(data: string, salt: string, callback: (error: Error, result: string) => void): void; +export declare function hash(data: string, salt: string, callback: (error: Error, result: string) => void): void; /** * Generate a hash asynchronously @@ -41,7 +41,7 @@ declare export function hash(data: string, salt: string, callback: (error: Error * @param progressCallback Callback to be fired multiple times during the hash calculation to signify progress * @param callback Callback with error and hashed result, to be fired once the data has been encrypted */ -declare export function hash(data: string, salt: string, progressCallback: () => void, callback: (error: Error, result: string) => void): void; +export declare function hash(data: string, salt: string, progressCallback: () => void, callback: (error: Error, result: string) => void): void; /** * Compares data with a hash synchronously @@ -49,7 +49,7 @@ declare export function hash(data: string, salt: string, progressCallback: () => * @param hash Hash to be compared to * @return true if matching, false otherwise */ -declare export function compareSync(data: string, hash: string): boolean; +export declare function compareSync(data: string, hash: string): boolean; /** * Compares data with a hash asynchronously @@ -57,11 +57,11 @@ declare export function compareSync(data: string, hash: string): boolean; * @param hash Hash to be compared to * @param callback Callback with error and match result, to be fired once the data has been compared */ -declare export function compare(data: string, hash: string, callback: (error: Error, result: boolean) => void): void; +export declare function compare(data: string, hash: string, callback: (error: Error, result: boolean) => void): void; /** * Get number of rounds used for hash * @param hash Hash from which the number of rounds used should be extracted * @return number of rounds used to encrypt a given hash */ -declare export function getRounds(hash: string): number; +export declare function getRounds(hash: string): number; diff --git a/bcrypt/bcrypt.d.ts b/bcrypt/bcrypt.d.ts index 304214cc5d..d9eafce4ef 100644 --- a/bcrypt/bcrypt.d.ts +++ b/bcrypt/bcrypt.d.ts @@ -7,58 +7,58 @@ /** * @param rounds The cost of processing the data. Default 10. */ -declare export function genSaltSync(rounds?: number): string; +export declare function genSaltSync(rounds?: number): string; /** * @param rounds The cost of processing the data. Default 10. * @param callback A callback to be fire once the sald has been generated. Uses eio making it asynchronous. */ -declare export function genSalt(rounds: number, callback: (err: Error, salt: string) => void): void; +export declare function genSalt(rounds: number, callback: (err: Error, salt: string) => void): void; /** * @param callback A callback to be fire once the sald has been generated. Uses eio making it asynchronous. */ -declare export function genSalt(callback: (err: Error, salt: string) => void): void; +export declare function genSalt(callback: (err: Error, salt: string) => void): void; /** * @param data The data to be encrypted. * @param salt The salt to be used in encryption. */ -declare export function hashSync(data: any, salt: string): string; +export declare function hashSync(data: any, salt: string): string; /** * @param data The data to be encrypted. * @param rounds A salt will be generated using the rounds specified. */ -declare export function hashSync(data: any, rounds: number): string; +export declare function hashSync(data: any, rounds: number): string; /** * @param data The data to be encrypted. * @param salt The salt to be used in encryption. * @param callback A callback to be fired once the data has been encrypted. Uses eio making it asynchronous. */ -declare export function hash(data: any, salt: string, callback: (err: Error, encrypted: string) => void): void; +export declare function hash(data: any, salt: string, callback: (err: Error, encrypted: string) => void): void; /** * @param data The data to be encrypted. * @param rounds A salt will be generated using the rounds specified. * @param callback A callback to be fired once the data has been encrypted. Uses eio making it asynchronous. */ -declare export function hash(data: any, rounds: number, callback: (err: Error, encrypted: string) => void): void; +export declare function hash(data: any, rounds: number, callback: (err: Error, encrypted: string) => void): void; /** * @param data The data to be encrypted. * @param encrypted The data to be compared against. */ -declare export function compareSync(data: any, encrypted: string): boolean; +export declare function compareSync(data: any, encrypted: string): boolean; /** * @param data The data to be encrypted. * @param encrypted The data to be compared against. * @param callback A callback to be fire once the data has been compared. Uses eio making it asynchronous. */ -declare export function compare(data: any, encrypted: string, callback: (err: Error, same: boolean) => void): void; +export declare function compare(data: any, encrypted: string, callback: (err: Error, same: boolean) => void): void; /** * Return the number of rounds used to encrypt a given hash * * @param encrypted Hash from which the number of rounds used should be extracted. */ -declare export function getRounds(encrypted: string): number; +export declare function getRounds(encrypted: string): number; diff --git a/bcryptjs/bcryptjs.d.ts b/bcryptjs/bcryptjs.d.ts index 896d1c5961..fd1c0d7903 100644 --- a/bcryptjs/bcryptjs.d.ts +++ b/bcryptjs/bcryptjs.d.ts @@ -10,27 +10,27 @@ * Please note: It is highly important that the PRNG used is cryptographically secure and that it is seeded properly! * @param random Function taking the number of bytes to generate as its sole argument, returning the corresponding array of cryptographically secure random byte values. */ -declare export function setRandomFallback(random: (random: number) => number[]): void; +export declare function setRandomFallback(random: (random: number) => number[]): void; /** * Synchronously generates a salt. * @param rounds Number of rounds to use, defaults to 10 if omitted * @return Resulting salt */ -declare export function genSaltSync(rounds?: number): string; +export declare function genSaltSync(rounds?: number): string; /** * Asynchronously generates a salt. * @param callback Callback receiving the error, if any, and the resulting salt */ -declare export function genSalt(callback: (err: Error, salt: string) => void): void; +export declare function genSalt(callback: (err: Error, salt: string) => void): void; /** * Asynchronously generates a salt. * @param rounds Number of rounds to use, defaults to 10 if omitted * @param callback Callback receiving the error, if any, and the resulting salt */ -declare export function genSalt(rounds: number, callback: (err: Error, salt: string) => void): void; +export declare function genSalt(rounds: number, callback: (err: Error, salt: string) => void): void; /** * Synchronously generates a hash for the given string. @@ -38,7 +38,7 @@ declare export function genSalt(rounds: number, callback: (err: Error, salt: str * @param salt Salt length to generate or salt to use, default to 10 * @return Resulting hash */ -declare export function hashSync(s: string, salt?: number | string): string; +export declare function hashSync(s: string, salt?: number | string): string; /** * Asynchronously generates a hash for the given string. @@ -47,7 +47,7 @@ declare export function hashSync(s: string, salt?: number | string): string; * @param callback Callback receiving the error, if any, and the resulting hash * @param progressCallback Callback successively called with the percentage of rounds completed (0.0 - 1.0), maximally once per MAX_EXECUTION_TIME = 100 ms. */ -declare export function hash(s: string, salt: number | string, callback: (err: Error, hash: string) => void, progressCallback?: (percent: number) => void): void; +export declare function hash(s: string, salt: number | string, callback: (err: Error, hash: string) => void, progressCallback?: (percent: number) => void): void; /** * Synchronously tests a string against a hash. @@ -55,7 +55,7 @@ declare export function hash(s: string, salt: number | string, callback: (err: E * @param hash Hash to test against * @return true if matching, otherwise false */ -declare export function compareSync(s: string, hash: string): boolean; +export declare function compareSync(s: string, hash: string): boolean; /** * Asynchronously compares the given data against the given hash. @@ -64,18 +64,18 @@ declare export function compareSync(s: string, hash: string): boolean; * @param callback Callback receiving the error, if any, otherwise the result * @param progressCallback Callback successively called with the percentage of rounds completed (0.0 - 1.0), maximally once per MAX_EXECUTION_TIME = 100 ms. */ -declare export function compare(s: string, hash: string, callback: (err: Error, success: boolean) => void, progressCallback?: (percent: number) => void): void; +export declare function compare(s: string, hash: string, callback: (err: Error, success: boolean) => void, progressCallback?: (percent: number) => void): void; /** * Gets the number of rounds used to encrypt the specified hash. * @param hash Hash to extract the used number of rounds from * @return Number of rounds used */ -declare export function getRounds(hash: string): number; +export declare function getRounds(hash: string): number; /** * Gets the salt portion from a hash. Does not validate the hash. * @param hash Hash to extract the salt from * @return Extracted salt part */ -declare export function getSalt(hash: string): string; +export declare function getSalt(hash: string): string; diff --git a/blueimp-md5/blueimp-md5.d.ts b/blueimp-md5/blueimp-md5.d.ts index 4434c55ab8..b51f554e32 100644 --- a/blueimp-md5/blueimp-md5.d.ts +++ b/blueimp-md5/blueimp-md5.d.ts @@ -3,4 +3,4 @@ // Definitions by: Ray Martone // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare export function md5(value: string, key?: string, raw?: boolean): string; +export declare function md5(value: string, key?: string, raw?: boolean): string; diff --git a/browser-harness/browser-harness.d.ts b/browser-harness/browser-harness.d.ts index d9c6116d71..aea6c43dbd 100644 --- a/browser-harness/browser-harness.d.ts +++ b/browser-harness/browser-harness.d.ts @@ -116,7 +116,7 @@ export interface ElementProxy { filter(selector: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy } -declare export class Browser { +export declare class Browser { //constructor(args: { type: string; location?: string; args?: string[] }); constructor(args: { type: string; location?: string; args?: any; }); @@ -124,9 +124,9 @@ declare export class Browser { close(); } -declare export function listen(port: number, callback?: Function) -declare export var events: HarnessEvents; -declare export var config: { +export declare function listen(port: number, callback?: Function) +export declare var events: HarnessEvents; +export declare var config: { timeoutMS: number; retryMS: number; }; diff --git a/bunyan-logentries/bunyan-logentries.d.ts b/bunyan-logentries/bunyan-logentries.d.ts index dbd167dfa6..76e13b9532 100644 --- a/bunyan-logentries/bunyan-logentries.d.ts +++ b/bunyan-logentries/bunyan-logentries.d.ts @@ -13,4 +13,4 @@ interface StreamOptions { token: string; } -declare export function createStream(options: StreamOptions): NodeJS.WritableStream; +export declare function createStream(options: StreamOptions): NodeJS.WritableStream; diff --git a/bunyan/bunyan.d.ts b/bunyan/bunyan.d.ts index ce7b17ab62..af3979a64f 100644 --- a/bunyan/bunyan.d.ts +++ b/bunyan/bunyan.d.ts @@ -72,18 +72,18 @@ interface Stream { count?: number; } -declare export var stdSerializers: Serializers; +export declare var stdSerializers: Serializers; -declare export var TRACE: number; -declare export var DEBUG: number; -declare export var INFO: number; -declare export var WARN: number; -declare export var ERROR: number; -declare export var FATAL: number; +export declare var TRACE: number; +export declare var DEBUG: number; +export declare var INFO: number; +export declare var WARN: number; +export declare var ERROR: number; +export declare var FATAL: number; -declare export function resolveLevel(value: number | string): number; +export declare function resolveLevel(value: number | string): number; -declare export function createLogger(options: LoggerOptions): Logger; +export declare function createLogger(options: LoggerOptions): Logger; declare class RingBuffer extends EventEmitter { constructor(options: RingBufferOptions); @@ -101,4 +101,4 @@ interface RingBufferOptions { limit?: number; } -declare export function safeCycles(): (key: string, value: any) => any; +export declare function safeCycles(): (key: string, value: any) => any; diff --git a/byline/byline.d.ts b/byline/byline.d.ts index 95f035f06e..ae8eeb6acd 100644 --- a/byline/byline.d.ts +++ b/byline/byline.d.ts @@ -31,7 +31,7 @@ export interface LineStreamCreatable extends LineStream { // ():LineStream; // same as createStream():LineStream // (stream:stream.Stream, options?:LineStreamOptions):LineStream; // same as createStream(stream, options?):LineStream -declare export function createStream(): LineStream; -declare export function createStream(stream: NodeJS.ReadableStream, options?: LineStreamOptions): LineStream; +export declare function createStream(): LineStream; +export declare function createStream(stream: NodeJS.ReadableStream, options?: LineStreamOptions): LineStream; -declare export var LineStream: LineStreamCreatable; +export declare var LineStream: LineStreamCreatable; diff --git a/camo/camo.d.ts b/camo/camo.d.ts index 4823480400..168765f136 100644 --- a/camo/camo.d.ts +++ b/camo/camo.d.ts @@ -110,7 +110,7 @@ declare class DocumentInstance { /** * Camo document */ -declare export class Document { +export declare class Document { /** * Index signature */ @@ -134,4 +134,4 @@ declare export class Document { * * @param uri Connection URI */ -declare export function connect(uri: string): Promise; +export declare function connect(uri: string): Promise; diff --git a/complex/complex.d.ts b/complex/complex.d.ts index 0aed9d8d8d..ebaa6565f9 100644 --- a/complex/complex.d.ts +++ b/complex/complex.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare export default class Complex { +export declare default class Complex { /** * @param real The real part of the number * @param im The imaginary part of the number diff --git a/confidence/confidence.d.ts b/confidence/confidence.d.ts index fc3a536c50..b0f9462903 100644 --- a/confidence/confidence.d.ts +++ b/confidence/confidence.d.ts @@ -11,7 +11,7 @@ */ -declare export class Store { +export declare class Store { /** * @constructor diff --git a/configstore/configstore.d.ts b/configstore/configstore.d.ts index 5bd5a79420..5d8463b45b 100644 --- a/configstore/configstore.d.ts +++ b/configstore/configstore.d.ts @@ -7,17 +7,17 @@ /* Set an item */ -declare export function set(key: string, val: any): void; +export declare function set(key: string, val: any): void; /* Get an item */ -declare export function get(key: string): any; +export declare function get(key: string): any; /* Delete an item */ -declare export function del(key: string): void; +export declare function del(key: string): void; /* Get all items as an object or replace the current config with an object: @@ -26,12 +26,12 @@ declare export function del(key: string): void; hello: 'world' }; */ -declare export var all: Object; +export declare var all: Object; /* Get the item count */ -declare export var size: number; +export declare var size: number; /* Get the path to the config file. Can be used to show the user where the config file is located or even better open it for them. */ -declare export var path: string; +export declare var path: string; diff --git a/convert-source-map/convert-source-map.d.ts b/convert-source-map/convert-source-map.d.ts index 6ae6c712f4..22fda2b62b 100644 --- a/convert-source-map/convert-source-map.d.ts +++ b/convert-source-map/convert-source-map.d.ts @@ -16,11 +16,11 @@ export interface SourceMapConverter { getProperty(key: string): any; } -declare export function removeComments(src: string): string; -declare export var commentRegex: RegExp; +export declare function removeComments(src: string): string; +export declare var commentRegex: RegExp; -declare export function fromObject(obj: any): SourceMapConverter; -declare export function fromJSON(json: string): SourceMapConverter; -declare export function fromBase64(base64: string): SourceMapConverter; -declare export function fromComment(comment: string): SourceMapConverter; -declare export function fromSource(source: string): SourceMapConverter; +export declare function fromObject(obj: any): SourceMapConverter; +export declare function fromJSON(json: string): SourceMapConverter; +export declare function fromBase64(base64: string): SourceMapConverter; +export declare function fromComment(comment: string): SourceMapConverter; +export declare function fromSource(source: string): SourceMapConverter; diff --git a/copy-paste/copy-paste.d.ts b/copy-paste/copy-paste.d.ts index 00ec1aa127..9b505cb0a5 100644 --- a/copy-paste/copy-paste.d.ts +++ b/copy-paste/copy-paste.d.ts @@ -14,7 +14,7 @@ export type PasteCallback = (err: Error, content: string) => void; * @param {T} content Takes either a string, array, object, or readable stream. * @return {T} Returns the same value passed in. */ -declare export function copy(content: T): T; +export declare function copy(content: T): T; /** * Asynchronously replaces the current contents of the clip board with text. @@ -23,7 +23,7 @@ declare export function copy(content: T): T; * @param {CopyCallback} callback will fire when the copy operation is complete. * @return {T} Returns the same value passed in. */ -declare export function copy(content: T, callback: CopyCallback): T; +export declare function copy(content: T, callback: CopyCallback): T; /** @@ -35,11 +35,11 @@ declare export function copy(content: T, callback: CopyCallback): T; * * @return {string} Returns the current contents of the system clip board. */ -declare export function paste(): string; +export declare function paste(): string; /** * Asynchronously returns the current contents of the system clip board. * * @param {PasteCallback} callback The contents of the system clip board are passed to the callback as the second parameter. */ -declare export function paste(callback: PasteCallback): void; +export declare function paste(callback: PasteCallback): void; diff --git a/cradle/cradle.d.ts b/cradle/cradle.d.ts index 9812979921..159787ea64 100644 --- a/cradle/cradle.d.ts +++ b/cradle/cradle.d.ts @@ -29,7 +29,7 @@ interface ErrorCallback { (error: any): void; } -declare export class Connection { +export declare class Connection { constructor(uri?: string, port?: number, options?: Options); database(name: string): Database; databases(Callback: Callback): void; @@ -60,7 +60,7 @@ export interface ChangesOptions { since: number; } -declare export class Database { +export declare class Database { name: string; get(id: string, callback: (error: any, document: any) => void): void; get(id: string, callback: (error: any, document: T) => void): void; @@ -118,4 +118,4 @@ declare export class Database { replicate(target: string, options: any, callback: Callback): void; } -declare export function setup(options: Options): void; +export declare function setup(options: Options): void; diff --git a/cron/cron.d.ts b/cron/cron.d.ts index 491b790d2e..e962a9eb27 100644 --- a/cron/cron.d.ts +++ b/cron/cron.d.ts @@ -15,10 +15,10 @@ interface CronJob { start(): void; stop(): void; } -declare export var CronJob: CronJobStatic; +export declare var CronJob: CronJobStatic; interface CronTimeStatic { new (time: string | Date): CronTime; } interface CronTime { } -declare export var CronTime: CronTimeStatic; +export declare var CronTime: CronTimeStatic; diff --git a/cross-storage/cross-storage.d.ts b/cross-storage/cross-storage.d.ts index f8e620ba29..8d425a96c8 100644 --- a/cross-storage/cross-storage.d.ts +++ b/cross-storage/cross-storage.d.ts @@ -17,7 +17,7 @@ interface SubDomain { allow: CrossStorageMethod[]; } -declare export class CrossStorageClient { +export declare class CrossStorageClient { /** * Constructs a new cross storage client given the url to a hub. By default, an iframe is created @@ -72,7 +72,7 @@ declare export class CrossStorageClient { close(): void; } -declare export class CrossStorageHub { +export declare class CrossStorageHub { /** * Accepts an array of objects with two keys: origin and allow. The value of origin is expected to be * a RegExp, and allow, an array of strings. The cross storage hub is then initialized to accept requests diff --git a/cson/cson.d.ts b/cson/cson.d.ts index e87aaff320..72b985a82d 100644 --- a/cson/cson.d.ts +++ b/cson/cson.d.ts @@ -5,27 +5,27 @@ // Create Strings -declare export function stringify(data: Object, opts?: Object, indent?: any): string; -declare export function createCSONString(data: Object, opts?: Object, next?: any): string; -declare export function createJSONString(data: Object, opts?: Object, next?: any): string; -declare export function createString(data: Object, opts?: Object, next?: any): string; +export declare function stringify(data: Object, opts?: Object, indent?: any): string; +export declare function createCSONString(data: Object, opts?: Object, next?: any): string; +export declare function createJSONString(data: Object, opts?: Object, next?: any): string; +export declare function createString(data: Object, opts?: Object, next?: any): string; // Parse Strings -declare export function parse(data: string, opts?: Object, next?: any): Object; -declare export function parseCSONString(data: string, opts?: Object, next?: any): Object; -declare export function parseJSONString(data: string, opts?: Object, next?: any): Object; -declare export function parseCSString(data: string, opts?: Object, next?: any): Object; -declare export function parseJSString(data: string, opts?: Object, next?: any): Object; -declare export function parseString(data: string, opts?: Object, next?: any): Object; +export declare function parse(data: string, opts?: Object, next?: any): Object; +export declare function parseCSONString(data: string, opts?: Object, next?: any): Object; +export declare function parseJSONString(data: string, opts?: Object, next?: any): Object; +export declare function parseCSString(data: string, opts?: Object, next?: any): Object; +export declare function parseJSString(data: string, opts?: Object, next?: any): Object; +export declare function parseString(data: string, opts?: Object, next?: any): Object; // Parse Files -declare export function load(filePath: string, opts?: Object, next?: any): Object; -declare export function parseCSONFile(filePath: string, opts?: Object, next?: any): Object; -declare export function parseJSONFile(filePath: string, opts?: Object, next?: any): Object; -declare export function parseCSFile(filePath: string, opts?: Object, next?: any): Object; -declare export function parseJSFile(filePath: string, opts?: Object, next?: any): Object; +export declare function load(filePath: string, opts?: Object, next?: any): Object; +export declare function parseCSONFile(filePath: string, opts?: Object, next?: any): Object; +export declare function parseJSONFile(filePath: string, opts?: Object, next?: any): Object; +export declare function parseCSFile(filePath: string, opts?: Object, next?: any): Object; +export declare function parseJSFile(filePath: string, opts?: Object, next?: any): Object; // Require Files -declare export function requireCSFile(filePath: string, opts?: Object, next?: any): Object; -declare export function requireJSFile(filePath: string, opts?: Object, next?: any): Object; -declare export function requireFile(filePath: string, opts?: Object, next?: any): Object; +export declare function requireCSFile(filePath: string, opts?: Object, next?: any): Object; +export declare function requireJSFile(filePath: string, opts?: Object, next?: any): Object; +export declare function requireFile(filePath: string, opts?: Object, next?: any): Object; diff --git a/diff-match-patch/diff-match-patch.d.ts b/diff-match-patch/diff-match-patch.d.ts index a57d4b2edf..5435faa1fb 100644 --- a/diff-match-patch/diff-match-patch.d.ts +++ b/diff-match-patch/diff-match-patch.d.ts @@ -6,7 +6,7 @@ type Diff = [number, string]; -declare export class diff_match_patch { +export declare class diff_match_patch { static new(): diff_match_patch; Diff_Timeout: number; @@ -33,6 +33,6 @@ declare export class diff_match_patch { diff_fromDelta(text1: string, delta: string): Diff[]; } -declare export var DIFF_DELETE: number; -declare export var DIFF_INSERT: number; -declare export var DIFF_EQUAL: number; +export declare var DIFF_DELETE: number; +export declare var DIFF_INSERT: number; +export declare var DIFF_EQUAL: number; diff --git a/documentdb/documentdb.d.ts b/documentdb/documentdb.d.ts index 053fe988bd..d5ef5f1350 100644 --- a/documentdb/documentdb.d.ts +++ b/documentdb/documentdb.d.ts @@ -234,7 +234,7 @@ interface IndexingPolicy { /** Provides a client-side logical representation of the Azure DocumentDB database account. This client is used to configure and execute requests against the service. */ -declare export class DocumentClient { +export declare class DocumentClient { /** * Constructs a DocumentClient. * @param urlConnection - The service endpoint to use to create the client. diff --git a/dot-prop/dot-prop.d.ts b/dot-prop/dot-prop.d.ts index 0d765bedbc..b8d9ce406c 100644 --- a/dot-prop/dot-prop.d.ts +++ b/dot-prop/dot-prop.d.ts @@ -4,5 +4,5 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare export function get(object: any, path: string): any; -declare export function set(object: any, path: string, value: any): void; +export declare function get(object: any, path: string): any; +export declare function set(object: any, path: string, value: any): void; diff --git a/dts-bundle/dts-bundle.d.ts b/dts-bundle/dts-bundle.d.ts index fc3cde458b..ffdbed678f 100644 --- a/dts-bundle/dts-bundle.d.ts +++ b/dts-bundle/dts-bundle.d.ts @@ -19,4 +19,4 @@ interface Options { verbose?: boolean; } -declare export function bundle(opts: Options): void; +export declare function bundle(opts: Options): void; diff --git a/dustjs-linkedin/dustjs-linkedin.d.ts b/dustjs-linkedin/dustjs-linkedin.d.ts index b81ebcdd5f..0295ca3be5 100644 --- a/dustjs-linkedin/dustjs-linkedin.d.ts +++ b/dustjs-linkedin/dustjs-linkedin.d.ts @@ -99,7 +99,7 @@ export interface Stream { * @param name the unique template name. * @param tmpl the template function. */ -declare export function register(name: string, tmpl: Template): void; +export declare function register(name: string, tmpl: Template): void; /** * compile a template body into a string of JavaScript source code @@ -107,27 +107,27 @@ declare export function register(name: string, tmpl: Template): void; * @param name the name used to register the compiled template into the internal cache. See render(). * @strip strip whitespaces from the output. Defaults to false. */ -declare export function compile(source: string, name: string, strip?: boolean): string; +export declare function compile(source: string, name: string, strip?: boolean): string; /** * Compiles source directly into a JavaScript function that takes a context and an optional callback (see dust.renderSource). Registers the template under [name] if this argument is supplied. * @param source the template string * @param name the template name (optional). */ -declare export function compileFn(source: string, name?: string): Template; +export declare function compileFn(source: string, name?: string): Template; /** * Evaluates a compiled source string. */ -declare export function loadSource(compiled: string): Template; +export declare function loadSource(compiled: string): Template; /** * Renders the named template and calls callback on completion.context may be a plain object or an instance of dust.Context. * @param name the template name. * @param context a plain object or an instance of dust.Context. */ -declare export function render(name: string, context: any, callback: (err: any, out: string) => any); -declare export function render(name: string, context: Context, callback: (err: any, out: string) => any); +export declare function render(name: string, context: any, callback: (err: any, out: string) => any); +export declare function render(name: string, context: Context, callback: (err: any, out: string) => any); /** * Compiles and renders source, invoking callback on completion. If no callback is supplied this function returns a Stream object. Use this function when precompilation is not required. @@ -135,28 +135,28 @@ declare export function render(name: string, context: Context, callback: (err: a * @param context a plain object or an instance of dust.Context. * @param callback (optional). If supplied the callback will be called passing the result string. If omitted, renderSource() will return a dust.Stream object. */ -declare export function renderSource(source: string, context: any): Stream; -declare export function renderSource(source: string, context: Context): Stream; -declare export function renderSource(source: string, context: any, callback: (err: any, out: string) => any): void; -declare export function renderSource(source: string, context: Context, callback: (err: any, out: string) => any): void; +export declare function renderSource(source: string, context: any): Stream; +export declare function renderSource(source: string, context: Context): Stream; +export declare function renderSource(source: string, context: any, callback: (err: any, out: string) => any): void; +export declare function renderSource(source: string, context: Context, callback: (err: any, out: string) => any): void; /** * Streams the named template. context may be a plain object or an instance of dust.Context. Returns an instance of dust.Stream. * @param name the template name. * @param context a plain object or an instance of dust.Context. */ -declare export function stream(name: string, context: any): Stream; -declare export function stream(name: string, context: Context): Stream; +export declare function stream(name: string, context: any): Stream; +export declare function stream(name: string, context: Context): Stream; /** * Manufactures a dust.Context instance with its global object set to object. * @param global a plain object or an instance of dust.Context. */ -declare export function makeBase(global: any): Context; -declare export function makeBase(global: Context): Context; +export declare function makeBase(global: any): Context; +export declare function makeBase(global: Context): Context; -declare export function escapeHtml(html: string): string; -declare export function escapeJs(js: string): string; +export declare function escapeHtml(html: string): string; +export declare function escapeJs(js: string): string; declare var helpers: { [key: string]: (chk: Chunk, ctx: Context, bodies?: any, params?: any) => any; diff --git a/easy-api-request/easy-api-request.d.ts b/easy-api-request/easy-api-request.d.ts index a3378b312e..0408092f38 100644 --- a/easy-api-request/easy-api-request.d.ts +++ b/easy-api-request/easy-api-request.d.ts @@ -16,7 +16,7 @@ import request = require('request'); import bunyan = require('bunyan'); import express = require('express'); -declare export function create(opts: { +export declare function create(opts: { name: any; config: { url: string; diff --git a/easy-xapi-supertest/easy-xapi-supertest.d.ts b/easy-xapi-supertest/easy-xapi-supertest.d.ts index 995f2fa581..1709161d29 100644 --- a/easy-xapi-supertest/easy-xapi-supertest.d.ts +++ b/easy-xapi-supertest/easy-xapi-supertest.d.ts @@ -25,4 +25,4 @@ interface getAgent { (...args: any[]): Agent } -declare export function getAgentFactory(app: express.Application, transform?: Function): getAgent; +export declare function getAgentFactory(app: express.Application, transform?: Function): getAgent; diff --git a/easy-xapi-utils/easy-xapi-utils.d.ts b/easy-xapi-utils/easy-xapi-utils.d.ts index 3af9fec5ff..6e9239566f 100644 --- a/easy-xapi-utils/easy-xapi-utils.d.ts +++ b/easy-xapi-utils/easy-xapi-utils.d.ts @@ -10,6 +10,6 @@ import express = require('express'); -declare export function isLoggedIn(role?: string): express.RequestHandler; -declare export function isLoggedOut(): express.RequestHandler; -declare export function hasRole(role: string): express.RequestHandler; +export declare function isLoggedIn(role?: string): express.RequestHandler; +export declare function isLoggedOut(): express.RequestHandler; +export declare function hasRole(role: string): express.RequestHandler; diff --git a/electron-json-storage/electron-json-storage.d.ts b/electron-json-storage/electron-json-storage.d.ts index 8a622ab459..23b26920af 100644 --- a/electron-json-storage/electron-json-storage.d.ts +++ b/electron-json-storage/electron-json-storage.d.ts @@ -4,9 +4,9 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare export function get(key: string, callback: (error: any, data: Object) => void): void; -declare export function set(key: string, json: Object, callback: (error: any) => void): void; -declare export function has(key: string, callback: (error: any, hasKey: boolean) => void): void; -declare export function keys(callback: (error: any, keys: string[]) => void): void; -declare export function remove(key: string, callback: (error: any) => void): void; -declare export function clear(callback: (error: any) => void): void; +export declare function get(key: string, callback: (error: any, data: Object) => void): void; +export declare function set(key: string, json: Object, callback: (error: any) => void): void; +export declare function has(key: string, callback: (error: any, hasKey: boolean) => void): void; +export declare function keys(callback: (error: any, keys: string[]) => void): void; +export declare function remove(key: string, callback: (error: any) => void): void; +export declare function clear(callback: (error: any) => void): void; diff --git a/email-validator/email-validator.d.ts b/email-validator/email-validator.d.ts index cfb077eb53..ad0fb761be 100644 --- a/email-validator/email-validator.d.ts +++ b/email-validator/email-validator.d.ts @@ -4,4 +4,4 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare export function validate(email: String): boolean; +export declare function validate(email: String): boolean; diff --git a/encoding-japanese/encoding-japanese.d.ts b/encoding-japanese/encoding-japanese.d.ts index 40740871cf..e22c751d5e 100644 --- a/encoding-japanese/encoding-japanese.d.ts +++ b/encoding-japanese/encoding-japanese.d.ts @@ -20,28 +20,28 @@ interface ConvertOptions { bom?: boolean | string; } -declare export function detect(data: RawType, encodings?: Encoding | Encoding[]): Encoding; -declare export function convert(data: RawType, to: Encoding, from?: Encoding): number[]; -declare export function convert(data: RawType, options: ConvertOptions): string | ArrayBuffer | number[]; -declare export function urlEncode(data: number[] | Uint8Array): string; -declare export function urlDecode(data: string): number[]; -declare export function base64Encode(data: number[] | Uint8Array): string; -declare export function base64Decode(data: string): number[]; -declare export function codeToString(data: number[] | Uint8Array): string; -declare export function stringToCode(data: string): number[]; -declare export function toHankakuCase(data: number[]): number[]; -declare export function toHankakuCase(data: string): string; -declare export function toZenkakuCase(data: number[]): number[]; -declare export function toZenkakuCase(data: string): string; -declare export function toHiraganaCase(data: number[]): number[]; -declare export function toHiraganaCase(data: string): string; -declare export function toKatakanaCase(data: number[]): number[]; -declare export function toKatakanaCase(data: string): string; -declare export function toHankanaCase(data: number[]): number[]; -declare export function toHankanaCase(data: string): string; -declare export function toZenkanaCase(data: number[]): number[]; -declare export function toZenkanaCase(data: string): string; -declare export function toHankakuSpace(data: number[]): number[]; -declare export function toHankakuSpace(data: string): string; -declare export function toZenkakuSpace(data: number[]): number[]; -declare export function toZenkakuSpace(data: string): string; +export declare function detect(data: RawType, encodings?: Encoding | Encoding[]): Encoding; +export declare function convert(data: RawType, to: Encoding, from?: Encoding): number[]; +export declare function convert(data: RawType, options: ConvertOptions): string | ArrayBuffer | number[]; +export declare function urlEncode(data: number[] | Uint8Array): string; +export declare function urlDecode(data: string): number[]; +export declare function base64Encode(data: number[] | Uint8Array): string; +export declare function base64Decode(data: string): number[]; +export declare function codeToString(data: number[] | Uint8Array): string; +export declare function stringToCode(data: string): number[]; +export declare function toHankakuCase(data: number[]): number[]; +export declare function toHankakuCase(data: string): string; +export declare function toZenkakuCase(data: number[]): number[]; +export declare function toZenkakuCase(data: string): string; +export declare function toHiraganaCase(data: number[]): number[]; +export declare function toHiraganaCase(data: string): string; +export declare function toKatakanaCase(data: number[]): number[]; +export declare function toKatakanaCase(data: string): string; +export declare function toHankanaCase(data: number[]): number[]; +export declare function toHankanaCase(data: string): string; +export declare function toZenkanaCase(data: number[]): number[]; +export declare function toZenkanaCase(data: string): string; +export declare function toHankakuSpace(data: number[]): number[]; +export declare function toHankakuSpace(data: string): string; +export declare function toZenkakuSpace(data: number[]): number[]; +export declare function toZenkakuSpace(data: string): string; diff --git a/enzyme/enzyme.d.ts b/enzyme/enzyme.d.ts index b4fe19737e..aac889a3d1 100644 --- a/enzyme/enzyme.d.ts +++ b/enzyme/enzyme.d.ts @@ -9,7 +9,7 @@ import {ReactElement, Component, StatelessComponent, ComponentClass, HTMLAttributes} from "react"; -declare export class ElementClass extends Component { +export declare class ElementClass extends Component { } /** @@ -389,22 +389,22 @@ export interface CheerioWrapper extends CommonWrapper { * @param node * @param [options] */ -declare export function shallow(node: ReactElement

, options?: any): ShallowWrapper; +export declare function shallow(node: ReactElement

, options?: any): ShallowWrapper; /** * Mounts and renders a react component into the document and provides a testing wrapper around it. * @param node * @param [options] */ -declare export function mount(node: ReactElement

, options?: any): ReactWrapper; +export declare function mount(node: ReactElement

, options?: any): ReactWrapper; /** * Render react components to static HTML and analyze the resulting HTML structure. * @param node * @param [options] */ -declare export function render(node: ReactElement

, options?: any): CheerioWrapper; +export declare function render(node: ReactElement

, options?: any): CheerioWrapper; -declare export function describeWithDOM(description: String, fn: Function): void; +export declare function describeWithDOM(description: String, fn: Function): void; -declare export function spyLifecycle(component: typeof Component): void; +export declare function spyLifecycle(component: typeof Component): void; diff --git a/event-stream/event-stream.d.ts b/event-stream/event-stream.d.ts index e53066e16f..9ed12da46f 100644 --- a/event-stream/event-stream.d.ts +++ b/event-stream/event-stream.d.ts @@ -13,27 +13,27 @@ import * as stream from 'stream'; * * @param asyncFunction */ -declare export function map(asyncFunction: Function): stream.Stream; +export declare function map(asyncFunction: Function): stream.Stream; /** * Same as map, but the callback is called synchronously. Based on es.through * @param syncFunction */ -declare export function mapSync(syncFunction: Function): stream.Stream; +export declare function mapSync(syncFunction: Function): stream.Stream; /** * Break up a stream and reassemble it so that each line is a chunk. matcher may be a String, or a RegExp * * @param matcher */ -declare export function split(matcher: string | RegExp): stream.Stream; +export declare function split(matcher: string | RegExp): stream.Stream; /** * Create a through stream that emits separator between each chunk, just like Array#join * * @param separator */ -declare export function join(separator: string): stream.Stream; +export declare function join(separator: string): stream.Stream; /** * Merges streams into one and returns it. Incoming data will be emitted as soon it comes into - no ordering will be applied @@ -42,7 +42,7 @@ declare export function join(separator: string): stream.Stream; * * @param stream */ -declare export function concat(...stream: stream.Stream[]): stream.Stream; +export declare function concat(...stream: stream.Stream[]): stream.Stream; /** * Merges streams into one and returns it. Incoming data will be emitted as soon it comes into - no ordering will be applied @@ -51,7 +51,7 @@ declare export function concat(...stream: stream.Stream[]): stream.Stream; * * @param stream */ -declare export function concat(streamArray: stream.Stream[]): stream.Stream; +export declare function concat(streamArray: stream.Stream[]): stream.Stream; /** * Merges streams into one and returns it. Incoming data will be emitted as soon it comes into - no ordering will be applied @@ -60,7 +60,7 @@ declare export function concat(streamArray: stream.Stream[]): stream.Stream; * * @param stream */ -declare export function merge(...stream: stream.Stream[]): stream.Stream; +export declare function merge(...stream: stream.Stream[]): stream.Stream; /** * Merges streams into one and returns it. Incoming data will be emitted as soon it comes into - no ordering will be applied @@ -69,52 +69,52 @@ declare export function merge(...stream: stream.Stream[]): stream.Stream; * * @param stream */ -declare export function merge(streamArray: stream.Stream[]): stream.Stream; +export declare function merge(streamArray: stream.Stream[]): stream.Stream; /** * Replace all occurrences of from with to * @param from * @param to */ -declare export function replace(from: string | RegExp, to: string | RegExp): stream.Stream; +export declare function replace(from: string | RegExp, to: string | RegExp): stream.Stream; /** * Convenience function for parsing JSON chunks. For newline separated JSON, use with es.split. * By default it logs parsing errors by console.error; for another behaviour, transforms created by es.parse({error: true}) * will emit error events for exceptions thrown from JSON.parse, unmodified. */ -declare export function parse(): any; +export declare function parse(): any; /** * convert javascript objects into lines of text. The text will have whitespace escaped and have a \n appended, so it will be compatible with es.parse */ -declare export function stringify(): stream.Stream; +export declare function stringify(): stream.Stream; /** * create a readable stream (that respects pause) from an async function. * * @param asyncFunction */ -declare export function readable(asyncFunction: Function): stream.Stream; +export declare function readable(asyncFunction: Function): stream.Stream; /** * Create a readable stream from an Array. * * @param array */ -declare export function readArray(array: any[]): stream.Stream; +export declare function readArray(array: any[]): stream.Stream; /** * create a writeable stream from a callback * * @param callback */ -declare export function writeArray(callback: Function): stream.Stream; +export declare function writeArray(callback: Function): stream.Stream; /** * A stream that buffers all chunks when paused */ -declare export function pause(): stream.Stream | void; +export declare function pause(): stream.Stream | void; /** * Takes a writable stream and a readable stream and makes them appear as a readable writable stream. @@ -122,14 +122,14 @@ declare export function pause(): stream.Stream | void; * @param writeStream * @param readStream */ -declare export function duplex(writeStream: stream.Writable, readStream: stream.Readable): stream.Stream; +export declare function duplex(writeStream: stream.Writable, readStream: stream.Readable): stream.Stream; /** * Create a through stream from a child process * * @param child_process */ -declare export function child(child_process: any): stream.Stream; +export declare function child(child_process: any): stream.Stream; /** * waits for stream to emit 'end'. joins chunks of a stream into a single string or buffer. @@ -137,4 +137,4 @@ declare export function child(child_process: any): stream.Stream; * * @param callback */ -declare export function wait(callback: Function): stream.Stream; +export declare function wait(callback: Function): stream.Stream; diff --git a/expect/expect.d.ts b/expect/expect.d.ts index 3bb623566a..f2c25f6225 100644 --- a/expect/expect.d.ts +++ b/expect/expect.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare export class Expectation { +export declare class Expectation { constructor(actual: any); toExist(message?: string): Expectation; toBeTruthy(message?: string): Expectation; @@ -60,11 +60,11 @@ export interface Spy { declare function expect(actual: any): Expectation; -declare export function createSpy(fn?: Function, restore?: Function): Spy; -declare export function spyOn(object: Object, methodName: string): Spy; -declare export function isSpy(object: any): Boolean; -declare export function restoreSpies(): void; -declare export function assert(condition: any, messageFormat: string, ...extraArgs: Array): void; -declare export function extend(extension: Extension): void; +export declare function createSpy(fn?: Function, restore?: Function): Spy; +export declare function spyOn(object: Object, methodName: string): Spy; +export declare function isSpy(object: any): Boolean; +export declare function restoreSpies(): void; +export declare function assert(condition: any, messageFormat: string, ...extraArgs: Array): void; +export declare function extend(extension: Extension): void; export default expect; diff --git a/express-brute-memcached/express-brute-memcached.d.ts b/express-brute-memcached/express-brute-memcached.d.ts index 57a9fdb54e..3434787e82 100644 --- a/express-brute-memcached/express-brute-memcached.d.ts +++ b/express-brute-memcached/express-brute-memcached.d.ts @@ -102,7 +102,7 @@ interface MemcachedStoreOptions { * @summary A memcached store adapter. * @class */ -declare export default class MemcachedStore { +export declare default class MemcachedStore { /** * @summary Constructor. * @constructor diff --git a/express-graphql/express-graphql.d.ts b/express-graphql/express-graphql.d.ts index 87f1f4bb53..71934860c5 100644 --- a/express-graphql/express-graphql.d.ts +++ b/express-graphql/express-graphql.d.ts @@ -48,4 +48,4 @@ type Middleware = (request: Request, response: Response) => void; * Middleware for express; takes an options object or function as input to * configure behavior, and returns an express middleware. */ -declare export default function graphqlHTTP(options: Options): Middleware; +export declare default function graphqlHTTP(options: Options): Middleware; diff --git a/express-openapi/express-openapi.d.ts b/express-openapi/express-openapi.d.ts index 12055fd114..6d57d87a66 100644 --- a/express-openapi/express-openapi.d.ts +++ b/express-openapi/express-openapi.d.ts @@ -32,13 +32,13 @@ import express = require('express'); -declare export function initialize(args: Args): InitializedApi; +export declare function initialize(args: Args): InitializedApi; export interface InitializedApi { apiDoc: OpenApi.ApiDefinition; } -declare export module OpenApi { +export declare module OpenApi { export interface ApiDefinition { swagger: string info: InfoObject diff --git a/eyes/eyes.d.ts b/eyes/eyes.d.ts index 7c61fbdb94..f7866d056c 100644 --- a/eyes/eyes.d.ts +++ b/eyes/eyes.d.ts @@ -8,8 +8,8 @@ import stream = require('stream'); -declare export function inspector(options?: EyesOptions): InspectorFunction; -declare export function inspect(thing: any, label?: string): void; +export declare function inspector(options?: EyesOptions): InspectorFunction; +export declare function inspect(thing: any, label?: string): void; export interface InspectorFunction { (thing: any, label?: string): string; diff --git a/fast-stats/fast-stats.d.ts b/fast-stats/fast-stats.d.ts index 65a53d1ad0..d1c4ae9620 100644 --- a/fast-stats/fast-stats.d.ts +++ b/fast-stats/fast-stats.d.ts @@ -67,7 +67,7 @@ export interface Bucket { * Additionally, some methods can be calculated quickly as data is inserted, thereby reducing the number of loops required to run through the data during processing. * Fast stats maintains a running cache of several summary values as data is inserted making final calculation very fast. It trades off a small amount of additional memory usage for a large reduction in execution time. */ -declare export class Stats { +export declare class Stats { constructor(opts?: StatsOpts); /** diff --git a/fbemitter/fbemitter.d.ts b/fbemitter/fbemitter.d.ts index 79904d12cc..37094797c7 100644 --- a/fbemitter/fbemitter.d.ts +++ b/fbemitter/fbemitter.d.ts @@ -5,7 +5,7 @@ -declare export class EventSubscription { +export declare class EventSubscription { listener: Function; context: any; @@ -17,7 +17,7 @@ declare export class EventSubscription { } -declare export class EventEmitter { +export declare class EventEmitter { constructor(); diff --git a/field/field.d.ts b/field/field.d.ts index 3990dff5b0..d49da260b0 100644 --- a/field/field.d.ts +++ b/field/field.d.ts @@ -4,5 +4,5 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare export function get(topObj: any, fields: string): any; -declare export function set(topObj: any, fields: string, value: any): any; +export declare function get(topObj: any, fields: string): any; +export declare function set(topObj: any, fields: string, value: any): any; diff --git a/flux-standard-action/flux-standard-action.d.ts b/flux-standard-action/flux-standard-action.d.ts index a73c4803a0..d5393e0ace 100644 --- a/flux-standard-action/flux-standard-action.d.ts +++ b/flux-standard-action/flux-standard-action.d.ts @@ -24,6 +24,6 @@ export interface TypedMeta { meta: T } -declare export function isFSA(action: any): boolean; +export declare function isFSA(action: any): boolean; -declare export function isError(action: any): boolean; +export declare function isError(action: any): boolean; diff --git a/form-data/form-data.d.ts b/form-data/form-data.d.ts index a2662ccb8e..0aa5ff33ad 100644 --- a/form-data/form-data.d.ts +++ b/form-data/form-data.d.ts @@ -6,7 +6,7 @@ // Imported from: https://github.com/soywiz/typescript-node-definitions/form-data.d.ts -declare export class FormData { +export declare class FormData { append(key: string, value: any, options?: any): FormData; getHeaders(): Object; // TODO expand pipe diff --git a/formidable/formidable.d.ts b/formidable/formidable.d.ts index f48311811a..83d8e0de46 100644 --- a/formidable/formidable.d.ts +++ b/formidable/formidable.d.ts @@ -10,7 +10,7 @@ import http = require("http"); import stream = require("stream"); import events = require("events"); -declare export class IncomingForm extends events.EventEmitter { +export declare class IncomingForm extends events.EventEmitter { encoding: string; uploadDir: string; keepExtensions: boolean; diff --git a/fs-ext/fs-ext.d.ts b/fs-ext/fs-ext.d.ts index 423ca497f7..1ca623f7ec 100644 --- a/fs-ext/fs-ext.d.ts +++ b/fs-ext/fs-ext.d.ts @@ -13,14 +13,14 @@ export * from "fs"; * @param fd File Descriptor * @param flags Flags can be 'sh', 'ex', 'shnb', 'exnb', 'un' and correspond to the various LOCK_SH, LOCK_EX, LOCK_SH|LOCK_NB, etc. **/ -declare export function flock(fd: number, flags: string, callback: (err: Error) => void): void; +export declare function flock(fd: number, flags: string, callback: (err: Error) => void): void; /** * Synchronous flock(2). Throws an exception on error. * @param fd File Descriptor * @param flags Flags can be 'sh', 'ex', 'shnb', 'exnb', 'un' and correspond to the various LOCK_SH, LOCK_EX, LOCK_SH|LOCK_NB, etc. **/ -declare export function flockSync(fd: number, flags: string): void; +export declare function flockSync(fd: number, flags: string): void; /** * Asynchronous fcntl(2). @@ -29,7 +29,7 @@ declare export function flockSync(fd: number, flags: string): void; * Requiring this module adds FD_CLOEXEC to the constants module, for use with F_SETFD. * @param arg arg **/ -declare export function fcntl(fd: number, cmd: string, arg: number, callback: (err: Error, result: number) => void): void; +export declare function fcntl(fd: number, cmd: string, arg: number, callback: (err: Error, result: number) => void): void; /** * Asynchronous fcntl(2). @@ -37,7 +37,7 @@ declare export function fcntl(fd: number, cmd: string, arg: number, callback: (e * @param cmd The supported commands are: 'getfd' ( F_GETFD ) , 'setfd' ( F_SETFD ) * Requiring this module adds FD_CLOEXEC to the constants module, for use with F_SETFD. **/ -declare export function fcntl(fd: number, cmd: string, callback: (err: Error, result: number) => void): void; +export declare function fcntl(fd: number, cmd: string, callback: (err: Error, result: number) => void): void; /** * Synchronous fcntl(2). Throws an exception on error. @@ -47,7 +47,7 @@ declare export function fcntl(fd: number, cmd: string, callback: (err: Error, re * @param arg arg * @return Returns flags **/ -declare export function fcntlSync(fd: number, cmd: string, arg?: number): number; +export declare function fcntlSync(fd: number, cmd: string, arg?: number): number; /** * Asynchronous lseek(2). @@ -58,7 +58,7 @@ declare export function fcntlSync(fd: number, cmd: string, arg?: number): number * position to the current position plus offset bytes (can be negative), or 2 (SEEK_END) to set to the end * of the file plus offset bytes (usually negative or zero to seek to the end of the file). **/ -declare export function seek(fd: number, offset: number, whence: number, callback: (err: Error, currFilePos: number) => void): void; +export declare function seek(fd: number, offset: number, whence: number, callback: (err: Error, currFilePos: number) => void): void; /** * Synchronous lseek(2). Throws an exception on error. Returns current file position. @@ -70,7 +70,7 @@ declare export function seek(fd: number, offset: number, whence: number, callbac * of the file plus offset bytes (usually negative or zero to seek to the end of the file). * @returns Returns current file position. **/ -declare export function seekSync(fd: number, offset: number, whence: number): number; +export declare function seekSync(fd: number, offset: number, whence: number): number; /** * Asynchronous utime(2). @@ -84,7 +84,7 @@ declare export function seekSync(fd: number, offset: number, whence: number): nu * so to use the 'now' value with fs.utime() you would have to divide by 1000 first, e.g. Date.now()/1000 * Just like for utime(2), the absence of the atime and mtime means 'now'. **/ -declare export function utime(path: string, atime: number, mtime: number, callback: (err: Error) => void): void; +export declare function utime(path: string, atime: number, mtime: number, callback: (err: Error) => void): void; /** * Synchronous version of utime(). Throws an exception on error. @@ -98,4 +98,4 @@ declare export function utime(path: string, atime: number, mtime: number, callba * so to use the 'now' value with fs.utime() you would have to divide by 1000 first, e.g. Date.now()/1000 * Just like for utime(2), the absence of the atime and mtime means 'now'. **/ -declare export function utimeSync(path: string, atime: number, mtime: number): void; +export declare function utimeSync(path: string, atime: number, mtime: number): void; diff --git a/fs-extra-promise/fs-extra-promise.d.ts b/fs-extra-promise/fs-extra-promise.d.ts index 3d56401301..a89e7fea06 100644 --- a/fs-extra-promise/fs-extra-promise.d.ts +++ b/fs-extra-promise/fs-extra-promise.d.ts @@ -39,135 +39,135 @@ export interface FSWatcher { close(): void; } -declare export class ReadStream extends stream.Readable { } -declare export class WriteStream extends stream.Writable { } +export declare class ReadStream extends stream.Readable { } +export declare class WriteStream extends stream.Writable { } //extended methods -declare export function copy(src: string, dest: string, callback?: (err: Error) => void): void; -declare export function copy(src: string, dest: string, filter: (src: string) => boolean, callback?: (err: Error) => void): void; +export declare function copy(src: string, dest: string, callback?: (err: Error) => void): void; +export declare function copy(src: string, dest: string, filter: (src: string) => boolean, callback?: (err: Error) => void): void; -declare export function copySync(src: string, dest: string): void; -declare export function copySync(src: string, dest: string, filter: (src: string) => boolean): void; +export declare function copySync(src: string, dest: string): void; +export declare function copySync(src: string, dest: string, filter: (src: string) => boolean): void; -declare export function createFile(file: string, callback?: (err: Error) => void): void; -declare export function createFileSync(file: string): void; +export declare function createFile(file: string, callback?: (err: Error) => void): void; +export declare function createFileSync(file: string): void; -declare export function mkdirs(dir: string, callback?: (err: Error) => void): void; -declare export function mkdirp(dir: string, callback?: (err: Error) => void): void; -declare export function mkdirsSync(dir: string): void; -declare export function mkdirpSync(dir: string): void; +export declare function mkdirs(dir: string, callback?: (err: Error) => void): void; +export declare function mkdirp(dir: string, callback?: (err: Error) => void): void; +export declare function mkdirsSync(dir: string): void; +export declare function mkdirpSync(dir: string): void; -declare export function outputFile(file: string, data: any, callback?: (err: Error) => void): void; -declare export function outputFileSync(file: string, data: any): void; +export declare function outputFile(file: string, data: any, callback?: (err: Error) => void): void; +export declare function outputFileSync(file: string, data: any): void; -declare export function outputJson(file: string, data: any, callback?: (err: Error) => void): void; -declare export function outputJSON(file: string, data: any, callback?: (err: Error) => void): void; -declare export function outputJsonSync(file: string, data: any): void; -declare export function outputJSONSync(file: string, data: any): void; +export declare function outputJson(file: string, data: any, callback?: (err: Error) => void): void; +export declare function outputJSON(file: string, data: any, callback?: (err: Error) => void): void; +export declare function outputJsonSync(file: string, data: any): void; +export declare function outputJSONSync(file: string, data: any): void; -declare export function readJson(file: string, callback?: (err: Error) => void): void; -declare export function readJson(file: string, options?: OpenOptions, callback?: (err: Error) => void): void; -declare export function readJSON(file: string, callback?: (err: Error) => void): void; -declare export function readJSON(file: string, options?: OpenOptions, callback?: (err: Error) => void): void; +export declare function readJson(file: string, callback?: (err: Error) => void): void; +export declare function readJson(file: string, options?: OpenOptions, callback?: (err: Error) => void): void; +export declare function readJSON(file: string, callback?: (err: Error) => void): void; +export declare function readJSON(file: string, options?: OpenOptions, callback?: (err: Error) => void): void; -declare export function readJsonSync(file: string, options?: OpenOptions): void; -declare export function readJSONSync(file: string, options?: OpenOptions): void; +export declare function readJsonSync(file: string, options?: OpenOptions): void; +export declare function readJSONSync(file: string, options?: OpenOptions): void; -declare export function remove(dir: string, callback?: (err: Error) => void): void; -declare export function removeSync(dir: string): void; +export declare function remove(dir: string, callback?: (err: Error) => void): void; +export declare function removeSync(dir: string): void; // export function delete(dir: string, callback?: (err: Error) => void): void; // export function deleteSync(dir: string): void; -declare export function writeJson(file: string, object: any, callback?: (err: Error) => void): void; -declare export function writeJson(file: string, object: any, options?: OpenOptions, callback?: (err: Error) => void): void; -declare export function writeJSON(file: string, object: any, callback?: (err: Error) => void): void; -declare export function writeJSON(file: string, object: any, options?: OpenOptions, callback?: (err: Error) => void): void; +export declare function writeJson(file: string, object: any, callback?: (err: Error) => void): void; +export declare function writeJson(file: string, object: any, options?: OpenOptions, callback?: (err: Error) => void): void; +export declare function writeJSON(file: string, object: any, callback?: (err: Error) => void): void; +export declare function writeJSON(file: string, object: any, options?: OpenOptions, callback?: (err: Error) => void): void; -declare export function writeJsonSync(file: string, object: any, options?: OpenOptions): void; -declare export function writeJSONSync(file: string, object: any, options?: OpenOptions): void; +export declare function writeJsonSync(file: string, object: any, options?: OpenOptions): void; +export declare function writeJSONSync(file: string, object: any, options?: OpenOptions): void; -declare export function rename(oldPath: string, newPath: string, callback?: (err: Error) => void): void; -declare export function renameSync(oldPath: string, newPath: string): void; -declare export function truncate(fd: number, len: number, callback?: (err: Error) => void): void; -declare export function truncateSync(fd: number, len: number): void; -declare export function chown(path: string, uid: number, gid: number, callback?: (err: Error) => void): void; -declare export function chownSync(path: string, uid: number, gid: number): void; -declare export function fchown(fd: number, uid: number, gid: number, callback?: (err: Error) => void): void; -declare export function fchownSync(fd: number, uid: number, gid: number): void; -declare export function lchown(path: string, uid: number, gid: number, callback?: (err: Error) => void): void; -declare export function lchownSync(path: string, uid: number, gid: number): void; -declare export function chmod(path: string, mode: number, callback?: (err: Error) => void): void; -declare export function chmod(path: string, mode: string, callback?: (err: Error) => void): void; -declare export function chmodSync(path: string, mode: number): void; -declare export function chmodSync(path: string, mode: string): void; -declare export function fchmod(fd: number, mode: number, callback?: (err: Error) => void): void; -declare export function fchmod(fd: number, mode: string, callback?: (err: Error) => void): void; -declare export function fchmodSync(fd: number, mode: number): void; -declare export function fchmodSync(fd: number, mode: string): void; -declare export function lchmod(path: string, mode: string, callback?: (err: Error) => void): void; -declare export function lchmod(path: string, mode: number, callback?: (err: Error) => void): void; -declare export function lchmodSync(path: string, mode: number): void; -declare export function lchmodSync(path: string, mode: string): void; -declare export function stat(path: string, callback?: (err: Error, stats: Stats) => void): void; -declare export function lstat(path: string, callback?: (err: Error, stats: Stats) => void): void; -declare export function fstat(fd: number, callback?: (err: Error, stats: Stats) => void): void; -declare export function statSync(path: string): Stats; -declare export function lstatSync(path: string): Stats; -declare export function fstatSync(fd: number): Stats; -declare export function link(srcpath: string, dstpath: string, callback?: (err: Error) => void): void; -declare export function linkSync(srcpath: string, dstpath: string): void; -declare export function symlink(srcpath: string, dstpath: string, type?: string, callback?: (err: Error) => void): void; -declare export function symlinkSync(srcpath: string, dstpath: string, type?: string): void; -declare export function readlink(path: string, callback?: (err: Error, linkString: string) => void): void; -declare export function realpath(path: string, callback?: (err: Error, resolvedPath: string) => void): void; -declare export function realpath(path: string, cache: string, callback: (err: Error, resolvedPath: string) => void): void; -declare export function realpathSync(path: string, cache?: boolean): string; -declare export function unlink(path: string, callback?: (err: Error) => void): void; -declare export function unlinkSync(path: string): void; -declare export function rmdir(path: string, callback?: (err: Error) => void): void; -declare export function rmdirSync(path: string): void; -declare export function mkdir(path: string, mode?: number, callback?: (err: Error) => void): void; -declare export function mkdir(path: string, mode?: string, callback?: (err: Error) => void): void; -declare export function mkdirSync(path: string, mode?: number): void; -declare export function mkdirSync(path: string, mode?: string): void; -declare export function readdir(path: string, callback?: (err: Error, files: string[]) => void): void; -declare export function readdirSync(path: string): string[]; -declare export function close(fd: number, callback?: (err: Error) => void): void; -declare export function closeSync(fd: number): void; -declare export function open(path: string, flags: string, mode?: string, callback?: (err: Error, fs: number) => void): void; -declare export function openSync(path: string, flags: string, mode?: string): number; -declare export function utimes(path: string, atime: number, mtime: number, callback?: (err: Error) => void): void; -declare export function utimesSync(path: string, atime: number, mtime: number): void; -declare export function futimes(fd: number, atime: number, mtime: number, callback?: (err: Error) => void): void; -declare export function futimesSync(fd: number, atime: number, mtime: number): void; -declare export function fsync(fd: number, callback?: (err: Error) => void): void; -declare export function fsyncSync(fd: number): void; -declare export function write(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number, callback?: (err: Error, written: number, buffer: NodeBuffer) => void): void; -declare export function writeSync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): number; -declare export function read(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number, callback?: (err: Error, bytesRead: number, buffer: NodeBuffer) => void): void; -declare export function readSync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): number; -declare export function readFile(filename: string, encoding: string, callback: (err: Error, data: string) => void): void; -declare export function readFile(filename: string, options: OpenOptions, callback: (err: Error, data: string) => void): void; -declare export function readFile(filename: string, callback: (err: Error, data: NodeBuffer) => void): void; -declare export function readFileSync(filename: string): NodeBuffer; -declare export function readFileSync(filename: string, encoding: string): string; -declare export function readFileSync(filename: string, options: OpenOptions): string; -declare export function writeFile(filename: string, data: any, encoding?: string, callback?: (err: Error) => void): void; -declare export function writeFile(filename: string, data: any, options?: OpenOptions, callback?: (err: Error) => void): void; -declare export function writeFileSync(filename: string, data: any, encoding?: string): void; -declare export function writeFileSync(filename: string, data: any, option?: OpenOptions): void; -declare export function appendFile(filename: string, data: any, encoding?: string, callback?: (err: Error) => void): void; -declare export function appendFile(filename: string, data: any, option?: OpenOptions, callback?: (err: Error) => void): void; -declare export function appendFileSync(filename: string, data: any, encoding?: string): void; -declare export function appendFileSync(filename: string, data: any, option?: OpenOptions): void; -declare export function watchFile(filename: string, listener: { curr: Stats; prev: Stats; }): void; -declare export function watchFile(filename: string, options: { persistent?: boolean; interval?: number; }, listener: { curr: Stats; prev: Stats; }): void; -declare export function unwatchFile(filename: string, listener?: Stats): void; -declare export function watch(filename: string, options?: { persistent?: boolean; }, listener?: (event: string, filename: string) => any): FSWatcher; -declare export function exists(path: string, callback?: (exists: boolean) => void): void; -declare export function existsSync(path: string): boolean; -declare export function ensureDir(path: string, cb: (err: Error) => void): void; -declare export function ensureDirSync(path: string): void; +export declare function rename(oldPath: string, newPath: string, callback?: (err: Error) => void): void; +export declare function renameSync(oldPath: string, newPath: string): void; +export declare function truncate(fd: number, len: number, callback?: (err: Error) => void): void; +export declare function truncateSync(fd: number, len: number): void; +export declare function chown(path: string, uid: number, gid: number, callback?: (err: Error) => void): void; +export declare function chownSync(path: string, uid: number, gid: number): void; +export declare function fchown(fd: number, uid: number, gid: number, callback?: (err: Error) => void): void; +export declare function fchownSync(fd: number, uid: number, gid: number): void; +export declare function lchown(path: string, uid: number, gid: number, callback?: (err: Error) => void): void; +export declare function lchownSync(path: string, uid: number, gid: number): void; +export declare function chmod(path: string, mode: number, callback?: (err: Error) => void): void; +export declare function chmod(path: string, mode: string, callback?: (err: Error) => void): void; +export declare function chmodSync(path: string, mode: number): void; +export declare function chmodSync(path: string, mode: string): void; +export declare function fchmod(fd: number, mode: number, callback?: (err: Error) => void): void; +export declare function fchmod(fd: number, mode: string, callback?: (err: Error) => void): void; +export declare function fchmodSync(fd: number, mode: number): void; +export declare function fchmodSync(fd: number, mode: string): void; +export declare function lchmod(path: string, mode: string, callback?: (err: Error) => void): void; +export declare function lchmod(path: string, mode: number, callback?: (err: Error) => void): void; +export declare function lchmodSync(path: string, mode: number): void; +export declare function lchmodSync(path: string, mode: string): void; +export declare function stat(path: string, callback?: (err: Error, stats: Stats) => void): void; +export declare function lstat(path: string, callback?: (err: Error, stats: Stats) => void): void; +export declare function fstat(fd: number, callback?: (err: Error, stats: Stats) => void): void; +export declare function statSync(path: string): Stats; +export declare function lstatSync(path: string): Stats; +export declare function fstatSync(fd: number): Stats; +export declare function link(srcpath: string, dstpath: string, callback?: (err: Error) => void): void; +export declare function linkSync(srcpath: string, dstpath: string): void; +export declare function symlink(srcpath: string, dstpath: string, type?: string, callback?: (err: Error) => void): void; +export declare function symlinkSync(srcpath: string, dstpath: string, type?: string): void; +export declare function readlink(path: string, callback?: (err: Error, linkString: string) => void): void; +export declare function realpath(path: string, callback?: (err: Error, resolvedPath: string) => void): void; +export declare function realpath(path: string, cache: string, callback: (err: Error, resolvedPath: string) => void): void; +export declare function realpathSync(path: string, cache?: boolean): string; +export declare function unlink(path: string, callback?: (err: Error) => void): void; +export declare function unlinkSync(path: string): void; +export declare function rmdir(path: string, callback?: (err: Error) => void): void; +export declare function rmdirSync(path: string): void; +export declare function mkdir(path: string, mode?: number, callback?: (err: Error) => void): void; +export declare function mkdir(path: string, mode?: string, callback?: (err: Error) => void): void; +export declare function mkdirSync(path: string, mode?: number): void; +export declare function mkdirSync(path: string, mode?: string): void; +export declare function readdir(path: string, callback?: (err: Error, files: string[]) => void): void; +export declare function readdirSync(path: string): string[]; +export declare function close(fd: number, callback?: (err: Error) => void): void; +export declare function closeSync(fd: number): void; +export declare function open(path: string, flags: string, mode?: string, callback?: (err: Error, fs: number) => void): void; +export declare function openSync(path: string, flags: string, mode?: string): number; +export declare function utimes(path: string, atime: number, mtime: number, callback?: (err: Error) => void): void; +export declare function utimesSync(path: string, atime: number, mtime: number): void; +export declare function futimes(fd: number, atime: number, mtime: number, callback?: (err: Error) => void): void; +export declare function futimesSync(fd: number, atime: number, mtime: number): void; +export declare function fsync(fd: number, callback?: (err: Error) => void): void; +export declare function fsyncSync(fd: number): void; +export declare function write(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number, callback?: (err: Error, written: number, buffer: NodeBuffer) => void): void; +export declare function writeSync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): number; +export declare function read(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number, callback?: (err: Error, bytesRead: number, buffer: NodeBuffer) => void): void; +export declare function readSync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): number; +export declare function readFile(filename: string, encoding: string, callback: (err: Error, data: string) => void): void; +export declare function readFile(filename: string, options: OpenOptions, callback: (err: Error, data: string) => void): void; +export declare function readFile(filename: string, callback: (err: Error, data: NodeBuffer) => void): void; +export declare function readFileSync(filename: string): NodeBuffer; +export declare function readFileSync(filename: string, encoding: string): string; +export declare function readFileSync(filename: string, options: OpenOptions): string; +export declare function writeFile(filename: string, data: any, encoding?: string, callback?: (err: Error) => void): void; +export declare function writeFile(filename: string, data: any, options?: OpenOptions, callback?: (err: Error) => void): void; +export declare function writeFileSync(filename: string, data: any, encoding?: string): void; +export declare function writeFileSync(filename: string, data: any, option?: OpenOptions): void; +export declare function appendFile(filename: string, data: any, encoding?: string, callback?: (err: Error) => void): void; +export declare function appendFile(filename: string, data: any, option?: OpenOptions, callback?: (err: Error) => void): void; +export declare function appendFileSync(filename: string, data: any, encoding?: string): void; +export declare function appendFileSync(filename: string, data: any, option?: OpenOptions): void; +export declare function watchFile(filename: string, listener: { curr: Stats; prev: Stats; }): void; +export declare function watchFile(filename: string, options: { persistent?: boolean; interval?: number; }, listener: { curr: Stats; prev: Stats; }): void; +export declare function unwatchFile(filename: string, listener?: Stats): void; +export declare function watch(filename: string, options?: { persistent?: boolean; }, listener?: (event: string, filename: string) => any): FSWatcher; +export declare function exists(path: string, callback?: (exists: boolean) => void): void; +export declare function existsSync(path: string): boolean; +export declare function ensureDir(path: string, cb: (err: Error) => void): void; +export declare function ensureDirSync(path: string): void; export interface OpenOptions { encoding?: string; @@ -186,77 +186,77 @@ export interface WriteStreamOptions { encoding?: string; string?: string; } -declare export function createReadStream(path: string, options?: ReadStreamOptions): ReadStream; -declare export function createWriteStream(path: string, options?: WriteStreamOptions): WriteStream; +export declare function createReadStream(path: string, options?: ReadStreamOptions): ReadStream; +export declare function createWriteStream(path: string, options?: WriteStreamOptions): WriteStream; //promisified versions -declare export function copyAsync(src: string, dest: string): Promise; -declare export function copyAsync(src: string, dest: string, filter: (src: string) => boolean): Promise; +export declare function copyAsync(src: string, dest: string): Promise; +export declare function copyAsync(src: string, dest: string, filter: (src: string) => boolean): Promise; -declare export function createFileAsync(file: string): Promise; +export declare function createFileAsync(file: string): Promise; -declare export function mkdirsAsync(dir: string): Promise; -declare export function mkdirpAsync(dir: string): Promise; +export declare function mkdirsAsync(dir: string): Promise; +export declare function mkdirpAsync(dir: string): Promise; -declare export function outputFileAsync(file: string, data: any): Promise; +export declare function outputFileAsync(file: string, data: any): Promise; -declare export function outputJsonAsync(file: string, data: any): Promise; -declare export function outputJSONAsync(file: string, data: any): Promise; +export declare function outputJsonAsync(file: string, data: any): Promise; +export declare function outputJSONAsync(file: string, data: any): Promise; -declare export function readJsonAsync(file: string): Promise; -declare export function readJsonAsync(file: string, options?: OpenOptions): Promise; -declare export function readJSONAsync(file: string): Promise; -declare export function readJSONAsync(file: string, options?: OpenOptions): Promise; +export declare function readJsonAsync(file: string): Promise; +export declare function readJsonAsync(file: string, options?: OpenOptions): Promise; +export declare function readJSONAsync(file: string): Promise; +export declare function readJSONAsync(file: string, options?: OpenOptions): Promise; -declare export function removeAsync(dir: string): Promise; +export declare function removeAsync(dir: string): Promise; // export function deleteAsync(dir: string):Promise; -declare export function writeJsonAsync(file: string, object: any): Promise; -declare export function writeJsonAsync(file: string, object: any, options?: OpenOptions): Promise; -declare export function writeJSONAsync(file: string, object: any): Promise; -declare export function writeJSONAsync(file: string, object: any, options?: OpenOptions): Promise; +export declare function writeJsonAsync(file: string, object: any): Promise; +export declare function writeJsonAsync(file: string, object: any, options?: OpenOptions): Promise; +export declare function writeJSONAsync(file: string, object: any): Promise; +export declare function writeJSONAsync(file: string, object: any, options?: OpenOptions): Promise; -declare export function renameAsync(oldPath: string, newPath: string): Promise; -declare export function truncateAsync(fd: number, len: number): Promise; -declare export function chownAsync(path: string, uid: number, gid: number): Promise; -declare export function fchownAsync(fd: number, uid: number, gid: number): Promise; -declare export function lchownAsync(path: string, uid: number, gid: number): Promise; -declare export function chmodAsync(path: string, mode: number): Promise; -declare export function chmodAsync(path: string, mode: string): Promise; -declare export function fchmodAsync(fd: number, mode: number): Promise; -declare export function fchmodAsync(fd: number, mode: string): Promise; -declare export function lchmodAsync(path: string, mode: string): Promise; -declare export function lchmodAsync(path: string, mode: number): Promise; -declare export function statAsync(path: string): Promise; -declare export function lstatAsync(path: string): Promise; -declare export function fstatAsync(fd: number): Promise; -declare export function linkAsync(srcpath: string, dstpath: string): Promise; -declare export function symlinkAsync(srcpath: string, dstpath: string, type?: string): Promise; -declare export function readlinkAsync(path: string): Promise; -declare export function realpathAsync(path: string): Promise; -declare export function realpathAsync(path: string, cache: string): Promise; -declare export function unlinkAsync(path: string): Promise; -declare export function rmdirAsync(path: string): Promise; -declare export function mkdirAsync(path: string, mode?: number): Promise; -declare export function mkdirAsync(path: string, mode?: string): Promise; -declare export function readdirAsync(path: string): Promise; -declare export function closeAsync(fd: number): Promise; -declare export function openAsync(path: string, flags: string, mode?: string): Promise; -declare export function utimesAsync(path: string, atime: number, mtime: number): Promise; -declare export function futimesAsync(fd: number, atime: number, mtime: number): Promise; -declare export function fsyncAsync(fd: number): Promise; -declare export function writeAsync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): Promise<[number, NodeBuffer]>; -declare export function readAsync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): Promise<[number, NodeBuffer]>; -declare export function readFileAsync(filename: string, encoding: string): Promise; -declare export function readFileAsync(filename: string, options: OpenOptions): Promise; -declare export function readFileAsync(filename: string): Promise; -declare export function writeFileAsync(filename: string, data: any, encoding?: string): Promise; -declare export function writeFileAsync(filename: string, data: any, options?: OpenOptions): Promise; -declare export function appendFileAsync(filename: string, data: any, encoding?: string): Promise; -declare export function appendFileAsync(filename: string, data: any, option?: OpenOptions): Promise; +export declare function renameAsync(oldPath: string, newPath: string): Promise; +export declare function truncateAsync(fd: number, len: number): Promise; +export declare function chownAsync(path: string, uid: number, gid: number): Promise; +export declare function fchownAsync(fd: number, uid: number, gid: number): Promise; +export declare function lchownAsync(path: string, uid: number, gid: number): Promise; +export declare function chmodAsync(path: string, mode: number): Promise; +export declare function chmodAsync(path: string, mode: string): Promise; +export declare function fchmodAsync(fd: number, mode: number): Promise; +export declare function fchmodAsync(fd: number, mode: string): Promise; +export declare function lchmodAsync(path: string, mode: string): Promise; +export declare function lchmodAsync(path: string, mode: number): Promise; +export declare function statAsync(path: string): Promise; +export declare function lstatAsync(path: string): Promise; +export declare function fstatAsync(fd: number): Promise; +export declare function linkAsync(srcpath: string, dstpath: string): Promise; +export declare function symlinkAsync(srcpath: string, dstpath: string, type?: string): Promise; +export declare function readlinkAsync(path: string): Promise; +export declare function realpathAsync(path: string): Promise; +export declare function realpathAsync(path: string, cache: string): Promise; +export declare function unlinkAsync(path: string): Promise; +export declare function rmdirAsync(path: string): Promise; +export declare function mkdirAsync(path: string, mode?: number): Promise; +export declare function mkdirAsync(path: string, mode?: string): Promise; +export declare function readdirAsync(path: string): Promise; +export declare function closeAsync(fd: number): Promise; +export declare function openAsync(path: string, flags: string, mode?: string): Promise; +export declare function utimesAsync(path: string, atime: number, mtime: number): Promise; +export declare function futimesAsync(fd: number, atime: number, mtime: number): Promise; +export declare function fsyncAsync(fd: number): Promise; +export declare function writeAsync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): Promise<[number, NodeBuffer]>; +export declare function readAsync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): Promise<[number, NodeBuffer]>; +export declare function readFileAsync(filename: string, encoding: string): Promise; +export declare function readFileAsync(filename: string, options: OpenOptions): Promise; +export declare function readFileAsync(filename: string): Promise; +export declare function writeFileAsync(filename: string, data: any, encoding?: string): Promise; +export declare function writeFileAsync(filename: string, data: any, options?: OpenOptions): Promise; +export declare function appendFileAsync(filename: string, data: any, encoding?: string): Promise; +export declare function appendFileAsync(filename: string, data: any, option?: OpenOptions): Promise; -declare export function existsAsync(path: string): Promise; -declare export function ensureDirAsync(path: string): Promise; +export declare function existsAsync(path: string): Promise; +export declare function ensureDirAsync(path: string): Promise; diff --git a/fs-extra/fs-extra.d.ts b/fs-extra/fs-extra.d.ts index 8ec6bdf5f7..e73eb07902 100644 --- a/fs-extra/fs-extra.d.ts +++ b/fs-extra/fs-extra.d.ts @@ -37,147 +37,147 @@ export interface FSWatcher { close(): void; } -declare export class ReadStream extends stream.Readable { } -declare export class WriteStream extends stream.Writable { } +export declare class ReadStream extends stream.Readable { } +export declare class WriteStream extends stream.Writable { } //extended methods -declare export function copy(src: string, dest: string, callback?: (err: Error) => void): void; -declare export function copy(src: string, dest: string, filter: CopyFilter, callback?: (err: Error) => void): void; -declare export function copy(src: string, dest: string, options: CopyOptions, callback?: (err: Error) => void): void; +export declare function copy(src: string, dest: string, callback?: (err: Error) => void): void; +export declare function copy(src: string, dest: string, filter: CopyFilter, callback?: (err: Error) => void): void; +export declare function copy(src: string, dest: string, options: CopyOptions, callback?: (err: Error) => void): void; -declare export function copySync(src: string, dest: string): void; -declare export function copySync(src: string, dest: string, filter: CopyFilter): void; -declare export function copySync(src: string, dest: string, options: CopyOptions): void; +export declare function copySync(src: string, dest: string): void; +export declare function copySync(src: string, dest: string, filter: CopyFilter): void; +export declare function copySync(src: string, dest: string, options: CopyOptions): void; -declare export function createFile(file: string, callback?: (err: Error) => void): void; -declare export function createFileSync(file: string): void; +export declare function createFile(file: string, callback?: (err: Error) => void): void; +export declare function createFileSync(file: string): void; -declare export function mkdirs(dir: string, callback?: (err: Error) => void): void; -declare export function mkdirp(dir: string, callback?: (err: Error) => void): void; -declare export function mkdirs(dir: string, options?: MkdirOptions, callback?: (err: Error) => void): void; -declare export function mkdirp(dir: string, options?: MkdirOptions, callback?: (err: Error) => void): void; -declare export function mkdirsSync(dir: string, options?: MkdirOptions): void; -declare export function mkdirpSync(dir: string, options?: MkdirOptions): void; +export declare function mkdirs(dir: string, callback?: (err: Error) => void): void; +export declare function mkdirp(dir: string, callback?: (err: Error) => void): void; +export declare function mkdirs(dir: string, options?: MkdirOptions, callback?: (err: Error) => void): void; +export declare function mkdirp(dir: string, options?: MkdirOptions, callback?: (err: Error) => void): void; +export declare function mkdirsSync(dir: string, options?: MkdirOptions): void; +export declare function mkdirpSync(dir: string, options?: MkdirOptions): void; -declare export function outputFile(file: string, data: any, callback?: (err: Error) => void): void; -declare export function outputFileSync(file: string, data: any): void; +export declare function outputFile(file: string, data: any, callback?: (err: Error) => void): void; +export declare function outputFileSync(file: string, data: any): void; -declare export function outputJson(file: string, data: any, callback?: (err: Error) => void): void; -declare export function outputJSON(file: string, data: any, callback?: (err: Error) => void): void; -declare export function outputJsonSync(file: string, data: any): void; -declare export function outputJSONSync(file: string, data: any): void; +export declare function outputJson(file: string, data: any, callback?: (err: Error) => void): void; +export declare function outputJSON(file: string, data: any, callback?: (err: Error) => void): void; +export declare function outputJsonSync(file: string, data: any): void; +export declare function outputJSONSync(file: string, data: any): void; -declare export function readJson(file: string, callback: (err: Error, jsonObject: any) => void): void; -declare export function readJson(file: string, options: OpenOptions, callback: (err: Error, jsonObject: any) => void): void; -declare export function readJSON(file: string, callback: (err: Error, jsonObject: any) => void): void; -declare export function readJSON(file: string, options: OpenOptions, callback: (err: Error, jsonObject: any) => void): void; +export declare function readJson(file: string, callback: (err: Error, jsonObject: any) => void): void; +export declare function readJson(file: string, options: OpenOptions, callback: (err: Error, jsonObject: any) => void): void; +export declare function readJSON(file: string, callback: (err: Error, jsonObject: any) => void): void; +export declare function readJSON(file: string, options: OpenOptions, callback: (err: Error, jsonObject: any) => void): void; -declare export function readJsonSync(file: string, options?: OpenOptions): any; -declare export function readJSONSync(file: string, options?: OpenOptions): any; +export declare function readJsonSync(file: string, options?: OpenOptions): any; +export declare function readJSONSync(file: string, options?: OpenOptions): any; -declare export function remove(dir: string, callback?: (err: Error) => void): void; -declare export function removeSync(dir: string): void; +export declare function remove(dir: string, callback?: (err: Error) => void): void; +export declare function removeSync(dir: string): void; // export function delete(dir: string, callback?: (err: Error) => void): void; // export function deleteSync(dir: string): void; -declare export function writeJson(file: string, object: any, callback?: (err: Error) => void): void; -declare export function writeJson(file: string, object: any, options?: OpenOptions, callback?: (err: Error) => void): void; -declare export function writeJSON(file: string, object: any, callback?: (err: Error) => void): void; -declare export function writeJSON(file: string, object: any, options?: OpenOptions, callback?: (err: Error) => void): void; +export declare function writeJson(file: string, object: any, callback?: (err: Error) => void): void; +export declare function writeJson(file: string, object: any, options?: OpenOptions, callback?: (err: Error) => void): void; +export declare function writeJSON(file: string, object: any, callback?: (err: Error) => void): void; +export declare function writeJSON(file: string, object: any, options?: OpenOptions, callback?: (err: Error) => void): void; -declare export function writeJsonSync(file: string, object: any, options?: OpenOptions): void; -declare export function writeJSONSync(file: string, object: any, options?: OpenOptions): void; +export declare function writeJsonSync(file: string, object: any, options?: OpenOptions): void; +export declare function writeJSONSync(file: string, object: any, options?: OpenOptions): void; -declare export function rename(oldPath: string, newPath: string, callback?: (err: Error) => void): void; -declare export function renameSync(oldPath: string, newPath: string): void; -declare export function truncate(fd: number, len: number, callback?: (err: Error) => void): void; -declare export function truncateSync(fd: number, len: number): void; -declare export function chown(path: string, uid: number, gid: number, callback?: (err: Error) => void): void; -declare export function chownSync(path: string, uid: number, gid: number): void; -declare export function fchown(fd: number, uid: number, gid: number, callback?: (err: Error) => void): void; -declare export function fchownSync(fd: number, uid: number, gid: number): void; -declare export function lchown(path: string, uid: number, gid: number, callback?: (err: Error) => void): void; -declare export function lchownSync(path: string, uid: number, gid: number): void; -declare export function chmod(path: string, mode: number, callback?: (err: Error) => void): void; -declare export function chmod(path: string, mode: string, callback?: (err: Error) => void): void; -declare export function chmodSync(path: string, mode: number): void; -declare export function chmodSync(path: string, mode: string): void; -declare export function fchmod(fd: number, mode: number, callback?: (err: Error) => void): void; -declare export function fchmod(fd: number, mode: string, callback?: (err: Error) => void): void; -declare export function fchmodSync(fd: number, mode: number): void; -declare export function fchmodSync(fd: number, mode: string): void; -declare export function lchmod(path: string, mode: string, callback?: (err: Error) => void): void; -declare export function lchmod(path: string, mode: number, callback?: (err: Error) => void): void; -declare export function lchmodSync(path: string, mode: number): void; -declare export function lchmodSync(path: string, mode: string): void; -declare export function stat(path: string, callback?: (err: Error, stats: Stats) => void): void; -declare export function lstat(path: string, callback?: (err: Error, stats: Stats) => void): void; -declare export function fstat(fd: number, callback?: (err: Error, stats: Stats) => void): void; -declare export function statSync(path: string): Stats; -declare export function lstatSync(path: string): Stats; -declare export function fstatSync(fd: number): Stats; -declare export function link(srcpath: string, dstpath: string, callback?: (err: Error) => void): void; -declare export function linkSync(srcpath: string, dstpath: string): void; -declare export function symlink(srcpath: string, dstpath: string, type?: string, callback?: (err: Error) => void): void; -declare export function symlinkSync(srcpath: string, dstpath: string, type?: string): void; -declare export function readlink(path: string, callback?: (err: Error, linkString: string) => void): void; -declare export function realpath(path: string, callback?: (err: Error, resolvedPath: string) => void): void; -declare export function realpath(path: string, cache: string, callback: (err: Error, resolvedPath: string) => void): void; -declare export function realpathSync(path: string, cache?: boolean): string; -declare export function unlink(path: string, callback?: (err: Error) => void): void; -declare export function unlinkSync(path: string): void; -declare export function rmdir(path: string, callback?: (err: Error) => void): void; -declare export function rmdirSync(path: string): void; -declare export function mkdir(path: string, mode?: number, callback?: (err: Error) => void): void; -declare export function mkdir(path: string, mode?: string, callback?: (err: Error) => void): void; -declare export function mkdirSync(path: string, mode?: number): void; -declare export function mkdirSync(path: string, mode?: string): void; -declare export function readdir(path: string, callback?: (err: Error, files: string[]) => void): void; -declare export function readdirSync(path: string): string[]; -declare export function close(fd: number, callback?: (err: Error) => void): void; -declare export function closeSync(fd: number): void; -declare export function open(path: string, flags: string, mode?: string, callback?: (err: Error, fs: number) => void): void; -declare export function openSync(path: string, flags: string, mode?: string): number; -declare export function utimes(path: string, atime: number, mtime: number, callback?: (err: Error) => void): void; -declare export function utimesSync(path: string, atime: number, mtime: number): void; -declare export function futimes(fd: number, atime: number, mtime: number, callback?: (err: Error) => void): void; -declare export function futimesSync(fd: number, atime: number, mtime: number): void; -declare export function fsync(fd: number, callback?: (err: Error) => void): void; -declare export function fsyncSync(fd: number): void; -declare export function write(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number, callback?: (err: Error, written: number, buffer: NodeBuffer) => void): void; -declare export function writeSync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): number; -declare export function read(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number, callback?: (err: Error, bytesRead: number, buffer: NodeBuffer) => void): void; -declare export function readSync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): number; -declare export function readFile(filename: string, encoding: string, callback: (err: Error, data: string) => void): void; -declare export function readFile(filename: string, options: OpenOptions, callback: (err: Error, data: string) => void): void; -declare export function readFile(filename: string, callback: (err: Error, data: NodeBuffer) => void): void; -declare export function readFileSync(filename: string): NodeBuffer; -declare export function readFileSync(filename: string, encoding: string): string; -declare export function readFileSync(filename: string, options: OpenOptions): string; -declare export function writeFile(filename: string, data: any, encoding?: string, callback?: (err: Error) => void): void; -declare export function writeFile(filename: string, data: any, options?: OpenOptions, callback?: (err: Error) => void): void; -declare export function writeFileSync(filename: string, data: any, encoding?: string): void; -declare export function writeFileSync(filename: string, data: any, option?: OpenOptions): void; -declare export function appendFile(filename: string, data: any, encoding?: string, callback?: (err: Error) => void): void; -declare export function appendFile(filename: string, data: any, option?: OpenOptions, callback?: (err: Error) => void): void; -declare export function appendFileSync(filename: string, data: any, encoding?: string): void; -declare export function appendFileSync(filename: string, data: any, option?: OpenOptions): void; -declare export function watchFile(filename: string, listener: { curr: Stats; prev: Stats; }): void; -declare export function watchFile(filename: string, options: { persistent?: boolean; interval?: number; }, listener: { curr: Stats; prev: Stats; }): void; -declare export function unwatchFile(filename: string, listener?: Stats): void; -declare export function watch(filename: string, options?: { persistent?: boolean; }, listener?: (event: string, filename: string) => any): FSWatcher; -declare export function exists(path: string, callback?: (exists: boolean) => void): void; -declare export function existsSync(path: string): boolean; -declare export function ensureDir(path: string, cb: (err: Error) => void): void; -declare export function ensureDirSync(path: string): void; -declare export function ensureFile(path: string, cb: (err: Error) => void): void; -declare export function ensureFileSync(path: string): void; -declare export function ensureLink(path: string, cb: (err: Error) => void): void; -declare export function ensureLinkSync(path: string): void; -declare export function ensureSymlink(path: string, cb: (err: Error) => void): void; -declare export function ensureSymlinkSync(path: string): void; -declare export function emptyDir(path: string, callback?: (err: Error) => void): void; -declare export function emptyDirSync(path: string): boolean; +export declare function rename(oldPath: string, newPath: string, callback?: (err: Error) => void): void; +export declare function renameSync(oldPath: string, newPath: string): void; +export declare function truncate(fd: number, len: number, callback?: (err: Error) => void): void; +export declare function truncateSync(fd: number, len: number): void; +export declare function chown(path: string, uid: number, gid: number, callback?: (err: Error) => void): void; +export declare function chownSync(path: string, uid: number, gid: number): void; +export declare function fchown(fd: number, uid: number, gid: number, callback?: (err: Error) => void): void; +export declare function fchownSync(fd: number, uid: number, gid: number): void; +export declare function lchown(path: string, uid: number, gid: number, callback?: (err: Error) => void): void; +export declare function lchownSync(path: string, uid: number, gid: number): void; +export declare function chmod(path: string, mode: number, callback?: (err: Error) => void): void; +export declare function chmod(path: string, mode: string, callback?: (err: Error) => void): void; +export declare function chmodSync(path: string, mode: number): void; +export declare function chmodSync(path: string, mode: string): void; +export declare function fchmod(fd: number, mode: number, callback?: (err: Error) => void): void; +export declare function fchmod(fd: number, mode: string, callback?: (err: Error) => void): void; +export declare function fchmodSync(fd: number, mode: number): void; +export declare function fchmodSync(fd: number, mode: string): void; +export declare function lchmod(path: string, mode: string, callback?: (err: Error) => void): void; +export declare function lchmod(path: string, mode: number, callback?: (err: Error) => void): void; +export declare function lchmodSync(path: string, mode: number): void; +export declare function lchmodSync(path: string, mode: string): void; +export declare function stat(path: string, callback?: (err: Error, stats: Stats) => void): void; +export declare function lstat(path: string, callback?: (err: Error, stats: Stats) => void): void; +export declare function fstat(fd: number, callback?: (err: Error, stats: Stats) => void): void; +export declare function statSync(path: string): Stats; +export declare function lstatSync(path: string): Stats; +export declare function fstatSync(fd: number): Stats; +export declare function link(srcpath: string, dstpath: string, callback?: (err: Error) => void): void; +export declare function linkSync(srcpath: string, dstpath: string): void; +export declare function symlink(srcpath: string, dstpath: string, type?: string, callback?: (err: Error) => void): void; +export declare function symlinkSync(srcpath: string, dstpath: string, type?: string): void; +export declare function readlink(path: string, callback?: (err: Error, linkString: string) => void): void; +export declare function realpath(path: string, callback?: (err: Error, resolvedPath: string) => void): void; +export declare function realpath(path: string, cache: string, callback: (err: Error, resolvedPath: string) => void): void; +export declare function realpathSync(path: string, cache?: boolean): string; +export declare function unlink(path: string, callback?: (err: Error) => void): void; +export declare function unlinkSync(path: string): void; +export declare function rmdir(path: string, callback?: (err: Error) => void): void; +export declare function rmdirSync(path: string): void; +export declare function mkdir(path: string, mode?: number, callback?: (err: Error) => void): void; +export declare function mkdir(path: string, mode?: string, callback?: (err: Error) => void): void; +export declare function mkdirSync(path: string, mode?: number): void; +export declare function mkdirSync(path: string, mode?: string): void; +export declare function readdir(path: string, callback?: (err: Error, files: string[]) => void): void; +export declare function readdirSync(path: string): string[]; +export declare function close(fd: number, callback?: (err: Error) => void): void; +export declare function closeSync(fd: number): void; +export declare function open(path: string, flags: string, mode?: string, callback?: (err: Error, fs: number) => void): void; +export declare function openSync(path: string, flags: string, mode?: string): number; +export declare function utimes(path: string, atime: number, mtime: number, callback?: (err: Error) => void): void; +export declare function utimesSync(path: string, atime: number, mtime: number): void; +export declare function futimes(fd: number, atime: number, mtime: number, callback?: (err: Error) => void): void; +export declare function futimesSync(fd: number, atime: number, mtime: number): void; +export declare function fsync(fd: number, callback?: (err: Error) => void): void; +export declare function fsyncSync(fd: number): void; +export declare function write(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number, callback?: (err: Error, written: number, buffer: NodeBuffer) => void): void; +export declare function writeSync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): number; +export declare function read(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number, callback?: (err: Error, bytesRead: number, buffer: NodeBuffer) => void): void; +export declare function readSync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): number; +export declare function readFile(filename: string, encoding: string, callback: (err: Error, data: string) => void): void; +export declare function readFile(filename: string, options: OpenOptions, callback: (err: Error, data: string) => void): void; +export declare function readFile(filename: string, callback: (err: Error, data: NodeBuffer) => void): void; +export declare function readFileSync(filename: string): NodeBuffer; +export declare function readFileSync(filename: string, encoding: string): string; +export declare function readFileSync(filename: string, options: OpenOptions): string; +export declare function writeFile(filename: string, data: any, encoding?: string, callback?: (err: Error) => void): void; +export declare function writeFile(filename: string, data: any, options?: OpenOptions, callback?: (err: Error) => void): void; +export declare function writeFileSync(filename: string, data: any, encoding?: string): void; +export declare function writeFileSync(filename: string, data: any, option?: OpenOptions): void; +export declare function appendFile(filename: string, data: any, encoding?: string, callback?: (err: Error) => void): void; +export declare function appendFile(filename: string, data: any, option?: OpenOptions, callback?: (err: Error) => void): void; +export declare function appendFileSync(filename: string, data: any, encoding?: string): void; +export declare function appendFileSync(filename: string, data: any, option?: OpenOptions): void; +export declare function watchFile(filename: string, listener: { curr: Stats; prev: Stats; }): void; +export declare function watchFile(filename: string, options: { persistent?: boolean; interval?: number; }, listener: { curr: Stats; prev: Stats; }): void; +export declare function unwatchFile(filename: string, listener?: Stats): void; +export declare function watch(filename: string, options?: { persistent?: boolean; }, listener?: (event: string, filename: string) => any): FSWatcher; +export declare function exists(path: string, callback?: (exists: boolean) => void): void; +export declare function existsSync(path: string): boolean; +export declare function ensureDir(path: string, cb: (err: Error) => void): void; +export declare function ensureDirSync(path: string): void; +export declare function ensureFile(path: string, cb: (err: Error) => void): void; +export declare function ensureFileSync(path: string): void; +export declare function ensureLink(path: string, cb: (err: Error) => void): void; +export declare function ensureLinkSync(path: string): void; +export declare function ensureSymlink(path: string, cb: (err: Error) => void): void; +export declare function ensureSymlinkSync(path: string): void; +export declare function emptyDir(path: string, callback?: (err: Error) => void): void; +export declare function emptyDirSync(path: string): boolean; export interface CopyFilterFunction { (src: string): boolean @@ -213,6 +213,6 @@ export interface WriteStreamOptions { encoding?: string; string?: string; } -declare export function createReadStream(path: string, options?: ReadStreamOptions): ReadStream; -declare export function createWriteStream(path: string, options?: WriteStreamOptions): WriteStream; -declare export function createOutputStream(path: string, options?: WriteStreamOptions): WriteStream; +export declare function createReadStream(path: string, options?: ReadStreamOptions): ReadStream; +export declare function createWriteStream(path: string, options?: WriteStreamOptions): WriteStream; +export declare function createOutputStream(path: string, options?: WriteStreamOptions): WriteStream; diff --git a/ftpd/ftpd.d.ts b/ftpd/ftpd.d.ts index 590563dedb..0a5949d9d2 100644 --- a/ftpd/ftpd.d.ts +++ b/ftpd/ftpd.d.ts @@ -96,7 +96,7 @@ export interface FtpServerOptions { * On successful login, success should be called with a username argument. It may also optionally * be given a second argument, which should be an object providing an implementation of the API for Node's fs module. */ -declare export class FtpConnection extends events.EventEmitter { +export declare class FtpConnection extends events.EventEmitter { server: FtpServer; socket: net.Socket; pasv: net.Server; @@ -175,7 +175,7 @@ export interface FtpFileSystem { * @event error net.Server error event * @event client:connected (connection: FtpConnection) */ -declare export class FtpServer extends events.EventEmitter { +export declare class FtpServer extends events.EventEmitter { /** * @param host host is a string representation of the IP address clients use to connect to the FTP server. diff --git a/git-config/git-config.d.ts b/git-config/git-config.d.ts index 71dbf33a96..6f9a324ca8 100644 --- a/git-config/git-config.d.ts +++ b/git-config/git-config.d.ts @@ -4,4 +4,4 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare export function sync(gitFile?: string): Object; +export declare function sync(gitFile?: string): Object; diff --git a/git/git.d.ts b/git/git.d.ts index 8b2b070d93..987042abf3 100644 --- a/git/git.d.ts +++ b/git/git.d.ts @@ -5,7 +5,7 @@ // lib/git/git.js -declare export class Git { +export declare class Git { constructor(gitDirectory: any); @@ -112,7 +112,7 @@ declare export class Git { } // lib/git/actor.js -declare export class Actor { +export declare class Actor { name: string; email: string; @@ -122,7 +122,7 @@ declare export class Actor { } // lib/git/blame.js -declare export class Blame { +export declare class Blame { repo: Repo; file: string; commit: string; @@ -134,7 +134,7 @@ declare export class Blame { } // lib/git/blame_line.js -declare export class BlameLine { +export declare class BlameLine { lineno: number; oldlineno: number; commit: any; @@ -144,7 +144,7 @@ declare export class BlameLine { } // lib/git/blob.js -declare export class Blob { +export declare class Blob { repo: Repo; id: any; mode: any; @@ -160,7 +160,7 @@ declare export class Blob { } // lib/git/commit.js -declare export class Commit { +export declare class Commit { repo: Repo; id: string; parents: any[]; @@ -205,7 +205,7 @@ declare export class Commit { } // lib/git/commit_stats.js -declare export class CommitStats { +export declare class CommitStats { repo: any; id: any; files: any[]; @@ -223,7 +223,7 @@ declare export class CommitStats { } // lib/git/config.js -declare export class Config { +export declare class Config { repo: any; data: any; @@ -235,7 +235,7 @@ declare export class Config { } // lib/git/diff.js -declare export class Diff { +export declare class Diff { repo: any; a_path: any; b_path: any; @@ -253,7 +253,7 @@ declare export class Diff { } // lib/git/file_index/js -declare export class FileIndex { +export declare class FileIndex { repo_path: any; index_file: any; sha_count: any; @@ -279,7 +279,7 @@ declare export class FileIndex { } // lib/git/file_window.js -declare export class FileWindow { +export declare class FileWindow { idxfile: any; version: any; global_offset: any; @@ -298,7 +298,7 @@ declare export class FileWindow { } // lib/git/git_file_operations.js -declare export class GitFileOperations { +export declare class GitFileOperations { static glob_streaming(path: any): any; static glob(path: any, callback: Function): void; @@ -317,7 +317,7 @@ declare export class GitFileOperations { } // lib/git/git_index.js -declare export class GitIndex { +export declare class GitIndex { repo: any; tree: any; current_tree: any; @@ -344,12 +344,12 @@ declare export class GitIndex { } // lib/git/git_object.js -declare export class GitObject { +export declare class GitObject { static from_raw(rawObject: any, repository: any): any; } // lib/git/head.js -declare export class Head { +export declare class Head { name: string; commit: any; // string or Commit or ...? @@ -365,7 +365,7 @@ declare export class Head { } // lib/git/loose_storage.js -declare export class LooseStorage { +export declare class LooseStorage { directory: any; constructor(directory: any); @@ -384,7 +384,7 @@ declare export class LooseStorage { } // lib/git/merge.js -declare export class Merge { +export declare class Merge { static STATUS_BOTH: string; static STATUS_OURS: string; static STATUS_THEIRS: string; @@ -397,7 +397,7 @@ declare export class Merge { } // lib/git/pack_storage.js -declare export class PackStorage { +export declare class PackStorage { name: any; cache: any; version: any; @@ -418,7 +418,7 @@ declare export class PackStorage { } // lib/git/raw.js -declare export class RawObject { +export declare class RawObject { type: any; content: any; @@ -430,11 +430,11 @@ declare export class RawObject { } // lib/git/ref.js -declare export class Ref { +export declare class Ref { } // lib/git/remote.js -declare export class Remote { +export declare class Remote { constructor(name: any, commit: any); find_all(repo: any, callback: Function): void; @@ -443,7 +443,7 @@ declare export class Remote { } // lib/git/repo.js -declare export class Repo { +export declare class Repo { path: string; options: any; git: any; @@ -550,7 +550,7 @@ declare export class Repo { } // lib/git/repository.js -declare export class Repository { +export declare class Repository { git_directory: any; options: any; already_searched: any; @@ -597,7 +597,7 @@ declare export class Repository { } // lib/git/status.js -declare export class Status { +export declare class Status { repo: any; files: any[]; @@ -607,7 +607,7 @@ declare export class Status { } // lib/git/status_file.js -declare export class StatusFile { +export declare class StatusFile { repo: any; path: any; type: any; @@ -622,7 +622,7 @@ declare export class StatusFile { } // lib/git/sub_module.js -declare export class Submodule { +export declare class Submodule { repo: any; id: any; mode: any; @@ -637,7 +637,7 @@ declare export class Submodule { } // lib/git/tag.js -declare export class Tag { +export declare class Tag { name: any; commit: any; @@ -649,7 +649,7 @@ declare export class Tag { } // lib/git/tree.js -declare export class Tree { +export declare class Tree { repo: any; id: any; mode: any; @@ -669,7 +669,7 @@ declare export class Tree { } // lib/git/user_info.js -declare export class UserInfo { +export declare class UserInfo { name: any; email: any; date: any; diff --git a/glob-stream/glob-stream.d.ts b/glob-stream/glob-stream.d.ts index 7921891349..8f7415de23 100644 --- a/glob-stream/glob-stream.d.ts +++ b/glob-stream/glob-stream.d.ts @@ -21,5 +21,5 @@ export interface Element { path: string; } -declare export function create(glob: string, opts?: Options): NodeJS.ReadableStream; -declare export function create(globs: string[], opts?: Options): NodeJS.ReadableStream; +export declare function create(glob: string, opts?: Options): NodeJS.ReadableStream; +export declare function create(globs: string[], opts?: Options): NodeJS.ReadableStream; diff --git a/graphviz/graphviz.d.ts b/graphviz/graphviz.d.ts index f9d5178dcb..f8f6107cee 100644 --- a/graphviz/graphviz.d.ts +++ b/graphviz/graphviz.d.ts @@ -80,12 +80,12 @@ export interface Graph extends HasAttributes { output(options: RenderOptions, callback: OutputCallback, errback?: ErrorCallback): void; } -declare export function graph(id: string): Graph; +export declare function graph(id: string): Graph; -declare export function digraph(id: string): Graph; +export declare function digraph(id: string): Graph; interface ParseCallback { (graph: Graph): void; } -declare export function parse(path: string, callback: ParseCallback, errback?: ErrorCallback): void; +export declare function parse(path: string, callback: ParseCallback, errback?: ErrorCallback): void; diff --git a/gulp-sourcemaps/gulp-sourcemaps.d.ts b/gulp-sourcemaps/gulp-sourcemaps.d.ts index e0f7893076..b0d30aad6e 100644 --- a/gulp-sourcemaps/gulp-sourcemaps.d.ts +++ b/gulp-sourcemaps/gulp-sourcemaps.d.ts @@ -22,6 +22,6 @@ interface WriteOptions { sourceMappingURLPrefix?: string | WriteMapper; } -declare export function init(opts?: InitOptions): NodeJS.ReadWriteStream; -declare export function write(path?: string, opts?: WriteOptions): NodeJS.ReadWriteStream; -declare export function write(opts?: WriteOptions): NodeJS.ReadWriteStream; +export declare function init(opts?: InitOptions): NodeJS.ReadWriteStream; +export declare function write(path?: string, opts?: WriteOptions): NodeJS.ReadWriteStream; +export declare function write(opts?: WriteOptions): NodeJS.ReadWriteStream; diff --git a/hapi/hapi-8.2.0.d.ts b/hapi/hapi-8.2.0.d.ts index 072e3a7a20..aaac409a8d 100644 --- a/hapi/hapi-8.2.0.d.ts +++ b/hapi/hapi-8.2.0.d.ts @@ -1044,7 +1044,7 @@ console.error('request aborted'); return reply.continue(); });*/ -declare export class Request extends Events.EventEmitter { +export declare class Request extends Events.EventEmitter { /** application-specific state. Provides a safe place to store application data without potential conflicts with the framework. Should not be used by plugins which should use plugins[name].*/ app: any; /** authentication information*/ @@ -1309,7 +1309,7 @@ console.log(hash.digest('hex')); return reply.continue(); });*/ -declare export class Response extends Events.EventEmitter { +export declare class Response extends Events.EventEmitter { /** the HTTP response status code. Defaults to 200 (except for errors).*/ statusCode: number; /** an object containing the response headers where each key is a header field name. Note that this is an incomplete list of headers to be included with the response. Additional headers will be added once the response is prepare for transmission.*/ @@ -1421,7 +1421,7 @@ The server object inherits from Events.EventEmitter and emits the following even 'tail' - emitted when a request finished processing, including any registered tails. Single event per request. Note that the server object should not be used to emit application events as its internal implementation is designed to fan events out to the various plugin selections and not for application events. MORE EVENTS HERE: http://hapijs.com/api#server-events*/ -declare export class Server extends Events.EventEmitter { +export declare class Server extends Events.EventEmitter { constructor(options?: IServerOptions); /** Provides a safe place to store server-specific run-time application data without potential conflicts with the framework internals. The data can be accessed whenever the server is accessible. Initialized with an empty object. diff --git a/hapi/hapi.d.ts b/hapi/hapi.d.ts index 07b5f83658..abd8de649f 100644 --- a/hapi/hapi.d.ts +++ b/hapi/hapi.d.ts @@ -1121,7 +1121,7 @@ console.error('request aborted'); return reply.continue(); });*/ -declare export class Request extends Events.EventEmitter { +export declare class Request extends Events.EventEmitter { /** application-specific state. Provides a safe place to store application data without potential conflicts with the framework. Should not be used by plugins which should use plugins[name].*/ app: any; /** authentication information*/ @@ -1390,7 +1390,7 @@ console.log(hash.digest('hex')); return reply.continue(); });*/ -declare export class Response extends Events.EventEmitter { +export declare class Response extends Events.EventEmitter { isBoom: boolean; /** the HTTP response status code. Defaults to 200 (except for errors).*/ statusCode: number; @@ -1511,7 +1511,7 @@ declare export class Response extends Events.EventEmitter { vary(header: string): void; } /** When using the redirect() method, the response object provides these additional methods */ -declare export class ResponseRedirect extends Response { +export declare class ResponseRedirect extends Response { /** sets the status code to 302 or 307 (based on the rewritable() setting) where: isTemporary - if false, sets status to permanent. Defaults to true.*/ temporary(isTemporary: boolean): void; @@ -1557,7 +1557,7 @@ export interface IServerConnectionInfo { * undocumented. The connection object constructed after calling server.connection(); * can be accessed via server.connections; or request.connection; */ -declare export class ServerConnection extends Events.EventEmitter { +export declare class ServerConnection extends Events.EventEmitter { domain: any; _events: { route: Function, domain: Function, _events: Function, _eventsCount: Function, _maxListeners: Function }; _eventsCount: number; @@ -1598,7 +1598,7 @@ declare export class ServerConnection extends Events.EventEmitter { 'tail' - emitted when a request finished processing, including any registered tails. Single event per request. Note that the server object should not be used to emit application events as its internal implementation is designed to fan events out to the various plugin selections and not for application events. MORE EVENTS HERE: http://hapijs.com/api#server-events*/ -declare export class Server extends Events.EventEmitter { +export declare class Server extends Events.EventEmitter { constructor(options?: IServerOptions); diff --git a/highcharts-ng/highcharts-ng-tests.ts b/highcharts-ng/highcharts-ng-tests.ts index b781a5fb10..5f451aeabb 100644 --- a/highcharts-ng/highcharts-ng-tests.ts +++ b/highcharts-ng/highcharts-ng-tests.ts @@ -1,5 +1,5 @@ /// -/// +/// var app = angular.module('app', ['highcharts-ng']); diff --git a/htmlparser2/htmlparser2.d.ts b/htmlparser2/htmlparser2.d.ts index 5db2d773fd..b53bbbb15e 100644 --- a/htmlparser2/htmlparser2.d.ts +++ b/htmlparser2/htmlparser2.d.ts @@ -60,7 +60,7 @@ export interface Options { recognizeSelfClosing?: boolean; } -declare export class Parser { +export declare class Parser { constructor(handler: Handler, options?: Options); /*** diff --git a/http-status-codes/http-status-codes.d.ts b/http-status-codes/http-status-codes.d.ts index 147cf3b017..082ce9b767 100644 --- a/http-status-codes/http-status-codes.d.ts +++ b/http-status-codes/http-status-codes.d.ts @@ -4,57 +4,57 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare export var ACCEPTED: number; -declare export var BAD_GATEWAY: number; -declare export var BAD_REQUEST: number; -declare export var CONFLICT: number; -declare export var CONTINUE: number; -declare export var CREATED: number; -declare export var EXPECTATION_FAILED: number; -declare export var FAILED_DEPENDENCY: number; -declare export var FORBIDDEN: number; -declare export var GATEWAY_TIMEOUT: number; -declare export var GONE: number; -declare export var HTTP_VERSION_NOT_SUPPORTED: number; -declare export var INSUFFICIENT_SPACE_ON_RESOURCE: number; -declare export var INSUFFICIENT_STORAGE: number; -declare export var INTERNAL_SERVER_ERROR: number; -declare export var LENGTH_REQUIRED: number; -declare export var LOCKED: number; -declare export var METHOD_FAILURE: number; -declare export var METHOD_NOT_ALLOWED: number; -declare export var MOVED_PERMANENTLY: number; -declare export var MOVED_TEMPORARILY: number; -declare export var MULTI_STATUS: number; -declare export var MULTIPLE_CHOICES: number; -declare export var NETWORK_AUTHENTICATION_REQUIRED: number; -declare export var NO_CONTENT: number; -declare export var NON_AUTHORITATIVE_INFORMATION: number; -declare export var NOT_ACCEPTABLE: number; -declare export var NOT_FOUND: number; -declare export var NOT_IMPLEMENTED: number; -declare export var NOT_MODIFIED: number; -declare export var OK: number; -declare export var PARTIAL_CONTENT: number; -declare export var PAYMENT_REQUIRED: number; -declare export var PRECONDITION_FAILED: number; -declare export var PRECONDITION_REQUIRED: number; -declare export var PROCESSING: number; -declare export var PROXY_AUTHENTICATION_REQUIRED: number; -declare export var REQUEST_HEADER_FIELDS_TOO_LARGE: number; -declare export var REQUEST_TIMEOUT: number; -declare export var REQUEST_TOO_LONG: number; -declare export var REQUEST_URI_TOO_LONG: number; -declare export var REQUESTED_RANGE_NOT_SATISFIABLE: number; -declare export var RESET_CONTENT: number; -declare export var SEE_OTHER: number; -declare export var SERVICE_UNAVAILABLE: number; -declare export var SWITCHING_PROTOCOLS: number; -declare export var TEMPORARY_REDIRECT: number; -declare export var TOO_MANY_REQUESTS: number; -declare export var UNAUTHORIZED: number; -declare export var UNPROCESSABLE_ENTITY: number; -declare export var UNSUPPORTED_MEDIA_TYPE: number; -declare export var USE_PROXY: number; +export declare var ACCEPTED: number; +export declare var BAD_GATEWAY: number; +export declare var BAD_REQUEST: number; +export declare var CONFLICT: number; +export declare var CONTINUE: number; +export declare var CREATED: number; +export declare var EXPECTATION_FAILED: number; +export declare var FAILED_DEPENDENCY: number; +export declare var FORBIDDEN: number; +export declare var GATEWAY_TIMEOUT: number; +export declare var GONE: number; +export declare var HTTP_VERSION_NOT_SUPPORTED: number; +export declare var INSUFFICIENT_SPACE_ON_RESOURCE: number; +export declare var INSUFFICIENT_STORAGE: number; +export declare var INTERNAL_SERVER_ERROR: number; +export declare var LENGTH_REQUIRED: number; +export declare var LOCKED: number; +export declare var METHOD_FAILURE: number; +export declare var METHOD_NOT_ALLOWED: number; +export declare var MOVED_PERMANENTLY: number; +export declare var MOVED_TEMPORARILY: number; +export declare var MULTI_STATUS: number; +export declare var MULTIPLE_CHOICES: number; +export declare var NETWORK_AUTHENTICATION_REQUIRED: number; +export declare var NO_CONTENT: number; +export declare var NON_AUTHORITATIVE_INFORMATION: number; +export declare var NOT_ACCEPTABLE: number; +export declare var NOT_FOUND: number; +export declare var NOT_IMPLEMENTED: number; +export declare var NOT_MODIFIED: number; +export declare var OK: number; +export declare var PARTIAL_CONTENT: number; +export declare var PAYMENT_REQUIRED: number; +export declare var PRECONDITION_FAILED: number; +export declare var PRECONDITION_REQUIRED: number; +export declare var PROCESSING: number; +export declare var PROXY_AUTHENTICATION_REQUIRED: number; +export declare var REQUEST_HEADER_FIELDS_TOO_LARGE: number; +export declare var REQUEST_TIMEOUT: number; +export declare var REQUEST_TOO_LONG: number; +export declare var REQUEST_URI_TOO_LONG: number; +export declare var REQUESTED_RANGE_NOT_SATISFIABLE: number; +export declare var RESET_CONTENT: number; +export declare var SEE_OTHER: number; +export declare var SERVICE_UNAVAILABLE: number; +export declare var SWITCHING_PROTOCOLS: number; +export declare var TEMPORARY_REDIRECT: number; +export declare var TOO_MANY_REQUESTS: number; +export declare var UNAUTHORIZED: number; +export declare var UNPROCESSABLE_ENTITY: number; +export declare var UNSUPPORTED_MEDIA_TYPE: number; +export declare var USE_PROXY: number; -declare export function getStatusText(statusCode: number): string; +export declare function getStatusText(statusCode: number): string; diff --git a/http-string-parser/http-string-parser.d.ts b/http-string-parser/http-string-parser.d.ts index cf8808f619..cf844edbd2 100644 --- a/http-string-parser/http-string-parser.d.ts +++ b/http-string-parser/http-string-parser.d.ts @@ -30,8 +30,8 @@ interface ParseStatusLineResult { statusMessage: string; } -declare export function parseRequest(requestString: string): ParseRequestResult; -declare export function parseResponse(responseString: string): ParseResponseResult; -declare export function parseRequestLine(requestLineString: string): ParseRequestLineResult; -declare export function parseStatusLine(statusLine: string): ParseStatusLineResult; -declare export function parseHeaders(headerLines: string[]): { [key: string]: string }; +export declare function parseRequest(requestString: string): ParseRequestResult; +export declare function parseResponse(responseString: string): ParseResponseResult; +export declare function parseRequestLine(requestLineString: string): ParseRequestLineResult; +export declare function parseStatusLine(statusLine: string): ParseStatusLineResult; +export declare function parseHeaders(headerLines: string[]): { [key: string]: string }; diff --git a/icepick/icepick.d.ts b/icepick/icepick.d.ts index 235a498ab4..184f0e12b1 100644 --- a/icepick/icepick.d.ts +++ b/icepick/icepick.d.ts @@ -4,39 +4,39 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare export function freeze(collection: T): T; -declare export function thaw(collection: T): T; -declare export function assoc(collection: T, key: number | string, value: any): T; -declare export function dissoc(collection: T, key: number | string): T; -declare export function assocIn(collection: T, path: Array, value: any): T; -declare export function getIn(collection: any, path: Array): Result; -declare export function updateIn(collection: T, path: Array, callback: (value: V) => V): T; +export declare function freeze(collection: T): T; +export declare function thaw(collection: T): T; +export declare function assoc(collection: T, key: number | string, value: any): T; +export declare function dissoc(collection: T, key: number | string): T; +export declare function assocIn(collection: T, path: Array, value: any): T; +export declare function getIn(collection: any, path: Array): Result; +export declare function updateIn(collection: T, path: Array, callback: (value: V) => V): T; export {assoc as set}; export {dissoc as unset}; export {assocIn as setIn}; -declare export function assign(target: T): T; -declare export function assign(target: T, source1: S1): (T & S1); -declare export function assign(target: T, s1: S1, s2: S2): (T & S1 & S2); -declare export function assign(target: T, s1: S1, s2: S2, s3: S3): (T & S1 & S2 & S3); -declare export function assign(target: T, s1: S1, s2: S2, s3: S3, s4: S4): (T & S1 & S2 & S3 & S4); +export declare function assign(target: T): T; +export declare function assign(target: T, source1: S1): (T & S1); +export declare function assign(target: T, s1: S1, s2: S2): (T & S1 & S2); +export declare function assign(target: T, s1: S1, s2: S2, s3: S3): (T & S1 & S2 & S3); +export declare function assign(target: T, s1: S1, s2: S2, s3: S3, s4: S4): (T & S1 & S2 & S3 & S4); export {assign as extend}; -declare export function merge(target: T, source: S1): (T & S1); +export declare function merge(target: T, source: S1): (T & S1); -declare export function push(array: T[], element: T): T[]; -declare export function pop(array: T[]): T[]; -declare export function shift(array: T[]): T[]; -declare export function unshift(array: T[], element: T): T[]; -declare export function reverse(array: T[]): T[]; -declare export function sort(array: T[], compareFunction?: (a: T, b: T) => number): T[]; -declare export function splice(array: T[], start: number, deleteCount: number, ...items: T[]): T[]; -declare export function slice(array: T[], begin?: number, end?: number): T[]; +export declare function push(array: T[], element: T): T[]; +export declare function pop(array: T[]): T[]; +export declare function shift(array: T[]): T[]; +export declare function unshift(array: T[], element: T): T[]; +export declare function reverse(array: T[]): T[]; +export declare function sort(array: T[], compareFunction?: (a: T, b: T) => number): T[]; +export declare function splice(array: T[], start: number, deleteCount: number, ...items: T[]): T[]; +export declare function slice(array: T[], begin?: number, end?: number): T[]; -declare export function map(fn: (value: T) => U, array: T[]): U[]; -declare export function filter(fn: (value: T) => boolean, array: T[]): T[]; +export declare function map(fn: (value: T) => U, array: T[]): U[]; +export declare function filter(fn: (value: T) => boolean, array: T[]): T[]; interface IcepickWrapper { value(): T; @@ -68,4 +68,4 @@ interface IcepickWrapper { merge(source: S1): IcepickWrapper; } -declare export function chain(target: T): IcepickWrapper; +export declare function chain(target: T): IcepickWrapper; diff --git a/imagemagick-native/imagemagick-native.d.ts b/imagemagick-native/imagemagick-native.d.ts index f0fab60560..724962a47b 100644 --- a/imagemagick-native/imagemagick-native.d.ts +++ b/imagemagick-native/imagemagick-native.d.ts @@ -8,7 +8,7 @@ import stream = require('stream'); -declare export module streams { +export declare module streams { export function convert(options: IStreamConvertOptions): stream.Transform; } diff --git a/imagemagick/imagemagick.d.ts b/imagemagick/imagemagick.d.ts index 2dc0ee7b04..29dae576ab 100644 --- a/imagemagick/imagemagick.d.ts +++ b/imagemagick/imagemagick.d.ts @@ -10,22 +10,22 @@ import child_process = require("child_process"); -declare export function identify(path: string, callback: (err: Error, features: Features) => void): child_process.ChildProcess; -declare export function identify(path: any[], callback: (err: Error, result: string) => void): child_process.ChildProcess; -declare export module identify { +export declare function identify(path: string, callback: (err: Error, features: Features) => void): child_process.ChildProcess; +export declare function identify(path: any[], callback: (err: Error, result: string) => void): child_process.ChildProcess; +export declare module identify { export var path: string; } -declare export function readMetadata(path: string, callback: (err: Error, result: any) => void): child_process.ChildProcess; +export declare function readMetadata(path: string, callback: (err: Error, result: any) => void): child_process.ChildProcess; -declare export function convert(args: any, callback: (err: Error, result: any) => void): child_process.ChildProcess; -declare export function convert(args: any, timeout: number, callback: (err: Error, result: any) => void): child_process.ChildProcess; -declare export module convert { +export declare function convert(args: any, callback: (err: Error, result: any) => void): child_process.ChildProcess; +export declare function convert(args: any, timeout: number, callback: (err: Error, result: any) => void): child_process.ChildProcess; +export declare module convert { export var path: string; } -declare export function resize(options: Options, callback: (err: Error, result: any) => void): child_process.ChildProcess; -declare export function crop(options: Options, callback: (err: Error, result: any) => void): child_process.ChildProcess; -declare export function resizeArgs(options: Options): ResizeArgs; +export declare function resize(options: Options, callback: (err: Error, result: any) => void): child_process.ChildProcess; +export declare function crop(options: Options, callback: (err: Error, result: any) => void): child_process.ChildProcess; +export declare function resizeArgs(options: Options): ResizeArgs; export interface Features { format?: string; diff --git a/incremental-dom/incremental-dom.d.ts b/incremental-dom/incremental-dom.d.ts index 3e40fa1241..6156031db1 100644 --- a/incremental-dom/incremental-dom.d.ts +++ b/incremental-dom/incremental-dom.d.ts @@ -12,7 +12,7 @@ * calls that describe the DOM. * @param {?T} data An argument passed to fn to represent DOM state. */ -declare export var patch: (el: Node, fn: (data: T) => void, data?: T) => void; +export declare var patch: (el: Node, fn: (data: T) => void, data?: T) => void; /** * Declares a virtual Element at the current location in the document. This @@ -27,7 +27,7 @@ declare export var patch: (el: Node, fn: (data: T) => void, data?: T) => void * @param {...*} var_args Attribute name/value pairs of the dynamic attributes * for the Element. */ -declare export var elementOpen: (tag: string, key?: string, statics?: any[], ...var_args: any[]) => void; +export declare var elementOpen: (tag: string, key?: string, statics?: any[], ...var_args: any[]) => void; /** * Declares a virtual Element at the current location in the document. This * corresponds to an opening tag and a elementClose tag is required. This is @@ -42,7 +42,7 @@ declare export var elementOpen: (tag: string, key?: string, statics?: any[], ... * static attributes for the Element. These will only be set once when the * Element is created. */ -declare export var elementOpenStart: (tag: string, key?: any, ...statics: any[]) => void; +export declare var elementOpenStart: (tag: string, key?: any, ...statics: any[]) => void; /*** * Defines a virtual attribute at this point of the DOM. This is only valid * when called between elementOpenStart and elementOpenEnd. @@ -50,15 +50,15 @@ declare export var elementOpenStart: (tag: string, key?: any, ...statics: any[]) * @param {string} name * @param {*} value */ -declare export var attr: (name: string, value: any) => void; +export declare var attr: (name: string, value: any) => void; /** * Closes an open tag started with elementOpenStart. */ -declare export var elementOpenEnd: () => void; +export declare var elementOpenEnd: () => void; /** * Closes an open virtual Element. */ -declare export var elementClose: (tag: string) => void; +export declare var elementClose: (tag: string) => void; /** * Declares a virtual Element at the current location in the document that has * no children. @@ -72,10 +72,10 @@ declare export var elementClose: (tag: string) => void; * @param {...*} var_args Attribute name/value pairs of the dynamic attributes * for the Element. */ -declare export var elementVoid: (tag: string, key?: string, statics?: any, ...var_args: any[]) => void; +export declare var elementVoid: (tag: string, key?: string, statics?: any, ...var_args: any[]) => void; /** * Declares a virtual Text at this point in the document. * * @param {string} value The text of the Text. */ -declare export var text: (value: string) => void; +export declare var text: (value: string) => void; diff --git a/iniparser/iniparser.d.ts b/iniparser/iniparser.d.ts index 045c07a6fe..05f0919fce 100644 --- a/iniparser/iniparser.d.ts +++ b/iniparser/iniparser.d.ts @@ -4,11 +4,11 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare export function parse( +export declare function parse( file: string, callback: (err: any, data: T) => void ): void; -declare export function parseSync(file: string): T; +export declare function parseSync(file: string): T; -declare export function parseString(data: string): T; +export declare function parseString(data: string): T; diff --git a/ionic/ionic.d.ts b/ionic/ionic.d.ts index 994b7ae27e..aa375b3f67 100644 --- a/ionic/ionic.d.ts +++ b/ionic/ionic.d.ts @@ -3,7 +3,7 @@ // Definitions by: Spencer Williams // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// interface IonicStatic { /** diff --git a/jade/jade.d.ts b/jade/jade.d.ts index 6be4b8b45f..bc97c52839 100644 --- a/jade/jade.d.ts +++ b/jade/jade.d.ts @@ -4,12 +4,12 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare export function compile(template: string, options?: any): (locals?: any) => string; -declare export function compileFile(path: string, options?: any): (locals?: any) => string; -declare export function compileClient(template: string, options?: any): (locals?: any) => string; -declare export function compileClientWithDependenciesTracked(template: string, options?: any): { +export declare function compile(template: string, options?: any): (locals?: any) => string; +export declare function compileFile(path: string, options?: any): (locals?: any) => string; +export declare function compileClient(template: string, options?: any): (locals?: any) => string; +export declare function compileClientWithDependenciesTracked(template: string, options?: any): { body: (locals?: any) => string; dependencies: string[]; }; -declare export function render(template: string, options?: any): string; -declare export function renderFile(path: string, options?: any): string; +export declare function render(template: string, options?: any): string; +export declare function renderFile(path: string, options?: any): string; diff --git a/johnny-five/johnny-five.d.ts b/johnny-five/johnny-five.d.ts index 4c917f4e0f..1e8cd2198c 100644 --- a/johnny-five/johnny-five.d.ts +++ b/johnny-five/johnny-five.d.ts @@ -30,7 +30,7 @@ export interface AccelerometerMMA7361Option extends AccelerometerGeneralOption { sleepPin?: number | string; } -declare export class Accelerometer { +export declare class Accelerometer { constructor(option: AccelerometerGeneralOption | AccelerometerAnalogOption | AccelerometerMPU6050Option | AccelerometerMMA7361Option); on(event: string, cb: () => void): void; on(event: "change", cb: () => void): void; @@ -40,7 +40,7 @@ declare export class Accelerometer { disable(): void; } -declare export class Animation { +export declare class Animation { constructor(option: Servo | Array); enqueue(segment: any): void; play(): void; @@ -69,7 +69,7 @@ export interface ButtonOptions { holdtime?: number; } -declare export class Button { +export declare class Button { constructor(pin: number | string | ButtonOptions); on(event: string, cb: () => void): void; on(event: "hold", cb: (holdTime: number) => void): void; @@ -89,7 +89,7 @@ export interface Repl { inject(object: any): void; } -declare export class Board { +export declare class Board { constructor(option?: BoardOptions); on(event: string, cb: () => void): void; on(event: "ready", cb: () => void): void; @@ -116,7 +116,7 @@ export interface CompassOptions { gauss?: number; } -declare export class Compass { +export declare class Compass { constructor(option: CompassOptions); on(event: string, cb: () => void): void; on(event: "change", cb: () => void): void; @@ -129,7 +129,7 @@ export interface ESCOption { startAt?: number; } -declare export class ESC { +export declare class ESC { constructor(option: number | string | ESCOption); speed(value: number): void; min(): void; @@ -151,7 +151,7 @@ export interface GyroMPU6050Option extends GyroGeneralOption { sensitivity: number; } -declare export class Gyro { +export declare class Gyro { constructor(option: GyroGeneralOption | GyroAnalogOption | GyroMPU6050Option); on(event: string, cb: () => void): void; on(event: "change", cb: () => void): void; @@ -168,14 +168,14 @@ export interface IMUMPU6050Option extends IMUGeneralOption { address: number; } -declare export class IMU { +export declare class IMU { constructor(option: IMUGeneralOption | IMUMPU6050Option); on(event: string, cb: () => void): void; on(event: "change", cb: () => void): void; on(event: "data", cb: (data: any) => void): void; } -declare export module IR { +export declare module IR { export interface MotionOption { pin: number | string; } @@ -232,7 +232,7 @@ export interface JoystickOption { pins: Array; } -declare export class Joystick { +export declare class Joystick { constructor(option: JoystickOption); on(event: string, cb: () => void): void; on(event: "data", cb: (data: any) => void): void; @@ -259,7 +259,7 @@ export interface LCDParallelOption extends LCDGeneralOption { backlight?: number; } -declare export class LCD { +export declare class LCD { constructor(option: LCDGeneralOption | LCDI2COption | LCDParallelOption); print(message: string): void; useChar(char: string): void; @@ -282,7 +282,7 @@ export interface LedOption { isAnode?: boolean; } -declare export class Led { +export declare class Led { constructor(option: number | LedOption); on(): void; off(): void; @@ -298,7 +298,7 @@ declare export class Led { stop(ms: number): void; } -declare export module Led { +export declare module Led { export interface DigitsOption { pins: any; devices?: number; @@ -382,7 +382,7 @@ export interface MotorOption { bits?: any; } -declare export class Motor { +export declare class Motor { constructor(option: Array | MotorOption); forward(speed: number): void; fwd(speed: number): void; @@ -399,7 +399,7 @@ export interface PiezoOption { pin: number; } -declare export class Piezo { +export declare class Piezo { constructor(option: number | PiezoOption); frequency(frequency: number, duration: number): void; play(tune: any, cb?: () => void): void; @@ -422,7 +422,7 @@ export interface PinState { analogChannel: number; } -declare export class Pin { +export declare class Pin { constructor(option: number | string | PinOption); query(cb: (pin: PinState) => void): void; high(): void; @@ -439,7 +439,7 @@ export interface PingOption { pulse?: number; } -declare export class Ping { +export declare class Ping { constructor(option: number | PingOption); } @@ -448,7 +448,7 @@ export interface RelayOption { type?: string; } -declare export class Relay { +export declare class Relay { constructor(option: number | RelayOption); open(): void; close(): void; @@ -461,7 +461,7 @@ export interface SensorOption { threshold?: number; } -declare export class Sensor { +export declare class Sensor { constructor(option: number | string | SensorOption); scale(low: number, high: number): Sensor; scale(range: number[]): Sensor; @@ -493,7 +493,7 @@ export interface ServoSweepOpts { step?: number; } -declare export class Servo { +export declare class Servo { constructor(option: number | string | ServoGeneralOption); to(degrees: number, ms?: number, rage?: number): void; min(): void; @@ -513,7 +513,7 @@ export interface ShiftRegisterOption { pins: any; } -declare export class ShiftRegister { +export declare class ShiftRegister { constructor(option: ShiftRegisterOption); send(...value: number[]): void; } @@ -525,7 +525,7 @@ export interface SonarOption { threshold?: number; } -declare export class Sonar { +export declare class Sonar { constructor(option: number | string | SonarOption); within(range: Array, cb: () => void): void; within(range: Array, unit: string, cb: () => void): void; @@ -542,7 +542,7 @@ export interface StepperOption { direction?: number; } -declare export module Stepper { +export declare module Stepper { export class TYPE { static DRIVER: number; static TWO_WIRE: number; @@ -550,7 +550,7 @@ declare export module Stepper { } } -declare export class Stepper { +export declare class Stepper { constructor(option: number | string | StepperOption); step(stepsOrOpts: any, cb: () => void): void; rpm(): Stepper; @@ -580,7 +580,7 @@ export interface TemperatureOption { freq?: number; } -declare export class Temperature { +export declare class Temperature { constructor(option: TemperatureOption); on(event: string, cb: () => void): void; on(event: "data", cb: (data: any) => void): void; diff --git a/joi/joi.d.ts b/joi/joi.d.ts index dc84af752d..916d859498 100644 --- a/joi/joi.d.ts +++ b/joi/joi.d.ts @@ -700,67 +700,67 @@ export interface AlternativesSchema extends AnySchema { /** * Generates a schema object that matches any data type. */ -declare export function any(): Schema; +export declare function any(): Schema; /** * Generates a schema object that matches an array data type. */ -declare export function array(): ArraySchema; +export declare function array(): ArraySchema; /** * Generates a schema object that matches a boolean data type (as well as the strings 'true', 'false', 'yes', and 'no'). Can also be called via bool(). */ -declare export function bool(): BooleanSchema; +export declare function bool(): BooleanSchema; -declare export function boolean(): BooleanSchema; +export declare function boolean(): BooleanSchema; /** * Generates a schema object that matches a Buffer data type (as well as the strings which will be converted to Buffers). */ -declare export function binary(): BinarySchema; +export declare function binary(): BinarySchema; /** * Generates a schema object that matches a date type (as well as a JavaScript date string or number of milliseconds). */ -declare export function date(): DateSchema; +export declare function date(): DateSchema; /** * Generates a schema object that matches a function type. */ -declare export function func(): FunctionSchema; +export declare function func(): FunctionSchema; /** * Generates a schema object that matches a number data type (as well as strings that can be converted to numbers). */ -declare export function number(): NumberSchema; +export declare function number(): NumberSchema; /** * Generates a schema object that matches an object data type (as well as JSON strings that parsed into objects). */ -declare export function object(schema?: SchemaMap): ObjectSchema; +export declare function object(schema?: SchemaMap): ObjectSchema; /** * Generates a schema object that matches a string data type. Note that empty strings are not allowed by default and must be enabled with allow(''). */ -declare export function string(): StringSchema; +export declare function string(): StringSchema; /** * Generates a type that will match one of the provided alternative schemas */ -declare export function alternatives(types: Schema[]): Schema; -declare export function alternatives(type1: Schema, type2: Schema, ...types: Schema[]): Schema; +export declare function alternatives(types: Schema[]): Schema; +export declare function alternatives(type1: Schema, type2: Schema, ...types: Schema[]): Schema; /** * Validates a value using the given schema and options. */ -declare export function validate(value: T, schema: Schema, callback: (err: ValidationError, value: T) => void): void; -declare export function validate(value: T, schema: Object, callback: (err: ValidationError, value: T) => void): void; -declare export function validate(value: T, schema: Object, options?: ValidationOptions, callback?: (err: ValidationError, value: T) => void): ValidationResult; +export declare function validate(value: T, schema: Schema, callback: (err: ValidationError, value: T) => void): void; +export declare function validate(value: T, schema: Object, callback: (err: ValidationError, value: T) => void): void; +export declare function validate(value: T, schema: Object, options?: ValidationOptions, callback?: (err: ValidationError, value: T) => void): ValidationResult; /** * Converts literal schema definition to joi schema object (or returns the same back if already a joi schema object). */ -declare export function compile(schema: Object): Schema; +export declare function compile(schema: Object): Schema; /** * Validates a value against a schema and throws if validation fails. @@ -769,9 +769,9 @@ declare export function compile(schema: Object): Schema; * @param schema - the schema object. * @param message - optional message string prefix added in front of the error message. may also be an Error object. */ -declare export function assert(value: any, schema: Schema, message?: string | Error): void; +export declare function assert(value: any, schema: Schema, message?: string | Error): void; /** * Generates a reference to the value of the named key. */ -declare export function ref(key: string, options?: ReferenceOptions): Reference; +export declare function ref(key: string, options?: ReferenceOptions): Reference; diff --git a/js-data-angular/js-data-angular.d.ts b/js-data-angular/js-data-angular.d.ts index 56037690e6..350ddbdfd5 100644 --- a/js-data-angular/js-data-angular.d.ts +++ b/js-data-angular/js-data-angular.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -/// +/// declare namespace JSData { diff --git a/jsdom/jsdom.d.ts b/jsdom/jsdom.d.ts index 47cfec2783..be9b0d6d45 100644 --- a/jsdom/jsdom.d.ts +++ b/jsdom/jsdom.d.ts @@ -24,15 +24,15 @@ import EventEmitter = NodeJS.EventEmitter; * @param config Configuration object * @param callback */ -declare export function env(urlOrHtml: string, scripts: string, config: Config, callback?: Callback): void; -declare export function env(urlOrHtml: string, scripts: string, callback: Callback): void; -declare export function env(urlOrHtml: string, scripts: string[], config: Config, callback?: Callback): void; -declare export function env(urlOrHtml: string, scripts: string[], callback: Callback): void; -declare export function env(urlOrHtml: string, callback: Callback): void; -declare export function env(urlOrHtml: string, config: Config, callback?: Callback): void; -declare export function env(config: Config, callback?: Callback): void; +export declare function env(urlOrHtml: string, scripts: string, config: Config, callback?: Callback): void; +export declare function env(urlOrHtml: string, scripts: string, callback: Callback): void; +export declare function env(urlOrHtml: string, scripts: string[], config: Config, callback?: Callback): void; +export declare function env(urlOrHtml: string, scripts: string[], callback: Callback): void; +export declare function env(urlOrHtml: string, callback: Callback): void; +export declare function env(urlOrHtml: string, config: Config, callback?: Callback): void; +export declare function env(config: Config, callback?: Callback): void; -declare export function serializeDocument(doc: Document): string; +export declare function serializeDocument(doc: Document): string; export interface VirtualConsole extends EventEmitter { sendTo(console: Console): VirtualConsole; @@ -63,15 +63,15 @@ export interface CookieJar { } -declare export function createVirtualConsole(options?: VirtualConsoleOptions): VirtualConsole; -declare export function getVirtualConsole(window: Window): VirtualConsole; -declare export function createCookieJar(): CookieJar; -declare export function nodeLocation(node: Node): any; -declare export function reconfigureWindow(window: Window, newProps: WindowProperties): void; +export declare function createVirtualConsole(options?: VirtualConsoleOptions): VirtualConsole; +export declare function getVirtualConsole(window: Window): VirtualConsole; +export declare function createCookieJar(): CookieJar; +export declare function nodeLocation(node: Node): any; +export declare function reconfigureWindow(window: Window, newProps: WindowProperties): void; -declare export function jQueryify(window: Window, jqueryUrl: string, callback: (window: Window, jquery: JQuery) => any): void; +export declare function jQueryify(window: Window, jqueryUrl: string, callback: (window: Window, jquery: JQuery) => any): void; -declare export var debugMode: boolean; +export declare var debugMode: boolean; export interface DocumentWithParentWindow extends Document { parentWindow: Window; @@ -88,14 +88,14 @@ export interface DocumentWithParentWindow extends Document { * equivalent to what a browser will give if you open up an empty .html file. * @param options see the explanation of the config object above. */ -declare export function jsdom(markup: string, config?: Config): DocumentWithParentWindow; +export declare function jsdom(markup: string, config?: Config): DocumentWithParentWindow; /** * Before creating any documents, you can modify the defaults for all future documents: */ -declare export var availableDocumentFeatures: FeatureOptions; -declare export var defaultDocumentFeatures: FeatureOptions; -declare export var applyDocumentFeatures: FeatureOptions; +export declare var availableDocumentFeatures: FeatureOptions; +export declare var defaultDocumentFeatures: FeatureOptions; +export declare var applyDocumentFeatures: FeatureOptions; export interface Callback { (errors: Error[], window: Window): any; diff --git a/jsonpath/jsonpath.d.ts b/jsonpath/jsonpath.d.ts index 4d6c03e2fa..e691f860e1 100644 --- a/jsonpath/jsonpath.d.ts +++ b/jsonpath/jsonpath.d.ts @@ -7,12 +7,12 @@ type PathComponent = string | number; -declare export function query(obj: any, pathExpression: string): any[]; -declare export function paths(obj: any, pathExpression: string): PathComponent[][]; -declare export function nodes(obj: any, pathExpression: string): { path: PathComponent[]; value: any; }[]; -declare export function value(obj: any, pathExpression: string): any; -declare export function value(obj: any, pathExpression: string, newValue: any): any; -declare export function parent(obj: any, pathExpression: string): any; -declare export function apply(obj: any, pathExpression: string, fn: (x: any) => any): { path: PathComponent[]; value: any; }[]; -declare export function parse(pathExpression: string): any[]; -declare export function stringify(path: PathComponent[]): string; +export declare function query(obj: any, pathExpression: string): any[]; +export declare function paths(obj: any, pathExpression: string): PathComponent[][]; +export declare function nodes(obj: any, pathExpression: string): { path: PathComponent[]; value: any; }[]; +export declare function value(obj: any, pathExpression: string): any; +export declare function value(obj: any, pathExpression: string, newValue: any): any; +export declare function parent(obj: any, pathExpression: string): any; +export declare function apply(obj: any, pathExpression: string, fn: (x: any) => any): { path: PathComponent[]; value: any; }[]; +export declare function parse(pathExpression: string): any[]; +export declare function stringify(path: PathComponent[]): string; diff --git a/jsonwebtoken/jsonwebtoken.d.ts b/jsonwebtoken/jsonwebtoken.d.ts index 8455c6261b..deac4f0e3a 100644 --- a/jsonwebtoken/jsonwebtoken.d.ts +++ b/jsonwebtoken/jsonwebtoken.d.ts @@ -72,7 +72,7 @@ export interface SignCallback { * @param {SignOptions} [options] - Options for the signature * @returns {String} The JSON Web Token string */ -declare export function sign(payload: string | Buffer | Object, secretOrPrivateKey: string | Buffer, options?: SignOptions): string; +export declare function sign(payload: string | Buffer | Object, secretOrPrivateKey: string | Buffer, options?: SignOptions): string; /** * Sign the given payload into a JSON Web Token string @@ -81,8 +81,8 @@ declare export function sign(payload: string | Buffer | Object, secretOrPrivateK * @param {SignOptions} [options] - Options for the signature * @param {Function} callback - Callback to get the encoded token on */ -declare export function sign(payload: string | Buffer | Object, secretOrPrivateKey: string | Buffer, callback: SignCallback): void; -declare export function sign(payload: string | Buffer | Object, secretOrPrivateKey: string | Buffer, options: SignOptions, callback: SignCallback): void; +export declare function sign(payload: string | Buffer | Object, secretOrPrivateKey: string | Buffer, callback: SignCallback): void; +export declare function sign(payload: string | Buffer | Object, secretOrPrivateKey: string | Buffer, options: SignOptions, callback: SignCallback): void; /** * Synchronously verify given token using a secret or a public key to get a decoded token diff --git a/jwt-simple/jwt-simple.d.ts b/jwt-simple/jwt-simple.d.ts index 657f8ea51d..83a0e37aed 100644 --- a/jwt-simple/jwt-simple.d.ts +++ b/jwt-simple/jwt-simple.d.ts @@ -10,7 +10,7 @@ * @param noVerify * @api public */ -declare export function decode(token: any, key: string, noVerify?: boolean): any; +export declare function decode(token: any, key: string, noVerify?: boolean): any; /** * Encode jwt * @param payload @@ -18,4 +18,4 @@ declare export function decode(token: any, key: string, noVerify?: boolean): any * @param algorithm default is HS256 * @api public */ -declare export function encode(payload: any, key: string, algorithm?: string): string; +export declare function encode(payload: any, key: string, algorithm?: string): string; diff --git a/kafka-node/kafka-node.d.ts b/kafka-node/kafka-node.d.ts index 3786d16a4d..81bfb7a0b3 100644 --- a/kafka-node/kafka-node.d.ts +++ b/kafka-node/kafka-node.d.ts @@ -6,12 +6,12 @@ // # Classes -declare export class Client { +export declare class Client { constructor(connectionString: string, clientId: string, options?: ZKOptions); close(callback?: Function): void; } -declare export class Producer { +export declare class Producer { constructor(client: Client); on(eventName: string, cb: () => any): void; on(eventName: string, cb: (error: any) => any): void; @@ -19,7 +19,7 @@ declare export class Producer { createTopics(topics: Array, async: boolean, cb?: (error: any, data: any) => any): void; } -declare export class HighLevelProducer { +export declare class HighLevelProducer { constructor(client: Client); on(eventName: string, cb: () => any): void; on(eventName: string, cb: (error: any) => any): void; @@ -27,7 +27,7 @@ declare export class HighLevelProducer { createTopics(topics: Array, async: boolean, cb?: (error: any, data: any) => any): void; } -declare export class Consumer { +export declare class Consumer { constructor(client: Client, fetchRequests: Array, options: ConsumerOptions); on(eventName: string, cb: (message: string) => any): void; on(eventName: string, cb: (error: any) => any): void; @@ -43,7 +43,7 @@ declare export class Consumer { close(force: boolean, cb: () => any): void; } -declare export class HighLevelConsumer { +export declare class HighLevelConsumer { constructor(client: Client, payloads: Array, options: ConsumerOptions); on(eventName: string, cb: (message: string) => any): void; on(eventName: string, cb: (error: any) => any): void; @@ -59,7 +59,7 @@ declare export class HighLevelConsumer { close(force: boolean, cb: () => any): void; } -declare export class Offset { +export declare class Offset { constructor(client: Client); on(eventName: string, cb: () => any): void; fetch(payloads: Array, cb: (error: any, data: any) => any): void; @@ -67,7 +67,7 @@ declare export class Offset { fetchCommits(groupId: string, payloads: Array, cb: (error: any, data: any) => any): void; } -declare export class KeyedMessage { +export declare class KeyedMessage { constructor(key: string, message: string); } diff --git a/kefir/kefir.d.ts b/kefir/kefir.d.ts index 80123bc490..322c47f3f9 100644 --- a/kefir/kefir.d.ts +++ b/kefir/kefir.d.ts @@ -154,28 +154,28 @@ export interface Emitter { } // Create a stream -declare export function never(): Stream; -declare export function later(wait: number, value: T): Stream; -declare export function interval(interval: number, value: T): Stream; -declare export function sequentially(interval: number, values: T[]): Stream; -declare export function fromPoll(interval: number, fn: () => T): Stream; -declare export function withInterval(interval: number, handler: (emitter: Emitter) => void): Stream; -declare export function fromCallback(fn: (callback: (value: T) => void) => void): Stream; -declare export function fromNodeCallback(fn: (callback: (error: S, result: T) => void) => void): Stream; -declare export function fromEvents(target: EventTarget | NodeJS.EventEmitter | { on: Function, off: Function }, eventName: string, transform?: (value: T) => S): Stream; -declare export function stream(subscribe: (emitter: Emitter) => Function | void): Stream; -declare export function fromESObservable(observable: any): Stream +export declare function never(): Stream; +export declare function later(wait: number, value: T): Stream; +export declare function interval(interval: number, value: T): Stream; +export declare function sequentially(interval: number, values: T[]): Stream; +export declare function fromPoll(interval: number, fn: () => T): Stream; +export declare function withInterval(interval: number, handler: (emitter: Emitter) => void): Stream; +export declare function fromCallback(fn: (callback: (value: T) => void) => void): Stream; +export declare function fromNodeCallback(fn: (callback: (error: S, result: T) => void) => void): Stream; +export declare function fromEvents(target: EventTarget | NodeJS.EventEmitter | { on: Function, off: Function }, eventName: string, transform?: (value: T) => S): Stream; +export declare function stream(subscribe: (emitter: Emitter) => Function | void): Stream; +export declare function fromESObservable(observable: any): Stream // Create a property -declare export function constant(value: T): Property; -declare export function constantError(error: T): Property; -declare export function fromPromise(promise: any): Property; +export declare function constant(value: T): Property; +export declare function constantError(error: T): Property; +export declare function fromPromise(promise: any): Property; // Combine observables -declare export function combine(obss: Observable[], passiveObss: Observable[], combinator?: (...values: T[]) => U): Observable; -declare export function combine(obss: Observable[], combinator?: (...values: T[]) => U): Observable; -declare export function zip(obss: Observable[], passiveObss?: Observable[], combinator?: (...values: T[]) => U): Observable; -declare export function merge(obss: Observable[]): Observable; -declare export function concat(obss: Observable[]): Observable; -declare export function pool(): ObservablePool; -declare export function repeat(generator: (i: number) => Observable | boolean): Observable; +export declare function combine(obss: Observable[], passiveObss: Observable[], combinator?: (...values: T[]) => U): Observable; +export declare function combine(obss: Observable[], combinator?: (...values: T[]) => U): Observable; +export declare function zip(obss: Observable[], passiveObss?: Observable[], combinator?: (...values: T[]) => U): Observable; +export declare function merge(obss: Observable[]): Observable; +export declare function concat(obss: Observable[]): Observable; +export declare function pool(): ObservablePool; +export declare function repeat(generator: (i: number) => Observable | boolean): Observable; diff --git a/keytar/keytar.d.ts b/keytar/keytar.d.ts index d23e4a0d80..12dbd63316 100644 --- a/keytar/keytar.d.ts +++ b/keytar/keytar.d.ts @@ -12,7 +12,7 @@ * * @returns the string password or null on failures. */ -declare export function getPassword(service: string, account: string): string; +export declare function getPassword(service: string, account: string): string; /** * Add the password for the service and account to the keychain. @@ -23,7 +23,7 @@ declare export function getPassword(service: string, account: string): string; * * @returns true on success, false on failure. */ -declare export function addPassword(service: string, account: string, password: string): boolean; +export declare function addPassword(service: string, account: string, password: string): boolean; /** * Delete the stored password for the service and account. @@ -33,7 +33,7 @@ declare export function addPassword(service: string, account: string, password: * * @returns the string password or null on failures. */ -declare export function deletePassword(service: string, account: string): string; +export declare function deletePassword(service: string, account: string): string; /** * Replace the password for the service and account in the keychain. @@ -47,7 +47,7 @@ declare export function deletePassword(service: string, account: string): string * * @returns true on success, false on failure. */ -declare export function replacePassword(service: string, account: string, password: string): boolean; +export declare function replacePassword(service: string, account: string, password: string): boolean; /** * Find a password for the service in the keychain. @@ -56,4 +56,4 @@ declare export function replacePassword(service: string, account: string, passwo * * @returns the string password or null on failures. */ -declare export function findPassword(service: string): string; +export declare function findPassword(service: string): string; diff --git a/kue/kue.d.ts b/kue/kue.d.ts index aa0be0bab7..ed4557c9fa 100644 --- a/kue/kue.d.ts +++ b/kue/kue.d.ts @@ -12,7 +12,7 @@ import events = require('events'); import express = require('express'); import redis = require('redis'); -declare export class Queue extends events.EventEmitter { +export declare class Queue extends events.EventEmitter { name: string; id: string; promoter: any; @@ -59,7 +59,7 @@ interface Priorities { critical: number; } -declare export class Job extends events.EventEmitter { +export declare class Job extends events.EventEmitter { public id: number; public type: string; public data: any; @@ -141,8 +141,8 @@ interface TestMode { clear(): void; } -declare export var app: express.Application; -declare export var redis: Redis; -declare export var workers: Worker[]; +export declare var app: express.Application; +export declare var redis: Redis; +export declare var workers: Worker[]; -declare export function createQueue(options?: Object): Queue; +export declare function createQueue(options?: Object): Queue; diff --git a/libxmljs/libxmljs.d.ts b/libxmljs/libxmljs.d.ts index d76cdbf79e..c178680c0d 100644 --- a/libxmljs/libxmljs.d.ts +++ b/libxmljs/libxmljs.d.ts @@ -9,13 +9,13 @@ import events = require('events'); -declare export function parseXml(source: string): XMLDocument; -declare export function parseHtml(source: string): HTMLDocument; -declare export function parseXmlString(source: string): XMLDocument; -declare export function parseHtmlString(source: string): HTMLDocument; +export declare function parseXml(source: string): XMLDocument; +export declare function parseHtml(source: string): HTMLDocument; +export declare function parseXmlString(source: string): XMLDocument; +export declare function parseHtmlString(source: string): HTMLDocument; -declare export class XMLDocument { +export declare class XMLDocument { constructor(version: number, encoding: string); child(idx: number): Element; childNodes(): Element[]; @@ -32,12 +32,12 @@ declare export class XMLDocument { version(): Number; } -declare export class HTMLDocument extends XMLDocument { +export declare class HTMLDocument extends XMLDocument { } -declare export class Element { +export declare class Element { constructor(doc: XMLDocument, name: string, content?: string); name(): string; name(newName: string): void; @@ -75,7 +75,7 @@ declare export class Element { } -declare export class Attribute { +export declare class Attribute { constructor(node: Element, name: string, value: string); constructor(node: Element, name: string, value: string, ns: Namespace); name(): string; @@ -88,18 +88,18 @@ declare export class Attribute { value(): string; } -declare export class Namespace { +export declare class Namespace { constructor(node: Element, prefix: string, href: string); href(): string; prefix(): string; } -declare export class SaxParser extends events.EventEmitter { +export declare class SaxParser extends events.EventEmitter { parseString(source: string): boolean; } -declare export class SaxPushParser extends events.EventEmitter { +export declare class SaxPushParser extends events.EventEmitter { push(source: string): boolean; } diff --git a/linqsharp/linqsharp.d.ts b/linqsharp/linqsharp.d.ts index a8ba0a0124..742698ed86 100644 --- a/linqsharp/linqsharp.d.ts +++ b/linqsharp/linqsharp.d.ts @@ -12,7 +12,7 @@ * @module linqsharp */ -declare export namespace LinqSharp { +export declare namespace LinqSharp { /** * Defines methods to support the comparison of objects for equality. * diff --git a/lockfile/lockfile.d.ts b/lockfile/lockfile.d.ts index fdf9352bab..367d4a45c3 100644 --- a/lockfile/lockfile.d.ts +++ b/lockfile/lockfile.d.ts @@ -11,13 +11,13 @@ export interface Options { retryWait?: number; } -declare export function lock(path: string, opts: Options, callback: (err: Error) => void): void; -declare export function lock(path: string, callback: (err: Error) => void): void; -declare export function lockSync(path: string, opts: Options): void; +export declare function lock(path: string, opts: Options, callback: (err: Error) => void): void; +export declare function lock(path: string, callback: (err: Error) => void): void; +export declare function lockSync(path: string, opts: Options): void; -declare export function unlock(path: string, callback: (err: Error) => void): void; -declare export function unlockSync(path: string): void; +export declare function unlock(path: string, callback: (err: Error) => void): void; +export declare function unlockSync(path: string): void; -declare export function check(path: string, opts: Options, callback: (err: Error, isLocked: boolean) => void): void; -declare export function check(path: string, callback: (err: Error, isLocked: boolean) => void): void; -declare export function checkSync(path: string, opts: Options): boolean; +export declare function check(path: string, opts: Options, callback: (err: Error, isLocked: boolean) => void): void; +export declare function check(path: string, callback: (err: Error, isLocked: boolean) => void): void; +export declare function checkSync(path: string, opts: Options): boolean; diff --git a/log4js/log4js.d.ts b/log4js/log4js.d.ts index fc5521e1f1..2667624bec 100644 --- a/log4js/log4js.d.ts +++ b/log4js/log4js.d.ts @@ -13,13 +13,13 @@ import express = require('express'); * @param logger * @returns void */ -declare export function replaceConsole(logger?: Logger): void; +export declare function replaceConsole(logger?: Logger): void; /** * Restores the console * @returns void */ -declare export function restoreConsole(): void; +export declare function restoreConsole(): void; /** * Get a logger instance. Instance is cached on categoryName level. @@ -28,8 +28,8 @@ declare export function restoreConsole(): void; * @returns {Logger} instance of logger for the category * @static */ -declare export function getLogger(categoryName?: string): Logger; -declare export function getBufferedLogger(categoryName?: string): Logger; +export declare function getLogger(categoryName?: string): Logger; +export declare function getBufferedLogger(categoryName?: string): Logger; /** * Has a logger instance cached on categoryName. @@ -38,7 +38,7 @@ declare export function getBufferedLogger(categoryName?: string): Logger; * @returns {boolean} contains logger for the category * @static */ -declare export function hasLogger(categoryName: string): boolean; +export declare function hasLogger(categoryName: string): boolean; /** * Get the default logger instance. @@ -46,7 +46,7 @@ declare export function hasLogger(categoryName: string): boolean; * @returns {Logger} instance of default logger * @static */ -declare export function getDefaultLogger(): Logger; +export declare function getDefaultLogger(): Logger; /** * args are appender, then zero or more categories @@ -55,7 +55,7 @@ declare export function getDefaultLogger(): Logger; * @returns {void} * @static */ -declare export function addAppender(...appenders: any[]): void; +export declare function addAppender(...appenders: any[]): void; /** * Claer configured appenders @@ -63,7 +63,7 @@ declare export function addAppender(...appenders: any[]): void; * @returns {void} * @static */ -declare export function clearAppenders(): void; +export declare function clearAppenders(): void; /** * Shutdown all log appenders. This will first disable all writing to appenders @@ -74,13 +74,13 @@ declare export function clearAppenders(): void; * as the first argument. * @returns {void} */ -declare export function shutdown(cb: Function): void; +export declare function shutdown(cb: Function): void; -declare export function configure(filename: string, options?: any): void; -declare export function configure(config: IConfig, options?: any): void; +export declare function configure(filename: string, options?: any): void; +export declare function configure(config: IConfig, options?: any): void; -declare export function setGlobalLogLevel(level: string): void; -declare export function setGlobalLogLevel(level: Level): void; +export declare function setGlobalLogLevel(level: string): void; +export declare function setGlobalLogLevel(level: Level): void; /** @@ -90,12 +90,12 @@ declare export function setGlobalLogLevel(level: Level): void; * @returns {express.Handler} Instance of middleware. * @static */ -declare export function connectLogger(logger: Logger, options: { format?: string; level?: string; nolog?: any; }): express.Handler; -declare export function connectLogger(logger: Logger, options: { format?: string; level?: Level; nolog?: any; }): express.Handler; +export declare function connectLogger(logger: Logger, options: { format?: string; level?: string; nolog?: any; }): express.Handler; +export declare function connectLogger(logger: Logger, options: { format?: string; level?: Level; nolog?: any; }): express.Handler; -declare export var appenders: any; -declare export var levels: { +export declare var appenders: any; +export declare var levels: { ALL: Level; TRACE: Level; DEBUG: Level; diff --git a/lolex/lolex.d.ts b/lolex/lolex.d.ts index c54e613f7a..27052b54a5 100644 --- a/lolex/lolex.d.ts +++ b/lolex/lolex.d.ts @@ -17,7 +17,7 @@ export interface Clock { uninstall(): void; } -declare export function createClock(now?: number): Clock; +export declare function createClock(now?: number): Clock; -declare export function install(now?: number, toFake?: string[]): Clock; -declare export function install(context?: any, now?: number, toFake?: string[]): Clock; +export declare function install(now?: number, toFake?: string[]): Clock; +export declare function install(context?: any, now?: number, toFake?: string[]): Clock; diff --git a/luaparse/luaparse.d.ts b/luaparse/luaparse.d.ts index e53dd979ba..06e7d8a468 100644 --- a/luaparse/luaparse.d.ts +++ b/luaparse/luaparse.d.ts @@ -4,4 +4,4 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare export function parse(code: string, options?: Object): Object; +export declare function parse(code: string, options?: Object): Object; diff --git a/magic-number/magic-number.d.ts b/magic-number/magic-number.d.ts index dcde25f919..4488c9827e 100644 --- a/magic-number/magic-number.d.ts +++ b/magic-number/magic-number.d.ts @@ -4,4 +4,4 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare export function detectFile(file: string): string; +export declare function detectFile(file: string): string; diff --git a/mandrill-api/mandrill-api.d.ts b/mandrill-api/mandrill-api.d.ts index ca94a97b50..df179f1434 100644 --- a/mandrill-api/mandrill-api.d.ts +++ b/mandrill-api/mandrill-api.d.ts @@ -21,7 +21,7 @@ export interface IErrorCallback { (err: Error): void; } -declare export class Mandrill { +export declare class Mandrill { apikey: string; debug: boolean; templates: Templates; @@ -44,7 +44,7 @@ declare export class Mandrill { call(uri: string, params: any, onresult?: ICallback, onerror?: ICallback): void; } -declare export class Templates { +export declare class Templates { constructor(master: Mandrill); /** @@ -144,7 +144,7 @@ declare export class Templates { render(params: any, onsuccess?: ICallback, onerror?: ICallback): void; } -declare export class Exports { +export declare class Exports { constructor(master: Mandrill); /** @@ -215,7 +215,7 @@ declare export class Exports { activity(params: any, onsuccess?: ICallback, onerror?: ICallback): void; } -declare export class Users { +export declare class Users { constructor(master: Mandrill); /** @@ -254,7 +254,7 @@ declare export class Users { } -declare export class Rejects { +export declare class Rejects { constructor(master: Mandrill); /** @@ -300,7 +300,7 @@ declare export class Rejects { } -declare export class Inbound { +export declare class Inbound { constructor(master: Mandrill); /** @@ -402,7 +402,7 @@ declare export class Inbound { } -declare export class Tags { +export declare class Tags { constructor(master: Mandrill); /** @@ -453,7 +453,7 @@ declare export class Tags { allTimeSeries(params: any, onsuccess?: ICallback, onerror?: ICallback): void; } -declare export class Messages { +export declare class Messages { constructor(master: Mandrill); /** @@ -705,7 +705,7 @@ declare export class Messages { } -declare export class Whitelists { +export declare class Whitelists { constructor(master: Mandrill); /** @@ -741,7 +741,7 @@ declare export class Whitelists { } -declare export class Ips { +export declare class Ips { constructor(master: Mandrill); /** @@ -880,11 +880,11 @@ declare export class Ips { setCustomDns(params: any, onsuccess?: ICallback, onerror?: ICallback): void; } -declare export class Internal { +export declare class Internal { constructor(master: Mandrill); } -declare export class Subaccounts { +export declare class Subaccounts { constructor(master: Mandrill); /** @@ -959,7 +959,7 @@ declare export class Subaccounts { resume(params: any, onsuccess?: ICallback, onerror?: ICallback): void; } -declare export class Urls { +export declare class Urls { constructor(master: Mandrill); /** @@ -1015,7 +1015,7 @@ declare export class Urls { checkTrackingDomain(params: any, onsuccess?: ICallback, onerror?: ICallback): void; } -declare export class Webhooks { +export declare class Webhooks { constructor(master: Mandrill); /** @@ -1071,7 +1071,7 @@ declare export class Webhooks { } -declare export class Senders { +export declare class Senders { constructor(master: Mandrill); /** @@ -1143,7 +1143,7 @@ declare export class Senders { timeSeries(params: any, onsuccess?: ICallback, onerror?: ICallback): void; } -declare export class Metadata { +export declare class Metadata { constructor(master: Mandrill); /** * Get the list of custom metadata fields indexed for the account. diff --git a/memory-cache/memory-cache.d.ts b/memory-cache/memory-cache.d.ts index 238c7f8b9e..29c0c21900 100644 --- a/memory-cache/memory-cache.d.ts +++ b/memory-cache/memory-cache.d.ts @@ -6,15 +6,15 @@ // Imported from: https://github.com/soywiz/typescript-node-definitions/memory-cache.d.ts -declare export function put(key: any, value: any, time?: number, timeoutCallback?: (key: any) => void): void; -declare export function get(key: any): any; -declare export function del(key: any): void; -declare export function clear(): void; +export declare function put(key: any, value: any, time?: number, timeoutCallback?: (key: any) => void): void; +export declare function get(key: any): any; +export declare function del(key: any): void; +export declare function clear(): void; -declare export function size(): number; -declare export function memsize(): number; +export declare function size(): number; +export declare function memsize(): number; -declare export function debug(bool: boolean): void; -declare export function hits(): number; -declare export function misses(): number; -declare export function keys(): any; +export declare function debug(bool: boolean): void; +export declare function hits(): number; +export declare function misses(): number; +export declare function keys(): any; diff --git a/mime/mime.d.ts b/mime/mime.d.ts index 545373e935..73a094492b 100644 --- a/mime/mime.d.ts +++ b/mime/mime.d.ts @@ -6,14 +6,14 @@ // Imported from: https://github.com/soywiz/typescript-node-definitions/mime.d.ts -declare export function lookup(path: string): string; -declare export function extension(mime: string): string; -declare export function load(filepath: string): void; -declare export function define(mimes: Object): void; +export declare function lookup(path: string): string; +export declare function extension(mime: string): string; +export declare function load(filepath: string): void; +export declare function define(mimes: Object): void; interface Charsets { lookup(mime: string): string; } -declare export var charsets: Charsets; -declare export var default_type: string; +export declare var charsets: Charsets; +export declare var default_type: string; diff --git a/mmmagic/mmmagic.d.ts b/mmmagic/mmmagic.d.ts index 6fe486141e..e950029209 100644 --- a/mmmagic/mmmagic.d.ts +++ b/mmmagic/mmmagic.d.ts @@ -7,29 +7,29 @@ export type bitmask = number; -declare export class Magic { +export declare class Magic { constructor(magicPath?: string, mask?: bitmask); constructor(mask?: bitmask); detectFile(path: string, callback: (err: Error, result: string) => void): void; detect(data: Buffer, callback: (err: Error, result: string) => void): void; } -declare export var MAGIC_NONE: bitmask; // no flags set -declare export var MAGIC_DEBUG: bitmask; // turn on debugging -declare export var MAGIC_SYMLINK: bitmask; // follow symlinks (default for non-Windows) -declare export var MAGIC_DEVICES: bitmask; // look at the contents of devices -declare export var MAGIC_MIME_TYPE: bitmask; // return the MIME type -declare export var MAGIC_CONTINUE: bitmask; // return all matches (returned as an array of strings) -declare export var MAGIC_CHECK: bitmask; // print warnings to stderr -declare export var MAGIC_PRESERVE_ATIME: bitmask; // restore access time on exit -declare export var MAGIC_RAW: bitmask; // don't translate unprintable chars -declare export var MAGIC_MIME_ENCODING: bitmask; // return the MIME encoding -declare export var MAGIC_MIME: bitmask; // (export var MAGIC_MIME_TYPE | export var MAGIC_MIME_ENCODING) -declare export var MAGIC_APPLE: bitmask; // return the Apple creator and type -declare export var MAGIC_NO_CHECK_TAR: bitmask; // don't check for tar files -declare export var MAGIC_NO_CHECK_SOFT: bitmask; // don't check magic entries -declare export var MAGIC_NO_CHECK_APPTYPE: bitmask; // don't check application type -declare export var MAGIC_NO_CHECK_ELF: bitmask; // don't check for elf details -declare export var MAGIC_NO_CHECK_TEXT: bitmask; // don't check for text files -declare export var MAGIC_NO_CHECK_CDF: bitmask; // don't check for cdf files -declare export var MAGIC_NO_CHECK_TOKENS: bitmask; // don't check tokens -declare export var MAGIC_NO_CHECK_ENCODING: bitmask +export declare var MAGIC_NONE: bitmask; // no flags set +export declare var MAGIC_DEBUG: bitmask; // turn on debugging +export declare var MAGIC_SYMLINK: bitmask; // follow symlinks (default for non-Windows) +export declare var MAGIC_DEVICES: bitmask; // look at the contents of devices +export declare var MAGIC_MIME_TYPE: bitmask; // return the MIME type +export declare var MAGIC_CONTINUE: bitmask; // return all matches (returned as an array of strings) +export declare var MAGIC_CHECK: bitmask; // print warnings to stderr +export declare var MAGIC_PRESERVE_ATIME: bitmask; // restore access time on exit +export declare var MAGIC_RAW: bitmask; // don't translate unprintable chars +export declare var MAGIC_MIME_ENCODING: bitmask; // return the MIME encoding +export declare var MAGIC_MIME: bitmask; // (export var MAGIC_MIME_TYPE | export var MAGIC_MIME_ENCODING) +export declare var MAGIC_APPLE: bitmask; // return the Apple creator and type +export declare var MAGIC_NO_CHECK_TAR: bitmask; // don't check for tar files +export declare var MAGIC_NO_CHECK_SOFT: bitmask; // don't check magic entries +export declare var MAGIC_NO_CHECK_APPTYPE: bitmask; // don't check application type +export declare var MAGIC_NO_CHECK_ELF: bitmask; // don't check for elf details +export declare var MAGIC_NO_CHECK_TEXT: bitmask; // don't check for text files +export declare var MAGIC_NO_CHECK_CDF: bitmask; // don't check for cdf files +export declare var MAGIC_NO_CHECK_TOKENS: bitmask; // don't check tokens +export declare var MAGIC_NO_CHECK_ENCODING: bitmask diff --git a/mobservable-react/mobservable-react.d.ts b/mobservable-react/mobservable-react.d.ts index 43afb98261..6056961ade 100644 --- a/mobservable-react/mobservable-react.d.ts +++ b/mobservable-react/mobservable-react.d.ts @@ -9,7 +9,7 @@ /** * Turns a React component or stateless render function into a reactive component. */ -declare export function reactiveComponent

(clazz: React.ClassicComponentClass

): React.ClassicComponentClass

; -declare export function reactiveComponent>(target: TFunction): void; // decorator signature -declare export function reactiveComponent

(clazz: React.ComponentClass

): React.ComponentClass

; -declare export function reactiveComponent

(renderFunction: (props: P) => React.ReactElement): React.ClassicComponentClass

; +export declare function reactiveComponent

(clazz: React.ClassicComponentClass

): React.ClassicComponentClass

; +export declare function reactiveComponent>(target: TFunction): void; // decorator signature +export declare function reactiveComponent

(clazz: React.ComponentClass

): React.ComponentClass

; +export declare function reactiveComponent

(renderFunction: (props: P) => React.ReactElement): React.ClassicComponentClass

; diff --git a/mockery/mockery.d.ts b/mockery/mockery.d.ts index c6ceeac22d..e9519acea1 100644 --- a/mockery/mockery.d.ts +++ b/mockery/mockery.d.ts @@ -11,22 +11,22 @@ interface MockeryEnableArgs { warnOnUnregistered?: boolean; } -declare export function enable(args?: MockeryEnableArgs): void; -declare export function disable(): void; +export declare function enable(args?: MockeryEnableArgs): void; +export declare function disable(): void; -declare export function registerMock(name: string, mock: any): void; -declare export function deregisterMock(name: string): void; +export declare function registerMock(name: string, mock: any): void; +export declare function deregisterMock(name: string): void; -declare export function registerSubstitute(name: string, substitute: string): void; -declare export function deregisterSubstitute(name: string): void; +export declare function registerSubstitute(name: string, substitute: string): void; +export declare function deregisterSubstitute(name: string): void; -declare export function registerAllowable(name: string, unhook?: boolean): void; -declare export function deregisterAllowable(name: string): void; +export declare function registerAllowable(name: string, unhook?: boolean): void; +export declare function deregisterAllowable(name: string): void; -declare export function registerAllowables(names: string[]): void; -declare export function deregisterAllowables(names: string[]): void; +export declare function registerAllowables(names: string[]): void; +export declare function deregisterAllowables(names: string[]): void; -declare export function deregisterAll(): void; -declare export function resetCache(): void; -declare export function warnOnUnregistered(value: boolean): void; -declare export function warnOnReplace(value: boolean): void; +export declare function deregisterAll(): void; +export declare function resetCache(): void; +export declare function warnOnUnregistered(value: boolean): void; +export declare function warnOnReplace(value: boolean): void; diff --git a/mongodb/mongodb-1.4.9.d.ts b/mongodb/mongodb-1.4.9.d.ts index 5a8c54722d..eff5a4dd22 100644 --- a/mongodb/mongodb-1.4.9.d.ts +++ b/mongodb/mongodb-1.4.9.d.ts @@ -10,7 +10,7 @@ // Class documentation : http://mongodb.github.io/node-mongodb-native/api-generated/mongoclient.html -declare export class MongoClient { +export declare class MongoClient { constructor(serverConfig: any, options: any); static connect(uri: string, callback?: (err: Error, db: Db) => void): void; @@ -18,14 +18,14 @@ declare export class MongoClient { } // Class documentation : http://mongodb.github.io/node-mongodb-native/api-generated/server.html -declare export class Server { +export declare class Server { constructor(host: string, port: number, opts?: ServerOptions); public connect(): any; } // Class documentation : http://mongodb.github.io/node-mongodb-native/api-generated/db.html -declare export class Db { +export declare class Db { constructor(databaseName: string, serverConfig: Server, dbOptions?: DbCreateOptions); public db(dbName: string): Db; @@ -108,7 +108,7 @@ declare export class Db { // Class documentation : http://mongodb.github.io/node-mongodb-native/api-bson-generated/objectid.html // Last update: doc. version 1.3.13 (28.08.2013) -declare export class ObjectID { +export declare class ObjectID { constructor(s?: string); // Returns the ObjectID id as a 24 byte hex string representation @@ -138,7 +138,7 @@ declare export class ObjectID { } // Class documentation : http://mongodb.github.io/node-mongodb-native/api-bson-generated/binary.html -declare export class Binary { +export declare class Binary { constructor(buffer: Buffer, subType?: number); // Updates this binary with byte_value @@ -234,7 +234,7 @@ export interface DbCreateOptions { promoteLongs?: boolean; } -declare export class ReadPreference { +export declare class ReadPreference { public static PRIMARY: string; public static PRIMARY_PREFERRED: string; public static SECONDARY: string; @@ -462,7 +462,7 @@ export interface IndexOptions { // Class documentation : http://mongodb.github.io/node-mongodb-native/api-generated/cursor.html // Last update: doc. version 1.3.13 (29.08.2013) -declare export class Cursor { +export declare class Cursor { // INTERNAL TYPE // constructor (db: Db, collection: Collection, selector, fields, skip, limit, sort, hint, explain, snapshot, timeout, tailable, batchSize, slaveOk, raw, read, returnKey, maxScan, min, max, showDiskLoc, comment, awaitdata, numberOfRetries, dbName, tailableRetryInterval, exhaust, partial); // constructor(db: Db, collection: Collection, selector, fields, options); @@ -497,7 +497,7 @@ declare export class Cursor { // Class documentation : http://mongodb.github.io/node-mongodb-native/api-generated/cursorstream.html // Last update: doc. version 1.3.13 (29.08.2013) -declare export class CursorStream { +export declare class CursorStream { constructor(cursor: Cursor); public pause(): any; diff --git a/mongodb/mongodb.d.ts b/mongodb/mongodb.d.ts index b4c8bca2f9..8b342f1487 100644 --- a/mongodb/mongodb.d.ts +++ b/mongodb/mongodb.d.ts @@ -12,7 +12,7 @@ import {EventEmitter} from 'events'; // Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/MongoClient.html -declare export class MongoClient { +export declare class MongoClient { constructor(); static connect(uri: string, callback: MongoCallback): void; @@ -29,7 +29,7 @@ export interface MongoCallback { } // http://mongodb.github.io/node-mongodb-native/2.1/api/MongoError.html -declare export class MongoError extends Error { +export declare class MongoError extends Error { constructor(message: string); static create(options: Object): MongoError; } @@ -72,7 +72,7 @@ export interface DbCreateOptions { } // See http://mongodb.github.io/node-mongodb-native/2.1/api/ReadPreference.html -declare export class ReadPreference { +export declare class ReadPreference { constructor(mode: string, tags: Object); mode: string; tags: any; @@ -151,7 +151,7 @@ export interface MongosOptions { } // Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html -declare export class Db extends EventEmitter { +export declare class Db extends EventEmitter { constructor(databaseName: string, serverConfig: Server | ReplSet | Mongos, options?: DbCreateOptions); serverConfig: Server | ReplSet | Mongos; @@ -242,21 +242,21 @@ declare export class Db extends EventEmitter { } // Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/Server.html -declare export class Server extends EventEmitter { +export declare class Server extends EventEmitter { constructor(host: string, port: number, options?: ServerOptions); connections(): Array; } // Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html -declare export class ReplSet extends EventEmitter { +export declare class ReplSet extends EventEmitter { constructor(servers: Array, options?: ReplSetOptions); connections(): Array; } // Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html -declare export class Mongos extends EventEmitter { +export declare class Mongos extends EventEmitter { constructor(servers: Array, options?: MongosOptions); connections(): Array; @@ -394,7 +394,7 @@ export interface FSyncOptions { } // Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/ObjectID.html -declare export class ObjectID { +export declare class ObjectID { constructor(s?: string | number); generationTime: number; @@ -420,7 +420,7 @@ declare export class ObjectID { } // Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/Binary.html -declare export class Binary { +export declare class Binary { constructor(buffer: Buffer, subType?: number); static SUBTYPE_BYTE_ARRAY: number; @@ -443,14 +443,14 @@ declare export class Binary { write(buffer: Buffer | string, offset: number): void; } //http://mongodb.github.io/node-mongodb-native/2.1/api/Double.html -declare export class Double { +export declare class Double { constructor(value: number); valueOf(): number; } //http://mongodb.github.io/node-mongodb-native/2.1/api/Long.html -declare export class Long { +export declare class Long { constructor(low: number, high: number); static MAX_VALUE: Long; @@ -498,13 +498,13 @@ declare export class Long { } //http://mongodb.github.io/node-mongodb-native/2.1/api/MaxKey.html -declare export class MaxKey { } +export declare class MaxKey { } //http://mongodb.github.io/node-mongodb-native/2.1/api/MinKey.html -declare export class MinKey { } +export declare class MinKey { } //http://mongodb.github.io/node-mongodb-native/2.1/api/Timestamp.html -declare export class Timestamp { +export declare class Timestamp { constructor(low: number, high: number); static MAX_VALUE: Timestamp; @@ -854,7 +854,7 @@ export interface GeoNearOptions { } //http://mongodb.github.io/node-mongodb-native/2.1/api/Code.html -declare export class Code { +export declare class Code { constructor(code: string | Function, scope?: Object) code: string | Function; scope: any; diff --git a/mongoose-deep-populate/mongoose-deep-populate.d.ts b/mongoose-deep-populate/mongoose-deep-populate.d.ts index b1f75652f7..345c15c265 100644 --- a/mongoose-deep-populate/mongoose-deep-populate.d.ts +++ b/mongoose-deep-populate/mongoose-deep-populate.d.ts @@ -8,4 +8,4 @@ import { Mongoose, Schema } from 'mongoose'; -declare export default function(mognoose: Mongoose): (schema: Schema, options: Object) => void; +export declare default function(mognoose: Mongoose): (schema: Schema, options: Object) => void; diff --git a/mongoose/mongoose.d.ts b/mongoose/mongoose.d.ts index 08bfbb5531..d1a1fd2a73 100644 --- a/mongoose/mongoose.d.ts +++ b/mongoose/mongoose.d.ts @@ -24,7 +24,7 @@ declare var mquery: any; declare var version: string; declare var connection: Connection; -declare export class Mongoose { +export declare class Mongoose { connect(uri: string, options?: ConnectOpenOptionsBase, callback?: (err: any) => void): Mongoose; createConnection(): Connection; createConnection(uri: string, options?: Object): Connection; @@ -115,12 +115,12 @@ export interface Collection { } -declare export class SchemaType { } -declare export class VirtualType { +export declare class SchemaType { } +export declare class VirtualType { get(fn: Function): VirtualType; set(fn: Function): VirtualType; } -declare export module Types { +export declare module Types { export class ObjectId { constructor(id?: string | number); toHexString(): string; @@ -132,7 +132,7 @@ declare export module Types { } } -declare export class Schema { +export declare class Schema { static Types: { String: String; ObjectId: Types.ObjectId; @@ -289,7 +289,7 @@ export interface MapReduceResult { value: Val; } -declare export class Query { +export declare class Query { exec(callback?: (err: any, res: T) => void): Promise; exec(operation: string, callback?: (err: any, res: T) => void): Promise; exec(operation: Function, callback?: (err: any, res: T) => void): Promise; @@ -457,7 +457,7 @@ export interface Document { } -declare export class Aggregate { +export declare class Aggregate { constructor(...options: Object[]); append(...options: Object[]): Aggregate; @@ -477,7 +477,7 @@ declare export class Aggregate { read(pref: string, ...tags: Object[]): Aggregate; } -declare export class Promise { +export declare class Promise { constructor(fn?: (err: any, result: T) => void); then(onFulFill: (result: T) => void, onReject?: (err: any) => void): Promise; diff --git a/msnodesql/msnodesql.d.ts b/msnodesql/msnodesql.d.ts index c821dbb51f..d150bd4cfb 100644 --- a/msnodesql/msnodesql.d.ts +++ b/msnodesql/msnodesql.d.ts @@ -9,20 +9,20 @@ import events = require('events'); -declare export function open(connectionString: string, callback?: OpenCallback): Connection; +export declare function open(connectionString: string, callback?: OpenCallback): Connection; -declare export function query(connectionString: string, query: string): StreamEvents; -declare export function query(connectionString: string, query: string, callback: QueryCallback): StreamEvents; -declare export function query(connectionString: string, query: string, params: any[]): StreamEvents; -declare export function query(connectionString: string, query: string, params: any[], callback: QueryCallback): StreamEvents; +export declare function query(connectionString: string, query: string): StreamEvents; +export declare function query(connectionString: string, query: string, callback: QueryCallback): StreamEvents; +export declare function query(connectionString: string, query: string, params: any[]): StreamEvents; +export declare function query(connectionString: string, query: string, params: any[], callback: QueryCallback): StreamEvents; -declare export function query(connectionString: string, query: string, callback: QueryCallback): StreamEvents; -declare export function query(connectionString: string, query: string, params: any[], callback: QueryCallback): StreamEvents; +export declare function query(connectionString: string, query: string, callback: QueryCallback): StreamEvents; +export declare function query(connectionString: string, query: string, params: any[], callback: QueryCallback): StreamEvents; -declare export function queryRaw(connectionString: string, query: string): StreamEvents; -declare export function queryRaw(connectionString: string, query: string, callback: QueryRawCallback): StreamEvents; -declare export function queryRaw(connectionString: string, query: string, params: any[]): StreamEvents; -declare export function queryRaw(connectionString: string, query: string, params: any[], callback: QueryRawCallback): StreamEvents; +export declare function queryRaw(connectionString: string, query: string): StreamEvents; +export declare function queryRaw(connectionString: string, query: string, callback: QueryRawCallback): StreamEvents; +export declare function queryRaw(connectionString: string, query: string, params: any[]): StreamEvents; +export declare function queryRaw(connectionString: string, query: string, params: any[], callback: QueryRawCallback): StreamEvents; interface OpenCallback { (err?: Error, connection?: Connection): void; diff --git a/mssql/mssql.d.ts b/mssql/mssql.d.ts index 6729d81ff6..f4247f8093 100644 --- a/mssql/mssql.d.ts +++ b/mssql/mssql.d.ts @@ -20,40 +20,40 @@ type sqlTypeFactoryWithScale = (scale?: number) => sqlTypeWithScale; type sqlTypeFactoryWithPrecisionScale = (precision?: number, scale?: number) => sqlTypeWithPrecisionScale; type sqlTypeFactoryWithTvpType = (tvpType: any) => sqlTypeWithTvpType; -declare export var VarChar: sqlTypeFactoryWithLength; -declare export var NVarChar: sqlTypeFactoryWithLength; -declare export var Text: sqlTypeFactoryWithNoParams; -declare export var Int: sqlTypeFactoryWithNoParams; -declare export var BigInt: sqlTypeFactoryWithNoParams; -declare export var TinyInt: sqlTypeFactoryWithNoParams; -declare export var SmallInt: sqlTypeFactoryWithNoParams; -declare export var Bit: sqlTypeFactoryWithNoParams; -declare export var Float: sqlTypeFactoryWithNoParams; -declare export var Numeric: sqlTypeFactoryWithPrecisionScale; -declare export var Decimal: sqlTypeFactoryWithPrecisionScale; -declare export var Real: sqlTypeFactoryWithNoParams; -declare export var Date: sqlTypeFactoryWithNoParams; -declare export var DateTime: sqlTypeFactoryWithNoParams; -declare export var DateTime2: sqlTypeFactoryWithScale; -declare export var DateTimeOffset: sqlTypeFactoryWithScale; -declare export var SmallDateTime: sqlTypeFactoryWithNoParams; -declare export var Time: sqlTypeFactoryWithScale; -declare export var UniqueIdentifier: sqlTypeFactoryWithNoParams; -declare export var SmallMoney: sqlTypeFactoryWithNoParams; -declare export var Money: sqlTypeFactoryWithNoParams; -declare export var Binary: sqlTypeFactoryWithNoParams; -declare export var VarBinary: sqlTypeFactoryWithLength; -declare export var Image: sqlTypeFactoryWithNoParams; -declare export var Xml: sqlTypeFactoryWithNoParams; -declare export var Char: sqlTypeFactoryWithLength; -declare export var NChar: sqlTypeFactoryWithLength; -declare export var NText: sqlTypeFactoryWithNoParams; -declare export var TVP: sqlTypeFactoryWithTvpType; -declare export var UDT: sqlTypeFactoryWithNoParams; -declare export var Geography: sqlTypeFactoryWithNoParams; -declare export var Geometry: sqlTypeFactoryWithNoParams; +export declare var VarChar: sqlTypeFactoryWithLength; +export declare var NVarChar: sqlTypeFactoryWithLength; +export declare var Text: sqlTypeFactoryWithNoParams; +export declare var Int: sqlTypeFactoryWithNoParams; +export declare var BigInt: sqlTypeFactoryWithNoParams; +export declare var TinyInt: sqlTypeFactoryWithNoParams; +export declare var SmallInt: sqlTypeFactoryWithNoParams; +export declare var Bit: sqlTypeFactoryWithNoParams; +export declare var Float: sqlTypeFactoryWithNoParams; +export declare var Numeric: sqlTypeFactoryWithPrecisionScale; +export declare var Decimal: sqlTypeFactoryWithPrecisionScale; +export declare var Real: sqlTypeFactoryWithNoParams; +export declare var Date: sqlTypeFactoryWithNoParams; +export declare var DateTime: sqlTypeFactoryWithNoParams; +export declare var DateTime2: sqlTypeFactoryWithScale; +export declare var DateTimeOffset: sqlTypeFactoryWithScale; +export declare var SmallDateTime: sqlTypeFactoryWithNoParams; +export declare var Time: sqlTypeFactoryWithScale; +export declare var UniqueIdentifier: sqlTypeFactoryWithNoParams; +export declare var SmallMoney: sqlTypeFactoryWithNoParams; +export declare var Money: sqlTypeFactoryWithNoParams; +export declare var Binary: sqlTypeFactoryWithNoParams; +export declare var VarBinary: sqlTypeFactoryWithLength; +export declare var Image: sqlTypeFactoryWithNoParams; +export declare var Xml: sqlTypeFactoryWithNoParams; +export declare var Char: sqlTypeFactoryWithLength; +export declare var NChar: sqlTypeFactoryWithLength; +export declare var NText: sqlTypeFactoryWithNoParams; +export declare var TVP: sqlTypeFactoryWithTvpType; +export declare var UDT: sqlTypeFactoryWithNoParams; +export declare var Geography: sqlTypeFactoryWithNoParams; +export declare var Geometry: sqlTypeFactoryWithNoParams; -declare export var TYPES: { +export declare var TYPES: { VarChar: sqlTypeFactoryWithLength; NVarChar: sqlTypeFactoryWithLength; Text: sqlTypeFactoryWithNoParams; @@ -88,23 +88,23 @@ declare export var TYPES: { Geometry: sqlTypeFactoryWithNoParams; }; -declare export var MAX: number; -declare export var fix: boolean; -declare export var Promise: any; +export declare var MAX: number; +export declare var fix: boolean; +export declare var Promise: any; interface IMap extends Array<{ js: any, sql: any }> { register(jstype: any, sql: any): void; } -declare export var map: IMap; +export declare var map: IMap; -declare export var DRIVERS: string[]; +export declare var DRIVERS: string[]; type recordSet = any; type IIsolationLevel = number; -declare export var ISOLATION_LEVEL: { +export declare var ISOLATION_LEVEL: { READ_UNCOMMITTED: IIsolationLevel READ_COMMITTED: IIsolationLevel REPEATABLE_READ: IIsolationLevel @@ -123,7 +123,7 @@ export interface IPool { idleTimeoutMillis: number; } -declare export var pool: IPool; +export declare var pool: IPool; export interface config { driver?: string; @@ -140,7 +140,7 @@ export interface config { pool?: IPool; } -declare export class Connection extends events.EventEmitter { +export declare class Connection extends events.EventEmitter { public connected: boolean; public connecting: boolean; public driver: string; @@ -151,7 +151,7 @@ declare export class Connection extends events.EventEmitter { public close(callback: (err: any) => void): void; } -declare export class ConnectionError implements Error { +export declare class ConnectionError implements Error { constructor(message: string, code?: any) public name: string; public message: string; @@ -166,7 +166,7 @@ declare class rows { public add(...row: any[]): void; } -declare export class Table { +export declare class Table { public create: boolean; public columns: columns; public rows: rows; @@ -186,7 +186,7 @@ interface IRequestParameters { } } -declare export class Request extends events.EventEmitter { +export declare class Request extends events.EventEmitter { public connection: Connection; public transaction: Transaction; public pstatement: PreparedStatement; @@ -217,14 +217,14 @@ declare export class Request extends events.EventEmitter { public cancel(): void; } -declare export class RequestError implements Error { +export declare class RequestError implements Error { constructor(message: string, code?: any) public name: string; public message: string; public code: string; } -declare export class Transaction extends events.EventEmitter { +export declare class Transaction extends events.EventEmitter { public connection: Connection; public isolationLevel: IIsolationLevel; public constructor(connection?: Connection); @@ -236,14 +236,14 @@ declare export class Transaction extends events.EventEmitter { public rollback(callback: (err?: any) => void): void; } -declare export class TransactionError implements Error { +export declare class TransactionError implements Error { constructor(message: string, code?: any) public name: string; public message: string; public code: string; } -declare export class PreparedStatement extends events.EventEmitter { +export declare class PreparedStatement extends events.EventEmitter { public connection: Connection; public transaction: Transaction; public prepared: boolean; @@ -264,7 +264,7 @@ declare export class PreparedStatement extends events.EventEmitter { public unprepare(callback: (err?: any) => void): void; } -declare export class PreparedStatementError implements Error { +export declare class PreparedStatementError implements Error { constructor(message: string, code?: any) public name: string; public message: string; diff --git a/mu2/mu2.d.ts b/mu2/mu2.d.ts index ddeb39a044..33eefb3281 100644 --- a/mu2/mu2.d.ts +++ b/mu2/mu2.d.ts @@ -8,21 +8,21 @@ /// -declare export var root: string; +export declare var root: string; -declare export function compileAndRender(templateName: string, view: any): NodeJS.ReadableStream; +export declare function compileAndRender(templateName: string, view: any): NodeJS.ReadableStream; -declare export function compile(filename: string, callback: (err: Error, parsed: IParsed) => void): void; +export declare function compile(filename: string, callback: (err: Error, parsed: IParsed) => void): void; -declare export function compileText(name: string, template: string, callback: (err: Error, parsed: IParsed) => void): void; -declare export function compileText(name: string, template: string): IParsed; -declare export function compileText(template: string): IParsed; +export declare function compileText(name: string, template: string, callback: (err: Error, parsed: IParsed) => void): void; +export declare function compileText(name: string, template: string): IParsed; +export declare function compileText(template: string): IParsed; -declare export function render(filenameOrParsed: string, view: any): NodeJS.ReadableStream; -declare export function render(filenameOrParsed: IParsed, view: any): NodeJS.ReadableStream; +export declare function render(filenameOrParsed: string, view: any): NodeJS.ReadableStream; +export declare function render(filenameOrParsed: IParsed, view: any): NodeJS.ReadableStream; -declare export function renderText(template: string, view: any, partials?: any): NodeJS.ReadableStream; +export declare function renderText(template: string, view: any, partials?: any): NodeJS.ReadableStream; -declare export function clearCache(templateName?: string): void; +export declare function clearCache(templateName?: string): void; export interface IParsed { } diff --git a/multiparty/multiparty.d.ts b/multiparty/multiparty.d.ts index 0929c87530..dcdc493aa2 100644 --- a/multiparty/multiparty.d.ts +++ b/multiparty/multiparty.d.ts @@ -10,7 +10,7 @@ import http = require('http'); import events = require('events'); import stream = require('stream'); -declare export class Form extends events.EventEmitter { +export declare class Form extends events.EventEmitter { constructor(options?: FormOptions); /** * Parses an incoming node.js request containing form data. diff --git a/nanoajax/nanoajax.d.ts b/nanoajax/nanoajax.d.ts index 9e12b7d6c0..a94f07203b 100644 --- a/nanoajax/nanoajax.d.ts +++ b/nanoajax/nanoajax.d.ts @@ -16,4 +16,4 @@ interface Callback { (statusCode: number, response: string, request: XMLHttpRequest): any } -declare export function ajax(params: RequestParameters, callback: Callback): XMLHttpRequest +export declare function ajax(params: RequestParameters, callback: Callback): XMLHttpRequest diff --git a/nconf/nconf.d.ts b/nconf/nconf.d.ts index 05b94ac71d..16d0dd9788 100644 --- a/nconf/nconf.d.ts +++ b/nconf/nconf.d.ts @@ -6,40 +6,40 @@ // Imported from: https://github.com/soywiz/typescript-node-definitions/nconf.d.ts -declare export var version: number; -declare export var stores: any; -declare export var sources: any[]; +export declare var version: number; +export declare var stores: any; +export declare var sources: any[]; -declare export function clear(key: string, callback?: ICallbackFunction): any; -declare export function get(key: string, callback?: ICallbackFunction): any; -declare export function merge(key: string, value: any, callback?: ICallbackFunction): any; -declare export function set(key: string, value: any, callback?: ICallbackFunction): any; -declare export function reset(callback?: ICallbackFunction): any; +export declare function clear(key: string, callback?: ICallbackFunction): any; +export declare function get(key: string, callback?: ICallbackFunction): any; +export declare function merge(key: string, value: any, callback?: ICallbackFunction): any; +export declare function set(key: string, value: any, callback?: ICallbackFunction): any; +export declare function reset(callback?: ICallbackFunction): any; -declare export function load(callback?: ICallbackFunction): any; -declare export function mergeSources(data: any): void; -declare export function loadSources(): any; -declare export function save(value: any, callback?: ICallbackFunction): any; +export declare function load(callback?: ICallbackFunction): any; +export declare function mergeSources(data: any): void; +export declare function loadSources(): any; +export declare function save(value: any, callback?: ICallbackFunction): any; -declare export function add(name: string, options?: IOptions): Provider; -declare export function argv(options?: IOptions): Provider; -declare export function env(options?: IOptions): Provider; -declare export function file(name: string, options?: IFileOptions): Provider; -declare export function file(name: string, filename: string): Provider; -declare export function file(options: IFileOptions): Provider; -declare export function use(name: string, options?: IOptions): Provider; -declare export function defaults(options?: IOptions): Provider; -declare export function init(options?: IOptions): void; -declare export function overrides(options?: IOptions): Provider; -declare export function remove(name: string): void; -declare export function create(name: string, options: IOptions): IStore; +export declare function add(name: string, options?: IOptions): Provider; +export declare function argv(options?: IOptions): Provider; +export declare function env(options?: IOptions): Provider; +export declare function file(name: string, options?: IFileOptions): Provider; +export declare function file(name: string, filename: string): Provider; +export declare function file(options: IFileOptions): Provider; +export declare function use(name: string, options?: IOptions): Provider; +export declare function defaults(options?: IOptions): Provider; +export declare function init(options?: IOptions): void; +export declare function overrides(options?: IOptions): Provider; +export declare function remove(name: string): void; +export declare function create(name: string, options: IOptions): IStore; -declare export function key(...values: any[]): string; -declare export function path(key: any): any[]; -declare export function loadFiles(files: any, callback?: ICallbackFunction): void; -declare export function loadFilesSync(files: any, callback?: ICallbackFunction): void; +export declare function key(...values: any[]): string; +export declare function path(key: any): any[]; +export declare function loadFiles(files: any, callback?: ICallbackFunction): void; +export declare function loadFilesSync(files: any, callback?: ICallbackFunction): void; -declare export var formats: { +export declare var formats: { json: IFormat; ini: IFormat; }; @@ -66,7 +66,7 @@ export interface ICallbackFunction { (err: Error): void; } -declare export class Provider { +export declare class Provider { constructor(options: IOptions); stores: any; diff --git a/netmask/netmask.d.ts b/netmask/netmask.d.ts index d55668d92e..2b1768b467 100644 --- a/netmask/netmask.d.ts +++ b/netmask/netmask.d.ts @@ -7,10 +7,10 @@ -declare export function long2ip(long: number): string; -declare export function ip2long(ip: string): number; +export declare function long2ip(long: number): string; +export declare function ip2long(ip: string): number; -declare export class Netmask { +export declare class Netmask { maskLong: number; bitmask: number; netLong: number; diff --git a/ng-command/ng-command-tests.ts b/ng-command/ng-command-tests.ts index 77fea7b400..b246c9794e 100644 --- a/ng-command/ng-command-tests.ts +++ b/ng-command/ng-command-tests.ts @@ -1,5 +1,5 @@ /// -/// +/// var app = angular.module('testModule', ['ng-command']); diff --git a/ng-command/ng-command.d.ts b/ng-command/ng-command.d.ts index f06dc44110..61b4e750d5 100644 --- a/ng-command/ng-command.d.ts +++ b/ng-command/ng-command.d.ts @@ -3,7 +3,7 @@ // Definitions by: Stephen Lautier // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace ngCommand { diff --git a/ng-cordova/actionSheet-tests.ts b/ng-cordova/actionSheet-tests.ts index 4b73349ef3..9886cc33d6 100644 --- a/ng-cordova/actionSheet-tests.ts +++ b/ng-cordova/actionSheet-tests.ts @@ -1,5 +1,5 @@ /// -/// +/// namespace ngCordova { 'use strict'; diff --git a/ng-cordova/actionSheet.d.ts b/ng-cordova/actionSheet.d.ts index 31482f337a..9154181cc8 100644 --- a/ng-cordova/actionSheet.d.ts +++ b/ng-cordova/actionSheet.d.ts @@ -3,7 +3,7 @@ // Definitions by: Phil McCloghry-Laing // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace ngCordova { export interface IActionSheetService { diff --git a/ng-cordova/app-version.d.ts b/ng-cordova/app-version.d.ts index 0e800b284e..5f7aecf641 100644 --- a/ng-cordova/app-version.d.ts +++ b/ng-cordova/app-version.d.ts @@ -3,7 +3,7 @@ // Definitions by: Jacques Kang // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace ngCordova { export interface IAppVersionService { diff --git a/ng-cordova/appAvailability-tests.ts b/ng-cordova/appAvailability-tests.ts index c9e2be537b..43132c66aa 100644 --- a/ng-cordova/appAvailability-tests.ts +++ b/ng-cordova/appAvailability-tests.ts @@ -1,5 +1,5 @@ /// -/// +/// /// // For the full application demo please see following repo : diff --git a/ng-cordova/appAvailability.d.ts b/ng-cordova/appAvailability.d.ts index 22eaee1a46..f2ee6c6151 100644 --- a/ng-cordova/appAvailability.d.ts +++ b/ng-cordova/appAvailability.d.ts @@ -3,7 +3,7 @@ // Definitions by: Kapil Sachdeva // Definitions: https://github.com/ksachdeva/DefinitelyTyped -/// +/// declare namespace ngCordova { diff --git a/ng-cordova/badge-tests.ts b/ng-cordova/badge-tests.ts index c27adacf9a..6b8b227947 100644 --- a/ng-cordova/badge-tests.ts +++ b/ng-cordova/badge-tests.ts @@ -1,5 +1,5 @@ /// -/// +/// namespace ngCordova { 'use strict'; diff --git a/ng-cordova/badge.d.ts b/ng-cordova/badge.d.ts index 9d3e23a057..43e5ee897a 100644 --- a/ng-cordova/badge.d.ts +++ b/ng-cordova/badge.d.ts @@ -3,7 +3,7 @@ // Definitions by: Phil McCloghry-Laing // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace ngCordova { export interface IBadgeService { diff --git a/ng-cordova/camera.d.ts b/ng-cordova/camera.d.ts index 66b93ca2c1..9640515c7a 100644 --- a/ng-cordova/camera.d.ts +++ b/ng-cordova/camera.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -/// +/// declare namespace ngCordova { export interface ICameraService { diff --git a/ng-cordova/datepicker.d.ts b/ng-cordova/datepicker.d.ts index 66e06808aa..0b5a4deb31 100644 --- a/ng-cordova/datepicker.d.ts +++ b/ng-cordova/datepicker.d.ts @@ -3,7 +3,7 @@ // Definitions by: Jacques Kang // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace ngCordova { diff --git a/ng-cordova/device-tests.ts b/ng-cordova/device-tests.ts index 37a30bf663..bd133c1c5c 100644 --- a/ng-cordova/device-tests.ts +++ b/ng-cordova/device-tests.ts @@ -1,5 +1,5 @@ /// -/// +/// /// // For the full application demo please see following repo : diff --git a/ng-cordova/deviceMotion-tests.ts b/ng-cordova/deviceMotion-tests.ts index b838661978..e65b22d3be 100644 --- a/ng-cordova/deviceMotion-tests.ts +++ b/ng-cordova/deviceMotion-tests.ts @@ -1,5 +1,5 @@ /// -/// +/// /// // For the full application demo please see following repo : diff --git a/ng-cordova/deviceMotion.d.ts b/ng-cordova/deviceMotion.d.ts index db78c348b7..adbaecebce 100644 --- a/ng-cordova/deviceMotion.d.ts +++ b/ng-cordova/deviceMotion.d.ts @@ -3,7 +3,7 @@ // Definitions by: Michel Vidailhet , Kapil Sachdeva // Definitions: https://github.com/ksachdeva/DefinitelyTyped -/// +/// declare namespace ngCordova { diff --git a/ng-cordova/deviceOrientation-tests.ts b/ng-cordova/deviceOrientation-tests.ts index b192fe583e..1b2e4239de 100644 --- a/ng-cordova/deviceOrientation-tests.ts +++ b/ng-cordova/deviceOrientation-tests.ts @@ -1,5 +1,5 @@ /// -/// +/// /// // For the full application demo please see following repo : diff --git a/ng-cordova/deviceOrientation.d.ts b/ng-cordova/deviceOrientation.d.ts index c4e3549283..00818e7b3f 100644 --- a/ng-cordova/deviceOrientation.d.ts +++ b/ng-cordova/deviceOrientation.d.ts @@ -3,7 +3,7 @@ // Definitions by: Michel Vidailhet , Kapil Sachdeva // Definitions: https://github.com/ksachdeva/DefinitelyTyped -/// +/// declare namespace ngCordova { diff --git a/ng-cordova/dialogs-tests.ts b/ng-cordova/dialogs-tests.ts index 2e6c152b9c..6c970599f4 100644 --- a/ng-cordova/dialogs-tests.ts +++ b/ng-cordova/dialogs-tests.ts @@ -1,5 +1,5 @@ /// -/// +/// /// // For the full application demo please see following repo : diff --git a/ng-cordova/dialogs.d.ts b/ng-cordova/dialogs.d.ts index 92f5f3e8c2..a024e6f75a 100644 --- a/ng-cordova/dialogs.d.ts +++ b/ng-cordova/dialogs.d.ts @@ -3,7 +3,7 @@ // Definitions by: Michel Vidailhet , Kapil Sachdeva // Definitions: https://github.com/ksachdeva/DefinitelyTyped -/// +/// declare namespace ngCordova { diff --git a/ng-cordova/emailComposer-tests.ts b/ng-cordova/emailComposer-tests.ts index 8880939a51..20b386e077 100644 --- a/ng-cordova/emailComposer-tests.ts +++ b/ng-cordova/emailComposer-tests.ts @@ -1,5 +1,5 @@ /// -/// +/// /// // For the full application demo please see following repo : diff --git a/ng-cordova/emailComposer.d.ts b/ng-cordova/emailComposer.d.ts index b91d217073..c0c6e2ac25 100644 --- a/ng-cordova/emailComposer.d.ts +++ b/ng-cordova/emailComposer.d.ts @@ -3,7 +3,7 @@ // Definitions by: Kapil Sachdeva // Definitions: https://github.com/ksachdeva/DefinitelyTyped -/// +/// declare namespace ngCordova { diff --git a/ng-cordova/file-tests.ts b/ng-cordova/file-tests.ts index b430487cf9..07298a61be 100644 --- a/ng-cordova/file-tests.ts +++ b/ng-cordova/file-tests.ts @@ -1,5 +1,5 @@ /// -/// +/// /// namespace ngCordova { diff --git a/ng-cordova/file.d.ts b/ng-cordova/file.d.ts index 081fe67778..863e65d189 100644 --- a/ng-cordova/file.d.ts +++ b/ng-cordova/file.d.ts @@ -3,7 +3,7 @@ // Definitions by: Phil McCloghry-Laing // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// /// declare namespace ngCordova { diff --git a/ng-cordova/fileTransfer-tests.ts b/ng-cordova/fileTransfer-tests.ts index c56f1f8b3d..228a6b9b72 100644 --- a/ng-cordova/fileTransfer-tests.ts +++ b/ng-cordova/fileTransfer-tests.ts @@ -1,5 +1,5 @@ /// -/// +/// /// namespace ngCordova { diff --git a/ng-cordova/fileTransfer.d.ts b/ng-cordova/fileTransfer.d.ts index d1222e8a61..c294c4630a 100644 --- a/ng-cordova/fileTransfer.d.ts +++ b/ng-cordova/fileTransfer.d.ts @@ -3,7 +3,7 @@ // Definitions by: Phil McCloghry-Laing // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// /// /// diff --git a/ng-cordova/geolocation-tests.ts b/ng-cordova/geolocation-tests.ts index 731280de7c..ce96248c18 100644 --- a/ng-cordova/geolocation-tests.ts +++ b/ng-cordova/geolocation-tests.ts @@ -1,5 +1,5 @@ /// -/// +/// /// // For the full application demo please see following repo : diff --git a/ng-cordova/geolocation.d.ts b/ng-cordova/geolocation.d.ts index dc65f93d61..a12fd055f0 100644 --- a/ng-cordova/geolocation.d.ts +++ b/ng-cordova/geolocation.d.ts @@ -3,7 +3,7 @@ // Definitions by: Kapil Sachdeva // Definitions: https://github.com/ksachdeva/DefinitelyTyped -/// +/// declare namespace ngCordova { diff --git a/ng-cordova/network-tests.ts b/ng-cordova/network-tests.ts index 35b270cbe5..b61a6e2d40 100644 --- a/ng-cordova/network-tests.ts +++ b/ng-cordova/network-tests.ts @@ -1,5 +1,5 @@ /// -/// +/// /// // For the full application demo please see following repo : diff --git a/ng-cordova/network.d.ts b/ng-cordova/network.d.ts index 71b9d9f82a..5f11371375 100644 --- a/ng-cordova/network.d.ts +++ b/ng-cordova/network.d.ts @@ -3,7 +3,7 @@ // Definitions by: Kapil Sachdeva // Definitions: https://github.com/ksachdeva/DefinitelyTyped -/// +/// declare namespace ngCordova { diff --git a/ng-cordova/toast-tests.ts b/ng-cordova/toast-tests.ts index 43ed529e5d..b4494fd8fc 100644 --- a/ng-cordova/toast-tests.ts +++ b/ng-cordova/toast-tests.ts @@ -1,5 +1,5 @@ /// -/// +/// /// // For the full application demo please see following repo : diff --git a/ng-cordova/toast.d.ts b/ng-cordova/toast.d.ts index 272dd4c28a..6e9c11ef7c 100644 --- a/ng-cordova/toast.d.ts +++ b/ng-cordova/toast.d.ts @@ -3,7 +3,7 @@ // Definitions by: Kapil Sachdeva // Definitions: https://github.com/ksachdeva/DefinitelyTyped -/// +/// declare namespace ngCordova { diff --git a/ng-dialog/ng-dialog-tests.ts b/ng-dialog/ng-dialog-tests.ts index 2fe90fe22f..e7a6336d65 100644 --- a/ng-dialog/ng-dialog-tests.ts +++ b/ng-dialog/ng-dialog-tests.ts @@ -1,5 +1,5 @@ /// -/// +/// var app = angular.module('testModule', ['ngDialog']); diff --git a/ng-dialog/ng-dialog.d.ts b/ng-dialog/ng-dialog.d.ts index 63510520ad..f522c3185b 100644 --- a/ng-dialog/ng-dialog.d.ts +++ b/ng-dialog/ng-dialog.d.ts @@ -3,7 +3,7 @@ // Definitions by: Stephen Lautier // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace angular.dialog { diff --git a/ng-facebook/ng-facebook.d.ts b/ng-facebook/ng-facebook.d.ts index dc2adc883a..5aa6280d17 100644 --- a/ng-facebook/ng-facebook.d.ts +++ b/ng-facebook/ng-facebook.d.ts @@ -3,7 +3,7 @@ // Definitions by: Crevil // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// /// declare namespace angular.ngFacebook { diff --git a/ng-file-upload/ng-file-upload.d.ts b/ng-file-upload/ng-file-upload.d.ts index 41b0331dbe..117890f02d 100644 --- a/ng-file-upload/ng-file-upload.d.ts +++ b/ng-file-upload/ng-file-upload.d.ts @@ -3,7 +3,7 @@ // Definitions by: John Reilly // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare module "ng-file-upload" { let angularFileUploadDefaultExport: string; diff --git a/ng-flow/ng-flow.d.ts b/ng-flow/ng-flow.d.ts index fe5fad56a0..f6a4517861 100644 --- a/ng-flow/ng-flow.d.ts +++ b/ng-flow/ng-flow.d.ts @@ -3,7 +3,7 @@ // Definitions by: Ryan McNamara // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -/// +/// declare namespace angular.flow { interface IFlowFactory { diff --git a/ng-grid/ng-grid-tests.ts b/ng-grid/ng-grid-tests.ts index d8d153f289..f5765d48b3 100644 --- a/ng-grid/ng-grid-tests.ts +++ b/ng-grid/ng-grid-tests.ts @@ -1,5 +1,5 @@ /// -/// +/// var options1: ngGrid.IGridOptions = { data: [{ 'Name': 'Bob' }, { 'Name': 'Jane' }] diff --git a/ng-stomp/ng-stomp-tests.ts b/ng-stomp/ng-stomp-tests.ts index 214e7b0e71..157b337917 100644 --- a/ng-stomp/ng-stomp-tests.ts +++ b/ng-stomp/ng-stomp-tests.ts @@ -1,4 +1,4 @@ -/// +/// /// namespace ngStompTesting { diff --git a/ng-stomp/ng-stomp.d.ts b/ng-stomp/ng-stomp.d.ts index 7cf263eeb6..f13950e832 100644 --- a/ng-stomp/ng-stomp.d.ts +++ b/ng-stomp/ng-stomp.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/beevelop/ng-stomp // Definitions by: Lukasz Potapczuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// interface ngStomp { diff --git a/ng-table/ng-table.d.ts b/ng-table/ng-table.d.ts index ab485a2779..9bb1407b8e 100644 --- a/ng-table/ng-table.d.ts +++ b/ng-table/ng-table.d.ts @@ -3,7 +3,7 @@ // Definitions by: Christian Crowhurst // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// /** * Parameters manager for an ngTable directive diff --git a/ngbootbox/ngbootbox-tests.ts b/ngbootbox/ngbootbox-tests.ts index ec4fb2830d..65d7655ccf 100644 --- a/ngbootbox/ngbootbox-tests.ts +++ b/ngbootbox/ngbootbox-tests.ts @@ -1,4 +1,4 @@ -/// +/// /// class TestBootboxController { diff --git a/ngprogress-lite/ngprogress-lite-tests.ts b/ngprogress-lite/ngprogress-lite-tests.ts index a6d68f08fe..58a08bfc38 100644 --- a/ngprogress-lite/ngprogress-lite-tests.ts +++ b/ngprogress-lite/ngprogress-lite-tests.ts @@ -1,4 +1,4 @@ -/// +/// /// var app = angular.module('testApp', ['ngProgressLite']); diff --git a/ngstorage/ngstorage-tests.ts b/ngstorage/ngstorage-tests.ts index 698723eaa3..bf967db545 100644 --- a/ngstorage/ngstorage-tests.ts +++ b/ngstorage/ngstorage-tests.ts @@ -1,4 +1,4 @@ -/// +/// /// var app: any; diff --git a/ngtoaster/angularjs-toaster.d.ts b/ngtoaster/angularjs-toaster.d.ts index ee184620ae..a430379332 100644 --- a/ngtoaster/angularjs-toaster.d.ts +++ b/ngtoaster/angularjs-toaster.d.ts @@ -3,7 +3,7 @@ // Definitions by: Ben Tesser // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace ngtoaster { interface IToasterService { diff --git a/noble/noble.d.ts b/noble/noble.d.ts index 7c9c792113..92aa04f623 100644 --- a/noble/noble.d.ts +++ b/noble/noble.d.ts @@ -8,18 +8,18 @@ import events = require("events"); -declare export function startScanning(): void; -declare export function startScanning(serviceUUIDs: string[]): void; -declare export function startScanning(serviceUUIDs: string[], allowDuplicates: boolean): void; -declare export function stopScanning(): void; +export declare function startScanning(): void; +export declare function startScanning(serviceUUIDs: string[]): void; +export declare function startScanning(serviceUUIDs: string[], allowDuplicates: boolean): void; +export declare function stopScanning(): void; -declare export function on(event: string, listener: Function): events.EventEmitter; -declare export function on(event: "stateChange", listener: (state: string) => void): events.EventEmitter; -declare export function on(event: "scanStart", listener: () => void): events.EventEmitter; -declare export function on(event: "scanStop", listener: () => void): events.EventEmitter; -declare export function on(event: "discover", listener: (peripheral: Peripheral) => void): events.EventEmitter; +export declare function on(event: string, listener: Function): events.EventEmitter; +export declare function on(event: "stateChange", listener: (state: string) => void): events.EventEmitter; +export declare function on(event: "scanStart", listener: () => void): events.EventEmitter; +export declare function on(event: "scanStop", listener: () => void): events.EventEmitter; +export declare function on(event: "discover", listener: (peripheral: Peripheral) => void): events.EventEmitter; -declare export class Peripheral extends events.EventEmitter { +export declare class Peripheral extends events.EventEmitter { uuid: string; advertisement: Advertisement; rssi: number; @@ -52,7 +52,7 @@ export interface Advertisement { serviceUuids: string[]; } -declare export class Service extends events.EventEmitter { +export declare class Service extends events.EventEmitter { uuid: string; name: string; type: string; @@ -68,7 +68,7 @@ declare export class Service extends events.EventEmitter { on(event: "characteristicsDiscover", listener: (characteristics: Characteristic[]) => void): this; } -declare export class Characteristic extends events.EventEmitter { +export declare class Characteristic extends events.EventEmitter { uuid: string; name: string; type: string; @@ -91,7 +91,7 @@ declare export class Characteristic extends events.EventEmitter { on(event: "descriptorsDiscover", listener: (descriptors: Descriptor[]) => void): this; } -declare export class Descriptor extends events.EventEmitter { +export declare class Descriptor extends events.EventEmitter { uuid: string; name: string; type: string; diff --git a/node-array-ext/node-array-ext.d.ts b/node-array-ext/node-array-ext.d.ts index 4dbccde814..40991495ce 100644 --- a/node-array-ext/node-array-ext.d.ts +++ b/node-array-ext/node-array-ext.d.ts @@ -8,9 +8,9 @@ * Processes each of the elements in the array and triggers a callback once every element has been processed. * - note that the elements are called in order but are not guaranteed to finish in order. */ -declare export function asyncEach(array: Array, each: (i: number, element: T, done: (err?: Error) => void) => void, finish: (err?: Error) => void): void; +export declare function asyncEach(array: Array, each: (i: number, element: T, done: (err?: Error) => void) => void, finish: (err?: Error) => void): void; /** * Processes each of the elements in the array and triggers a callback once every element has been processed. * - note that the elements are called in order and are guaranteed to finish in order. */ -declare export function awaitEach(array: Array, each: (i: number, element: T, done: (err?: Error) => void) => void, finish: (err?: Error) => void): void; +export declare function awaitEach(array: Array, each: (i: number, element: T, done: (err?: Error) => void) => void, finish: (err?: Error) => void): void; diff --git a/node-dir/node-dir.d.ts b/node-dir/node-dir.d.ts index 3c920dd86b..ce3b9d755e 100644 --- a/node-dir/node-dir.d.ts +++ b/node-dir/node-dir.d.ts @@ -52,13 +52,13 @@ export interface FinishedCallback { (error: any, files: any): void; } -declare export function readFiles(dir: string, fileCallback: FileCallback, finishedCallback?: FinishedCallback): void; -declare export function readFiles(dir: string, fileCallback: FileNamedCallback, finishedCallback?: FinishedCallback): void; -declare export function readFiles(dir: string, options: Options, fileCallback: FileCallback, finishedCallback?: FinishedCallback): void; -declare export function readFiles(dir: string, options: Options, fileCallback: FileNamedCallback, finishedCallback?: FinishedCallback): void; -declare export function readFilesStream(dir: string, options: Options, streamCallback: StreamCallback, +export declare function readFiles(dir: string, fileCallback: FileCallback, finishedCallback?: FinishedCallback): void; +export declare function readFiles(dir: string, fileCallback: FileNamedCallback, finishedCallback?: FinishedCallback): void; +export declare function readFiles(dir: string, options: Options, fileCallback: FileCallback, finishedCallback?: FinishedCallback): void; +export declare function readFiles(dir: string, options: Options, fileCallback: FileNamedCallback, finishedCallback?: FinishedCallback): void; +export declare function readFilesStream(dir: string, options: Options, streamCallback: StreamCallback, finishedCallback?: FinishedCallback): void; -declare export function files(dir: string, callback: (error: any, files: any) => void): void; -declare export function subdirs(dir: string, callback: (error: any, subdirs: any) => void): void; -declare export function paths(dir: string, callback: (error: any, paths: any) => void): void; -declare export function paths(dir: string, combine: boolean, callback: (error: any, paths: any) => void): void; +export declare function files(dir: string, callback: (error: any, files: any) => void): void; +export declare function subdirs(dir: string, callback: (error: any, subdirs: any) => void): void; +export declare function paths(dir: string, callback: (error: any, paths: any) => void): void; +export declare function paths(dir: string, combine: boolean, callback: (error: any, paths: any) => void): void; diff --git a/node-gcm/node-gcm.d.ts b/node-gcm/node-gcm.d.ts index faa272678a..61c7ae70dc 100644 --- a/node-gcm/node-gcm.d.ts +++ b/node-gcm/node-gcm.d.ts @@ -30,7 +30,7 @@ export interface IMessageOptions { notification?: INotificationOptions; } -declare export class Message { +export declare class Message { constructor(options?: IMessageOptions); collapseKey: string; delayWhileIdle: boolean; @@ -62,7 +62,7 @@ export interface IRecipient { registrationTokens?: string[] } -declare export class Sender { +export declare class Sender { constructor(key: string, options?: ISenderOptions); key: string; options: ISenderOptions; diff --git a/node-sass/node-sass.d.ts b/node-sass/node-sass.d.ts index 76aef830f1..ea7215caa2 100644 --- a/node-sass/node-sass.d.ts +++ b/node-sass/node-sass.d.ts @@ -51,5 +51,5 @@ interface Result { } } -declare export function render(options: Options, callback: (err: SassError, result: Result) => any): void; -declare export function renderSync(options: Options): Result; +export declare function render(options: Options, callback: (err: SassError, result: Result) => any): void; +export declare function renderSync(options: Options): Result; diff --git a/node-schedule/node-schedule.d.ts b/node-schedule/node-schedule.d.ts index b8edfe4d4f..ff6e4ce273 100644 --- a/node-schedule/node-schedule.d.ts +++ b/node-schedule/node-schedule.d.ts @@ -72,7 +72,7 @@ export interface RecurrenceRule { * * @class */ -declare export class Range { +export declare class Range { /** * Constructor. * @@ -97,7 +97,7 @@ declare export class Range { * * @class */ -declare export class Job { +export declare class Job { /** * Constructor. * @@ -137,7 +137,7 @@ declare export class Job { * * @class */ -declare export class Invocation { +export declare class Invocation { /** * Fire date. * @@ -187,7 +187,7 @@ declare export class Invocation { * @param {Job} job The job. * @returns {boolean} {true} if the job has been cancelled with success, otherwise, {false}. */ -declare export function cancelJob(job: Job): boolean; +export declare function cancelJob(job: Job): boolean; /** * Create a schedule job. @@ -195,4 +195,4 @@ declare export function cancelJob(job: Job): boolean; * @param {RecurrenceRule} rule The rule. * @param {Function} callback The callback. */ -declare export function scheduleJob(rule: RecurrenceRule | Date | string, callback: Function): void; +export declare function scheduleJob(rule: RecurrenceRule | Date | string, callback: Function): void; diff --git a/node-snap7/node-snap7.d.ts b/node-snap7/node-snap7.d.ts index fcd0b80330..f4f3a1f990 100644 --- a/node-snap7/node-snap7.d.ts +++ b/node-snap7/node-snap7.d.ts @@ -9,13 +9,13 @@ -declare export enum ConnectionType { +export declare enum ConnectionType { CONNTYPE_PG = 0x01, CONNTYPE_OP = 0x02, CONNTYPE_BASIC = 0x03 } -declare export enum ParamNumber { +export declare enum ParamNumber { RemotePort = 2, PingTimeout = 3, SendTimeout = 4, @@ -26,7 +26,7 @@ declare export enum ParamNumber { PDURequest = 10 } -declare export enum Area { +export declare enum Area { S7AreaPE = 0x81, S7AreaPA = 0x82, S7AreaMK = 0x83, @@ -35,7 +35,7 @@ declare export enum Area { S7AreaTM = 0x1D } -declare export enum WordLen { +export declare enum WordLen { S7WLBit = 0x01, S7WLByte = 0x02, S7WLWord = 0x04, @@ -45,7 +45,7 @@ declare export enum WordLen { S7WLTimer = 0x1D } -declare export enum BlockType { +export declare enum BlockType { Block_OB = 0x38, Block_DB = 0x41, Block_SDB = 0x42, @@ -55,7 +55,7 @@ declare export enum BlockType { Block_SFB = 0x46 } -declare export enum SubBlockType { +export declare enum SubBlockType { SubBlk_OB = 0x08, SubBlk_DB = 0x0A, SubBlk_SDB = 0x0B, @@ -65,7 +65,7 @@ declare export enum SubBlockType { SubBlk_SFB = 0x0F } -declare export enum LangType { +export declare enum LangType { BlockLangAWL = 0x01, BlockLangKOP = 0x02, BlockLangFUP = 0x03, @@ -74,7 +74,7 @@ declare export enum LangType { BlockLangGRAPH = 0x06 } -declare export enum Status { +export declare enum Status { S7CpuStatusUnknown = 0x00, S7CpuStatusRun = 0x08, S7CpuStatusStop = 0x04 @@ -659,4 +659,4 @@ interface S7Client { ErrorText(err: number): string; } -declare export var S7Client: S7Client_Static; +export declare var S7Client: S7Client_Static; diff --git a/nodemailer/nodemailer.d.ts b/nodemailer/nodemailer.d.ts index 0bcb05ef37..cb405c3274 100644 --- a/nodemailer/nodemailer.d.ts +++ b/nodemailer/nodemailer.d.ts @@ -51,12 +51,12 @@ export interface Transporter { /** * Create a direct transporter */ -declare export function createTransport(options?: directTransport.DirectOptions, defaults?: Object): Transporter; +export declare function createTransport(options?: directTransport.DirectOptions, defaults?: Object): Transporter; /** * Create an SMTP transporter */ -declare export function createTransport(options?: smtpTransport.SmtpOptions, defaults?: Object): Transporter; +export declare function createTransport(options?: smtpTransport.SmtpOptions, defaults?: Object): Transporter; /** * Create a transporter from a given implementation */ -declare export function createTransport(transport: Transport, defaults?: Object): Transporter; +export declare function createTransport(transport: Transport, defaults?: Object): Transporter; diff --git a/nodeunit/nodeunit.d.ts b/nodeunit/nodeunit.d.ts index cb75879898..f00764009b 100644 --- a/nodeunit/nodeunit.d.ts +++ b/nodeunit/nodeunit.d.ts @@ -9,7 +9,7 @@ export interface ITestCase { (testCase: { [property: string]: ITestBody | ITestGroup | void }): void; } -declare export var testCase: ITestCase; +export declare var testCase: ITestCase; export interface Test { done: ICallbackFunction; diff --git a/nw.gui/nw.gui.d.ts b/nw.gui/nw.gui.d.ts index eab724a366..39052e82a6 100644 --- a/nw.gui/nw.gui.d.ts +++ b/nw.gui/nw.gui.d.ts @@ -49,7 +49,7 @@ export interface MenuItemConfig { modifiers?: string; } -declare export class MenuItem extends EventEmitter implements MenuItemConfig { +export declare class MenuItem extends EventEmitter implements MenuItemConfig { constructor(config: MenuItemConfig); label: string; click: Function; @@ -63,7 +63,7 @@ declare export class MenuItem extends EventEmitter implements MenuItemConfig { modifiers: string; } -declare export class Menu { +export declare class Menu { constructor(config?: MenuConfig); items: MenuItem[]; append(item: MenuItem): void; @@ -82,7 +82,7 @@ export interface ShortcutOption { failed: Function; } -declare export class Shortcut extends EventEmitter { +export declare class Shortcut extends EventEmitter { constructor(option: ShortcutOption); key: string; active: Function; @@ -104,7 +104,7 @@ export interface WindowManifestOptions { max_height?: number; } -declare export class Window extends EventEmitter { +export declare class Window extends EventEmitter { static get(windowObject?: any): Window; static open(url: string, options?: WindowManifestOptions): Window; x: number; @@ -184,7 +184,7 @@ export interface App { unregisterGlobalHotKey(shortcut: Shortcut): void; } -declare export class Clipboard { +export declare class Clipboard { static get(): Clipboard; get(type?: string): string; set(data: string, type?: string): void; @@ -199,7 +199,7 @@ export interface TrayOption { menu?: Menu; } -declare export class Tray implements TrayOption { +export declare class Tray implements TrayOption { constructor(option: TrayOption); title: string; tooltip: string; @@ -215,5 +215,5 @@ interface Shell { showItemInFolder(file_path: string): void; } -declare export var App: App; -declare export var Shell: Shell; +export declare var App: App; +export declare var Shell: Shell; diff --git a/oclazyload/oclazyload.d.ts b/oclazyload/oclazyload.d.ts index d799bec64c..fb01e442e0 100644 --- a/oclazyload/oclazyload.d.ts +++ b/oclazyload/oclazyload.d.ts @@ -3,7 +3,7 @@ // Definitions by: Roland Zwaga // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace oc { diff --git a/oracledb/oracledb.d.ts b/oracledb/oracledb.d.ts index 14e0386ae7..0173f7f505 100644 --- a/oracledb/oracledb.d.ts +++ b/oracledb/oracledb.d.ts @@ -230,36 +230,36 @@ export interface IConnectionPool { getConnection(callback: (err: any, connection: IConnection) => void): void; } -declare export const DEFAULT: number; +export declare const DEFAULT: number; /** Data type */ -declare export const STRING: number; +export declare const STRING: number; /** Data type */ -declare export const NUMBER: number; +export declare const NUMBER: number; /** Data type */ -declare export const DATE: number; +export declare const DATE: number; /** Data type */ -declare export const CURSOR: number; +export declare const CURSOR: number; /** Data type */ -declare export const BUFFER: number; +export declare const BUFFER: number; /** Data type */ -declare export const CLOB: number; +export declare const CLOB: number; /** Data type */ -declare export const BLOB: number; +export declare const BLOB: number; /** Bind direction */ -declare export const BIND_IN: number; +export declare const BIND_IN: number; /** Bind direction */ -declare export const BIND_INOUT: number; +export declare const BIND_INOUT: number; /** Bind direction */ -declare export const BIND_OUT: number; +export declare const BIND_OUT: number; /** outFormat */ -declare export const ARRAY: number; +export declare const ARRAY: number; /** outFormat */ -declare export const OBJECT: number; +export declare const OBJECT: number; /** * Do not use this method - used internally by node-oracledb. */ -declare export function newLob(iLob: ILob): Lob; +export declare function newLob(iLob: ILob): Lob; /** * Creates a connection with the database. @@ -267,7 +267,7 @@ declare export function newLob(iLob: ILob): Lob; * @param {(err:any,connection:IConnection)=>void} callback Callback to run when the connection gets stablished or when some error occurs. * @returns void */ -declare export function getConnection(connectionAttributes: IConnectionAttributes, callback: (err: any, connection: IConnection) => void): void; +export declare function getConnection(connectionAttributes: IConnectionAttributes, callback: (err: any, connection: IConnection) => void): void; /** * Creates a database managed connection pool. @@ -275,33 +275,33 @@ declare export function getConnection(connectionAttributes: IConnectionAttribute * @param {(err:any,connection:IConnectionPool)=>void} callback Callback to run when the connection pool gets created or when some error occurs. * @returns void */ -declare export function createPool(poolAttributes: IPoolAttributes, callback: (err: any, connection: IConnectionPool) => void): void; +export declare function createPool(poolAttributes: IPoolAttributes, callback: (err: any, connection: IConnectionPool) => void): void; /** Default maximum connections in created pools */ -declare export var poolMax: number; +export declare var poolMax: number; /** Default minimum connections in created pools */ -declare export var poolMin: number; +export declare var poolMin: number; /** Default number of connections to increment when available connections reach 0 in created pools. poolMax will be respected.*/ -declare export var poolIncrement: number; +export declare var poolIncrement: number; /** Default timeout for unused connections in pool to be released. poolMin will be respected.*/ -declare export var poolTimeout: number; +export declare var poolTimeout: number; /** Default size of statements cache. Used to speed up creating queries.*/ -declare export var stmtCacheSize: number; +export declare var stmtCacheSize: number; /** Default number of rows that the driver will fetch in each query.*/ -declare export var prefetchRows: number; +export declare var prefetchRows: number; /** Default transaction behaviour of auto commit for each statement. */ -declare export var autoCommit: boolean; +export declare var autoCommit: boolean; /** Default maximum number of rows to be fetched in statements not using ResultSets */ -declare export var maxRows: number; +export declare var maxRows: number; /** Default format for returning rows. When ARRAY, it will return Array>. When OBJECT, it will return Array. */ -declare export var outFormat: number; +export declare var outFormat: number; /** node-oracledb driver version. */ -declare export var version: number; -declare export var connectionClass: string; +export declare var version: number; +export declare var connectionClass: string; /** Default authentication/authorization method. When true, the SO trusted user will be used. */ -declare export var externalAuth: boolean; -declare export var fetchAsString: any; +export declare var externalAuth: boolean; +export declare var fetchAsString: any; /** Default size in bytes that the driver will fetch from LOBs in advance. */ -declare export var lobPrefetchSize: number; +export declare var lobPrefetchSize: number; /** Version of OCI that is used. */ -declare export var oracleClientVersion: number; +export declare var oracleClientVersion: number; diff --git a/osmtogeojson/osmtogeojson.d.ts b/osmtogeojson/osmtogeojson.d.ts index 3f0a03c4d7..5057b5c60e 100644 --- a/osmtogeojson/osmtogeojson.d.ts +++ b/osmtogeojson/osmtogeojson.d.ts @@ -25,7 +25,7 @@ export interface Options { polygonFeatures?: any | Function; //TODO: type this } -declare export namespace GeoJSON { +export declare namespace GeoJSON { export interface GeoJSONObject { type: string; } @@ -53,7 +53,7 @@ declare export namespace GeoJSON { export type Coordinate = Coordinate2d | Coordinate3d; } -declare export namespace OsmJSON { +export declare namespace OsmJSON { export interface OsmJSONObject { elements: (Node | Way | Relationship)[]; } diff --git a/package.json b/package.json index a22eeda245..a38ab0b124 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,6 @@ }, "devDependencies": { "definition-tester": "0.5.2", - "typescript": "1.8.7" + "typescript": "next" } } diff --git a/parse5/parse5.d.ts b/parse5/parse5.d.ts index 4252344821..57ef416904 100644 --- a/parse5/parse5.d.ts +++ b/parse5/parse5.d.ts @@ -19,7 +19,7 @@ import * as events from "events"; * var parse5 = require('parse5'); * var document = parse5.parse('Hi there!'); */ -declare export function parse(html: string, options?: ParserOptions): ASTNode; +export declare function parse(html: string, options?: ParserOptions): ASTNode; /** * Parses an HTML fragment. @@ -32,15 +32,15 @@ declare export function parse(html: string, options?: ParserOptions): ASTNode; * // Parses the html fragment in the context of the parsed element. * var trFragment = parser.parseFragment(documentFragment.childNodes[0], ''); */ -declare export function parseFragment(html: string, options?: ParserOptions): ASTNode; -declare export function parseFragment(fragmentContext: any, html: string, options?: ParserOptions): ASTNode; +export declare function parseFragment(html: string, options?: ParserOptions): ASTNode; +export declare function parseFragment(fragmentContext: any, html: string, options?: ParserOptions): ASTNode; /** * Serializes an AST node to an HTML string. * @param node Node to serialize. * @param options Serialization options */ -declare export function serialize(node: ASTNode, options?: SerializerOptions): string; +export declare function serialize(node: ASTNode, options?: SerializerOptions): string; export interface ASTAttribute { name: string; @@ -86,7 +86,7 @@ export interface LocationInfo { /** * Streaming AST node to an HTML serializer. A readable stream. */ -declare export class SerializerStream extends stream.Readable { +export declare class SerializerStream extends stream.Readable { /** * Streaming AST node to an HTML serializer. A readable stream. * @@ -99,7 +99,7 @@ declare export class SerializerStream extends stream.Readable { /** * Streaming HTML parser with scripting support. A writable stream. */ -declare export class ParserStream extends stream.Writable { +export declare class ParserStream extends stream.Writable { /** * @param options Parsing options. */ @@ -120,7 +120,7 @@ declare export class ParserStream extends stream.Writable { on(event: 'script', listener: (scriptElement: ASTNode, documentWrite: (html: string) => void, resume: Function) => void): this; } -declare export class SAXParser extends stream.Transform { +export declare class SAXParser extends stream.Transform { constructor(options?: SAXParserOptions); on(event: string, listener: Function): this; /** @@ -220,7 +220,7 @@ export interface ElementLocationInfo { /** * Provides built-in tree adapters that can be used for parsing and serialization. */ -declare export var treeAdapters: { +export declare var treeAdapters: { /** * Default tree format for parse5. */ diff --git a/passport-jwt/passport-jwt.d.ts b/passport-jwt/passport-jwt.d.ts index b403630aab..874a740972 100644 --- a/passport-jwt/passport-jwt.d.ts +++ b/passport-jwt/passport-jwt.d.ts @@ -9,7 +9,7 @@ import {Strategy as PassportStrategy} from 'passport-strategy'; import {Request} from 'express'; -declare export class Strategy extends PassportStrategy { +export declare class Strategy extends PassportStrategy { constructor(opt: StrategyOptions, verify: VerifyCallback); constructor(opt: StrategyOptions, verify: VerifyCallbackWithRequest); } @@ -40,7 +40,7 @@ export interface JwtFromRequestFunction { (req: Request): string; } -declare export namespace ExtractJwt { +export declare namespace ExtractJwt { export function fromHeader(header_name: string): JwtFromRequestFunction; export function fromBodyField(field_name: string): JwtFromRequestFunction; export function fromUrlQueryParameter(param_name: string): JwtFromRequestFunction; diff --git a/password-hash/password-hash.d.ts b/password-hash/password-hash.d.ts index 909c5d9875..7388f82c39 100644 --- a/password-hash/password-hash.d.ts +++ b/password-hash/password-hash.d.ts @@ -4,9 +4,9 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare export function generate(password: string, options?: Options): string; -declare export function verify(password: string, hashedPassword: string): boolean; -declare export function isHashed(password: string): boolean; +export declare function generate(password: string, options?: Options): string; +export declare function verify(password: string, hashedPassword: string): boolean; +export declare function isHashed(password: string): boolean; export interface Options { algorithm?: string; diff --git a/pg/pg.d.ts b/pg/pg.d.ts index 93b32d5b0d..69540c0696 100644 --- a/pg/pg.d.ts +++ b/pg/pg.d.ts @@ -9,9 +9,9 @@ import events = require("events"); import stream = require("stream"); -declare export function connect(connection: string, callback: (err: Error, client: Client, done: (err?: any) => void) => void): void; -declare export function connect(config: ClientConfig, callback: (err: Error, client: Client, done: (err?: any) => void) => void): void; -declare export function end(): void; +export declare function connect(connection: string, callback: (err: Error, client: Client, done: (err?: any) => void) => void): void; +export declare function connect(config: ClientConfig, callback: (err: Error, client: Client, done: (err?: any) => void) => void): void; +export declare function end(): void; export interface ConnectionConfig { user?: string; @@ -50,7 +50,7 @@ export interface ResultBuilder extends QueryResult { addRow(row: any): void; } -declare export class Client extends events.EventEmitter { +export declare class Client extends events.EventEmitter { constructor(connection: string); constructor(config: ClientConfig); @@ -74,14 +74,14 @@ declare export class Client extends events.EventEmitter { public on(event: string, listener: Function): this; } -declare export class Query extends events.EventEmitter { +export declare class Query extends events.EventEmitter { public on(event: "row", listener: (row: any, result?: ResultBuilder) => void): this; public on(event: "error", listener: (err: Error) => void): this; public on(event: "end", listener: (result: ResultBuilder) => void): this; public on(event: string, listener: Function): this; } -declare export class Events extends events.EventEmitter { +export declare class Events extends events.EventEmitter { public on(event: "error", listener: (err: Error, client: Client) => void): this; public on(event: string, listener: Function): this; } diff --git a/png-async/png-async.d.ts b/png-async/png-async.d.ts index 3aefa60745..33b2c424a4 100644 --- a/png-async/png-async.d.ts +++ b/png-async/png-async.d.ts @@ -19,7 +19,7 @@ export interface IImageOptions { filterType?: EFilterType; } -declare export enum EDeflateStrategy { +export declare enum EDeflateStrategy { DEFAULT_STRATEGY = 0, FILTERED = 1, HUFFMAN_ONLY = 2, @@ -27,7 +27,7 @@ declare export enum EDeflateStrategy { FIXED = 4, } -declare export enum EFilterType { +export declare enum EFilterType { Auto = -1, None = 0, Sub = 1, @@ -36,9 +36,9 @@ declare export enum EFilterType { Paeth = 4, } -declare export function createImage(option?: IImageOptions): Image; +export declare function createImage(option?: IImageOptions): Image; -declare export class Image extends stream.Duplex { +export declare class Image extends stream.Duplex { width: number; height: number; gamma: number; diff --git a/pngjs2/pngjs2.d.ts b/pngjs2/pngjs2.d.ts index 6aef5316a6..e2c1019919 100644 --- a/pngjs2/pngjs2.d.ts +++ b/pngjs2/pngjs2.d.ts @@ -32,7 +32,7 @@ interface PNGMetadata { interlace: boolean; } -declare export class PNG extends stream.Writable { +export declare class PNG extends stream.Writable { constructor(options?: PNGOptions); width: number; @@ -56,7 +56,7 @@ declare export class PNG extends stream.Writable { width: number, height: number, deltaX: number, deltaY: number): PNG; } -declare export namespace PNG { +export declare namespace PNG { namespace sync { function read(buffer: string | Buffer, options?: PNGOptions): PNG; } diff --git a/precond/precond.d.ts b/precond/precond.d.ts index d5623f8836..de0bfb3d21 100644 --- a/precond/precond.d.ts +++ b/precond/precond.d.ts @@ -4,13 +4,13 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare export function checkArgument(value: any, message?: string, ...formatArgs: any[]): void; -declare export function checkState(value: any, message?: string, ...formatArgs: any[]): void; -declare export function checkIsDef(value: any, message?: string, ...formatArgs: any[]): any; -declare export function checkIsDefAndNotNull(value: any, message?: string, ...formatArgs: any[]): any; -declare export function checkIsString(value: any, message?: string, ...formatArgs: any[]): any; -declare export function checkIsArray(value: any, message?: string, ...formatArgs: any[]): any; -declare export function checkIsNumber(value: any, message?: string, ...formatArgs: any[]): any; -declare export function checkIsBoolean(value: any, message?: string, ...formatArgs: any[]): any; -declare export function checkIsFunction(value: any, message?: string, ...formatArgs: any[]): any; -declare export function checkIsObject(value: any, message?: string, ...formatArgs: any[]): any; +export declare function checkArgument(value: any, message?: string, ...formatArgs: any[]): void; +export declare function checkState(value: any, message?: string, ...formatArgs: any[]): void; +export declare function checkIsDef(value: any, message?: string, ...formatArgs: any[]): any; +export declare function checkIsDefAndNotNull(value: any, message?: string, ...formatArgs: any[]): any; +export declare function checkIsString(value: any, message?: string, ...formatArgs: any[]): any; +export declare function checkIsArray(value: any, message?: string, ...formatArgs: any[]): any; +export declare function checkIsNumber(value: any, message?: string, ...formatArgs: any[]): any; +export declare function checkIsBoolean(value: any, message?: string, ...formatArgs: any[]): any; +export declare function checkIsFunction(value: any, message?: string, ...formatArgs: any[]): any; +export declare function checkIsObject(value: any, message?: string, ...formatArgs: any[]): any; diff --git a/prettyjson/prettyjson.d.ts b/prettyjson/prettyjson.d.ts index 7ed23e87e0..71df6ea359 100644 --- a/prettyjson/prettyjson.d.ts +++ b/prettyjson/prettyjson.d.ts @@ -9,7 +9,7 @@ /** * Defines prettyjson version */ -declare export var version: string; +export declare var version: string; /** * Render pretty json. @@ -20,7 +20,7 @@ declare export var version: string; * * @return {string} pretty serialized json data ready to display. */ -declare export function render(data: any, options?: RendererOptions, indentation?: number): string; +export declare function render(data: any, options?: RendererOptions, indentation?: number): string; /** * Render pretty json from a string. @@ -31,7 +31,7 @@ declare export function render(data: any, options?: RendererOptions, indentation * * @return {string} pretty serialized json data ready to display. */ -declare export function renderString(data: string, options?: RendererOptions, indentation?: number): string; +export declare function renderString(data: string, options?: RendererOptions, indentation?: number): string; export interface RendererOptions { diff --git a/project-oxford/project-oxford.d.ts b/project-oxford/project-oxford.d.ts index cca0990cfc..ee3fd56465 100644 --- a/project-oxford/project-oxford.d.ts +++ b/project-oxford/project-oxford.d.ts @@ -10,14 +10,14 @@ import Promise = require("bluebird"); import stream = require("stream"); -declare export class Client { +export declare class Client { constructor(apiKey: string); private _key: string; public face: FaceAPI; public vision: VisionAPI; } -declare export class FaceAPI { +export declare class FaceAPI { /** * Call the Face Detected API @@ -92,7 +92,7 @@ declare export class FaceAPI { public person: Person; } -declare export class VisionAPI { +export declare class VisionAPI { /** * This operation does a deep analysis on the given image and then extracts a * set of rich visual features based on the image content. @@ -140,7 +140,7 @@ declare export class VisionAPI { public ocr(options: Options.Ocr): Promise; } -declare export class PersonGroup { +export declare class PersonGroup { /** * Creates a new person group with a user-specified ID. * A person group is one of the most important parameters for the Identification API. @@ -207,7 +207,7 @@ declare export class PersonGroup { public list(): Promise; } -declare export class Person { +export declare class Person { /** * Adds a face to a person for identification. The maximum face count for each person is 32. * The face ID must be added to a person before its expiration. Typically a face ID expires diff --git a/promise-pg/promise-pg.d.ts b/promise-pg/promise-pg.d.ts index a331c42161..afbafe3194 100644 --- a/promise-pg/promise-pg.d.ts +++ b/promise-pg/promise-pg.d.ts @@ -15,16 +15,16 @@ export {pg as raw}; export interface ClientConfig extends pg.ClientConfig { } -declare export function connect(connection: string): Q.Promise; -declare export function connect(connection: pg.ClientConfig): Q.Promise; +export declare function connect(connection: string): Q.Promise; +export declare function connect(connection: pg.ClientConfig): Q.Promise; -declare export function end(): Q.Promise; +export declare function end(): Q.Promise; export interface QueryConfig extends pg.QueryConfig { buffer?: boolean; } -declare export class Client { +export declare class Client { constructor(connection: string); constructor(config: ClientConfig); @@ -55,6 +55,6 @@ declare export class Client { export interface QueryResult extends pg.QueryResult { } export interface ResultBuilder extends pg.ResultBuilder { } -declare export class Query extends pg.Query { +export declare class Query extends pg.Query { promise: Q.Promise; } diff --git a/promise-pool/promise-pool.d.ts b/promise-pool/promise-pool.d.ts index bb9f679c82..c111418984 100644 --- a/promise-pool/promise-pool.d.ts +++ b/promise-pool/promise-pool.d.ts @@ -30,7 +30,7 @@ export interface IProgress { /** * tasks pool that manages concurrency. */ -declare export class Pool { +export declare class Pool { /** * (get/set) the max concurrency of this task pool. */ diff --git a/promptly/promptly.d.ts b/promptly/promptly.d.ts index 6c47c03b27..e24da0095d 100644 --- a/promptly/promptly.d.ts +++ b/promptly/promptly.d.ts @@ -22,14 +22,14 @@ export interface Options { output?: NodeJS.WritableStream; } -declare export function prompt(message: string, fn?: Callback): any; -declare export function prompt(message: string, opts: Options, fn?: Callback): any; +export declare function prompt(message: string, fn?: Callback): any; +export declare function prompt(message: string, opts: Options, fn?: Callback): any; -declare export function password(message: string, fn?: Callback): any; -declare export function password(message: string, opts: Options, fn?: Callback): any; +export declare function password(message: string, fn?: Callback): any; +export declare function password(message: string, opts: Options, fn?: Callback): any; -declare export function confirm(message: string, fn?: Callback): any; -declare export function confirm(message: string, opts: Options, fn?: Callback): any; +export declare function confirm(message: string, fn?: Callback): any; +export declare function confirm(message: string, opts: Options, fn?: Callback): any; -declare export function choose(message: string, choices: string[], fn?: Callback): any; -declare export function choose(message: string, choices: string[], opts: Options, fn?: Callback): any; +export declare function choose(message: string, choices: string[], fn?: Callback): any; +export declare function choose(message: string, choices: string[], opts: Options, fn?: Callback): any; diff --git a/pty.js/pty.js.d.ts b/pty.js/pty.js.d.ts index 11f43b3e37..5e701b7f98 100644 --- a/pty.js/pty.js.d.ts +++ b/pty.js/pty.js.d.ts @@ -20,7 +20,7 @@ interface TerminalOptions { import stream = require('stream'); import net = require('net'); -declare export class Terminal implements stream.Stream { +export declare class Terminal implements stream.Stream { /** Read-only name of the terminal. */ name: string; /** Read-only number of columns in the terminal. */ @@ -94,19 +94,19 @@ declare export class Terminal implements stream.Stream { * Creates a new pseudo-terminal, spawns a child process, and associates it with the slave * end of the pseudo-terminal. */ -declare export function createTerminal(file?: string, args?: string[], opt?: TerminalOptions): Terminal; +export declare function createTerminal(file?: string, args?: string[], opt?: TerminalOptions): Terminal; /** Alias for [[createTerminal]]. */ -declare export function fork(file?: string, args?: string[], opt?: TerminalOptions): Terminal; +export declare function fork(file?: string, args?: string[], opt?: TerminalOptions): Terminal; /** Alias for [[createTerminal]]. */ -declare export function spawn(file?: string, args?: string[], opt?: TerminalOptions): Terminal; +export declare function spawn(file?: string, args?: string[], opt?: TerminalOptions): Terminal; /** * Creates a new pseudo-terminal. * This function is not available on Windows, use [[fork]] there instead. */ -declare export function open(opt?: { cols?: number; rows?: number }): Terminal; +export declare function open(opt?: { cols?: number; rows?: number }): Terminal; // Internal stuff that probably isn't very useful but is exported by pty.js -declare export module native { +export declare module native { /** Unix-only. */ export function fork( file: string, args: string[], env: any, cwd: string, cols: number, rows: number, diff --git a/query-string/query-string.d.ts b/query-string/query-string.d.ts index ea797e3f8e..f2da7fef73 100644 --- a/query-string/query-string.d.ts +++ b/query-string/query-string.d.ts @@ -9,18 +9,18 @@ * Leading ? or # are ignored, so you can pass location.search or location.hash directly. * @param str */ -declare export function parse(str: string): any; +export declare function parse(str: string): any; /** * Stringify an object into a query string, sorting the keys. * * @param obj */ -declare export function stringify(obj: any, options?: { strict: boolean }): string; +export declare function stringify(obj: any, options?: { strict: boolean }): string; /** * Extract a query string from a URL that can be passed into .parse(). * * @param str */ -declare export function extract(str: string): string; +export declare function extract(str: string): string; diff --git a/rabbit.js/rabbit.js.d.ts b/rabbit.js/rabbit.js.d.ts index a0cbb02d77..3d24b8fa92 100644 --- a/rabbit.js/rabbit.js.d.ts +++ b/rabbit.js/rabbit.js.d.ts @@ -9,9 +9,9 @@ import events = require('events'); import stream = require('stream'); -declare export function createContext(url?: string): Context; +export declare function createContext(url?: string): Context; -declare export class Context extends events.EventEmitter { +export declare class Context extends events.EventEmitter { public socket(type: string, options?: SocketOptions): T; public close(callback: Function): any; } @@ -30,7 +30,7 @@ export interface Socket { close(): any; } -declare export class PubSocket extends stream.Writable implements Socket { +export declare class PubSocket extends stream.Writable implements Socket { constructor(channel: string, opts: SocketOptions); connect(destination: string, callback?: Function): any; setsockopt(opt: string, value: string): any; @@ -40,28 +40,28 @@ declare export class PubSocket extends stream.Writable implements Socket { publish(topic: string, chunk: Buffer, encoding?: string): any; } -declare export class SubSocket extends stream.Readable implements Socket { +export declare class SubSocket extends stream.Readable implements Socket { constructor(channel: string, opts: SocketOptions); connect(source: string, callback?: Function): any; setsockopt(opt: string, value: string): any; close(): any; } -declare export class PushSocket extends stream.Writable implements Socket { +export declare class PushSocket extends stream.Writable implements Socket { constructor(channel: string, opts: SocketOptions); connect(destination: string, callback?: Function): any; setsockopt(opt: string, value: string): any; close(): any; } -declare export class PullSocket extends stream.Readable implements Socket { +export declare class PullSocket extends stream.Readable implements Socket { constructor(channel: string, opts: SocketOptions); connect(source: string, callback?: Function): any; setsockopt(opt: string, value: string): any; close(): any; } -declare export class WorkerSocket extends stream.Readable implements Socket { +export declare class WorkerSocket extends stream.Readable implements Socket { constructor(channel: string, opts: SocketOptions); connect(source: string, callback?: Function): any; setsockopt(opt: string, value: string): any; @@ -77,7 +77,7 @@ export interface RequestMessage { content: any; } -declare export class ReqSocket extends stream.Duplex implements Socket { +export declare class ReqSocket extends stream.Duplex implements Socket { constructor(channel: string, opts: SocketOptions); connect(destination: string, callback?: Function): any; setsockopt(opt: string, value: string): any; @@ -86,7 +86,7 @@ declare export class ReqSocket extends stream.Duplex implements Socket { handleReply(msg: RequestMessage): any; } -declare export class RepSocket extends stream.Duplex implements Socket { +export declare class RepSocket extends stream.Duplex implements Socket { constructor(channel: string, opts: SocketOptions); connect(source: string, callback?: Function): any; setsockopt(opt: string, value: string): any; @@ -96,7 +96,7 @@ declare export class RepSocket extends stream.Duplex implements Socket { discard(): any; } -declare export class TaskSocket extends stream.Writable implements Socket { +export declare class TaskSocket extends stream.Writable implements Socket { constructor(channel: string, opts: SocketOptions); connect(destination: string, callback?: Function): any; setsockopt(opt: string, value: string): any; diff --git a/radius/radius.d.ts b/radius/radius.d.ts index 4c297f1eb3..8b8357bf95 100644 --- a/radius/radius.d.ts +++ b/radius/radius.d.ts @@ -9,36 +9,36 @@ /** * {@link https://github.com/retailnext/node-radius#radiusdecodeargs} for more info. **/ -declare export function decode(args: DecodeArgsWithSecret): RadiusPacket; +export declare function decode(args: DecodeArgsWithSecret): RadiusPacket; /** * {@link https://github.com/retailnext/node-radius#radiusdecode_without_secretargs} for more info. **/ -declare export function decode_without_secret(args: DecodeArgs): RadiusPacket; +export declare function decode_without_secret(args: DecodeArgs): RadiusPacket; /** * {@link https://github.com/retailnext/node-radius#radiusencodeargs} for more info. **/ -declare export function encode(args: EncodeArgs): Buffer; +export declare function encode(args: EncodeArgs): Buffer; /** * {@link https://github.com/retailnext/node-radius#radiusencode_responseargs} for more info. **/ -declare export function encode_response(args: EncodeResponseArgs): Buffer; +export declare function encode_response(args: EncodeResponseArgs): Buffer; /** * {@link https://github.com/retailnext/node-radius#radiusverify_responseargs} for more info. **/ -declare export function verify_response(args: VerifyResponseArgs): boolean; +export declare function verify_response(args: VerifyResponseArgs): boolean; /** * {@link https://github.com/retailnext/node-radius#radiusadd_dictionarypath} for more info. * * @param path Can be either a path to a file or a directory. **/ -declare export function add_dictionary(path: string): void; +export declare function add_dictionary(path: string): void; -declare export function unload_dictionaries(): void; +export declare function unload_dictionaries(): void; diff --git a/react-motion/react-motion.d.ts b/react-motion/react-motion.d.ts index 296e9dbfd6..4dcd936c99 100644 --- a/react-motion/react-motion.d.ts +++ b/react-motion/react-motion.d.ts @@ -39,7 +39,7 @@ interface MotionProps { style: any; } -declare export class Motion extends Component { } +export declare class Motion extends Component { } // === TransitionMotion === interface TransitionStyle { @@ -62,25 +62,25 @@ interface TransitionProps { willEnter?: (styleThatEntered: TransitionStyle) => PlainStyle; willLeave?: (styleThatLeft: TransitionStyle) => Style; } -declare export class TransitionMotion extends Component { } +export declare class TransitionMotion extends Component { } interface StaggeredMotionProps { defaultStyles?: Array; styles: (previousInterpolatedStyles?: Array) => Array
Shake it, baby