From 89fa98a7124bcdd9c37c4c75bbf026eb7a39726e Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Fri, 21 Oct 2016 09:14:57 -0700 Subject: [PATCH] WIP WIP WIP WIP WIP WIP WIP: Remove trailing newlines WIP WIP WIP WIP WIP WIP WIP WIP: All tests pass WIP WIP WIP --- 3d-bin-packing/index.d.ts | 3 +- _debugger/index.d.ts | 8 +- acc-wizard/acc-wizard-tests.ts | 2 +- acc-wizard/index.d.ts | 28 +- ace/index.d.ts | 60 +- ace/tests/ace-anchor-tests.ts | 66 +- acl/index.d.ts | 2 +- actioncable/index.d.ts | 2 +- adal/adal-angular.d.ts | 12 +- adal/index.d.ts | 10 +- adm-zip/adm-zip-tests.ts | 6 +- agenda/agenda-tests.ts | 8 +- agenda/index.d.ts | 10 +- ajv/index.d.ts | 8 +- alertify/alertify-tests.ts | 6 +- alt/index.d.ts | 164 +- amazon-product-api/index.d.ts | 6 +- amplitude-js/index.d.ts | 2 +- amqp-rpc/index.d.ts | 2 +- amqplib/index.d.ts | 2 +- angular-agility/index.d.ts | 88 +- angular-bootstrap-lightbox/index.d.ts | 28 +- angular-breadcrumb/index.d.ts | 7 +- angular-cookie/angular-cookie-tests.ts | 8 +- angular-deferred-bootstrap/index.d.ts | 10 +- angular-dialog-service/index.d.ts | 10 +- angular-environment/index.d.ts | 12 +- angular-es/index.d.ts | 14 +- angular-formly/angular-formly-tests.ts | 4 +- angular-growl-v2/angular-growl-v2-tests.ts | 2 +- angular-load/index.d.ts | 4 +- angular-locker/index.d.ts | 4 +- angular-material/angular-material-0.8.3.d.ts | 6 +- angular-material/angular-material-0.9.0.d.ts | 8 +- angular-material/angular-material-tests.ts | 8 +- angular-material/index.d.ts | 6 +- angular-media-queries/index.d.ts | 4 +- angular-media-queries/match-media-tests.ts | 14 +- angular-meteor/angular-meteor-tests.ts | 94 +- angular-meteor/index.d.ts | 12 +- angular-mocks/angular-mocks-tests.ts | 4 +- angular-mocks/index.d.ts | 4 +- angular-odata-resources/index.d.ts | 14 +- angular-resource/index.d.ts | 6 +- angular-route/index.d.ts | 6 +- angular-signalr-hub/index.d.ts | 2 +- angular-spinner/index.d.ts | 6 +- angular-ui-router/angular-ui-router-tests.ts | 6 +- angular-ui-router/index.d.ts | 6 +- angular-ui-sortable/index.d.ts | 2 +- angular-websocket/index.d.ts | 32 +- angular.throttle/index.d.ts | 2 +- angular/index.d.ts | 60 +- angular/legacy/angular-1.0.d.ts | 12 +- angular/legacy/angular-1.2.d.ts | 12 +- angular/legacy/angular-1.4.d.ts | 12 +- angular/legacy/angular-mocks-1.0.d.ts | 2 +- angular/legacy/angular-mocks-1.2.d.ts | 2 +- angular/legacy/angular-resource-1.2.d.ts | 17 +- angular/legacy/angular-resource-1.3.d.ts | 19 +- angular/legacy/angular-sanitize-1.2.d.ts | 2 +- angular/legacy/angular-scenario-1.0.d.ts | 4 +- angularfire/index.d.ts | 6 +- angulartics/index.d.ts | 18 +- ansi-styles/ansi-styles-tests.ts | 48 +- antd/index.d.ts | 1113 +- any-db/index.d.ts | 2 +- anydb-sql/index.d.ts | 188 +- aphrodite/index.d.ts | 2 +- apigee-access/index.d.ts | 14 +- apn/index.d.ts | 6 +- appframework/index.d.ts | 2 +- appletvjs/appletvjs-tests.ts | 66 +- appletvjs/index.d.ts | 2 +- applicationinsights-js/index.d.ts | 12 +- applicationinsights/index.d.ts | 16 +- arcgis-js-api/index.d.ts | 4 +- asana/index.d.ts | 6 +- asciify/index.d.ts | 4 +- assert/index.d.ts | 54 +- async/index.d.ts | 6 +- asyncblock/asyncblock-tests.ts | 4 +- atmosphere/index.d.ts | 32 +- atom/index.d.ts | 2298 +- auth0-js/index.d.ts | 2 +- auth0-lock/index.d.ts | 14 +- autobahn/index.d.ts | 4 +- autolinker/index.d.ts | 8 +- autoprefixer-core/index.d.ts | 2 +- avoscloud-sdk/index.d.ts | 10 +- aws-lambda/index.d.ts | 4 +- aws-sdk/aws-sdk-tests.ts | 58 +- aws-sdk/index.d.ts | 74 +- axe-core/index.d.ts | 148 +- axios/index.d.ts | 10 +- azure-mobile-apps/azure-mobile-apps-tests.ts | 6 +- azure-mobile-apps/index.d.ts | 12 +- .../AzureMobileServicesClient-tests.ts | 18 +- azure-mobile-services-client/index.d.ts | 10 +- azure-sb/index.d.ts | 8 +- azure/azure-tests.ts | 4 +- azure/index.d.ts | 36 +- babel-generator/index.d.ts | 4 +- babel-types/index.d.ts | 2 +- babylonjs/index.d.ts | 4 +- babyparse/babyparse-tests.ts | 8 +- babyparse/index.d.ts | 12 +- backbone-associations/index.d.ts | 2 +- backbone-fetch-cache/index.d.ts | 34 +- backbone-relational/index.d.ts | 144 +- .../backbone.layoutmanager-tests.ts | 2 +- backbone.layoutmanager/index.d.ts | 20 +- backbone.marionette/index.d.ts | 12 +- backbone.paginator/index.d.ts | 36 +- backbone/index.d.ts | 12 +- backgrid/backgrid-tests.ts | 18 +- backgrid/index.d.ts | 4 +- baconjs/index.d.ts | 500 +- base-x/index.d.ts | 2 +- base16/index.d.ts | 106 +- base64url/index.d.ts | 20 +- bazinga-translator/index.d.ts | 2 +- bcrypt/index.d.ts | 2 +- big.js/big.js-tests.ts | 2 +- big.js/index.d.ts | 2 +- bignum/index.d.ts | 150 +- bingmaps/Microsoft.Maps.Search.d.ts | 30 +- bingmaps/Microsoft.Maps.Traffic.d.ts | 2 +- bingmaps/index.d.ts | 6 +- bip21/bip21-tests.ts | 5 +- bip21/index.d.ts | 4 +- blessed/index.d.ts | 940 +- blissfuljs/index.d.ts | 140 +- blob-stream/index.d.ts | 2 +- blocks/blocks-tests.ts | 6 +- blocks/index.d.ts | 210 +- bluebird/bluebird-2.0.d.ts | 8 +- bluebird/index.d.ts | 2 +- bootstrap-datepicker/index.d.ts | 2 +- bootstrap-fileinput/index.d.ts | 6 +- bootstrap-maxlength/index.d.ts | 58 +- bootstrap-notify/index.d.ts | 3 - bootstrap-slider/index.d.ts | 26 +- bootstrap-switch/bootstrap-switch-tests.ts | 4 +- bootstrap-switch/index.d.ts | 2 +- .../bootstrap-touchspin-tests.ts | 2 +- bootstrap.v3.datetimepicker/index.d.ts | 4 +- bootstrap/index.d.ts | 2 +- bounce.js/index.d.ts | 70 +- braintree-web/index.d.ts | 2 +- breeze/index.d.ts | 26 +- browser-harness/index.d.ts | 116 +- browser-sync/index.d.ts | 3 +- bson/index.d.ts | 4 +- bucks/index.d.ts | 8 +- buffer-compare/index.d.ts | 2 +- bugsnag/index.d.ts | 6 +- bull/index.d.ts | 12 +- bunyan/index.d.ts | 4 +- business-rules-engine/Utils.d.ts | 4 +- business-rules-engine/Validation.d.ts | 32 +- business-rules-engine/index.d.ts | 28 +- business-rules-engine/node-validators.d.ts | 8 +- byline/index.d.ts | 4 +- bytebuffer/index.d.ts | 3 +- bytes/index.d.ts | 8 +- cachefactory/index.d.ts | 4 +- cal-heatmap/index.d.ts | 33 +- calq/index.d.ts | 38 +- camel-case/camel-case-tests.ts | 2 +- canvas-gauges/index.d.ts | 238 +- canvasjs/index.d.ts | 4 +- cash/index.d.ts | 10 +- casperjs/index.d.ts | 4 +- cassandra-driver/index.d.ts | 40 +- chai-enzyme/index.d.ts | 4 +- chalk/index.d.ts | 2 +- chance/index.d.ts | 2 +- chartjs/index.d.ts | 4 +- cheap-ruler/index.d.ts | 36 +- cheerio/index.d.ts | 6 +- chocolatechipjs/chocolatechipjs-tests.ts | 14 +- chocolatechipjs/index.d.ts | 40 +- chokidar/index.d.ts | 54 +- chroma-js/chroma-js-tests.ts | 2 +- chroma-js/index.d.ts | 16 +- chrome/chrome-app.d.ts | 106 +- chrome/chrome-cast.d.ts | 154 +- chrome/index.d.ts | 4 +- chui/chui-tests.ts | 10 +- chui/index.d.ts | 4 +- chunked-dc/index.d.ts | 8 +- ckeditor/index.d.ts | 60 +- classnames/index.d.ts | 2 +- cldrjs/cldr.js-supplemental.d.ts | 4 +- cldrjs/index.d.ts | 14 +- clone/index.d.ts | 2 +- co-views/index.d.ts | 14 +- codemirror/codemirror-runmode.d.ts | 2 +- codemirror/index.d.ts | 16 +- colors/index.d.ts | 2 +- commander/index.d.ts | 86 +- commangular/commangular-mock.d.ts | 32 +- commangular/index.d.ts | 38 +- common-tags/index.d.ts | 4 +- commonmark/index.d.ts | 8 +- compose-function/index.d.ts | 8 +- compression/index.d.ts | 2 +- concaveman/index.d.ts | 4 +- confit/index.d.ts | 6 +- .../connect-livereload-tests.ts | 10 +- connect/connect-tests.ts | 2 +- constant-case/constant-case-tests.ts | 2 +- consul/index.d.ts | 2 +- cookiejs/index.d.ts | 24 +- cookies/cookies-tests.ts | 8 +- cookies/index.d.ts | 4 +- copy-paste/index.d.ts | 10 +- cordova-ionic/keyboard.d.ts | 4 +- cordova-plugin-background-mode/index.d.ts | 13 +- cordova-plugin-battery-status/index.d.ts | 4 +- cordova-plugin-camera/index.d.ts | 6 +- cordova-plugin-contacts/index.d.ts | 4 +- cordova-plugin-device-motion/index.d.ts | 2 +- cordova-plugin-device-orientation/index.d.ts | 10 +- cordova-plugin-device/index.d.ts | 7 +- cordova-plugin-dialogs/index.d.ts | 8 +- cordova-plugin-email-composer/index.d.ts | 22 +- cordova-plugin-file-transfer/index.d.ts | 2 +- cordova-plugin-file/index.d.ts | 6 +- cordova-plugin-globalization/index.d.ts | 6 +- cordova-plugin-inappbrowser/index.d.ts | 2 +- cordova-plugin-keyboard/index.d.ts | 20 +- cordova-plugin-media-capture/index.d.ts | 6 +- cordova-plugin-media/index.d.ts | 4 +- .../cordova-plugin-ms-adal-tests.ts | 2 +- cordova-plugin-ms-adal/index.d.ts | 44 +- cordova-plugin-network-information/index.d.ts | 8 +- cordova-plugin-ouralabs/index.d.ts | 2 +- cordova-plugin-qrscanner/index.d.ts | 28 +- cordova-plugin-splashscreen/index.d.ts | 4 +- cordova-plugin-websql/index.d.ts | 4 +- cordova-plugin-x-socialsharing/index.d.ts | 3 +- cordova/index.d.ts | 6 +- cordovarduino/index.d.ts | 14 +- core-js/core-js-tests.ts | 8 +- core-js/index.d.ts | 5 +- couchbase/couchbase-tests.ts | 2 +- couchbase/index.d.ts | 4 +- cradle/index.d.ts | 2 +- credential/index.d.ts | 2 +- cross-storage/index.d.ts | 32 +- crossfilter/index.d.ts | 16 +- cryptojs/index.d.ts | 606 +- css/index.d.ts | 30 +- csv-parse/index.d.ts | 32 +- cucumber/cucumber-tests.ts | 14 +- cucumber/index.d.ts | 52 +- cuid/index.d.ts | 3 +- d3-dsv/v0/index.d.ts | 12 +- d3-selection/index.d.ts | 6 +- d3-shape/index.d.ts | 8 +- d3kit/d3kit-v1.1.0.d.ts | 16 +- d3pie/index.d.ts | 46 +- dat-gui/index.d.ts | 22 +- data-driven/index.d.ts | 2 +- datatables-buttons/index.d.ts | 10 +- date.format.js/index.d.ts | 6 +- datejs/datejs-tests.ts | 2 +- db-migrate-base/db-migrate-base-tests.ts | 8 +- db-migrate-pg/db-migrate-pg-tests.ts | 8 +- db.js/index.d.ts | 2 +- dc/dc-1.6.0.d.ts | 28 +- dc/index.d.ts | 2 +- debounce/index.d.ts | 2 +- debug/index.d.ts | 18 +- denodeify/index.d.ts | 2 +- depd/depd-tests.ts | 4 +- deployjava/deployJava-tests.ts | 10 +- devexpress-web/devexpress-web-tests.ts | 2 +- devexpress-web/index.d.ts | 694 +- devextreme/devextreme-15.1.3.d.ts | 28 +- devextreme/devextreme-15.1.4.d.ts | 26 +- devextreme/devextreme-15.1.5.d.ts | 26 +- devextreme/devextreme-15.1.6.d.ts | 26 +- devextreme/devextreme-15.1.7.d.ts | 28 +- devextreme/devextreme-15.1.8.d.ts | 30 +- devextreme/devextreme-15.2.4.d.ts | 34 +- devextreme/devextreme-15.2.5.d.ts | 36 +- devextreme/devextreme-15.2.7.d.ts | 36 +- devextreme/devextreme-15.2.9.d.ts | 60 +- devextreme/index.d.ts | 60 +- devtools-detect/index.d.ts | 2 +- dhtmlxgantt/index.d.ts | 24 +- dhtmlxscheduler/index.d.ts | 4 +- diff-match-patch/diff-match-patch-tests.ts | 2 +- diff/index.d.ts | 30 +- diff2html/index.d.ts | 4 +- doccookies/docCookies-tests.ts | 2 +- doccookies/index.d.ts | 18 +- dock-spawn/index.d.ts | 36 +- docopt/index.d.ts | 10 +- doctrine/index.d.ts | 38 +- documentdb-server/documentdb-server-tests.ts | 30 +- documentdb-server/index.d.ts | 50 +- documentdb/documentdb-tests.ts | 10 +- documentdb/index.d.ts | 26 +- dojo/dijit.d.ts | 51996 ++++++++-------- dojo/doh.d.ts | 2 + dojo/dojox.NodeList.d.ts | 2 + dojo/dojox.analytics.d.ts | 2 + dojo/dojox.app.d.ts | 2 + dojo/dojox.atom.d.ts | 2 + dojo/dojox.av.d.ts | 2 + dojo/dojox.calc.d.ts | 721 +- dojo/dojox.calendar.d.ts | 1773 +- dojo/dojox.charting.d.ts | 2 + dojo/dojox.collections.d.ts | 2 + dojo/dojox.color.d.ts | 2 + dojo/dojox.css3.d.ts | 2 + dojo/dojox.data.d.ts | 2 + dojo/dojox.date.d.ts | 2 + dojo/dojox.dgauges.d.ts | 2 + dojo/dojox.dnd.d.ts | 2 + dojo/dojox.drawing.d.ts | 2 + dojo/dojox.dtl.d.ts | 2 + dojo/dojox.editor.d.ts | 2 + dojo/dojox.embed.d.ts | 2 + dojo/dojox.encoding.d.ts | 2 + dojo/dojox.flash.d.ts | 2 + dojo/dojox.form.d.ts | 2 + dojo/dojox.fx.d.ts | 2 + dojo/dojox.gantt.d.ts | 2 + dojo/dojox.gauges.d.ts | 2 + dojo/dojox.geo.d.ts | 2 + dojo/dojox.gesture.d.ts | 2 + dojo/dojox.gfx.d.ts | 2 + dojo/dojox.gfx3d.d.ts | 2 + dojo/dojox.grid.d.ts | 2 + dojo/dojox.help.d.ts | 2 + dojo/dojox.highlight.d.ts | 2 + dojo/dojox.html.d.ts | 2 + dojo/dojox.image.d.ts | 2 + dojo/dojox.io.d.ts | 2 + dojo/dojox.jq.d.ts | 2 + dojo/dojox.json.d.ts | 2 + dojo/dojox.jsonPath.d.ts | 2 + dojo/dojox.lang.d.ts | 2 + dojo/dojox.layout.d.ts | 2 + dojo/dojox.main.d.ts | 2 + dojo/dojox.math.d.ts | 2 + dojo/dojox.mdnd.d.ts | 2 + dojo/dojox.mobile.d.ts | 2 + dojo/dojox.mvc.d.ts | 2 + dojo/dojox.rails.d.ts | 2 + dojo/dojox.robot.d.ts | 2 + dojo/dojox.rpc.d.ts | 2 + dojo/dojox.secure.d.ts | 2 + dojo/dojox.sketch.d.ts | 2 + dojo/dojox.socket.d.ts | 2 + dojo/dojox.sql.d.ts | 2 + dojo/dojox.storage.d.ts | 2 + dojo/dojox.string.d.ts | 2 + dojo/dojox.testing.d.ts | 2 + dojo/dojox.timing.d.ts | 2 + dojo/dojox.treemap.d.ts | 2 + dojo/dojox.uuid.d.ts | 2 + dojo/dojox.validate.d.ts | 2 + dojo/dojox.widget.d.ts | 2 + dojo/dojox.xml.d.ts | 2 + dompurify/index.d.ts | 36 +- domready/index.d.ts | 2 +- dot-case/dot-case-tests.ts | 2 +- dot-object/index.d.ts | 4 +- draft-js/draft-js-0.2.2.d.ts | 268 +- draft-js/index.d.ts | 83 +- dragula/index.d.ts | 4 +- dropboxjs/index.d.ts | 8 +- dropzone/index.d.ts | 280 +- dsv/index.d.ts | 12 +- durandal/durandal-1.x.d.ts | 29 +- dustjs-linkedin/dustjs-linkedin-tests.ts | 2 +- dustjs-linkedin/index.d.ts | 16 +- dva/index.d.ts | 22 +- dw-bxslider-4/index.d.ts | 252 +- dygraphs/dygraphs-tests.ts | 10 +- dygraphs/index.d.ts | 8 +- dynatable/index.d.ts | 2 +- easeljs/index.d.ts | 90 +- easy-jsend/index.d.ts | 4 +- easy-table/index.d.ts | 2 +- easy-xapi-supertest/index.d.ts | 2 +- easy-xapi/index.d.ts | 4 +- easystarjs/index.d.ts | 11 +- echarts/index.d.ts | 150 +- ej.web.all/ej.web.all-tests.ts | 154 +- ej.web.all/index.d.ts | 2 +- elastic.js/index.d.ts | 2 +- elasticsearch/index.d.ts | 50 +- electron-builder/index.d.ts | 2 +- electron-devtools-installer/index.d.ts | 4 +- electron-notifications/index.d.ts | 6 +- electron-notify/index.d.ts | 56 +- electron-packager/index.d.ts | 2 +- electron/index.d.ts | 16 +- ember/ember-1.11.3.d.ts | 10 +- ember/index.d.ts | 28 +- emissary/index.d.ts | 54 +- empower/index.d.ts | 2 +- emscripten/index.d.ts | 6 +- encoding-japanese/encoding-japanese-tests.ts | 2 +- ent/index.d.ts | 2 +- eonasdan-bootstrap-datetimepicker/index.d.ts | 4 +- error-stack-parser/index.d.ts | 2 +- es6-promise/index.d.ts | 2 +- es6-shim/index.d.ts | 4 +- esprima-walk/index.d.ts | 8 +- estraverse/index.d.ts | 2 +- evaporate/index.d.ts | 6 +- event-stream/event-stream-tests.ts | 6 +- event-stream/index.d.ts | 26 +- evernote/index.d.ts | 18 +- expectations/index.d.ts | 56 +- express-brute-mongo/index.d.ts | 2 +- express-graphql/index.d.ts | 2 +- express-jwt/index.d.ts | 2 +- express-minify/express-minify-tests.ts | 10 +- express-myconnection/index.d.ts | 2 +- express-openapi/index.d.ts | 350 +- express-serve-static-core/index.d.ts | 244 + express-session/index.d.ts | 2 +- express-validator/express-validator-tests.ts | 2 +- express-validator/index.d.ts | 62 +- extjs/index.d.ts | 9206 +-- eyes/eyes-tests.ts | 6 +- fabric/index.d.ts | 24 +- facebook-js-sdk/index.d.ts | 6 +- facebook-pixel/index.d.ts | 140 +- faker/index.d.ts | 2 +- falcor/index.d.ts | 2 +- famous/famous-tests.ts | 16 +- famous/index.d.ts | 210 +- farbtastic/farbtastic-tests.ts | 9 +- fast-json-patch/index.d.ts | 46 +- fast-simplex-noise/index.d.ts | 4 +- fast-stats/index.d.ts | 2 +- fb/index.d.ts | 84 +- fbemitter/fbemitter-tests.ts | 10 +- fetch-mock/index.d.ts | 12 +- ffi/index.d.ts | 8 +- file-saver/index.d.ts | 4 +- file-type/index.d.ts | 8 +- file-url/index.d.ts | 2 +- filesize/filesize-tests.ts | 22 +- filesystem/filesystem-tests.ts | 6 +- filesystem/index.d.ts | 192 +- filewriter/index.d.ts | 24 +- finch/index.d.ts | 8 +- firebase-client/firebase-client-tests.ts | 14 +- firebase-client/index.d.ts | 32 +- firebase/firebase-simplelogin.d.ts | 36 +- firebase/firebase-tests.ts | 24 +- firebase/index.d.ts | 20 +- firefox/index.d.ts | 32 +- first-mate/index.d.ts | 2 +- fixed-data-table/fixed-data-table-0.4.7.d.ts | 2 +- flexslider/flexSlider-tests.ts | 2 +- flexslider/index.d.ts | 12 +- flickity/index.d.ts | 2 +- flight/flight-tests.ts | 12 +- flight/index.d.ts | 2 +- flightplan/flightplan-tests.ts | 130 +- flot/index.d.ts | 4 +- fluent-ffmpeg/index.d.ts | 466 +- flux-standard-action/index.d.ts | 4 +- flux/flux-tests.ts | 4 +- fontoxml/fontoxml-tests.ts | 2 +- fontoxml/index.d.ts | 18 +- foundation-sites/index.d.ts | 170 +- foundation/index.d.ts | 448 +- fpsmeter/index.d.ts | 4 +- freedom/freedom-core-env.d.ts | 2 +- freedom/freedom-module-env.d.ts | 2 +- freedom/index.d.ts | 22 +- fromnow/index.d.ts | 8 +- fs-ext/fs-ext-tests.ts | 6 +- fs-ext/index.d.ts | 14 +- .../fs-extra-promise-es6-tests.ts | 2 +- fs-extra-promise-es6/index.d.ts | 2 +- fs-extra/index.d.ts | 16 +- ftdomdelegate/index.d.ts | 19 +- ftp/ftp-tests.ts | 6 +- ftpd/ftpd-tests.ts | 4 +- fullcalendar/v1/fullCalendar-tests.ts | 16 +- fullcalendar/v1/fullCalendar.d.ts | 16 +- fuse/index.d.ts | 2 +- gae.channel.api/index.d.ts | 14 +- gamepad/gamepad-tests.ts | 6 +- gamepad/index.d.ts | 28 +- gamequery/gamequery-tests.ts | 2 +- gamequery/index.d.ts | 38 +- gapi.auth2/index.d.ts | 2 +- gapi.pagespeedonline/index.d.ts | 6 +- gapi.translate/index.d.ts | 8 +- gapi.urlshortener/index.d.ts | 2 +- gapi.youtube/index.d.ts | 66 +- gapi.youtubeanalytics/index.d.ts | 2 +- gapi/index.d.ts | 26 +- geojson/geojson-tests.ts | 32 +- geojson/index.d.ts | 80 +- geojson2osm/index.d.ts | 2 +- geometry-dom/index.d.ts | 4 +- get-port/index.d.ts | 2 +- gijgo/index.d.ts | 2 +- giraffe/giraffe-tests.ts | 2 +- giraffe/index.d.ts | 100 +- gl-matrix/gl-matrix-legacy.d.ts | 23 +- glob/index.d.ts | 2 +- globalize/globalize-tests.ts | 14 +- globalize/index.d.ts | 6 +- go/goJS-tests.ts | 2 +- go/index.d.ts | 54 +- .../google-apps-script.base.d.ts | 8 +- .../google-apps-script.cache.d.ts | 2 +- .../google-apps-script.calendar.d.ts | 12 +- .../google-apps-script.charts.d.ts | 18 +- .../google-apps-script.contacts.d.ts | 14 +- .../google-apps-script.content.d.ts | 4 +- .../google-apps-script.document.d.ts | 18 +- .../google-apps-script.drive.d.ts | 6 +- .../google-apps-script.forms.d.ts | 10 +- .../google-apps-script.gmail.d.ts | 2 +- .../google-apps-script.groups.d.ts | 4 +- .../google-apps-script.html.d.ts | 4 +- .../google-apps-script.jdbc.d.ts | 2 +- .../google-apps-script.language.d.ts | 2 +- .../google-apps-script.lock.d.ts | 2 +- .../google-apps-script.mail.d.ts | 2 +- .../google-apps-script.maps.d.ts | 18 +- .../google-apps-script.optimization.d.ts | 6 +- .../google-apps-script.properties.d.ts | 2 +- .../google-apps-script.script.d.ts | 14 +- .../google-apps-script.sites.d.ts | 6 +- .../google-apps-script.spreadsheet.d.ts | 6 +- google-apps-script/google-apps-script.ui.d.ts | 10 +- .../google-apps-script.url-fetch.d.ts | 2 +- .../google-apps-script.utilities.d.ts | 8 +- .../google-apps-script.xml-service.d.ts | 4 +- google-drive-realtime-api/index.d.ts | 314 +- google-earth/index.d.ts | 182 +- google-maps/google-maps-tests.ts | 2 +- google.analytics/index.d.ts | 2 +- google.geolocation/index.d.ts | 2 +- google.picker/index.d.ts | 82 +- google.visualization/index.d.ts | 36 +- .../google.maps.infobubble-tests.ts | 2 +- googlemaps.infobubble/index.d.ts | 2 +- googlemaps/google.maps-tests.ts | 8 +- googlemaps/index.d.ts | 37 +- graphql/index.d.ts | 291 +- graphviz/graphviz-tests.ts | 2 +- gravatar/index.d.ts | 2 +- grecaptcha/index.d.ts | 9 +- greensock/index.d.ts | 42 +- gridfs-stream/index.d.ts | 2 +- gridstack/index.d.ts | 58 +- grunt/gruntjs-tests.ts | 4 +- grunt/index.d.ts | 428 +- gulp-coffeeify/index.d.ts | 2 +- gulp-filter/index.d.ts | 2 +- gulp-help-doc/index.d.ts | 12 +- gulp-if/gulp-if-tests.ts | 6 +- gulp-if/index.d.ts | 24 +- gulp-insert/index.d.ts | 3 +- gulp-jspm/gulp-jspm-tests.ts | 2 +- gulp-load-plugins/index.d.ts | 2 +- gulp-plumber/gulp-plumber-tests.ts | 6 +- gulp-plumber/index.d.ts | 6 +- gulp-replace/index.d.ts | 2 +- gulp-sass/gulp-sass-tests.ts | 2 +- gulp-sass/index.d.ts | 2 +- gulp-task-listing/index.d.ts | 22 +- gulp-tslint/index.d.ts | 12 +- halfred/index.d.ts | 6 +- hammerjs/index.d.ts | 390 +- handlebars/index.d.ts | 18 +- hapi/hapi-8.2.0.d.ts | 12 +- hapi/index.d.ts | 12 +- harmony-proxy/index.d.ts | 2 +- hashmap/hashmap-1.1.d.ts | 18 +- hashmap/index.d.ts | 30 +- hashset/index.d.ts | 3 +- hashtable/index.d.ts | 3 +- he/he-tests.ts | 20 +- hellojs/index.d.ts | 20 +- helmet/index.d.ts | 64 +- heremaps/index.d.ts | 146 +- highland/index.d.ts | 6 +- highlight.js/highlightjs-7.5.0.d.ts | 49 +- highlight.js/index.d.ts | 91 +- history.js/history-tests.ts | 4 +- history/index.d.ts | 8 +- history/lib/actions.d.ts | 2 +- hopscotch/hopscotch-tests.ts | 2 +- hopscotch/index.d.ts | 20 +- html-entities/html-entities-tests.ts | 10 +- html-to-text/index.d.ts | 6 +- html2canvas/index.d.ts | 2 +- http-status/index.d.ts | 2 +- hystrixjs/index.d.ts | 54 +- i18n/i18n-node-tests.ts | 6 +- i18n/index.d.ts | 4 +- i18next-sprintf-postprocessor/index.d.ts | 2 +- i18next-xhr-backend/index.d.ts | 18 +- i18next/index.d.ts | 4 +- iban/index.d.ts | 6 +- ibm-mobilefirst/ibm-mobilefirst-tests.ts | 2 +- icepick/icepick-tests.ts | 2 +- imagemagick-native/index.d.ts | 2 +- imagemagick/index.d.ts | 4 +- imagemapster/index.d.ts | 2 +- imap/index.d.ts | 2 +- imgur-rest-api/index.d.ts | 6 +- immutable/index.d.ts | 94 +- ini/index.d.ts | 4 +- inquirer/index.d.ts | 2 +- insight/index.d.ts | 46 +- interact.js/index.d.ts | 16 +- intercomjs/index.d.ts | 6 +- intro.js/intro.js-tests.ts | 2 +- invariant/index.d.ts | 4 +- inversify-binding-decorators/index.d.ts | 2 +- inversify-inject-decorators/index.d.ts | 2 +- ion.rangeslider/ion.rangeSlider-tests.ts | 2 +- ionic/index.d.ts | 14 +- ionic/ionic-tests.ts | 2 +- ioredis/index.d.ts | 2 +- ip/index.d.ts | 12 +- irc/index.d.ts | 10 +- is-lower-case/index.d.ts | 4 +- is-url/index.d.ts | 2 +- is/index.d.ts | 6 +- iso8601-localizer/index.d.ts | 2 +- isomorphic-fetch/index.d.ts | 28 +- isomorphic-fetch/isomorphic-fetch-tests.ts | 28 +- istanbul-middleware/index.d.ts | 28 +- jake/index.d.ts | 124 +- jasmine-ajax/index.d.ts | 2 +- jasmine-es6-promise-matchers/index.d.ts | 4 +- jasmine-jquery/index.d.ts | 42 +- jasmine-matchers/index.d.ts | 36 +- jasmine-node/index.d.ts | 20 +- .../jasmine-promise-matchers-tests.ts | 4 +- jasmine/index.d.ts | 8 +- java-applet/index.d.ts | 10 +- java-applet/java-applet-tests.ts | 2 +- java/java-tests.ts | 2 +- javascript-bignum/index.d.ts | 2 +- jbinary/index.d.ts | 35 +- jdataview/index.d.ts | 106 +- jee-jsf/index.d.ts | 12 +- jest/index.d.ts | 8 +- jfp/index.d.ts | 2 +- jodata/index.d.ts | 7 +- jodata/joData-tests.ts | 12 +- johnny-five/index.d.ts | 8 +- joi/index.d.ts | 2 +- joi/joi-6.5.0.d.ts | 16 +- jpm/index.d.ts | 38 +- jqgrid/index.d.ts | 52 +- jqrangeslider/index.d.ts | 2 +- jquery-ajax-chain/index.d.ts | 2 +- jquery-ajax-chain/jquery-ajax-chain-tests.ts | 2 +- jquery-backstretch/index.d.ts | 28 +- jquery-cropbox/index.d.ts | 22 +- jquery-cropbox/jquery-cropbox-tests.ts | 6 +- jquery-galleria/index.d.ts | 2 +- jquery-jsonrpcclient/index.d.ts | 4 +- jquery-mousewheel/index.d.ts | 2 +- jquery-sortable/index.d.ts | 2 +- jquery-steps/index.d.ts | 6 +- jquery-truncate-html/index.d.ts | 8 +- jquery-validation-unobtrusive/index.d.ts | 2 +- jquery.address/index.d.ts | 20 +- jquery.ajaxfile/index.d.ts | 2 +- jquery.are-you-sure/index.d.ts | 8 +- jquery.blockui/index.d.ts | 28 +- jquery.cleditor/index.d.ts | 2 +- jquery.color/index.d.ts | 2 +- jquery.colorbox/index.d.ts | 6 +- jquery.colorpicker/index.d.ts | 14 +- jquery.cookie/index.d.ts | 6 +- jquery.customselect/index.d.ts | 2 +- jquery.cycle/index.d.ts | 6 +- jquery.cycle/jquery.cycle-tests.ts | 6 +- jquery.datatables/index.d.ts | 8 +- .../jquery.dataTables-1.9.4.d.ts | 234 +- jquery.datatables/jquery.dataTables-tests.ts | 6 +- jquery.dropotron/index.d.ts | 42 +- jquery.dropotron/jquery.dropotron-tests.ts | 2 +- jquery.dynatree/index.d.ts | 66 +- jquery.fancytree/index.d.ts | 4 +- jquery.fancytree/jquery.fancytree-tests.ts | 8 +- jquery.fileupload/index.d.ts | 12 +- jquery.fileupload/jquery.fileupload-tests.ts | 6 +- jquery.flagstrap/index.d.ts | 12 +- jquery.flagstrap/jquery.flagstrap-tests.ts | 12 +- jquery.form/jquery.form-tests.ts | 150 +- jquery.gridster/gridster-tests.ts | 4 +- jquery.gridster/index.d.ts | 28 +- jquery.joyride/index.d.ts | 7 +- jquery.jsignature/index.d.ts | 4 +- jquery.jsignature/jquery.jsignature-tests.ts | 4 +- jquery.leanmodal/index.d.ts | 10 +- jquery.noty/index.d.ts | 10 +- jquery.pjax/index.d.ts | 4 +- jquery.placeholder/index.d.ts | 4 +- jquery.pnotify/index.d.ts | 8 +- .../jquery.prettyphoto-tests.ts | 2 +- jquery.qrcode/index.d.ts | 40 +- jquery.rowgrid/jquery.rowGrid-tests.ts | 4 +- jquery.scrollto/index.d.ts | 6 +- jquery.slimscroll/index.d.ts | 26 +- jquery.soap/index.d.ts | 74 +- jquery.sortelements/index.d.ts | 2 +- jquery.timeago/index.d.ts | 2 +- jquery.timepicker/index.d.ts | 2 +- jquery.tinycarousel/index.d.ts | 2 +- .../jquery.tinycarousel-tests.ts | 2 +- jquery.tooltipster/index.d.ts | 4 +- jquery.ui.datetimepicker/index.d.ts | 8 +- .../jquery.ui.datetimepicker-tests.ts | 2 +- jquery.ui.layout/index.d.ts | 6 +- jquery.validation/index.d.ts | 26 +- jquery.validation/jquery.validation-tests.ts | 1 - jquery.window/jquery.window-tests.ts | 6 +- jquery/index.d.ts | 322 +- jquerymobile/index.d.ts | 2 +- jqueryui/index.d.ts | 2 +- js-beautify/index.d.ts | 29 +- js-combinatorics/index.d.ts | 58 +- js-data-angular/index.d.ts | 10 +- js-data-http/index.d.ts | 24 +- js-data/index.d.ts | 262 +- js-data/legacy/index.d.ts | 254 +- js-git/index.d.ts | 78 +- js-priority-queue/index.d.ts | 8 +- js-quantities/index.d.ts | 38 +- js-schema/index.d.ts | 23 +- jscrollpane/index.d.ts | 48 +- jsdom/index.d.ts | 4 +- jsend/index.d.ts | 8 +- jsfl/index.d.ts | 226 +- jsmockito/index.d.ts | 4 +- jsnlog/index.d.ts | 14 +- jsnox/index.d.ts | 34 +- jsnox/jsnox-tests.ts | 2 +- json-editor/index.d.ts | 8 +- json5/index.d.ts | 2 +- jsoneditoronline/index.d.ts | 6 +- jsoneditoronline/jsoneditoronline-tests.ts | 12 +- jsonwebtoken/jsonwebtoken-tests.ts | 14 +- jspdf/index.d.ts | 270 +- jsplumb/index.d.ts | 2 +- jssha/index.d.ts | 18 +- jssha/jssha-1.6.0.d.ts | 10 +- jstorage/index.d.ts | 2 +- jstree/index.d.ts | 6 +- jsuite/index.d.ts | 2 +- jszip/index.d.ts | 2 +- jug/index.d.ts | 6 +- jwplayer/index.d.ts | 2 +- jwt-client/index.d.ts | 24 +- jwt-decode/jwt-decode-tests.ts | 4 +- jwt-simple/jwt-simple-0.2.0.d.ts | 4 +- karma/index.d.ts | 4 +- karma/karma-tests.ts | 2 +- kefir/index.d.ts | 2 +- kendo-ui/index.d.ts | 16 +- keyboardjs/index.d.ts | 6 +- keymaster/index.d.ts | 8 +- kii-cloud-sdk/index.d.ts | 2 +- kineticjs/index.d.ts | 40 +- klaw/index.d.ts | 38 +- knockback/index.d.ts | 6 +- knockout-amd-helpers/index.d.ts | 3 +- knockout-paging/index.d.ts | 6 +- .../knockout.deferred.updates-tests.ts | 2 +- knockout.es5/knockout.es5-tests.ts | 2 +- knockout.kogrid/index.d.ts | 16 +- knockout.mapper/index.d.ts | 2 +- knockout.projections/index.d.ts | 2 +- knockout.validation/index.d.ts | 5 +- knockout.viewmodel/index.d.ts | 2 +- knockout/index.d.ts | 10 +- knockstrap/index.d.ts | 8 +- ko.plus/index.d.ts | 2 +- ko.plus/ko.plus-tests.ts | 12 +- koa-compress/index.d.ts | 2 +- koa-hbs/index.d.ts | 20 +- koa-json-error/index.d.ts | 2 +- koa-json/index.d.ts | 4 +- koa-mount/index.d.ts | 2 +- koa-router/index.d.ts | 6 +- koa-static/index.d.ts | 2 +- kolite/knockout.activity.d.ts | 8 +- kolite/knockout.command.d.ts | 4 +- kolite/knockout.dirtyFlag.d.ts | 2 +- konami.js/index.d.ts | 4 +- ladda/index.d.ts | 6 +- later/index.d.ts | 2 +- ldapjs/index.d.ts | 2 +- leaflet-markercluster/index.d.ts | 14 +- leaflet.awesome-markers/index.d.ts | 4 +- leaflet.fullscreen/index.d.ts | 12 +- leaflet/leaflet-0.7.d.ts | 5 +- leapmotionts/index.d.ts | 8 +- less-middleware/index.d.ts | 2 +- less/index.d.ts | 2 +- lestate/index.d.ts | 4 +- level-sublevel/index.d.ts | 2 +- levelup/index.d.ts | 34 +- levelup/levelup-tests.ts | 2 +- lls/lls-tests.ts | 6 +- lobibox/index.d.ts | 136 +- localforage/localForage-tests.ts | 8 +- lockr/index.d.ts | 44 +- locutus/index.d.ts | 686 +- lodash/index.d.ts | 22 +- lodash/lodash-3.10.d.ts | 180 +- log4javascript/index.d.ts | 2 +- log4js/index.d.ts | 14 +- logat/index.d.ts | 8 +- logg/index.d.ts | 28 +- logg/logg-tests.ts | 6 +- loggly/index.d.ts | 2 +- loglevel/index.d.ts | 42 +- lokijs/index.d.ts | 14 +- long/index.d.ts | 5 +- lovefield/index.d.ts | 196 +- lru-cache/index.d.ts | 4 +- lunr/index.d.ts | 240 +- lwip/index.d.ts | 168 +- mailcheck/index.d.ts | 4 +- mailparser/index.d.ts | 2 +- mapbox-gl/index.d.ts | 6 +- mapbox/index.d.ts | 40 +- mapsjs/index.d.ts | 994 +- maquette/index.d.ts | 16 +- maquette/maquette-tests.ts | 2 +- mariasql/index.d.ts | 78 +- marked/index.d.ts | 12 +- marker-animate-unobtrusive/index.d.ts | 6 +- markerclustererplus/index.d.ts | 198 +- masonry-layout/index.d.ts | 2 +- material-design-lite/index.d.ts | 42 +- material-ui/index.d.ts | 70 +- material-ui/legacy/material-ui-0.11.1.d.ts | 82 +- material-ui/legacy/material-ui-0.12.1.d.ts | 66 +- material-ui/legacy/material-ui-0.13.4.d.ts | 68 +- material-ui/legacy/material-ui-0.14.4.d.ts | 82 +- material-ui/legacy/material-ui-0.15.0.d.ts | 42 +- material-ui/legacy/material-ui-0.15.1.d.ts | 70 +- materialize-css/index.d.ts | 34 +- mathjax/index.d.ts | 798 +- mathjs/index.d.ts | 68 +- matter-js/index.d.ts | 10 +- matter-js/matter-js-tests.ts | 12 +- maxmind/index.d.ts | 2 +- mcustomscrollbar/index.d.ts | 42 +- md5/index.d.ts | 2 +- md5/md5-tests.ts | 8 +- mdns/index.d.ts | 410 +- memwatch-next/index.d.ts | 2 +- merge2/merge2-tests.ts | 2 +- meshblu/index.d.ts | 56 +- meshblu/meshblu-tests.ts | 4 +- meteor-jboulhous-dev/index.d.ts | 2 +- meteor-persistent-session/index.d.ts | 16 +- meteor-prime8consulting-oauth2/index.d.ts | 84 +- meteor-publish-composite/index.d.ts | 70 +- meteor-roles/index.d.ts | 66 +- meteor/index.d.ts | 168 +- microsoft-ajax/microsoft.ajax-tests.ts | 24 +- microsoft-live-connect/index.d.ts | 2 +- .../microsoft-live-connect-tests.ts | 2 +- microsoft-sdk-soap/index.d.ts | 325 +- .../microsoft-sdk-soap-tests.ts | 2 +- milkcocoa/milkcocoa-tests.ts | 2 +- milliseconds/index.d.ts | 18 +- minilog/index.d.ts | 8 +- mithril/index.d.ts | 10 +- mitm/index.d.ts | 2 +- mixpanel/index.d.ts | 67 +- mixto/index.d.ts | 6 +- mmmagic/index.d.ts | 2 +- mobile-detect/index.d.ts | 6 +- mobservable-react/mobservable-react-tests.ts | 4 +- mobservable/index.d.ts | 64 +- mocha-phantomjs/index.d.ts | 4 +- mocha-phantomjs/mocha-phantomjs-tests.ts | 16 +- mocha/index.d.ts | 4 +- mock-require/index.d.ts | 4 +- moment-timezone/index.d.ts | 6 +- mongodb/index.d.ts | 54 +- mongodb/mongodb-1.4.9.d.ts | 2 +- mongoose/index.d.ts | 4 +- mongoose/mongoose-3.x.d.ts | 14 +- monk/index.d.ts | 46 +- morgan/index.d.ts | 10 +- morgan/morgan-tests.ts | 2 +- moviedb/moviedb-tests.ts | 2 +- mqtt/index.d.ts | 2 +- ms/ms-tests.ts | 16 +- msportalfx-test/index.d.ts | 22 +- msportalfx-test/msportalfx-test-tests.ts | 4 +- mssql/index.d.ts | 14 +- multer-s3/index.d.ts | 28 +- multiplexjs/index.d.ts | 498 +- murmurhash3js/index.d.ts | 6 +- mysql/index.d.ts | 82 +- mysql/mysql-tests.ts | 2 +- nanoajax/index.d.ts | 4 +- nanp/index.d.ts | 6 +- natural/index.d.ts | 34 +- navigation/index.d.ts | 32 +- navigation/navigation-tests.ts | 16 +- nedb/index.d.ts | 100 +- needle/needle-tests.ts | 4 +- nes/index.d.ts | 2 +- ng-cordova/device-tests.ts | 16 +- ng-cordova/device.d.ts | 34 +- ng-cordova/emailComposer.d.ts | 4 +- ng-cordova/geolocation.d.ts | 28 +- ng-cordova/toast-tests.ts | 18 +- ng-cordova/toast.d.ts | 14 +- ng-dialog/index.d.ts | 16 +- ng-file-upload/ng-file-upload-tests.ts | 8 +- ng-grid/index.d.ts | 576 +- ng-notify/index.d.ts | 16 +- ng-stomp/index.d.ts | 16 +- ngbootbox/ngbootbox-tests.ts | 6 +- ngkookies/index.d.ts | 6 +- ngkookies/ngkookies-tests.ts | 10 +- ngmap/index.d.ts | 6 +- ngstorage/ngstorage-tests.ts | 8 +- ngtoaster/index.d.ts | 54 +- node-7z/index.d.ts | 2 +- node-calendar/index.d.ts | 180 +- node-fibers/index.d.ts | 2 +- node-form/index.d.ts | 60 +- node-gcm/index.d.ts | 10 +- node-mysql-wrapper/index.d.ts | 60 +- node-mysql-wrapper/my-meteor.d.ts | 4 +- node-sass-middleware/index.d.ts | 24 +- node-sass/index.d.ts | 2 +- node-schedule/index.d.ts | 70 +- node-snap7/index.d.ts | 122 +- node-snap7/node-snap7-tests.ts | 14 +- node-validator/index.d.ts | 22 +- node/index.d.ts | 32 +- node/node-0.10.d.ts | 90 +- node/node-0.11.d.ts | 88 +- node/node-0.12.d.ts | 98 +- node/node-0.8.8.d.ts | 96 +- node/node-4.d.ts | 128 +- nodemailer/index.d.ts | 4 +- nomnom/index.d.ts | 15 +- nopt/index.d.ts | 30 +- notie/index.d.ts | 2 +- notifyjs/index.d.ts | 44 +- notifyjs/notifyjs-tests.ts | 4 +- nouislider/index.d.ts | 6 +- nouislider/nouislider-7.0.10.d.ts | 58 +- nprogress/index.d.ts | 2 +- nvd3/index.d.ts | 88 +- nvd3/nvd3-test-historicalBar.ts | 92 +- nvd3/nvd3-test-historicalBarChart.ts | 326 +- nw.js/index.d.ts | 24 +- o.js/index.d.ts | 104 +- oauth2-server/index.d.ts | 2 +- obelisk.js/index.d.ts | 2 +- object-path/index.d.ts | 44 +- oblo-util/index.d.ts | 30 +- oboe/index.d.ts | 4 +- observe-js/index.d.ts | 58 +- office-js/index.d.ts | 1121 +- office-js/office-js-tests.ts | 102 +- oibackoff/index.d.ts | 52 +- on-headers/index.d.ts | 2 +- onoff/index.d.ts | 52 +- openlayers/index.d.ts | 44 +- openlayers/openlayers-3.14.2.d.ts | 40 +- openlayers/openlayers-3.6.0.d.ts | 54 +- openpgp/index.d.ts | 72 +- opn/index.d.ts | 38 +- oracledb/index.d.ts | 30 +- oracledb/oracledb-1.5.0.d.ts | 14 +- orientjs/index.d.ts | 12 +- osmtogeojson/index.d.ts | 2 +- page/index.d.ts | 18 +- pako/pako-tests.ts | 4 +- paralleljs/index.d.ts | 10 +- param-case/param-case-tests.ts | 2 +- parse-torrent/index.d.ts | 44 +- parse/index.d.ts | 4 +- parse5/index.d.ts | 20 +- parsimmon/index.d.ts | 4 +- pascal-case/pascal-case-tests.ts | 2 +- passport/passport-tests.ts | 2 +- pathjs/index.d.ts | 42 +- pathjs/pathjs-tests.ts | 6 +- pathwatcher/index.d.ts | 98 +- pdf/index.d.ts | 32 +- pdf/pdf-tests.ts | 2 +- pdfkit/index.d.ts | 12 +- pdfobject/index.d.ts | 2 +- peerjs/index.d.ts | 48 +- pegjs/index.d.ts | 16 +- pegjs/pegjs-tests.ts | 4 +- pg/index.d.ts | 2 +- phantom/index.d.ts | 14 +- phantomcss/phantomcss-tests.ts | 6 +- phantomjs/index.d.ts | 8 +- phoenix/index.d.ts | 2 +- phonegap-facebook-plugin/index.d.ts | 2 +- phonegap-nfc/index.d.ts | 118 +- phonegap-plugin-barcodescanner/index.d.ts | 2 +- phonegap-plugin-push/index.d.ts | 108 +- phonegap/index.d.ts | 36 +- phonegap/phonegap-tests.ts | 2 +- photonui/photonui-tests.ts | 4 +- physijs/index.d.ts | 90 +- pi-spi/index.d.ts | 26 +- pickadate/index.d.ts | 4 +- pify/index.d.ts | 8 +- pikaday/index.d.ts | 2 +- pino/index.d.ts | 88 +- pinterest-sdk/index.d.ts | 2 +- piwik-tracker/piwik-tracker-tests.ts | 18 +- pixi.js/index.d.ts | 8 +- pkcs11js/index.d.ts | 188 +- platform/platform-tests.ts | 2 +- pleasejs/index.d.ts | 12 +- plotly.js/index.d.ts | 50 +- plupload/index.d.ts | 8 +- podcast/index.d.ts | 27 +- polylabel/index.d.ts | 6 +- polymer-ts/polymer-ts-tests.ts | 4 +- polymer/index.d.ts | 88 +- popcorn/index.d.ts | 168 +- postal/index.d.ts | 2 +- postal/postal-0.8.9.d.ts | 24 +- pouchdb-core/index.d.ts | 4 +- pouchdb-mapreduce/index.d.ts | 2 +- power-assert-formatter/index.d.ts | 8 +- power-assert/index.d.ts | 60 +- precise/index.d.ts | 2 +- preloadjs/index.d.ts | 123 +- prelude-ls/index.d.ts | 4 +- prismjs/index.d.ts | 34 +- progressjs/index.d.ts | 2 +- proj4/index.d.ts | 50 +- project-oxford/index.d.ts | 14 +- protobufjs/index.d.ts | 12 +- protractor-helpers/index.d.ts | 96 +- pty.js/index.d.ts | 18 +- pubsub-js/index.d.ts | 10 +- purl/purl-jquery.d.ts | 10 +- q-io/index.d.ts | 286 +- qajax/index.d.ts | 20 +- qrcode-generator/index.d.ts | 14 +- qrcode/index.d.ts | 2 +- qtip2/index.d.ts | 9 +- quill/index.d.ts | 8 +- quixote/index.d.ts | 102 +- quixote/quixote-tests.ts | 4 +- qunit/index.d.ts | 216 +- qunit/qunit-1.16.d.ts | 204 +- qunit/qunit-tests-1.16.ts | 20 +- qwest/index.d.ts | 2 +- ractive/index.d.ts | 2 +- radius/index.d.ts | 8 +- ramda/index.d.ts | 215 +- random-js/index.d.ts | 10 +- rangy/index.d.ts | 104 +- raphael/index.d.ts | 12 +- raty/index.d.ts | 74 +- rc-select/index.d.ts | 2 +- rc-select/rc-select-tests.ts | 6 +- rc-tooltip/index.d.ts | 2 +- react-addons-transition-group/index.d.ts | 2 +- react-bootstrap-table/index.d.ts | 4 +- react-bootstrap/index.d.ts | 40 +- react-calendar-timeline/index.d.ts | 26 +- react-data-grid/index.d.ts | 136 +- react-datagrid/index.d.ts | 2 +- react-datepicker/index.d.ts | 12 +- react-day-picker/index.d.ts | 6 +- react-dnd/index.d.ts | 2 +- react-dropzone/index.d.ts | 40 +- react-fontawesome/index.d.ts | 24 +- react-holder/index.d.ts | 2 +- react-input-calendar/index.d.ts | 2 +- react-intl/index.d.ts | 10 +- react-intl/react-intl-1.2.0.d.ts | 66 +- react-modal/index.d.ts | 18 +- react-native/index.d.ts | 2197 +- .../react-notification-system-tests.ts | 10 +- react-redux-toastr/index.d.ts | 42 +- react-redux/index.d.ts | 2 +- react-redux/react-redux-2.1.2.d.ts | 2 +- react-relay/index.d.ts | 88 +- react-router-bootstrap/index.d.ts | 16 +- react-router-redux/index.d.ts | 2 +- react-router/history.d.ts | 164 +- react-router/index.d.ts | 4 +- react-router/lib/History.d.ts | 10 +- react-router/lib/Route.d.ts | 4 +- react-router/lib/RouteContext.d.ts | 2 +- react-router/lib/Router.d.ts | 18 +- react-router/lib/withRouter.d.ts | 2 +- react-router/react-router-0.13.3.d.ts | 2 +- react-router/react-router-1.0.0.d.ts | 320 +- react-scroll/index.d.ts | 20 +- react-scrollbar/index.d.ts | 34 +- react-select/index.d.ts | 6 +- react-select/react-select-0.9.10.d.ts | 98 +- react-slick/index.d.ts | 66 +- react-swf/index.d.ts | 6 +- react-swipeable-views/index.d.ts | 4 +- react-tagcloud/index.d.ts | 4 +- react-widgets/lib/Calendar.d.ts | 2 +- react-widgets/lib/NumberPicker.d.ts | 2 +- react-widgets/lib/SelectList.d.ts | 4 +- rebass/index.d.ts | 114 +- recompose/index.d.ts | 8 +- redis-scripto/index.d.ts | 2 +- redis/index.d.ts | 4 +- redux-devtools-dock-monitor/index.d.ts | 20 +- redux-devtools-log-monitor/index.d.ts | 14 +- redux-devtools/index.d.ts | 2 +- redux-form/index.d.ts | 4 +- redux-mock-store/index.d.ts | 4 +- redux-optimistic-ui/index.d.ts | 2 +- redux-router/lib/actionCreators.d.ts | 4 +- redux-saga/index.d.ts | 16 +- ref-struct/index.d.ts | 2 +- ref-union/index.d.ts | 2 +- reflect-metadata/reflect-metadata-test.ts | 20 +- reflux/index.d.ts | 46 +- request-promise/request-promise-tests.ts | 18 +- request/index.d.ts | 8 +- requirejs/index.d.ts | 4 +- resolve/index.d.ts | 2 +- rest-io/index.d.ts | 6 +- rest/index.d.ts | 4 +- restangular/index.d.ts | 2 +- restangular/restangular-tests.ts | 2 +- restful.js/index.d.ts | 6 +- restify/index.d.ts | 4 +- restify/restify-tests.ts | 4 +- resumablejs/index.d.ts | 22 +- revalidator/index.d.ts | 2 +- reveal/index.d.ts | 158 +- riot-games-api/index.d.ts | 2006 +- riot/index.d.ts | 6 +- riotjs/index.d.ts | 4 +- riotjs/riotjs-render.d.ts | 2 +- rosie/index.d.ts | 6 +- roslib/index.d.ts | 84 +- route-recognizer/index.d.ts | 12 +- routie/routie-tests.ts | 6 +- royalslider/index.d.ts | 2 +- royalslider/royalslider-tests.ts | 10 +- rrule/index.d.ts | 2 +- rsmq/index.d.ts | 24 +- rtree/index.d.ts | 2 +- rx-angular/index.d.ts | 2 +- rx-angular/rx.angular-tests.ts | 4 +- rx-dom/index.d.ts | 106 +- rx/index.d.ts | 2 +- rx/rx-lite.d.ts | 24 +- rx/rx.async-lite.d.ts | 4 +- safari-extension-content/index.d.ts | 2 +- .../safari-extension-content-tests.ts | 12 +- safari-extension/index.d.ts | 4 +- safari-extension/safari-extension-tests.ts | 2 +- samchon-collection/index.d.ts | 3 +- samchon-framework/index.d.ts | 3 +- samchon-library/index.d.ts | 3 +- sammy/index.d.ts | 10 +- sammy/sammyjs-tests.ts | 10 +- sanitize-html/sanitize-html-tests.ts | 2 +- sass-graph/index.d.ts | 2 +- satnav/index.d.ts | 14 +- scanf/index.d.ts | 95 +- scriptjs/index.d.ts | 18 +- scripts/delete-tscparams.ts | 2 +- scroll-into-view/index.d.ts | 24 +- scroller/index.d.ts | 2 +- scrollreveal/index.d.ts | 30 +- scrolltofixed/index.d.ts | 38 +- segment-analytics/index.d.ts | 4 +- select2/index.d.ts | 4 +- selenium-webdriver/index.d.ts | 20 +- semver/index.d.ts | 8 +- sencha_touch/SenchaTouch-2.2.1.d.ts | 44 +- sencha_touch/SenchaTouch-Tests.ts | 6 +- sencha_touch/index.d.ts | 11002 ++-- sendgrid/index.d.ts | 6 +- sendgrid/sendgrid-1.1.0.d.ts | 6 +- seneca/index.d.ts | 18 +- sequelize-fixtures/index.d.ts | 8 +- sequelize/index.d.ts | 2 +- sequelize/sequelize-2.0.0.d.ts | 2 +- sequelize/sequelize-3.0.0.d.ts | 2 +- serialport/index.d.ts | 8 +- service_worker_api/index.d.ts | 2 +- shapefile/index.d.ts | 12 +- sharepoint/index.d.ts | 419 +- shopify-buy/index.d.ts | 98 +- siesta/index.d.ts | 6 +- sigmajs/index.d.ts | 26 +- signalr/index.d.ts | 4 +- signalr/signalr-1.0-tests.ts | 14 +- signalr/signalr-tests.ts | 10 +- signals/index.d.ts | 2 +- simple-assign/simple-assign-tests.ts | 10 +- simple-mock/index.d.ts | 2 +- simple-url-cache/index.d.ts | 82 +- sinon-as-promised/index.d.ts | 4 +- sinon-chrome/index.d.ts | 4 +- sinon-mongoose/index.d.ts | 2 +- sipml/index.d.ts | 8 +- sjcl/index.d.ts | 4 +- sjcl/sjcl-tests.ts | 2 +- ski/index.d.ts | 2 +- skyway/index.d.ts | 48 +- slackify-html/index.d.ts | 2 +- sleep/index.d.ts | 10 +- slick-carousel/index.d.ts | 6 +- slickgrid/index.d.ts | 26 +- slickgrid/slick.headerbuttons.d.ts | 2 +- slickgrid/slick.rowselectionmodel.d.ts | 10 +- smart-fox-server/index.d.ts | 48 +- smoothie/index.d.ts | 2 +- smtpapi/index.d.ts | 4 +- snake-case/snake-case-tests.ts | 2 +- snapsvg/index.d.ts | 440 +- soap/soap-tests.ts | 18 +- socket.io-client/index.d.ts | 40 +- socket.io-parser/index.d.ts | 2 +- socket.io/index.d.ts | 18 +- sockjs-client/index.d.ts | 2 +- soundjs/index.d.ts | 85 +- soundjs/soundjs-tests.ts | 4 +- space-pen/index.d.ts | 628 +- spdy/index.d.ts | 10 +- spectacle/index.d.ts | 74 +- spectrum/index.d.ts | 2 +- spin.js/index.d.ts | 4 +- split/index.d.ts | 2 +- spotify-api/index.d.ts | 324 +- spotify-api/spotify-api-tests.ts | 132 +- sprintf-js/index.d.ts | 2 +- sqs-consumer/index.d.ts | 2 +- sqs-producer/index.d.ts | 4 +- srp/index.d.ts | 14 +- ss-utils/index.d.ts | 6 +- ss-utils/ss-utils-tests.ts | 12 +- ssh2-sftp-client/index.d.ts | 46 +- stacktrace-js/index.d.ts | 18 +- stampit/index.d.ts | 52 +- stamplay-js-sdk/index.d.ts | 28 +- state-machine/index.d.ts | 2 +- static-eval/index.d.ts | 2 +- statsd-client/index.d.ts | 12 +- status-bar/index.d.ts | 30 +- streamjs/index.d.ts | 10 +- streamjs/streamjs-tests.ts | 2 +- strftime/index.d.ts | 2 +- string/index.d.ts | 112 +- string/string-tests.ts | 2 +- string_score/index.d.ts | 3 +- stripe-node/index.d.ts | 50 +- stripe/index.d.ts | 11 +- strophe/index.d.ts | 6 +- strophe/strophe-tests.ts | 6 +- stylus/index.d.ts | 2 +- stylus/stylus-tests.ts | 6 +- sugar/index.d.ts | 2 +- suitescript/index.d.ts | 842 +- supertest/index.d.ts | 2 +- survey-knockout/index.d.ts | 100 +- survey-knockout/survey-knockout-tests.ts | 2 +- svg-pan-zoom/index.d.ts | 4 +- svg-sprite/index.d.ts | 4 +- svg.js/index.d.ts | 278 +- svg.js/svgjs-tests.ts | 10 +- svg2png/index.d.ts | 6 +- svgjs.draggable/index.d.ts | 23 +- svgjs.resize/index.d.ts | 8 +- swagger-express-middleware/index.d.ts | 351 +- swaggerize-express/index.d.ts | 314 +- swap-case/swap-case-tests.ts | 2 +- swig/index.d.ts | 8 +- swiper/swiper-tests.ts | 6 +- swipeview/index.d.ts | 2 +- swiz/index.d.ts | 2 +- sylvester/index.d.ts | 4 +- systemjs/index.d.ts | 6 +- systemjs/systemjs-tests.ts | 6 +- tabris/index.d.ts | 10 +- tcomb/index.d.ts | 10 +- tedious/index.d.ts | 2 +- teechart/index.d.ts | 30 +- temp-fs/index.d.ts | 22 +- tempfile/index.d.ts | 2 +- terminal-menu/index.d.ts | 10 +- tether-shepherd/index.d.ts | 2 +- text-buffer/index.d.ts | 404 +- three/tests/math/test_unit_math.ts | 4 +- three/three-canvasrenderer.d.ts | 2 +- three/three-css3drenderer.d.ts | 2 +- three/three-editorcontrols.d.ts | 2 +- .../three-orthographictrackballcontrols.d.ts | 50 +- three/three-trackballcontrols.d.ts | 50 +- three/three-transformcontrols.d.ts | 8 +- three/three-vrcontrols.d.ts | 2 +- three/three-vreffect.d.ts | 6 +- thrift/index.d.ts | 2 +- thrift/thrift-tests.ts | 2 +- tilebelt/index.d.ts | 28 +- timelinejs/index.d.ts | 38 +- timelinejs3/index.d.ts | 8 +- timezone-js/index.d.ts | 2 +- tinycolor2/index.d.ts | 2 +- titanium/index.d.ts | 11960 ++-- title-case/title-case-tests.ts | 2 +- title/index.d.ts | 2 +- toastr/index.d.ts | 8 +- torrent-stream/index.d.ts | 2 +- transducers-js/index.d.ts | 8 +- traverson/index.d.ts | 18 +- trayballoon/index.d.ts | 12 +- turf/index.d.ts | 28 +- turf/turf-2.0.d.ts | 6 +- tv4/index.d.ts | 34 +- tv4/tv4-1.2.4.d.ts | 48 +- tween.js/index.d.ts | 92 +- tweenjs/tweenjs-tests.ts | 2 +- twilio/index.d.ts | 2 +- twit/index.d.ts | 354 +- type-check/index.d.ts | 8 +- type-name/index.d.ts | 1 - typescript-stl/index.d.ts | 3 +- uglify-js/index.d.ts | 4 +- uglifycss/index.d.ts | 8 +- ui-grid/index.d.ts | 43 +- ui-router-extras/ui-router-extras-tests.ts | 6 +- ui-select/index.d.ts | 2 +- uid-safe/uid-safe-tests.ts | 4 +- uikit/index.d.ts | 370 +- .../index.d.ts | 6 +- umbraco/umbraco-resources.d.ts | 48 +- umbraco/umbraco-services.d.ts | 2 +- underscore/index.d.ts | 8 +- uniq/index.d.ts | 6 +- universal-analytics/index.d.ts | 126 +- universal-router/index.d.ts | 10 +- upper-case-first/index.d.ts | 4 +- upper-case/index.d.ts | 4 +- urbanairship-cordova/index.d.ts | 10 +- urijs/index.d.ts | 2 +- uritemplate/index.d.ts | 9 +- url-join/index.d.ts | 2 +- url-template/index.d.ts | 3 +- usage/index.d.ts | 2 +- useragent/index.d.ts | 2 +- uuid/index.d.ts | 6 +- v8-profiler/index.d.ts | 2 +- valdr-message/index.d.ts | 4 +- valdr/index.d.ts | 10 +- valerie/index.d.ts | 8 +- validator/index.d.ts | 4 +- vectorious/index.d.ts | 1 - vega/index.d.ts | 10 +- vexflow/index.d.ts | 2012 +- victor/index.d.ts | 130 +- victory/index.d.ts | 2 +- videojs/index.d.ts | 2 +- vimeo/index.d.ts | 9 +- vortex-web-client/index.d.ts | 108 +- voximplant-websdk/index.d.ts | 12 +- vso-node-api/index.d.ts | 2 +- vue-resource/index.d.ts | 12 +- w2ui/index.d.ts | 8 +- wake_on_lan/index.d.ts | 18 +- wallabyjs/index.d.ts | 2 +- weapp-api/index.d.ts | 6 +- webaudioapi/index.d.ts | 6 +- webaudioapi/waa-tests.ts | 50 +- webcl/index.d.ts | 2 +- webfontloader/index.d.ts | 48 +- webix/index.d.ts | 8878 +-- webmidi/index.d.ts | 50 +- webpack-dev-server/index.d.ts | 2 +- webpack-env/index.d.ts | 2 +- webpack/index.d.ts | 28 +- webrtc/RTCPeerConnection.d.ts | 63 + websocket/index.d.ts | 2 +- webtorrent/index.d.ts | 136 +- webvr-api/index.d.ts | 2 +- weighted/index.d.ts | 4 +- whatwg-fetch/index.d.ts | 4 +- when/index.d.ts | 20 +- windows-1251/index.d.ts | 16 +- windows-1251/windows-1251-tests.ts | 2 +- winjs/index.d.ts | 20 +- winjs/winjs-1.0.d.ts | 2 +- winjs/winjs-2.0.d.ts | 2 +- winjs/winjs-2.1.d.ts | 4 +- winrt-uwp/index.d.ts | 16 +- winrt/index.d.ts | 454 +- winston-dynamodb/index.d.ts | 4 +- wiredep/index.d.ts | 2 +- wiring-pi/index.d.ts | 4 +- wolfy87-eventemitter/index.d.ts | 8 +- wordcloud/wordcloud-tests.ts | 2 +- wrap-ansi/index.d.ts | 2 +- wreck/index.d.ts | 4 +- ws/index.d.ts | 52 +- ws/ws-tests.ts | 4 +- wu/index.d.ts | 5 +- x2js/index.d.ts | 1 - x2js/xml2json-tests.ts | 4 +- xadesjs/index.d.ts | 3 +- xdate/index.d.ts | 200 +- xdomain/index.d.ts | 1 - xlsx/index.d.ts | 4 +- xml-parser/index.d.ts | 2 - xml2js/index.d.ts | 8 +- xmlbuilder/index.d.ts | 1 - xmldom/index.d.ts | 1 - xmlpoke/index.d.ts | 6 +- xmlrpc/index.d.ts | 2 +- xmltojson/index.d.ts | 30 +- xregexp/index.d.ts | 2 - xrm/index.d.ts | 234 +- xrm/parature.d.ts | 11 +- xrm/xrm-6.d.ts | 168 +- xrm/xrm-7.0.d.ts | 183 +- xrm/xrm-7.1.d.ts | 234 +- xrm/xrm-7.1.tests.ts | 4 +- xrm/xrm-tests.ts | 6 +- xsockets/index.d.ts | 8 +- xss-filters/index.d.ts | 64 +- yamljs/index.d.ts | 4 +- yandex-money-sdk/index.d.ts | 8 +- yayson/index.d.ts | 4 +- ydn-db/index.d.ts | 2 - yeoman-generator/index.d.ts | 14 +- yfiles/index.d.ts | 2 + youtube/index.d.ts | 7 +- yui/index.d.ts | 22 +- yui/yui-test.d.ts | 148 +- z-schema/index.d.ts | 7 +- zepto/index.d.ts | 44 +- zeroclipboard/zeroclipboard-1.x.x.d.ts | 1 - zip.js/index.d.ts | 2 +- zynga-scroller/index.d.ts | 75 +- zynga-scroller/zynga-scroller-tests.ts | 2 - 1473 files changed, 77478 insertions(+), 76346 deletions(-) diff --git a/3d-bin-packing/index.d.ts b/3d-bin-packing/index.d.ts index 2461538194..14bee6745e 100644 --- a/3d-bin-packing/index.d.ts +++ b/3d-bin-packing/index.d.ts @@ -9,8 +9,7 @@ /// /// -declare module "3d-bin-packing" -{ +declare module "3d-bin-packing" { export = bws.packer; } declare var ReactDataGrid: typeof AdazzleReactDataGrid.ReactDataGrid; diff --git a/_debugger/index.d.ts b/_debugger/index.d.ts index 324a875eba..1f8ef9e3f8 100644 --- a/_debugger/index.d.ts +++ b/_debugger/index.d.ts @@ -6,7 +6,7 @@ /// declare namespace NodeJS { - export module _debugger { + export namespace _debugger { export interface Packet { raw: string; headers: string[]; @@ -124,12 +124,12 @@ declare namespace NodeJS { reqContinue(cb: RequestHandler): void; } - export var Client : { + export var Client: { new (): ClientInstance - } + }; } } -declare module "_debugger"{ +declare module "_debugger" { export = NodeJS._debugger; } diff --git a/acc-wizard/acc-wizard-tests.ts b/acc-wizard/acc-wizard-tests.ts index 74f8df765a..9d6de6b2fa 100644 --- a/acc-wizard/acc-wizard-tests.ts +++ b/acc-wizard/acc-wizard-tests.ts @@ -31,6 +31,6 @@ function testWithOptions() { onInit: function() {}, onDestroy: function() {} }; - + $('#test').accwizard(options); } \ No newline at end of file diff --git a/acc-wizard/index.d.ts b/acc-wizard/index.d.ts index 9c20bf3e5f..e524732dfb 100644 --- a/acc-wizard/index.d.ts +++ b/acc-wizard/index.d.ts @@ -9,49 +9,49 @@ interface AccWizardOptions { * @type {boolean} */ addButtons: boolean; - + /** * @summary Selector for task sidebar. * @type {string} */ sidebar: string; - + /** * @summary Class to indicate the active task in sidebar. * @type {string} */ activeClass: string; - + /** * @summary Class to indicate task is complete. * @type {string} */ completedClass: string; - + /** * @summary Class to indicate task is still pending. * @type {string} */ todoClass: string; - + /** * @summary Class for step buttons within panels. * @type {string} */ stepClass: string; - + /** * @summary Text for next button. * @type {string} */ nextText: string; - + /** * @summary Text for back button. * @type {string} */ backText: string; - + /** * @summary HTML input type for next button. (default: "submit") * @type {string} @@ -63,30 +63,30 @@ interface AccWizardOptions { * @type {string} */ backType: string; - + /** * @summary Class(es) for next button. * @type {string} */ nextClasses: string; - + /** * @summary Class(es) for back button. * @type {string} */ backClasses: string; - + /** * @summary Auto-scrolling. * @type {boolean} */ autoScrolling: boolean; - + /** * @summary Function to call on next step. */ onNext: Function; - + /** * @summary Function to call on back up. */ @@ -96,7 +96,7 @@ interface AccWizardOptions { * @summary A chance to hook initialization. */ onInit: Function; - + /** * @summary A chance to hook destruction. */ diff --git a/ace/index.d.ts b/ace/index.d.ts index 1ac19c7c63..4fc96f224e 100644 --- a/ace/index.d.ts +++ b/ace/index.d.ts @@ -14,9 +14,9 @@ declare namespace AceAjax { export interface EditorCommand { - name:string; + name: string; - bindKey:any; + bindKey: any; exec: Function; @@ -31,9 +31,9 @@ declare namespace AceAjax { platform: string; - addCommands(commands:EditorCommand[]): void; + addCommands(commands: EditorCommand[]): void; - addCommand(command:EditorCommand): void; + addCommand(command: EditorCommand): void; exec(name: string, editor: Editor, args: any): void; } @@ -191,7 +191,7 @@ declare namespace AceAjax { * @param column The starting column position **/ new(doc: Document, row: number, column: number): Anchor; - } + }; //////////////////////////////// /// BackgroundTokenizer @@ -254,7 +254,7 @@ declare namespace AceAjax { * @param editor The editor to associate with **/ new(tokenizer: Tokenizer, editor: Editor): BackgroundTokenizer; - } + }; //////////////// /// Document @@ -445,7 +445,7 @@ declare namespace AceAjax { * @param text The starting text **/ new(text?: string[]): Document; - } + }; //////////////////////////////// /// EditSession @@ -1021,7 +1021,7 @@ declare namespace AceAjax { new(content: string, mode?: string): IEditSession; new (text: string[], mode?: string): IEditSession; - } + }; //////////////////////////////// /// Editor @@ -1063,7 +1063,7 @@ declare namespace AceAjax { onChangeMode(e?: any): void; - execCommand(command:string, args?: any): void; + execCommand(command: string, args?: any): void; /** * Sets a Configuration Option @@ -1078,17 +1078,17 @@ declare namespace AceAjax { /** * Get a Configuration Option **/ - getOption(name: any):any; + getOption(name: any): any; /** * Get Configuration Options **/ - getOptions():any; + getOptions(): any; /** * Get rid of console warning by setting this to Infinity **/ - $blockScrolling:number; + $blockScrolling: number; /** * Sets a new key handler, such as "vim" or "windows". @@ -1591,7 +1591,7 @@ declare namespace AceAjax { * @param row The new row number * @param column The new column number **/ - moveCursorTo(row: number, column?: number, animate?:boolean): void; + moveCursorTo(row: number, column?: number, animate?: boolean): void; /** * Moves the cursor to the position indicated by `pos.row` and `pos.column`. @@ -1738,7 +1738,7 @@ declare namespace AceAjax { * @param session The `EditSession` to refer to **/ new(renderer: VirtualRenderer, session?: IEditSession): Editor; - } + }; interface EditorChangeEvent { start: Position; @@ -1809,7 +1809,7 @@ declare namespace AceAjax { new (session: Document, length: number, pos: number, others: string, mainClass: string, othersClass: string): PlaceHolder; new (session: IEditSession, length: number, pos: Position, positions: Position[]): PlaceHolder; - } + }; //////////////// /// RangeList @@ -1830,7 +1830,7 @@ declare namespace AceAjax { } export var RangeList: { new (): IRangeList; - } + }; //////////////// /// Range @@ -1841,13 +1841,13 @@ declare namespace AceAjax { **/ export interface Range { - startRow:number; + startRow: number; - startColumn:number; + startColumn: number; - endRow:number; + endRow: number; - endColumn:number; + endColumn: number; start: Position; @@ -2034,7 +2034,7 @@ declare namespace AceAjax { var Range: { fromPoints(pos1: Position, pos2: Position): Range; new(startRow: number, startColumn: number, endRow: number, endColumn: number): Range; - } + }; //////////////// /// RenderLoop @@ -2043,7 +2043,7 @@ declare namespace AceAjax { export interface RenderLoop { } var RenderLoop: { new(): RenderLoop; - } + }; //////////////// /// ScrollBar @@ -2089,7 +2089,7 @@ declare namespace AceAjax { * @param parent A DOM element **/ new(parent: HTMLElement): ScrollBar; - } + }; //////////////// /// Search @@ -2152,7 +2152,7 @@ declare namespace AceAjax { * - `skipCurrent`: Whether or not to include the current line in the search. Default to `false`. **/ new(): Search; - } + }; //////////////// /// Search @@ -2413,7 +2413,7 @@ declare namespace AceAjax { * @param session The session to use **/ new(session: IEditSession): Selection; - } + }; //////////////// /// Split @@ -2497,7 +2497,7 @@ declare namespace AceAjax { } var Split: { new(): Split; - } + }; ////////////////// /// TokenIterator @@ -2541,7 +2541,7 @@ declare namespace AceAjax { * @param initialColumn The column to start the tokenizing at **/ new(session: IEditSession, initialRow: number, initialColumn: number): TokenIterator; - } + }; ////////////////// /// Tokenizer @@ -2565,7 +2565,7 @@ declare namespace AceAjax { * @param flag Any additional regular expression flags to pass (like "i" for case insensitive) **/ new(rules: any, flag: string): Tokenizer; - } + }; ////////////////// /// UndoManager @@ -2627,7 +2627,7 @@ declare namespace AceAjax { * Resets the current undo state and creates a new `UndoManager`. **/ new(): UndoManager; - } + }; //////////////////// /// VirtualRenderer @@ -2977,7 +2977,7 @@ declare namespace AceAjax { * @param theme The starting theme **/ new(container: HTMLElement, theme?: string): VirtualRenderer; - } + }; } declare var ace: AceAjax.Ace; diff --git a/ace/tests/ace-anchor-tests.ts b/ace/tests/ace-anchor-tests.ts index 2cec45ce1d..e79fb0f69d 100644 --- a/ace/tests/ace-anchor-tests.ts +++ b/ace/tests/ace-anchor-tests.ts @@ -6,127 +6,127 @@ var exports = { "test create anchor" : function() { var doc = new AceAjax.Document("juhu"); var anchor = new AceAjax.Anchor(doc, 0, 0); - + assert.position(anchor.getPosition(), 0, 0); assert.equal(anchor.getDocument(), doc); }, - + "test insert text in same row before cursor should move anchor column": function() { var doc = new AceAjax.Document("juhu\nkinners"); var anchor = new AceAjax.Anchor(doc, 1, 4); - + doc.insert({row: 1, column: 1}, "123"); assert.position(anchor.getPosition(), 1, 7); }, - + "test insert lines before cursor should move anchor row": function() { var doc = new AceAjax.Document("juhu\nkinners"); var anchor = new AceAjax.Anchor(doc, 1, 4); - + doc.insertLines(1, ["123", "456"]); - assert.position(anchor.getPosition(), 3, 4); + assert.position(anchor.getPosition(), 3, 4); }, - + "test insert new line before cursor should move anchor column": function() { var doc = new AceAjax.Document("juhu\nkinners"); var anchor = new AceAjax.Anchor(doc, 1, 4); - + doc.insertNewLine({row: 0, column: 0}); - assert.position(anchor.getPosition(), 2, 4); + assert.position(anchor.getPosition(), 2, 4); }, - + "test insert new line in anchor line before anchor should move anchor column and row": function() { var doc = new AceAjax.Document("juhu\nkinners"); var anchor = new AceAjax.Anchor(doc, 1, 4); - + doc.insertNewLine({row: 1, column: 2}); assert.position(anchor.getPosition(), 2, 2); }, - + "test delete text in anchor line before anchor should move anchor column": function() { var doc = new AceAjax.Document("juhu\nkinners"); var anchor = new AceAjax.Anchor(doc, 1, 4); - + doc.remove(new AceAjax.Range(1, 1, 1, 3)); assert.position(anchor.getPosition(), 1, 2); }, - + "test remove range which contains the anchor should move the anchor to the start of the range": function() { var doc = new AceAjax.Document("juhu\nkinners"); var anchor = new AceAjax.Anchor(doc, 0, 3); - + doc.remove(new AceAjax.Range(0, 1, 1, 3)); assert.position(anchor.getPosition(), 0, 1); }, - + "test delete character before the anchor should have no effect": function() { var doc = new AceAjax.Document("juhu\nkinners"); var anchor = new AceAjax.Anchor(doc, 1, 4); - + doc.remove(new AceAjax.Range(1, 4, 1, 5)); assert.position(anchor.getPosition(), 1, 4); }, - + "test delete lines in anchor line before anchor should move anchor row": function() { var doc = new AceAjax.Document("juhu\n1\n2\nkinners"); var anchor = new AceAjax.Anchor(doc, 3, 4); - + doc.removeLines(1, 2); assert.position(anchor.getPosition(), 1, 4); }, - + "test remove new line before the cursor": function() { var doc = new AceAjax.Document("juhu\nkinners"); var anchor = new AceAjax.Anchor(doc, 1, 4); - + doc.removeNewLine(0); assert.position(anchor.getPosition(), 0, 8); }, - + "test delete range which contains the anchor should move anchor to the end of the range": function() { var doc = new AceAjax.Document("juhu\nkinners"); var anchor = new AceAjax.Anchor(doc, 1, 4); - + doc.remove(new AceAjax.Range(0, 2, 1, 2)); assert.position(anchor.getPosition(), 0, 4); }, - + "test delete line which contains the anchor should move anchor to the end of the range": function() { var doc = new AceAjax.Document("juhu\nkinners\n123"); var anchor = new AceAjax.Anchor(doc, 1, 5); - + doc.removeLines(1, 1); assert.position(anchor.getPosition(), 1, 0); }, - + "test remove after the anchor should have no effect": function() { var doc = new AceAjax.Document("juhu\nkinners\n123"); var anchor = new AceAjax.Anchor(doc, 1, 2); - + doc.remove(new AceAjax.Range(1, 4, 2, 2)); assert.position(anchor.getPosition(), 1, 2); }, - + "test anchor changes triggered by document changes should emit change event": function(next) { var doc = new AceAjax.Document("juhu\nkinners\n123"); var anchor = new AceAjax.Anchor(doc, 1, 5); - + anchor.on("change", function(e) { assert.position(anchor.getPosition(), 0, 0); next(); }); - + doc.remove(new AceAjax.Range(0, 0, 2, 1)); }, - + "test only fire change event if position changes": function() { var doc = new AceAjax.Document("juhu\nkinners\n123"); var anchor = new AceAjax.Anchor(doc, 1, 5); - + anchor.on("change", function(e) { assert.fail(); }); - + doc.remove(new AceAjax.Range(2, 0, 2, 1)); } }; diff --git a/acl/index.d.ts b/acl/index.d.ts index c95eafb06f..bc796f019c 100644 --- a/acl/index.d.ts +++ b/acl/index.d.ts @@ -41,7 +41,7 @@ interface Acl { allow: { (roles: Values, resources: strings, permissions: strings, cb?: Callback): Promise; (aclSets: AclSet | AclSet[]): Promise; - } + }; removeAllow: (role: string, resources: strings, permissions: strings, cb?: Callback) => Promise; removePermissions: (role: string, resources: strings, permissions: strings, cb?: Function) => Promise; allowedPermissions: (userId: Value, resources: strings, cb?: AnyCallback) => Promise; diff --git a/actioncable/index.d.ts b/actioncable/index.d.ts index 8d42c4d17a..5ddc96bff5 100644 --- a/actioncable/index.d.ts +++ b/actioncable/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Vincent Zhu // Definitions: https://github.com/zhu1230/DefinitelyTyped -declare module ActionCable { +declare namespace ActionCable { interface Channel { unsubscribe(): void; perform(action: string, data: {}): void; diff --git a/adal/adal-angular.d.ts b/adal/adal-angular.d.ts index 28d9682f19..cee5db4f24 100644 --- a/adal/adal-angular.d.ts +++ b/adal/adal-angular.d.ts @@ -13,16 +13,16 @@ declare namespace adal { } interface UserInfo { - isAuthenticated: boolean, - userName: string, - loginError: string, - profile: any + isAuthenticated: boolean; + userName: string; + loginError: string; + profile: any; } interface AdalAuthenticationService { config: Config; - userInfo: UserInfo, + userInfo: UserInfo; login(): void; loginInProgress(): boolean; @@ -30,7 +30,7 @@ declare namespace adal { getCachedToken(resource: string): string; acquireToken(resource: string): angular.IPromise; getUser(): angular.IPromise; - getResourceForEndpoint(endpoint: string): string, + getResourceForEndpoint(endpoint: string): string; clearCache(): void; clearCacheForResource(resource: string): void; info(message: string): void; diff --git a/adal/index.d.ts b/adal/index.d.ts index a896d687ec..db5bcfcf2a 100644 --- a/adal/index.d.ts +++ b/adal/index.d.ts @@ -38,15 +38,15 @@ declare namespace adal { stateResponse: string; requestType: string; } - + interface Logging { log: (message: string) => void; level: LoggingLevel; } - + enum LoggingLevel { ERROR = 0, - WARNING = 1, + WARNING = 1, INFO = 2, VERBOSE = 3 } @@ -58,7 +58,7 @@ declare namespace adal { interface AuthenticationContext { instance: string; - config: Config; + config: Config; /** * Gets initial Idtoken for the app backend @@ -153,7 +153,7 @@ declare namespace adal { getResourceForEndpoint(endpoint: string): string; /** - * Handles redirection after login operation. + * Handles redirection after login operation. * Gets access token from url and saves token to the (local/session) storage * or saves error in case unsuccessful login. */ diff --git a/adm-zip/adm-zip-tests.ts b/adm-zip/adm-zip-tests.ts index 2418597087..fb5a5131df 100644 --- a/adm-zip/adm-zip-tests.ts +++ b/adm-zip/adm-zip-tests.ts @@ -39,16 +39,16 @@ function processZipEntry(zipEntry: AdmZip.IZipEntry) { //tests taken from examples at https://github.com/cthackers/adm-zip/wiki/ADM-ZIP import Zip = require("adm-zip"); // loads and parses existing zip file local_file.zip -var zip = new Zip("local_file.zip"); +var zip = new Zip("local_file.zip"); // creates new in memory zip zip = new Zip(); // loads and parses existing zip file local_file.zip -zip = new Zip("local_file.zip"); +zip = new Zip("local_file.zip"); // get all entries and iterate them zip.getEntries().forEach((entry) => { var entryName = entry.entryName; var decompressedData = zip.readFile(entry); // decompressed buffer of the entry - console.log(zip.readAsText(entry)); // outputs the decompressed content of the entry + console.log(zip.readAsText(entry)); // outputs the decompressed content of the entry }); // will extract the file myfile.txt from the archive to /home/user/folder/subfolder/myfile.txt diff --git a/agenda/agenda-tests.ts b/agenda/agenda-tests.ts index 8c5e3e19bb..d528b0713f 100644 --- a/agenda/agenda-tests.ts +++ b/agenda/agenda-tests.ts @@ -3,16 +3,16 @@ import * as Agenda from "agenda"; var mongoConnectionString = "mongodb://127.0.0.1/agenda"; var agenda = new Agenda({ db: { address: mongoConnectionString } }); - - + + agenda.define('delete old users', (job, done) => { }); agenda.on('ready', () => { agenda.every('3 minutes', 'delete old users'); - - // Alternatively, you could also do: + + // Alternatively, you could also do: agenda.every('*/3 * * * *', 'delete old users'); agenda.start(); diff --git a/agenda/index.d.ts b/agenda/index.d.ts index e859de3188..8c4d102326 100644 --- a/agenda/index.d.ts +++ b/agenda/index.d.ts @@ -218,7 +218,7 @@ declare namespace Agenda { * The name of the collection to use. */ collection?: string; - } + }; /** * Specifies that Agenda should connect to MongoDB. @@ -238,7 +238,7 @@ declare namespace Agenda { * Connection options to pass to MongoDB. */ options?: any; - } + }; } /** @@ -323,7 +323,7 @@ declare namespace Agenda { /** * Job's state */ - disabled: boolean + disabled: boolean; } /** @@ -342,13 +342,13 @@ declare namespace Agenda { * @param options An optional argument that can include a timezone field. The timezone should be a string as * accepted by moment-timezone and is considered when using an interval in the cron string format. */ - repeatEvery(interval: string | number, options?: { timezone?: string }): Job + repeatEvery(interval: string | number, options?: { timezone?: string }): Job; /** * Specifies a time when the job should repeat. [Possible values](https://github.com/matthewmueller/date#examples). * @param time */ - repeatAt(time: string): Job + repeatAt(time: string): Job; /** * Disables the job. diff --git a/ajv/index.d.ts b/ajv/index.d.ts index bf487fd341..465eb71654 100644 --- a/ajv/index.d.ts +++ b/ajv/index.d.ts @@ -86,16 +86,16 @@ declare namespace Ajv { messages?: boolean; beautify?: boolean; cache?: any; - } + }; type AjvValidate = ((data: any) => boolean | PromiseLike) & { errors: ValidationError[]; - } + }; type AjxKeywordDefinition = { async?: boolean; type: string; compile?: (schema: any, parentsSchema: any) => ((data: any) => boolean | PromiseLike); validate?: (schema: any, data: any) => boolean; - } + }; type ValidationError = { keyword: string; dataPath: string; @@ -105,7 +105,7 @@ declare namespace Ajv { schema: any; parentSchema: any; data: any; - } + }; } export = Ajv; diff --git a/alertify/alertify-tests.ts b/alertify/alertify-tests.ts index 61903e86ff..2d7eede051 100644 --- a/alertify/alertify-tests.ts +++ b/alertify/alertify-tests.ts @@ -3,13 +3,13 @@ alertify.init(); alertify.alert("This is an alert"); -alertify.alert("This is an alert with a callback", () => { +alertify.alert("This is an alert with a callback", () => { alertify.success("Alert finished"); }, "myCustomClass"); alertify.confirm("This is a confirm request"); -alertify.confirm("This is a confirm request with a callback", () => { +alertify.confirm("This is a confirm request with a callback", () => { alertify.success("Confirm finished"); }, "myCustomClass"); @@ -21,7 +21,7 @@ alertify.log("log message 2", "success", 3000); alertify.prompt("prompt message 1"); alertify.prompt("prompt message 2", () => { console.log("callback"); }, "ok", "myClass"); -alertify.set({ delay: 1000 }); +alertify.set({ delay: 1000 }); alertify.set({ labels: { ok: "OK", cancel: "Cancel" }}); alertify.set({ buttonFocus: "ok" }); alertify.set({ buttonReverse: true }); diff --git a/alt/index.d.ts b/alt/index.d.ts index 561de28ac3..11ffa7a775 100644 --- a/alt/index.d.ts +++ b/alt/index.d.ts @@ -8,65 +8,65 @@ declare namespace AltJS { interface StoreReduce { - action:any; + action: any; data: any; } export interface StoreModel { //Actions - bindAction?( action:Action, handler:ActionHandler):void; - bindActions?(actions:ActionsClass):void; + bindAction?( action: Action, handler: ActionHandler): void; + bindActions?(actions: ActionsClass): void; //Methods/Listeners - exportPublicMethods?(exportConfig:any):void; - bindListeners?(config:{[methodName:string]:Action | Actions}):void; - exportAsync?(source:Source):void; - registerAsync?(datasource:Source):void; + exportPublicMethods?(exportConfig: any): void; + bindListeners?(config: {[methodName: string]: Action | Actions}): void; + exportAsync?(source: Source): void; + registerAsync?(datasource: Source): void; //state - setState?(state:S):void; - setState?(stateFn:(currentState:S, nextState:S) => S):void; - getState?():S; - waitFor?(store:AltStore):void; + setState?(state: S): void; + setState?(stateFn: (currentState: S, nextState: S) => S): void; + getState?(): S; + waitFor?(store: AltStore): void; //events - onSerialize?(fn:(data:any) => any):void; - onDeserialize?(fn:(data:any) => any):void; - on?(event:AltJS.lifeCycleEvents, callback:() => any):void; - emitChange?():void; - waitFor?(storeOrStores:AltStore | Array>):void; - otherwise?(data:any, action:AltJS.Action):void; - observe?(alt:Alt):any; - reduce?(state:any, config:StoreReduce):Object; - preventDefault?():void; - afterEach?(payload:Object, state:Object):void; - beforeEach?(payload:Object, state:Object):void; + onSerialize?(fn: (data: any) => any): void; + onDeserialize?(fn: (data: any) => any): void; + on?(event: AltJS.lifeCycleEvents, callback: () => any): void; + emitChange?(): void; + waitFor?(storeOrStores: AltStore | Array>): void; + otherwise?(data: any, action: AltJS.Action): void; + observe?(alt: Alt): any; + reduce?(state: any, config: StoreReduce): Object; + preventDefault?(): void; + afterEach?(payload: Object, state: Object): void; + beforeEach?(payload: Object, state: Object): void; // TODO: Embed dispatcher interface in def - dispatcher?:any; + dispatcher?: any; //instance - getInstance?():AltJS.AltStore; - alt?:Alt; - displayName?:string; + getInstance?(): AltJS.AltStore; + alt?: Alt; + displayName?: string; } - export type Source = {[name:string]: () => SourceModel}; + export type Source = {[name: string]: () => SourceModel}; export interface SourceModel { - local(state:any, ...args: any[]):any; - remote(state:any, ...args: any[]):Promise; - shouldFetch?(fetchFn:(...args:Array) => boolean):void; - loading?:(args:any) => void; - success?:(state:S) => void; - error?:(args:any) => void; - interceptResponse?(response:any, action:Action, ...args:Array):any; + local(state: any, ...args: any[]): any; + remote(state: any, ...args: any[]): Promise; + shouldFetch?(fetchFn: (...args: Array) => boolean): void; + loading?: (args: any) => void; + success?: (state: S) => void; + error?: (args: any) => void; + interceptResponse?(response: any, action: Action, ...args: Array): any; } export interface AltStore { - getState():S; - listen(handler:(state:S) => any):() => void; - unlisten(handler:(state:S) => any):void; - emitChange():void; + getState(): S; + listen(handler: (state: S) => any): () => void; + unlisten(handler: (state: S) => any): void; + emitChange(): void; } export enum lifeCycleEvents { @@ -77,64 +77,64 @@ declare namespace AltJS { error } - export type Actions = {[action:string]:Action}; + export type Actions = {[action: string]: Action}; export interface Action { - ( args:T):void; - defer(data:any):void; + ( args: T): void; + defer(data: any): void; } export interface ActionsClass { - generateActions?( ...action:Array):void; - dispatch( ...payload:Array):void; - actions?:Actions; + generateActions?( ...action: Array): void; + dispatch( ...payload: Array): void; + actions?: Actions; } - type StateTransform = (store:StoreModel) => AltJS.AltStore; + type StateTransform = (store: StoreModel) => AltJS.AltStore; interface AltConfig { - dispatcher?:any; - serialize?:(serializeFn:(data:Object) => string) => void; - deserialize?:(deserializeFn:(serialData:string) => Object) => void; - storeTransforms?:Array; - batchingFunction?:(callback:( ...data:Array) => any) => void; + dispatcher?: any; + serialize?: (serializeFn: (data: Object) => string) => void; + deserialize?: (deserializeFn: (serialData: string) => Object) => void; + storeTransforms?: Array; + batchingFunction?: (callback: ( ...data: Array) => any) => void; } class Alt { - constructor(config?:AltConfig); - actions:Actions; - bootstrap(jsonData:string):void; - takeSnapshot( ...storeNames:Array):string; - flush():Object; - recycle( ...stores:Array>):void; - rollback():void; - dispatch(action?:AltJS.Action, data?:Object, details?:any):void; + constructor(config?: AltConfig); + actions: Actions; + bootstrap(jsonData: string): void; + takeSnapshot( ...storeNames: Array): string; + flush(): Object; + recycle( ...stores: Array>): void; + rollback(): void; + dispatch(action?: AltJS.Action, data?: Object, details?: any): void; //Actions methods - addActions(actionsName:string, ActionsClass: ActionsClassConstructor):void; - createActions(ActionsClass: ActionsClassConstructor, exportObj?: Object):T; - createActions(ActionsClass: ActionsClassConstructor, exportObj?: Object, ...constructorArgs:Array):T; - generateActions( ...actions:Array):T; - getActions(actionsName:string):AltJS.Actions; + addActions(actionsName: string, ActionsClass: ActionsClassConstructor): void; + createActions(ActionsClass: ActionsClassConstructor, exportObj?: Object): T; + createActions(ActionsClass: ActionsClassConstructor, exportObj?: Object, ...constructorArgs: Array): T; + generateActions( ...actions: Array): T; + getActions(actionsName: string): AltJS.Actions; //Stores methods - addStore(name:string, store:StoreModel, saveStore?:boolean):void; - createStore(store:StoreModel, name?:string):AltJS.AltStore; - getStore(name:string):AltJS.AltStore; + addStore(name: string, store: StoreModel, saveStore?: boolean): void; + createStore(store: StoreModel, name?: string): AltJS.AltStore; + getStore(name: string): AltJS.AltStore; } export interface AltFactory { - new(config?:AltConfig):Alt; + new(config?: AltConfig): Alt; } - type ActionsClassConstructor = new (alt:Alt) => AltJS.ActionsClass; + type ActionsClassConstructor = new (alt: Alt) => AltJS.ActionsClass; - type ActionHandler = ( ...data:Array) => any; - type ExportConfig = {[key:string]:(...args:Array) => any}; + type ActionHandler = ( ...data: Array) => any; + type ExportConfig = {[key: string]: (...args: Array) => any}; } declare module "alt/utils/chromeDebug" { - function chromeDebug(alt:AltJS.Alt):void; + function chromeDebug(alt: AltJS.Alt): void; export = chromeDebug; } @@ -143,24 +143,24 @@ declare module "alt/AltContainer" { import React = require("react"); interface ContainerProps { - store?:AltJS.AltStore; - stores?:Array>; - inject?:{[key:string]:any}; - actions?:{[key:string]:Object}; - render?:(...props:Array) => React.ReactElement; - flux?:AltJS.Alt; - transform?:(store:AltJS.AltStore, actions:any) => any; - shouldComponentUpdate?:(props:any) => boolean; - component?:React.Component; + store?: AltJS.AltStore; + stores?: Array>; + inject?: {[key: string]: any}; + actions?: {[key: string]: Object}; + render?: (...props: Array) => React.ReactElement; + flux?: AltJS.Alt; + transform?: (store: AltJS.AltStore, actions: any) => any; + shouldComponentUpdate?: (props: any) => boolean; + component?: React.Component; } type AltContainer = React.ReactElement; - var AltContainer:React.ComponentClass; + var AltContainer: React.ComponentClass; export = AltContainer; } declare module "alt" { - var alt:AltJS.AltFactory; + var alt: AltJS.AltFactory; export = alt; } diff --git a/amazon-product-api/index.d.ts b/amazon-product-api/index.d.ts index 6cb7389c73..e86165e6f6 100644 --- a/amazon-product-api/index.d.ts +++ b/amazon-product-api/index.d.ts @@ -6,9 +6,9 @@ interface ICredentials { - awsId: string, - awsSecret: string, - awsTag: string + awsId: string; + awsSecret: string; + awsTag: string; } interface IAmazonProductQueryCallback { diff --git a/amplitude-js/index.d.ts b/amplitude-js/index.d.ts index 613f5ad5d8..61a814003a 100644 --- a/amplitude-js/index.d.ts +++ b/amplitude-js/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Arvydas Sidorenko // Definitions: https://github.com/Asido/DefinitelyTyped -declare module amplitude { +declare namespace amplitude { interface Config { batchEvents?: boolean; cookieExpiration?: number; diff --git a/amqp-rpc/index.d.ts b/amqp-rpc/index.d.ts index 337f8d8a16..eccd2937c1 100644 --- a/amqp-rpc/index.d.ts +++ b/amqp-rpc/index.d.ts @@ -18,7 +18,7 @@ export interface Options { }; ipml_options?: { defaultExchangeName?: string; - } + }; conn_options?: any; } diff --git a/amqplib/index.d.ts b/amqplib/index.d.ts index b406e00ac0..56e2e6d211 100644 --- a/amqplib/index.d.ts +++ b/amqplib/index.d.ts @@ -162,7 +162,7 @@ declare module 'amqplib/properties' { declare module 'amqplib/callback_api' { import events = require('events'); - import shared = require('amqplib/properties') + import shared = require('amqplib/properties'); export import Replies = shared.Replies; export import Options = shared.Options; diff --git a/angular-agility/index.d.ts b/angular-agility/index.d.ts index 2ff1fcf1f2..889dab629e 100644 --- a/angular-agility/index.d.ts +++ b/angular-agility/index.d.ts @@ -8,29 +8,29 @@ declare namespace aa { export interface ILabelStrategies { - [strategyName: string]: (element:ng.IAugmentedJQueryStatic, labelText:string, isRequired:boolean)=>void; + [strategyName: string]: (element: ng.IAugmentedJQueryStatic, labelText: string, isRequired: boolean) => void; } export interface IFieldGroupStrategies { - [strategyName: string]: (element:ng.IAugmentedJQueryStatic)=>void; + [strategyName: string]: (element: ng.IAugmentedJQueryStatic) => void; } export interface IValMsgPlacementStrategies { - [strategyName: string]: (formFieldElement:ng.IAugmentedJQueryStatic, formName:string, formFieldName:string)=>void; + [strategyName: string]: (formFieldElement: ng.IAugmentedJQueryStatic, formName: string, formFieldName: string) => void; } export interface IValidIconStrategy { - validIcon:string; - invalidIcon:string; - getContainer(element:ng.IAugmentedJQueryStatic):void; + validIcon: string; + invalidIcon: string; + getContainer(element: ng.IAugmentedJQueryStatic): void; } export interface ISpinnerClickStrategies { - [strategyName: string]: (element:ng.IAugmentedJQueryStatic)=>void; + [strategyName: string]: (element: ng.IAugmentedJQueryStatic) => void; } export interface IOnNavigateAwayStrategies { - [strategyName: string]: (rootFormScope:ng.IScope, rootForm:ng.IAugmentedJQueryStatic, $injector:ng.auto.IInjectorService)=>void; + [strategyName: string]: (rootFormScope: ng.IScope, rootForm: ng.IAugmentedJQueryStatic, $injector: ng.auto.IInjectorService) => void; } export interface IValidationMessages { @@ -42,27 +42,27 @@ declare namespace aa { } export interface IFormExtensionsProvider extends ng.IServiceProvider { - defaultLabelStrategy:string; - defaultFieldGroupStrategy:string; - defaultValMsgPlacementStrategy:string; - validIconStrategy:IValidIconStrategy; - defaultSpinnerClickStrategy:string; - defaultNotifyTarget:string; - defaultOnNavigateAwayStrategy:string; - validationMessages:IValidationMessages; - valMsgForTemplate:string; - confirmResetStrategy:()=>boolean; - globalSettings:IGlobalSettings; + defaultLabelStrategy: string; + defaultFieldGroupStrategy: string; + defaultValMsgPlacementStrategy: string; + validIconStrategy: IValidIconStrategy; + defaultSpinnerClickStrategy: string; + defaultNotifyTarget: string; + defaultOnNavigateAwayStrategy: string; + validationMessages: IValidationMessages; + valMsgForTemplate: string; + confirmResetStrategy: () => boolean; + globalSettings: IGlobalSettings; - labelStrategies:ILabelStrategies; - fieldGroupStrategies:IFieldGroupStrategies; - valMsgPlacementStrategies:IValMsgPlacementStrategies; - spinnerClickStrategies:ISpinnerClickStrategies; - onNavigateAwayStrategies:IOnNavigateAwayStrategies; + labelStrategies: ILabelStrategies; + fieldGroupStrategies: IFieldGroupStrategies; + valMsgPlacementStrategies: IValMsgPlacementStrategies; + spinnerClickStrategies: ISpinnerClickStrategies; + onNavigateAwayStrategies: IOnNavigateAwayStrategies; } export interface INotifyPredicate { - (message:string, options:any, notifier:any):any; + (message: string, options: any, notifier: any): any; } export interface INotifyDefaults { @@ -74,33 +74,33 @@ declare namespace aa { } export interface INotifyConfig { - name:string; - template?:string; - templateName?:string; - options:INotifyOptions; - namedDefaults:INotifyDefaults; + name: string; + template?: string; + templateName?: string; + options: INotifyOptions; + namedDefaults: INotifyDefaults; } export interface INotifyOptions { - cssClasses?:string; - messageType:string; - allowHtml:boolean; - message:string; + cssClasses?: string; + messageType: string; + allowHtml: boolean; + message: string; } export interface INotifyConfigProvider extends ng.IServiceProvider { - notifyConfigs:any; - defaultTargetContainerName:string; - defaultNotifyConfig:string; - addOrUpdateNotifyConfig(name:string, opts:INotifyConfig):void; - optionsTransformer(options:INotifyOptions, $sce:ng.ISCEService):void; + notifyConfigs: any; + defaultTargetContainerName: string; + defaultNotifyConfig: string; + addOrUpdateNotifyConfig(name: string, opts: INotifyConfig): void; + optionsTransformer(options: INotifyOptions, $sce: ng.ISCEService): void; } export interface IExternalFormValidationConfig { - validations:any; - ignore?:any; - globals?:any; - resolve?:any; - resolveFn?:(modelValue:string)=>string; + validations: any; + ignore?: any; + globals?: any; + resolve?: any; + resolveFn?: (modelValue: string) => string; } } diff --git a/angular-bootstrap-lightbox/index.d.ts b/angular-bootstrap-lightbox/index.d.ts index 9c7438b042..2c1c8a9099 100644 --- a/angular-bootstrap-lightbox/index.d.ts +++ b/angular-bootstrap-lightbox/index.d.ts @@ -21,31 +21,31 @@ declare namespace angular.bootstrap.lightbox { } export interface IImageDimensionParameter { - windowWidth:number; - windowHeight:number; - imageWidth:number; - imageHeight:number; + windowWidth: number; + windowHeight: number; + imageWidth: number; + imageHeight: number; } export interface IModalDimensionsParameter { - windowWidth:number; - windowHeight:number; - imageDisplayWidth:number; - imageDisplayHeight:number; + windowWidth: number; + windowHeight: number; + imageDisplayWidth: number; + imageDisplayHeight: number; } export interface IModalDimensions { - width:number; - height:number; + width: number; + height: number; } export interface ILightbox { - openModal(images:ILightboxImageInfo[], index:number):void; + openModal(images: ILightboxImageInfo[], index: number): void; } export interface ILightBoxProvider { - templateUrl:string; - calculateImageDimensionLimits:(dimensions:IImageDimensionParameter)=>IImageDimensionLimits; - calculateModalDimensions:(dimensions:IModalDimensionsParameter)=>IModalDimensions; + templateUrl: string; + calculateImageDimensionLimits: (dimensions: IImageDimensionParameter) => IImageDimensionLimits; + calculateModalDimensions: (dimensions: IModalDimensionsParameter) => IModalDimensions; } } diff --git a/angular-breadcrumb/index.d.ts b/angular-breadcrumb/index.d.ts index a21d7f7ce0..6a83360798 100644 --- a/angular-breadcrumb/index.d.ts +++ b/angular-breadcrumb/index.d.ts @@ -19,14 +19,13 @@ declare namespace angular.ui { * When defined to true, the state is never included in the chain of states and never appears in the breadcrumb **/ skip?: boolean; - }, + }; ncyBreadcrumbLabel?: string; ncyBreadcrumbLink?: string; } } declare namespace ncy { - /** * Provider that returns an instance of $breadcrumb service. It contains the global configuration of the module. **/ @@ -36,7 +35,7 @@ declare namespace ncy { **/ setOptions(options: breadcrumbProviderOptions): void; } - + /** * Global configuration options for angular-breadcrumb **/ @@ -51,7 +50,7 @@ declare namespace ncy { **/ template?: string; - /** + /** * Contains the path to a template file. This property takes precedence over the template property. **/ templateUrl?: string; diff --git a/angular-cookie/angular-cookie-tests.ts b/angular-cookie/angular-cookie-tests.ts index 7600762086..f9a0a778f2 100644 --- a/angular-cookie/angular-cookie-tests.ts +++ b/angular-cookie/angular-cookie-tests.ts @@ -3,16 +3,16 @@ angular.module('myApp', ['ipCookie']) ipCookie('key', 'value'); ipCookie('key', { value: 'value'}); ipCookie('key', [1, 2, 3]); - + ipCookie('key', 'value', { expires: 21 }); ipCookie('key', 'value', { encode: function (value) { return value; } }); - + ipCookie(); ipCookie('key'); ipCookie('key', undefined, {decode: function (value) { return value; }}); - + ipCookie.remove('key'); ipCookie.remove('key', { path: '/some/path/' }); - + var obj: Object = '255'; }]); \ No newline at end of file diff --git a/angular-deferred-bootstrap/index.d.ts b/angular-deferred-bootstrap/index.d.ts index c01059cf25..10f103626a 100644 --- a/angular-deferred-bootstrap/index.d.ts +++ b/angular-deferred-bootstrap/index.d.ts @@ -7,14 +7,14 @@ declare var deferredBootstrapper: angular.IDeferredBootstrapperStatic; -declare module angular { +declare namespace angular { interface IDeferredBootstrapperStatic { - bootstrap(configParam: IConfigParam): ng.IPromise + bootstrap(configParam: IConfigParam): ng.IPromise; } interface IConfigParam { - element?: Node, - module?: string, - resolve: any + element?: Node; + module?: string; + resolve: any; } } \ No newline at end of file diff --git a/angular-dialog-service/index.d.ts b/angular-dialog-service/index.d.ts index 7d667c032c..1049508243 100644 --- a/angular-dialog-service/index.d.ts +++ b/angular-dialog-service/index.d.ts @@ -60,23 +60,23 @@ declare namespace angular.dialogservice { /** * Opens a new error modal instance. */ - error(header: string, msg: string, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance + error(header: string, msg: string, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance; /** * Opens a new wait modal instance. */ - wait(header: string, msg: string, progress: number, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance + wait(header: string, msg: string, progress: number, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance; /** * Opens a new notify modal instance. */ - notify(header: string, msg: string, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance + notify(header: string, msg: string, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance; /** * Opens a new confirm modal instance. */ - confirm(header: string, msg: string, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance + confirm(header: string, msg: string, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance; /** * Opens a new custom modal instance. */ - create(url: string, ctrlr: string, data: any, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance + create(url: string, ctrlr: string, data: any, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance; } } diff --git a/angular-environment/index.d.ts b/angular-environment/index.d.ts index 94972d1383..ca558ff08b 100644 --- a/angular-environment/index.d.ts +++ b/angular-environment/index.d.ts @@ -18,24 +18,24 @@ declare namespace angular.environment { * Retrieves the correct version of a * variable for the current environment. */ - read: (key: string) => any; + read: (key: string) => any; } interface Service { /** * Retrieve the current environment */ - get: () => string, + get: () => string; /** * Force sets the current environment */ - set: (environment: string) => void, + set: (environment: string) => void; /** * Evaluates current environment against * environment parameter. */ - is: (environment: string) => boolean, + is: (environment: string) => boolean; /** * Retrieves the correct version of a @@ -48,10 +48,10 @@ declare namespace angular.environment { /** * Map of domains to their environments */ - domains: { [environment: string]: Array }, + domains: { [environment: string]: Array }; /** * List of variables split by environment */ - vars: { [environment: string]: { [variable: string]: any }}, + vars: { [environment: string]: { [variable: string]: any }}; } } diff --git a/angular-es/index.d.ts b/angular-es/index.d.ts index 0972b42da0..5b41f6a034 100644 --- a/angular-es/index.d.ts +++ b/angular-es/index.d.ts @@ -29,13 +29,13 @@ declare module 'angular-es' { * @see https://docs.angularjs.org/guide/component */ interface iComponent { - template: string, - selector: string, - controllerAs?: string, - require?: string, - templateUrl?: string, - transclude?: string, - bindings?: Object + template: string; + selector: string; + controllerAs?: string; + require?: string; + templateUrl?: string; + transclude?: string; + bindings?: Object; } /** diff --git a/angular-formly/angular-formly-tests.ts b/angular-formly/angular-formly-tests.ts index 83f13af2d4..94afc86eec 100644 --- a/angular-formly/angular-formly-tests.ts +++ b/angular-formly/angular-formly-tests.ts @@ -21,14 +21,14 @@ class FormConfig { extends: 'input' }); - formlyConfig.disableWarnings = true; + formlyConfig.disableWarnings = true; formlyConfig.templateManipulators = undefined; formlyConfig.extras.apiCheckInstance = null; formlyConfig.extras.defaultHideDirective = 'ng-if'; formlyConfig.extras.disableNgModelAttrsManipulator = true; formlyConfig.extras.errorExistsAndShouldBeVisibleExpression = angular.noop; - formlyConfig.extras.explicitAsync = true; + formlyConfig.extras.explicitAsync = true; formlyConfig.extras.fieldTransform = angular.noop; formlyConfig.extras.getFieldId = angular.noop; formlyConfig.extras.ngModelAttrsManipulatorPreferUnbound = true; diff --git a/angular-growl-v2/angular-growl-v2-tests.ts b/angular-growl-v2/angular-growl-v2-tests.ts index b02c768add..1e670dcb17 100644 --- a/angular-growl-v2/angular-growl-v2-tests.ts +++ b/angular-growl-v2/angular-growl-v2-tests.ts @@ -58,7 +58,7 @@ app.controller("Ctrl", ($scope:angular.IScope, growlMessages.destroyAllMessages(0); growlMessages.addMessage(messages[0]); growlMessages.deleteMessage(messages[1]); - + var testMessage = growl.warning(message); testMessage.setText("Some other message"); testMessage.destroy(); diff --git a/angular-load/index.d.ts b/angular-load/index.d.ts index 8e7c22b6b6..d5fd416d2f 100644 --- a/angular-load/index.d.ts +++ b/angular-load/index.d.ts @@ -8,8 +8,8 @@ declare namespace angular.load { interface IAngularLoadService { - loadScript(url:string): ng.IPromise; - loadCSS(url:string): ng.IPromise; + loadScript(url: string): ng.IPromise; + loadCSS(url: string): ng.IPromise; } } diff --git a/angular-locker/index.d.ts b/angular-locker/index.d.ts index b3395b223d..c9d0bf7720 100644 --- a/angular-locker/index.d.ts +++ b/angular-locker/index.d.ts @@ -10,7 +10,7 @@ import * as angular from 'angular'; declare module 'angular' { export namespace locker { interface ILockerServicePutFunction { - (current: any): any + (current: any): any; } interface ILockerService { @@ -46,7 +46,7 @@ declare module 'angular' { * * @param {String|Function} key - The key to remove */ - has(key: string): boolean + has(key: string): boolean; /** * Get the storage keys as an array */ diff --git a/angular-material/angular-material-0.8.3.d.ts b/angular-material/angular-material-0.8.3.d.ts index 0a19ec3764..d7ce0d12a8 100644 --- a/angular-material/angular-material-0.8.3.d.ts +++ b/angular-material/angular-material-0.8.3.d.ts @@ -12,7 +12,7 @@ declare namespace angular.material { controller?: any; locals?: {[index: string]: any}; targetEvent?: any; - resolve?: {[index: string]: angular.IPromise} + resolve?: {[index: string]: angular.IPromise}; controllerAs?: string; parent?: Element; disableParentScroll?: boolean; @@ -49,7 +49,7 @@ declare namespace angular.material { controller?: any; locals?: {[index: string]: any}; bindToController?: boolean; - resolve?: {[index: string]: angular.IPromise} + resolve?: {[index: string]: angular.IPromise}; controllerAs?: string; parent?: Element; onComplete?: Function; @@ -110,7 +110,7 @@ declare namespace angular.material { controller?: any; locals?: {[index: string]: any}; bindToController?: boolean; - resolve?: {[index: string]: angular.IPromise} + resolve?: {[index: string]: angular.IPromise}; controllerAs?: string; parent?: Element; } diff --git a/angular-material/angular-material-0.9.0.d.ts b/angular-material/angular-material-0.9.0.d.ts index 6ab01e7b13..9d6e06d075 100644 --- a/angular-material/angular-material-0.9.0.d.ts +++ b/angular-material/angular-material-0.9.0.d.ts @@ -14,7 +14,7 @@ declare namespace angular.material { controller?: string|Function; locals?: {[index: string]: any}; targetEvent?: MouseEvent; - resolve?: {[index: string]: angular.IPromise} + resolve?: {[index: string]: angular.IPromise}; controllerAs?: string; parent?: string|Element|JQuery; // default: root node disableParentScroll?: boolean; // default: true @@ -47,14 +47,14 @@ declare namespace angular.material { scope?: angular.IScope; // default: new child scope preserveScope?: boolean; // default: false disableParentScroll?: boolean; // default: true - hasBackdrop?: boolean // default: true + hasBackdrop?: boolean; // default: true clickOutsideToClose?: boolean; // default: false escapeToClose?: boolean; // default: true focusOnOpen?: boolean; // default: true controller?: string|Function; locals?: {[index: string]: any}; bindToController?: boolean; // default: false - resolve?: {[index: string]: angular.IPromise} + resolve?: {[index: string]: angular.IPromise}; controllerAs?: string; parent?: string|Element|JQuery; // default: root node onComplete?: Function; @@ -118,7 +118,7 @@ declare namespace angular.material { controller?: string|Function; locals?: {[index: string]: any}; bindToController?: boolean; // default: false - resolve?: {[index: string]: angular.IPromise} + resolve?: {[index: string]: angular.IPromise}; controllerAs?: string; parent?: string|Element|JQuery; // default: root node } diff --git a/angular-material/angular-material-tests.ts b/angular-material/angular-material-tests.ts index 61bafd49b0..ace99ec451 100644 --- a/angular-material/angular-material-tests.ts +++ b/angular-material/angular-material-tests.ts @@ -21,9 +21,9 @@ myApp.config(( .dark(true); var browserColors: ng.material.IBrowserColors = { - theme: 'default', - palette: 'neonRed', - hue: '500' + theme: 'default', + palette: 'neonRed', + hue: '500' }; $mdThemingProvider.enableBrowserColor(browserColors); @@ -185,7 +185,7 @@ myApp.controller('PanelController', ($scope: ng.IScope, $mdPanel: ng.material.IP disableParentScroll: true, zIndex: 150 }; - + $mdPanel.create(config); var panelRef = $mdPanel.create(config); diff --git a/angular-material/index.d.ts b/angular-material/index.d.ts index ffdab5839b..97d36f2677 100644 --- a/angular-material/index.d.ts +++ b/angular-material/index.d.ts @@ -99,7 +99,7 @@ declare module 'angular' { controller?: string | Function; locals?: { [index: string]: any }; bindToController?: boolean; // default: false - resolve?: { [index: string]: () => angular.IPromise } + resolve?: { [index: string]: () => angular.IPromise }; controllerAs?: string; parent?: string | Element | JQuery; // default: root node onShowing?: Function; @@ -176,7 +176,7 @@ declare module 'angular' { controller?: string | Function; locals?: { [index: string]: any }; bindToController?: boolean; // default: false - resolve?: { [index: string]: () => angular.IPromise } + resolve?: { [index: string]: () => angular.IPromise }; controllerAs?: string; parent?: string | Element | JQuery; // default: root node } @@ -318,7 +318,7 @@ declare module 'angular' { controllerAs?: string; bindToController?: boolean; // default: true locals?: { [index: string]: any }; - resolve?: { [index: string]: () => angular.IPromise } + resolve?: { [index: string]: () => angular.IPromise }; attachTo?: string | JQuery | Element; propagateContainerEvents?: boolean; panelClass?: string; diff --git a/angular-media-queries/index.d.ts b/angular-media-queries/index.d.ts index 1b0cf67d60..b209b9cef3 100644 --- a/angular-media-queries/index.d.ts +++ b/angular-media-queries/index.d.ts @@ -14,7 +14,7 @@ declare module 'angular' { // Returns a value indicating if the current device has a retina screen isRetina: boolean; - + is(list: Array | string): boolean; // Executes the callback function on window resize with the match truthiness as the first argument. @@ -28,7 +28,7 @@ declare module 'angular' { onChange(scope: angular.IScope, list: Array | string, callback: (result: boolean) => void): boolean; // Executes the callback only when inside of the particular screensize. - // The 'scope' parameter is optional. If it's not passed in, '$rootScope' is used. + // The 'scope' parameter is optional. If it's not passed in, '$rootScope' is used. when(list: Array | string, callback: (result: boolean) => void, scope?: angular.IScope): boolean; } } diff --git a/angular-media-queries/match-media-tests.ts b/angular-media-queries/match-media-tests.ts index e24c43c073..f3cfdd2f62 100644 --- a/angular-media-queries/match-media-tests.ts +++ b/angular-media-queries/match-media-tests.ts @@ -9,21 +9,21 @@ myApp.controller('TestController', ($log: angular.ILogService, var fnCallback = (result: boolean) => { $log.info(`Result: ${result}`); } - + // '.isRetina' examples if(screenSize.isRetina) { $log.info("Retina screen detected") } - + // '.is(...)' examples var res = screenSize.is(["xs", "sm"]); fnCallback(res); res = screenSize.is("xs, lg") fnCallback(res); - + // '.on(...)' examples - + res = screenSize.on(["xs", "sm"], fnCallback); fnCallback(res); @@ -35,7 +35,7 @@ myApp.controller('TestController', ($log: angular.ILogService, res = screenSize.on("xs, lg", fnCallback, $scope); fnCallback(res); - + // '.onChange(...)' examples res = screenSize.onChange($scope, ["xs", "sm"], fnCallback); @@ -43,9 +43,9 @@ myApp.controller('TestController', ($log: angular.ILogService, res = screenSize.onChange($scope, "xs, lg", fnCallback); fnCallback(res); - + // '.when(...)' examples - + res = screenSize.when(["xs", "sm"], fnCallback); fnCallback(res); diff --git a/angular-meteor/angular-meteor-tests.ts b/angular-meteor/angular-meteor-tests.ts index 6a379b8bac..99c8bfeae1 100644 --- a/angular-meteor/angular-meteor-tests.ts +++ b/angular-meteor/angular-meteor-tests.ts @@ -15,11 +15,11 @@ interface CustomScope extends angular.meteor.IScope { todos: angular.meteor.AngularMeteorCollection; stickyTodos: angular.meteor.AngularMeteorCollection; notAutoTodos: angular.meteor.AngularMeteorCollection; - + todo: ITodo; todoNotAuto: TodoAngularMeteorObject; todoSubscribed: TodoAngularMeteorObject; - + save: (todo: ITodo) => void; saveAll: () =>void; autoSave: (todo: ITodo) => void; @@ -36,7 +36,7 @@ var app = angular.module('angularMeteorTestApp'); app.controller("mainCtrl", ['$scope', '$meteor', ($scope: CustomScope, $meteor: angular.meteor.IMeteorService) => { // Bind all the todos to $scope.todos $scope.todos = $meteor.collection(Todos); - + $scope.sticky = true; // Bind all sticky todos to $scope.stickyTodos // Binds the query to $scope.sticky so that if it changes, Meteor will re-run the query and bind it @@ -44,46 +44,46 @@ app.controller("mainCtrl", ['$scope', '$meteor', ($scope: CustomScope, $meteor: $scope.stickyTodos = $meteor.collection(function(){ return Todos.find({sticky: $scope.getReactively('sticky')}); }); - + // Bind without auto-save all todos to $scope.notAutoTodos $scope.notAutoTodos = $meteor.collection(Todos, false).subscribe("publicTodos"); - + $scope.todoNotAuto = $meteor.object(Todos, 'TodoID', false); $scope.todoSubscribed = $meteor.object(Todos, 'TodoID').subscribe('todos'); $scope.todo = $scope.todoNotAuto.getRawObject(); $scope.todoNotAuto.reset(); $scope.todoNotAuto.save($scope.todo).then((data) => { return data == 1; });; - + // todo might be an object like this {text: "Learn Angular", sticky: false} // or an array like this: // [{text: "Learn Angular", sticky: false}, {text: "Hello World", sticky: true}] - + $scope.save = function(todo) { $scope.notAutoTodos.save(todo); }; - + $scope.saveAll = function() { $scope.notAutoTodos.save(); }; - + $scope.autoSave = function(todo) { $scope.todos.push(todo); }; - + // todoId might be an string like this "WhrnEez5yBRgo4yEm" // or an array like this ["WhrnEez5yBRgo4yEm","gH6Fa4DXA3XxQjXNS"] $scope.remove = function(todoId) { $scope.notAutoTodos.remove(todoId); }; - + $scope.removeAll = function() { $scope.notAutoTodos.remove(); }; - + $scope.removeAuto = function(todo) { $scope.todos.splice( $scope.todos.indexOf(todo), 1 ); } - + $scope.toSticky = function(todo) { if (angular.isArray(todo)){ angular.forEach(todo, function(object) { @@ -92,53 +92,53 @@ app.controller("mainCtrl", ['$scope', '$meteor', ($scope: CustomScope, $meteor: } else { todo.sticky = true; } - + $scope.stickyTodos.save(todo); }; - + var todoObject = {name:'first todo'}; var todosArray = [{name:'second todo'}, {name:'third todo'}]; var todoSecondObject = {name:'forth todo'}; - + $scope.todos.save(todoObject); // todos equals [{name:'first todo'}] - + $scope.todos.save(todosArray); // todos equals [{name:'first todo'}, {name:'second todo'}, {name:'third todo'}] - + $scope.todos.push(todoSecondObject); // The scope variable equals to [{name:'first todo'}, {name:'second todo'}, {name:'third todo'}, {name:'forth todo'}] // but the collection still equals to [{name:'first todo'}, {name:'second todo'}, {name:'third todo'}] - + $scope.todos.save(); // Now the collection also equals to [{name:'first todo'}, {name:'second todo'}, {name:'third todo'}, {name:'forth todo'}] - + $scope.todos.remove('firstTodoId'); // scope and collection equals to [{name:'second todo'}, {name:'third todo'}, {name:'forth todo'}] - + var todoIdsArray = ['secondTodoId', 'thirdTodoId']; $scope.todos.remove(todoIdsArray); // removes everything matches the array of IDs both in scope and in collection - + $scope.todos.pop(); // removes only in scope - + $scope.todos.remove(); // syncs also in Meteor collection - + // Subscribe -> - + $meteor.subscribe('todos').then((subscriptionHandle) => { // Bind all the todos to $scope.todos $scope.todos = $meteor.collection(Todos); - + console.log($scope.todos + ' is ready'); - + // You can use the subscription handle to stop the subscription if you want subscriptionHandle.stop(); }); - + $scope.subscribe('todos').then((subscriptionHandle) => { // Bind all the todos to $scope.books $scope.todos = $meteor.collection(Todos); - + console.log($scope.todos + ' is ready'); - + // No need to stop the subscription, it will automatically close on scope destroy }); - + $meteor.call('subscribe', $scope.todo._id, $scope.currentUser._id).then((data) => { // Handle success console.log('success subscribing', data.name); @@ -146,22 +146,22 @@ app.controller("mainCtrl", ['$scope', '$meteor', ($scope: CustomScope, $meteor: // Handle error console.log('failed', err); }); - + if (!$scope.loggingIn) { $meteor.waitForUser(); - + $meteor.requireUser(); - + $meteor.requireValidUser(user => { return user.username == 'admin'; }); - + $meteor.loginWithPassword('user', 'password').then(() => { console.log('Login success'); }, err => { console.log('Login error - ', err); }); - + $meteor.createUser({ username:'moma', email:'example@gmail.com', @@ -172,45 +172,45 @@ app.controller("mainCtrl", ['$scope', '$meteor', ($scope: CustomScope, $meteor: }, err => { console.log('Login error - ', err); }); - + $meteor.changePassword('old', 'new232f3').then(() => { console.log('Change password success'); }, err => { console.log('Error changing password - ', err); }); - + $meteor.forgotPassword({email: 'sample@gmail.com'}).then(() => { console.log('Success sending forgot password email'); }, err => { console.log('Error sending forgot password email - ', err); }); - + $meteor.resetPassword('tokenID', 'new232f3').then(() => { console.log('Reset password success'); }, err => { console.log('Error resetting password - ', err); }); - + $meteor.verifyEmail('tokenID').then(() => { console.log('Success verifying password '); }, err => { console.log('Error verifying password - ', err); }); - + $meteor.logout().then(() => { console.log('Logout success'); }, err => { console.log('logout error - ', err); }); - + $meteor.logoutOtherClients().then(() => { console.log('Logout success'); }, err => { console.log('logout error - ', err); }); - + var loginWithOptions = {requestPermissions: ['email']}; - + $meteor.loginWithFacebook({requestPermissions: ['email']}).then(() => { console.log('Login success'); }, err => { @@ -242,14 +242,14 @@ app.controller("mainCtrl", ['$scope', '$meteor', ($scope: CustomScope, $meteor: console.log('Login error - ', err); }); } - + $meteor.autorun($scope, () => { console.log("Aurorun triggered."); }); $meteor.getCollectionByName('collectionName'); - + // requires meteor add mdg:camera $meteor.getPicture().then(function(data){ $scope['picture'] = data; }); - + $meteor.session('counter').bind($scope, 'counter'); }]); diff --git a/angular-meteor/index.d.ts b/angular-meteor/index.d.ts index 8d64d3bae0..31d96243ce 100644 --- a/angular-meteor/index.d.ts +++ b/angular-meteor/index.d.ts @@ -51,7 +51,7 @@ declare module 'angular' { * @param definitions - Object containing `name` => `function` definition, where each name is a string and each function is the helper function. Should return a [MongoDB Cursor](http://docs.meteor.com/#/full/mongo_cursor) * @return This method returns this, which the the reactive context, in order to provide the ability to chain the logic. */ - helpers(definitions : { [helperName : string] : () => Mongo.Cursor }): IScope; + helpers(definitions: { [helperName: string]: () => Mongo.Cursor }): IScope; /** * This method is a wrapper of Tracker.autorun and shares exactly the same API. @@ -61,7 +61,7 @@ declare module 'angular' { * * @param runFunc - The function to run. It receives one argument: the Computation object that will be returned. */ - autorun(runFunc : () => void) : Tracker.Computation; + autorun(runFunc: () => void): Tracker.Computation; } /** @@ -76,7 +76,7 @@ declare module 'angular' { * @param [autoClientSave=true] - By default, changes in the Angular collection will automatically update the Meteor collection. * - However if set to false, changes in the client won't be automatically propagated back to the Meteor collection. */ - collection(collection: Mongo.Collection|ReactiveResult|Function|(()=>T), autoClientSave?: boolean): AngularMeteorCollection; + collection(collection: Mongo.Collection|ReactiveResult|Function|(() => T), autoClientSave?: boolean): AngularMeteorCollection; /** * A service that wraps the Meteor collections to enable reactivity within AngularJS. @@ -87,7 +87,7 @@ declare module 'angular' { * - However if set to false, changes in the client won't be automatically propagated back to the Meteor collection. * @param [updateCollection] - A collection object which will be used for updates (insert, update, delete). */ - collection(collection: Mongo.Collection|ReactiveResult|Function|(()=>T), autoClientSave: boolean, updateCollection: Mongo.Collection): AngularMeteorCollection2; + collection(collection: Mongo.Collection|ReactiveResult|Function|(() => T), autoClientSave: boolean, updateCollection: Mongo.Collection): AngularMeteorCollection2; /** * A service that wraps a Meteor object to enable reactivity within AngularJS. @@ -307,7 +307,7 @@ declare module 'angular' { * * @param subscriptionName - The subscription name to subscribe to. Exactly like the first parameter in $meteor.subscribe service. */ - subscribe(subscriptionName:string): AngularMeteorObject; + subscribe(subscriptionName: string): AngularMeteorObject; } /** @@ -342,7 +342,7 @@ declare module 'angular' { * * @param subscriptionName - The subscription name to subscribe to. Exactly like the first parameter in $meteor.subscribe service. */ - subscribe(subscriptionName:string): AngularMeteorCollection2; + subscribe(subscriptionName: string): AngularMeteorCollection2; } interface ILoginWithExternalService { diff --git a/angular-mocks/angular-mocks-tests.ts b/angular-mocks/angular-mocks-tests.ts index d0d1dc5dce..bea900ffff 100644 --- a/angular-mocks/angular-mocks-tests.ts +++ b/angular-mocks/angular-mocks-tests.ts @@ -451,11 +451,11 @@ requestHandler.passThrough().passThrough(); requestHandler.respond((method, url, data, headers) => [404, 'data', { header: 'value' }, 'responseText']); requestHandler.respond((method, url, data, headers) => [404, 'data', { header: 'value' }, 'responseText']).respond({}); requestHandler.respond((method, url, data, headers) => { return [404, { key: 'value' }, { header: 'value' }, 'responseText']; }); -requestHandler.respond((method, url, data, headers, params) => { +requestHandler.respond((method, url, data, headers, params) => { if(params.id === 1) { return [200, { key: 'value'}, { header: 'value'}, 'responseText']; } else { - return [404, { key: 'value' }, { header: 'value' }, 'responseText']; + return [404, { key: 'value' }, { header: 'value' }, 'responseText']; } }); requestHandler.respond('data'); diff --git a/angular-mocks/index.d.ts b/angular-mocks/index.d.ts index 8aa172e293..4f0f21890f 100644 --- a/angular-mocks/index.d.ts +++ b/angular-mocks/index.d.ts @@ -32,13 +32,13 @@ declare module 'angular' { // see https://docs.angularjs.org/api/ngMock/function/angular.mock.dump dump(obj: any): string; - inject: IInjectStatic + inject: IInjectStatic; // see https://docs.angularjs.org/api/ngMock/function/angular.mock.module module: { (...modules: any[]): any; sharedInjector(): void; - } + }; // see https://docs.angularjs.org/api/ngMock/type/angular.mock.TzDate TzDate(offset: number, timestamp: number): Date; diff --git a/angular-odata-resources/index.d.ts b/angular-odata-resources/index.d.ts index 3af2573bf8..732cbbcf89 100644 --- a/angular-odata-resources/index.d.ts +++ b/angular-odata-resources/index.d.ts @@ -72,7 +72,7 @@ declare namespace OData { // Also, static calls always return the IResource (or IResourceArray) retrieved // https://github.com/angular/angular.js/blob/v1.2.0/src/ngResource/resource.js#L538-L549 interface IResourceClass { - new(dataOrParams? : any) : IResource; + new(dataOrParams?: any): IResource; get(): IResource; get(params: Object): IResource; get(success: Function, error?: Function): IResource; @@ -266,7 +266,7 @@ declare namespace OData { (queryString: string, success: () => any, error: () => any, isSingleElement?: boolean, forceSingleElement?: boolean): T; } - interface ICountResult{ + interface ICountResult { result: number; $promise: angular.IPromise; } @@ -281,18 +281,18 @@ declare namespace OData { constructor(callback: ProviderCallback); filter(operand1: any, operand2?: any, operand3?: any): Provider; orderBy(arg1: string, arg2?: string): Provider; - transformUrl(transformMethod : (url:string)=>string): Provider; + transformUrl(transformMethod: (url: string) => string): Provider; take(amount: number): Provider; skip(amount: number): Provider; private execute(); - query(success?: ((p:T[])=>void), error?: (()=>void)): T[]; - single(success?: ((p:T)=>void), error?: (()=>void)): T; - get(key: any, success?: ((p:T)=>void), error?: (()=>void)): T; + query(success?: ((p: T[]) => void), error?: (() => void)): T[]; + single(success?: ((p: T) => void), error?: (() => void)): T; + get(key: any, success?: ((p: T) => void), error?: (() => void)): T; expand(...params: string[]): Provider; expand(params: string[]): Provider; select(...params: string[]): Provider; select(params: string[]): Provider; - count(success?: (result: ICountResult) => any, error?: () => any):ICountResult; + count(success?: (result: ICountResult) => any, error?: () => any): ICountResult; withInlineCount(): Provider; } diff --git a/angular-resource/index.d.ts b/angular-resource/index.d.ts index afde3cad14..42f34fb02f 100644 --- a/angular-resource/index.d.ts +++ b/angular-resource/index.d.ts @@ -52,7 +52,7 @@ declare module 'angular' { // Hash of action descriptors allows custom action names interface IActionHash { - [action: string]: IActionDescriptor + [action: string]: IActionDescriptor; } // Just a reference to facilitate describing new actions @@ -70,7 +70,7 @@ declare module 'angular' { * would be used for multiple requests. If you are looking for a way to cancel requests, you should * use the cancellable option. */ - timeout?: number + timeout?: number; cancellable?: boolean; withCredentials?: boolean; responseType?: string; @@ -115,7 +115,7 @@ declare module 'angular' { // Also, static calls always return the IResource (or IResourceArray) retrieved // https://github.com/angular/angular.js/blob/v1.2.0/src/ngResource/resource.js#L538-L549 interface IResourceClass { - new(dataOrParams? : any) : T & IResource; + new(dataOrParams?: any) : T & IResource; get: IResourceMethod; query: IResourceArrayMethod; diff --git a/angular-route/index.d.ts b/angular-route/index.d.ts index dc1f6507bf..b0fbbe6bf9 100644 --- a/angular-route/index.d.ts +++ b/angular-route/index.d.ts @@ -44,7 +44,7 @@ declare module 'angular' { updateParams(newParams: { [key: string]: string }): void; } - type InlineAnnotatedFunction = Function | Array + type InlineAnnotatedFunction = Function | Array; /** * see http://docs.angularjs.org/api/ngRoute/provider/$routeProvider#when for API documentation @@ -71,7 +71,7 @@ declare module 'angular' { * * {Array.} - route parameters extracted from the current $location.path() by applying the current route */ - template?: string | { ($routeParams?: angular.route.IRouteParamsService): string; } + template?: string | { ($routeParams?: angular.route.IRouteParamsService): string; }; /** * {string=|function()=} * Path or function that returns a path to an html template that should be used by ngView. @@ -80,7 +80,7 @@ declare module 'angular' { * * {Array.} - route parameters extracted from the current $location.path() by applying the current route */ - templateUrl?: string | { ($routeParams?: angular.route.IRouteParamsService): string; } + templateUrl?: string | { ($routeParams?: angular.route.IRouteParamsService): string; }; /** * {Object.=} - An optional map of dependencies which should be injected into the controller. If any of these dependencies are promises, the router will wait for them all to be resolved or one to be rejected before the controller is instantiated. If all the promises are resolved successfully, the values of the resolved promises are injected and $routeChangeSuccess event is fired. If any of the promises are rejected the $routeChangeError event is fired. The map object is: * diff --git a/angular-signalr-hub/index.d.ts b/angular-signalr-hub/index.d.ts index 02238f5244..c35890aa41 100644 --- a/angular-signalr-hub/index.d.ts +++ b/angular-signalr-hub/index.d.ts @@ -16,7 +16,7 @@ declare namespace ngSignalr { /** * Creates a new Hub connection */ - new (hubName: string, options: HubOptions): Hub + new (hubName: string, options: HubOptions): Hub; } class Hub { diff --git a/angular-spinner/index.d.ts b/angular-spinner/index.d.ts index e81901ef90..51289e1f6e 100644 --- a/angular-spinner/index.d.ts +++ b/angular-spinner/index.d.ts @@ -6,20 +6,20 @@ /// /** -* SpinnerService +* SpinnerService * see https://github.com/urish/angular-spinner */ interface ISpinnerService { /** * Start selected spinner - * + * * @param spinner key */ spin(key: string): void; /** * Stop selected spinner - * + * * @param spinner key */ stop(key: string): void; diff --git a/angular-ui-router/angular-ui-router-tests.ts b/angular-ui-router/angular-ui-router-tests.ts index 38ddcca26b..42faac3359 100644 --- a/angular-ui-router/angular-ui-router-tests.ts +++ b/angular-ui-router/angular-ui-router-tests.ts @@ -143,7 +143,7 @@ class UrlLocatorTestService implements IUrlLocatorTestService { private $state: ng.ui.IStateService ) { $rootScope.$on("$locationChangeSuccess", (event: ng.IAngularEvent) => this.onLocationChangeSuccess(event)); - $rootScope.$on('$stateNotFound', (event: ng.IAngularEvent, unfoundState: ng.ui.IUnfoundState, fromState: ng.ui.IState, fromParams: {}) => + $rootScope.$on('$stateNotFound', (event: ng.IAngularEvent, unfoundState: ng.ui.IUnfoundState, fromState: ng.ui.IState, fromParams: {}) => this.onStateNotFound(event, unfoundState, fromState, fromParams)); } @@ -166,14 +166,14 @@ class UrlLocatorTestService implements IUrlLocatorTestService { }); } } - + private onStateNotFound(event: ng.IAngularEvent, unfoundState: ng.ui.IUnfoundState, fromState: ng.ui.IState, fromParams: {}) { var unfoundTo: string = unfoundState.to; var unfoundToParams: {} = unfoundState.toParams; - var unfoundOptions: ng.ui.IStateOptions = unfoundState.options + var unfoundOptions: ng.ui.IStateOptions = unfoundState.options } private stateServiceTest() { diff --git a/angular-ui-router/index.d.ts b/angular-ui-router/index.d.ts index 035dc93430..c27d554e0e 100644 --- a/angular-ui-router/index.d.ts +++ b/angular-ui-router/index.d.ts @@ -97,9 +97,9 @@ declare module 'angular' { } interface IUnfoundState { - to: string, - toParams: {}, - options: IStateOptions + to: string; + toParams: {}; + options: IStateOptions; } interface IStateProvider extends angular.IServiceProvider { diff --git a/angular-ui-sortable/index.d.ts b/angular-ui-sortable/index.d.ts index 0a7a86754a..7f50bf8c8c 100644 --- a/angular-ui-sortable/index.d.ts +++ b/angular-ui-sortable/index.d.ts @@ -54,7 +54,7 @@ declare module 'angular' { /** * Holds the ui-sortable element that the dragged item originated from. */ - source: ng.IAugmentedJQuery + source: ng.IAugmentedJQuery; /** * Holds the array that is specified by the `ng-model` of the [`source`](#source) ui-sortable element. diff --git a/angular-websocket/index.d.ts b/angular-websocket/index.d.ts index 9c2c93ea09..59c1bcdcda 100644 --- a/angular-websocket/index.d.ts +++ b/angular-websocket/index.d.ts @@ -12,14 +12,14 @@ declare module "angular" { * Options available to be specified for IWebSocketProvider. */ type IWebSocketConfigOptions = { - scope?: ng.IScope; - rootScopeFailOver?: boolean; - useApplyAsync?: boolean; - initialTimeout?: number; - maxTimeout?: number; - binaryType?: "blob" | "arraybuffer"; - reconnectIfNotNormalClose?: boolean; - } + scope?: ng.IScope; + rootScopeFailOver?: boolean; + useApplyAsync?: boolean; + initialTimeout?: number; + maxTimeout?: number; + binaryType?: "blob" | "arraybuffer"; + reconnectIfNotNormalClose?: boolean; + }; interface IWebSocketProvider { /** * Creates and opens an IWebSocket instance. @@ -41,20 +41,20 @@ declare module "angular" { /** If true, each message handled will safely call `$rootScope.$digest()`. */ autoApply?: boolean; - } + }; /** Type corresponding to onMessage callbaks stored in $Websocket#onMessageCallbacks instance. */ type IWebSocketMessageHandler = { - fn: (evt: MessageEvent) => void; - pattern: string | RegExp; - autoApply: boolean; - } + fn: (evt: MessageEvent) => void; + pattern: string | RegExp; + autoApply: boolean; + }; /** Type corresponding to items stored in $WebSocket#sendQueue instance. */ type IWebSocketQueueItem = { - message: any; - defered: ng.IPromise; - } + message: any; + defered: ng.IPromise; + }; interface IWebSocket { diff --git a/angular.throttle/index.d.ts b/angular.throttle/index.d.ts index c82d54ae44..c05b6280f8 100644 --- a/angular.throttle/index.d.ts +++ b/angular.throttle/index.d.ts @@ -9,6 +9,6 @@ import * as angular from 'angular'; declare module 'angular' { interface IAngularStatic { - throttle:( fn:Function, throttle:number, options?:{leading?:boolean; trailing?:boolean;} ) => Function; + throttle: (fn: Function, throttle: number, options?: {leading?: boolean; trailing?: boolean}) => Function; } } diff --git a/angular/index.d.ts b/angular/index.d.ts index d07777d2cf..487d238c3f 100644 --- a/angular/index.d.ts +++ b/angular/index.d.ts @@ -1436,7 +1436,7 @@ declare namespace angular { (data: any, headersGetter: IHttpHeadersGetter, status: number): any; } - type HttpHeaderType = {[requestType: string]:string|((config:IRequestConfig) => string)}; + type HttpHeaderType = {[requestType: string]: string|((config: IRequestConfig) => string)}; interface IHttpRequestConfigHeaders { [requestType: string]: any; @@ -1529,7 +1529,7 @@ declare namespace angular { * @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining. * otherwise, returns the current configured value. */ - useLegacyPromiseExtensions(value:boolean) : boolean | IHttpProvider; + useLegacyPromiseExtensions(value: boolean): boolean | IHttpProvider; } /////////////////////////////////////////////////////////////////////////// @@ -1852,7 +1852,7 @@ declare namespace angular { /////////////////////////////////////////////////////////////////////////// // AUTO module (angular.js) /////////////////////////////////////////////////////////////////////////// - export module auto { + export namespace auto { /////////////////////////////////////////////////////////////////////// // InjectorService @@ -1862,33 +1862,33 @@ declare namespace angular { annotate(fn: Function, strictDi?: boolean): string[]; annotate(inlineAnnotatedFunction: any[]): string[]; get(name: string, caller?: string): T; - get(name: '$anchorScroll'): IAnchorScrollService - get(name: '$cacheFactory'): ICacheFactoryService - get(name: '$compile'): ICompileService - get(name: '$controller'): IControllerService - get(name: '$document'): IDocumentService - get(name: '$exceptionHandler'): IExceptionHandlerService - get(name: '$filter'): IFilterService - get(name: '$http'): IHttpService - get(name: '$httpBackend'): IHttpBackendService - get(name: '$httpParamSerializer'): IHttpParamSerializer - get(name: '$httpParamSerializerJQLike'): IHttpParamSerializer - get(name: '$interpolate'): IInterpolateService - get(name: '$interval'): IIntervalService - get(name: '$locale'): ILocaleService - get(name: '$location'): ILocationService - get(name: '$log'): ILogService - get(name: '$parse'): IParseService - get(name: '$q'): IQService - get(name: '$rootElement'): IRootElementService - get(name: '$rootScope'): IRootScopeService - get(name: '$sce'): ISCEService - get(name: '$sceDelegate'): ISCEDelegateService - get(name: '$templateCache'): ITemplateCacheService - get(name: '$templateRequest'): ITemplateRequestService - get(name: '$timeout'): ITimeoutService - get(name: '$window'): IWindowService - get(name: '$xhrFactory'): IXhrFactory + get(name: '$anchorScroll'): IAnchorScrollService; + get(name: '$cacheFactory'): ICacheFactoryService; + get(name: '$compile'): ICompileService; + get(name: '$controller'): IControllerService; + get(name: '$document'): IDocumentService; + get(name: '$exceptionHandler'): IExceptionHandlerService; + get(name: '$filter'): IFilterService; + get(name: '$http'): IHttpService; + get(name: '$httpBackend'): IHttpBackendService; + get(name: '$httpParamSerializer'): IHttpParamSerializer; + get(name: '$httpParamSerializerJQLike'): IHttpParamSerializer; + get(name: '$interpolate'): IInterpolateService; + get(name: '$interval'): IIntervalService; + get(name: '$locale'): ILocaleService; + get(name: '$location'): ILocationService; + get(name: '$log'): ILogService; + get(name: '$parse'): IParseService; + get(name: '$q'): IQService; + get(name: '$rootElement'): IRootElementService; + get(name: '$rootScope'): IRootScopeService; + get(name: '$sce'): ISCEService; + get(name: '$sceDelegate'): ISCEDelegateService; + get(name: '$templateCache'): ITemplateCacheService; + get(name: '$templateRequest'): ITemplateRequestService; + get(name: '$timeout'): ITimeoutService; + get(name: '$window'): IWindowService; + get(name: '$xhrFactory'): IXhrFactory; has(name: string): boolean; instantiate(typeConstructor: Function, locals?: any): T; invoke(inlineAnnotatedFunction: any[]): any; diff --git a/angular/legacy/angular-1.0.d.ts b/angular/legacy/angular-1.0.d.ts index 8c3fbca20a..024f7e7309 100644 --- a/angular/legacy/angular-1.0.d.ts +++ b/angular/legacy/angular-1.0.d.ts @@ -10,7 +10,7 @@ declare var angular: ng.IAngularStatic; // Support for painless dependency injection interface Function { - $inject:string[]; + $inject: string[]; } /////////////////////////////////////////////////////////////////////////////// @@ -93,8 +93,8 @@ declare namespace ng { constant(object: Object): IModule; controller(name: string, controllerConstructor: Function): IModule; controller(name: string, inlineAnnotadedConstructor: any[]): IModule; - controller(object : Object): IModule; - directive(name: string, directiveFactory: (...params:any[])=> IDirective): IModule; + controller(object: Object): IModule; + directive(name: string, directiveFactory: (...params: any[]) => IDirective): IModule; directive(name: string, inlineAnnotadedFunction: any[]): IModule; directive(object: Object): IModule; factory(name: string, serviceFactoryFunction: Function): IModule; @@ -125,7 +125,7 @@ declare namespace ng { /////////////////////////////////////////////////////////////////////////// interface IAttributes { $set(name: string, value: any): void; - $observe(name: string, fn:(value?:any)=>any):void; + $observe(name: string, fn: (value?: any) => any): void; $attr: any; } @@ -669,7 +669,7 @@ declare namespace ng { // and http://docs.angularjs.org/guide/directive /////////////////////////////////////////////////////////////////////////// - interface IDirective{ + interface IDirective { priority?: number; template?: any; templateUrl?: any; @@ -722,7 +722,7 @@ declare namespace ng { /////////////////////////////////////////////////////////////////////////// // AUTO module (angular.js) /////////////////////////////////////////////////////////////////////////// - export module auto { + export namespace auto { /////////////////////////////////////////////////////////////////////// // InjectorService diff --git a/angular/legacy/angular-1.2.d.ts b/angular/legacy/angular-1.2.d.ts index 2c4fd8d014..c52a6ed963 100644 --- a/angular/legacy/angular-1.2.d.ts +++ b/angular/legacy/angular-1.2.d.ts @@ -164,7 +164,7 @@ declare namespace ng { * @param controllerConstructor Controller constructor fn (optionally decorated with DI annotations in the array notation). */ controller(name: string, inlineAnnotatedConstructor: any[]): IModule; - controller(object : Object): IModule; + controller(object: Object): IModule; directive(name: string, directiveFactory: IDirectiveFactory): IModule; directive(name: string, inlineAnnotatedFunction: any[]): IModule; directive(object: Object): IModule; @@ -245,7 +245,7 @@ declare namespace ng { // The observer function will be invoked once during the next $digest // following compilation. The observer is then invoked whenever the // interpolated value changes. - $observe(name: string, fn:(value?:any)=>any): Function; + $observe(name: string, fn: (value?: any) => any): Function; // A map of DOM element attribute names to the normalized name. This is needed // to do reverse lookup from normalized name back to actual name. @@ -347,7 +347,7 @@ declare namespace ng { $watchCollection(watchExpression: (scope: IScope) => any, listener: (newValue: any, oldValue: any, scope: IScope) => any): Function; $watchGroup(watchExpressions: any[], listener: (newValue: any, oldValue: any, scope: IScope) => any): Function; - $watchGroup(watchExpressions: {(scope: IScope) : any}[], listener: (newValue: any, oldValue: any, scope: IScope) => any): Function; + $watchGroup(watchExpressions: {(scope: IScope): any}[], listener: (newValue: any, oldValue: any, scope: IScope) => any): Function; $parent: IScope; @@ -647,13 +647,13 @@ declare namespace ng { catch(onRejected: (reason: any) => IPromise): IPromise; catch(onRejected: (reason: any) => TResult): IPromise; - finally(finallyCallback: ()=>any):IPromise; + finally(finallyCallback: () => any): IPromise; } interface IDeferred { resolve(value?: T): void; reject(reason?: any): void; - notify(state?:any): void; + notify(state?: any): void; promise: IPromise; } @@ -1127,7 +1127,7 @@ declare namespace ng { /////////////////////////////////////////////////////////////////////////// // AUTO module (angular.js) /////////////////////////////////////////////////////////////////////////// - export module auto { + export namespace auto { /////////////////////////////////////////////////////////////////////// // InjectorService diff --git a/angular/legacy/angular-1.4.d.ts b/angular/legacy/angular-1.4.d.ts index 61f4edad02..14346dffe1 100644 --- a/angular/legacy/angular-1.4.d.ts +++ b/angular/legacy/angular-1.4.d.ts @@ -293,8 +293,8 @@ declare namespace angular { * @param name The name of the service to decorate * @param decorator This function will be invoked when the service needs to be instantiated and should return the decorated service instance. The function is called using the injector.invoke method and is therefore fully injectable. Local injection arguments: $delegate - The original service instance, which can be monkey patched, configured, decorated or delegated to. */ - decorator(name:string, decoratorConstructor: Function): IModule; - decorator(name:string, inlineAnnotatedConstructor: any[]): IModule; + decorator(name: string, decoratorConstructor: Function): IModule; + decorator(name: string, inlineAnnotatedConstructor: any[]): IModule; // Properties name: string; @@ -1504,7 +1504,7 @@ declare namespace angular { * @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining. * otherwise, returns the current configured value. */ - useLegacyPromiseExtensions(value:boolean) : boolean | IHttpProvider; + useLegacyPromiseExtensions(value: boolean): boolean | IHttpProvider; } /////////////////////////////////////////////////////////////////////////// @@ -1715,7 +1715,7 @@ declare namespace angular { * Whether transclusion is enabled. Enabled by default. */ transclude?: boolean; - require? : Object; + require?: Object; $canActivate?: () => boolean; $routeConfig?: RouteDefinition[]; } @@ -1766,7 +1766,7 @@ declare namespace angular { name?: string; priority?: number; replace?: boolean; - require? : any; + require?: any; restrict?: string; scope?: any; template?: string | Function; @@ -1814,7 +1814,7 @@ declare namespace angular { /////////////////////////////////////////////////////////////////////////// // AUTO module (angular.js) /////////////////////////////////////////////////////////////////////////// - export module auto { + export namespace auto { /////////////////////////////////////////////////////////////////////// // InjectorService diff --git a/angular/legacy/angular-mocks-1.0.d.ts b/angular/legacy/angular-mocks-1.0.d.ts index 7ffa97f0ee..7b4df0ef25 100644 --- a/angular/legacy/angular-mocks-1.0.d.ts +++ b/angular/legacy/angular-mocks-1.0.d.ts @@ -133,7 +133,7 @@ declare namespace ng { whenPUT(url: RegExp, data?: RegExp, headers?: any): mock.IRequestHandler; } - export module mock { + export namespace mock { // returned interface by the the mocked HttpBackendService expect/when methods interface IRequestHandler { diff --git a/angular/legacy/angular-mocks-1.2.d.ts b/angular/legacy/angular-mocks-1.2.d.ts index 3b4f7e0405..ab425013ff 100644 --- a/angular/legacy/angular-mocks-1.2.d.ts +++ b/angular/legacy/angular-mocks-1.2.d.ts @@ -209,7 +209,7 @@ declare namespace ng { whenPUT(url: RegExp, data?: Object, headers?: Object): mock.IRequestHandler; } - export module mock { + export namespace mock { // returned interface by the the mocked HttpBackendService expect/when methods interface IRequestHandler { diff --git a/angular/legacy/angular-resource-1.2.d.ts b/angular/legacy/angular-resource-1.2.d.ts index 5270037426..2ca3e7af45 100644 --- a/angular/legacy/angular-resource-1.2.d.ts +++ b/angular/legacy/angular-resource-1.2.d.ts @@ -59,7 +59,7 @@ declare namespace ng.resource { // Also, static calls always return the IResource (or IResourceArray) retrieved // https://github.com/angular/angular.js/blob/v1.2.0/src/ngResource/resource.js#L538-L549 interface IResourceClass { - new(dataOrParams? : any) : T; + new(dataOrParams?: any): T; get(): T; get(params: Object): T; get(success: Function, error?: Function): T; @@ -115,8 +115,8 @@ declare namespace ng.resource { $delete(success: Function, error?: Function): ng.IPromise; /** the promise of the original server interaction that created this instance. **/ - $promise : ng.IPromise; - $resolved : boolean; + $promise: ng.IPromise; + $resolved: boolean; } /** @@ -124,8 +124,8 @@ declare namespace ng.resource { */ interface IResourceArray extends Array { /** the promise of the original server interaction that created this collection. **/ - $promise : ng.IPromise>; - $resolved : boolean; + $promise: ng.IPromise>; + $resolved: boolean; } /** when creating a resource factory via IModule.factory */ @@ -144,9 +144,8 @@ declare namespace ng { } } -interface Array -{ +interface Array { /** the promise of the original server interaction that created this collection. **/ - $promise : ng.IPromise>; - $resolved : boolean; + $promise: ng.IPromise>; + $resolved: boolean; } diff --git a/angular/legacy/angular-resource-1.3.d.ts b/angular/legacy/angular-resource-1.3.d.ts index 7390570991..4b4b14ed9c 100644 --- a/angular/legacy/angular-resource-1.3.d.ts +++ b/angular/legacy/angular-resource-1.3.d.ts @@ -82,7 +82,7 @@ declare namespace angular.resource { // Also, static calls always return the IResource (or IResourceArray) retrieved // https://github.com/angular/angular.js/blob/v1.2.0/src/ngResource/resource.js#L538-L549 interface IResourceClass { - new(dataOrParams? : any) : T; + new(dataOrParams?: any): T; get(): T; get(params: Object): T; get(success: Function, error?: Function): T; @@ -138,11 +138,11 @@ declare namespace angular.resource { $delete(success: Function, error?: Function): angular.IPromise; /** the promise of the original server interaction that created this instance. **/ - $promise : angular.IPromise; - $resolved : boolean; + $promise: angular.IPromise; + $resolved: boolean; toJSON: () => { [index: string]: any; - } + }; } /** @@ -150,8 +150,8 @@ declare namespace angular.resource { */ interface IResourceArray extends Array> { /** the promise of the original server interaction that created this collection. **/ - $promise : angular.IPromise>; - $resolved : boolean; + $promise: angular.IPromise>; + $resolved: boolean; } /** when creating a resource factory via IModule.factory */ @@ -177,9 +177,8 @@ declare namespace angular { } } -interface Array -{ +interface Array { /** the promise of the original server interaction that created this collection. **/ - $promise : angular.IPromise>; - $resolved : boolean; + $promise: angular.IPromise>; + $resolved: boolean; } diff --git a/angular/legacy/angular-sanitize-1.2.d.ts b/angular/legacy/angular-sanitize-1.2.d.ts index 88c3eec39e..bb3f2b8e87 100644 --- a/angular/legacy/angular-sanitize-1.2.d.ts +++ b/angular/legacy/angular-sanitize-1.2.d.ts @@ -23,7 +23,7 @@ declare namespace ng.sanitize { // Filters included with the ngSanitize // see https://code.angularjs.org/1.2.26/docs/api/ngSanitize/filter /////////////////////////////////////////////////////////////////////////// - export module filter { + export namespace filter { // Finds links in text input and turns them into html links. // Supports http/https/ftp/mailto and plain email address links. diff --git a/angular/legacy/angular-scenario-1.0.d.ts b/angular/legacy/angular-scenario-1.0.d.ts index ff0c87075f..1ee57788e8 100644 --- a/angular/legacy/angular-scenario-1.0.d.ts +++ b/angular/legacy/angular-scenario-1.0.d.ts @@ -61,7 +61,7 @@ declare namespace angularScenario { toBeGreaterThan(value: any): void; } - export interface CustomMatchers extends Matchers{ + export interface CustomMatchers extends Matchers { } export interface Expect extends CustomMatchers { @@ -97,7 +97,7 @@ declare namespace angularScenario { export interface Element { count(): Future; click(): any; - query(callback: (selectedDOMElements: any[], callbackWhenDone: (objNull: any, futureValue: any) => any) =>any): any; + query(callback: (selectedDOMElements: any[], callbackWhenDone: (objNull: any, futureValue: any) => any) => any): any; val(): Future; text(): Future; html(): Future; diff --git a/angularfire/index.d.ts b/angularfire/index.d.ts index 5b86018eac..568743e4ba 100644 --- a/angularfire/index.d.ts +++ b/angularfire/index.d.ts @@ -24,7 +24,7 @@ interface AngularFire { $update(key: string, data: Object): ng.IPromise; $update(data: any): ng.IPromise; $transaction(updateFn: (currentData: any) => any, applyLocally?: boolean): ng.IPromise; - $transaction(key:string, updateFn: (currentData: any) => any, applyLocally?: boolean): ng.IPromise; + $transaction(key: string, updateFn: (currentData: any) => any, applyLocally?: boolean): ng.IPromise; } /** @@ -111,7 +111,7 @@ interface AngularFireObject extends AngularFireSimpleObject { * @param {object} scope * @param {string} varName * @returns a promise which resolves to an unbind method after data is set in scope - */ + */ $bindTo(scope: ng.IScope, varName: string): ng.IPromise; /** @@ -124,7 +124,7 @@ interface AngularFireObject extends AngularFireSimpleObject { * @param {Function} cb * @param {Object} [context] * @returns {Function} invoke to stop observing events - */ + */ $watch(callback: Function, context?: any): Function; /** diff --git a/angulartics/index.d.ts b/angulartics/index.d.ts index 11938c9679..63b922303b 100644 --- a/angulartics/index.d.ts +++ b/angulartics/index.d.ts @@ -7,12 +7,12 @@ declare namespace angulartics { interface IAngularticsStatic { - waitForVendorApi(objectName:string, delay:number, containsField?:any, registerFn?:any, onTimeout?:boolean): void; + waitForVendorApi(objectName: string, delay: number, containsField?: any, registerFn?: any, onTimeout?: boolean): void; } interface IAnalyticsService { eventTrack(eventName: string, properties?: any): any; - pageTrack(path:string, location?:angular.ILocationService): any; + pageTrack(path: string, location?: angular.ILocationService): any; setAlias(alias: string): any; setUsername(username: string): any; setUserProperties(properties: any): any; @@ -27,12 +27,12 @@ declare namespace angulartics { withAutoBase(value: boolean): void; developerMode(value: boolean): void; - registerPageTrack(callback:(path:string, location?:angular.ILocationService) => any): void; + registerPageTrack(callback: (path: string, location?: angular.ILocationService) => any): void; registerEventTrack(callback: (eventName: string, properties?: any) => any): void; - registerSetAlias(callback: (alias: string) => any): void - registerSetUsername(callback: (username: string) => any): void - registerSetUserProperties(callback: (userProperties: any) => any): void - registerSetSuperProperties(callback: (superProperties: any) => any): void + registerSetAlias(callback: (alias: string) => any): void; + registerSetUsername(callback: (username: string) => any): void; + registerSetUserProperties(callback: (userProperties: any) => any): void; + registerSetSuperProperties(callback: (superProperties: any) => any): void; settings: { pageTracking: { @@ -42,8 +42,8 @@ declare namespace angulartics { autoBasePath: boolean }, developerMode: boolean - } + }; } } -declare var angulartics:angulartics.IAngularticsStatic; +declare var angulartics: angulartics.IAngularticsStatic; diff --git a/ansi-styles/ansi-styles-tests.ts b/ansi-styles/ansi-styles-tests.ts index 235f98dce1..5289c3444a 100644 --- a/ansi-styles/ansi-styles-tests.ts +++ b/ansi-styles/ansi-styles-tests.ts @@ -3,33 +3,33 @@ import ansi = require('ansi-styles'); var styles = [ - ansi.reset, + ansi.reset, - ansi.bold, - ansi.dim, - ansi.italic, - ansi.underline, - ansi.inverse, - ansi.hidden, - ansi.strikethrough, + ansi.bold, + ansi.dim, + ansi.italic, + ansi.underline, + ansi.inverse, + ansi.hidden, + ansi.strikethrough, - ansi.black, - ansi.red, - ansi.green, - ansi.yellow, - ansi.blue, - ansi.magenta, - ansi.cyan, - ansi.white, - ansi.gray, + ansi.black, + ansi.red, + ansi.green, + ansi.yellow, + ansi.blue, + ansi.magenta, + ansi.cyan, + ansi.white, + ansi.gray, - ansi.bgBlack, - ansi.bgRed, - ansi.bgGreen, - ansi.bgYellow, - ansi.bgBlue, - ansi.bgMagenta, - ansi.bgCyan, + ansi.bgBlack, + ansi.bgRed, + ansi.bgGreen, + ansi.bgYellow, + ansi.bgBlue, + ansi.bgMagenta, + ansi.bgCyan, ansi.bgWhite ] diff --git a/antd/index.d.ts b/antd/index.d.ts index e2865c6927..3fbcf03264 100644 --- a/antd/index.d.ts +++ b/antd/index.d.ts @@ -11,7 +11,7 @@ declare namespace Antd { /** * 达到指定偏移量后触发 */ - offset?: number + offset?: number; } /** * # Affix @@ -21,7 +21,7 @@ declare namespace Antd { * 页面可视范围过小时,慎用此功能以免遮挡页面内容。 */ export class Affix extends React.Component { - render(): JSX.Element + render(): JSX.Element; } @@ -30,19 +30,19 @@ declare namespace Antd { /** * 必选参数,指定警告提示的样式,有四种选择`success`、`info`、`warn`、`error` */ - type: string, + type: string; /**可选参数,默认不显示关闭按钮 */ - closable?: boolean, + closable?: boolean; /**可选参数,自定义关闭按钮 */ - closeText?: React.ReactNode, + closeText?: React.ReactNode; /**必选参数,警告提示内容 */ - message: React.ReactNode, + message: React.ReactNode; /**可选参数,警告提示的辅助性文字介绍 */ - description?: React.ReactNode, + description?: React.ReactNode; /**可选参数,关闭时触发的回调函数 */ - onClose?: Function, + onClose?: Function; /**可选参数,是否显示辅助图标 */ - showIcon?: boolean + showIcon?: boolean; } @@ -76,30 +76,30 @@ declare namespace Antd { } interface BadgeProps { /** 展示的数字,大于 overflowCount 时显示为 `${overflowCount}+`,为 0 时隐藏*/ - count: number, + count: number; /** 展示封顶的数字值*/ - overflowCount?: number, + overflowCount?: number; /** 不展示数字,只有一个小红点*/ - dot?: boolean + dot?: boolean; } // Button interface ButtonProps { /** 设置按钮类型,可选值为 `primary` `ghost` 或者不设 */ - type?: ButtonType | string, + type?: ButtonType | string; /** 设置按钮形状,可选值为 `circle` `circle-outline` 或者不设*/ - shape?: string, + shape?: string; /** 设置按钮大小,可选值为 `small` `large` 或者不设*/ - size?: string, + size?: string; /** 设置 `button` 原生的 `type` 值,可选值请参考 HTML标准*/ - htmlType?: string, + htmlType?: string; /** `click` 事件的 handler*/ - onClick?: Function, + onClick?: Function; /** 设置按钮载入状态*/ - loading?: boolean, + loading?: boolean; /** 样式名*/ - className?: string, + className?: string; } @@ -111,8 +111,7 @@ declare namespace Antd { interface ButtonGroupProps { /** 设置按钮大小,可选值为 `small` `large` 或者不设*/ - size?: string - + size?: string; } /** @@ -120,7 +119,7 @@ declare namespace Antd { 通过设置 `size` 为 `large` `small` 分别把按钮组合设为大、小尺寸。若不设置 `size`,则尺寸为中。*/ class ButtonGroup extends React.Component { - render(): JSX.Element + render(): JSX.Element; } /** @@ -131,8 +130,8 @@ declare namespace Antd { 标记了一个(或封装一组)操作命令,响应用户点击行为,触发相应的业务逻辑。*/ export class Button extends React.Component { - static Group: typeof ButtonGroup - render(): JSX.Element + static Group: typeof ButtonGroup; + render(): JSX.Element; } @@ -141,19 +140,19 @@ declare namespace Antd { interface BreadcrumbItemProps { /** 链接,如不传则不可点击 */ - href?: string + href?: string; } export class BreadcrumbItem extends React.Component { - render(): JSX.Element + render(): JSX.Element; } interface BreadcrumbProps { /** router 的路由栈信息 */ - routes?: Array, + routes?: Array; /** 路由的参数*/ - params?: Object, + params?: Object; /** 分隔符自定义*/ - separator?: string | React.ReactNode + separator?: string | React.ReactNode; } /** * #Breadcrumb @@ -165,32 +164,32 @@ declare namespace Antd { - 当需要告知用户“你在哪里”时; - 当需要向上导航的功能时。*/ export class Breadcrumb extends React.Component { - static Item: typeof BreadcrumbItem - render(): JSX.Element + static Item: typeof BreadcrumbItem; + render(): JSX.Element; } // Calendar interface CalendarProps { /** 自定义渲染月单元格*/ - monthCellRender?: Function, + monthCellRender?: Function; /** 自定义渲染日期单元格*/ - dateCellRender?: Function, + dateCellRender?: Function; /** 是否全屏显示*/ - fullscreen?: boolean, + fullscreen?: boolean; /** 国际化配置*/ - locale?: Object, - prefixCls?: string, - className?: string, - style?: Object, + locale?: Object; + prefixCls?: string; + className?: string; + style?: Object; /** 日期面板变化回调*/ - onPanelChange?: Function, + onPanelChange?: Function; /** 展示日期*/ - value?: Date, + value?: Date; /** 默认展示日期*/ - defaultValue?: Date, + defaultValue?: Date; /** 初始模式,`month/year`*/ - mode?: string + mode?: string; } /** * #Calendar @@ -201,26 +200,26 @@ declare namespace Antd { 当数据是日期或按照日期划分时,例如日程、课表、价格日历等,农历等。目前支持年/月切换。 */ export class Calendar extends React.Component { - render(): JSX.Element + render(): JSX.Element; } // Carousel interface CarouselProps { /** 动画效果函数,可取 scrollx, fade*/ - effect?: string, + effect?: string; /** 是否显示面板指示点*/ - dots?: boolean, + dots?: boolean; /** 垂直显示*/ - vertical?: boolean, + vertical?: boolean; /** 是否自动切换*/ - autoplay?: boolean, + autoplay?: boolean; /** 动画效果*/ - easing?: string, + easing?: string; /** 切换面板的回调*/ - beforeChange?: Function, + beforeChange?: Function; /** 切换面板的回调*/ - afterChange?: Function + afterChange?: Function; } /** * #Carousel @@ -233,7 +232,7 @@ declare namespace Antd { - 常用于一组图片或卡片轮播。 */ export class Carousel extends React.Component { - render(): JSX.Element + render(): JSX.Element; } @@ -241,31 +240,31 @@ declare namespace Antd { // Cascader interface CascaderProps { /** 可选项数据源*/ - options: Object, + options: Object; /** 默认的选中项*/ - defaultValue?: Array, + defaultValue?: Array; /** 指定选中项*/ - value?: Array, + value?: Array; /** 选择完成后的回调*/ - onChange?: Function, + onChange?: Function; /** 选择后展示的渲染函数*/ - displayRender?: Function, + displayRender?: Function; /** 自定义样式*/ - style?: Object, + style?: Object; /** 自定义类名*/ - className?: string, + className?: string; /** 自定义浮层类名*/ - popupClassName?: string, + popupClassName?: string; /** 浮层预设位置:`bottomLeft` `bottomRight` `topLeft` `topRight` */ - popupPlacement?: string, + popupPlacement?: string; /** 输入框占位文本*/ - placeholder?: string, + placeholder?: string; /** 输入框大小,可选 `large` `default` `small` */ - size?: string, + size?: string; /** 禁用*/ - disabled?: boolean, + disabled?: boolean; /** 是否支持清除*/ - allowClear?: boolean + allowClear?: boolean; } /** @@ -279,7 +278,7 @@ declare namespace Antd { - 从一个较大的数据集合中进行选择时,用多级分类进行分隔,方便选择。 - 比起 Select 组件,可以在同一个浮层中完成选择,有较好的体验。*/ export class Cascader extends React.Component { - render(): JSX.Element + render(): JSX.Element; } @@ -288,26 +287,26 @@ declare namespace Antd { // Checkbox interface CheckboxProps { /** 指定当前是否选中*/ - checked?: boolean, + checked?: boolean; /** 初始是否选中*/ - defaultChecked?: boolean, + defaultChecked?: boolean; /** 变化时回调函数*/ - onChange?: Function + onChange?: Function; } interface CheckboxGroupProps { /** 默认选中的选项*/ - defaultValue?: Array, + defaultValue?: Array; /** 指定选中的选项*/ - value?: Array, + value?: Array; /** 指定可选项*/ - options?: Array, + options?: Array; /** 变化时回调函数*/ - onChange?: Function + onChange?: Function; } /** Checkbox 组*/ class CheckboxGroup extends React.Component { - render(): JSX.Element + render(): JSX.Element; } /** * #Checkbox @@ -319,8 +318,8 @@ declare namespace Antd { - 单独使用可以表示两种状态之间的切换,和 `switch` 类似。区别在于切换 `switch` 会直接触发状态改变,而 `checkbox` 一般用于状态标记,需要和提交操作配合。 */ export class Checkbox extends React.Component { - static Group: typeof CheckboxGroup - render(): JSX.Element + static Group: typeof CheckboxGroup; + render(): JSX.Element; } @@ -329,20 +328,20 @@ declare namespace Antd { interface CollapseProps { /** 当前激活 tab 面板的 key*/ - activeKey?: Array | string, + activeKey?: Array | string; /** 初始化选中面板的key */ - defaultActiveKey?: Array, + defaultActiveKey?: Array; /** 切换面板的回调*/ - onChange?: Function + onChange?: Function; } class CollapsePanel extends React.Component<{ /** 对应 activeKey */ - key: string, + key: string; /** 面板头内容*/ header: React.ReactNode | string }, {}> { - render(): JSX.Element + render(): JSX.Element; } /** * #Collapse @@ -353,8 +352,8 @@ declare namespace Antd { - 对复杂区域进行分组和隐藏,保持页面的整洁。 - `手风琴` 是一种特殊的折叠面板,只允许单个内容区域展开。*/ export class Collapse extends React.Component { - static Panel: typeof CollapsePanel - render(): JSX.Element + static Panel: typeof CollapsePanel; + render(): JSX.Element; } @@ -362,39 +361,39 @@ declare namespace Antd { // DatePicker interface DatePickerProps { - value?: string | Date, - defaultValue?: string | Date, + value?: string | Date; + defaultValue?: string | Date; /** 展示的日期格式,配置参考 [GregorianCalendarFormat](https://github.com/yiminghe/gregorian-calendar-format)*/ - format?: string, + format?: string; /** 不可选择的日期*/ - disabledDate?: Function, + disabledDate?: Function; /** 时间发生变化的回调,发生在用户选择时间时*/ - onChange?: Function, + onChange?: Function; /** 禁用*/ - disabled?: boolean, - style?: Object, + disabled?: boolean; + style?: Object; /** 格外的弹出日历样式*/ - popupStyle?: Object, + popupStyle?: Object; /** 输入框大小,`large` 高度为 32px,`small` 为 22px,默认是 28px*/ - size?: string, + size?: string; /** 国际化配置*/ - locale?: Object, + locale?: Object; /** 增加时间选择功能*/ - showTime?: boolean, + showTime?: boolean; /** 点击确定按钮的回调*/ - onOk?: Function, + onOk?: Function; /** 定义浮层的容器,默认为 body 上新建 div*/ - getCalendarContainer?: Function + getCalendarContainer?: Function; } interface RangePickProps extends DatePickerProps { } class RangePicker extends React.Component { - render(): JSX.Element + render(): JSX.Element; } class MonthPicker extends React.Component { - render(): JSX.Element + render(): JSX.Element; } /** * #DatePicker @@ -404,9 +403,9 @@ declare namespace Antd { 当用户需要输入一个日期,可以点击标准输入框,弹出日期面板进行选择。*/ export class DatePicker extends React.Component, {}> { - static RangePicker: typeof RangePicker - static MonthPicker: typeof MonthPicker - render(): JSX.Element + static RangePicker: typeof RangePicker; + static MonthPicker: typeof MonthPicker; + render(): JSX.Element; } @@ -416,23 +415,23 @@ declare namespace Antd { interface DropdownProps { /** 触发下拉的行为 ['click'] or ['hover']*/ - trigger?: Array, + trigger?: Array; /** 菜单节点*/ - overlay: React.ReactNode + overlay: React.ReactNode; } class DropdownButton extends React.Component<{ /** 按钮类型*/ - type?: string, + type?: string; /** 点击左侧按钮的回调*/ - onClick?: Function, + onClick?: Function; /** 触发下拉的行为*/ - trigger?: string, + trigger?: string; /** 菜单节点*/ overlay: React.ReactNode }, {}> { - render(): JSX.Element + render(): JSX.Element; } /** * #Dropdown @@ -443,8 +442,8 @@ declare namespace Antd { 当页面上的操作命令过多时,用此组件可以收纳操作元素。点击或移入触点,会出现一个下拉菜单。可在列表中进行选择,并执行相应的命令。 */ export class Dropdown extends React.Component { - static Button: typeof DropdownButton - render(): JSX.Element + static Button: typeof DropdownButton; + render(): JSX.Element; } @@ -452,59 +451,59 @@ declare namespace Antd { // Form interface FormItemProps { - prefixCls?: string, + prefixCls?: string; /** label 标签的文本*/ - label?: React.ReactNode, + label?: React.ReactNode; /** label 标签布局,通 `` 组件,设置 `span` `offset` 值,如 `{span: 3, offset: 12}`*/ - labelCol?: Object, + labelCol?: Object; /** 提示信息,如不设置,则会根据校验规则自动生成 */ - help?: React.ReactNode | boolean, + help?: React.ReactNode | boolean; /** 额外的提示信息,和 help 类似,当需要错误信息和提示文案同时出现时,可以使用这个。*/ - extra?: string, + extra?: string; /** 是否必填,如不设置,则会根据校验规则自动生成 */ - validateStatus?: string, + validateStatus?: string; /** 配合 validateStatus 属性使用,是否展示校验状态图标 */ - hasFeedback?: boolean, + hasFeedback?: boolean; /** 需要为输入控件设置布局样式时,使用该属性,用法同 labelCol*/ - wrapperCol?: Object, - className?: string, - required?: boolean, - id?: string + wrapperCol?: Object; + className?: string; + required?: boolean; + id?: string; } /** 表单一定会包含表单域,表单域可以是输入控件,标准表单域,标签,下拉菜单,文本域等。 这里我们分别封装了表单域 `` 和输入控件 ``。*/ export class FormItem extends React.Component { - render(): JSX.Element + render(): JSX.Element; } interface FormComponentProps { - form: CreateFormOptions + form: CreateFormOptions; } export class FormComponent extends React.Component { - render(): JSX.Element + render(): JSX.Element; } // function create type CreateFormOptions = { /** 获取一组输入控件的值,如不传入参数,则获取全部组件的值*/ - getFieldsValue(): (fieldNames?: Array) => any + getFieldsValue(): (fieldNames?: Array) => any; /** 获取一个输入控件的值*/ - getFieldValue(): (fieldName: string) => any + getFieldValue(): (fieldName: string) => any; /** 设置一组输入控件的值*/ - setFieldsValue(): (obj: Object) => void + setFieldsValue(): (obj: Object) => void; /** 设置一组输入控件的值*/ - setFields(): (obj: Object) => void + setFields(): (obj: Object) => void; /** 校验并获取一组输入域的值与 Error*/ - validateFields(): (fieldNames?: Array, options?: Object, callback?: (erros: any, values: any) => void) => any + validateFields(): (fieldNames?: Array, options?: Object, callback?: (erros: any, values: any) => void) => any; /** 与 `validateFields` 相似,但校验完后,如果校验不通过的菜单域不在可见范围内,则自动滚动进可见范围 */ - validateFieldsAndScroll(): (fieldNames?: Array, options?: Object, callback?: (erros: any, values: any) => void) => any + validateFieldsAndScroll(): (fieldNames?: Array, options?: Object, callback?: (erros: any, values: any) => void) => any; /** 获取某个输入控件的 Error */ - getFieldError(): (name: string) => Object + getFieldError(): (name: string) => Object; /** 判断一个输入控件是否在校验状态*/ isFieldValidating(): (name: string) => Object - /**重置一组输入控件的值与状态,如不传入参数,则重置所有组件*/ - resetFields(): (names?: Array) => void + /**重置一组输入控件的值与状态,如不传入参数,则重置所有;组件*/ + resetFields(): (names?: Array) => void; getFieldsValue(): (id: string, options: { /** 子节点的值的属性,如 Checkbox 的是 'checked'*/ @@ -519,24 +518,22 @@ declare namespace Antd { rules?: Array, /** 必填输入控件唯一标志*/ id?: string - }) => Array - - - } + }) => Array; + }; interface ComponentDecorator { (component: T): T; } interface FormProps { - prefixCls?: string, + prefixCls?: string; /** 水平排列布局*/ - horizontal?: boolean, + horizontal?: boolean; /** 行内排列布局*/ - inline?: boolean, + inline?: boolean; /** 经 `Form.create()` 包装过的组件会自带 `this.props.form` 属性,直接传给 Form 即可*/ - form?: Object, + form?: Object; /** 数据验证成功后回调事件*/ - onSubmit?: (e: React.FormEvent
) => void, + onSubmit?: (e: React.FormEvent) => void; } /** * #Form @@ -550,7 +547,7 @@ declare namespace Antd { - 行内排列:使其表现为 `inline-block` 级别的控件。 */ export class Form extends React.Component { - static Item: typeof FormItem + static Item: typeof FormItem; static create(options?: { /** * 当 `Form.Item` 子节点的值发生改变时触发,可以把对应的值转存到 Redux store @@ -558,8 +555,8 @@ declare namespace Antd { onFieldsChange?: (props: Object, fields: Array) => void, /** 把 props 转为对应的值,可用于把 Redux store 中的值读出 */ mapPropsToFields?: (props: Object) => void - }): ComponentDecorator - render(): JSX.Element + }): ComponentDecorator; + render(): JSX.Element; } @@ -569,7 +566,7 @@ declare namespace Antd { // Icon interface IconProps { /** 图标类型*/ - type: string + type: string; } /** * #Icon @@ -597,7 +594,7 @@ declare namespace Antd { ```*/ export class Icon extends React.Component { - render(): JSX.Element + render(): JSX.Element; } @@ -606,25 +603,25 @@ declare namespace Antd { // Input interface InputProps { /** 【必须】声明 input 类型,同原生 input 标签的 type 属性*/ - type?: string, - id: string | number, + type?: string; + id: string | number; /** 控件大小,默认值为 default 。注:标准表单内的输入框大小限制为 large。 {'large','default','small'}*/ - size?: string, + size?: string; /** 是否禁用状态,默认为 false*/ - disabled?: boolean, - value?: any, + disabled?: boolean; + value?: any; /** 设置初始默认值*/ - defaultValue?: any, - className?: string, + defaultValue?: any; + className?: string; /** 带标签的 input,设置前置标签*/ - addonBefore?: React.ReactNode, + addonBefore?: React.ReactNode; /** 带标签的 input,设置后置标签*/ - addonAfter?: React.ReactNode, - prefixCls?: string, - placeholder?: string + addonAfter?: React.ReactNode; + prefixCls?: string; + placeholder?: string; } export class Input extends React.Component { - render(): JSX.Element + render(): JSX.Element; } @@ -633,21 +630,21 @@ declare namespace Antd { // InputNumber interface InputNumberProps { /** 最小值*/ - min: number, + min: number; /** 最大值*/ - max: number, + max: number; /** 当前值*/ - value?: number, + value?: number; /** 每次改变步数*/ - step?: number, + step?: number; /** 初始值*/ - defaultValue?: number, + defaultValue?: number; /** 变化回调*/ - onChange?: Function, + onChange?: Function; /** 禁用*/ - disabled?: boolean, + disabled?: boolean; /** 输入框大小*/ - size?: string + size?: string; } /** @@ -658,30 +655,30 @@ declare namespace Antd { 当需要获取标准数值时。*/ export class InputNumber extends React.Component { - render(): JSX.Element + render(): JSX.Element; } // Layout // Row interface RowProps { - type?: string, - align?: string, - justify?: string, - className?: string + type?: string; + align?: string; + justify?: string; + className?: string; } export class Row extends React.Component { - render(): JSX.Element + render(): JSX.Element; } // Col interface ColProps { - span?: string, - order?: string, - offset?: string, - push?: string, - pull?: string, - className?: string + span?: string; + order?: string; + offset?: string; + push?: string; + pull?: string; + className?: string; } /** 在多数业务情况下,Ant Design需要在设计区域内解决大量信息收纳的问题,因此在12栅格系统的基础上,我们将整个设计建议区域按照24等分的原则进行划分。 @@ -703,7 +700,7 @@ declare namespace Antd { Flex 布局是基于 24 栅格来定义每一个“盒子”的宽度,但排版则不拘泥于栅格。*/ export class Col extends React.Component { - render(): JSX.Element + render(): JSX.Element; } @@ -716,11 +713,11 @@ declare namespace Antd { * * @type {boolean} */ - disabled?: boolean, - key: string + disabled?: boolean; + key: string; } export class MenuItem extends React.Component { - render(): JSX.Element + render(): JSX.Element; } interface MenuSubMenuProps { @@ -729,16 +726,16 @@ declare namespace Antd { * * @type {(string | React.ReactNode)} */ - title: string | React.ReactNode, + title: string | React.ReactNode; /** * (子菜单的菜单项) * * @type {(MenuItem | MenuSubMenu)} */ - children?: JSX.Element[] + children?: JSX.Element[]; } export class MenuSubMenu extends React.Component { - render(): JSX.Element + render(): JSX.Element; } interface MenuItemGroupProps { @@ -747,16 +744,16 @@ declare namespace Antd { * * @type {(string | React.ReactNode)} */ - title: string | React.ReactNode, + title: string | React.ReactNode; /** * (分组的菜单项) * * @type {MenuItem} */ - children?: JSX.Element[] + children?: JSX.Element[]; } export class MenuItemGroup extends React.Component { - render(): JSX.Element + render(): JSX.Element; } @@ -772,29 +769,29 @@ declare namespace Antd { } interface MenuProps { /** 主题颜色*/ - theme?: MenuTheme | string, + theme?: MenuTheme | string; /** 菜单类型 enum: `vertical` `horizontal` `inline`*/ - mode?: MenuMode | string, + mode?: MenuMode | string; /** 当前选中的菜单项 key 数组*/ - selectedKeys?: Array, + selectedKeys?: Array; /** 初始选中的菜单项 key 数组*/ - defaultSelectedKeys?: Array, + defaultSelectedKeys?: Array; /** 当前展开的菜单项 key 数组*/ - openKeys?: Array, + openKeys?: Array; /** 初始展开的菜单项 key 数组*/ - defaultOpenKeys?: Array, + defaultOpenKeys?: Array; /** * 被选中时调用 * * @type {(item: any, key: string, selectedKeys: Array) => void} */ - onSelect?: (item: any, key: string, selectedKeys: Array) => void, + onSelect?: (item: any, key: string, selectedKeys: Array) => void; /** 取消选中时调用*/ - onDeselect?: (item: any, key: string, selectedKeys: Array) => void, + onDeselect?: (item: any, key: string, selectedKeys: Array) => void; /** 点击 menuitem 调用此函数*/ - onClick?: (item: any, key: string) => void, + onClick?: (item: any, key: string) => void; /** 根节点样式*/ - style?: Object + style?: Object; } /** # Menu @@ -806,11 +803,11 @@ declare namespace Antd { 更多布局和导航的范例可以参考:[常用布局](/spec/layout)。*/ export class Menu extends React.Component { - static Item: typeof MenuItem - static SubMenu: typeof MenuSubMenu - static ItemGroup: typeof MenuItemGroup - static Divider: typeof React.Component - render(): JSX.Element + static Item: typeof MenuItem; + static SubMenu: typeof MenuSubMenu; + static ItemGroup: typeof MenuItemGroup; + static Divider: typeof React.Component; + render(): JSX.Element; } @@ -821,7 +818,7 @@ declare namespace Antd { content: string, /** 自动关闭的延时*/ duration?: number - ) => void + ) => void; /** * #Message 全局展示操作反馈信息。 @@ -845,7 +842,7 @@ declare namespace Antd { top: number }) => void destroy: () => void - } + }; // Modal type ModalFunc = (options: { @@ -857,31 +854,31 @@ declare namespace Antd { iconClassName?: string, okText?: string, cancelText?: string - }) => void + }) => void; interface ModalProps { /** 对话框是否可见*/ - visible?: boolean, + visible?: boolean; /** 确定按钮 loading*/ - confirmLoading?: boolean, + confirmLoading?: boolean; /** 标题*/ - title?: React.ReactNode | string, + title?: React.ReactNode | string; /** 是否显示右上角的关闭按钮*/ - closable?: boolean, + closable?: boolean; /** 点击确定回调*/ - onOk?: Function, + onOk?: Function; /** 点击遮罩层或右上角叉或取消按钮的回调*/ - onCancel?: Function, + onCancel?: Function; /** 宽度*/ - width?: string | number, + width?: string | number; /** 底部内容*/ - footer?: React.ReactNode | string, + footer?: React.ReactNode | string; /** 确认按钮文字*/ - okText?: string, + okText?: string; /** 取消按钮文字*/ - cancelText?: string, + cancelText?: string; /** 点击蒙层是否允许关闭*/ - maskClosable?: boolean + maskClosable?: boolean; } /** @@ -894,11 +891,11 @@ declare namespace Antd { 另外当需要一个简洁的确认框询问用户时,可以使用精心封装好的 `ant.Modal.confirm()` 等方法。*/ export class Modal extends React.Component { - static info: ModalFunc - static success: ModalFunc - static error: ModalFunc - static confirm: ModalFunc - render(): JSX.Element + static info: ModalFunc; + static success: ModalFunc; + static error: ModalFunc; + static confirm: ModalFunc; + render(): JSX.Element; } @@ -919,7 +916,7 @@ declare namespace Antd { onClose?: Function, /** 默认 4.5 秒后自动关闭,配置为 null 则不自动关闭*/ duration?: number - }) => void + }) => void; /** * #notification 全局展示通知提醒信息。 @@ -943,7 +940,7 @@ declare namespace Antd { top: number }) => void - } + }; @@ -951,31 +948,31 @@ declare namespace Antd { // Pagination interface PaginationProps { /** 当前页数*/ - current?: number, + current?: number; /** 默认的当前页数*/ - defaultCurrent?: number, + defaultCurrent?: number; /** 数据总数*/ - total: number, + total: number; /** 初始的每页条数*/ - defaultPageSize?: number, + defaultPageSize?: number; /** 每页条数*/ - pageSize?: number, + pageSize?: number; /** 页码改变的回调,参数是改变后的页码*/ - onChange?: Function, + onChange?: Function; /** 是否可以改变 pageSize */ - showSizeChanger?: boolean, + showSizeChanger?: boolean; /** 指定每页可以显示多少条*/ - pageSizeOptions?: Array + pageSizeOptions?: Array; /** pageSize 变化的回调 */ - onShowSizeChange?: Function, + onShowSizeChange?: Function; /** 是否可以快速跳转至某页*/ - showQuickJumper?: boolean, + showQuickJumper?: boolean; /** 当为「small」时,是小尺寸分页 */ - size?: string, + size?: string; /** 当添加该属性时,显示为简单分页*/ - simple?: Object, + simple?: Object; /** 用于显示总共有多少条数据*/ - showTotal?: Function + showTotal?: Function; } /** * #Pagination @@ -986,7 +983,7 @@ declare namespace Antd { - 当加载/渲染所有数据将花费很多时间时; - 可切换页码浏览数据。*/ export class Pagination extends React.Component { - render(): JSX.Element + render(): JSX.Element; } @@ -1002,18 +999,18 @@ declare namespace Antd { * * @type {(Placement | string)} */ - placement?: Placement | string, + placement?: Placement | string; /** 确认框的描述*/ - title?: string, + title?: string; /** 点击确认的回调*/ - onConfirm?: Function, - onCancel?: Function, + onConfirm?: Function; + onCancel?: Function; /** 显示隐藏的回调*/ - onVisibleChange?: (visible: boolean) => void, + onVisibleChange?: (visible: boolean) => void; /** 确认按钮文字*/ - okText?: string, + okText?: string; /** 取消按钮文字*/ - cancelText?: string + cancelText?: string; } /** * #Popconfirm @@ -1026,7 +1023,7 @@ declare namespace Antd { 和 `confirm` 弹出的全屏居中模态对话框相比,交互形式更轻量。 */ export class Popconfirm extends React.Component { - render(): JSX.Element + render(): JSX.Element; } @@ -1044,18 +1041,18 @@ declare namespace Antd { } interface PopoverProps { /** 触发行为,可选 `hover/focus/click` */ - trigger?: Trigger | string, + trigger?: Trigger | string; /** 气泡框位置,可选 `top/left/right/bottom` `topLeft/topRight/bottomLeft/bottomRight` `leftTop/leftBottom/rightTop/rightBottom`*/ - placement?: PopoverPlacement | string, + placement?: PopoverPlacement | string; /** 卡片标题*/ - title?: React.ReactNode | string, + title?: React.ReactNode | string; /** 卡片内容*/ - overlay?: React.ReactNode | string, - prefixCls?: string, + overlay?: React.ReactNode | string; + prefixCls?: string; /** 用于手动控制浮层显隐*/ - visible?: boolean, + visible?: boolean; /** 显示隐藏改变的回调*/ - onVisibleChange?: Function + onVisibleChange?: Function; } /** * #Popover @@ -1068,7 +1065,7 @@ declare namespace Antd { 和 `Tooltip` 的区别是,用户可以对浮层上的元素进行操作,因此它可以承载更复杂的内容,比如链接或按钮等。 */ export class Popover extends React.Component { - render(): JSX.Element + render(): JSX.Element; } @@ -1083,34 +1080,34 @@ declare namespace Antd { interface LineProps { /** 百分比*/ - percent: number, + percent: number; /** 内容的模板函数*/ - format?: (percent: any) => void, + format?: (percent: any) => void; /** 状态,可选:normal、exception、active*/ - status?: ProgressStatus | string, + status?: ProgressStatus | string; /** 进度条线的宽度,单位是px*/ - strokeWidth?: number, + strokeWidth?: number; /** 是否显示进度数值和状态图标*/ - showInfo?: boolean + showInfo?: boolean; } export class Line extends React.Component { - render(): JSX.Element + render(): JSX.Element; } interface CircleProps { /** 百分比*/ - percent: number, + percent: number; /** 内容的模板函数*/ - format?: (percent: any) => void, + format?: (percent: any) => void; /** 状态,可选:normal、exception*/ - status?: ProgressStatus | string, + status?: ProgressStatus | string; /** 进度条线的宽度,单位是进度条画布宽度的百分比*/ - strokeWidth?: number, + strokeWidth?: number; /** 必填,进度条画布宽度,单位px。这里没有提供height属性设置,Line型高度就是strokeWidth,Circle型高度等于width*/ - width?: number + width?: number; } export class Circle extends React.Component { - render(): JSX.Element + render(): JSX.Element; } /** * #Progress @@ -1125,29 +1122,29 @@ declare namespace Antd { export const Progress: { Line: typeof Line, Circle: typeof Circle - } + }; // QueueAnim interface QueueAnimProps { /** 动画内置参数 `left` `right` `top` `bottom` `scale` `scaleBig` `scaleX` `scaleY`*/ - type?: string | Array, + type?: string | Array; /** 配置动画参数 如 `{opacity:[1, 0],translateY:[0, -30]}` 具体参考 [velocity](http://julian.com/research/velocity) 的写法*/ - animConfig?: Object | Array, + animConfig?: Object | Array; /** 整个动画的延时,以毫秒为单位*/ - delay?: number | Array, + delay?: number | Array; /** 每个动画的时间,以毫秒为单位*/ - duration?: number | Array, + duration?: number | Array; /** 每个动画的间隔时间,以毫秒为单位*/ - interval?: number | Array, + interval?: number | Array; /** 出场时是否倒放,从最后一个 dom 开始往上播放 */ - leaveReverse?: boolean, + leaveReverse?: boolean; /** 动画的缓动函数,[查看详细](http://julian.com/research/velocity/#easing)*/ - ease?: string | Array, + ease?: string | Array; /** 进出场动画进行中的类名*/ - animatingClassName?: Array, + animatingClassName?: Array; /** QueueAnim 替换的标签名*/ - component?: string + component?: string; } /** * #QueueAnim @@ -1162,7 +1159,7 @@ declare namespace Antd { - 特别适合首页和需要视觉展示效果的宣传页,以及单页应用的切换页面动效。 */ export class QueueAnim extends React.Component { - render(): JSX.Element + render(): JSX.Element; } @@ -1176,26 +1173,26 @@ declare namespace Antd { } interface RadioGroupProps { /** 选项变化时的回调函数*/ - onChange?: (e: Event) => void, + onChange?: (e: Event) => void; /** 用于设置当前选中的值*/ - value?: string, + value?: string; /** 默认选中的值*/ - defaultValue?: string, + defaultValue?: string; /** 大小,只对按钮样式生效*/ - size?: RadioGroupSize | string + size?: RadioGroupSize | string; } export class RadioGroup extends React.Component { - render(): JSX.Element + render(): JSX.Element; } interface RadioProps { /** 指定当前是否选中*/ - checked?: boolean, + checked?: boolean; /** 初始是否选中*/ - defaultChecked?: boolean, + defaultChecked?: boolean; /** 根据 value 进行比较,判断是否选中 */ - value?: any + value?: any; } /** * #Radio @@ -1207,9 +1204,9 @@ declare namespace Antd { - 和 Select 的区别是,Radio 所有选项默认可见,方便用户在比较中选择,因此选项不宜过多。 */ export class Radio extends React.Component { - static Group: typeof RadioGroup - static Button: typeof Button - render(): JSX.Element + static Group: typeof RadioGroup; + static Button: typeof Button; + render(): JSX.Element; } @@ -1217,65 +1214,65 @@ declare namespace Antd { // Select interface SelectOptionProps { /** 是否禁用*/ - disabled?: boolean, + disabled?: boolean; /** 如果 react 需要你设置此项,此项值与 value 的值相同,然后可以省略 value 设置*/ - key?: string, + key?: string; /** 默认根据此属性值进行筛选*/ - value: string + value: string; } export class SelectOption extends React.Component { - render(): JSX.Element + render(): JSX.Element; } interface SelectOptGroupProps { /** 组名*/ - label: string | React.ReactNode, - key?: string + label: string | React.ReactNode; + key?: string; } export class SelectOptGroup extends React.Component { - render(): JSX.Element + render(): JSX.Element; } interface SelectProps { /** 指定当前选中的条目*/ - value?: string | Array, + value?: string | Array; /** 指定默认选中的条目*/ - defaultValue?: string | Array, + defaultValue?: string | Array; /** 支持多选*/ - multiple?: boolean, + multiple?: boolean; /** 支持清除, 单选模式有效*/ - allowClear?: boolean, + allowClear?: boolean; /** 是否根据输入项进行筛选,可为一个函数,返回满足要求的 option 即可*/ - filterOption?: boolean | Function, + filterOption?: boolean | Function; /** 可以把随意输入的条目作为 tag,输入项不需要与下拉选项匹配*/ - tags?: boolean, + tags?: boolean; /** 被选中时调用,参数为选中项的 value 值 */ - onSelect?: (value: any, option: any) => void, + onSelect?: (value: any, option: any) => void; /** 取消选中时调用,参数为选中项的 option value 值,仅在 multiple 或 tags 模式下生效*/ - onDeselect?: (value: any, option: any) => void, + onDeselect?: (value: any, option: any) => void; /** 选中option,或input的value变化(combobox 模式下)时,调用此函数*/ - onChange?: (value: any, label: any) => void, + onChange?: (value: any, label: any) => void; /** 文本框值变化时回调*/ - onSearch?: (value: string) => void, + onSearch?: (value: string) => void; /** 选择框默认文字*/ - placeholder?: string, + placeholder?: string; /** 搜索框默认文字*/ - searchPlaceholder?: string, + searchPlaceholder?: string; /** 当下拉列表为空时显示的内容*/ - notFoundContent?: string, + notFoundContent?: string; /** 下拉菜单和选择器同宽*/ - dropdownMatchSelectWidth?: boolean, + dropdownMatchSelectWidth?: boolean; /** 搜索时过滤对应的 option 属性,如设置为 children 表示对内嵌内容进行搜索*/ - optionFilterProp?: string, + optionFilterProp?: string; /** 输入框自动提示模式*/ - combobox?: SVGSymbolElement, + combobox?: SVGSymbolElement; /** 选择框大小,可选 `large` `small` */ - size?: string, + size?: string; /** 在下拉中显示搜索框*/ - showSearch?: boolean, + showSearch?: boolean; /** 是否禁用*/ - disabled?: boolean, - style?: Object + disabled?: boolean; + style?: Object; } /** * #Select @@ -1285,9 +1282,9 @@ declare namespace Antd { 弹出一个下拉菜单给用户选择操作,用于代替原生的选择器,或者需要一个更优雅的多选器时。*/ export class Select extends React.Component { - static Option: typeof SelectOption - static OptGroup: typeof SelectOptGroup - render(): JSX.Element + static Option: typeof SelectOption; + static OptGroup: typeof SelectOptGroup; + render(): JSX.Element; } @@ -1295,30 +1292,30 @@ declare namespace Antd { // Slider interface SliderProps { /** 最小值*/ - min?: number, + min?: number; /** 最大值*/ - max?: number, + max?: number; /** 步长,取值必须大于 0,并且可被 (max - min) 整除。当 `marks` 不为空对象时,可以设置 `step` 为 `null`,此时 Slider 的可选值仅有 marks 标出来的部分。*/ - step?: number, + step?: number; /** 分段标记,key 的类型必须为 `Number` 且取值在闭区间 [min, max] 内*/ - marks?: { key: number, value: any }, + marks?: { key: number, value: any }; /** 设置当前取值。当 `range` 为 `false` 时,使用 `Number`,否则用 `[Number, Number]`*/ - value?: number | Array, + value?: number | Array; /** 设置当前取值。当 `range` 为 `false` 时,使用 `Number`,否则用 `[Number, Number]`*/ - defaultValue?: number | Array, + defaultValue?: number | Array; /** `marks` 不为空对象时有效,值为 true 时表示值为包含关系,false 表示并列*/ - included?: boolean, + included?: boolean; /** 值为 `true` 时,滑块为禁用状态*/ - disabled?: boolean, + disabled?: boolean; /** 当 `range` 为 `true` 时,该属性可以设置是否允许两个滑块交换位置。*/ - allowCross?: boolean, + allowCross?: boolean; /** 当 Slider 的值发生改变时,会触发 onChange 事件,并把改变后的值作为参数传入。*/ - onChange?: Function, + onChange?: Function; /** 与 `onmouseup` 触发时机一致,把当前值作为参数传入。*/ - onAfterChange?: Function, + onAfterChange?: Function; /** Slider 会把当前值传给 `tipFormatter`,并在 Tooltip 中显示 `tipFormatter` 的返回值,若为 null,则隐藏 Tooltip。*/ - tipFormatter?: Function | any, - range?: boolean + tipFormatter?: Function | any; + range?: boolean; } /** * #Slider @@ -1328,7 +1325,7 @@ declare namespace Antd { 当用户需要在数值区间/自定义区间内进行选择时,可为连续或离散值。*/ export class Slider extends React.Component { - render(): JSX.Element + render(): JSX.Element; } @@ -1337,9 +1334,9 @@ declare namespace Antd { // Spin interface SpinProps { /** spin组件中点的大小,可选值为 small default large*/ - size?: string, + size?: string; /** 用于内嵌其他组件的模式,可以关闭 loading 效果*/ - spining?: boolean + spining?: boolean; } /** * #Spin @@ -1350,7 +1347,7 @@ declare namespace Antd { 页面局部处于等待异步数据或正在渲染过程时,合适的加载动效会有效缓解用户的焦虑。 */ export class Spin extends React.Component { - render(): JSX.Element + render(): JSX.Element; } @@ -1362,27 +1359,27 @@ declare namespace Antd { } interface StepProps { /** 可选参数,指定状态。当不配置该属性时,会使用父Steps元素的current来自动指定状态。*/ - status?: StepStatus | string, + status?: StepStatus | string; /** 必要参数,标题。*/ - title: string | React.ReactNode, + title: string | React.ReactNode; /** 可选参数,步骤的详情描述。*/ - description?: string | React.ReactNode, + description?: string | React.ReactNode; /** 可选参数,步骤的Icon。如果不指定,则使用默认的样式。*/ - icon?: string | React.ReactNode + icon?: string | React.ReactNode; } export class Step extends React.Component { - render(): JSX.Element + render(): JSX.Element; } interface StepsProps { /** 可选参数,指定当前处理正在执行状态的步骤,从0开始记数。在子Step元素中,可以通过status属性覆盖状态。*/ - current?: number, + current?: number; /** 可选参数,指定大小(目前只支持普通和迷你两种大小)。 small, default */ - size?: string, + size?: string; /** 可选参数,指定步骤条方向(目前支持水平和竖直两种方向,默认水平方向)。*/ - direction?: string, + direction?: string; /** 可选参数,指定步骤的详细描述文字的最大宽度。*/ - maxDescriptionWidth?: number + maxDescriptionWidth?: number; } /** @@ -1393,8 +1390,8 @@ declare namespace Antd { 当任务复杂或者存在先后关系时,将其分解成一系列步骤,从而简化任务。*/ export class Steps extends React.Component { - static Step: typeof Step - render(): JSX.Element + static Step: typeof Step; + render(): JSX.Element; } @@ -1402,17 +1399,17 @@ declare namespace Antd { // Switch interface SwitchProps { /** 指定当前是否选中*/ - checked?: boolean, + checked?: boolean; /** 初始是否选中*/ - defaultChecked?: boolean, + defaultChecked?: boolean; /** 变化时回调函数*/ - onChange?: (checked: boolean) => void, + onChange?: (checked: boolean) => void; /** 选中时的内容*/ - checkedChildren?: React.ReactNode, + checkedChildren?: React.ReactNode; /** 非选中时的内容*/ - unCheckedChildren?: React.ReactNode, + unCheckedChildren?: React.ReactNode; /** 开关大小*/ - size?: string + size?: string; } /** * #Switch @@ -1424,7 +1421,7 @@ declare namespace Antd { - 和 `checkbox `的区别是,切换 `switch` 会直接触发状态改变,而 `checkbox` 一般用于状态标记,需要和提交操作配合。 */ export class Switch extends React.Component { - render(): JSX.Element + render(): JSX.Element; } @@ -1435,74 +1432,74 @@ declare namespace Antd { checkbox, radio } - type SelectedRowKeys = Array + type SelectedRowKeys = Array; interface RowSelection { - type?: RowSelectionType | string, - selectedRowKeys?: SelectedRowKeys, - onChange?: (selectedRowKeys: SelectedRowKeys, selectedRows: any) => void, - getCheckboxProps?: (record: any) => void, - onSelect?: (record: any, selected: any, selectedRows: any) => void, - onSelectAll?: (rselectedecord: any, selectedRows: any, changeRows: any) => void + type?: RowSelectionType | string; + selectedRowKeys?: SelectedRowKeys; + onChange?: (selectedRowKeys: SelectedRowKeys, selectedRows: any) => void; + getCheckboxProps?: (record: any) => void; + onSelect?: (record: any, selected: any, selectedRows: any) => void; + onSelectAll?: (rselectedecord: any, selectedRows: any, changeRows: any) => void; } interface Columns { /** React 需要的 key,建议设置*/ - key?: string, + key?: string; /** 列头显示文字*/ - title?: string | React.ReactNode, + title?: string | React.ReactNode; /** 列数据在数据项中对应的 key*/ - dataIndex?: string, + dataIndex?: string; /** 生成复杂数据的渲染函数,参数分别为当前列的值,当前列数据,列索引,@return里面可以设置表格[行/列合并](#demo-colspan-rowspan)*/ - render?: (text?: any, record?: any, index?: number) => React.ReactNode, + render?: (text?: any, record?: any, index?: number) => React.ReactNode; /** 表头的筛选菜单项*/ - filters?: Array, + filters?: Array; /** 本地模式下,确定筛选的运行函数*/ - onFilter?: Function, + onFilter?: Function; /** 是否多选*/ - filterMultiple?: boolean, + filterMultiple?: boolean; /** 排序函数,本地排序使用一个函数,需要服务端排序可设为 true */ - sorter?: boolean | Function, + sorter?: boolean | Function; /** 表头列合并,设置为 0 时,不渲染*/ - colSpan?: number, + colSpan?: number; /** 列宽度*/ - width?: string | number, + width?: string | number; /** 列的 className*/ - className?: string + className?: string; } interface TableProps { /** 列表项是否可选择*/ - rowSelection?: RowSelection, + rowSelection?: RowSelection; /** 分页器*/ - pagination?: Object, + pagination?: Object; /** 正常或迷你类型 : `default` or `small` */ - size?: string, + size?: string; /** 数据数组*/ - dataSource: Array, + dataSource: Array; /** 表格列的配置描述*/ - columns: Columns, + columns: Columns; /** 表格行 key 的取值*/ - rowKey?: (record: any, index: number) => string, + rowKey?: (record: any, index: number) => string; /** 额外的展开行*/ - expandedRowRender?: Function, + expandedRowRender?: Function; /** 默认展开的行*/ - defaultExpandedRowKeys?: Array, + defaultExpandedRowKeys?: Array; /** 分页、排序、筛选变化时触发*/ - onChange?: (pagination: Object, filters: any, sorter: any) => void, + onChange?: (pagination: Object, filters: any, sorter: any) => void; /** 页面是否加载中*/ - loading?: boolean, + loading?: boolean; /** 默认文案设置,目前包括排序、过滤、空数据文案: `{ filterConfirm: '确定', filterReset: '重置', emptyText: '暂无数据' }` */ - locale?: Object, + locale?: Object; /** 展示树形数据时,每层缩进的宽度,以 px 为单位*/ - indentSize?: number, + indentSize?: number; /** 处理行点击事件*/ - onRowClick?: (record: any, index: number) => void, + onRowClick?: (record: any, index: number) => void; /** 是否固定表头*/ - useFixedHeader?: boolean, + useFixedHeader?: boolean; /** 是否展示外边框和列边框*/ - bordered?: boolean, + bordered?: boolean; /** 是否显示表头*/ - showHeader?: boolean, + showHeader?: boolean; /** 表格底部自定义渲染函数*/ - footer?: (currentPageData: Object) => void + footer?: (currentPageData: Object) => void; } /** @@ -1514,7 +1511,7 @@ declare namespace Antd { - 当有大量结构化的数据需要展现时; - 当需要对数据进行排序、搜索、分页、自定义操作等复杂行为时。*/ export class Table extends React.Component { - render(): JSX.Element + render(): JSX.Element; } @@ -1522,10 +1519,10 @@ declare namespace Antd { // Tabs interface TabPaneProps { /** 选项卡头显示文字*/ - tab: React.ReactNode | string + tab: React.ReactNode | string; } export class TabPane extends React.Component { - render(): JSX.Element + render(): JSX.Element; } enum TabsType { @@ -1539,21 +1536,21 @@ declare namespace Antd { } interface TabsProps { /** 当前激活 tab 面板的 key */ - activeKey?: string, + activeKey?: string; /** 初始化选中面板的 key,如果没有设置 activeKey*/ - defaultActiveKey?: string, + defaultActiveKey?: string; /** 切换面板的回调*/ - onChange?: Function, + onChange?: Function; /** tab 被点击的回调 */ - onTabClick?: Function, + onTabClick?: Function; /** tab bar 上额外的元素 */ - tabBarExtraContent?: React.ReactNode, + tabBarExtraContent?: React.ReactNode; /** 页签的基本样式,可选 `line`、`card` `editable-card` 类型*/ - type?: TabsType | string, + type?: TabsType | string; /** 页签位置,可选值有 `top` `right` `bottom` `left`*/ - tabPosition?: TabsPosition | string, + tabPosition?: TabsPosition | string; /** 新增和删除页签的回调,在 `type="editable-card"` 时有效*/ - onEdit?: (targetKey: string, action: any) => void + onEdit?: (targetKey: string, action: any) => void; } /** * #Tabs @@ -1569,8 +1566,8 @@ declare namespace Antd { - 标准线条式页签,用于容器内部的主功能切换,这是最常用的 Tabs。 - [RadioButton](/components/radio/#demo-radiobutton) 可作为更次级的页签来使用。*/ export class Tabs extends React.Component { - static TabPane: typeof TabPane - render(): JSX.Element + static TabPane: typeof TabPane; + render(): JSX.Element; } @@ -1579,13 +1576,13 @@ declare namespace Antd { // Tag interface TagProps { /** 标签是否可以关闭*/ - closable?: boolean, + closable?: boolean; /** 关闭时的回调*/ - onClose?: Function, + onClose?: Function; /** 动画关闭后的回调*/ - afterClose?: Function, + afterClose?: Function; /** 标签的色彩*/ - color?: string + color?: string; } /** * #Tag @@ -1596,7 +1593,7 @@ declare namespace Antd { - 用于标记事物的属性和维度。 - 进行分类。*/ export class Tag extends React.Component { - render(): JSX.Element + render(): JSX.Element; } @@ -1607,27 +1604,27 @@ declare namespace Antd { // TimePicker interface TimePickerProps { /** 默认时间*/ - value?: string | Date, + value?: string | Date; /** 初始默认时间*/ - defaultValue?: string | Date, + defaultValue?: string | Date; /** 展示的时间格式 : "HH:mm:ss"、"HH:mm"、"mm:ss" */ - format?: string, + format?: string; /** 时间发生变化的回调*/ - onChange?: (Date: Date) => void, + onChange?: (Date: Date) => void; /** 禁用全部操作*/ - disabled?: boolean, + disabled?: boolean; /** 没有值的时候显示的内容*/ - placeholder?: string, + placeholder?: string; /** 国际化配置*/ - locale?: Object, + locale?: Object; /** 隐藏禁止选择的选项*/ - hideDisabledOptions?: boolean, + hideDisabledOptions?: boolean; /** 禁止选择部分小时选项*/ - disabledHours?: Function, + disabledHours?: Function; /** 禁止选择部分分钟选项*/ - disabledMinutes?: Function, + disabledMinutes?: Function; /** 禁止选择部分秒选项*/ - disabledSeconds?: Function + disabledSeconds?: Function; } /** @@ -1640,7 +1637,7 @@ declare namespace Antd { 当用户需要输入一个时间,可以点击标准输入框,弹出时间面板进行选择。 */ export class TimePicker extends React.Component { - render(): JSX.Element + render(): JSX.Element; } @@ -1649,15 +1646,15 @@ declare namespace Antd { // Timeline interface TimeLineItemProps { /** 指定圆圈颜色。*/ - color?: string + color?: string; } export class TimeLineItem extends React.Component { - render(): JSX.Element + render(): JSX.Element; } interface TimelineProps { /** 指定最后一个幽灵节点是否存在或内容*/ - pending?: boolean | React.ReactNode + pending?: boolean | React.ReactNode; } /** * #Timeline @@ -1668,8 +1665,8 @@ declare namespace Antd { - 当有一系列信息需要从上至下按时间排列时; - 需要有一条时间轴进行视觉上的串联时;*/ export class Timeline extends React.Component { - static Item: typeof TimeLineItem - render(): JSX.Element + static Item: typeof TimeLineItem; + render(): JSX.Element; } @@ -1678,9 +1675,9 @@ declare namespace Antd { interface TooltipProps { /** 气泡框位置,可选 `top` `left` `right` `bottom` `topLeft` `topRight` `bottomLeft` `bottomRight` `leftTop` `leftBottom` `rightTop` `rightBottom`*/ - placement?: PopoverPlacement | string, + placement?: PopoverPlacement | string; /** 提示文字*/ - title?: string | React.ReactNode + title?: string | React.ReactNode; } /** * #Tooltip @@ -1692,7 +1689,7 @@ declare namespace Antd { 可用来代替系统默认的 `title` 提示,提供一个`按钮/文字/操作`的文案解释。*/ export class Tooltip extends React.Component { - render(): JSX.Element + render(): JSX.Element; } @@ -1702,29 +1699,29 @@ declare namespace Antd { // Transfer interface TransferProps { /** 数据源*/ - dataSource: Array, + dataSource: Array; /** 每行数据渲染函数*/ - render?: (record: Object) => any, + render?: (record: Object) => any; /** 显示在右侧框数据的key集合*/ - targetKeys: Array, + targetKeys: Array; /** 变化时回调函数*/ - onChange?: (targetKeys: any, direction: string, moveKeys: any) => void, + onChange?: (targetKeys: any, direction: string, moveKeys: any) => void; /** 两个穿梭框的自定义样式*/ - listStyle?: Object, + listStyle?: Object; /** 自定义类*/ - className?: string, + className?: string; /** 标题集合,顺序从左至右*/ - titles?: Array, + titles?: Array; /** 操作文案集合,顺序从上至下*/ - operations?: Array, + operations?: Array; /** 是否显示搜索框*/ - showSearch?: boolean, + showSearch?: boolean; /** 搜索框的默认值*/ - searchPlaceholder?: string, + searchPlaceholder?: string; /** 当列表为空时显示的内容*/ - notFoundContent?: React.ReactNode | string + notFoundContent?: React.ReactNode | string; /** 底部渲染函数*/ - footer?: (props: any) => any + footer?: (props: any) => any; } /** * #Transfer @@ -1735,7 +1732,7 @@ declare namespace Antd { 用直观的方式在两栏中移动元素,完成选择行为。 */ export class Transfer extends React.Component { - render(): JSX.Element + render(): JSX.Element; } @@ -1744,69 +1741,69 @@ declare namespace Antd { // Tree interface TreeNodeProps { - disabled?: boolean, - disableCheckbox?: boolean, - title?: string | React.ReactNode, - key?: string, - isLeaf?: boolean + disabled?: boolean; + disableCheckbox?: boolean; + title?: string | React.ReactNode; + key?: string; + isLeaf?: boolean; } export class TreeNode extends React.Component { - render(): JSX.Element + render(): JSX.Element; } interface TreeProps { - showLine?: boolean, - className?: string, + showLine?: boolean; + className?: string; /** 是否支持多选*/ - multiple?: boolean, + multiple?: boolean; /** 是否支持选中*/ - checkable?: boolean, + checkable?: boolean; /** 默认展开所有树节点*/ - defaultExpandAll?: boolean, + defaultExpandAll?: boolean; /** 默认展开指定的树节点*/ - defaultExpandedKeys?: Array, + defaultExpandedKeys?: Array; /** (受控)展开指定的树节点*/ - expandedKeys?: Array, + expandedKeys?: Array; /** (受控)选中复选框的树节点*/ - checkedKeys?: Array, + checkedKeys?: Array; /** 默认选中复选框的树节点*/ - defaultCheckedKeys?: Array, + defaultCheckedKeys?: Array; /** (受控)设置选中的树节点*/ - selectedKeys?: Array, + selectedKeys?: Array; /** 默认选中的树节点*/ - defaultSelectedKeys?: Array, + defaultSelectedKeys?: Array; /** 展开/收起节点时触发 */ - onExpand?: (node: any, expanded: any, expandedKeys: any) => void, + onExpand?: (node: any, expanded: any, expandedKeys: any) => void; /** 点击复选框触发*/ - onCheck?: (checkedKeys: any, e: { checked: boolean, checkedNodes: any, node: any, event: Event }) => void, + onCheck?: (checkedKeys: any, e: { checked: boolean, checkedNodes: any, node: any, event: Event }) => void; /** 点击树节点触发*/ - onSelect?: (selectedKeys: any, e: { selected: boolean, selectedNodes: any, node: any, event: Event }) => void, + onSelect?: (selectedKeys: any, e: { selected: boolean, selectedNodes: any, node: any, event: Event }) => void; /** filter some treeNodes as you need. it should return true */ - filterTreeNode?: (node: any) => boolean, + filterTreeNode?: (node: any) => boolean; /** 异步加载数据*/ - loadData?: (node: any) => void, + loadData?: (node: any) => void; /** 响应右键点击*/ - onRightClick?: (options: { event: Event, node: any }) => void, + onRightClick?: (options: { event: Event, node: any }) => void; /** 设置节点可拖拽(IE>8)*/ - draggable?: boolean, + draggable?: boolean; /** 开始拖拽时调用*/ - onDragStart?: (options: { event: Event, node: any }) => void, + onDragStart?: (options: { event: Event, node: any }) => void; /** dragenter 触发时调用*/ - onDragEnter?: (options: { event: Event, node: any, expandedKeys: any }) => void, + onDragEnter?: (options: { event: Event, node: any, expandedKeys: any }) => void; /** dragover 触发时调用 */ - onDragOver?: (options: { event: Event, node: any }) => void, + onDragOver?: (options: { event: Event, node: any }) => void; /** dragleave 触发时调用*/ - onDragLeave?: (options: { event: Event, node: any }) => void, + onDragLeave?: (options: { event: Event, node: any }) => void; /** drop 触发时调用*/ - onDrop?: (options: { event: Event, node: any, dragNode: any, dragNodesKeys: any }) => void, + onDrop?: (options: { event: Event, node: any, dragNode: any, dragNodesKeys: any }) => void; } /** * #Tree * 文件夹、组织架构、生物分类、国家地区等等,世间万物的大多数结构都是树形结构。使用`树控件`可以完整展现其中的层级关系,并具有展开收起选择等交互功能。 */ export class Tree extends React.Component { - static TreeNode: typeof TreeNode - render(): JSX.Element + static TreeNode: typeof TreeNode; + render(): JSX.Element; } @@ -1815,69 +1812,69 @@ declare namespace Antd { // TreeSelect interface TreeSelectTreeNodeProps { - disabled?: boolean, + disabled?: boolean; /** 此项必须设置(其值在整个树范围内唯一)*/ - key: string, + key: string; /** 默认根据此属性值进行筛选*/ - value?: string, + value?: string; /** 树节点显示的内容*/ - title?: React.ReactNode | string, + title?: React.ReactNode | string; /** 是否是叶子节点*/ - isLeaf?: boolean + isLeaf?: boolean; } export class TreeSelectTreeNode extends React.Component { - render(): JSX.Element + render(): JSX.Element; } - type TreeData = Array<{ value: any, label: string, children: TreeData }> + type TreeData = Array<{ value: any, label: string, children: TreeData }>; interface TreeSelectProps { - style?: Object, + style?: Object; /** 指定当前选中的条目*/ - value?: string | Array, + value?: string | Array; /** 指定默认选中的条目*/ - defaultValue?: string | Array, + defaultValue?: string | Array; /** 支持多选*/ - multiple?: boolean, + multiple?: boolean; /** 可以把随意输入的条目作为 tag,输入项不需要与下拉选项匹配*/ - tags?: boolean, + tags?: boolean; /** 被选中时调用,参数为选中项的 value 值*/ - onSelect?: (value: any) => void, + onSelect?: (value: any) => void; /** 选中option,或input的value变化(combobox 模式下)时,调用此函数*/ - onChange?: (value: any, label: any) => void, + onChange?: (value: any, label: any) => void; /** 显示清除按钮*/ - allowClear?: boolean, + allowClear?: boolean; /** 文本框值变化时回调*/ - onSearch?: (value: any) => void, + onSearch?: (value: any) => void; /** 选择框默认文字*/ - placeholder?: string, + placeholder?: string; /** 搜索框默认文字*/ - searchPlaceholder?: string, + searchPlaceholder?: string; /** 下拉菜单的样式*/ - dropdownStyle?: Object, + dropdownStyle?: Object; /** 下拉菜单和选择器同宽*/ - dropdownMatchSelectWidth?: boolean, + dropdownMatchSelectWidth?: boolean; /** 输入框自动提示模式*/ - combobox?: boolean, + combobox?: boolean; /** 选择框大小,可选 `large` `small`*/ - size?: string, + size?: string; /** 在下拉中显示搜索框*/ - showSearch?: boolean, + showSearch?: boolean; /** 是否禁用*/ - disabled?: boolean, + disabled?: boolean; /** 默认展开所有树节点*/ - treeDefaultExpandAll?: boolean, + treeDefaultExpandAll?: boolean; /** 显示checkbox*/ - treeCheckable?: boolean, + treeCheckable?: boolean; /** 是否根据输入项进行筛选,返回值true*/ - filterTreeNode?: (treeNode: any) => boolean, + filterTreeNode?: (treeNode: any) => boolean; /** 输入项过滤对应的 treeNode 属性*/ - treeNodeFilterProp?: string, + treeNodeFilterProp?: string; /** 作为显示的prop设置*/ - treeNodeLabelProp?: string, + treeNodeLabelProp?: string; /** treeNodes数据,如果设置则不需要手动构造TreeNode节点(如果value在整个树范围内不唯一,需要设置`key`其值为整个树范围内的唯一id*/ - treeData?: TreeData, + treeData?: TreeData; /** 异步加载数据*/ - loadData?: (node: any) => void + loadData?: (node: any) => void; } /** * #TreeSelect @@ -1888,8 +1885,8 @@ declare namespace Antd { 类似 Select 的选择控件,可选择的数据结构是一个树形结构时,可以使用 TreeSelect,例如公司层级、学科系统、分类目录等等。 */ export class TreeSelect extends React.Component { - static TreeNode: typeof TreeSelectTreeNode - render(): JSX.Element + static TreeNode: typeof TreeSelectTreeNode; + render(): JSX.Element; } @@ -1900,27 +1897,27 @@ declare namespace Antd { // Upload interface UploadProps { /** 可选参数, 上传的文件 */ - name?: string, + name?: string; /** 必选参数, 上传的地址 */ - action: string, + action: string; /** 可选参数, 上传所需参数 */ - data?: Object, + data?: Object; /** 可选参数, 设置上传的请求头部,IE10 以上有效*/ - headers?: Object, + headers?: Object; /** 可选参数, 是否展示 uploadList, 默认开启 */ - showUploadList?: boolean, + showUploadList?: boolean; /** 可选参数, 是否支持多选文件,`ie10+` 支持。开启后按住 ctrl 可选择多个文件。*/ - multiple?: boolean, + multiple?: boolean; /** 可选参数, 接受上传的文件类型, 详见 input accept Attribute */ - accept?: string, + accept?: string; /** 可选参数, 上传文件之前的钩子,参数为上传的文件,若返回 `false` 或者 Promise 则停止上传。**注意:该方法不支持老 IE**。*/ - beforeUpload?: Function, + beforeUpload?: Function; /** 可选参数, 上传文件改变时的状态,详见 onChange */ - onChange?: (info: Object) => void, + onChange?: (info: Object) => void; /** 上传列表的内建样式,支持两种基本样式 `text` or `picture` */ - listType?: string, + listType?: string; /** 自定义类名*/ - className?: string + className?: string; } /** @@ -1935,7 +1932,7 @@ declare namespace Antd { - 当需要展现上传的进度时。 - 当需要使用拖拽交互时。*/ export class Upload extends React.Component { - render(): JSX.Element + render(): JSX.Element; } @@ -1948,135 +1945,135 @@ declare namespace Antd { // export all antd declare module 'antd' { - export = Antd + export = Antd; } // single export point declare module 'antd/lib/Affix' { - export default Antd.Affix + export default Antd.Affix; } declare module 'antd/lib/Button' { - export default Antd.Button + export default Antd.Button; } declare module 'antd/lib/Alert' { - export default Antd.Alert + export default Antd.Alert; } declare module 'antd/lib/Badge' { - export default Antd.Badge + export default Antd.Badge; } declare module 'antd/lib/Breadcrumb' { - export default Antd.Breadcrumb + export default Antd.Breadcrumb; } declare module 'antd/lib/Calendar' { - export default Antd.Calendar + export default Antd.Calendar; } declare module 'antd/lib/Carousel' { - export default Antd.Carousel + export default Antd.Carousel; } declare module 'antd/lib/Cascader' { - export default Antd.Cascader + export default Antd.Cascader; } declare module 'antd/lib/Checkbox' { - export default Antd.Checkbox + export default Antd.Checkbox; } declare module 'antd/lib/Collapse' { - export default Antd.Collapse + export default Antd.Collapse; } declare module 'antd/lib/DatePicker' { - export default Antd.DatePicker + export default Antd.DatePicker; } declare module 'antd/lib/Dropdown' { - export default Antd.Dropdown + export default Antd.Dropdown; } declare module 'antd/lib/Icon' { - export default Antd.Icon + export default Antd.Icon; } declare module 'antd/lib/Form' { - export default Antd.Form + export default Antd.Form; } declare module 'antd/lib/Input' { - export default Antd.Input + export default Antd.Input; } declare module 'antd/lib/InputNumber' { - export default Antd.InputNumber + export default Antd.InputNumber; } declare module 'antd/lib/Row' { - export default Antd.Row + export default Antd.Row; } declare module 'antd/lib/Col' { - export default Antd.Col + export default Antd.Col; } declare module 'antd/lib/Menu' { - export default Antd.Menu + export default Antd.Menu; } declare module 'antd/lib/message' { - export default Antd.message + export default Antd.message; } declare module 'antd/lib/Modal' { - export default Antd.Modal + export default Antd.Modal; } declare module 'antd/lib/notification' { - export default Antd.notification + export default Antd.notification; } declare module 'antd/lib/Pagination' { - export default Antd.Pagination + export default Antd.Pagination; } declare module 'antd/lib/Popconfirm' { - export default Antd.Popconfirm + export default Antd.Popconfirm; } declare module 'antd/lib/Popover' { - export default Antd.Popover + export default Antd.Popover; } declare module 'antd/lib/Progress' { - export default Antd.Progress + export default Antd.Progress; } declare module 'antd/lib/QueueAnim' { - export default Antd.QueueAnim + export default Antd.QueueAnim; } declare module 'antd/lib/Radio' { - export default Antd.Radio + export default Antd.Radio; } declare module 'antd/lib/Select' { - export default Antd.Select + export default Antd.Select; } declare module 'antd/lib/Slider' { - export default Antd.Slider + export default Antd.Slider; } declare module 'antd/lib/Spin' { - export default Antd.Spin + export default Antd.Spin; } declare module 'antd/lib/Steps' { - export default Antd.Steps + export default Antd.Steps; } declare module 'antd/lib/Switch' { - export default Antd.Switch + export default Antd.Switch; } declare module 'antd/lib/Table' { - export default Antd.Table + export default Antd.Table; } declare module 'antd/lib/Tabs' { - export default Antd.Tabs + export default Antd.Tabs; } declare module 'antd/lib/Tag' { - export default Antd.Tag + export default Antd.Tag; } declare module 'antd/lib/TimePicker' { - export default Antd.TimePicker + export default Antd.TimePicker; } declare module 'antd/lib/Timeline' { - export default Antd.Timeline + export default Antd.Timeline; } declare module 'antd/lib/Tooltip' { - export default Antd.Tooltip + export default Antd.Tooltip; } declare module 'antd/lib/Transfer' { - export default Antd.Transfer + export default Antd.Transfer; } declare module 'antd/lib/Tree' { - export default Antd.Tree + export default Antd.Tree; } declare module 'antd/lib/TreeSelect' { - export default Antd.TreeSelect + export default Antd.TreeSelect; } declare module 'antd/lib/Upload' { - export default Antd.Upload + export default Antd.Upload; } diff --git a/any-db/index.d.ts b/any-db/index.d.ts index 47265e1f53..4aa9e8df3f 100644 --- a/any-db/index.d.ts +++ b/any-db/index.d.ts @@ -153,7 +153,7 @@ export interface Queryable extends events.EventEmitter { * The second form is not needed for normal use, but must be implemented by adapters to work correctly * with ConnectionPool and Transaction. See Adapter.createQuery for more details. */ - query(text: string, params?: any[], callback?: (error: Error, results: ResultSet) => void): Query + query(text: string, params?: any[], callback?: (error: Error, results: ResultSet) => void): Query; /** * The second form is not needed for normal use, but must be implemented by adapters to work correctly diff --git a/anydb-sql/index.d.ts b/anydb-sql/index.d.ts index 367ade6ff9..fe2eaf800b 100644 --- a/anydb-sql/index.d.ts +++ b/anydb-sql/index.d.ts @@ -5,9 +5,9 @@ interface AnyDBPool extends anydbSQL.DatabaseConnection { - query: (text: string, values: any[], callback: (err: Error, result: any) => void) => void - begin: () => anydbSQL.Transaction - close: (err: Error) => void + query: (text: string, values: any[], callback: (err: Error, result: any) => void) => void; + begin: () => anydbSQL.Transaction; + close: (err: Error) => void; } interface Dictionary { [key: string]: T; } @@ -17,109 +17,109 @@ declare namespace anydbSQL { export interface ColumnDefinition { primaryKey?: boolean; dataType?: string; - references?: { table: string; column: string } - notNull?: boolean + references?: { table: string; column: string }; + notNull?: boolean; } export interface TableDefinition { - name: string - columns: Dictionary - has?: Dictionary<{ from: string; many?: boolean }> + name: string; + columns: Dictionary; + has?: Dictionary<{ from: string; many?: boolean }>; } export interface QueryLike { query: string; - values: any[] - text: string + values: any[]; + text: string; } export interface DatabaseConnection { - queryAsync(query: string, ...params: any[]): Promise<{ rowCount: number; rows: T[] }> - queryAsync(query: QueryLike): Promise<{ rowCount: number; rows: T[] }> + queryAsync(query: string, ...params: any[]): Promise<{ rowCount: number; rows: T[] }>; + queryAsync(query: QueryLike): Promise<{ rowCount: number; rows: T[] }>; } export interface Transaction extends DatabaseConnection { - rollback(): void - commitAsync(): Promise + rollback(): void; + commitAsync(): Promise; } export interface SubQuery { - select(node: Column): SubQuery - where(...nodes: any[]): SubQuery - from(table: TableNode): SubQuery - group(...nodes: any[]): SubQuery - order(criteria: OrderByValueNode): SubQuery - notExists(subQuery: SubQuery): SubQuery + select(node: Column): SubQuery; + where(...nodes: any[]): SubQuery; + from(table: TableNode): SubQuery; + group(...nodes: any[]): SubQuery; + order(criteria: OrderByValueNode): SubQuery; + notExists(subQuery: SubQuery): SubQuery; } interface Executable { - get(): Promise - getWithin(tx: DatabaseConnection): Promise - exec(): Promise - all(): Promise - execWithin(tx: DatabaseConnection): Promise - allWithin(tx: DatabaseConnection): Promise + get(): Promise; + getWithin(tx: DatabaseConnection): Promise; + exec(): Promise; + all(): Promise; + execWithin(tx: DatabaseConnection): Promise; + allWithin(tx: DatabaseConnection): Promise; toQuery(): QueryLike; } interface Queryable { - where(...nodes: any[]): Query - delete(): ModifyingQuery - select(...nodes: any[]): Query - selectDeep(table: Table): Query - selectDeep(...nodesOrTables: any[]): Query + where(...nodes: any[]): Query; + delete(): ModifyingQuery; + select(...nodes: any[]): Query; + selectDeep(table: Table): Query; + selectDeep(...nodesOrTables: any[]): Query; } export interface Query extends Executable, Queryable { - from(table: TableNode): Query - update(o: Dictionary): ModifyingQuery - update(o: {}): ModifyingQuery - group(...nodes: any[]): Query - order(...criteria: OrderByValueNode[]): Query - limit(l: number): Query - offset(o: number): Query + from(table: TableNode): Query; + update(o: Dictionary): ModifyingQuery; + update(o: {}): ModifyingQuery; + group(...nodes: any[]): Query; + order(...criteria: OrderByValueNode[]): Query; + limit(l: number): Query; + offset(o: number): Query; } export interface ModifyingQuery extends Executable { - returning(...nodes: any[]): Query - where(...nodes: any[]): ModifyingQuery + returning(...nodes: any[]): Query; + where(...nodes: any[]): ModifyingQuery; } export interface TableNode { - join(table: TableNode): JoinTableNode - leftJoin(table: TableNode): JoinTableNode + join(table: TableNode): JoinTableNode; + leftJoin(table: TableNode): JoinTableNode; } export interface JoinTableNode extends TableNode { - on(filter: BinaryNode): TableNode - on(filter: string): TableNode + on(filter: BinaryNode): TableNode; + on(filter: string): TableNode; } interface CreateQuery extends Executable { - ifNotExists(): Executable + ifNotExists(): Executable; } interface DropQuery extends Executable { - ifExists(): Executable + ifExists(): Executable; } export interface Table extends TableNode, Queryable { - create(): CreateQuery - drop(): DropQuery - as(name: string): Table - update(o: any): ModifyingQuery - insert(row: T): ModifyingQuery - insert(rows: T[]): ModifyingQuery - select(): Query - select(...nodes: any[]): Query - from(table: TableNode): Query - star(): Column - subQuery(): SubQuery + create(): CreateQuery; + drop(): DropQuery; + as(name: string): Table; + update(o: any): ModifyingQuery; + insert(row: T): ModifyingQuery; + insert(rows: T[]): ModifyingQuery; + select(): Query; + select(...nodes: any[]): Query; + from(table: TableNode): Query; + star(): Column; + subQuery(): SubQuery; eventEmitter: { - emit: (type: string, ...args: any[]) => void - on: (eventName: string, handler: Function) => void - } - columns: Column[] + emit: (type: string, ...args: any[]) => void; + on: (eventName: string, handler: Function) => void; + }; + columns: Column[]; sql: SQL; - alter(): AlterQuery + alter(): AlterQuery; } export interface AlterQuery extends Executable { addColumn(column: Column): AlterQuery; @@ -128,59 +128,59 @@ declare namespace anydbSQL { renameColumn(column: Column, newColumn: Column): AlterQuery; renameColumn(column: Column, newName: string): AlterQuery; renameColumn(name: string, newName: string): AlterQuery; - rename(newName: string): AlterQuery + rename(newName: string): AlterQuery; } export interface SQL { functions: { LOWER(c: Column): Column - } + }; } export interface BinaryNode { - and(node: BinaryNode): BinaryNode - or(node: BinaryNode): BinaryNode + and(node: BinaryNode): BinaryNode; + or(node: BinaryNode): BinaryNode; } export interface Column { - in(arr: T[]): BinaryNode - in(subQuery: SubQuery): BinaryNode - notIn(arr: T[]): BinaryNode - equals(node: any): BinaryNode - notEquals(node: any): BinaryNode - gte(node: any): BinaryNode - lte(node: any): BinaryNode - gt(node: any): BinaryNode - lt(node: any): BinaryNode - like(str: string): BinaryNode + in(arr: T[]): BinaryNode; + in(subQuery: SubQuery): BinaryNode; + notIn(arr: T[]): BinaryNode; + equals(node: any): BinaryNode; + notEquals(node: any): BinaryNode; + gte(node: any): BinaryNode; + lte(node: any): BinaryNode; + gt(node: any): BinaryNode; + lt(node: any): BinaryNode; + like(str: string): BinaryNode; multiply: { (node: Column): Column (n: number): Column - } - isNull(): BinaryNode - isNotNull(): BinaryNode - sum(): Column - count(): Column - count(name: string): Column - distinct(): Column - as(name: string): Column - ascending: OrderByValueNode - descending: OrderByValueNode - asc: OrderByValueNode - desc: OrderByValueNode + }; + isNull(): BinaryNode; + isNotNull(): BinaryNode; + sum(): Column; + count(): Column; + count(name: string): Column; + distinct(): Column; + as(name: string): Column; + ascending: OrderByValueNode; + descending: OrderByValueNode; + asc: OrderByValueNode; + desc: OrderByValueNode; } export interface AnydbSql extends DatabaseConnection { define(map: TableDefinition): Table; - transaction(fn: (tx: Transaction) => Promise): Promise - allOf(...tables: Table[]): any - models: Dictionary> + transaction(fn: (tx: Transaction) => Promise): Promise; + allOf(...tables: Table[]): any; + models: Dictionary>; functions: { LOWER: (name: Column) => Column RTRIM: (name: Column) => Column - } - makeFunction(name: string): Function - begin(): Transaction + }; + makeFunction(name: string): Function; + begin(): Transaction; open(): void; close(): void; getPool(): AnyDBPool; diff --git a/aphrodite/index.d.ts b/aphrodite/index.d.ts index 2f53e133fd..8aa99f47c9 100644 --- a/aphrodite/index.d.ts +++ b/aphrodite/index.d.ts @@ -34,7 +34,7 @@ interface StaticRendererResult { css: { content: string; renderedClassNames: string[]; - } + }; } /** diff --git a/apigee-access/index.d.ts b/apigee-access/index.d.ts index e3c2157857..370ee6f9fe 100644 --- a/apigee-access/index.d.ts +++ b/apigee-access/index.d.ts @@ -14,29 +14,29 @@ declare namespace ApigeeAccess { function getQuota(options?: any): QuotaService; function getMode(): "apigee" | "standalone"; - interface CacheOptions{ + interface CacheOptions { resource?: string; scope?: "global" | "application" | "exclusive"; defaultTtl?: number; timeout?: number; } - interface Cache{ + interface Cache { put(key: string, data: any, ttl?: number, callback?: (err: any) => void): void; get(key: string, callback: (err: any, data: any) => void): void; remove(key: string, callback?: (err: any) => void): void; } - interface SecureVault{ + interface SecureVault { getKeys(callback: (err: any, data: any) => void): void; - get(key: string, callback: (err: any, data: any) => void): void; + get(key: string, callback: (err: any, data: any) => void): void; } - interface QuotaService{ + interface QuotaService { apply(options?: QuotaServiceApplyOptions, callback?: (err: any, data: QuotaServiceApplyCallbackData) => void): void; } - interface QuotaServiceApplyOptions{ + interface QuotaServiceApplyOptions { identifier: string; timeUnit: "minute" | "hour" | "day" | "week" | "month"; allow: number; @@ -44,7 +44,7 @@ declare namespace ApigeeAccess { weight?: number; } - interface QuotaServiceApplyCallbackData{ + interface QuotaServiceApplyCallbackData { used: number; allowed: number; isAllowed: boolean; diff --git a/apn/index.d.ts b/apn/index.d.ts index 96ce6e9720..0fb3597624 100644 --- a/apn/index.d.ts +++ b/apn/index.d.ts @@ -81,7 +81,7 @@ 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. - * + * * A "recipient" is either a `Device` object, a `String`, or a `Buffer` containing the device token. `Device` objects are used internally and will be created if necessary. Where applicable, all events will return a `Device` regardless of the type passed to this method. */ pushNotification(notification: Notification, recipient: Device | string | Buffer | (Device | string | Buffer)[]): void; @@ -111,7 +111,7 @@ export declare class Connection extends events.EventEmitter { on(event: "completed", listener: () => void): this; /** * Emitted when Apple returns a notification as invalid but the notification has already been expunged from the cache - usually due to high throughput and indicates that notifications will be getting lost. The parameter is an estimate of how many notifications have been lost. You should experiment with increasing the cache size or enabling ```autoAdjustCache``` if you see this frequently. - * + * * **Note**: With ```autoAdjustCache``` enabled this event will still be emitted when an adjustment is triggered. */ on(event: "cacheTooSmall", listener: (sizeDifference: number) => void): this; @@ -157,7 +157,7 @@ export declare class Notification { public expiry: number; /** * From Apple's Documentation, Provide one of the following values: - * + * * - 10 - The push message is sent immediately. (Default) * > The push notification must trigger an alert, sound, or badge on the device. It is an error use this priority for a push that contains only the content-available key. * - 5 - The push message is sent at a time that conserves power on the device receiving it. diff --git a/appframework/index.d.ts b/appframework/index.d.ts index 2ccdb49b1c..b306985f18 100644 --- a/appframework/index.d.ts +++ b/appframework/index.d.ts @@ -431,7 +431,7 @@ interface appFrameworkStatic { cssPrefix: string; cssTransformStart: string; cssTransformEnd: string; - } + }; } interface appFrameworkCollection { diff --git a/appletvjs/appletvjs-tests.ts b/appletvjs/appletvjs-tests.ts index 55f720e26d..cbb732dfcb 100644 --- a/appletvjs/appletvjs-tests.ts +++ b/appletvjs/appletvjs-tests.ts @@ -5,15 +5,15 @@ function test_AppEvents() { App.onError = function (options: any) { //do something } - + App.onExit = function (options: any) { //do something } - + App.onLaunch = function (options: any) { //do something } - + App.reload({ someProperty: 'Testing...' }); } @@ -34,21 +34,21 @@ function test_FeatureElement() { textField.addEventListener("change", function() { change.call(this, textField); }); - + var change = function (textField: AppleTVJS.FeatureElement){ var keyboard: AppleTVJS.Keyboard = textField.getFeature('Keyboard'); - + var text = keyboard.text; }; - + var menuBar = document.getElementById("menuBar"); textField.addEventListener("change", function() { change.call(this, textField); }); - + var select = function (menuBar: AppleTVJS.FeatureElement) { var menuBarDocument: AppleTVJS.MenuBarDocument = menuBar.getFeature('MenuBarDocument'); - + var document = menuBarDocument.getDocument(menuBar); menuBarDocument.setDocument(document, menuBar); menuBarDocument.setSelectedItem(menuBar); @@ -61,50 +61,50 @@ function test_MediaItem() { mediaItem.contentRatingDomain = "movie"; mediaItem.contentRatingRanking = 1; mediaItem.description = "Media Item"; - + var highlight = new AppleTVJS.Highlight(); highlight.description = "Highlight"; highlight.duration = 10; highlight.imageURL = "http://google.com/img.png"; highlight.name = "Name of Highlight"; highlight.starttime = 10; - + var highlightGroup = new AppleTVJS.HighlightGroup(); highlightGroup.name = "Highlight Group"; highlightGroup.hightlights.push(highlight); - + mediaItem.highlightGroups.push(highlightGroup); - + var interstitial = new AppleTVJS.Interstitial(); interstitial.duration = 10; interstitial.starttime = 20; - + mediaItem.interstitials.push(interstitial); - + mediaItem.isExplicit = false; mediaItem.resumeTime = 0; mediaItem.subtitle = "Subtitle"; - + var loadAssetIDCallback = function (assetID: string, error: string) { //do something }; - + mediaItem.loadAssetID = function (url: string, loadAssetIDCallback: (assetID: string, error: string) => void) { //do something }; - + var loadCertificateCallback = function (certificate: string, error: string) { //do something }; - + mediaItem.loadCertificate = function (url: string, loadCertificateCallback: (certificate: string, error: string) => void) { //do something }; - + var loadKeyCallback = function (key: string, renewalDate: string, error: string) { //do something }; - + mediaItem.loadKey = function (url: string, loadKeyCallback: (key: string, renewalDate: string, error: string) => void) { //do something }; @@ -138,55 +138,55 @@ function test_Player() { playlist.pop(); var result: AppleTVJS.MediaItem[] = playlist.splice(0, 1, mediaItem); var length: number = playlist.length; - + var player = new AppleTVJS.Player(); player.playlist = playlist; - + var parser = new DOMParser(); var document = parser.parseFromString('', "application/xml"); player.overlayDocument = document; - + player.present(); player.pause(); player.play(); - + var playbackState: string = player.playbackState; player.seekToTime(10); player.setPlaybackRate(2); player.stop(); - + var currentMediaItem: AppleTVJS.MediaItem = player.currentMediaItem; var nextMediaItem: AppleTVJS.MediaItem = player.nextMediaItem; var previousMediaItem: AppleTVJS.MediaItem = player.previousMediaItem; - + player.mediaItemDidChange = function (reason: string) { //do something }; - + player.requestSeekToTime = function (result) { //do something }; - + player.shouldHandleStateChange = function (result: boolean) { //do something }; - + player.stateDidChange = function (){ //do something }; - + player.stateWillChange = function (){ //do something }; - + player.timeBoundaryDidCross = function (){ //do something }; - + player.timeDidChange = function (){ //do something }; - + player.timedMetadata = function (){ //do something }; diff --git a/appletvjs/index.d.ts b/appletvjs/index.d.ts index 743ad7849c..10ff677f1e 100644 --- a/appletvjs/index.d.ts +++ b/appletvjs/index.d.ts @@ -377,7 +377,7 @@ declare namespace AppleTVJS { maxMovieRatingForCountry(countryCode: string): string; /** The maximum television show ranking allowed. */ - maxTVShowRank: number + maxTVShowRank: number; /** Sets the maximum television show rating allowed for the specified country. */ maxTVShowRatingForCountry(countryCode: string): string; diff --git a/applicationinsights-js/index.d.ts b/applicationinsights-js/index.d.ts index ba154e5fe6..20c9f5eba6 100644 --- a/applicationinsights-js/index.d.ts +++ b/applicationinsights-js/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Kamil Szostak // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module AI { +declare namespace AI { enum SeverityLevel { Verbose = 0, Information = 1, @@ -127,7 +127,7 @@ declare module AI { } } -declare module Microsoft.ApplicationInsights.Context { +declare namespace Microsoft.ApplicationInsights.Context { interface IApplication { /** * The application version. @@ -288,7 +288,7 @@ declare module Microsoft.ApplicationInsights.Context { } } -declare module Microsoft.Telemetry { +declare namespace Microsoft.Telemetry { class Domain { constructor(); } @@ -305,7 +305,7 @@ declare module Microsoft.Telemetry { } } -declare module Microsoft.ApplicationInsights.Telemetry { +declare namespace Microsoft.ApplicationInsights.Telemetry { class Event implements Microsoft.ApplicationInsights.ISerializable { static envelopeType: string; @@ -481,7 +481,7 @@ declare module Microsoft.ApplicationInsights.Telemetry { } } -declare module Microsoft.ApplicationInsights.Telemetry.Common { +declare namespace Microsoft.ApplicationInsights.Telemetry.Common { class Base extends Microsoft.Telemetry.Base implements Microsoft.ApplicationInsights.ISerializable { /** * The data contract for serializing this object. @@ -543,7 +543,7 @@ declare module Microsoft.ApplicationInsights.Telemetry.Common { } } -declare module Microsoft.ApplicationInsights { +declare namespace Microsoft.ApplicationInsights { interface IConfig { instrumentationKey?: string; endpointUrl?: string; diff --git a/applicationinsights/index.d.ts b/applicationinsights/index.d.ts index 45c89556a6..80480214a4 100644 --- a/applicationinsights/index.d.ts +++ b/applicationinsights/index.d.ts @@ -10,9 +10,9 @@ interface AutoCollectConsole { } interface AutoCollectExceptions { - constructor(client:Client): AutoCollectExceptions; + constructor(client: Client): AutoCollectExceptions; isInitialized(): boolean; - enable(isEnabled:boolean): void; + enable(isEnabled: boolean): void; } interface AutoCollectPerformance { @@ -338,12 +338,12 @@ interface Client { * @param max the max sample for this set * @param stdDev the standard deviation of the set */ - trackMetric(name: string, value: number, count?:number, min?: number, max?: number, stdDev?: number, properties?: { + trackMetric(name: string, value: number, count?: number, min?: number, max?: number, stdDev?: number, properties?: { [key: string]: string; }): void; - + /** - * Log an incoming http request to your server. The request data will be tracked during the response "finish" event if it is successful or the request "error" + * Log an incoming http request to your server. The request data will be tracked during the response "finish" event if it is successful or the request "error" * event if it fails. The request duration is automatically calculated as the timespan between when the trackRequest method was called, and when the response "finish" * or request "error" events were fired. * @param request The http.IncomingMessage object to track @@ -353,7 +353,7 @@ interface Client { trackRequest(request: any /* http.IncomingMessage */, response: any /* http.ServerResponse */, properties?: { [key: string]: string; }): void; - + /** * Log an incoming http request to your server. The request data is tracked synchronously rather than waiting for the response "finish"" or request "error"" events. * Use this if you need your request telemetry to respect custom app insights operation and user context (for example if you set any appInsights.client.context.tags). @@ -364,8 +364,8 @@ interface Client { * @param error An error that was returned for this request if it was unsuccessful. Defaults to null. */ trackRequestSync(request: any /*http.IncomingMessage */, response: any /*http.ServerResponse */, ellapsedMilliseconds?: number, properties?: { - [key: string]: string;}, error?: any) : void; - + [key: string]: string}, error?: any): void; + /** * Log information about a dependency of your app. Typically used to track the time database calls or outgoing http requests take from your server. * @param name The name of the dependency (i.e. "myDatabse") diff --git a/arcgis-js-api/index.d.ts b/arcgis-js-api/index.d.ts index d27429b428..3d58bd0f83 100644 --- a/arcgis-js-api/index.d.ts +++ b/arcgis-js-api/index.d.ts @@ -4320,7 +4320,7 @@ declare module "esri/dijit/Geocoder" { /** Finalizes the creation of the widget. */ startup(): void; /** Fired when results are returned from an auto-complete. */ - on(type: "auto-complete", listener: (event: { results : any; target: Geocoder }) => void): esri.Handle; + on(type: "auto-complete", listener: (event: { results: any; target: Geocoder }) => void): esri.Handle; /** Fired when a result is cleared from the input box or a new result is selected. */ on(type: "clear", listener: (event: { target: Geocoder }) => void): esri.Handle; /** Fired when results are returned from a search. */ @@ -16120,7 +16120,7 @@ declare module "esri/tasks/datareviewer/BatchValidationJob" { /** Encapsulates a Batch Validation Job. */ class BatchValidationJob { /** Contains a list of batch run IDs, one for each batch validation execution associated with this batch validation job. */ - batchRunIds : string[]; + batchRunIds: string[]; /** Gets job creation date. */ creationDate: Date; /** Gets the Job Id. */ diff --git a/asana/index.d.ts b/asana/index.d.ts index 364980b66c..cd2eae7086 100644 --- a/asana/index.d.ts +++ b/asana/index.d.ts @@ -337,7 +337,7 @@ declare namespace asana { auth: { username: string; password: string; - } + }; } var OauthAuthenticator: OauthAuthenticatorStatic; @@ -388,7 +388,7 @@ declare namespace asana { */ headers: { Authorization: string; - } + }; } /** @@ -2422,7 +2422,7 @@ declare namespace asana { retryOnRateLimit: boolean; requestTimeout: number; _cachedVersionInfo: VersionInfo; - } + }; } type SimpleResourceList = ResourceList; diff --git a/asciify/index.d.ts b/asciify/index.d.ts index 7d55062213..da32220dbf 100644 --- a/asciify/index.d.ts +++ b/asciify/index.d.ts @@ -13,7 +13,7 @@ interface AsciifyOptions { interface AsciifyCallback { // err is sometimes a string and sometimes an Error - (err: any, asciifiedText: string): void + (err: any, asciifiedText: string): void; } declare module "asciify" { @@ -25,5 +25,5 @@ declare module "asciify" { function getFonts(callback: (err: Error, fonts: string[]) => void): void; } - export = asciify + export = asciify; } diff --git a/assert/index.d.ts b/assert/index.d.ts index 23536f9597..5ae019f4e7 100644 --- a/assert/index.d.ts +++ b/assert/index.d.ts @@ -11,49 +11,49 @@ // modules such as "power-assert", but a project should realistically // only be using one of these at a time. -declare function assert(value:any, message?:string):void; +declare function assert(value: any, message?: string): void; declare namespace assert { export class AssertionError implements Error { - name:string; - message:string; - actual:any; - expected:any; - operator:string; - generatedMessage:boolean; + name: string; + message: string; + actual: any; + expected: any; + operator: string; + generatedMessage: boolean; - constructor(options?:{message?: string; actual?: any; expected?: any; operator?: string; stackStartFunction?: Function}); + constructor(options?: {message?: string; actual?: any; expected?: any; operator?: string; stackStartFunction?: Function}); } - export function fail(actual?:any, expected?:any, message?:string, operator?:string):void; + export function fail(actual?: any, expected?: any, message?: string, operator?: string): void; - export function ok(value:any, message?:string):void; + export function ok(value: any, message?: string): void; - export function equal(actual:any, expected:any, message?:string):void; + export function equal(actual: any, expected: any, message?: string): void; - export function notEqual(actual:any, expected:any, message?:string):void; + export function notEqual(actual: any, expected: any, message?: string): void; - export function deepEqual(actual:any, expected:any, message?:string):void; + export function deepEqual(actual: any, expected: any, message?: string): void; - export function notDeepEqual(acutal:any, expected:any, message?:string):void; + export function notDeepEqual(acutal: any, expected: any, message?: string): void; - export function strictEqual(actual:any, expected:any, message?:string):void; + export function strictEqual(actual: any, expected: any, message?: string): void; - export function notStrictEqual(actual:any, expected:any, message?:string):void; + export function notStrictEqual(actual: any, expected: any, message?: string): void; - export var throws:{ - (block:Function, message?:string): void; - (block:Function, error:Function, message?:string): void; - (block:Function, error:RegExp, message?:string): void; - (block:Function, error:(err:any) => boolean, message?:string): void; + export var throws: { + (block: Function, message?: string): void; + (block: Function, error: Function, message?: string): void; + (block: Function, error: RegExp, message?: string): void; + (block: Function, error: (err: any) => boolean, message?: string): void; }; - export var doesNotThrow:{ - (block:Function, message?:string): void; - (block:Function, error:Function, message?:string): void; - (block:Function, error:RegExp, message?:string): void; - (block:Function, error:(err:any) => boolean, message?:string): void; + export var doesNotThrow: { + (block: Function, message?: string): void; + (block: Function, error: Function, message?: string): void; + (block: Function, error: RegExp, message?: string): void; + (block: Function, error: (err: any) => boolean, message?: string): void; }; - export function ifError(value:any):void; + export function ifError(value: any): void; } diff --git a/async/index.d.ts b/async/index.d.ts index 45d39ea955..cd1df2289d 100644 --- a/async/index.d.ts +++ b/async/index.d.ts @@ -36,7 +36,7 @@ interface AsyncQueue { empty: () => any; drain: () => any; paused: boolean; - pause(): void + pause(): void; resume(): void; kill(): void; workersList(): { @@ -76,8 +76,8 @@ interface AsyncPriorityQueue { interface AsyncCargo { length(): number; payload: number; - push(task: any, callback? : Function): void; - push(task: any[], callback? : Function): void; + push(task: any, callback?: Function): void; + push(task: any[], callback?: Function): void; saturated(): void; empty(): void; drain(): void; diff --git a/asyncblock/asyncblock-tests.ts b/asyncblock/asyncblock-tests.ts index 472ec80a1b..d93c9fc07a 100644 --- a/asyncblock/asyncblock-tests.ts +++ b/asyncblock/asyncblock-tests.ts @@ -32,7 +32,7 @@ asyncblock((flow) => { //Wait for a large number of tasks for(var i = 0; i < 100; i++){ //Add each task in parallel with i as the key - fs.readFile(paths[i], 'utf8', flow.add(i)); + fs.readFile(paths[i], 'utf8', flow.add(i)); } //Wait for all the tasks to finish. Results is an object of the form {key1: value1, key2: value2, ...} @@ -76,7 +76,7 @@ asyncblock.nostack((flow) => { fs.readFile('path2', 'utf8', flow.add('second')); //Wait until done reading the first and second files, then write them to another file - fs.writeFile('path3', flow.wait('first') + flow.wait('second'), flow.add()); + fs.writeFile('path3', flow.wait('first') + flow.wait('second'), flow.add()); flow.wait(); //Wait on all outstanding tasks fs.readFile('path3', 'utf8', flow.add('data')); diff --git a/atmosphere/index.d.ts b/atmosphere/index.d.ts index e62df1ea64..1e6954df23 100644 --- a/atmosphere/index.d.ts +++ b/atmosphere/index.d.ts @@ -9,7 +9,7 @@ declare namespace Atmosphere { * The atmosphere API is a little bit special here: the first parameter can either be * a URL string or a Request object. If it is a URL string, then the additional parameters are expected. */ - subscribe?: (requestOrUrl:any, callback?:Function, request?:Request) => Request; + subscribe?: (requestOrUrl: any, callback?: Function, request?: Request) => Request; unsubscribe?: () => void; AtmosphereRequest?: AtmosphereRequest; @@ -63,26 +63,26 @@ declare namespace Atmosphere { enableProtocol?: boolean; pollingInterval?: number; - onError?: (response?:Response) => void; - onClose?: (response?:Response) => void; - onOpen?: (response?:Response) => void; - onMessage?: (response:Response) => void; - onReopen?: (request?:Request, response?:Response) => void; - onReconnect?: (request?:Request, response?:Response) => void; - onMessagePublished?: (response?:Response) => void; - onTransportFailure?: (reason?:string, response?:Response) => void; - onLocalMessage?: (request?:Request) => void; - onFailureToReconnect?: (request?:Request, response?:Response) => void; - onClientTimeout?: (request?:Request) => void; + onError?: (response?: Response) => void; + onClose?: (response?: Response) => void; + onOpen?: (response?: Response) => void; + onMessage?: (response: Response) => void; + onReopen?: (request?: Request, response?: Response) => void; + onReconnect?: (request?: Request, response?: Response) => void; + onMessagePublished?: (response?: Response) => void; + onTransportFailure?: (reason?: string, response?: Response) => void; + onLocalMessage?: (request?: Request) => void; + onFailureToReconnect?: (request?: Request, response?: Response) => void; + onClientTimeout?: (request?: Request) => void; - subscribe?: (options:Request) => void; + subscribe?: (options: Request) => void; execute?: () => void; close?: () => void; disconnect?: () => void; getUrl?: () => string; - push?: (message:string, dispatchUrl?:string) => void; + push?: (message: string, dispatchUrl?: string) => void; getUUID?: () => void; - pushLocal?: (message:string) => void; + pushLocal?: (message: string) => void; } interface Response { @@ -101,7 +101,7 @@ declare namespace Atmosphere { } } -declare var atmosphere:Atmosphere.Atmosphere; +declare var atmosphere: Atmosphere.Atmosphere; declare module 'atmosphere' { export = atmosphere; } diff --git a/atom/index.d.ts b/atom/index.d.ts index 7c984bd812..3eccf2d708 100644 --- a/atom/index.d.ts +++ b/atom/index.d.ts @@ -19,18 +19,18 @@ interface Window { atom: AtomCore.IAtom; - measure(description:string, fn:Function):any; // return fn result - profile(description:string, fn:Function):any; // return fn result + measure(description: string, fn: Function): any; // return fn result + profile(description: string, fn: Function): any; // return fn result } declare namespace AtomCore { // https://atom.io/docs/v0.84.0/advanced/view-system interface IWorkspaceViewStatic { - new ():IWorkspaceView; + new (): IWorkspaceView; version: number; - configDefaults:any; - content():any; + configDefaults: any; + content(): any; } interface Decoration { @@ -59,59 +59,59 @@ declare namespace AtomCore { // Delegator.includeInto(WorkspaceView); // delegate to model property's property - fullScreen:boolean; + fullScreen: boolean; // delegate to model property's method - open(uri:string, options:any):Q.Promise; - openSync(uri:string, options?:any):any; - saveActivePaneItem():any; - saveActivePaneItemAs():any; - saveAll():void; - destroyActivePaneItem():any; - destroyActivePane():any; - increaseFontSize():void; - decreaseFontSize():void; + open(uri: string, options: any): Q.Promise; + openSync(uri: string, options?: any): any; + saveActivePaneItem(): any; + saveActivePaneItemAs(): any; + saveAll(): void; + destroyActivePaneItem(): any; + destroyActivePane(): any; + increaseFontSize(): void; + decreaseFontSize(): void; // own property & methods - initialize(model:IWorkspace):any; - initialize(view:View, args:any):void; // do not use - model:IWorkspace; + initialize(model: IWorkspace): any; + initialize(view: View, args: any): void; // do not use + model: IWorkspace; panes: IPaneContainerView; - getModel():IWorkspace; - installShellCommands():any; - handleFocus():any; - afterAttach(onDom?:any):any; - confirmClose():boolean; - updateTitle():any; - setTitle(title:string):any; - getEditorViews():any[]; // atom.EditorView - prependToTop(element:any):any; - appendToTop(element:any):any; - prependToBottom(element:any):any; - appendToBottom(element:any):any; - prependToLeft(element:any):any; - appendToLeft(element:any):any; - prependToRight(element:any):any; - appendToRight(element:any):any; - getActivePaneView():IPaneView; - getActiveView():View; - focusPreviousPaneView():any; - focusNextPaneView():any; - focusPaneViewAbove():any; - focusPaneViewBelow():any; - focusPaneViewOnLeft():any; - focusPaneViewOnRight():any; - eachPaneView(callback:(paneView:IPaneView)=>any):{ off():any; }; - getPaneViews():IPaneView[]; - eachEditorView(callback:(editorView:any /* EditorView */)=>any):{ off():any; }; - beforeRemove():any; + getModel(): IWorkspace; + installShellCommands(): any; + handleFocus(): any; + afterAttach(onDom?: any): any; + confirmClose(): boolean; + updateTitle(): any; + setTitle(title: string): any; + getEditorViews(): any[]; // atom.EditorView + prependToTop(element: any): any; + appendToTop(element: any): any; + prependToBottom(element: any): any; + appendToBottom(element: any): any; + prependToLeft(element: any): any; + appendToLeft(element: any): any; + prependToRight(element: any): any; + appendToRight(element: any): any; + getActivePaneView(): IPaneView; + getActiveView(): View; + focusPreviousPaneView(): any; + focusNextPaneView(): any; + focusPaneViewAbove(): any; + focusPaneViewBelow(): any; + focusPaneViewOnLeft(): any; + focusPaneViewOnRight(): any; + eachPaneView(callback: (paneView: IPaneView) => any): { off(): any; }; + getPaneViews(): IPaneView[]; + eachEditorView(callback: (editorView: any /* EditorView */) => any): { off(): any; }; + beforeRemove(): any; - command(eventName:string, handler:Function):any; - command(eventName:string, selector:Function, handler:Function):any; - command(eventName:string, options:any, handler:Function):any; - command(eventName:string, selector:Function, options:any, handler:Function):any; + command(eventName: string, handler: Function): any; + command(eventName: string, selector: Function, handler: Function): any; + command(eventName: string, options: any, handler: Function): any; + command(eventName: string, selector: Function, options: any, handler: Function): any; - statusBar:StatusBar.IStatusBarView; + statusBar: StatusBar.IStatusBarView; } interface IPanes { @@ -132,42 +132,42 @@ declare namespace AtomCore { interface IGutterViewStatic { new(): IGutterView; - content():any; + content(): any; } interface IGutterView extends View { - firstScreenRow:any; - lastScreenRow:any; - initialize():void; - initialize(view:View, args:any):void; // do not use - afterAttach(onDom?:any):any; - beforeRemove():any; - handleMouseEvents(e:JQueryMouseEventObject):any; - getEditorView():any; /* EditorView */ - getEditor():IEditor; - getLineNumberElements():HTMLCollection; - getLineNumberElementsForClass(klass:string):NodeList; - getLineNumberElement(bufferRow:number):NodeList; - addClassToAllLines(klass:string):boolean; - removeClassFromAllLines(klass:string):boolean; - addClassToLine(bufferRow:number, klass:string):boolean; - removeClassFromLine(bufferRow:number, klass:string):boolean; - updateLineNumbers(changes:any[], startScreenRow?:number, endScreenRow?:number):any; - prependLineElements(lineElements:any):void; - appendLineElements(lineElements:any):void; - removeLineElements(numberOfElements:number):void; - buildLineElements(startScreenRow:any, endScreenRow:any):any; - buildLineElementsHtml(startScreenRow:any, endScreenRow:any):any; - updateFoldableClasses(changes:any[]):any; - removeLineHighlights():void; - addLineHighlight(row:number, emptySelection?:boolean):any; - highlightLines():boolean; + firstScreenRow: any; + lastScreenRow: any; + initialize(): void; + initialize(view: View, args: any): void; // do not use + afterAttach(onDom?: any): any; + beforeRemove(): any; + handleMouseEvents(e: JQueryMouseEventObject): any; + getEditorView(): any; /* EditorView */ + getEditor(): IEditor; + getLineNumberElements(): HTMLCollection; + getLineNumberElementsForClass(klass: string): NodeList; + getLineNumberElement(bufferRow: number): NodeList; + addClassToAllLines(klass: string): boolean; + removeClassFromAllLines(klass: string): boolean; + addClassToLine(bufferRow: number, klass: string): boolean; + removeClassFromLine(bufferRow: number, klass: string): boolean; + updateLineNumbers(changes: any[], startScreenRow?: number, endScreenRow?: number): any; + prependLineElements(lineElements: any): void; + appendLineElements(lineElements: any): void; + removeLineElements(numberOfElements: number): void; + buildLineElements(startScreenRow: any, endScreenRow: any): any; + buildLineElementsHtml(startScreenRow: any, endScreenRow: any): any; + updateFoldableClasses(changes: any[]): any; + removeLineHighlights(): void; + addLineHighlight(row: number, emptySelection?: boolean): any; + highlightLines(): boolean; } interface ICommandRegistry { add(target: string, commandName: Object, callback?: (event: any) => void): any; // selector:'atom-editor'|'atom-workspace' findCommands(params: Object): Object[]; - dispatch(selector: any, name:string): void; + dispatch(selector: any, name: string): void; } interface ICommandPanel { @@ -175,208 +175,208 @@ declare namespace AtomCore { } interface IDisplayBufferStatic { - new(_arg?:any):IDisplayBuffer; + new(_arg?: any): IDisplayBuffer; } interface IDisplayBuffer /* extends Theorist.Model */ { // Serializable.includeInto(Editor); - constructor:IDisplayBufferStatic; + constructor: IDisplayBufferStatic; - verticalScrollMargin:number; - horizontalScrollMargin:number; + verticalScrollMargin: number; + horizontalScrollMargin: number; - declaredPropertyValues:any; + declaredPropertyValues: any; tokenizedBuffer: ITokenizedBuffer; buffer: TextBuffer.ITextBuffer; - charWidthsByScope:any; - markers:{ [index:number]:IDisplayBufferMarker; }; - foldsByMarkerId:any; - maxLineLength:number; - screenLines:ITokenizedLine[]; - rowMap:any; // return type are RowMap - longestScreenRow:number; - subscriptions:Emissary.ISubscription[]; - subscriptionsByObject:any; // return type are WeakMap - behaviors:any; - subscriptionCounts:any; - eventHandlersByEventName:any; - pendingChangeEvent:any; + charWidthsByScope: any; + markers: { [index: number]: IDisplayBufferMarker; }; + foldsByMarkerId: any; + maxLineLength: number; + screenLines: ITokenizedLine[]; + rowMap: any; // return type are RowMap + longestScreenRow: number; + subscriptions: Emissary.ISubscription[]; + subscriptionsByObject: any; // return type are WeakMap + behaviors: any; + subscriptionCounts: any; + eventHandlersByEventName: any; + pendingChangeEvent: any; - softWrap:boolean; + softWrap: boolean; - serializeParams():{id:number; softWrap:boolean; editorWidthInChars: number; scrollTop: number; scrollLeft: number; tokenizedBuffer: any; }; - deserializeParams(params:any):any; - copy():IDisplayBuffer; - updateAllScreenLines():any; - emitChanged(eventProperties:any, refreshMarkers?:boolean):any; - updateWrappedScreenLines():any; - setVisible(visible:any):any; - getVerticalScrollMargin():number; - setVerticalScrollMargin(verticalScrollMargin:number):number; - getHorizontalScrollMargin():number; - setHorizontalScrollMargin(horizontalScrollMargin:number):number; - getHeight():any; - setHeight(height:any):any; - getWidth():any; - setWidth(newWidth:any):any; - getScrollTop():number; - setScrollTop(scrollTop:number):number; - getScrollBottom():number; - setScrollBottom(scrollBottom:number):number; - getScrollLeft():number; - setScrollLeft(scrollLeft:number):number; - getScrollRight():number; - setScrollRight(scrollRight:number):number; - getLineHeight():any; - setLineHeight(lineHeight:any):any; - getDefaultCharWidth():any; - setDefaultCharWidth(defaultCharWidth:any):any; - getScopedCharWidth(scopeNames:any, char:any):any; - getScopedCharWidths(scopeNames:any):any; - setScopedCharWidth(scopeNames:any, char:any, width:any):any; - setScopedCharWidths(scopeNames:any, charWidths:any):any; - clearScopedCharWidths():any; - getScrollHeight():number; - getScrollWidth():number; - getVisibleRowRange():number[]; - intersectsVisibleRowRange(startRow:any, endRow:any):any; - selectionIntersectsVisibleRowRange(selection:any):any; - scrollToScreenRange(screenRange:any):any; - scrollToScreenPosition(screenPosition:any):any; - scrollToBufferPosition(bufferPosition:any):any; - pixelRectForScreenRange(screenRange:TextBuffer.IRange):any; - getTabLength():number; - setTabLength(tabLength:number):any; - setSoftWrap(softWrap:boolean):boolean; - getSoftWrap():boolean; - setEditorWidthInChars(editorWidthInChars:number):any; - getEditorWidthInChars():number; - getSoftWrapColumn():number; - lineForRow(row:number):any; - linesForRows(startRow:number, endRow:number):any; - getLines():any[]; - indentLevelForLine(line:any):any; - bufferRowsForScreenRows(startScreenRow:any, endScreenRow:any):any; - createFold(startRow:number, endRow:number):IFold; - isFoldedAtBufferRow(bufferRow:number):boolean; - isFoldedAtScreenRow(screenRow:number):boolean; - destroyFoldWithId(id:number):any; - unfoldBufferRow(bufferRow:number):any[]; - largestFoldStartingAtBufferRow(bufferRow:number):any; - foldsStartingAtBufferRow(bufferRow:number):any; - largestFoldStartingAtScreenRow(screenRow:any):any; - largestFoldContainingBufferRow(bufferRow:any):any; - outermostFoldsInBufferRowRange(startRow:any, endRow:any):any[]; - foldsContainingBufferRow(bufferRow:any):any[]; - screenRowForBufferRow(bufferRow:number):number; - lastScreenRowForBufferRow(bufferRow:number):number; - bufferRowForScreenRow(screenRow:number):number; + serializeParams(): {id: number; softWrap: boolean; editorWidthInChars: number; scrollTop: number; scrollLeft: number; tokenizedBuffer: any; }; + deserializeParams(params: any): any; + copy(): IDisplayBuffer; + updateAllScreenLines(): any; + emitChanged(eventProperties: any, refreshMarkers?: boolean): any; + updateWrappedScreenLines(): any; + setVisible(visible: any): any; + getVerticalScrollMargin(): number; + setVerticalScrollMargin(verticalScrollMargin: number): number; + getHorizontalScrollMargin(): number; + setHorizontalScrollMargin(horizontalScrollMargin: number): number; + getHeight(): any; + setHeight(height: any): any; + getWidth(): any; + setWidth(newWidth: any): any; + getScrollTop(): number; + setScrollTop(scrollTop: number): number; + getScrollBottom(): number; + setScrollBottom(scrollBottom: number): number; + getScrollLeft(): number; + setScrollLeft(scrollLeft: number): number; + getScrollRight(): number; + setScrollRight(scrollRight: number): number; + getLineHeight(): any; + setLineHeight(lineHeight: any): any; + getDefaultCharWidth(): any; + setDefaultCharWidth(defaultCharWidth: any): any; + getScopedCharWidth(scopeNames: any, char: any): any; + getScopedCharWidths(scopeNames: any): any; + setScopedCharWidth(scopeNames: any, char: any, width: any): any; + setScopedCharWidths(scopeNames: any, charWidths: any): any; + clearScopedCharWidths(): any; + getScrollHeight(): number; + getScrollWidth(): number; + getVisibleRowRange(): number[]; + intersectsVisibleRowRange(startRow: any, endRow: any): any; + selectionIntersectsVisibleRowRange(selection: any): any; + scrollToScreenRange(screenRange: any): any; + scrollToScreenPosition(screenPosition: any): any; + scrollToBufferPosition(bufferPosition: any): any; + pixelRectForScreenRange(screenRange: TextBuffer.IRange): any; + getTabLength(): number; + setTabLength(tabLength: number): any; + setSoftWrap(softWrap: boolean): boolean; + getSoftWrap(): boolean; + setEditorWidthInChars(editorWidthInChars: number): any; + getEditorWidthInChars(): number; + getSoftWrapColumn(): number; + lineForRow(row: number): any; + linesForRows(startRow: number, endRow: number): any; + getLines(): any[]; + indentLevelForLine(line: any): any; + bufferRowsForScreenRows(startScreenRow: any, endScreenRow: any): any; + createFold(startRow: number, endRow: number): IFold; + isFoldedAtBufferRow(bufferRow: number): boolean; + isFoldedAtScreenRow(screenRow: number): boolean; + destroyFoldWithId(id: number): any; + unfoldBufferRow(bufferRow: number): any[]; + largestFoldStartingAtBufferRow(bufferRow: number): any; + foldsStartingAtBufferRow(bufferRow: number): any; + largestFoldStartingAtScreenRow(screenRow: any): any; + largestFoldContainingBufferRow(bufferRow: any): any; + outermostFoldsInBufferRowRange(startRow: any, endRow: any): any[]; + foldsContainingBufferRow(bufferRow: any): any[]; + screenRowForBufferRow(bufferRow: number): number; + lastScreenRowForBufferRow(bufferRow: number): number; + bufferRowForScreenRow(screenRow: number): number; - screenRangeForBufferRange(bufferRange:TextBuffer.IPoint[]):TextBuffer.IRange; + screenRangeForBufferRange(bufferRange: TextBuffer.IPoint[]): TextBuffer.IRange; - screenRangeForBufferRange(bufferRange:TextBuffer.IRange):TextBuffer.IRange; + screenRangeForBufferRange(bufferRange: TextBuffer.IRange): TextBuffer.IRange; - screenRangeForBufferRange(bufferRange:{start: TextBuffer.IPoint; end: TextBuffer.IPoint}):TextBuffer.IRange; - screenRangeForBufferRange(bufferRange:{start: number[]; end: TextBuffer.IPoint}):TextBuffer.IRange; - screenRangeForBufferRange(bufferRange:{start: {row:number; col:number;}; end: TextBuffer.IPoint}):TextBuffer.IRange; + screenRangeForBufferRange(bufferRange: {start: TextBuffer.IPoint; end: TextBuffer.IPoint}): TextBuffer.IRange; + screenRangeForBufferRange(bufferRange: {start: number[]; end: TextBuffer.IPoint}): TextBuffer.IRange; + screenRangeForBufferRange(bufferRange: {start: {row: number; col: number}; end: TextBuffer.IPoint}): TextBuffer.IRange; - screenRangeForBufferRange(bufferRange:{start: TextBuffer.IPoint; end: number[]}):TextBuffer.IRange; - screenRangeForBufferRange(bufferRange:{start: number[]; end: number[]}):TextBuffer.IRange; - screenRangeForBufferRange(bufferRange:{start: {row:number; col:number;}; end: number[]}):TextBuffer.IRange; + screenRangeForBufferRange(bufferRange: {start: TextBuffer.IPoint; end: number[]}): TextBuffer.IRange; + screenRangeForBufferRange(bufferRange: {start: number[]; end: number[]}): TextBuffer.IRange; + screenRangeForBufferRange(bufferRange: {start: {row: number; col: number}; end: number[]}): TextBuffer.IRange; - screenRangeForBufferRange(bufferRange:{start: TextBuffer.IPoint; end: {row:number; col:number;}}):TextBuffer.IRange; - screenRangeForBufferRange(bufferRange:{start: number[]; end: {row:number; col:number;}}):TextBuffer.IRange; - screenRangeForBufferRange(bufferRange:{start: {row:number; col:number;}; end: {row:number; col:number;}}):TextBuffer.IRange; + screenRangeForBufferRange(bufferRange: {start: TextBuffer.IPoint; end: {row: number; col: number}}): TextBuffer.IRange; + screenRangeForBufferRange(bufferRange: {start: number[]; end: {row: number; col: number}}): TextBuffer.IRange; + screenRangeForBufferRange(bufferRange: {start: {row: number; col: number}; end: {row: number; col: number}}): TextBuffer.IRange; - bufferRangeForScreenRange(screenRange:TextBuffer.IPoint[]):TextBuffer.IRange; + bufferRangeForScreenRange(screenRange: TextBuffer.IPoint[]): TextBuffer.IRange; - bufferRangeForScreenRange(screenRange:TextBuffer.IRange):TextBuffer.IRange; + bufferRangeForScreenRange(screenRange: TextBuffer.IRange): TextBuffer.IRange; - bufferRangeForScreenRange(screenRange:{start: TextBuffer.IPoint; end: TextBuffer.IPoint}):TextBuffer.IRange; - bufferRangeForScreenRange(screenRange:{start: number[]; end: TextBuffer.IPoint}):TextBuffer.IRange; - bufferRangeForScreenRange(screenRange:{start: {row:number; col:number;}; end: TextBuffer.IPoint}):TextBuffer.IRange; + bufferRangeForScreenRange(screenRange: {start: TextBuffer.IPoint; end: TextBuffer.IPoint}): TextBuffer.IRange; + bufferRangeForScreenRange(screenRange: {start: number[]; end: TextBuffer.IPoint}): TextBuffer.IRange; + bufferRangeForScreenRange(screenRange: {start: {row: number; col: number}; end: TextBuffer.IPoint}): TextBuffer.IRange; - bufferRangeForScreenRange(screenRange:{start: TextBuffer.IPoint; end: number[]}):TextBuffer.IRange; - bufferRangeForScreenRange(screenRange:{start: number[]; end: number[]}):TextBuffer.IRange; - bufferRangeForScreenRange(screenRange:{start: {row:number; col:number;}; end: number[]}):TextBuffer.IRange; + bufferRangeForScreenRange(screenRange: {start: TextBuffer.IPoint; end: number[]}): TextBuffer.IRange; + bufferRangeForScreenRange(screenRange: {start: number[]; end: number[]}): TextBuffer.IRange; + bufferRangeForScreenRange(screenRange: {start: {row: number; col: number}; end: number[]}): TextBuffer.IRange; - bufferRangeForScreenRange(screenRange:{start: TextBuffer.IPoint; end: {row:number; col:number;}}):TextBuffer.IRange; - bufferRangeForScreenRange(screenRange:{start: number[]; end: {row:number; col:number;}}):TextBuffer.IRange; - bufferRangeForScreenRange(screenRange:{start: {row:number; col:number;}; end: {row:number; col:number;}}):TextBuffer.IRange; + bufferRangeForScreenRange(screenRange: {start: TextBuffer.IPoint; end: {row: number; col: number}}): TextBuffer.IRange; + bufferRangeForScreenRange(screenRange: {start: number[]; end: {row: number; col: number}}): TextBuffer.IRange; + bufferRangeForScreenRange(screenRange: {start: {row: number; col: number}; end: {row: number; col: number}}): TextBuffer.IRange; - pixelRangeForScreenRange(screenRange:TextBuffer.IPoint[], clip?:boolean):TextBuffer.IRange; + pixelRangeForScreenRange(screenRange: TextBuffer.IPoint[], clip?: boolean): TextBuffer.IRange; - pixelRangeForScreenRange(screenRange:TextBuffer.IRange, clip?:boolean):TextBuffer.IRange; + pixelRangeForScreenRange(screenRange: TextBuffer.IRange, clip?: boolean): TextBuffer.IRange; - pixelRangeForScreenRange(screenRange:{start: TextBuffer.IPoint; end: TextBuffer.IPoint}, clip?:boolean):TextBuffer.IRange; - pixelRangeForScreenRange(screenRange:{start: number[]; end: TextBuffer.IPoint}, clip?:boolean):TextBuffer.IRange; - pixelRangeForScreenRange(screenRange:{start: {row:number; col:number;}; end: TextBuffer.IPoint}, clip?:boolean):TextBuffer.IRange; + pixelRangeForScreenRange(screenRange: {start: TextBuffer.IPoint; end: TextBuffer.IPoint}, clip?: boolean): TextBuffer.IRange; + pixelRangeForScreenRange(screenRange: {start: number[]; end: TextBuffer.IPoint}, clip?: boolean): TextBuffer.IRange; + pixelRangeForScreenRange(screenRange: {start: {row: number; col: number}; end: TextBuffer.IPoint}, clip?: boolean): TextBuffer.IRange; - pixelRangeForScreenRange(screenRange:{start: TextBuffer.IPoint; end: number[]}, clip?:boolean):TextBuffer.IRange; - pixelRangeForScreenRange(screenRange:{start: number[]; end: number[]}, clip?:boolean):TextBuffer.IRange; - pixelRangeForScreenRange(screenRange:{start: {row:number; col:number;}; end: number[]}, clip?:boolean):TextBuffer.IRange; + pixelRangeForScreenRange(screenRange: {start: TextBuffer.IPoint; end: number[]}, clip?: boolean): TextBuffer.IRange; + pixelRangeForScreenRange(screenRange: {start: number[]; end: number[]}, clip?: boolean): TextBuffer.IRange; + pixelRangeForScreenRange(screenRange: {start: {row: number; col: number}; end: number[]}, clip?: boolean): TextBuffer.IRange; - pixelRangeForScreenRange(screenRange:{start: TextBuffer.IPoint; end: {row:number; col:number;}}, clip?:boolean):TextBuffer.IRange; - pixelRangeForScreenRange(screenRange:{start: number[]; end: {row:number; col:number;}}, clip?:boolean):TextBuffer.IRange; - pixelRangeForScreenRange(screenRange:{start: {row:number; col:number;}; end: {row:number; col:number;}}, clip?:boolean):TextBuffer.IRange; + pixelRangeForScreenRange(screenRange: {start: TextBuffer.IPoint; end: {row: number; col: number}}, clip?: boolean): TextBuffer.IRange; + pixelRangeForScreenRange(screenRange: {start: number[]; end: {row: number; col: number}}, clip?: boolean): TextBuffer.IRange; + pixelRangeForScreenRange(screenRange: {start: {row: number; col: number}; end: {row: number; col: number}}, clip?: boolean): TextBuffer.IRange; - pixelPositionForScreenPosition(screenPosition:TextBuffer.IPoint, clip?:boolean):TextBuffer.IPoint; - pixelPositionForScreenPosition(screenPosition:number[], clip?:boolean):TextBuffer.IPoint; - pixelPositionForScreenPosition(screenPosition:{row:number; col:number;}, clip?:boolean):TextBuffer.IPoint; + pixelPositionForScreenPosition(screenPosition: TextBuffer.IPoint, clip?: boolean): TextBuffer.IPoint; + pixelPositionForScreenPosition(screenPosition: number[], clip?: boolean): TextBuffer.IPoint; + pixelPositionForScreenPosition(screenPosition: {row: number; col: number}, clip?: boolean): TextBuffer.IPoint; - screenPositionForPixelPosition(pixelPosition:any):TextBuffer.IPoint; + screenPositionForPixelPosition(pixelPosition: any): TextBuffer.IPoint; - pixelPositionForBufferPosition(bufferPosition:any):any; - getLineCount():number; - getLastRow():number; - getMaxLineLength():number; - screenPositionForBufferPosition(bufferPosition:any, options:any):any; - bufferPositionForScreenPosition(bufferPosition:any, options:any):any; - scopesForBufferPosition(bufferPosition:any):any; - bufferRangeForScopeAtPosition(selector:any, position:any):any; - tokenForBufferPosition(bufferPosition:any):any; - getGrammar():IGrammar; - setGrammar(grammar:IGrammar):any; - reloadGrammar():any; - clipScreenPosition(screenPosition:any, options:any):any; - findWrapColumn(line:any, softWrapColumn:any):any; - rangeForAllLines():TextBuffer.IRange; - getMarker(id:number):IDisplayBufferMarker; - getMarkers():IDisplayBufferMarker[]; - getMarkerCount():number; - markScreenRange(range:TextBuffer.IRange, ...args:any[]):IDisplayBufferMarker; - markBufferRange(range:TextBuffer.IRange, options?:any):IDisplayBufferMarker; - markScreenPosition(screenPosition:TextBuffer.IPoint, options?:any):IDisplayBufferMarker; - markBufferPosition(bufferPosition:TextBuffer.IPoint, options?:any):IDisplayBufferMarker; - destroyMarker(id:number):any; - findMarker(params?:any):IDisplayBufferMarker; - findMarkers(params?:any):IDisplayBufferMarker[]; - translateToBufferMarkerParams(params?:any):any; - findFoldMarker(attributes:any):IMarker; - findFoldMarkers(attributes:any):IMarker[]; - getFoldMarkerAttributes(attributes?:any):any; - pauseMarkerObservers():any; - resumeMarkerObservers():any; - refreshMarkerScreenPositions():any; - destroy():any; - logLines(start:number, end:number):any[]; - handleTokenizedBufferChange(tokenizedBufferChange:any):any; - updateScreenLines(startBufferRow:any, endBufferRow:any, bufferDelta?:number, options?:any):any; - buildScreenLines(startBufferRow:any, endBufferRow:any):any; - findMaxLineLength(startScreenRow:any, endScreenRow:any, newScreenLines:any):any; - handleBufferMarkersUpdated():any; - handleBufferMarkerCreated(marker:any):any; - createFoldForMarker(maker:any):IFold; - foldForMarker(marker:any):any; + pixelPositionForBufferPosition(bufferPosition: any): any; + getLineCount(): number; + getLastRow(): number; + getMaxLineLength(): number; + screenPositionForBufferPosition(bufferPosition: any, options: any): any; + bufferPositionForScreenPosition(bufferPosition: any, options: any): any; + scopesForBufferPosition(bufferPosition: any): any; + bufferRangeForScopeAtPosition(selector: any, position: any): any; + tokenForBufferPosition(bufferPosition: any): any; + getGrammar(): IGrammar; + setGrammar(grammar: IGrammar): any; + reloadGrammar(): any; + clipScreenPosition(screenPosition: any, options: any): any; + findWrapColumn(line: any, softWrapColumn: any): any; + rangeForAllLines(): TextBuffer.IRange; + getMarker(id: number): IDisplayBufferMarker; + getMarkers(): IDisplayBufferMarker[]; + getMarkerCount(): number; + markScreenRange(range: TextBuffer.IRange, ...args: any[]): IDisplayBufferMarker; + markBufferRange(range: TextBuffer.IRange, options?: any): IDisplayBufferMarker; + markScreenPosition(screenPosition: TextBuffer.IPoint, options?: any): IDisplayBufferMarker; + markBufferPosition(bufferPosition: TextBuffer.IPoint, options?: any): IDisplayBufferMarker; + destroyMarker(id: number): any; + findMarker(params?: any): IDisplayBufferMarker; + findMarkers(params?: any): IDisplayBufferMarker[]; + translateToBufferMarkerParams(params?: any): any; + findFoldMarker(attributes: any): IMarker; + findFoldMarkers(attributes: any): IMarker[]; + getFoldMarkerAttributes(attributes?: any): any; + pauseMarkerObservers(): any; + resumeMarkerObservers(): any; + refreshMarkerScreenPositions(): any; + destroy(): any; + logLines(start: number, end: number): any[]; + handleTokenizedBufferChange(tokenizedBufferChange: any): any; + updateScreenLines(startBufferRow: any, endBufferRow: any, bufferDelta?: number, options?: any): any; + buildScreenLines(startBufferRow: any, endBufferRow: any): any; + findMaxLineLength(startScreenRow: any, endScreenRow: any, newScreenLines: any): any; + handleBufferMarkersUpdated(): any; + handleBufferMarkerCreated(marker: any): any; + createFoldForMarker(maker: any): IFold; + foldForMarker(marker: any): any; } interface IViewRegistry { - getView(selector:any):any; + getView(selector: any): any; } interface ICursorStatic { - new (arg:{editor:IEditor; marker:IDisplayBufferMarker; id: number;}):ICursor; + new (arg: {editor: IEditor; marker: IDisplayBufferMarker; id: number}): ICursor; } interface ScopeDescriptor { @@ -385,70 +385,70 @@ declare namespace AtomCore { interface ICursor /* extends Theorist.Model */ { getScopeDescriptor(): ScopeDescriptor; - screenPosition:any; - bufferPosition:any; - goalColumn:any; - visible:boolean; - needsAutoscroll:boolean; + screenPosition: any; + bufferPosition: any; + goalColumn: any; + visible: boolean; + needsAutoscroll: boolean; - editor:IEditor; - marker:IDisplayBufferMarker; + editor: IEditor; + marker: IDisplayBufferMarker; id: number; - destroy():any; - changePosition(options:any, fn:Function):any; - getPixelRect():any; - setScreenPosition(screenPosition:any, options?:any):any; - getScreenPosition():TextBuffer.IPoint; - getScreenRange():TextBuffer.IRange; - setBufferPosition(bufferPosition:any, options?:any):any; - getBufferPosition():TextBuffer.IPoint; - autoscroll():any; - updateVisibility():any; - setVisible(visible:boolean):any; - isVisible():boolean; - wordRegExp(arg?:any):any; - isLastCursor():boolean; - isSurroundedByWhitespace():boolean; - isBetweenWordAndNonWord():boolean; - isInsideWord():boolean; - clearAutoscroll():void; - clearSelection():void; - getScreenRow():number; - getScreenColumn():number; - getBufferRow():number; - getBufferColumn():number; - getCurrentBufferLine():string; - moveUp(rowCount:number, arg?:any):any; - moveDown(rowCount:number, arg?:any):any; - moveLeft(arg?:any):any; - moveRight(arg?:any):any; - moveToTop():any; - moveToBottom():void; - moveToBeginningOfScreenLine():void; - moveToBeginningOfLine():void; - moveToFirstCharacterOfLine():void; - moveToEndOfScreenLine():void; - moveToEndOfLine():void; - moveToBeginningOfWord():void; - moveToEndOfWord():void; - moveToBeginningOfNextWord():void; - moveToPreviousWordBoundary():void; - moveToNextWordBoundary():void; - getBeginningOfCurrentWordBufferPosition(options?:any):TextBuffer.IPoint; - getPreviousWordBoundaryBufferPosition(options?:any):TextBuffer.IPoint; - getMoveNextWordBoundaryBufferPosition(options?:any):TextBuffer.IPoint; - getEndOfCurrentWordBufferPosition(options?:any):TextBuffer.IPoint; - getBeginningOfNextWordBufferPosition(options?:any):TextBuffer.IPoint; - getCurrentWordBufferRange(options?:any):TextBuffer.IPoint; - getCurrentLineBufferRange(options?:any):TextBuffer.IPoint; - getCurrentParagraphBufferRange():any; - getCurrentWordPrefix():string; - isAtBeginningOfLine():boolean; - getIndentLevel():number; - isAtEndOfLine():boolean; - getScopes():string[]; - hasPrecedingCharactersOnLine():boolean; + destroy(): any; + changePosition(options: any, fn: Function): any; + getPixelRect(): any; + setScreenPosition(screenPosition: any, options?: any): any; + getScreenPosition(): TextBuffer.IPoint; + getScreenRange(): TextBuffer.IRange; + setBufferPosition(bufferPosition: any, options?: any): any; + getBufferPosition(): TextBuffer.IPoint; + autoscroll(): any; + updateVisibility(): any; + setVisible(visible: boolean): any; + isVisible(): boolean; + wordRegExp(arg?: any): any; + isLastCursor(): boolean; + isSurroundedByWhitespace(): boolean; + isBetweenWordAndNonWord(): boolean; + isInsideWord(): boolean; + clearAutoscroll(): void; + clearSelection(): void; + getScreenRow(): number; + getScreenColumn(): number; + getBufferRow(): number; + getBufferColumn(): number; + getCurrentBufferLine(): string; + moveUp(rowCount: number, arg?: any): any; + moveDown(rowCount: number, arg?: any): any; + moveLeft(arg?: any): any; + moveRight(arg?: any): any; + moveToTop(): any; + moveToBottom(): void; + moveToBeginningOfScreenLine(): void; + moveToBeginningOfLine(): void; + moveToFirstCharacterOfLine(): void; + moveToEndOfScreenLine(): void; + moveToEndOfLine(): void; + moveToBeginningOfWord(): void; + moveToEndOfWord(): void; + moveToBeginningOfNextWord(): void; + moveToPreviousWordBoundary(): void; + moveToNextWordBoundary(): void; + getBeginningOfCurrentWordBufferPosition(options?: any): TextBuffer.IPoint; + getPreviousWordBoundaryBufferPosition(options?: any): TextBuffer.IPoint; + getMoveNextWordBoundaryBufferPosition(options?: any): TextBuffer.IPoint; + getEndOfCurrentWordBufferPosition(options?: any): TextBuffer.IPoint; + getBeginningOfNextWordBufferPosition(options?: any): TextBuffer.IPoint; + getCurrentWordBufferRange(options?: any): TextBuffer.IPoint; + getCurrentLineBufferRange(options?: any): TextBuffer.IPoint; + getCurrentParagraphBufferRange(): any; + getCurrentWordPrefix(): string; + isAtBeginningOfLine(): boolean; + getIndentLevel(): number; + isAtEndOfLine(): boolean; + getScopes(): string[]; + hasPrecedingCharactersOnLine(): boolean; getMarker(): Marker; } @@ -570,47 +570,47 @@ declare namespace AtomCore { } interface IDecorationStatic { - isType(decorationParams:IDecorationParams, type:any /* string or string[] */):boolean; - new (marker:IDisplayBufferMarker, displayBuffer:IDisplayBuffer, params: IDecorationParams): IDecoration; + isType(decorationParams: IDecorationParams, type: any /* string or string[] */): boolean; + new (marker: IDisplayBufferMarker, displayBuffer: IDisplayBuffer, params: IDecorationParams): IDecoration; } interface IDecoration extends Emissary.IEmitter { marker: IDisplayBufferMarker; displayBuffer: IDisplayBuffer; - params: IDecorationParams + params: IDecorationParams; id: number; flashQueue: any[]; isDestroyed: boolean; - destroy():void; - update(newParams:IDecorationParams):void; - getMarker():IDisplayBufferMarker; - getParams():IDecorationParams; - isType(type:string):boolean; - matchesPattern(decorationPattern:{[key:string]:IDecorationParams;}):boolean; - flash(klass:string, duration?:number):void; - consumeNextFlash():any; + destroy(): void; + update(newParams: IDecorationParams): void; + getMarker(): IDisplayBufferMarker; + getParams(): IDecorationParams; + isType(type: string): boolean; + matchesPattern(decorationPattern: {[key: string]: IDecorationParams}): boolean; + flash(klass: string, duration?: number): void; + consumeNextFlash(): any; } interface IEditor { // Serializable.includeInto(Editor); // Delegator.includeInto(Editor); - deserializing:boolean; - callDisplayBufferCreatedHook:boolean; - registerEditor:boolean; - buffer:TextBuffer.ITextBuffer; + deserializing: boolean; + callDisplayBufferCreatedHook: boolean; + registerEditor: boolean; + buffer: TextBuffer.ITextBuffer; languageMode: ILanguageMode; - cursors:ICursor[]; + cursors: ICursor[]; selections: ISelection[]; - suppressSelectionMerging:boolean; + suppressSelectionMerging: boolean; updateBatchDepth: number; selectionFlashDuration: number; softTabs: boolean; displayBuffer: IDisplayBuffer; - id:number; - behaviors:any; + id: number; + behaviors: any; declaredPropertyValues: any; eventHandlersByEventName: any; eventHandlersByNamespace: any; @@ -618,303 +618,303 @@ declare namespace AtomCore { subscriptionCounts: any; subscriptionsByObject: any; /* WeakMap */ subscriptions: Emissary.ISubscription[]; - destroy():void; + destroy(): void; mini: any; - serializeParams():{id:number; softTabs:boolean; scrollTop:number; scrollLeft:number; displayBuffer:any;}; - deserializeParams(params:any):any; - subscribeToBuffer():void; - subscribeToDisplayBuffer():void; - getViewClass():any; // return type are EditorView - destroyed():void; - isDestroyed():boolean; - copy():IEditor; - getTitle():string; - getLongTitle():string; - setVisible(visible:boolean):void; - setMini(mini:any):void; - setScrollTop(scrollTop:any):void; - getScrollTop():number; - setScrollLeft(scrollLeft:any):void; - getScrollLeft():number; - setEditorWidthInChars(editorWidthInChars:any):void; - getSoftWrapColumn():number; - getSoftTabs():boolean; - setSoftTabs(softTabs:boolean):void; - getSoftWrap():boolean; - setSoftWrap(softWrap:any):void; - getTabText():string; - getTabLength():number; - setTabLength(tabLength:any):void; - usesSoftTabs():boolean; - clipBufferPosition(bufferPosition:any):void; - clipBufferRange(range:any):void; - indentationForBufferRow(bufferRow:any):void; - setIndentationForBufferRow(bufferRow:any, newLevel:any, _arg:any):void; - indentLevelForLine(line:any):number; - buildIndentString(number:any):string; - save():void; - saveAs(filePath:any):void; - copyPathToClipboard():void; - getPath():string; - getText():string; - setText(text:any):void; - getTextInRange(range:any):any; - getLineCount():number; - getBuffer():TextBuffer.ITextBuffer; - getURI():string; - isBufferRowBlank(bufferRow:any):boolean; - isBufferRowCommented(bufferRow:any):void; - nextNonBlankBufferRow(bufferRow:any):void; - getEofBufferPosition():TextBuffer.IPoint; - getLastBufferRow():number; - bufferRangeForBufferRow(row:any, options:any):TextBuffer.IRange; - lineForBufferRow(row:number):string; - lineLengthForBufferRow(row:number):number; - scan():any; - scanInBufferRange():any; - backwardsScanInBufferRange():any; - isModified():boolean; - isEmpty():boolean; - shouldPromptToSave():boolean; - screenPositionForBufferPosition(bufferPosition:any, options?:any):TextBuffer.IPoint; - bufferPositionForScreenPosition(screenPosition:any, options?:any):TextBuffer.IPoint; - screenRangeForBufferRange(bufferRange:any):TextBuffer.IRange; - bufferRangeForScreenRange(screenRange:any):TextBuffer.IRange; - clipScreenPosition(screenPosition:any, options:any):TextBuffer.IRange; - lineForScreenRow(row:any):ITokenizedLine; - linesForScreenRows(start?:any, end?:any):ITokenizedLine[]; - getScreenLineCount():number; - getMaxScreenLineLength():number; - getLastScreenRow():number; - bufferRowsForScreenRows(startRow:any, endRow:any):any[]; - bufferRowForScreenRow(row:any):number; - scopesForBufferPosition(bufferPosition:any):string[]; - bufferRangeForScopeAtCursor(selector:string):any; - tokenForBufferPosition(bufferPosition:any):IToken; - getCursorScopes():string[]; - logCursorScope():void; - insertText(text:string, options?:any):TextBuffer.IRange[]; - insertNewline():TextBuffer.IRange[]; - insertNewlineBelow():TextBuffer.IRange[]; - insertNewlineAbove():any; - indent(options?:any):any; - backspace():any[]; - // deprecated backspaceToBeginningOfWord():any[]; - // deprecated backspaceToBeginningOfLine():any[]; - deleteToBeginningOfWord():any[]; - deleteToBeginningOfLine():any[]; - delete():any[]; - deleteToEndOfLine():any[]; - deleteToEndOfWord():any[]; - deleteLine():TextBuffer.IRange[]; - indentSelectedRows():TextBuffer.IRange[][]; - outdentSelectedRows():TextBuffer.IRange[][]; - toggleLineCommentsInSelection():TextBuffer.IRange[]; - autoIndentSelectedRows():TextBuffer.IRange[][]; - normalizeTabsInBufferRange(bufferRange:any):any; - cutToEndOfLine():boolean[]; - cutSelectedText():boolean[]; - copySelectedText():boolean[]; - pasteText(options?:any):TextBuffer.IRange[]; - undo():any[]; - redo():any[]; - foldCurrentRow():any; - unfoldCurrentRow():any[]; - foldSelectedLines():any[]; - foldAll():any[]; - unfoldAll():any[]; - foldAllAtIndentLevel(level:any):any; - foldBufferRow(bufferRow:any):any; - unfoldBufferRow(bufferRow:any):any; - isFoldableAtBufferRow(bufferRow:any):boolean; - isFoldableAtScreenRow(screenRow:any):boolean; - createFold(startRow:any, endRow:any):IFold; - destroyFoldWithId(id:any):any; - destroyFoldsIntersectingBufferRange(bufferRange:any):any; - toggleFoldAtBufferRow(bufferRow:any):any; - isFoldedAtCursorRow():boolean; - isFoldedAtBufferRow(bufferRow:any):boolean; - isFoldedAtScreenRow(screenRow:any):boolean; - largestFoldContainingBufferRow(bufferRow:any):boolean; - largestFoldStartingAtScreenRow(screenRow:any):any; - outermostFoldsInBufferRowRange(startRow:any, endRow:any):any[]; - moveLineUp():ISelection[]; - moveLineDown():ISelection[]; - duplicateLines():any[][]; - // duprecated duplicateLine():any[][]; - mutateSelectedText(fn:(selection:ISelection)=>any):any; - replaceSelectedText(options:any, fn:(selection:string)=>any):any; - decorationsForScreenRowRange(startScreenRow:any, endScreenRow:any):{[id:number]: IDecoration[]}; - decorateMarker(marker:IDisplayBufferMarker, decorationParams: {type:string; class: string;}):IDecoration; - decorationForId(id:number):IDecoration; - getMarker(id:number):IDisplayBufferMarker; - getMarkers():IDisplayBufferMarker[]; - findMarkers(...args:any[]):IDisplayBufferMarker[]; - markScreenRange(...args:any[]):IDisplayBufferMarker; - markBufferRange(...args:any[]):IDisplayBufferMarker; - markScreenPosition(...args:any[]):IDisplayBufferMarker; - markBufferPosition(...args:any[]):IDisplayBufferMarker; - destroyMarker(...args:any[]):boolean; - getMarkerCount():number; - hasMultipleCursors():boolean; - getCursors():ICursor[]; - getCursor():ICursor; - addCursorAtScreenPosition(screenPosition:any):ICursor; - addCursorAtBufferPosition(bufferPosition:any):ICursor; - addCursor(marker:any):ICursor; - removeCursor(cursor:any):ICursor[]; - addSelection(marker:any, options:any):ISelection; - addSelectionForBufferRange(bufferRange:any, options:any):ISelection; - setSelectedBufferRange(bufferRange:any, options:any):any; - setSelectedBufferRanges(bufferRanges:any, options:any):any; - removeSelection(selection:ISelection):any; - clearSelections():boolean; - consolidateSelections():boolean; - selectionScreenRangeChanged(selection:any):void; - getSelections():ISelection[]; - getSelection(index?:number):ISelection; - getLastSelection():ISelection; - getSelectionsOrderedByBufferPosition():ISelection[]; - getLastSelectionInBuffer():ISelection; - selectionIntersectsBufferRange(bufferRange:any):any; - setCursorScreenPosition(position:TextBuffer.IPoint, options?:any):any; - getCursorScreenPosition():TextBuffer.IPoint; - getCursorScreenRow():number; - setCursorBufferPosition(position:any, options?:any):any; - getCursorBufferPosition():TextBuffer.IPoint; - getSelectedScreenRange():TextBuffer.IRange; - getSelectedBufferRange():TextBuffer.IRange; - getSelectedBufferRanges():TextBuffer.IRange[]; - getSelectedText():string; - getTextInBufferRange(range:TextBuffer.IRange):string; - setTextInBufferRange(range:TextBuffer.IRange | any[], text:string):any; - getCurrentParagraphBufferRange():TextBuffer.IRange; - getWordUnderCursor(options?:any):string; - moveCursorUp(lineCount?:number):void; - moveCursorDown(lineCount?:number):void; - moveCursorLeft():void; - moveCursorRight():void; - moveCursorToTop():void; - moveCursorToBottom():void; - moveCursorToBeginningOfScreenLine():void; - moveCursorToBeginningOfLine():void; - moveCursorToFirstCharacterOfLine():void; - moveCursorToEndOfScreenLine():void; - moveCursorToEndOfLine():void; - moveCursorToBeginningOfWord():void; - moveCursorToEndOfWord():void; - moveCursorToBeginningOfNextWord():void; - moveCursorToPreviousWordBoundary():void; - moveCursorToNextWordBoundary():void; - moveCursorToBeginningOfNextParagraph():void; - moveCursorToBeginningOfPreviousParagraph():void; - moveToBottom():void; - scrollToCursorPosition(options:any):any; - pageUp():void; - pageDown():void; - selectPageUp():void; - selectPageDown():void; - getRowsPerPage():number; - moveCursors(fn:(cursor:ICursor)=>any):any; - cursorMoved(event:any):void; - selectToScreenPosition(position:TextBuffer.IPoint):any; - selectRight():ISelection[]; - selectLeft():ISelection[]; - selectUp(rowCount?:number):ISelection[]; - selectDown(rowCount?:number):ISelection[]; - selectToTop():ISelection[]; - selectAll():ISelection[]; - selectToBottom():ISelection[]; - selectToBeginningOfLine():ISelection[]; - selectToFirstCharacterOfLine():ISelection[]; - selectToEndOfLine():ISelection[]; - selectToPreviousWordBoundary():ISelection[]; - selectToNextWordBoundary():ISelection[]; - selectLine():ISelection[]; - selectLinesContainingCursors():ISelection[]; - addSelectionBelow():ISelection[]; - addSelectionAbove():ISelection[]; - splitSelectionsIntoLines():any[]; - transpose():TextBuffer.IRange[]; - upperCase():boolean[]; - lowerCase():boolean[]; - joinLines():any[]; - selectToBeginningOfWord():ISelection[]; - selectToEndOfWord():ISelection[]; - selectToBeginningOfNextWord():ISelection[]; - selectWord():ISelection[]; - selectToBeginningOfNextParagraph():ISelection[]; - selectToBeginningOfPreviousParagraph():ISelection[]; - selectMarker(marker:any):any; - mergeCursors():number[]; - expandSelectionsForward():any; - expandSelectionsBackward(fn:(selection:ISelection)=>any):ISelection[]; - finalizeSelections():boolean[]; - mergeIntersectingSelections():any; - preserveCursorPositionOnBufferReload():Emissary.ISubscription; + serializeParams(): {id: number; softTabs: boolean; scrollTop: number; scrollLeft: number; displayBuffer: any}; + deserializeParams(params: any): any; + subscribeToBuffer(): void; + subscribeToDisplayBuffer(): void; + getViewClass(): any; // return type are EditorView + destroyed(): void; + isDestroyed(): boolean; + copy(): IEditor; + getTitle(): string; + getLongTitle(): string; + setVisible(visible: boolean): void; + setMini(mini: any): void; + setScrollTop(scrollTop: any): void; + getScrollTop(): number; + setScrollLeft(scrollLeft: any): void; + getScrollLeft(): number; + setEditorWidthInChars(editorWidthInChars: any): void; + getSoftWrapColumn(): number; + getSoftTabs(): boolean; + setSoftTabs(softTabs: boolean): void; + getSoftWrap(): boolean; + setSoftWrap(softWrap: any): void; + getTabText(): string; + getTabLength(): number; + setTabLength(tabLength: any): void; + usesSoftTabs(): boolean; + clipBufferPosition(bufferPosition: any): void; + clipBufferRange(range: any): void; + indentationForBufferRow(bufferRow: any): void; + setIndentationForBufferRow(bufferRow: any, newLevel: any, _arg: any): void; + indentLevelForLine(line: any): number; + buildIndentString(number: any): string; + save(): void; + saveAs(filePath: any): void; + copyPathToClipboard(): void; + getPath(): string; + getText(): string; + setText(text: any): void; + getTextInRange(range: any): any; + getLineCount(): number; + getBuffer(): TextBuffer.ITextBuffer; + getURI(): string; + isBufferRowBlank(bufferRow: any): boolean; + isBufferRowCommented(bufferRow: any): void; + nextNonBlankBufferRow(bufferRow: any): void; + getEofBufferPosition(): TextBuffer.IPoint; + getLastBufferRow(): number; + bufferRangeForBufferRow(row: any, options: any): TextBuffer.IRange; + lineForBufferRow(row: number): string; + lineLengthForBufferRow(row: number): number; + scan(): any; + scanInBufferRange(): any; + backwardsScanInBufferRange(): any; + isModified(): boolean; + isEmpty(): boolean; + shouldPromptToSave(): boolean; + screenPositionForBufferPosition(bufferPosition: any, options?: any): TextBuffer.IPoint; + bufferPositionForScreenPosition(screenPosition: any, options?: any): TextBuffer.IPoint; + screenRangeForBufferRange(bufferRange: any): TextBuffer.IRange; + bufferRangeForScreenRange(screenRange: any): TextBuffer.IRange; + clipScreenPosition(screenPosition: any, options: any): TextBuffer.IRange; + lineForScreenRow(row: any): ITokenizedLine; + linesForScreenRows(start?: any, end?: any): ITokenizedLine[]; + getScreenLineCount(): number; + getMaxScreenLineLength(): number; + getLastScreenRow(): number; + bufferRowsForScreenRows(startRow: any, endRow: any): any[]; + bufferRowForScreenRow(row: any): number; + scopesForBufferPosition(bufferPosition: any): string[]; + bufferRangeForScopeAtCursor(selector: string): any; + tokenForBufferPosition(bufferPosition: any): IToken; + getCursorScopes(): string[]; + logCursorScope(): void; + insertText(text: string, options?: any): TextBuffer.IRange[]; + insertNewline(): TextBuffer.IRange[]; + insertNewlineBelow(): TextBuffer.IRange[]; + insertNewlineAbove(): any; + indent(options?: any): any; + backspace(): any[]; + // deprecated backspaceToBeginningOfWord(): any[]; + // deprecated backspaceToBeginningOfLine(): any[]; + deleteToBeginningOfWord(): any[]; + deleteToBeginningOfLine(): any[]; + delete(): any[]; + deleteToEndOfLine(): any[]; + deleteToEndOfWord(): any[]; + deleteLine(): TextBuffer.IRange[]; + indentSelectedRows(): TextBuffer.IRange[][]; + outdentSelectedRows(): TextBuffer.IRange[][]; + toggleLineCommentsInSelection(): TextBuffer.IRange[]; + autoIndentSelectedRows(): TextBuffer.IRange[][]; + normalizeTabsInBufferRange(bufferRange: any): any; + cutToEndOfLine(): boolean[]; + cutSelectedText(): boolean[]; + copySelectedText(): boolean[]; + pasteText(options?: any): TextBuffer.IRange[]; + undo(): any[]; + redo(): any[]; + foldCurrentRow(): any; + unfoldCurrentRow(): any[]; + foldSelectedLines(): any[]; + foldAll(): any[]; + unfoldAll(): any[]; + foldAllAtIndentLevel(level: any): any; + foldBufferRow(bufferRow: any): any; + unfoldBufferRow(bufferRow: any): any; + isFoldableAtBufferRow(bufferRow: any): boolean; + isFoldableAtScreenRow(screenRow: any): boolean; + createFold(startRow: any, endRow: any): IFold; + destroyFoldWithId(id: any): any; + destroyFoldsIntersectingBufferRange(bufferRange: any): any; + toggleFoldAtBufferRow(bufferRow: any): any; + isFoldedAtCursorRow(): boolean; + isFoldedAtBufferRow(bufferRow: any): boolean; + isFoldedAtScreenRow(screenRow: any): boolean; + largestFoldContainingBufferRow(bufferRow: any): boolean; + largestFoldStartingAtScreenRow(screenRow: any): any; + outermostFoldsInBufferRowRange(startRow: any, endRow: any): any[]; + moveLineUp(): ISelection[]; + moveLineDown(): ISelection[]; + duplicateLines(): any[][]; + // duprecated duplicateLine(): any[][]; + mutateSelectedText(fn: (selection: ISelection) => any): any; + replaceSelectedText(options: any, fn: (selection: string) => any): any; + decorationsForScreenRowRange(startScreenRow: any, endScreenRow: any): {[id: number]: IDecoration[]}; + decorateMarker(marker: IDisplayBufferMarker, decorationParams: {type: string; class: string}): IDecoration; + decorationForId(id: number): IDecoration; + getMarker(id: number): IDisplayBufferMarker; + getMarkers(): IDisplayBufferMarker[]; + findMarkers(...args: any[]): IDisplayBufferMarker[]; + markScreenRange(...args: any[]): IDisplayBufferMarker; + markBufferRange(...args: any[]): IDisplayBufferMarker; + markScreenPosition(...args: any[]): IDisplayBufferMarker; + markBufferPosition(...args: any[]): IDisplayBufferMarker; + destroyMarker(...args: any[]): boolean; + getMarkerCount(): number; + hasMultipleCursors(): boolean; + getCursors(): ICursor[]; + getCursor(): ICursor; + addCursorAtScreenPosition(screenPosition: any): ICursor; + addCursorAtBufferPosition(bufferPosition: any): ICursor; + addCursor(marker: any): ICursor; + removeCursor(cursor: any): ICursor[]; + addSelection(marker: any, options: any): ISelection; + addSelectionForBufferRange(bufferRange: any, options: any): ISelection; + setSelectedBufferRange(bufferRange: any, options: any): any; + setSelectedBufferRanges(bufferRanges: any, options: any): any; + removeSelection(selection: ISelection): any; + clearSelections(): boolean; + consolidateSelections(): boolean; + selectionScreenRangeChanged(selection: any): void; + getSelections(): ISelection[]; + getSelection(index?: number): ISelection; + getLastSelection(): ISelection; + getSelectionsOrderedByBufferPosition(): ISelection[]; + getLastSelectionInBuffer(): ISelection; + selectionIntersectsBufferRange(bufferRange: any): any; + setCursorScreenPosition(position: TextBuffer.IPoint, options?: any): any; + getCursorScreenPosition(): TextBuffer.IPoint; + getCursorScreenRow(): number; + setCursorBufferPosition(position: any, options?: any): any; + getCursorBufferPosition(): TextBuffer.IPoint; + getSelectedScreenRange(): TextBuffer.IRange; + getSelectedBufferRange(): TextBuffer.IRange; + getSelectedBufferRanges(): TextBuffer.IRange[]; + getSelectedText(): string; + getTextInBufferRange(range: TextBuffer.IRange): string; + setTextInBufferRange(range: TextBuffer.IRange | any[], text: string): any; + getCurrentParagraphBufferRange(): TextBuffer.IRange; + getWordUnderCursor(options?: any): string; + moveCursorUp(lineCount?: number): void; + moveCursorDown(lineCount?: number): void; + moveCursorLeft(): void; + moveCursorRight(): void; + moveCursorToTop(): void; + moveCursorToBottom(): void; + moveCursorToBeginningOfScreenLine(): void; + moveCursorToBeginningOfLine(): void; + moveCursorToFirstCharacterOfLine(): void; + moveCursorToEndOfScreenLine(): void; + moveCursorToEndOfLine(): void; + moveCursorToBeginningOfWord(): void; + moveCursorToEndOfWord(): void; + moveCursorToBeginningOfNextWord(): void; + moveCursorToPreviousWordBoundary(): void; + moveCursorToNextWordBoundary(): void; + moveCursorToBeginningOfNextParagraph(): void; + moveCursorToBeginningOfPreviousParagraph(): void; + moveToBottom(): void; + scrollToCursorPosition(options: any): any; + pageUp(): void; + pageDown(): void; + selectPageUp(): void; + selectPageDown(): void; + getRowsPerPage(): number; + moveCursors(fn: (cursor: ICursor) => any): any; + cursorMoved(event: any): void; + selectToScreenPosition(position: TextBuffer.IPoint): any; + selectRight(): ISelection[]; + selectLeft(): ISelection[]; + selectUp(rowCount?: number): ISelection[]; + selectDown(rowCount?: number): ISelection[]; + selectToTop(): ISelection[]; + selectAll(): ISelection[]; + selectToBottom(): ISelection[]; + selectToBeginningOfLine(): ISelection[]; + selectToFirstCharacterOfLine(): ISelection[]; + selectToEndOfLine(): ISelection[]; + selectToPreviousWordBoundary(): ISelection[]; + selectToNextWordBoundary(): ISelection[]; + selectLine(): ISelection[]; + selectLinesContainingCursors(): ISelection[]; + addSelectionBelow(): ISelection[]; + addSelectionAbove(): ISelection[]; + splitSelectionsIntoLines(): any[]; + transpose(): TextBuffer.IRange[]; + upperCase(): boolean[]; + lowerCase(): boolean[]; + joinLines(): any[]; + selectToBeginningOfWord(): ISelection[]; + selectToEndOfWord(): ISelection[]; + selectToBeginningOfNextWord(): ISelection[]; + selectWord(): ISelection[]; + selectToBeginningOfNextParagraph(): ISelection[]; + selectToBeginningOfPreviousParagraph(): ISelection[]; + selectMarker(marker: any): any; + mergeCursors(): number[]; + expandSelectionsForward(): any; + expandSelectionsBackward(fn: (selection: ISelection) => any): ISelection[]; + finalizeSelections(): boolean[]; + mergeIntersectingSelections(): any; + preserveCursorPositionOnBufferReload(): Emissary.ISubscription; getGrammar(): IGrammar; - setGrammar(grammer:IGrammar):void; - reloadGrammar():any; - shouldAutoIndent():boolean; - shouldShowInvisibles():boolean; - updateInvisibles():void; - transact(fn:Function):any; - beginTransaction():ITransaction; - commitTransaction():any; - abortTransaction():any[]; - inspect():string; - logScreenLines(start:number, end:number):any[]; - handleTokenization():void; - handleGrammarChange():void; - handleMarkerCreated(marker:any):any; - getSelectionMarkerAttributes():{type: string; editorId: number; invalidate: string; }; - getVerticalScrollMargin():number; - setVerticalScrollMargin(verticalScrollMargin:number):void; - getHorizontalScrollMargin():number; - setHorizontalScrollMargin(horizontalScrollMargin:number):void; - getLineHeightInPixels():number; - setLineHeightInPixels(lineHeightInPixels:number):void; - batchCharacterMeasurement(fn:Function):void; - getScopedCharWidth(scopeNames:any, char:any):any; - setScopedCharWidth(scopeNames:any, char:any, width:any):any; - getScopedCharWidths(scopeNames:any):any; - clearScopedCharWidths():any; - getDefaultCharWidth():number; - setDefaultCharWidth(defaultCharWidth:number):void; - setHeight(height:number):void; - getHeight():number; - getClientHeight():number; - setWidth(width:number):void; - getWidth():number; - getScrollTop():number; - setScrollTop(scrollTop:number):void; - getScrollBottom():number; - setScrollBottom(scrollBottom:number):void; - getScrollLeft():number; - setScrollLeft(scrollLeft:number):void; - getScrollRight():number; - setScrollRight(scrollRight:number):void; - getScrollHeight():number; - getScrollWidth():number; - getVisibleRowRange():number; - intersectsVisibleRowRange(startRow:any, endRow:any):any; - selectionIntersectsVisibleRowRange(selection:any):any; - pixelPositionForScreenPosition(screenPosition:any):any; - pixelPositionForBufferPosition(bufferPosition:any):any; - screenPositionForPixelPosition(pixelPosition:any):any; - pixelRectForScreenRange(screenRange:any):any; - scrollToScreenRange(screenRange:any, options:any):any; - scrollToScreenPosition(screenPosition:any, options:any):any; - scrollToBufferPosition(bufferPosition:any, options:any):any; - horizontallyScrollable():any; - verticallyScrollable():any; - getHorizontalScrollbarHeight():any; - setHorizontalScrollbarHeight(height:any):any; - getVerticalScrollbarWidth():any; - setVerticalScrollbarWidth(width:any):any; - // deprecated joinLine():any; + setGrammar(grammer: IGrammar): void; + reloadGrammar(): any; + shouldAutoIndent(): boolean; + shouldShowInvisibles(): boolean; + updateInvisibles(): void; + transact(fn: Function): any; + beginTransaction(): ITransaction; + commitTransaction(): any; + abortTransaction(): any[]; + inspect(): string; + logScreenLines(start: number, end: number): any[]; + handleTokenization(): void; + handleGrammarChange(): void; + handleMarkerCreated(marker: any): any; + getSelectionMarkerAttributes(): {type: string; editorId: number; invalidate: string}; + getVerticalScrollMargin(): number; + setVerticalScrollMargin(verticalScrollMargin: number): void; + getHorizontalScrollMargin(): number; + setHorizontalScrollMargin(horizontalScrollMargin: number): void; + getLineHeightInPixels(): number; + setLineHeightInPixels(lineHeightInPixels: number): void; + batchCharacterMeasurement(fn: Function): void; + getScopedCharWidth(scopeNames: any, char: any): any; + setScopedCharWidth(scopeNames: any, char: any, width: any): any; + getScopedCharWidths(scopeNames: any): any; + clearScopedCharWidths(): any; + getDefaultCharWidth(): number; + setDefaultCharWidth(defaultCharWidth: number): void; + setHeight(height: number): void; + getHeight(): number; + getClientHeight(): number; + setWidth(width: number): void; + getWidth(): number; + getScrollTop(): number; + setScrollTop(scrollTop: number): void; + getScrollBottom(): number; + setScrollBottom(scrollBottom: number): void; + getScrollLeft(): number; + setScrollLeft(scrollLeft: number): void; + getScrollRight(): number; + setScrollRight(scrollRight: number): void; + getScrollHeight(): number; + getScrollWidth(): number; + getVisibleRowRange(): number; + intersectsVisibleRowRange(startRow: any, endRow: any): any; + selectionIntersectsVisibleRowRange(selection: any): any; + pixelPositionForScreenPosition(screenPosition: any): any; + pixelPositionForBufferPosition(bufferPosition: any): any; + screenPositionForPixelPosition(pixelPosition: any): any; + pixelRectForScreenRange(screenRange: any): any; + scrollToScreenRange(screenRange: any, options: any): any; + scrollToScreenPosition(screenPosition: any, options: any): any; + scrollToBufferPosition(bufferPosition: any, options: any): any; + horizontallyScrollable(): any; + verticallyScrollable(): any; + getHorizontalScrollbarHeight(): any; + setHorizontalScrollbarHeight(height: any): any; + getVerticalScrollbarWidth(): any; + setVerticalScrollbarWidth(width: any): any; + // deprecated joinLine(): any; onDidChange(callback: Function): Disposable; onDidDestroy(callback: Function): Disposable; @@ -956,64 +956,64 @@ declare namespace AtomCore { } interface IPane /* extends Theorist.Model */ { - itemForURI: (uri:string)=>IEditor; - items:any[]; - activeItem:any; + itemForURI: (uri: string) => IEditor; + items: any[]; + activeItem: any; - serializeParams():any; - deserializeParams(params:any):any; - getViewClass():any; // return type are PaneView - isActive():boolean; - isDestroyed():boolean; - focus():void; - blur():void; - activate():void; - getPanes():IPane[]; - getItems():any[]; - getActiveItem():any; - getActiveEditor():any; - itemAtIndex(index:number):any; - activateNextItem():any; - activatePreviousItem():any; - getActiveItemIndex():number; - activateItemAtIndex(index:number):any; - activateItem(item:any):any; - addItem(item:any, index:number):any; - addItems(items:any[], index:number):any[]; - removeItem(item:any, destroying:any):void; - moveItem(item:any, newIndex:number):void; - moveItemToPane(item:any, pane:IPane, index:number):void; - destroyActiveItem():boolean; // always return false - destroyItem(item:any):boolean; - destroyItems():any[]; - destroyInactiveItems():any[]; - destroy():void; - destroyed():any[]; - promptToSaveItem(item:any):boolean; - saveActiveItem():void; - saveActiveItemAs():void; - saveItem(item:any, nextAction:Function):void; - saveItemAs(item:any, nextAction:Function):void; - saveItems():any[]; - activateItemForURI(uri:any):any; - copyActiveItem():void; - splitLeft(params:any):IPane; - splitRight(params:any):IPane; - splitUp(params:any):IPane; - splitDown(params:any):IPane; - split(orientation:string, side:string, params:any):IPane; - findLeftmostSibling():IPane; - findOrCreateRightmostSibling():IPane; + serializeParams(): any; + deserializeParams(params: any): any; + getViewClass(): any; // return type are PaneView + isActive(): boolean; + isDestroyed(): boolean; + focus(): void; + blur(): void; + activate(): void; + getPanes(): IPane[]; + getItems(): any[]; + getActiveItem(): any; + getActiveEditor(): any; + itemAtIndex(index: number): any; + activateNextItem(): any; + activatePreviousItem(): any; + getActiveItemIndex(): number; + activateItemAtIndex(index: number): any; + activateItem(item: any): any; + addItem(item: any, index: number): any; + addItems(items: any[], index: number): any[]; + removeItem(item: any, destroying: any): void; + moveItem(item: any, newIndex: number): void; + moveItemToPane(item: any, pane: IPane, index: number): void; + destroyActiveItem(): boolean; // always return false + destroyItem(item: any): boolean; + destroyItems(): any[]; + destroyInactiveItems(): any[]; + destroy(): void; + destroyed(): any[]; + promptToSaveItem(item: any): boolean; + saveActiveItem(): void; + saveActiveItemAs(): void; + saveItem(item: any, nextAction: Function): void; + saveItemAs(item: any, nextAction: Function): void; + saveItems(): any[]; + activateItemForURI(uri: any): any; + copyActiveItem(): void; + splitLeft(params: any): IPane; + splitRight(params: any): IPane; + splitUp(params: any): IPane; + splitDown(params: any): IPane; + split(orientation: string, side: string, params: any): IPane; + findLeftmostSibling(): IPane; + findOrCreateRightmostSibling(): IPane; } // https://atom.io/docs/v0.84.0/advanced/serialization interface ISerializationStatic { - deserialize(data:ISerializationInfo):T; - new (data:T): ISerialization; + deserialize(data: ISerializationInfo): T; + new (data: T): ISerialization; } interface ISerialization { - serialize():ISerializationInfo; + serialize(): ISerializationInfo; } interface ISerializationInfo { @@ -1021,124 +1021,124 @@ declare namespace AtomCore { } interface IBrowserWindow { - getPosition():number[]; - getSize():number[]; + getPosition(): number[]; + getSize(): number[]; } interface IAtomWindowDimentions { - x:number; - y:number; - width:number; - height:number; + x: number; + y: number; + width: number; + height: number; } interface IProjectStatic { - pathForRepositoryUrl(repoUrl:string):string; + pathForRepositoryUrl(repoUrl: string): string; - new (arg?:{path:any; buffers:any[];}):IProject; + new (arg?: {path: any; buffers: any[]}): IProject; } interface IProject /* extends Theorist.Model */ { // Serializable.includeInto(Project); - path:string; + path: string; /** deprecated */ - rootDirectory?:PathWatcher.IDirectory; - rootDirectories:PathWatcher.IDirectory[]; + rootDirectory?: PathWatcher.IDirectory; + rootDirectories: PathWatcher.IDirectory[]; - serializeParams():any; - deserializeParams(params:any):any; - destroyed():any; - destroyRepo():any; - destroyUnretainedBuffers():any; - getRepo():IGit; - getPath():string; - setPath(projectPath:string):any; - getRootDirectory():PathWatcher.IDirectory; - resolve(uri:string):string; - relativize(fullPath:string):string; - contains(pathToCheck:string):boolean; - open(filePath:string, options?:any):Q.Promise; - openSync(filePath:string, options?:any):IEditor; - getBuffers():TextBuffer.ITextBuffer; - isPathModified(filePath:string):boolean; - findBufferForPath(filePath:string):TextBuffer.ITextBuffer; - bufferForPathSync(filePath:string):TextBuffer.ITextBuffer; - bufferForPath(filePath:string):Q.Promise; - bufferForId(id:any):TextBuffer.ITextBuffer; - buildBufferSync(absoluteFilePath:string):TextBuffer.ITextBuffer; - buildBuffer(absoluteFilePath:string):Q.Promise; - addBuffer(buffer:TextBuffer.ITextBuffer, options?:any):any; - addBufferAtIndex(buffer:TextBuffer.ITextBuffer, index:number, options?:any):any; - scan(regex:any, options:any, iterator:any):Q.Promise; - replace(regex:any, replacementText:any, filePaths:any, iterator:any):Q.Promise; - buildEditorForBuffer(buffer:any, editorOptions:any):IEditor; - eachBuffer(...args:any[]):any; + serializeParams(): any; + deserializeParams(params: any): any; + destroyed(): any; + destroyRepo(): any; + destroyUnretainedBuffers(): any; + getRepo(): IGit; + getPath(): string; + setPath(projectPath: string): any; + getRootDirectory(): PathWatcher.IDirectory; + resolve(uri: string): string; + relativize(fullPath: string): string; + contains(pathToCheck: string): boolean; + open(filePath: string, options?: any): Q.Promise; + openSync(filePath: string, options?: any): IEditor; + getBuffers(): TextBuffer.ITextBuffer; + isPathModified(filePath: string): boolean; + findBufferForPath(filePath: string): TextBuffer.ITextBuffer; + bufferForPathSync(filePath: string): TextBuffer.ITextBuffer; + bufferForPath(filePath: string): Q.Promise; + bufferForId(id: any): TextBuffer.ITextBuffer; + buildBufferSync(absoluteFilePath: string): TextBuffer.ITextBuffer; + buildBuffer(absoluteFilePath: string): Q.Promise; + addBuffer(buffer: TextBuffer.ITextBuffer, options?: any): any; + addBufferAtIndex(buffer: TextBuffer.ITextBuffer, index: number, options?: any): any; + scan(regex: any, options: any, iterator: any): Q.Promise; + replace(regex: any, replacementText: any, filePaths: any, iterator: any): Q.Promise; + buildEditorForBuffer(buffer: any, editorOptions: any): IEditor; + eachBuffer(...args: any[]): any; onDidChangePaths(callback: Function): Disposable; } interface IWorkspaceStatic { - new():IWorkspace; + new(): IWorkspace; } - interface IWorkspacePanelOptions{ - item:any; - visible?:boolean; - priority?:number; + interface IWorkspacePanelOptions { + item: any; + visible?: boolean; + priority?: number; } - interface Panel{ - getItem():any; - getPriority():any; - isVisible():boolean; - show():void; - hide():void; + interface Panel { + getItem(): any; + getPriority(): any; + isVisible(): boolean; + show(): void; + hide(): void; } interface IWorkspace { - addBottomPanel(options:IWorkspacePanelOptions):Panel; - addLeftPanel(options:IWorkspacePanelOptions):Panel; - addRightPanel(options:IWorkspacePanelOptions):Panel; - addTopPanel(options:IWorkspacePanelOptions):Panel; - addModalPanel(options:IWorkspacePanelOptions):Panel; + addBottomPanel(options: IWorkspacePanelOptions): Panel; + addLeftPanel(options: IWorkspacePanelOptions): Panel; + addRightPanel(options: IWorkspacePanelOptions): Panel; + addTopPanel(options: IWorkspacePanelOptions): Panel; + addModalPanel(options: IWorkspacePanelOptions): Panel; addOpener(opener: Function): any; - deserializeParams(params:any):any; - serializeParams():{paneContainer:any;fullScreen:boolean;}; + deserializeParams(params: any): any; + serializeParams(): {paneContainer: any; fullScreen: boolean}; eachEditor(callback: Function): void; - getTextEditors():IEditor[]; - open(uri:string, options:any):Q.Promise; - openLicense():void; - openSync(uri:string, options:any):any; + getTextEditors(): IEditor[]; + open(uri: string, options: any): Q.Promise; + openLicense(): void; + openSync(uri: string, options: any): any; openUriInPane(uri: string, pane: any, options: any): Q.Promise; observeTextEditors(callback: Function): Disposable; - reopenItemSync():any; - registerOpener(opener:(urlToOpen:string)=>any):void; - unregisterOpener(opener:Function):void; - getOpeners():any; + reopenItemSync(): any; + registerOpener(opener: (urlToOpen: string) => any): void; + unregisterOpener(opener: Function): void; + getOpeners(): any; getActivePane(): IPane; getActivePaneItem(): IPane; getActiveTextEditor(): IEditor; - getPanes():any; - saveAll():void; - activateNextPane():any; - activatePreviousPane():any; - paneForURI: (uri:string) => IPane; - saveActivePaneItem():any; - saveActivePaneItemAs():any; - destroyActivePaneItem():any; - destroyActivePane():any; - getActiveEditor():IEditor; - increaseFontSize():void; - decreaseFontSize():void; - resetFontSize():void; - itemOpened(item:any):void; - onPaneItemDestroyed(item:any):void; - destroyed():void; + getPanes(): any; + saveAll(): void; + activateNextPane(): any; + activatePreviousPane(): any; + paneForURI: (uri: string) => IPane; + saveActivePaneItem(): any; + saveActivePaneItemAs(): any; + destroyActivePaneItem(): any; + destroyActivePane(): any; + getActiveEditor(): IEditor; + increaseFontSize(): void; + decreaseFontSize(): void; + resetFontSize(): void; + itemOpened(item: any): void; + onPaneItemDestroyed(item: any): void; + destroyed(): void; isTextEditor(object: any): boolean; - onDidChangeActivePaneItem(item:any):Disposable; + onDidChangeActivePaneItem(item: any): Disposable; } interface IAtomSettings { @@ -1149,34 +1149,34 @@ declare namespace AtomCore { pathToOpen: string; resourcePath: string; shellLoadTime: number; - windowState:string; + windowState: string; } interface IAtomState { - mode:string; - packageStates:any; - project:any; - syntax:any; - version:number; - windowDimensions:any; - workspace:any; + mode: string; + packageStates: any; + project: any; + syntax: any; + version: number; + windowDimensions: any; + workspace: any; } interface IDeserializerManager { - deserializers:Function; - add:Function; - remove:Function; - deserialize:Function; - get:Function; + deserializers: Function; + add: Function; + remove: Function; + deserialize: Function; + get: Function; } interface IConfig { - get(keyPath:string):any; + get(keyPath: string): any; // TBD } interface IKeymapManager { - defaultTarget:HTMLElement; + defaultTarget: HTMLElement; // TBD } @@ -1196,45 +1196,45 @@ declare namespace AtomCore { } interface IPackageManager extends Emissary.IEmitter { - packageDirPaths:string[]; - loadedPackages:any; - activePackages:any; - packageStates:any; - packageActivators:any[]; + packageDirPaths: string[]; + loadedPackages: any; + activePackages: any; + packageStates: any; + packageActivators: any[]; - getApmPath():string; - getPackageDirPaths():string; - getPackageState(name:string):any; - setPackageState(name:string, state:any):void; - enablePackage(name:string):any; - disablePackage(name:string):any; - activate():void; - registerPackageActivator(activator:any, types:any):void; - activatePackages(packages:any):void; - activatePackage(name:string):Q.Promise; - deactivatePackages():void; - deactivatePackage(name:string):void; - getActivePackages():any; - getActivePackage(name:string):any; - isPackageActive(name:string):boolean; - unobserveDisabledPackages():void; - observeDisabledPackages():void; - loadPackages():void; - loadPackage(nameOrPath:string):void; - unloadPackages():void; - unloadPackage(name:string):void; - getLoadedPackage(name:string):any; - isPackageLoaded(name:string):boolean; - getLoadedPackages():any; - getLoadedPackagesForTypes(types:any):any[]; - resolvePackagePath(name:string):string; - isPackageDisabled(name:string):boolean; - hasAtomEngine(packagePath:string):boolean; - isBundledPackage(name:string):boolean; - getPackageDependencies():any; - getAvailablePackagePaths():any[]; - getAvailablePackageNames():any[]; - getAvailablePackageMetadata():any[]; + getApmPath(): string; + getPackageDirPaths(): string; + getPackageState(name: string): any; + setPackageState(name: string, state: any): void; + enablePackage(name: string): any; + disablePackage(name: string): any; + activate(): void; + registerPackageActivator(activator: any, types: any): void; + activatePackages(packages: any): void; + activatePackage(name: string): Q.Promise; + deactivatePackages(): void; + deactivatePackage(name: string): void; + getActivePackages(): any; + getActivePackage(name: string): any; + isPackageActive(name: string): boolean; + unobserveDisabledPackages(): void; + observeDisabledPackages(): void; + loadPackages(): void; + loadPackage(nameOrPath: string): void; + unloadPackages(): void; + unloadPackage(name: string): void; + getLoadedPackage(name: string): any; + isPackageLoaded(name: string): boolean; + getLoadedPackages(): any; + getLoadedPackagesForTypes(types: any): any[]; + resolvePackagePath(name: string): string; + isPackageDisabled(name: string): boolean; + hasAtomEngine(packagePath: string): boolean; + isBundledPackage(name: string): boolean; + getPackageDependencies(): any; + getAvailablePackagePaths(): any[]; + getAvailablePackageNames(): any[]; + getAvailablePackageMetadata(): any[]; } interface INotifications { @@ -1257,8 +1257,8 @@ declare namespace AtomCore { } interface IClipboard { - write(text:string, metadata?:any):any; - read():string; + write(text: string, metadata?: any): any; + read(): string; } interface ISyntax { @@ -1274,37 +1274,37 @@ declare namespace AtomCore { loadSettings: IAtomSettings; /* Load or create the Atom environment in the given mode */ - loadOrCreate(mode:'editor'):IAtom; + loadOrCreate(mode: 'editor'): IAtom; /* Load or create the Atom environment in the given mode */ - loadOrCreate(mode:'spec'):IAtom; + loadOrCreate(mode: 'spec'): IAtom; /* Load or create the Atom environment in the given mode */ - loadOrCreate(mode:string):IAtom; + loadOrCreate(mode: string): IAtom; - loadState(mode:any):void; - getStatePath(mode:any):string; - getConfigDirPath():string; - getStorageDirPath():string; - getLoadSettings():IAtomSettings; - getCurrentWindow():IBrowserWindow; - getVersion():string; - isReleasedVersion():boolean; + loadState(mode: any): void; + getStatePath(mode: any): string; + getConfigDirPath(): string; + getStorageDirPath(): string; + getLoadSettings(): IAtomSettings; + getCurrentWindow(): IBrowserWindow; + getVersion(): string; + isReleasedVersion(): boolean; - new(state:IAtomState):IAtom; + new(state: IAtomState): IAtom; } class Disposable { - constructor(disposalAction:any) - dispose():void + constructor(disposalAction: any) + dispose(): void } // https://atom.io/docs/api/v0.106.0/api/classes/Atom.html /* Global Atom class : instance members */ interface IAtom { - constructor:IAtomStatic; + constructor: IAtomStatic; - state:IAtomState; - mode:string; - deserializers:IDeserializerManager; + state: IAtomState; + mode: string; + deserializers: IDeserializerManager; config: IConfig; commands: ICommandRegistry; grammars: IGrammars; @@ -1315,101 +1315,101 @@ declare namespace AtomCore { contextManu: IContextMenuManager; menu: IMenuManager; notifications: INotifications; // https://github.com/atom/notifications - clipboard:IClipboard; - syntax:ISyntax; + clipboard: IClipboard; + syntax: ISyntax; views: IViewRegistry; windowEventHandler: IWindowEventHandler; // really exists? start - subscribe:Function; - unsubscribe:Function; - loadTime:number; - workspaceViewParentSelector:string; + subscribe: Function; + unsubscribe: Function; + loadTime: number; + workspaceViewParentSelector: string; project: IProject; workspaceView: IWorkspaceView; workspace: IWorkspace; // really exists? end - initialize:Function; - // registerRepresentationClass:Function; - // registerRepresentationClasses:Function; - setBodyPlatformClass:Function; - getCurrentWindow():IBrowserWindow; - getWindowDimensions:Function; - setWindowDimensions:Function; - restoreWindowDimensions:Function; - storeWindowDimensions:Function; - getLoadSettings:Function; + initialize: Function; + // registerRepresentationClass: Function; + // registerRepresentationClasses: Function; + setBodyPlatformClass: Function; + getCurrentWindow(): IBrowserWindow; + getWindowDimensions: Function; + setWindowDimensions: Function; + restoreWindowDimensions: Function; + storeWindowDimensions: Function; + getLoadSettings: Function; deserializeProject: Function; - deserializeWorkspaceView:Function; - deserializePackageStates:Function; - deserializeEditorWindow:Function; - startEditorWindow:Function; - unloadEditorWindow:Function; - loadThemes:Function; - watchThemes:Function; - open:Function; - confirm:Function; - showSaveDialog:Function; - showSaveDialogSync:Function; - openDevTools:Function; - toggleDevTools:Function; - executeJavaScriptInDevTools:Function; - reload:Function; - focus:Function; - show:Function; - hide:Function; - setSize:Function; - setPosition:Function; - center:Function; - displayWindow:Function; - close:Function; - exit:Function; - inDevMode:Function; - inSpecMode:Function; - toggleFullScreen:Function; - setFullScreen:Function; - isFullScreen:Function; - getVersion:Function; - isReleasedVersion:Function; - getGitHubAuthTokenName:Function; - setGitHubAuthToken:Function; - getGitHubAuthToken:Function; - getConfigDirPath:Function; - saveSync:Function; - getWindowLoadTime():number; - crashMainProcess:Function; - crashRenderProcess:Function; - beep:Function; - getUserInitScriptPath:Function; - requireUserInitScript:Function; - requireWithGlobals:Function; + deserializeWorkspaceView: Function; + deserializePackageStates: Function; + deserializeEditorWindow: Function; + startEditorWindow: Function; + unloadEditorWindow: Function; + loadThemes: Function; + watchThemes: Function; + open: Function; + confirm: Function; + showSaveDialog: Function; + showSaveDialogSync: Function; + openDevTools: Function; + toggleDevTools: Function; + executeJavaScriptInDevTools: Function; + reload: Function; + focus: Function; + show: Function; + hide: Function; + setSize: Function; + setPosition: Function; + center: Function; + displayWindow: Function; + close: Function; + exit: Function; + inDevMode: Function; + inSpecMode: Function; + toggleFullScreen: Function; + setFullScreen: Function; + isFullScreen: Function; + getVersion: Function; + isReleasedVersion: Function; + getGitHubAuthTokenName: Function; + setGitHubAuthToken: Function; + getGitHubAuthToken: Function; + getConfigDirPath: Function; + saveSync: Function; + getWindowLoadTime(): number; + crashMainProcess: Function; + crashRenderProcess: Function; + beep: Function; + getUserInitScriptPath: Function; + requireUserInitScript: Function; + requireWithGlobals: Function; services: any; // TODO: New services api } interface IBufferedNodeProcessStatic { - new (arg:any):IBufferedNodeProcess; + new (arg: any): IBufferedNodeProcess; } interface IBufferedNodeProcess extends IBufferedProcess { } interface IBufferedProcessStatic { - new (arg:any):IBufferedProcess; + new (arg: any): IBufferedProcess; } interface IBufferedProcess { - process:Function; - killed:boolean; + process: Function; + killed: boolean; - bufferStream:Function; - kill:Function; + bufferStream: Function; + kill: Function; } interface IGitStatic { - new(path:any, options:any):IGit; + new(path: any, options: any): IGit; } interface IGit { @@ -1428,71 +1428,71 @@ declare namespace AtomCore { } interface IFoldStatic { - new (displayBuffer:IDisplayBuffer, marker:IMarker):IFold; + new (displayBuffer: IDisplayBuffer, marker: IMarker): IFold; // TBD } interface IFold { - id:number; - displayBuffer:IDisplayBuffer; - marker:IMarker; + id: number; + displayBuffer: IDisplayBuffer; + marker: IMarker; // TBD } interface IDisplayBufferMarkerStatic { - new (_arg:{bufferMarker:IMarker; displayBuffer: IDisplayBuffer}):IDisplayBufferMarker; + new (_arg: {bufferMarker: IMarker; displayBuffer: IDisplayBuffer}): IDisplayBufferMarker; } interface IDisplayBufferMarker extends Emissary.IEmitter, Emissary.ISubscriber { - constructor:IDisplayBufferMarkerStatic; + constructor: IDisplayBufferMarkerStatic; id: number; - bufferMarkerSubscription:any; - oldHeadBufferPosition:TextBuffer.IPoint; - oldHeadScreenPosition:TextBuffer.IPoint; - oldTailBufferPosition:TextBuffer.IPoint; - oldTailScreenPosition:TextBuffer.IPoint; - wasValid:boolean; + bufferMarkerSubscription: any; + oldHeadBufferPosition: TextBuffer.IPoint; + oldHeadScreenPosition: TextBuffer.IPoint; + oldTailBufferPosition: TextBuffer.IPoint; + oldTailScreenPosition: TextBuffer.IPoint; + wasValid: boolean; bufferMarker: IMarker; displayBuffer: IDisplayBuffer; - globalPauseCount:number; - globalQueuedEvents:any; + globalPauseCount: number; + globalQueuedEvents: any; - subscriptions:Emissary.ISubscription[]; - subscriptionsByObject:any; // WeakMap + subscriptions: Emissary.ISubscription[]; + subscriptionsByObject: any; // WeakMap - copy(attributes?:any /* maybe IMarker */):IDisplayBufferMarker; - getScreenRange():TextBuffer.IRange; - setScreenRange(screenRange:any, options:any):any; - getBufferRange():TextBuffer.IRange; - setBufferRange(bufferRange:any, options:any):any; - getPixelRange():any; - getHeadScreenPosition():TextBuffer.IPoint; - setHeadScreenPosition(screenPosition:any, options:any):any; - getHeadBufferPosition():TextBuffer.IPoint; - setHeadBufferPosition(bufferPosition:any):any; - getTailScreenPosition():TextBuffer.IPoint; - setTailScreenPosition(screenPosition:any, options:any):any; - getTailBufferPosition():TextBuffer.IPoint; - setTailBufferPosition(bufferPosition:any):any; - plantTail():boolean; - clearTail():boolean; - hasTail():boolean; - isReversed():boolean; - isValid():boolean; - isDestroyed():boolean; - getAttributes():any; - setAttributes(attributes:any):any; - matchesAttributes(attributes:any):any; - destroy():any; - isEqual(other:IDisplayBufferMarker):boolean; - compare(other:IDisplayBufferMarker):boolean; - inspect():string; - destroyed():any; - notifyObservers(_arg:any):any; + copy(attributes?: any /* maybe IMarker */): IDisplayBufferMarker; + getScreenRange(): TextBuffer.IRange; + setScreenRange(screenRange: any, options: any): any; + getBufferRange(): TextBuffer.IRange; + setBufferRange(bufferRange: any, options: any): any; + getPixelRange(): any; + getHeadScreenPosition(): TextBuffer.IPoint; + setHeadScreenPosition(screenPosition: any, options: any): any; + getHeadBufferPosition(): TextBuffer.IPoint; + setHeadBufferPosition(bufferPosition: any): any; + getTailScreenPosition(): TextBuffer.IPoint; + setTailScreenPosition(screenPosition: any, options: any): any; + getTailBufferPosition(): TextBuffer.IPoint; + setTailBufferPosition(bufferPosition: any): any; + plantTail(): boolean; + clearTail(): boolean; + hasTail(): boolean; + isReversed(): boolean; + isValid(): boolean; + isDestroyed(): boolean; + getAttributes(): any; + setAttributes(attributes: any): any; + matchesAttributes(attributes: any): any; + destroy(): any; + isEqual(other: IDisplayBufferMarker): boolean; + compare(other: IDisplayBufferMarker): boolean; + inspect(): string; + destroyed(): any; + notifyObservers(_arg: any): any; } interface ITransaction { @@ -1507,7 +1507,7 @@ declare namespace AtomCore { } interface ITaskStatic { - new(taskPath:any):ITask; + new(taskPath: any): ITask; } interface ITask { @@ -1515,331 +1515,331 @@ declare namespace AtomCore { } } -declare var atom:AtomCore.IAtom; +declare var atom: AtomCore.IAtom; declare module "atom" { import spacePen = require("space-pen"); - var $:typeof spacePen.$; - var $$:typeof spacePen.$$; - var $$$:typeof spacePen.$$$; + var $: typeof spacePen.$; + var $$: typeof spacePen.$$; + var $$$: typeof spacePen.$$$; - var BufferedNodeProcess:AtomCore.IBufferedNodeProcessStatic; - var BufferedProcess:AtomCore.IBufferedProcessStatic; - var Git:AtomCore.IGitStatic; - var Point:TextBuffer.IPointStatic; - var Range:TextBuffer.IRangeStatic; + var BufferedNodeProcess: AtomCore.IBufferedNodeProcessStatic; + var BufferedProcess: AtomCore.IBufferedProcessStatic; + var Git: AtomCore.IGitStatic; + var Point: TextBuffer.IPointStatic; + var Range: TextBuffer.IRangeStatic; class View extends spacePen.View implements Emissary.ISubscriber { // Subscriber.includeInto(spacePen.View); // inherit from Subscriber - subscribeWith(eventEmitter:any, methodName:string, args:any):any; + subscribeWith(eventEmitter: any, methodName: string, args: any): any; - addSubscription(subscription:any):any; + addSubscription(subscription: any): any; - subscribe(eventEmitterOrSubscription:any, ...args:any[]):any; + subscribe(eventEmitterOrSubscription: any, ...args: any[]): any; - subscribeToCommand(eventEmitter:any, ...args:any[]):any; + subscribeToCommand(eventEmitter: any, ...args: any[]): any; - unsubscribe(object?:any):any; + unsubscribe(object?: any): any; } class EditorView extends View { - static characterWidthCache:any; - static configDefaults:any; - static nextEditorId:number; + static characterWidthCache: any; + static configDefaults: any; + static nextEditorId: number; - static content(params:any):void; + static content(params: any): void; - static classes(_arg?:{mini?:any}):string; + static classes(_arg?: {mini?: any}): string; - vScrollMargin:number; - hScrollMargin:number; - lineHeight:any; - charWidth:any; - charHeight:any; - cursorViews:any[]; - selectionViews:any[]; - lineCache:any[]; - isFocused:any; - editor:AtomCore.IEditor; - attached:any; - lineOverdraw:number; - pendingChanges:any[]; - newCursors:any[]; - newSelections:any[]; - redrawOnReattach:any; - bottomPaddingInLines:number; - active:boolean; + vScrollMargin: number; + hScrollMargin: number; + lineHeight: any; + charWidth: any; + charHeight: any; + cursorViews: any[]; + selectionViews: any[]; + lineCache: any[]; + isFocused: any; + editor: AtomCore.IEditor; + attached: any; + lineOverdraw: number; + pendingChanges: any[]; + newCursors: any[]; + newSelections: any[]; + redrawOnReattach: any; + bottomPaddingInLines: number; + active: boolean; - id:number; + id: number; - gutter:AtomCore.IGutterView; - overlayer:JQuery; - scrollView:JQuery; - renderedLines:JQuery; - underlayer:JQuery; - hiddenInput:JQuery; - verticalScrollbar:JQuery; - verticalScrollbarContent:JQuery; + gutter: AtomCore.IGutterView; + overlayer: JQuery; + scrollView: JQuery; + renderedLines: JQuery; + underlayer: JQuery; + hiddenInput: JQuery; + verticalScrollbar: JQuery; + verticalScrollbarContent: JQuery; - constructor(editor:AtomCore.IEditor); + constructor(editor: AtomCore.IEditor); - initialize(editorOrOptions:AtomCore.IEditor):void; // return type are same as editor method. - initialize(editorOrOptions?:{editor: AtomCore.IEditor; mini:any; placeholderText:any}):void; + initialize(editorOrOptions: AtomCore.IEditor): void; // return type are same as editor method. + initialize(editorOrOptions?: {editor: AtomCore.IEditor; mini: any; placeholderText: any}): void; - initialize(editorOrOptions:{}):void; // compatible for spacePen.View + initialize(editorOrOptions: {}): void; // compatible for spacePen.View - bindKeys():void; + bindKeys(): void; - getEditor():AtomCore.IEditor; + getEditor(): AtomCore.IEditor; - getText():string; + getText(): string; - setText(text:string):void; + setText(text: string): void; - insertText(text:string, options?:any):TextBuffer.IRange[]; + insertText(text: string, options?: any): TextBuffer.IRange[]; - setHeightInLines(heightInLines:number):number; + setHeightInLines(heightInLines: number): number; - setWidthInChars(widthInChars:number):number; + setWidthInChars(widthInChars: number): number; - pageDown():void; + pageDown(): void; - pageUp():void; + pageUp(): void; - getPageRows():number; + getPageRows(): number; - setShowInvisibles(showInvisibles:boolean):void; + setShowInvisibles(showInvisibles: boolean): void; - setInvisibles(invisibles:{ eol:string; space: string; tab: string; cr: string; }):void; + setInvisibles(invisibles: { eol: string; space: string; tab: string; cr: string; }): void; - setShowIndentGuide(showIndentGuide:boolean):void; + setShowIndentGuide(showIndentGuide: boolean): void; - setPlaceholderText(placeholderText:string):void; + setPlaceholderText(placeholderText: string): void; - getPlaceholderText():string; + getPlaceholderText(): string; - checkoutHead():boolean; + checkoutHead(): boolean; - configure():Emissary.ISubscription; + configure(): Emissary.ISubscription; - handleEvents():void; + handleEvents(): void; - handleInputEvents():void; + handleInputEvents(): void; - bringHiddenInputIntoView():JQuery; + bringHiddenInputIntoView(): JQuery; - selectOnMousemoveUntilMouseup():any; + selectOnMousemoveUntilMouseup(): any; - afterAttach(onDom:any):any; + afterAttach(onDom: any): any; - edit(editor:AtomCore.IEditor):any; + edit(editor: AtomCore.IEditor): any; - getModel():AtomCore.IEditor; + getModel(): AtomCore.IEditor; - setModel(editor:AtomCore.IEditor):any; + setModel(editor: AtomCore.IEditor): any; - showBufferConflictAlert(editor:AtomCore.IEditor):any; + showBufferConflictAlert(editor: AtomCore.IEditor): any; - scrollTop(scrollTop:number, options?:any):any; + scrollTop(scrollTop: number, options?: any): any; - scrollBottom(scrollBottom?:number):any; + scrollBottom(scrollBottom?: number): any; - scrollLeft(scrollLeft?:number):number; + scrollLeft(scrollLeft?: number): number; - scrollRight(scrollRight?:number):any; + scrollRight(scrollRight?: number): any; - scrollToBottom():any; + scrollToBottom(): any; - scrollToCursorPosition():any; + scrollToCursorPosition(): any; - scrollToBufferPosition(bufferPosition:any, options:any):any; + scrollToBufferPosition(bufferPosition: any, options: any): any; - scrollToScreenPosition(screenPosition:any, options:any):any; + scrollToScreenPosition(screenPosition: any, options: any): any; - scrollToPixelPosition(pixelPosition:any, options:any):any; + scrollToPixelPosition(pixelPosition: any, options: any): any; - highlightFoldsContainingBufferRange(bufferRange:any):any; + highlightFoldsContainingBufferRange(bufferRange: any): any; - saveScrollPositionForEditor():any; + saveScrollPositionForEditor(): any; - toggleSoftTabs():any; + toggleSoftTabs(): any; - toggleSoftWrap():any; + toggleSoftWrap(): any; - calculateWidthInChars():number; + calculateWidthInChars(): number; - calculateHeightInLines():number; + calculateHeightInLines(): number; - getScrollbarWidth():number; + getScrollbarWidth(): number; - setSoftWrap(softWrap:boolean):any; + setSoftWrap(softWrap: boolean): any; - setFontSize(fontSize:number):any; + setFontSize(fontSize: number): any; - getFontSize():number; + getFontSize(): number; - setFontFamily(fontFamily?:string):any; + setFontFamily(fontFamily?: string): any; - getFontFamily():string; + getFontFamily(): string; - setLineHeight(lineHeight:number):any; + setLineHeight(lineHeight: number): any; - redraw():any; + redraw(): any; - splitLeft():any; + splitLeft(): any; - splitRight():any; + splitRight(): any; - splitUp():any; + splitUp(): any; - splitDown():any; + splitDown(): any; - getPane():any; // return type are PaneView + getPane(): any; // return type are PaneView - remove(selector:any, keepData:any):any; + remove(selector: any, keepData: any): any; - beforeRemove():any; + beforeRemove(): any; - getCursorView(index?:number):any; // return type are CursorView + getCursorView(index?: number): any; // return type are CursorView - getCursorViews():any[]; // return type are CursorView[] + getCursorViews(): any[]; // return type are CursorView[] - addCursorView(cursor:any, options:any):any; // return type are CursorView + addCursorView(cursor: any, options: any): any; // return type are CursorView - removeCursorView(cursorView:any):any; + removeCursorView(cursorView: any): any; - getSelectionView(index?:number):any; // return type are SelectionView + getSelectionView(index?: number): any; // return type are SelectionView - getSelectionViews():any[]; // return type are SelectionView[] + getSelectionViews(): any[]; // return type are SelectionView[] - addSelectionView(selection:any):any; + addSelectionView(selection: any): any; - removeSelectionView(selectionView:any):any; + removeSelectionView(selectionView: any): any; - removeAllCursorAndSelectionViews():any[]; + removeAllCursorAndSelectionViews(): any[]; - appendToLinesView(view:any):any; + appendToLinesView(view: any): any; - scrollVertically(pixelPosition:any, _arg:any):any; + scrollVertically(pixelPosition: any, _arg: any): any; - scrollHorizontally(pixelPosition:any):any; + scrollHorizontally(pixelPosition: any): any; - calculateDimensions():number; + calculateDimensions(): number; - recalculateDimensions():any; + recalculateDimensions(): any; - updateLayerDimensions():any; + updateLayerDimensions(): any; - isHidden():boolean; + isHidden(): boolean; - clearRenderedLines():void; + clearRenderedLines(): void; - resetDisplay():any; + resetDisplay(): any; - requestDisplayUpdate():any; + requestDisplayUpdate(): any; - updateDisplay(options?:any):any; + updateDisplay(options?: any): any; - updateCursorViews():any; + updateCursorViews(): any; - shouldUpdateCursor(cursorView:any):any; + shouldUpdateCursor(cursorView: any): any; - updateSelectionViews():any[]; + updateSelectionViews(): any[]; - shouldUpdateSelection(selectionView:any):any; + shouldUpdateSelection(selectionView: any): any; - syncCursorAnimations():any[]; + syncCursorAnimations(): any[]; - autoscroll(suppressAutoscroll?:any):any[]; + autoscroll(suppressAutoscroll?: any): any[]; - updatePlaceholderText():any; + updatePlaceholderText(): any; - updateRenderedLines(scrollViewWidth:any):any; + updateRenderedLines(scrollViewWidth: any): any; - computeSurroundingEmptyLineChanges(change:any):any; + computeSurroundingEmptyLineChanges(change: any): any; - computeIntactRanges(renderFrom:any, renderTo:any):any; + computeIntactRanges(renderFrom: any, renderTo: any): any; - truncateIntactRanges(intactRanges:any, renderFrom:any, renderTo:any):any; + truncateIntactRanges(intactRanges: any, renderFrom: any, renderTo: any): any; - clearDirtyRanges(intactRanges:any):any; + clearDirtyRanges(intactRanges: any): any; - clearLine(lineElement:any):any; + clearLine(lineElement: any): any; - fillDirtyRanges(intactRanges:any, renderFrom:any, renderTo:any):any; + fillDirtyRanges(intactRanges: any, renderFrom: any, renderTo: any): any; - updatePaddingOfRenderedLines():any; + updatePaddingOfRenderedLines(): any; - getFirstVisibleScreenRow():number; + getFirstVisibleScreenRow(): number; - getLastVisibleScreenRow():number; + getLastVisibleScreenRow(): number; - isScreenRowVisible():boolean; + isScreenRowVisible(): boolean; - handleScreenLinesChange(change:any):any; + handleScreenLinesChange(change: any): any; - buildLineElementForScreenRow(screenRow:any):any; + buildLineElementForScreenRow(screenRow: any): any; - buildLineElementsForScreenRows(startRow:any, endRow:any):any; + buildLineElementsForScreenRows(startRow: any, endRow: any): any; - htmlForScreenRows(startRow:any, endRow:any):any; + htmlForScreenRows(startRow: any, endRow: any): any; - htmlForScreenLine(screenLine:any, screenRow:any):any; + htmlForScreenLine(screenLine: any, screenRow: any): any; - buildIndentation(screenRow:any, editor:any):any; + buildIndentation(screenRow: any, editor: any): any; - buildHtmlEndOfLineInvisibles(screenLine:any):any; + buildHtmlEndOfLineInvisibles(screenLine: any): any; - getEndOfLineInvisibles(screenLine:any):any; + getEndOfLineInvisibles(screenLine: any): any; - lineElementForScreenRow(screenRow:any):any; + lineElementForScreenRow(screenRow: any): any; - toggleLineCommentsInSelection():any; + toggleLineCommentsInSelection(): any; - pixelPositionForBufferPosition(position:any):any; + pixelPositionForBufferPosition(position: any): any; - pixelPositionForScreenPosition(position:any):any; + pixelPositionForScreenPosition(position: any): any; - positionLeftForLineAndColumn(lineElement:any, screenRow:any, screenColumn:any):any; + positionLeftForLineAndColumn(lineElement: any, screenRow: any, screenColumn: any): any; - measureToColumn(lineElement:any, tokenizedLine:any, screenColumn:any):any; + measureToColumn(lineElement: any, tokenizedLine: any, screenColumn: any): any; - getCharacterWidthCache(scopes:any, char:any):any; + getCharacterWidthCache(scopes: any, char: any): any; - setCharacterWidthCache(scopes:any, char:any, val:any):any; + setCharacterWidthCache(scopes: any, char: any, val: any): any; - clearCharacterWidthCache():any; + clearCharacterWidthCache(): any; - pixelOffsetForScreenPosition(position:any):any; + pixelOffsetForScreenPosition(position: any): any; - screenPositionFromMouseEvent(e:any):any; + screenPositionFromMouseEvent(e: any): any; - highlightCursorLine():any; + highlightCursorLine(): any; - copyPathToClipboard():any; + copyPathToClipboard(): any; - buildLineHtml(_arg:any):any; + buildLineHtml(_arg: any): any; - updateScopeStack(line:any, scopeStack:any, desiredScopes:any):any; + updateScopeStack(line: any, scopeStack: any, desiredScopes: any): any; - pushScope(line:any, scopeStack:any, scope:any):any; + pushScope(line: any, scopeStack: any, scope: any): any; - popScope(line:any, scopeStack:any):any; + popScope(line: any, scopeStack: any): any; - buildEmptyLineHtml(showIndentGuide:any, eolInvisibles:any, htmlEolInvisibles:any, indentation:any, editor:any, mini:any):any; + buildEmptyLineHtml(showIndentGuide: any, eolInvisibles: any, htmlEolInvisibles: any, indentation: any, editor: any, mini: any): any; - replaceSelectedText(replaceFn:(str:string)=>string):any; + replaceSelectedText(replaceFn: (str: string) => string): any; - consolidateSelections(e:any):any; + consolidateSelections(e: any): any; - logCursorScope():any; + logCursorScope(): any; - logScreenLines(start:any, end:any):any; + logScreenLines(start: any, end: any): any; - logRenderedLines():any; + logRenderedLines(): any; } class ScrollView extends View { @@ -1847,76 +1847,76 @@ declare module "atom" { } interface ISelectListItem { - /** e.g. application:about */ - eventName:string; + /** e.g. application: about */ + eventName: string; /** e.g. Application: About */ - eventDescription:string; + eventDescription: string; } class SelectListView extends View { - static content():any; + static content(): any; - maxItems:number; - scheduleTimeout:any; - inputThrottle:number; - cancelling:boolean; - items:any[]; - list:JQuery; + maxItems: number; + scheduleTimeout: any; + inputThrottle: number; + cancelling: boolean; + items: any[]; + list: JQuery; filterEditorView: JQuery; - previouslyFocusedElement:JQuery; + previouslyFocusedElement: JQuery; - initialize():any; + initialize(): any; - schedulePopulateList():number; + schedulePopulateList(): number; - setItems(items:any[]):any; + setItems(items: any[]): any; - setError(message?:string):any; + setError(message?: string): any; - setLoading(message?:string):any; + setLoading(message?: string): any; - getFilterQuery():string; + getFilterQuery(): string; - populateList():any; + populateList(): any; - getEmptyMessage(itemCount?:any, filteredItemCount?:any):string; + getEmptyMessage(itemCount?: any, filteredItemCount?: any): string; - setMaxItems(maxItems:number):void; + setMaxItems(maxItems: number): void; - selectPreviousItemView():any; + selectPreviousItemView(): any; - selectNextItemView():any; + selectNextItemView(): any; - selectItemView(view:any):any; + selectItemView(view: any): any; - scrollToItemView(view:any):any; + scrollToItemView(view: any): any; - getSelectedItemView():any; + getSelectedItemView(): any; - getSelectedItem():any; + getSelectedItem(): any; - confirmSelection():any; + confirmSelection(): any; - viewForItem(item:any):JQuery|string|HTMLElement|View; // You must override this method! - confirmed(item:any):any; // You must override this method! - getFilterKey():any; + viewForItem(item: any): JQuery|string|HTMLElement|View; // You must override this method! + confirmed(item: any): any; // You must override this method! + getFilterKey(): any; - focusFilterEditor():any; + focusFilterEditor(): any; - storeFocusedElement():any; + storeFocusedElement(): any; - restoreFocus():any; + restoreFocus(): any; - cancelled():any; + cancelled(): any; - cancel():any; + cancel(): any; } - var WorkspaceView:AtomCore.IWorkspaceViewStatic; + var WorkspaceView: AtomCore.IWorkspaceViewStatic; - var Task:AtomCore.ITaskStatic; - var Workspace:AtomCore.IWorkspaceStatic; + var Task: AtomCore.ITaskStatic; + var Workspace: AtomCore.IWorkspaceStatic; } diff --git a/auth0-js/index.d.ts b/auth0-js/index.d.ts index e2a907e084..d2620f6484 100644 --- a/auth0-js/index.d.ts +++ b/auth0-js/index.d.ts @@ -129,5 +129,5 @@ interface Auth0DelegationToken { declare const Auth0: Auth0Static; declare module "auth0-js" { - export = Auth0 + export = Auth0; } diff --git a/auth0-lock/index.d.ts b/auth0-lock/index.d.ts index 1a05d3f913..c848e69b2b 100644 --- a/auth0-lock/index.d.ts +++ b/auth0-lock/index.d.ts @@ -105,18 +105,18 @@ interface Auth0LockConstructorOptions { interface Auth0LockStatic { new (clientId: string, domain: string, options?: Auth0LockConstructorOptions): Auth0LockStatic; - getProfile(token: string, callback: (error: Auth0Error, profile: Auth0UserProfile) => void) : void; + getProfile(token: string, callback: (error: Auth0Error, profile: Auth0UserProfile) => void): void; show(): void; hide(): void; logout(query: any): void; - on(event: "show", callback: () => void) : void; - on(event: "hide", callback: () => void) : void; - on(event: "unrecoverable_error", callback: (error: Auth0Error) => void) : void; - on(event: "authorization_error", callback: (error: Auth0Error) => void) : void; - on(event: "authenticated", callback: (authResult: any) => void) : void; - on(event: string, callback: (...args: any[]) => void) : void; + on(event: "show", callback: () => void): void; + on(event: "hide", callback: () => void): void; + on(event: "unrecoverable_error", callback: (error: Auth0Error) => void): void; + on(event: "authorization_error", callback: (error: Auth0Error) => void): void; + on(event: "authenticated", callback: (authResult: any) => void): void; + on(event: string, callback: (...args: any[]) => void): void; } declare var Auth0Lock: Auth0LockStatic; diff --git a/autobahn/index.d.ts b/autobahn/index.d.ts index e93d3c065f..59802edf85 100644 --- a/autobahn/index.d.ts +++ b/autobahn/index.d.ts @@ -47,7 +47,7 @@ declare namespace autobahn { interface IInvocation { caller?: number; - progress?: (args : any[], kwargs : any) => void; + progress?: (args: any[], kwargs: any) => void; procedure: string; } @@ -109,7 +109,7 @@ declare namespace autobahn { } class Subscription implements ISubscription { - constructor(topic? : string, handler?: SubscribeHandler, options?: ISubscribeOptions, session?: Session, id?: number); + constructor(topic?: string, handler?: SubscribeHandler, options?: ISubscribeOptions, session?: Session, id?: number); handler: SubscribeHandler; diff --git a/autolinker/index.d.ts b/autolinker/index.d.ts index 577f670a22..ec8fcba3aa 100644 --- a/autolinker/index.d.ts +++ b/autolinker/index.d.ts @@ -14,9 +14,9 @@ declare namespace __Autolinker { stripPrefix?: boolean; truncate?: number | { length?: number; location?: string; }; twitter?: boolean; - urls?: boolean | { schemeMatches: boolean; wwwMatches: boolean; tldMatches: boolean; } + urls?: boolean | { schemeMatches: boolean; wwwMatches: boolean; tldMatches: boolean; }; } - + interface Autolinker { getTagBuilder(): any; /** @@ -28,13 +28,13 @@ declare namespace __Autolinker { */ parse(textOrHtml: string): any[]; } - + interface Static { new(cfg?: ConfigOptions): Autolinker; /** * Automatically links URLs, Email addresses, Phone Numbers, Twitter handles, and Hashtags found in the given chunk of HTML. Does not link URLs found within HTML tags. */ - link(textOrHtml: string, options?: ConfigOptions): string + link(textOrHtml: string, options?: ConfigOptions): string; } } diff --git a/autoprefixer-core/index.d.ts b/autoprefixer-core/index.d.ts index 1b04092a71..f13f1ec2a4 100644 --- a/autoprefixer-core/index.d.ts +++ b/autoprefixer-core/index.d.ts @@ -17,7 +17,7 @@ interface Options { map?: { inline?: boolean; prev?: string | Object; - } + }; } interface Result { diff --git a/avoscloud-sdk/index.d.ts b/avoscloud-sdk/index.d.ts index deb416290d..db93ce66c8 100644 --- a/avoscloud-sdk/index.d.ts +++ b/avoscloud-sdk/index.d.ts @@ -270,8 +270,8 @@ declare module "avoscloud-sdk" { class Object extends BaseObject { id: any; - createdAt:any; - updatedAt:any; + createdAt: any; + updatedAt: any; attributes: any; cid: string; changed: boolean; @@ -645,18 +645,14 @@ declare module "avoscloud-sdk" { } namespace Analytics { - - function track(name: string, dimensions: any):Promise; + function track(name: string, dimensions: any): Promise; } - class Error { - code: ErrorCode; message: string; constructor(code: ErrorCode, message: string); - } enum ErrorCode { diff --git a/aws-lambda/index.d.ts b/aws-lambda/index.d.ts index a5086eaadf..3f80799eea 100644 --- a/aws-lambda/index.d.ts +++ b/aws-lambda/index.d.ts @@ -17,7 +17,7 @@ interface Context { logStreamName: string; identity?: CognitoIdentity; clientContext?: ClientContext; - + // Functions getRemainingTimeInMillis(): number; @@ -28,7 +28,7 @@ interface Context { fail(message: string): void; succeed(message: string): void; succeed(object: any): void; - succeed(message: string, object: any): void; + succeed(message: string, object: any): void; } interface CognitoIdentity { diff --git a/aws-sdk/aws-sdk-tests.ts b/aws-sdk/aws-sdk-tests.ts index 5188a3e725..fb2b97082b 100644 --- a/aws-sdk/aws-sdk-tests.ts +++ b/aws-sdk/aws-sdk-tests.ts @@ -11,7 +11,7 @@ str = creds.accessKeyId; /* - * ECS + * ECS */ var ecs:AWS.ECS @@ -20,7 +20,7 @@ ecs = new AWS.ECS({apiVersion: '2012-11-05'}); ecs.describeClusters({ clusters: ['STRING_VALUE', 'STRING_VALUE'] - }, + }, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response @@ -29,7 +29,7 @@ ecs.describeClusters({ ecs.describeTasks({ cluster: 'STRING_VALUE', tasks: ['STRING_VALUE', 'STRING_VALUE'] - }, + }, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response @@ -37,7 +37,7 @@ ecs.describeTasks({ /* - * SQS + * SQS */ var sqs:AWS.SQS @@ -64,22 +64,22 @@ sqs.addPermission({ ], Label: 'STRING_VALUE', /* required */ QueueUrl: 'STRING_VALUE' /* required */ - }, + }, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response }); - + sqs.changeMessageVisibility({ QueueUrl: 'STRING_VALUE', /* required */ ReceiptHandle: 'STRING_VALUE', /* required */ VisibilityTimeout: 0 /* required */ - }, + }, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response }); - + sqs.changeMessageVisibilityBatch({ Entries: [ /* required */ { @@ -90,19 +90,19 @@ sqs.changeMessageVisibilityBatch({ /* more items */ ], QueueUrl: 'STRING_VALUE' /* required */ - }, + }, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response }); - + sqs.createQueue({ QueueName: 'STRING_VALUE', /* required */ Attributes: { someKey: 'STRING_VALUE', /* anotherKey: ... */ } - }, + }, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response @@ -111,12 +111,12 @@ sqs.createQueue({ sqs.deleteMessage({ QueueUrl: 'STRING_VALUE', /* required */ ReceiptHandle: 'STRING_VALUE' /* required */ - }, + }, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response }); - + sqs.deleteMessageBatch({ Entries: [ /* required */ { @@ -126,20 +126,20 @@ sqs.deleteMessageBatch({ /* more items */ ], QueueUrl: 'STRING_VALUE' /* required */ - }, + }, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response }); - + sqs.deleteQueue({ QueueUrl: 'STRING_VALUE' /* required */ - }, + }, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response }); - + sqs.getQueueAttributes({ QueueUrl: 'STRING_VALUE', /* required */ AttributeNames: [ @@ -151,26 +151,26 @@ sqs.getQueueAttributes({ if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response }); - + sqs.getQueueUrl({ QueueName: 'STRING_VALUE', /* required */ QueueOwnerAWSAccountId: 'STRING_VALUE' - }, + }, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response }); - + sqs.listDeadLetterSourceQueues({ QueueUrl: 'STRING_VALUE' /* required */ }, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response }); - + sqs.listQueues({ QueueNamePrefix: 'STRING_VALUE' - }, + }, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response @@ -182,7 +182,7 @@ sqs.purgeQueue({ if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response }); - + sqs.receiveMessage({ QueueUrl: 'STRING_VALUE', /* required */ AttributeNames: [ @@ -200,7 +200,7 @@ sqs.receiveMessage({ if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response }); - + sqs.removePermission({ Label: 'STRING_VALUE', /* required */ QueueUrl: 'STRING_VALUE' /* required */ @@ -208,7 +208,7 @@ sqs.removePermission({ if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response }); - + sqs.sendMessage({ MessageBody: 'STRING_VALUE', /* required */ QueueUrl: 'STRING_VALUE', /* required */ @@ -229,7 +229,7 @@ sqs.sendMessage({ }, /* anotherKey: ... */ } - }, + }, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response @@ -261,12 +261,12 @@ sqs.sendMessageBatch({ /* more items */ ], QueueUrl: 'STRING_VALUE' /* required */ - }, + }, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response }); - + sqs.setQueueAttributes({ Attributes: { /* required */ someKey: 'STRING_VALUE', @@ -277,7 +277,7 @@ sqs.setQueueAttributes({ if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response }); - + var dynamoDBDocClient:AWS.DynamoDB.DocumentClient; dynamoDBDocClient = new AWS.DynamoDB.DocumentClient(); dynamoDBDocClient = new AWS.DynamoDB.DocumentClient({}); diff --git a/aws-sdk/index.d.ts b/aws-sdk/index.d.ts index fbee8f926c..ce1beb6f66 100644 --- a/aws-sdk/index.d.ts +++ b/aws-sdk/index.d.ts @@ -20,7 +20,7 @@ export class EnvironmentCredentials extends Credentials { constructor(profile: string); } -export module CognitoIdentity { +export namespace CognitoIdentity { export interface CognitoIdentityCredentialsParams { IdentityPoolId?: string; AccountId?: string; @@ -532,7 +532,7 @@ export declare class DynamoDB { // ========================================================== -export declare module DynamoDB { +export namespace DynamoDB { interface _DDBDC_Generic { TableName: string; @@ -540,7 +540,7 @@ export declare module DynamoDB { ReturnConsumedCapacity?: "INDEXES" | "TOTAL" | "NONE"; } - type _DDBDC_ComparisonOperator = "EQ" | "NE" | "IN" | "LE" | "LT" | "GE" | "GT" | "BETWEEN" | "NOT_NULL" | "NULL" | "CONTAINS" | "NOT_CONTAINS" | "BEGINS_WITH" + type _DDBDC_ComparisonOperator = "EQ" | "NE" | "IN" | "LE" | "LT" | "GE" | "GT" | "BETWEEN" | "NOT_NULL" | "NULL" | "CONTAINS" | "NOT_CONTAINS" | "BEGINS_WITH"; type _DDBDC_Keys = { [someKey: string]: any }; type _DDBDC_KeyComparison = { [someKey: string]: { @@ -568,7 +568,7 @@ export declare module DynamoDB { Exists: boolean; Value?: any; } - } + }; } interface UpdateParam extends _DDBDC_Writer { @@ -579,7 +579,7 @@ export declare module DynamoDB { Action: "PUT" | "ADD" | "DELETE"; Value: any } - } + }; } interface QueryParam extends _DDBDC_Reader { @@ -631,7 +631,7 @@ export declare module DynamoDB { // =========================================================== -export module CloudFormation { +export namespace CloudFormation { export interface CancelUpdateStackParams { StackName: string; } @@ -838,7 +838,7 @@ export module CloudFormation { // =========================================================== -export declare module Lambda { +export namespace Lambda { export interface AddPermissionParams { Action: string; FunctionName: string; @@ -860,7 +860,7 @@ export declare module Lambda { FunctionName: string; StartingPosition: string; /* TRIM_HORIZON | LATEST */ BatchSize?: number; - Enabled?: boolean + Enabled?: boolean; } export interface CreateFunctionParams { @@ -869,7 +869,7 @@ export declare module Lambda { S3Key?: string; S3ObjectVersion?: string; ZipFile?: any; // new Buffer('...') || string; - }, + }; FunctionName: string; Handler: string; Role: string; @@ -881,7 +881,7 @@ export declare module Lambda { VpcConfig?: { SecurityGroupIds?: string[]; SubnetIds?: string[]; - } + }; } export interface DeleteAliasParams { @@ -924,7 +924,7 @@ export declare module Lambda { export interface InvokeParams { FunctionName: string; ClientContext?: string; - InvocationType?: string;/* 'Event | RequestResponse | DryRun' */ + InvocationType?: string; /* 'Event | RequestResponse | DryRun' */ LogType?: string; /* 'None | Tail' */ Payload?: any; /* new Buffer('...') || string */ Qualifier?: string; @@ -934,25 +934,25 @@ export declare module Lambda { FunctionName: string; FunctionVersion?: string; Marker?: string; - MaxItems?: number + MaxItems?: number; } export interface ListEventSourceMappingsParams { EventSourceArn?: string; FunctionName?: string; Marker?: string; - MaxItems?: number + MaxItems?: number; } export interface ListFunctionsParams { Marker?: string; - MaxItems?: number + MaxItems?: number; } export interface ListVersionsByFunctionParams { FunctionName: string; Marker?: string; - MaxItems?: number + MaxItems?: number; } export interface PublishVersionParams { @@ -1001,11 +1001,11 @@ export declare module Lambda { VpcConfig?: { SecurityGroupIds?: string[]; SubnetIds?: string[]; - } + }; } } -export module AutoScaling { +export namespace AutoScaling { export interface AutoScalingOptions { params?: any; endpoint?: string; @@ -1353,7 +1353,7 @@ export module AutoScaling { } } -export module SQS { +export namespace SQS { export interface SqsOptions { params?: any; endpoint?: string; @@ -1389,14 +1389,14 @@ export module SQS { } export interface ChangeMessageVisibilityParams { - QueueUrl: string, - ReceiptHandle: string, - VisibilityTimeout: number + QueueUrl: string; + ReceiptHandle: string; + VisibilityTimeout: number; } export interface ChangeMessageVisibilityBatchParams { - QueueUrl: string, - Entries: { Id: string; ReceiptHandle: string; VisibilityTimeout?: number; }[] + QueueUrl: string; + Entries: { Id: string; ReceiptHandle: string; VisibilityTimeout?: number; }[]; } export interface ChangeMessageVisibilityBatchResponse { @@ -1408,7 +1408,7 @@ export module SQS { QueueUrl?: string; MessageBody: string; DelaySeconds?: number; - MessageAttributes?: { [name: string]: MessageAttribute; } + MessageAttributes?: { [name: string]: MessageAttribute; }; } export interface ReceiveMessageParams { @@ -1444,7 +1444,7 @@ export module SQS { Id: string; MessageBody: string; DelaySeconds?: number; - MessageAttributes?: { [name: string]: MessageAttribute; } + MessageAttributes?: { [name: string]: MessageAttribute; }; } export interface CreateQueueParams { @@ -1494,7 +1494,7 @@ export module SQS { Body: string; Attributes: { [name: string]: any }; MD5OfMessageAttributes: string; - MessageAttributes: { [name: string]: MessageAttribute; } + MessageAttributes: { [name: string]: MessageAttribute; }; } export interface MessageAttribute { @@ -1544,7 +1544,7 @@ export module SQS { } -export declare module SES { +export namespace SES { export interface Client { config: ClientConfig; @@ -1587,7 +1587,7 @@ export declare module SES { } -export declare module Swf { +export namespace Swf { export interface Client { //constructor(options?: any); @@ -2198,7 +2198,7 @@ export declare module Swf { } -export declare module Sns { +export namespace Sns { export interface Client { config: ClientConfig; @@ -2241,7 +2241,7 @@ export declare module Sns { } -export declare module s3 { +export namespace s3 { interface Owner { DisplayName: string; ID: string; @@ -2257,7 +2257,7 @@ export declare module s3 { ETag: string; Size: number; StorageClass: "STANDARD" | "REDUCED_REDUNDANCY" | "GLACIER"; - Owner?: Owner + Owner?: Owner; } // This private interface contains the common parts between v1 and v2 of the API Request and is exposed via V1 and V2 subclasses @@ -2406,7 +2406,7 @@ export declare module s3 { } } -export declare module ecs { +export namespace ecs { export interface CreateServicesParams { desiredCount: number; serviceName: string; @@ -2531,7 +2531,7 @@ export declare module ecs { } } -export module sts { +export namespace sts { export interface AssumeRoleParams { RoleArn: string; RoleSessionName: string; @@ -2585,7 +2585,7 @@ export module sts { /** * An optional credentials object to fill instead of creating a new object. Useful when modifying an existing credentials object from a refresh call. */ - Credentials?: Credentials + Credentials?: Credentials; } export interface DecodeAuthorizationMessageParams { @@ -2594,12 +2594,12 @@ export module sts { export interface GetFederationTokenParams { Name: string; - DurationSeconds?: number, - Policy?: string + DurationSeconds?: number; + Policy?: string; } export interface GetSessionTokenParams { - DurationSeconds: number, + DurationSeconds: number; SerialNumber: string; TokenCode: string; } diff --git a/axe-core/index.d.ts b/axe-core/index.d.ts index 98818e75cc..11dd50ac44 100644 --- a/axe-core/index.d.ts +++ b/axe-core/index.d.ts @@ -14,102 +14,102 @@ declare namespace axe { export type RunOnlyType = "rule" | "rules" | "tag" | "tags"; export interface ElementContext { - node?: Object, - selector?: string, - include?: any[], - exclude?: any[] + node?: Object; + selector?: string; + include?: any[]; + exclude?: any[]; } export interface RunOnly { - type: RunOnlyType, + type: RunOnlyType; value?: { - include?: string[], - exclude?: string[] - } - values?: TagValue[] + include?: string[]; + exclude?: string[]; + }; + values?: TagValue[]; } export interface AxeResults { - url: string, - timestamp: string, - passes: Pass[], - violations: Violation[] + url: string; + timestamp: string; + passes: Pass[]; + violations: Violation[]; } export interface Pass { - description: string, - help: string, - helpUrl: string, - id: string, - impact: ImpactValue, - tags: TagValue[], - nodes: NodeResult[] + description: string; + help: string; + helpUrl: string; + id: string; + impact: ImpactValue; + tags: TagValue[]; + nodes: NodeResult[]; } export interface Violation { - description: string, - help: string, - helpUrl: string, - id: string, - impact: ImpactValue, - tags: TagValue[], - nodes: NodeResult[] + description: string; + help: string; + helpUrl: string; + id: string; + impact: ImpactValue; + tags: TagValue[]; + nodes: NodeResult[]; } export interface NodeResult { - html: string, - impact: ImpactValue, - target: string[], - any: CheckResult[], - all: CheckResult[], - none: CheckResult[] + html: string; + impact: ImpactValue; + target: string[]; + any: CheckResult[]; + all: CheckResult[]; + none: CheckResult[]; } export interface CheckResult { - id: string, - impact: string, - message: string, - data: any, - relatedNodes?: RelatedNode[] + id: string; + impact: string; + message: string; + data: any; + relatedNodes?: RelatedNode[]; } export interface RelatedNode { - target: string[], - html: string + target: string[]; + html: string; } export interface Spec { branding?: { - brand: string, - application: string - }, - reporter?: ReporterVersion, - checks?: Check[], - rules?: Rule[] + brand: string; + application: string; + }; + reporter?: ReporterVersion; + checks?: Check[]; + rules?: Rule[]; } export interface Check { - id: string, - evaluate: Function, - after?: Function, - options?: any, - matches?: string, - enabled?: boolean + id: string; + evaluate: Function; + after?: Function; + options?: any; + matches?: string; + enabled?: boolean; } export interface Rule { - id: string, - selector?: string, - excludeHidden?: boolean, - enabled?: boolean, - pageLevel?: boolean, - any?: string[], - all?: string[], - none?: string[], - tags?: string[], - matches?: string + id: string; + selector?: string; + excludeHidden?: boolean; + enabled?: boolean; + pageLevel?: boolean; + any?: string[]; + all?: string[]; + none?: string[]; + tags?: string[]; + matches?: string; } export interface AxePlugin { - id: string, - run(...args:any[]): any, + id: string; + run(...args: any[]): any; commands: { id: string, - callback(...args:any[]): void - }[], - cleanup?(callback:Function): void + callback(...args: any[]): void + }[]; + cleanup?(callback: Function): void; } - export let plugins: any + export let plugins: any; /** * Starts analysis on the current document and its subframes @@ -119,37 +119,37 @@ declare namespace axe { * @param {Function} callback The function to invoke when analysis is complete. * @returns {Object} results The aXe results object */ - export function a11yCheck(context: ElementContext, options: {runOnly?: RunOnly, rules?: Object}, callback: (results:AxeResults) => void): AxeResults + export function a11yCheck(context: ElementContext, options: {runOnly?: RunOnly, rules?: Object}, callback: (results: AxeResults) => void): AxeResults; /** * Method for configuring the data format used by aXe. Helpful for adding new * rules, which must be registered with the library to execute. * @param {Spec} Spec Object with valid `branding`, `reporter`, `checks` and `rules` data */ - export function configure(spec: Spec): void + export function configure(spec: Spec): void; /** * Searches and returns rules that contain a tag in the list of tags. * @param {Array} tags Optional array of tags * @return {Array} Array of rules */ - export function getRules(tags?: string[]): Object[] + export function getRules(tags?: string[]): Object[]; /** * Restores the default axe configuration */ - export function reset(): void + export function reset(): void; /** * Function to register a plugin configuration in document and its subframes * @param {Object} plugin A plugin configuration object */ - export function registerPlugin(plugin: AxePlugin): void + export function registerPlugin(plugin: AxePlugin): void; /** * Function to clean up plugin configuration in document and its subframes */ - export function cleanup(): void + export function cleanup(): void; } diff --git a/axios/index.d.ts b/axios/index.d.ts index a2c5bfbd45..43f6526faf 100644 --- a/axios/index.d.ts +++ b/axios/index.d.ts @@ -176,7 +176,7 @@ declare namespace Axios { /** * intercept response of request when it is received. */ - response: ResponseInterceptor + response: ResponseInterceptor; } type InterceptorId = number; @@ -189,8 +189,8 @@ declare namespace Axios { use(fulfilledFn: (config: AxiosXHRConfig) => AxiosXHRConfig): InterceptorId; use(fulfilledFn: (config: AxiosXHRConfig) => AxiosXHRConfig, - rejectedFn: (error: any) => any) - : InterceptorId; + rejectedFn: (error: any) => any + ): InterceptorId; eject(interceptorId: InterceptorId): void; } @@ -203,8 +203,8 @@ declare namespace Axios { use(fulfilledFn: (config: Axios.AxiosXHR) => Axios.AxiosXHR): InterceptorId; use(fulfilledFn: (config: Axios.AxiosXHR) => Axios.AxiosXHR, - rejectedFn: (error: any) => any) - : InterceptorId; + rejectedFn: (error: any) => any + ): InterceptorId; eject(interceptorId: InterceptorId): void; } diff --git a/azure-mobile-apps/azure-mobile-apps-tests.ts b/azure-mobile-apps/azure-mobile-apps-tests.ts index d653e0ae95..97b1573605 100644 --- a/azure-mobile-apps/azure-mobile-apps-tests.ts +++ b/azure-mobile-apps/azure-mobile-apps-tests.ts @@ -8,7 +8,7 @@ import queries = require('azure-mobile-apps/src/query'); var app = express(), mobileApp = mobileApps(); -// various configuration permutations +// various configuration permutations mobileApps({ debug: true, data: { @@ -30,7 +30,7 @@ mobileApps({ // it would be nice to integrate with winston mobileApps({ logging: { level: 'silly', transports: [{}] } }) -// various custom middleware syntaxes +// various custom middleware syntaxes mobileApp.use(function (req: any, res: any, next: any) { next(); }); mobileApp.use([function () {}, function () {}]); mobileApp.use(function () {}, function () {}); @@ -65,7 +65,7 @@ table.read(function (context: Azure.MobileApps.Context) { table.insert(function (context: Azure.MobileApps.Context) { context.query.id = 'anotherId'; context.query.single = true; - context.item.userId = context.user.id; + context.item.userId = context.user.id; context.push.send('tag', {}, function (error, result) {}); context.push.gcm.send('tag', {}, function (error, result) {}); context.push.apns.send('tag', { payload: { } }, function (error, result) {}); diff --git a/azure-mobile-apps/index.d.ts b/azure-mobile-apps/index.d.ts index 53dd5edae3..f50e2fb9b4 100644 --- a/azure-mobile-apps/index.d.ts +++ b/azure-mobile-apps/index.d.ts @@ -30,8 +30,8 @@ declare module "azure-mobile-apps/src/query" { declare namespace Azure.MobileApps { // the additional Platforms namespace is required to avoid collisions with the main Express namespace - export module Platforms { - export module Express { + export namespace Platforms { + export namespace Express { interface MobileApp extends Middleware { configuration: Configuration; tables: Tables; @@ -72,7 +72,7 @@ declare namespace Azure.MobileApps { } } - export module Data { + export namespace Data { interface Table { read(query: QueryJs): Thenable; update(item: any, query: QueryJs): Thenable; @@ -130,7 +130,7 @@ declare namespace Azure.MobileApps { webhook?: Webhook; } - export module Configuration { + export namespace Configuration { // it would be nice to have the config for various providers in separate interfaces, // but this is the simplest solution to support variations of the current setup interface Data { @@ -263,7 +263,7 @@ declare namespace Azure.MobileApps { } type AccessType = 'anonymous' | 'authenticated' | 'disabled'; - + interface Duration { milliseconds?: number; seconds?: number; @@ -317,7 +317,7 @@ declare namespace Azure.MobileApps { // additions to the Express modules declare namespace Express { interface Request { - azureMobile: Azure.MobileApps.Context + azureMobile: Azure.MobileApps.Context; } interface Response { diff --git a/azure-mobile-services-client/AzureMobileServicesClient-tests.ts b/azure-mobile-services-client/AzureMobileServicesClient-tests.ts index d86667fe98..135a00c49e 100644 --- a/azure-mobile-services-client/AzureMobileServicesClient-tests.ts +++ b/azure-mobile-services-client/AzureMobileServicesClient-tests.ts @@ -7,7 +7,7 @@ console.log("Azure application URL: " + client.applicationUrl); console.log("Azure application KEY: " + client.applicationKey.replace(/./gi,'*')); //KEEP IT SECRET!!! -//user authentication, to make it work follow this guide: http://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-with-users-html/?fb=it-it#add-authentication +//user authentication, to make it work follow this guide: http://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-with-users-html/?fb=it-it#add-authentication if (client.currentUser === null) { client.login("facebook") .then((u: Microsoft.WindowsAzure.User) => alert(u.level)) @@ -31,7 +31,7 @@ tableTodoItems.read() alert(n + " items downloaded"), (e) => alert("ERROR: " + e)); -//define simple handler used in callback calls for insert/update and delete +//define simple handler used in callback calls for insert/update and delete function handlerInsUpd(e: any, i: any) { if (!e) data.push( i); }; function handlerDelErr(e: any) { if (e) alert("ERROR: " + e); } @@ -40,7 +40,7 @@ function handlerDelErr(e: any) { if (e) alert("ERROR: " + e); } tableTodoItems.insert({ text: 'hello world!', complete: false }, {timestamp: new Date()} , handlerInsUpd); -//update last item changing complete and calling simple handler when done +//update last item changing complete and calling simple handler when done var todo = data.pop(); todo.complete = !todo.complete; tableTodoItems.update(todo, null, handlerInsUpd) @@ -53,21 +53,21 @@ tableTodoItems.del({ id: data[0].id },null).done(null, handlerDelErr) //testing some simple Query fluent var query = tableTodoItems.select('text', 'id') .where({ complete: false }) - .orderBy('text') + .orderBy('text') query.read().done(printOut); //Execute query remotly and return data filtered - + //testing more complicated Query in composition with previous using function Predicate and Projection var minlength = 15; //parameter value for filter Predicate -query.where(function (len?: number) { return this.text != null && this.text.length > len }, minlength) +query.where(function (len?: number) { return this.text != null && this.text.length > len }, minlength) .orderByDescending('id').skip(2).take(3) //some other ordering and paging filters .select(function () { return { abc: this.text + '|' + this.id }; }) //Projection .read().done(printOut); //return 3 object {abd: 'ttttttttttttttt|ID'} - - + + //function that printout the query result in JSON function printOut(ret:any[]) { if (!ret) console.log("NO DATA FOUND!") else for (var i = 0; i < ret.length; i++) { - console.log(JSON.stringify(ret[i])); } + console.log(JSON.stringify(ret[i])); } } diff --git a/azure-mobile-services-client/index.d.ts b/azure-mobile-services-client/index.d.ts index 8dbb12d2e4..956b287b51 100644 --- a/azure-mobile-services-client/index.d.ts +++ b/azure-mobile-services-client/index.d.ts @@ -27,15 +27,14 @@ declare namespace Microsoft.WindowsAzure { * @param options Contains additional parameter information, valid values are: * body: The body of the HTTP request. * method: The HTTP method to use in the request, with the default being POST, - * parameters: Any additional query string parameters, + * parameters: Any additional query string parameters, * headers: HTTP request headers, specified as an object. * @param callback Optional callback accepting (error, results) parameters. */ invokeApi(apiName: string, options?: InvokeApiOptions, callback?: (error: any, results: any) => void): asyncPromise; } - interface Push - { + interface Push { /** * Register a push channel with the Mobile Apps backend to start receiving notifications. * @@ -55,8 +54,7 @@ declare namespace Microsoft.WindowsAzure { unregister(pushChannel: string, callback?: (error: any, results: any) => void): void; } - interface InvokeApiOptions - { + interface InvokeApiOptions { method?: string; body?: any; headers?: Object; @@ -65,7 +63,7 @@ declare namespace Microsoft.WindowsAzure { // User object based on Microsoft Azure documentation: http://msdn.microsoft.com/en-us/library/windowsazure/jj554220.aspx interface User { - getIdentities(): any;// { [providerName: string]: { userId: string, accessToken: string, accessTokenSecret?: string }; }; + getIdentities(): any; // { [providerName: string]: { userId: string, accessToken: string, accessTokenSecret?: string }; }; accessTokens: any; // { [providerName: string]: string; } level: string; //for level:string use one of LevelEnum: 'admin','anonymous','authenticated' userId: string; diff --git a/azure-sb/index.d.ts b/azure-sb/index.d.ts index 1c8b087815..856846e388 100644 --- a/azure-sb/index.d.ts +++ b/azure-sb/index.d.ts @@ -46,7 +46,7 @@ declare namespace Azure.ServiceBus { */ } - export module Apns { + export namespace Apns { interface Payload { expiry?: Date; aps?: Object; @@ -67,7 +67,7 @@ declare namespace Azure.ServiceBus { listRegistrationsByToken(token: string, optionsOrCallback?: { top: number, skip: number } | Callback, callback?: Callback): void; } } - export module Gcm { + export namespace Gcm { interface Service { new(service: NotificationHubService): Service; send(tags: string | string[], payload: any, callback?: Callback): void; @@ -80,9 +80,9 @@ declare namespace Azure.ServiceBus { } } - export module Mpns { interface Service { } } + export namespace Mpns { interface Service { } } - export module Wns { + export namespace Wns { interface Payload { text1?: string; text2?: string; diff --git a/azure/azure-tests.ts b/azure/azure-tests.ts index 2d60803d3b..1e7f1e2495 100644 --- a/azure/azure-tests.ts +++ b/azure/azure-tests.ts @@ -12,8 +12,8 @@ ts.createTable("babbsies", function (error, table) { Azure.RoleEnvironment.on('stopping', () => { }); -Azure.RoleEnvironment.getDeploymentId((error, id) => { +Azure.RoleEnvironment.getDeploymentId((error, id) => { }); -Azure.RoleEnvironment.isAvailable((error, available) => { +Azure.RoleEnvironment.isAvailable((error, available) => { }); diff --git a/azure/index.d.ts b/azure/index.d.ts index 59d1b9d114..068f13195d 100644 --- a/azure/index.d.ts +++ b/azure/index.d.ts @@ -256,7 +256,7 @@ export declare class BlobService extends StorageServiceClient { setBlobProperties(container: string, blob: string, options: SetBlobPropertiesOptions, callback: StorageCallback): void; /** - * Sets user-defined metadata for the specified blob or snapshot as one or more name-value pairs + * Sets user-defined metadata for the specified blob or snapshot as one or more name-value pairs * It does not return or modify the content of the blob. */ setBlobMetadata(container: string, blob: string, metadata: StorageMetadata, callback: StorageCallback): void; @@ -288,9 +288,9 @@ export declare class BlobService extends StorageServiceClient { /** * Marks the specified blob or snapshot for deletion. The blob is later deleted during garbage collection. - * If a blob has snapshots, you must delete them when deleting the blob. Using the deleteSnapshots option, you can choose either to delete both the blob and its snapshots, + * If a blob has snapshots, you must delete them when deleting the blob. Using the deleteSnapshots option, you can choose either to delete both the blob and its snapshots, * or to delete only the snapshots but not the blob itself. If the blob has snapshots, you must include the deleteSnapshots option or the blob service will return an error - * and nothing will be deleted. + * and nothing will be deleted. * If you are deleting a specific snapshot using the snapshotId option, the deleteSnapshots option must NOT be included. */ deleteBlob(container: string, blob: string, callback: StorageCallback): void; @@ -445,8 +445,8 @@ export declare class BlobService extends StorageServiceClient { //#region Lease Methods /** - * Acquires a new lease. - * If container and blob are specified, acquires a blob lease. + * Acquires a new lease. + * If container and blob are specified, acquires a blob lease. * Otherwise, if only container is specified and blob is null, acquires a container lease. */ acquireLease(container: string, blob: string, callback: StorageCallback): void; @@ -684,7 +684,7 @@ interface RoleEnvironmentInterface extends events.EventEmitter { /** * Indicates whether the role instance is running in the Microsoft Azure - * environment. It is good practice to enclose any code that uses + * environment. It is good practice to enclose any code that uses * service runtime in the isAvailable callback. */ isAvailable(callback: SimpleCallback): void; @@ -702,7 +702,7 @@ interface RoleEnvironmentInterface extends events.EventEmitter { /** * Retrieves the settings in the service configuration file. - * + * * A role's configuration settings are defined in the service definition file. * Values for configuration settings are set in the service configuration file. * For more information on configuration settings, see the [Service Definition Schema](http://msdn.microsoft.com/en-us/library/windowsazure/ee758711.aspx) @@ -719,10 +719,10 @@ interface RoleEnvironmentInterface extends events.EventEmitter { /** * Requests that the current role instance be stopped and restarted. - * + * * Before the role instance is recycled, the Microsoft Azure load balancer takes the role instance out of rotation. * This ensures that no new requests are routed to the instance while it is restarting. - * + * * A call to `RequestRecycle` initiates the normal shutdown cycle. Microsoft Azure raises the * `Stopping` event and calls the `OnStop` method so that you can run the necessary code to * prepare the instance to be recycled. @@ -731,7 +731,7 @@ interface RoleEnvironmentInterface extends events.EventEmitter { /** * Sets the status of the role instance. - * + * * An instance may indicate that it is in one of two states: Ready or Busy. If an instance's state is Ready, it is * prepared to receive requests from the load balancer. If the instance's state is Busy, it will not receive * requests from the load balancer. @@ -1022,7 +1022,7 @@ export declare class SpeedSummary { getCompleteSize(humanReadable: boolean): number; } -export declare module Constants { +export namespace Constants { } @@ -1187,7 +1187,7 @@ export declare class SharedKeyLiteTable { _getCanonicalizedResource(webResource: WebResource): string; } -export declare module ISO8061Date { +export namespace ISO8061Date { /** * Formats a date into an iso 8061 string. */ @@ -1247,7 +1247,7 @@ export declare class ConnectionStringParser { static parse(connectionString: string): Dictionary; } -export declare module ServiceSettings { +export namespace ServiceSettings { export var DEFAULT_PROTOCOL: string; export class NoMatchError implements Error { @@ -1379,7 +1379,7 @@ export declare class ServiceManagementSettinsg { } -export declare module Validate { +export namespace Validate { /** * Checks if the given uri is valid or not. */ @@ -1441,7 +1441,7 @@ export declare module Validate { export function validateArgs(functionName: string, validationRules: Function): boolean; } -export declare module date { +export namespace date { /** * Generates a Date object which is in the given days from now. */ @@ -1511,7 +1511,7 @@ export interface MetadataOptions extends TimeoutIntervalOptions { } export interface StorageAclOptions extends TimeoutIntervalOptions { leaseId?: string; - signedIdentifiers: SignedIdentifier[] + signedIdentifiers: SignedIdentifier[]; } export interface Dictionary { @@ -1543,7 +1543,7 @@ export interface StorageServiceStats { GeoReplication: { Status: string; LastSyncTime: Date; - } + }; } export interface SignedIdentifier { Id: string; @@ -1562,7 +1562,7 @@ export interface SharedAccessPolicy { Start?: Date; Expiry: Date; Permission?: string; - } + }; } //#endregion //#region TableService Interfaces diff --git a/babel-generator/index.d.ts b/babel-generator/index.d.ts index f30505623f..021c731112 100644 --- a/babel-generator/index.d.ts +++ b/babel-generator/index.d.ts @@ -60,7 +60,7 @@ export interface GeneratorOptions { /** * Set to true to reduce whitespace (but not as much as opts.compact). Defaults to `false`. */ - concise?: boolean; + concise?: boolean; /** * The type of quote to use in the output. If omitted, autodetects based on `ast.tokens`. @@ -70,7 +70,7 @@ export interface GeneratorOptions { /** * Used in warning messages */ - filename?: string; + filename?: string; /** * Enable generating source maps. Defaults to `false`. diff --git a/babel-types/index.d.ts b/babel-types/index.d.ts index b3b0f966c6..29d10fffa9 100644 --- a/babel-types/index.d.ts +++ b/babel-types/index.d.ts @@ -976,7 +976,7 @@ export function classMethod(kind?: "constructor" | "method" | "get" | "set", key export function objectPattern(properties?: Array, typeAnnotation?: TypeAnnotation): ObjectPattern; export function spreadElement(argument?: Expression): SpreadElement; export function taggedTemplateExpression(tag?: Expression, quasi?: TemplateLiteral): TaggedTemplateExpression; -export function templateElement(value?: {cooked?: string; raw?: string;}, tail?: boolean): TemplateElement; +export function templateElement(value?: {cooked?: string; raw?: string}, tail?: boolean): TemplateElement; export function templateLiteral(quasis?: TemplateElement[], expressions?: Expression[]): TemplateLiteral; export function yieldExpression(argument?: Expression, delegate?: boolean): YieldExpression; export function anyTypeAnnotation(): AnyTypeAnnotation; diff --git a/babylonjs/index.d.ts b/babylonjs/index.d.ts index ad6d1a242f..0f9d6a5235 100644 --- a/babylonjs/index.d.ts +++ b/babylonjs/index.d.ts @@ -4517,8 +4517,8 @@ declare namespace BABYLON { static ExtrudeShapeCustom(name: string, options: { shape: Vector3[]; path: Vector3[]; - scaleFunction?:any; - rotationFunction?:any; + scaleFunction?: any; + rotationFunction?: any; ribbonCloseArray?: boolean; ribbonClosePath?: boolean; cap?: number; diff --git a/babyparse/babyparse-tests.ts b/babyparse/babyparse-tests.ts index c58957a210..cbf980c246 100644 --- a/babyparse/babyparse-tests.ts +++ b/babyparse/babyparse-tests.ts @@ -986,7 +986,7 @@ runCoreParserTests(); runParseTests(); runUnparseTests(); console.log('passCount=' + passCount + ', failCount=' + failCount); - + // Executes all tests in CORE_PARSER_TESTS from test-cases.js // and renders results in the table. @@ -1172,10 +1172,10 @@ function revealChars(txt:string) { // Make spaces and tabs more obvious when glancing // txt = txt.replace(/( |\t)/ig, '$1'); // txt = txt.replace(/(\r\n|\n\r|\r|\n)/ig, '$1$1'); - // + // // // Make UNIT_SEP and RECORD_SEP characters visible // txt = txt.replace(/(\u001e|\u001f)/ig, '$1$1'); - // + // // // Now make the whitespace and invisible characters // // within the spans actually appear on the page // txt = txt.replace(/">\r\n<\/span>/ig, '">\\r\\n'); @@ -1184,7 +1184,7 @@ function revealChars(txt:string) { // txt = txt.replace(/">\n<\/span>/ig, '">\\n'); // txt = txt.replace(/">\u001e<\/span>/ig, '">\\u001e'); // txt = txt.replace(/">\u001f<\/span>/ig, '">\\u001f'); - // + // return txt; } diff --git a/babyparse/index.d.ts b/babyparse/index.d.ts index 5fd9856ebc..c81bb5db16 100644 --- a/babyparse/index.d.ts +++ b/babyparse/index.d.ts @@ -9,7 +9,7 @@ declare namespace BabyParse { * Parse a csv string or a csv file */ parse(csvString: string, config?: ParseConfig): ParseResult; - + /** * Parse single file or multiple files */ @@ -92,8 +92,8 @@ declare namespace BabyParse { } interface FileObject { - file: string - config?: ParseConfig + file: string; + config?: ParseConfig; } interface ParseError { @@ -137,9 +137,9 @@ declare namespace BabyParse { } -declare var Baby:BabyParse.Static; +declare var Baby: BabyParse.Static; -declare module "babyparse"{ - var Baby:BabyParse.Static; +declare module "babyparse" { + var Baby: BabyParse.Static; export = Baby; } diff --git a/backbone-associations/index.d.ts b/backbone-associations/index.d.ts index 84532c482d..281897f14c 100644 --- a/backbone-associations/index.d.ts +++ b/backbone-associations/index.d.ts @@ -6,7 +6,7 @@ import * as Backbone from 'backbone'; declare module 'backbone' { - export module Associations { + export namespace Associations { /** Defines a 1:Many relationship type */ export var Many: string; /** Defines a 1:1 relationship type */ diff --git a/backbone-fetch-cache/index.d.ts b/backbone-fetch-cache/index.d.ts index 0067bb4443..4330f91d91 100644 --- a/backbone-fetch-cache/index.d.ts +++ b/backbone-fetch-cache/index.d.ts @@ -6,44 +6,38 @@ import * as Backbone from "backbone"; interface SuperMethods { - modelFetch(options?: Backbone.ModelFetchOptions): JQueryXHR; modelSync(...arg: any[]): JQueryXHR; collectionFetch(options?: Backbone.CollectionFetchOptions): JQueryXHR; } interface GetCacheOptions { - data?: any; - url?: string; + url?: string; } interface SetCacheOptions extends GetCacheOptions { - - cache: boolean; - expires: boolean | number; - prefill: boolean; + cache: boolean; + expires: boolean | number; + prefill: boolean; prefillExpires: boolean | number; } interface Cache { - - expires: number; - lastSync: number; + expires: number; + lastSync: number; prefillExpires: number; - value: any; + value: any; } interface GetCacheKeyObject { - getCacheKey?: (opts?: GetCacheOptions) => string; - url?: () => string; + url?: () => string; } type GetCacheKeyOptions = string | {url: string} | GetCacheKeyObject; interface Static { - /** * Global flag to enable/disable caching */ @@ -106,7 +100,6 @@ interface Static { } declare module "backbone" { - var fetchCache: Static; /** @@ -121,16 +114,16 @@ declare module "backbone" { * fulfilled from the cache (if possible) when cache: true is set in * the options hash. */ - cache?: boolean; + cache?: boolean; - context?: any; + context?: any; /** * Cache values expire after 5 minutes by default. You can adjust this * by passing expires: to the fetch call. Set to false to * never expire. */ - expires?: number; + expires?: number; /** * This option allows the model/collection to be populated from the @@ -159,23 +152,20 @@ declare module "backbone" { * prefill expired, use the prefill callback and do a fetch (usual * prefill behaviour) */ - prefill?: boolean; + prefill?: boolean; prefillExpires?: number; prefillSuccess?: (self: any, attributes: any, opts: ModelFetchWithCacheOptions) => void; } interface CollectionFetchWithCacheOptions extends ModelFetchWithCacheOptions { - prefillSuccess?: (self: any) => void; } interface ModelWithCache extends Model { - fetch(options?: ModelFetchWithCacheOptions): JQueryXHR; } interface CollectionWithCache extends Collection { - fetch(options?: CollectionFetchWithCacheOptions): JQueryXHR; } } diff --git a/backbone-relational/index.d.ts b/backbone-relational/index.d.ts index f985a52d8f..f64a3c316e 100644 --- a/backbone-relational/index.d.ts +++ b/backbone-relational/index.d.ts @@ -12,158 +12,158 @@ declare module 'backbone' { /** * Do not use, prefer TypeScript's extend functionality. **/ - //private static extend(properties:any, classProperties?:any):any; + //private static extend(properties: any, classProperties?: any): any; - relations:any; - subModelTypes:any; - subModelTypeAttribute:any; + relations: any; + subModelTypes: any; + subModelTypeAttribute: any; - initializeRelations(options:any):void; + initializeRelations(options: any): void; - updateRelations(options:any):void; + updateRelations(options: any): void; - queue(func:any):void; + queue(func: any): void; - processQueue():void; + processQueue(): void; - getRelation(name:string):Relation; + getRelation(name: string): Relation; - getRelations():Relation[]; + getRelations(): Relation[]; - fetchRelated(key:string, options?:any, update?:boolean):any; + fetchRelated(key: string, options?: any, update?: boolean): any; - toJSON():any; + toJSON(): any; static setup(); - static build(attributes:any, options?:any); + static build(attributes: any, options?: any); - static findOrCreate(attributes:string, options?:any); + static findOrCreate(attributes: string, options?: any); - static findOrCreate(attributes:number, options?:any); + static findOrCreate(attributes: number, options?: any); - static findOrCreate(attributes:any, options?:any); + static findOrCreate(attributes: any, options?: any); } export class Relation extends Model { - options:any; - instance:any; - key:any; - keyContents:any; - relatedModel:any; - relatedCollection:any; - reverseRelation:any; - related:any; + options: any; + instance: any; + key: any; + keyContents: any; + relatedModel: any; + relatedCollection: any; + reverseRelation: any; + related: any; - checkPreconditions():boolean; + checkPreconditions(): boolean; - setRelated(related:Model):void; + setRelated(related: Model): void; - setRelated(related:Collection):void; + setRelated(related: Collection): void; - getReverseRelations(model:RelationalModel):Relation; + getReverseRelations(model: RelationalModel): Relation; - destroy():void; + destroy(): void; } export class HasOne extends Relation { - collectionType:any; + collectionType: any; - findRelated(options:any):Model; + findRelated(options: any): Model; - setKeyContents(keyContents:string):void; + setKeyContents(keyContents: string): void; - setKeyContents(keyContents:string[]):void; + setKeyContents(keyContents: string[]): void; - setKeyContents(keyContents:number):void; + setKeyContents(keyContents: number): void; - setKeyContents(keyContents:number[]):void; + setKeyContents(keyContents: number[]): void; - setKeyContents(keyContents:Collection):void; + setKeyContents(keyContents: Collection): void; - onChange(model:Model, attr:any, options:any):void; + onChange(model: Model, attr: any, options: any): void; - handleAddition(model:Model, coll:Collection, options:any):void; + handleAddition(model: Model, coll: Collection, options: any): void; - handleRemoval(model:Model, coll:Collection, options:any):void; + handleRemoval(model: Model, coll: Collection, options: any): void; - handleReset(coll:Collection, options:any):void; + handleReset(coll: Collection, options: any): void; - tryAddRelated(model:Model, coll:any, options:any):void; + tryAddRelated(model: Model, coll: any, options: any): void; - addRelated(model:Model, options:any):void; + addRelated(model: Model, options: any): void; - removeRelated(model:Model, coll:any, options:any):void; + removeRelated(model: Model, coll: any, options: any): void; } export class HasMany extends Relation { - collectionType:any; + collectionType: any; - findRelated(options:any):Model; + findRelated(options: any): Model; - setKeyContents(keyContents:string):void; + setKeyContents(keyContents: string): void; - setKeyContents(keyContents:number):void; + setKeyContents(keyContents: number): void; - setKeyContents(keyContents:Model):void; + setKeyContents(keyContents: Model): void; - onChange(model:Model, attr:any, options:any):void; + onChange(model: Model, attr: any, options: any): void; - tryAddRelated(model:Model, coll:any, options:any):void; + tryAddRelated(model: Model, coll: any, options: any): void; - addRelated(model:Model, options:any):void; + addRelated(model: Model, options: any): void; - removeRelated(model:Model, coll:any, options:any):void; + removeRelated(model: Model, coll: any, options: any): void; } export class Store extends Events { initializeRelation(model, relation, options); - addModelScope(scope:any):void; + addModelScope(scope: any): void; - removeModelScope(scope):void; + removeModelScope(scope): void; - addSubModels(subModelTypes:RelationalModel, superModelType:RelationalModel):void; + addSubModels(subModelTypes: RelationalModel, superModelType: RelationalModel): void; - setupSuperModel(modelType:RelationalModel):void; + setupSuperModel(modelType: RelationalModel): void; - addReverseRelation(relation:any):void; + addReverseRelation(relation: any): void; - addOrphanRelation(relation:any):void; + addOrphanRelation(relation: any): void; - processOrphanRelations():void; + processOrphanRelations(): void; - retroFitRelation(relation:RelationalModel, create:boolean):Collection; + retroFitRelation(relation: RelationalModel, create: boolean): Collection; - getCollection(type:RelationalModel, create:boolean):Collection; + getCollection(type: RelationalModel, create: boolean): Collection; - getObjectByName(name:string):any; + getObjectByName(name: string): any; - resolveIdForItem(type:any, item:any):any; + resolveIdForItem(type: any, item: any): any; - static find(type:any, item:string):RelationalModel; + static find(type: any, item: string): RelationalModel; - static find(type:any, item:number):RelationalModel; + static find(type: any, item: number): RelationalModel; - static find(type:any, item:RelationalModel):RelationalModel; + static find(type: any, item: RelationalModel): RelationalModel; - static find(type:any, item:any):RelationalModel; + static find(type: any, item: any): RelationalModel; - register(model:RelationalModel):void; + register(model: RelationalModel): void; - checkId(model:RelationalModel, id:any):void; + checkId(model: RelationalModel, id: any): void; - update(model:RelationalModel):void; + update(model: RelationalModel): void; - unregister(model:RelationalModel, collection:Collection, options:any):void; + unregister(model: RelationalModel, collection: Collection, options: any): void; - reset():void; + reset(): void; } diff --git a/backbone.layoutmanager/backbone.layoutmanager-tests.ts b/backbone.layoutmanager/backbone.layoutmanager-tests.ts index fe11ce9b18..f641a972a6 100644 --- a/backbone.layoutmanager/backbone.layoutmanager-tests.ts +++ b/backbone.layoutmanager/backbone.layoutmanager-tests.ts @@ -26,7 +26,7 @@ class View extends Backbone.Layout { "mouseleave": "removeElement" } } - + wrapElement(): void { this.$el.wrap(""); } diff --git a/backbone.layoutmanager/index.d.ts b/backbone.layoutmanager/index.d.ts index a5c469eb1b..464d5fe299 100644 --- a/backbone.layoutmanager/index.d.ts +++ b/backbone.layoutmanager/index.d.ts @@ -26,26 +26,26 @@ declare module 'backbone' { afterRender(): void; cleanup(): void; - fetchTemplate(path: string): (context:any)=>string; - async():(compiled:(context:any)=>void)=>void; + fetchTemplate(path: string): (context: any) => string; + async(): (compiled: (context: any) => void) => void; promise(): JQueryPromise; getAllOptions(): LayoutOptions; - getView(fn?:any): any; - getViews(fn?:any): any[]; + getView(fn?: any): any; + getViews(fn?: any): any[]; - insertView(selector:any, view?:any): any; // return view; - insertViews(views:any): Layout; // return this; + insertView(selector: any, view?: any): any; // return view; + insertViews(views: any): Layout; // return this; remove(): Layout; - removeView(fn:any): Layout; + removeView(fn: any): Layout; render(): Layout; // return this renderViews(): Layout; // return this - setView(name: any, view: U, insert?:boolean): U; // return view - setViews(views:any): Layout; // return this - then(fn:()=>void):void; + setView(name: any, view: U, insert?: boolean): U; // return view + setViews(views: any): Layout; // return this + then(fn: () => void): void; static cache(path: string, contents?: any): any; static cleanViews(views: any): void; diff --git a/backbone.marionette/index.d.ts b/backbone.marionette/index.d.ts index fd49a89cc1..6a5c8a8ec5 100644 --- a/backbone.marionette/index.d.ts +++ b/backbone.marionette/index.d.ts @@ -689,7 +689,7 @@ declare namespace Marionette { * Defines `triggers` to forward DOM events to view * events. `triggers: {"click .foo": "do:foo"}` */ - triggers:{[key:string]:any}; + triggers: {[key: string]: any}; /** * A configuration hash for models. The left side is the event on @@ -733,7 +733,7 @@ declare namespace Marionette { * Retrieve an object's attribute either directly from the object, or * from the object's this.options, with this.options taking precedence. */ - getOption(optionName:string): T; + getOption(optionName: string): T; mixinTemplateHelpers(target?: any): any; configureTriggers(): any; @@ -894,7 +894,7 @@ declare namespace Marionette { * Backbone view object definition, not an instance. It can be any * Backbone.View or be derived from Marionette.ItemView */ - childView: new (...args:any[]) => TView; + childView: new (...args: any[]) => TView; /** * There may be scenarios where you need to pass data from your parent @@ -1030,7 +1030,7 @@ declare namespace Marionette { * instantiated when a Model needs to be initially rendered. This method * also gives you the ability to customize per Model ChildViews. */ - getChildView(item: M): new (...args:any[]) => TView; + getChildView(item: M): new (...args: any[]) => TView; /** * If you need the emptyView's class chosen dynamically, specify @@ -1138,7 +1138,7 @@ declare namespace Marionette { * CompositeView's template is rendered and the childView's templates are * added to this. */ - childView: new (...args:any[]) => TView; + childView: new (...args: any[]) => TView; /** * By default the composite view uses the same attachHtml method that the @@ -1181,7 +1181,7 @@ declare namespace Marionette { /** * The LayoutView takes an additional parameter where you can pass the regions as option on creation. */ - regions?:any; + regions?: any; /** * This option removes the layoutView from the DOM before destroying the diff --git a/backbone.paginator/index.d.ts b/backbone.paginator/index.d.ts index 521ccda8bf..0a1d1dc680 100644 --- a/backbone.paginator/index.d.ts +++ b/backbone.paginator/index.d.ts @@ -7,24 +7,24 @@ import * as Backbone from 'backbone'; declare module 'backbone' { interface PageableState { - firstPage?: number; - lastPage?: number; - currentPage?: number; - pageSize?: number; - totalPages?: number; + firstPage?: number; + lastPage?: number; + currentPage?: number; + pageSize?: number; + totalPages?: number; totalRecords?: number; - sortKey?: string; - order?: number; + sortKey?: string; + order?: number; } interface PageableQueryParams { - currentPage?: string; - pageSize?: string; - totalPages?: string; + currentPage?: string; + pageSize?: string; + totalPages?: string; totalRecords?: string; - sortKey?: string; - order?: string; - directions?: any; + sortKey?: string; + order?: string; + directions?: any; } interface PageableInitialOptions { @@ -45,13 +45,13 @@ declare module 'backbone' { } interface PageableSwitchModeOptions { - fetch?: boolean; + fetch?: boolean; resetState?: boolean; } type PageableGetPageOptions = CollectionFetchOptions|Silenceable; - class PageableCollection extends Collection{ + class PageableCollection extends Collection { fullCollection: Collection; mode: string; @@ -65,10 +65,10 @@ declare module 'backbone' { getFirstPage(options?: PageableGetPageOptions): JQueryXHR|PageableCollection; - getLastPage(options?: PageableGetPageOptions): + getLastPage(options?: PageableGetPageOptions): JQueryXHR|PageableCollection; - getNextPage(options?: PageableGetPageOptions): + getNextPage(options?: PageableGetPageOptions): JQueryXHR|PageableCollection; getPage(index: number|string, options?: PageableGetPageOptions): @@ -80,7 +80,7 @@ declare module 'backbone' { getPreviousPage(options?: PageableGetPageOptions): JQueryXHR|PageableCollection; - hasNextPage(): boolean; + hasNextPage(): boolean; hasPreviousPage(): boolean; diff --git a/backbone/index.d.ts b/backbone/index.d.ts index 975d7f33c9..04090699b3 100644 --- a/backbone/index.d.ts +++ b/backbone/index.d.ts @@ -119,7 +119,7 @@ declare namespace Backbone { collection: Collection; private _changing: boolean; - private _previousAttributes : any; + private _previousAttributes: any; private _pending: boolean; @@ -173,7 +173,7 @@ declare namespace Backbone { has(attribute: string): boolean; hasChanged(attribute?: string): boolean; isNew(): boolean; - isValid(options?:any): boolean; + isValid(options?: any): boolean; previous(attribute: string): any; previousAttributes(): any[]; save(attributes?: any, options?: ModelSaveOptions): any; @@ -206,7 +206,7 @@ declare namespace Backbone { **/ private static extend(properties: any, classProperties?: any): any; - model: new (...args:any[]) => TModel; + model: new (...args: any[]) => TModel; models: TModel[]; length: number; @@ -241,12 +241,12 @@ declare namespace Backbone { unshift(model: TModel, options?: AddOptions): TModel; where(properties: any): TModel[]; findWhere(properties: any): TModel; - modelId(attrs: any) : any + modelId(attrs: any): any private _prepareModel(attributes?: any, options?: any): any; private _removeReference(model: TModel): void; private _onModelEvent(event: string, model: TModel, collection: Collection, options: any): void; - private _isModel(obj: any) : obj is Model; + private _isModel(obj: any): obj is Model; /** * Return a shallow copy of this collection's models, using the same options as native Array#slice. @@ -336,7 +336,7 @@ declare namespace Backbone { navigate(fragment: string, options?: NavigateOptions): Router; navigate(fragment: string, trigger?: boolean): Router; - execute(callback: Function, args: any[], name: string) : void; + execute(callback: Function, args: any[], name: string): void; private _bindRoutes(): void; private _routeToRegExp(route: string): RegExp; diff --git a/backgrid/backgrid-tests.ts b/backgrid/backgrid-tests.ts index 225d8a6ef1..a49e7e4457 100644 --- a/backgrid/backgrid-tests.ts +++ b/backgrid/backgrid-tests.ts @@ -10,7 +10,7 @@ import * as Backbone from 'backbone'; */ class TestModel extends Backbone.Model { - + get Id(): number { return this.get('id'); } set Id(value: number) { this.set('id', value); } get FirstName(): string { return this.get('FirstName'); } @@ -19,7 +19,7 @@ class TestModel extends Backbone.Model { get LastName(): string { return this.get('LastName'); } set EMail(value: string) { this.set('EMail', value); } get EMail(): string { return this.get('EMail'); } - + } @@ -44,30 +44,30 @@ class TestCollection extends Backbone.Collection { class TestView extends Backbone.View { gridView: Backgrid.Grid; testCollection: TestCollection; - + constructor(viewOptions?: Backbone.ViewOptions) { super(viewOptions); this.testCollection = new TestCollection(); this.gridView = new Backgrid.Grid({ - columns: [new Backgrid.Column({name: "FirstName", cell: "string", label: "First Name"}), + columns: [new Backgrid.Column({name: "FirstName", cell: "string", label: "First Name"}), new Backgrid.Column({name: "LastName", cell: "string", label: "Last Name"}), new Backgrid.Column({name: "EMail", cell: "string", label: "E-Mail"})], collection:this.testCollection, }); - - + + } - + initialize() { } - + render() { this.$el.empty(); this.$el.append(this.gridView.render().$el); //this.testCollection.fetch(); return this; } - + } diff --git a/backgrid/index.d.ts b/backgrid/index.d.ts index 83dc86bcbe..abdbedc282 100644 --- a/backgrid/index.d.ts +++ b/backgrid/index.d.ts @@ -55,7 +55,7 @@ declare namespace Backgrid { class SelectFormatter extends CellFormatter {} - class CellEditor extends Backbone.View{ + class CellEditor extends Backbone.View { initialize(options?: any); postRender(model: Backbone.Model, column: Backbone.Model); } @@ -65,7 +65,7 @@ declare namespace Backgrid { saveOrCancel(event: any); } - class Cell extends Backbone.View{ + class Cell extends Backbone.View { tagName: string; formatter: CellFormatter; editor: InputCellEditor; diff --git a/baconjs/index.d.ts b/baconjs/index.d.ts index 8659ea9115..bfa71f1b81 100644 --- a/baconjs/index.d.ts +++ b/baconjs/index.d.ts @@ -15,7 +15,7 @@ interface JQuery { * @example * $("#my-div").asEventStream("click"); */ - asEventStream(eventName:string):Bacon.EventStream; + asEventStream(eventName: string): Bacon.EventStream; /** * @method @@ -26,7 +26,7 @@ interface JQuery { * @example * $("#my-div").asEventStream("click", ".more-specific-selector"); */ - asEventStream(eventName:string, selector:string):Bacon.EventStream; + asEventStream(eventName: string, selector: string): Bacon.EventStream; /** * @callback JQuery#asEventStream1~f @@ -43,7 +43,7 @@ interface JQuery { * @example * $("#my-div").asEventStream("click", (event, args) => args[0]); */ - asEventStream(eventName:string, f:(event:JQueryEventObject, args:any[]) => A):Bacon.EventStream; + asEventStream(eventName: string, f: (event: JQueryEventObject, args: any[]) => A): Bacon.EventStream; /** * @callback JQuery#asEventStream2~f @@ -61,7 +61,7 @@ interface JQuery { * @example * $("#my-div").asEventStream("click", ".more-specific-selector", (event, args) => args[0]); */ - asEventStream(eventName:string, selector:string, f:(event:JQueryEventObject, args:any[]) => A):Bacon.EventStream; + asEventStream(eventName: string, selector: string, f: (event: JQueryEventObject, args: any[]) => A): Bacon.EventStream; } /** @module Bacon */ @@ -78,7 +78,7 @@ declare namespace Bacon { * Bacon.fromPromise($.ajax("https://baconjs.github.io/"), true); * Bacon.fromPromise(Promise.resolve(1), false); */ - function fromPromise(promise:Promise|JQueryXHR, abort?:boolean):EventStream; + function fromPromise(promise: Promise|JQueryXHR, abort?: boolean): EventStream; /** * @callback Bacon.fromPromise~eventTransformer @@ -93,14 +93,14 @@ declare namespace Bacon { * @param {Bacon.fromPromise~eventTransformer} eventTransformer * @returns {EventStream} * @example - * Bacon.fromPromise($.ajax("https://baconjs.github.io/"), true, (n:string) => { + * Bacon.fromPromise($.ajax("https://baconjs.github.io/"), true, (n: string) => { * return [new Bacon.Next(n), new Bacon.Next(() => n), new Bacon.End()]; * }); * Bacon.fromPromise(Promise.resolve(1), false, n => { * return [new Bacon.Next(n), new Bacon.Next(() => n), new Bacon.End()]; * }); */ - function fromPromise(promise:Promise|JQueryXHR, abort:boolean, eventTransformer:(value:A) => (Initial|Next|End|Error)[]):EventStream; + function fromPromise(promise: Promise|JQueryXHR, abort: boolean, eventTransformer: (value: A) => (Initial|Next|End|Error)[]): EventStream; /** * @function @@ -119,7 +119,7 @@ declare namespace Bacon { * alert("Bacon!"); * }); */ - function fromEvent(target:EventTarget|NodeJS.EventEmitter|JQuery, eventName:string):EventStream; + function fromEvent(target: EventTarget|NodeJS.EventEmitter|JQuery, eventName: string): EventStream; /** * @callback Bacon.fromEvent~eventTransformer @@ -134,11 +134,11 @@ declare namespace Bacon { * @param {Bacon.fromEvent~eventTransformer} eventTransformer * @returns {EventStream} * @example - * Bacon.fromEvent(document.body, "click", (event:MouseEvent) => event.clientX).onValue(clientX => { + * Bacon.fromEvent(document.body, "click", (event: MouseEvent) => event.clientX).onValue(clientX => { * alert("Bacon!"); * }); */ - function fromEvent(target:EventTarget|NodeJS.EventEmitter|JQuery, eventName:string, eventTransformer:(event:A) => B):EventStream; + function fromEvent(target: EventTarget|NodeJS.EventEmitter|JQuery, eventName: string, eventTransformer: (event: A) => B): EventStream; /** * @callback Bacon.fromCallback1~f @@ -163,7 +163,7 @@ declare namespace Bacon { * }, 1000); * }); */ - function fromCallback(f:(callback:(...args:any[]) => void) => void):EventStream; + function fromCallback(f: (callback: (...args: any[]) => void) => void): EventStream; /** * @callback Bacon.fromCallback2~f @@ -182,7 +182,7 @@ declare namespace Bacon { * callback(a + " " + b); * }, Bacon.constant("bacon"), "rules").log(); */ - function fromCallback(f:(...args:any[]) => void, ...args:any[]):EventStream; + function fromCallback(f: (...args: any[]) => void, ...args: any[]): EventStream; /** * @function @@ -192,7 +192,7 @@ declare namespace Bacon { * @param {...*} args * @returns {EventStream} */ - function fromCallback(object:Object, methodName:string, ...args:any[]):EventStream; + function fromCallback(object: Object, methodName: string, ...args: any[]): EventStream; /** * @callback Bacon.fromNodeCallback~f @@ -223,7 +223,7 @@ declare namespace Bacon { * }); * } */ - function fromNodeCallback(f:(callback:(error:E, data:A) => void) => void, ...args:any[]):EventStream; + function fromNodeCallback(f: (callback: (error: E, data: A) => void) => void, ...args: any[]): EventStream; /** * @function @@ -233,7 +233,7 @@ declare namespace Bacon { * @param {...*} args * @returns {EventStream} */ - function fromNodeCallback(object:Object, methodName:string, ...args:any[]):EventStream; + function fromNodeCallback(object: Object, methodName: string, ...args: any[]): EventStream; /** * @callback Bacon.fromPoll~f @@ -246,7 +246,7 @@ declare namespace Bacon { * @param {Bacon.fromPoll~f} f * @returns {EventStream} */ - function fromPoll(interval:number, f:() => Next|End):EventStream; + function fromPoll(interval: number, f: () => Next|End): EventStream; /** * @function Bacon.once @@ -256,7 +256,7 @@ declare namespace Bacon { * @example * Bacon.once(new Bacon.Error("fail")); */ - function once(value:A|Error):EventStream; + function once(value: A|Error): EventStream; /** * @function @@ -266,7 +266,7 @@ declare namespace Bacon { * @example * Bacon.fromArray([1, new Bacon.Error("")]); */ - function fromArray(values:(A|Error)[]):EventStream; + function fromArray(values: (A|Error)[]): EventStream; /** * @function @@ -275,7 +275,7 @@ declare namespace Bacon { * @param {A} value * @returns {EventStream} */ - function interval(interval:number, value:A):EventStream; + function interval(interval: number, value: A): EventStream; /** * @function @@ -284,7 +284,7 @@ declare namespace Bacon { * @param {A[]} values * @returns {EventStream} */ - function sequentially(interval:number, values:A[]):EventStream; + function sequentially(interval: number, values: A[]): EventStream; /** * @function @@ -296,7 +296,7 @@ declare namespace Bacon { * // The following would lead to `1,2,3,1,2,3...` to be repeated indefinitely: * Bacon.fromArray([1, new Bacon.Error("")]); */ - function repeatedly(interval:number, values:A[]):EventStream; + function repeatedly(interval: number, values: A[]): EventStream; /** * @callback Bacon.repeat~f @@ -318,14 +318,14 @@ declare namespace Bacon { * } * }).log(); */ - function repeat(f:(iteration:number) => boolean|Observable):EventStream; + function repeat(f: (iteration: number) => boolean|Observable): EventStream; /** * @function Bacon.never * @description Creates an [EventStream]{@link Bacon.EventStream} that immediately ends. * @returns {EventStream} */ - function never():EventStream; + function never(): EventStream; /** * @function @@ -334,7 +334,7 @@ declare namespace Bacon { * @param {A} value * @returns {EventStream} */ - function later(delay:number, value:A):EventStream; + function later(delay: number, value: A): EventStream; /** * @function @@ -342,7 +342,7 @@ declare namespace Bacon { * @param {A} x * @returns {Property} */ - function constant(x:A):Property; + function constant(x: A): Property; /** * @callback Bacon.fromBinder~subscribe @@ -378,7 +378,7 @@ declare namespace Bacon { * }); * stream.log(); */ - function fromBinder(subscribe:(sink:(value:More|NoMore|(A|Initial|Next|End|Error)|(A|Initial|Next|End|Error)[]) => void) => (() => void)):EventStream; + function fromBinder(subscribe: (sink: (value: More|NoMore|(A|Initial|Next|End|Error)|(A|Initial|Next|End|Error)[]) => void) => (() => void)): EventStream; /** * @interface @@ -391,7 +391,7 @@ declare namespace Bacon { * @constant * @description The opaque value `sink` function may return. See [Bacon.fromBinder]{@link Bacon.fromBinder}. */ - var more:More; + var more: More; /** * @interface @@ -404,7 +404,7 @@ declare namespace Bacon { * @constant * @description The opaque value `sink` function may return. See [Bacon.fromBinder]{@link Bacon.fromBinder}. */ - var noMore:NoMore; + var noMore: NoMore; /** * @class Observable @@ -426,7 +426,7 @@ declare namespace Bacon { * @param {Observable#onValue~f} f * @returns {Observable#onValue~unsubscribe} */ - onValue(f:(value:A) => void):() => void; + onValue(f: (value: A) => void): () => void; /** * @callback Observable#onError~f @@ -443,7 +443,7 @@ declare namespace Bacon { * @param {Observable#onError~f} f * @returns {Observable#onError~unsubscribe} */ - onError(f:(error:E) => void):() => void; + onError(f: (error: E) => void): () => void; /** * @callback Observable#onEnd~f @@ -459,7 +459,7 @@ declare namespace Bacon { * @param {Observable#onEnd~f} f * @returns {Observable#onEnd~unsubscribe} */ - onEnd(f:() => void):() => void; + onEnd(f: () => void): () => void; /** * @callback Observable#toPromise~promiseCtr @@ -472,7 +472,7 @@ declare namespace Bacon { * @param {Observable#toPromise~promiseCtr} [promiseCtr] * @returns {Promise} */ - toPromise(promiseCtr?:(value:A) => Promise):Promise; + toPromise(promiseCtr?: (value: A) => Promise): Promise; /** * @callback Observable#firstToPromise~promiseCtr @@ -485,7 +485,7 @@ declare namespace Bacon { * @param {Observable#firstToPromise~promiseCtr} [promiseCtr] * @returns {Promise} */ - firstToPromise(promiseCtr?:(value:A) => Promise):Promise; + firstToPromise(promiseCtr?: (value: A) => Promise): Promise; /** * @method @@ -493,7 +493,7 @@ declare namespace Bacon { * @param {number} minimumInterval * @returns {EventStream} */ - bufferingThrottle(minimumInterval:number):EventStream; + bufferingThrottle(minimumInterval: number): EventStream; /** * @callback Observable#flatMap~f @@ -511,7 +511,7 @@ declare namespace Bacon { * return text != "" ? parseInt(text) : Bacon.never(); * }); */ - flatMap(f:(value:A) => B|Initial|Next|End|Error|Observable):EventStream; + flatMap(f: (value: A) => B|Initial|Next|End|Error|Observable): EventStream; /** * @callback Observable#flatMapLatest~f @@ -524,7 +524,7 @@ declare namespace Bacon { * @param {Observable#flatMapLatest~f} f * @returns {EventStream} */ - flatMapLatest(f:(value:A) => B|Initial|Next|End|Error|Observable):EventStream; + flatMapLatest(f: (value: A) => B|Initial|Next|End|Error|Observable): EventStream; /** * @callback Observable#flatMapFirst~f @@ -537,7 +537,7 @@ declare namespace Bacon { * @param {Observable#flatMapFirst~f} f * @returns {EventStream} */ - flatMapFirst(f:(value:A) => B|Initial|Next|End|Error|Observable):EventStream; + flatMapFirst(f: (value: A) => B|Initial|Next|End|Error|Observable): EventStream; /** * @callback Observable#flatMapError~f @@ -550,7 +550,7 @@ declare namespace Bacon { * @param {Observable#flatMapError~f} f * @returns {EventStream} */ - flatMapError(f:(error:E) => B|Initial|Next|End|Error|Observable):EventStream; + flatMapError(f: (error: E) => B|Initial|Next|End|Error|Observable): EventStream; /** * @callback Observable#flatMapWithConcurrencyLimit~f @@ -564,7 +564,7 @@ declare namespace Bacon { * @param {Observable#flatMapWithConcurrencyLimit~f} f * @returns {EventStream} */ - flatMapWithConcurrencyLimit(limit:number, f:(value:A) => B|Initial|Next|End|Error|Observable):EventStream; + flatMapWithConcurrencyLimit(limit: number, f: (value: A) => B|Initial|Next|End|Error|Observable): EventStream; /** * @callback Observable#flatMapConcat~f @@ -577,7 +577,7 @@ declare namespace Bacon { * @param {Observable#flatMapConcat~f} f * @returns {EventStream} */ - flatMapConcat(f:(value:A) => B|Initial|Next|End|Error|Observable):EventStream; + flatMapConcat(f: (value: A) => B|Initial|Next|End|Error|Observable): EventStream; /** * @callback Observable#scan~f @@ -594,7 +594,7 @@ declare namespace Bacon { * @example * Bacon.sequentially(1, [1, 2, 3]).scan(0, (a, b) => a + b); */ - scan(seed:B, f:(acc:B, next:A) => B):Property; + scan(seed: B, f: (acc: B, next: A) => B): Property; /** * @callback Observable#fold~f @@ -609,7 +609,7 @@ declare namespace Bacon { * @param {Observable#fold~f} f * @returns {Property} */ - fold(seed:B, f:(acc:B, next:A) => B):Property; + fold(seed: B, f: (acc: B, next: A) => B): Property; /** * @callback Observable#reduce~f @@ -624,7 +624,7 @@ declare namespace Bacon { * @param {Observable#reduce~f} f * @returns {Property} */ - reduce(seed:B, f:(acc:B, next:A) => B):Property; + reduce(seed: B, f: (acc: B, next: A) => B): Property; /** * @callback Observable#diff~f @@ -641,7 +641,7 @@ declare namespace Bacon { * @example * Bacon.sequentially(1, [1, 2, 3]).diff(0, (a, b) => Math.abs(b - a)); */ - diff(start:A, f:(a:A, b:A) => B):Property; + diff(start: A, f: (a: A, b: A) => B): Property; /** * @callback Observable#zip~f @@ -662,7 +662,7 @@ declare namespace Bacon { * x.zip(y, (x, y) => x + y); * } */ - zip(other:EventStream, f:(a:A, b:B) => C):EventStream; + zip(other: EventStream, f: (a: A, b: B) => C): EventStream; /** * @method @@ -676,7 +676,7 @@ declare namespace Bacon { * // The values of `s.slidingWindow(2,2)`would be `[1,2],[2,3],[3,4],[4,5]`: * Bacon.fromArray([1, 2, 3, 4, 5]).slidingWindow(2, 2); */ - slidingWindow(max:number, min?:number):Property; + slidingWindow(max: number, min?: number): Property; /** * @callback Observable#combine~f @@ -691,7 +691,7 @@ declare namespace Bacon { * @param {Observable#combine~f} f * @returns {Property} */ - combine(property2:Property, f:(a:A, b:B) => C):Property; + combine(property2: Property, f: (a: A, b: B) => C): Property; /** * @callback Observable#withStateMachine~f @@ -709,7 +709,7 @@ declare namespace Bacon { * // Calculate the total sum of all numbers in the stream and output the value on stream end: * Bacon.fromArray([1, 2, 3]).withStateMachine(0, (sum, event) => { * if (event.hasValue()) { - * // had to cast to `number` because event:Bacon.Next|Bacon.Error<{}> + * // had to cast to `number` because event: Bacon.Next|Bacon.Error<{}> * return [sum + event.value(), []]; * } else if (event.isEnd()) { * return [undefined, [new Bacon.Next(sum), event]]; @@ -718,7 +718,7 @@ declare namespace Bacon { * } * }); */ - withStateMachine(initState:B, f:(state:B, event:Initial|Next|End|Error) => [B, (Initial|Next|End|Error)[]]):EventStream; + withStateMachine(initState: B, f: (state: B, event: Initial|Next|End|Error) => [B, (Initial|Next|End|Error)[]]): EventStream; /** * @method @@ -735,7 +735,7 @@ declare namespace Bacon { * property.decode({1: {type: "mike"}, 2: {type: "other", whoThen: who}}); * } */ - decode(mapping:Object):Property; + decode(mapping: Object): Property; /** * @method @@ -750,7 +750,7 @@ declare namespace Bacon { * showAjaxIndicator = ajaxRequest.awaiting(ajaxResponse); * } */ - awaiting(otherObservable:Observable):Property; + awaiting(otherObservable: Observable): Property; } /** @@ -770,7 +770,7 @@ declare namespace Bacon { * @param {EventStream#map~f} f * @returns {EventStream} * */ - map(f:(value:A) => B):EventStream; + map(f: (value: A) => B): EventStream; /** * @method @@ -778,7 +778,7 @@ declare namespace Bacon { * @param {B} constant * @returns {EventStream} * */ - map(constant:B):EventStream; + map(constant: B): EventStream; /** * @method @@ -786,7 +786,7 @@ declare namespace Bacon { * @param {string} propertyExtractor * @returns {EventStream} * */ - map(propertyExtractor:string):EventStream; + map(propertyExtractor: string): EventStream; /** * @method @@ -794,7 +794,7 @@ declare namespace Bacon { * @param {Property} property * @returns {EventStream} */ - map(property:Property):EventStream; + map(property: Property): EventStream; /** * @callback EventStream#mapError~f @@ -807,21 +807,21 @@ declare namespace Bacon { * @param {EventStream#mapError~f} f * @returns {EventStream} */ - mapError(f:(error:E) => B):EventStream; + mapError(f: (error: E) => B): EventStream; /** * @method * @description Returns an [EventStream]{@link Bacon.EventStream} containing [Error]{@link Bacon.Error} events only. Same as filtering with a function that always returns `false`. * @returns {EventStream} */ - errors():EventStream; + errors(): EventStream; /** * @method * @description Skips all [Error]{@link Bacon.Error}s. * @returns {EventStream} */ - skipErrors():EventStream; + skipErrors(): EventStream; /** * @callback EventStream#mapEnd~f @@ -833,7 +833,7 @@ declare namespace Bacon { * @param {EventStream#mapEnd~f} f * @returns {EventStream} */ - mapEnd(f:() => A):EventStream; + mapEnd(f: () => A): EventStream; /** * @method @@ -841,7 +841,7 @@ declare namespace Bacon { * @param {A} value * @returns {EventStream} */ - mapEnd(value:A):EventStream; + mapEnd(value: A): EventStream; /** * @callback EventStream#filter~f @@ -854,7 +854,7 @@ declare namespace Bacon { * @param {EventStream#filter~f} f * @returns {EventStream} */ - filter(f:(value:A) => boolean):EventStream; + filter(f: (value: A) => boolean): EventStream; /** * @method @@ -862,7 +862,7 @@ declare namespace Bacon { * @param {boolean} bool * @returns {EventStream} */ - filter(bool:boolean):EventStream; + filter(bool: boolean): EventStream; /** * @method @@ -870,7 +870,7 @@ declare namespace Bacon { * @param {string} propertyExtractor * @returns {EventStream} */ - filter(propertyExtractor:string):EventStream; + filter(propertyExtractor: string): EventStream; /** * @method @@ -878,7 +878,7 @@ declare namespace Bacon { * @param {Property} property * @returns {EventStream} */ - filter(property:Property):EventStream; + filter(property: Property): EventStream; /** * @callback EventStream#takeWhile~f @@ -891,7 +891,7 @@ declare namespace Bacon { * @param {EventStream#takeWhile} f * @returns {EventStream} */ - takeWhile(f:(value:A) => boolean):EventStream; + takeWhile(f: (value: A) => boolean): EventStream; /** * @method @@ -899,7 +899,7 @@ declare namespace Bacon { * @param {Property} property * @returns {EventStream} */ - takeWhile(property:Property):EventStream; + takeWhile(property: Property): EventStream; /** * @method @@ -907,7 +907,7 @@ declare namespace Bacon { * @param {number} n * @returns {EventStream} */ - take(n:number):EventStream; + take(n: number): EventStream; /** * @method @@ -915,14 +915,14 @@ declare namespace Bacon { * @param {EventStream} stream * @returns {EventStream} */ - takeUntil(stream:EventStream):EventStream; + takeUntil(stream: EventStream): EventStream; /** * @method * @description Takes the first element from the [EventStream]{@link Bacon.EventStream}. Essentially [Observable.take]{@link Bacon.EventStream#take}(1). * @returns {EventStream} */ - first():EventStream; + first(): EventStream; /** * @method @@ -932,7 +932,7 @@ declare namespace Bacon { * // This creates the stream which doesn't produce any events and never ends: * Bacon.interval(1e1, 0).last(); */ - last():EventStream; + last(): EventStream; /** * @method @@ -940,7 +940,7 @@ declare namespace Bacon { * @param {number} n * @returns {EventStream} */ - skip(n:number):EventStream; + skip(n: number): EventStream; /** * @method @@ -948,7 +948,7 @@ declare namespace Bacon { * @param {number} delay * @returns {EventStream} */ - delay(delay:number):EventStream; + delay(delay: number): EventStream; /** * @method EventStream#throttle @@ -956,7 +956,7 @@ declare namespace Bacon { * @param {number} delay * @returns {EventStream} */ - throttle(delay:number):EventStream; + throttle(delay: number): EventStream; /** * @method EventStream#debounce @@ -964,7 +964,7 @@ declare namespace Bacon { * @param {number} delay * @returns {EventStream} */ - debounce(delay:number):EventStream; + debounce(delay: number): EventStream; /** * @method @@ -972,7 +972,7 @@ declare namespace Bacon { * @param {number} delay * @returns {EventStream} */ - debounceImmediate(delay:number):EventStream; + debounceImmediate(delay: number): EventStream; /** * @callback EventStream#doAction~f @@ -985,7 +985,7 @@ declare namespace Bacon { * @param {EventStream#doAction~f} f * @returns {EventStream} */ - doAction(f:(value:A) => void):EventStream; + doAction(f: (value: A) => void): EventStream; /** * @method @@ -993,7 +993,7 @@ declare namespace Bacon { * @param {string} propertyExtractor * @returns {EventStream} */ - doAction(propertyExtractor:string):EventStream; + doAction(propertyExtractor: string): EventStream; /** * @callback EventStream#doError~f @@ -1006,14 +1006,14 @@ declare namespace Bacon { * @param {EventStream#doError~f} f * @returns {EventStream} */ - doError(f:(error:E) => void):EventStream; + doError(f: (error: E) => void): EventStream; /** * @method * @description Returns an [EventStream]{@link Bacon.EventStream} that inverts boolean values. * @returns {EventStream} */ - not():EventStream; + not(): EventStream; /** * @method EventStream#log @@ -1021,21 +1021,21 @@ declare namespace Bacon { * @param {string} [label] * @returns {EventStream} */ - log(label?:string):EventStream; + log(label?: string): EventStream; /** * @method EventStream#doLog * @description Logs each value of the [EventStream]{@link Bacon.EventStream} to the console. [doLog]{@link Bacon.EventStream#doLog} behaves like [log]{@link Bacon.EventStream#log} but does not subscribe to the EventStream. You can think of `doLog` as a logger function that – unlike `log` – is safe to use in production. `doLog` is safe, because it does not cause the same surprising side-effects as `log` does. * @returns {EventStream} */ - doLog():EventStream; + doLog(): EventStream; /** * @method * @description Ends the [EventStream]{@link Bacon.EventStream} on first [Error]{@link Bacon.Error} event. The error is included in the output of the returned EventStream. * @returns {EventStream} */ - endOnError():EventStream; + endOnError(): EventStream; /** * @callback EventStream#endOnError~f @@ -1048,7 +1048,7 @@ declare namespace Bacon { * @param {EventStream#endOnError} f * @returns {EventStream} */ - endOnError(f:(error:E) => boolean):EventStream; + endOnError(f: (error: E) => boolean): EventStream; /** * @callback EventStream#withHandler~f @@ -1071,7 +1071,7 @@ declare namespace Bacon { * } * }); */ - withHandler(f:(event:Initial|Next|End|Error) => any):EventStream; + withHandler(f: (event: Initial|Next|End|Error) => any): EventStream; /** * @method @@ -1079,7 +1079,7 @@ declare namespace Bacon { * @param {string} newName * @returns {EventStream} */ - name(newName:string):EventStream; + name(newName: string): EventStream; /** * @method @@ -1098,7 +1098,7 @@ declare namespace Bacon { * console.log(obs.toString()); * // Bacon.once(1).times(-1) */ - withDescription(...param:any[]):EventStream; + withDescription(...param: any[]): EventStream; /** * @callback EventStream#groupBy1~keyF @@ -1111,7 +1111,7 @@ declare namespace Bacon { * @param {EventStream#groupBy1~keyF} keyF * @returns {EventStream>} */ - groupBy(keyF:(value:A) => B):EventStream>; + groupBy(keyF: (value: A) => B): EventStream>; /** * @callback keyF @@ -1130,7 +1130,7 @@ declare namespace Bacon { * @param {limitF} limitF * @returns {EventStream>} Grouped streams. */ - groupBy(keyF:(value:A) => B, limitF:(groupedStream:EventStream, groupStartingEvent:Initial|Next|End|Error) => EventStream):EventStream>; + groupBy(keyF: (value: A) => B, limitF: (groupedStream: EventStream, groupStartingEvent: Initial|Next|End|Error) => EventStream): EventStream>; /** * @callback EventStream#subscribe~f @@ -1147,7 +1147,7 @@ declare namespace Bacon { * @param {EventStream#subscribe~f} f * @returns {EventStream#subscribe~unsubscribe} */ - subscribe(f:(event:Event) => void|NoMore):() => void; + subscribe(f: (event: Event) => void|NoMore): () => void; /** * @callback EventStream#onValue~f @@ -1164,7 +1164,7 @@ declare namespace Bacon { * @param {EventStream#onValue~f} f * @returns {EventStream#onValue~unsubscribe} */ - onValue(f:(value:A) => void):() => void; + onValue(f: (value: A) => void): () => void; /** * @callback EventStream#onValues~f @@ -1181,7 +1181,7 @@ declare namespace Bacon { * @param {EventStream#onValues~f} f * @returns {EventStream#onValues~unsubscribe} */ - onValues(f:(...args:any[]) => void):() => void; + onValues(f: (...args: any[]) => void): () => void; /** * @callback EventStream#skipDuplicates~isEqual @@ -1198,7 +1198,7 @@ declare namespace Bacon { * Bacon.fromArray([1, 2, 2, 1]).skipDuplicates().log(); * // > returns [1, 2, 1] in an order */ - skipDuplicates(isEqual?:(oldValue:A, newValue:A) => boolean):EventStream; + skipDuplicates(isEqual?: (oldValue: A, newValue: A) => boolean): EventStream; /** * @method @@ -1206,7 +1206,7 @@ declare namespace Bacon { * @param {EventStream} otherStream * @returns {EventStream} */ - concat(otherStream:EventStream):EventStream; + concat(otherStream: EventStream): EventStream; /** * @method @@ -1214,7 +1214,7 @@ declare namespace Bacon { * @param {EventStream} otherStream * @returns {EventStream} */ - merge(otherStream:EventStream):EventStream; + merge(otherStream: EventStream): EventStream; /** * @method @@ -1222,7 +1222,7 @@ declare namespace Bacon { * @param {Observable} valve * @returns {EventStream} */ - holdWhen(valve:Observable):EventStream; + holdWhen(valve: Observable): EventStream; /** * @method @@ -1230,7 +1230,7 @@ declare namespace Bacon { * @param {A} value * @returns {EventStream} */ - startWith(value:A):EventStream; + startWith(value: A): EventStream; /** * @callback EventStream#skipWhile~f @@ -1243,7 +1243,7 @@ declare namespace Bacon { * @param {EventStream#skipWhile~f} f * @returns {EventStream} */ - skipWhile(f:(value:A) => boolean):EventStream; + skipWhile(f: (value: A) => boolean): EventStream; /** * @method @@ -1251,7 +1251,7 @@ declare namespace Bacon { * @param {Property} property * @returns {EventStream} */ - skipWhile(property:Property):EventStream; + skipWhile(property: Property): EventStream; /** * @method @@ -1259,7 +1259,7 @@ declare namespace Bacon { * @param {EventStream} stream2 * @returns {EventStream} */ - skipUntil(stream2:EventStream):EventStream; + skipUntil(stream2: EventStream): EventStream; /** * @method @@ -1270,7 +1270,7 @@ declare namespace Bacon { * // You might get two events containing [1,2,3,4] and [5,6,7] respectively, given that the flush occurs between numbers 4 and 5: * Bacon.fromArray([1, 2, 3, 4, 5, 6, 7]).bufferWithTime(0); */ - bufferWithTime(delay:number):EventStream; + bufferWithTime(delay: number): EventStream; /** * @callback EventStream#bufferWithTime~f @@ -1292,7 +1292,7 @@ declare namespace Bacon { * let stream = Bacon.fromArray([1, 2, 3, 4, 5, 6, 7]); * stream.bufferWithTime(f => { setTimeout(f, 10); }); } */ - bufferWithTime(f:(defer:(...args:any[]) => void) => void):EventStream; + bufferWithTime(f: (defer: (...args: any[]) => void) => void): EventStream; /** * @method @@ -1303,7 +1303,7 @@ declare namespace Bacon { * // You will get output events with values `[1, 2]`, `[3, 4]` and `[5]`. * Bacon.fromArray([1, 2, 3, 4, 5]).bufferWithCount(2); */ - bufferWithCount(count:number):EventStream; + bufferWithCount(count: number): EventStream; /** * @method @@ -1312,7 +1312,7 @@ declare namespace Bacon { * @param {number} count * @returns {EventStream} */ - bufferWithTimeOrCount(delay:number, count:number):EventStream; + bufferWithTimeOrCount(delay: number, count: number): EventStream; /** * @method EventStream#toProperty @@ -1320,10 +1320,10 @@ declare namespace Bacon { * @param {A} [initialValue] * @returns {Property} */ - toProperty(initialValue?:A):Property; + toProperty(initialValue?: A): Property; } - var EventStream:{ + var EventStream: { /** * @callback EventStream#new~subscribe * @param {EventStream#new~sink} sink @@ -1345,7 +1345,7 @@ declare namespace Bacon { * @param {EventStream#new~subscribe} subscribe * @returns {EventStream} */ - new(subscribe:(sink:(value:More|NoMore|(A|Initial|Next|End|Error)|(A|Initial|Next|End|Error)[]) => void) => (() => void)):EventStream; + new(subscribe: (sink: (value: More|NoMore|(A|Initial|Next|End|Error)|(A|Initial|Next|End|Error)[]) => void) => (() => void)): EventStream; }; /** @@ -1365,7 +1365,7 @@ declare namespace Bacon { * @param {Property#map~f} f * @returns {Property} * */ - map(f:(value:A) => B):Property; + map(f: (value: A) => B): Property; /** * @method @@ -1373,7 +1373,7 @@ declare namespace Bacon { * @param {B} constant * @returns {Property} * */ - map(constant:B):Property; + map(constant: B): Property; /** * @method @@ -1381,7 +1381,7 @@ declare namespace Bacon { * @param {string} propertyExtractor * @returns {Property} * */ - map(propertyExtractor:string):Property; + map(propertyExtractor: string): Property; /** * @callback Property#mapError~f @@ -1394,21 +1394,21 @@ declare namespace Bacon { * @param {Property#mapError~f} f * @returns {Property} */ - mapError(f:(error:E) => B):Property; + mapError(f: (error: E) => B): Property; /** * @method * @description Returns a [Property]{@link Bacon.Property} containing [Error]{@link Bacon.Error} events only. Same as filtering with a function that always returns false. * @returns {Property} */ - errors():Property; + errors(): Property; /** * @method * @description Skips all [Error]{@link Bacon.Error}s. * @returns {Property} */ - skipErrors():Property; + skipErrors(): Property; /** * @callback Property#mapEnd~f @@ -1420,7 +1420,7 @@ declare namespace Bacon { * @param {Property#mapEnd~f} f * @returns {Property} */ - mapEnd(f:() => A):Property; + mapEnd(f: () => A): Property; /** * @method @@ -1428,7 +1428,7 @@ declare namespace Bacon { * @param {A} value * @returns {Property} */ - mapEnd(value:A):Property; + mapEnd(value: A): Property; /** * @callback Property#filter~f @@ -1441,7 +1441,7 @@ declare namespace Bacon { * @param {Property#filter~f} f * @returns {Property} */ - filter(f:(value:A) => boolean):Property; + filter(f: (value: A) => boolean): Property; /** * @method @@ -1449,7 +1449,7 @@ declare namespace Bacon { * @param {boolean} bool * @returns {Property} */ - filter(bool:boolean):Property; + filter(bool: boolean): Property; /** * @method @@ -1457,7 +1457,7 @@ declare namespace Bacon { * @param {string} propertyExtractor * @returns {Property} */ - filter(propertyExtractor:string):Property; + filter(propertyExtractor: string): Property; /** * @method @@ -1465,7 +1465,7 @@ declare namespace Bacon { * @param {Property} property * @returns {Property} */ - filter(property:Property):Property; + filter(property: Property): Property; /** * @callback Property#takeWhile~f @@ -1478,7 +1478,7 @@ declare namespace Bacon { * @param {Property#takeWhile~f} f * @returns {Property} */ - takeWhile(f:(value:A) => boolean):Property; + takeWhile(f: (value: A) => boolean): Property; /** * @method @@ -1486,7 +1486,7 @@ declare namespace Bacon { * @param {Property} property * @returns {Property} */ - takeWhile(property:Property):Property; + takeWhile(property: Property): Property; /** * @method Property#take @@ -1494,7 +1494,7 @@ declare namespace Bacon { * @param {number} n * @returns {Property} */ - take(n:number):Property; + take(n: number): Property; /** * @method @@ -1502,14 +1502,14 @@ declare namespace Bacon { * @param {EventStream} stream * @returns {Property} */ - takeUntil(stream:EventStream):Property; + takeUntil(stream: EventStream): Property; /** * @method * @description Takes the first element from the [Property]{@link Bacon.Property}. Essentially [Property.take]{@link Bacon.Property#take}(1). * @returns {Property} */ - first():Property; + first(): Property; /** * @method @@ -1519,7 +1519,7 @@ declare namespace Bacon { * // This creates the property which doesn't produce any events and never ends: * Bacon.interval(1e1, 0).toProperty().last(); */ - last():Property; + last(): Property; /** * @method @@ -1527,7 +1527,7 @@ declare namespace Bacon { * @param {number} n * @returns {Property} */ - skip(n:number):Property; + skip(n: number): Property; /** * @method @@ -1535,7 +1535,7 @@ declare namespace Bacon { * @param {number} delay * @returns {Property} */ - delay(delay:number):Property; + delay(delay: number): Property; /** * @method Property#throttle @@ -1543,7 +1543,7 @@ declare namespace Bacon { * @param {number} delay * @returns {Property} */ - throttle(delay:number):Property; + throttle(delay: number): Property; /** * @method Property#debounce @@ -1551,7 +1551,7 @@ declare namespace Bacon { * @param {number} delay * @returns {Property} */ - debounce(delay:number):Property; + debounce(delay: number): Property; /** * @method @@ -1559,7 +1559,7 @@ declare namespace Bacon { * @param {number} delay * @returns {Property} */ - debounceImmediate(delay:number):Property; + debounceImmediate(delay: number): Property; /** * @callback Property#doAction~f @@ -1572,7 +1572,7 @@ declare namespace Bacon { * @param {Property#doAction~f} f * @returns {Property} */ - doAction(f:(value:A) => void):Property; + doAction(f: (value: A) => void): Property; /** * @method @@ -1580,7 +1580,7 @@ declare namespace Bacon { * @param {string} propertyExtractor * @returns {Property} */ - doAction(propertyExtractor:string):Property; + doAction(propertyExtractor: string): Property; /** * @callback Property#doError~f @@ -1593,14 +1593,14 @@ declare namespace Bacon { * @param {Property#doError~f} f * @returns {Property} */ - doError(f:(error:E) => void):Property; + doError(f: (error: E) => void): Property; /** * @method * @description Returns a [Property]{@link Bacon.Property} that inverts boolean values. * @returns {Property} */ - not():Property; + not(): Property; /** * @method Property#log @@ -1608,21 +1608,21 @@ declare namespace Bacon { * @param {string} [label] * @returns {Property} */ - log(label?:string):Property; + log(label?: string): Property; /** * @method Property#doLog * @description Logs each value of the [Property]{@link Bacon.Property} to the console. [doLog]{@link Bacon.Property#doLog} behaves like [log]{@link Bacon.Property#log} but does not subscribe to the Property. You can think of `doLog` as a logger function that – unlike `log` – is safe to use in production. `doLog` is safe, because it does not cause the same surprising side-effects as `log` does. * @returns {Property} */ - doLog():Property; + doLog(): Property; /** * @method * @description Ends the [Property]{@link Bacon.Property} on first [Error]{@link Bacon.Error} event. The error is included in the output of the returned Property. * @returns {Property} */ - endOnError():Property; + endOnError(): Property; /** * @callback Property#endOnError~f @@ -1635,7 +1635,7 @@ declare namespace Bacon { * @param {Property#endOnError~f} f * @returns {Property} */ - endOnError(f:(error:E) => boolean):Property; + endOnError(f: (error: E) => boolean): Property; /** * @callback Property#withHandler~f @@ -1658,7 +1658,7 @@ declare namespace Bacon { * } * }); */ - withHandler(f:(event:Initial|Next|End|Error) => any):Property; + withHandler(f: (event: Initial|Next|End|Error) => any): Property; /** * @method @@ -1666,7 +1666,7 @@ declare namespace Bacon { * @param {string} newName * @returns {Property} */ - name(newName:string):Property; + name(newName: string): Property; /** * @method @@ -1684,14 +1684,14 @@ declare namespace Bacon { * console.log(obs.toString()); * // Bacon.once(1).times(-1) */ - withDescription(...param:any[]):Property; + withDescription(...param: any[]): Property; /** * @method * @description Creates an [EventStream]{@link Bacon.EventStream} based on this [Property]{@link Bacon.Property}. The EventStream contains also an event for the current value of this Property at the time this method was called. * @returns {EventStream} */ - toEventStream():EventStream; + toEventStream(): EventStream; /** * @callback Property#subscribe~f @@ -1708,7 +1708,7 @@ declare namespace Bacon { * @param {Property#subscribe~f} f * @returns {Property#subscribe~unsubscribe} */ - subscribe(f:(event:Event) => void):() => void; + subscribe(f: (event: Event) => void): () => void; /** * @callback Property#onValue~f @@ -1725,7 +1725,7 @@ declare namespace Bacon { * @param {Property#onValue~f} f * @returns {Property#onValue~unsubscribe} */ - onValue(f:(value:A) => void):() => void; + onValue(f: (value: A) => void): () => void; /** * @callback Property#onValues~f @@ -1742,7 +1742,7 @@ declare namespace Bacon { * @param {Property#onValues~f} f * @returns {Property#onValues~unsubscribe} */ - onValues(f:(...args:any[]) => void):() => void; + onValues(f: (...args: any[]) => void): () => void; /** * @method Property#assign @@ -1758,7 +1758,7 @@ declare namespace Bacon { * // A simpler example would be to toggle the visibility of an element based on a Property: * property.assign($("#my-button"), "toggle"); */ - assign(obj:Object, method:string, ...params:any[]):void; + assign(obj: Object, method: string, ...params: any[]): void; /** * @method @@ -1766,7 +1766,7 @@ declare namespace Bacon { * @param {number} interval * @returns {EventStream} */ - sample(interval:number):EventStream; + sample(interval: number): EventStream; /** * @method Property#sampledBy @@ -1774,7 +1774,7 @@ declare namespace Bacon { * @param {EventStream} stream * @returns {EventStream} */ - sampledBy(stream:EventStream):EventStream; + sampledBy(stream: EventStream): EventStream; /** * @method @@ -1782,7 +1782,7 @@ declare namespace Bacon { * @param {Property} property * @returns {Property} */ - sampledBy(property:Property):Property; + sampledBy(property: Property): Property; /** * @callback Property#sampledBy~f @@ -1797,7 +1797,7 @@ declare namespace Bacon { * @param {Property#sampledBy~f} f * @returns {EventStream} */ - sampledBy(streamOrProperty:Observable, f:(propertyValue:A, samplerValue:B) => C):EventStream; + sampledBy(streamOrProperty: Observable, f: (propertyValue: A, samplerValue: B) => C): EventStream; /** * @callback Property#skipDuplicates~isEqual @@ -1811,14 +1811,14 @@ declare namespace Bacon { * @param {Property#skipDuplicates~isEqual} [isEqual] * @returns {Property} */ - skipDuplicates(isEqual?:(oldValue:A, newValue:A) => boolean):Property; + skipDuplicates(isEqual?: (oldValue: A, newValue: A) => boolean): Property; /** * @method Property#changes * @description Returns an [EventStream]{@link Bacon.EventStream} of [Property]{@link Bacon.Property} value changes. Returns exactly the same events as the Property itself, except any [Initial]{@link Bacon.Initial} events (the stream DOES NOT include an event for the current value of the Property at the time this method was called). Note that [Property.changes]{@link Bacon.Property#changes} DOES NOT skip duplicate values, use [Property.skipDuplicates]{@link Bacon.Property#skipDuplicates} for that. * @returns {EventStream} */ - changes():EventStream; + changes(): EventStream; /** * @method @@ -1826,7 +1826,7 @@ declare namespace Bacon { * @param {Property} other * @returns {Property} */ - and(other:Property):Property; + and(other: Property): Property; /** * @method @@ -1834,7 +1834,7 @@ declare namespace Bacon { * @param {Property} other * @returns {Property} */ - or(other:Property):Property; + or(other: Property): Property; /** * @method @@ -1842,7 +1842,7 @@ declare namespace Bacon { * @param {A} value * @returns {Property} */ - startWith(value:A):Property; + startWith(value: A): Property; } /** @@ -1851,7 +1851,7 @@ declare namespace Bacon { * @param {(A|Observable)[]} streams * @returns {Property} */ - function combineAsArray(streams:(A|Observable)[]):Property; + function combineAsArray(streams: (A|Observable)[]): Property; /** * @function @@ -1859,7 +1859,7 @@ declare namespace Bacon { * @param {...(A|Observable)} streams * @returns {Property} */ - function combineAsArray(...streams:(A|Observable)[]):Property; + function combineAsArray(...streams: (A|Observable)[]): Property; /** * @callback Property#combineWith~f @@ -1873,15 +1873,15 @@ declare namespace Bacon { * @param {...(A|Observable)} streams * @returns {Property} */ - function combineWith(f:(...args:A[]) => B, ...streams:(A|Observable)[]):Property; + function combineWith(f: (...args: A[]) => B, ...streams: (A|Observable)[]): Property; /** * @function * @description Combines [Property]{@link Bacon.Property}s, [EventStream]{@link Bacon.EventStream}s and constant values using a `template` object. - * @param {{string:number|boolean|string|Object|Observable}} template + * @param {{string: number|boolean|string|Object|Observable}} template * @returns {Property} */ - function combineTemplate(template:{[label:string]:number|boolean|string|Object|Observable}):Property; + function combineTemplate(template: {[label: string]: number|boolean|string|Object|Observable}): Property; /** * @function @@ -1889,7 +1889,7 @@ declare namespace Bacon { * @param {EventStream[]} streams * @returns {EventStream} */ - function mergeAll(streams:EventStream[]):EventStream; + function mergeAll(streams: EventStream[]): EventStream; /** * @function @@ -1897,7 +1897,7 @@ declare namespace Bacon { * @param {...EventStream} streams * @returns {EventStream} */ - function mergeAll(...streams:EventStream[]):EventStream; + function mergeAll(...streams: EventStream[]): EventStream; /** * @function @@ -1905,7 +1905,7 @@ declare namespace Bacon { * @param {EventStream[]} streams * @returns {EventStream} */ - function zipAsArray(streams:EventStream[]):EventStream; + function zipAsArray(streams: EventStream[]): EventStream; /** * @function @@ -1913,7 +1913,7 @@ declare namespace Bacon { * @param {...EventStream} streams * @returns {EventStream} */ - function zipAsArray(...streams:EventStream[]):EventStream; + function zipAsArray(...streams: EventStream[]): EventStream; /** * @callback Bacon.zipWith1~f @@ -1927,7 +1927,7 @@ declare namespace Bacon { * @param {Bacon.zipWith1~f} f * @returns {EventStream} */ - function zipWith(streams:EventStream[], f:(...args:A[]) => B):EventStream; + function zipWith(streams: EventStream[], f: (...args: A[]) => B): EventStream; /** * @callback Bacon.zipWith2~f @@ -1941,7 +1941,7 @@ declare namespace Bacon { * @param {...EventStream} streams * @returns {EventStream} */ - function zipWith(f:(...args:A[]) => B, ...streams:EventStream[]):EventStream; + function zipWith(f: (...args: A[]) => B, ...streams: EventStream[]): EventStream; /** * @function @@ -1949,7 +1949,7 @@ declare namespace Bacon { * @param {...*} args * @returns {void} */ - function onValues(...args:any[]):void; + function onValues(...args: any[]): void; /** * @class Bus @@ -1963,14 +1963,14 @@ declare namespace Bacon { * @param {A} value * @returns {void} */ - push(value:A):void; + push(value: A): void; /** * @method * @description Ends the [Bus]{@link Bacon.Bus}. Sends an [End]{@link Bacon.End} event to all subscribers. After this call, there'll be no more events to the subscribers. Also, the [Bus.push]{@link Bacon.Bus#push} and [Bus.plug]{@link Bacon.Bus#plug} methods have no effect. * @returns {void} */ - end():void; + end(): void; /** * @method @@ -1978,7 +1978,7 @@ declare namespace Bacon { * @param {E} error * @returns {void} */ - error(error:E):void; + error(error: E): void; /** * @callback Bus#plug~unplug @@ -1990,17 +1990,17 @@ declare namespace Bacon { * @param {EventStream} stream * @returns {Bus#plug~unplug} */ - plug(stream:EventStream):() => void; + plug(stream: EventStream): () => void; } - var Bus:{ + var Bus: { /** * @constructor * @constructs Bacon.Bus * @description Returns a new [Bus]{@link Bacon.Bus}. * @returns {Bus} */ - new():Bus; + new(): Bus; }; /** @@ -2013,42 +2013,42 @@ declare namespace Bacon { * @description Returns the value associated with a [Initial]{@link Bacon.Initial} or [Next]{@link Bacon.Next} event. * @returns {A} */ - value():A; + value(): A; /** * @method * @description Returns `true` for events of type [Initial]{@link Bacon.Initial} or [Next]{@link Bacon.Next}. * @returns {boolean} */ - hasValue():boolean; + hasValue(): boolean; /** * @method Error#isInitial * @description Returns `true` for events of type [Initial]{@link Bacon.Initial}. * @returns {boolean} */ - isInitial():boolean; + isInitial(): boolean; /** * @method Error#isNext * @description Returns `true` for events of type [Next]{@link Bacon.Next}. * @returns {boolean} */ - isNext():boolean; + isNext(): boolean; /** * @method Error#isError * @description Returns `true` for events of type [Error]{@link Bacon.Error}. * @returns {boolean} */ - isError():boolean; + isError(): boolean; /** * @method Error#isEnd * @description Returns `true` for events of type [End]{@link Bacon.End}. * @returns {boolean} */ - isEnd():boolean; + isEnd(): boolean; } /** @@ -2087,14 +2087,14 @@ declare namespace Bacon { * @constructs Error * @param {E} error * */ - constructor(error:E); + constructor(error: E); /** * @property Error#error * @description Returns the `error` associated with an [Error]{@link Bacon.Error} event. * @returns {E} */ - error:E; + error: E; } /** @@ -2121,7 +2121,7 @@ declare namespace Bacon { * @constructs Bacon.Initial * @param {A} value * */ - constructor(value:A); + constructor(value: A); } /** @@ -2137,7 +2137,7 @@ declare namespace Bacon { * @example * new Bacon.Next("value"); * */ - constructor(value:A); + constructor(value: A); /** * @callback Next#constructor @@ -2151,7 +2151,7 @@ declare namespace Bacon { * @example * new Bacon.Next(() => "value"); * */ - constructor(f:() => A); + constructor(f: () => A); } /** @@ -2183,12 +2183,12 @@ declare namespace Bacon { * @param {Bacon.retry1~delay} [options.delay] - function that returns the time in milliseconds to wait before retrying. Defaults to `0`. * @returns {EventStream} */ - function retry(options:{ - source:() => EventStream; - retries:number; - isRetryable?:(error:E) => boolean; - delay?:(context:{error:E; retriesDone:number}) => number; - }):EventStream; + function retry(options: { + source: () => EventStream; + retries: number; + isRetryable?: (error: E) => boolean; + delay?: (context: {error: E; retriesDone: number}) => number; + }): EventStream; /** * @callback Bacon.retry1~source @@ -2219,12 +2219,12 @@ declare namespace Bacon { * @param {Bacon.retry1~delay} [options.delay] - function that returns the time in milliseconds to wait before retrying. Defaults to `0`. * @returns {Property} */ - function retry(options:{ - source:() => Property; - retries:number; - isRetryable?:(error:E) => boolean; - delay?:(context:{error:E; retriesDone:number}) => number; - }):Property; + function retry(options: { + source: () => Property; + retries: number; + isRetryable?: (error: E) => boolean; + delay?: (context: {error: E; retriesDone: number}) => number; + }): Property; /** * @callback Bacon.when1~f1 @@ -2267,8 +2267,8 @@ declare namespace Bacon { * let oxygen = Bacon.interval(1e3, "O"), * hydrogen = Bacon.interval(2e3, "H"), * carbon = Bacon.interval(1.5e3, "C"), - * makeWater = (oxygen:string, hydrogen1:string, hydrogen2:string) => `${hydrogen1}${[hydrogen1, hydrogen2].length}${oxygen}`, - * makeCarbonMonoxide = (oxygen:string, carbon:string) => `${carbon}${oxygen}`; + * makeWater = (oxygen: string, hydrogen1: string, hydrogen2: string) => `${hydrogen1}${[hydrogen1, hydrogen2].length}${oxygen}`, + * makeCarbonMonoxide = (oxygen: string, carbon: string) => `${carbon}${oxygen}`; * Bacon.when( * [oxygen, hydrogen, hydrogen], makeWater, * [oxygen, carbon], makeCarbonMonoxide @@ -2281,8 +2281,8 @@ declare namespace Bacon { * // Properties are not part of the synchronization pattern, but are instead just sampled. The following example take three input streams `$price`, `$quantity` and `$total`, e.g. coming from input fields, and defines mutally recursive behaviours in properties `price`, `quantity` and `total` such that: * // -- updating `quantity` sets `total` to `price * quantity`; * // -- updating `total` sets `price` to `total / quantity`. - * let random = (x:number) => Math.round(x * Math.random()), - * id = (x:A):A => x; + * let random = (x: number) => Math.round(x * Math.random()), + * id = (x: A): A => x; * let $quantity = Bacon.interval(1e3, 10).map(random), * $price = Bacon.interval(2e3, 100).map(random), * $total = Bacon.interval(1.5e3, 1000).map(random); @@ -2306,7 +2306,7 @@ declare namespace Bacon { * // Hungry could be any type of observable, but we'll use bus here. * hungry = [new Bacon.Bus(), new Bacon.Bus(), new Bacon.Bus()], * // A philosopher eats for one second, then makes the chopsticks available again by pushing values onto their bus. - * eat = (i:number) => () => { + * eat = (i: number) => () => { * setTimeout(() => { * console.log("done!"); * chopsticks[i].push({}); @@ -2332,7 +2332,7 @@ declare namespace Bacon { * } * } */ - function when(pattern1:Observable[], f1:(...args:A1[]) => B):EventStream; + function when(pattern1: Observable[], f1: (...args: A1[]) => B): EventStream; /** * @callback Bacon.when2~f1 @@ -2382,8 +2382,8 @@ declare namespace Bacon { * let oxygen = Bacon.interval(1e3, "O"), * hydrogen = Bacon.interval(2e3, "H"), * carbon = Bacon.interval(1.5e3, "C"), - * makeWater = (oxygen:string, hydrogen1:string, hydrogen2:string) => `${hydrogen1}${[hydrogen1, hydrogen2].length}${oxygen}`, - * makeCarbonMonoxide = (oxygen:string, carbon:string) => `${carbon}${oxygen}`; + * makeWater = (oxygen: string, hydrogen1: string, hydrogen2: string) => `${hydrogen1}${[hydrogen1, hydrogen2].length}${oxygen}`, + * makeCarbonMonoxide = (oxygen: string, carbon: string) => `${carbon}${oxygen}`; * Bacon.when( * [oxygen, hydrogen, hydrogen], makeWater, * [oxygen, carbon], makeCarbonMonoxide @@ -2396,8 +2396,8 @@ declare namespace Bacon { * // Properties are not part of the synchronization pattern, but are instead just sampled. The following example take three input streams `$price`, `$quantity` and `$total`, e.g. coming from input fields, and defines mutally recursive behaviours in properties `price`, `quantity` and `total` such that: * // -- updating `quantity` sets `total` to `price * quantity`; * // -- updating `total` sets `price` to `total / quantity`. - * let random = (x:number) => Math.round(x * Math.random()), - * id = (x:A):A => x; + * let random = (x: number) => Math.round(x * Math.random()), + * id = (x: A): A => x; * let $quantity = Bacon.interval(1e3, 10).map(random), * $price = Bacon.interval(2e3, 100).map(random), * $total = Bacon.interval(1.5e3, 1000).map(random); @@ -2421,7 +2421,7 @@ declare namespace Bacon { * // Hungry could be any type of observable, but we'll use bus here. * hungry = [new Bacon.Bus(), new Bacon.Bus(), new Bacon.Bus()], * // A philosopher eats for one second, then makes the chopsticks available again by pushing values onto their bus. - * eat = (i:number) => () => { + * eat = (i: number) => () => { * setTimeout(() => { * console.log("done!"); * chopsticks[i].push({}); @@ -2447,7 +2447,7 @@ declare namespace Bacon { * } * } */ - function when(pattern1:Observable[], f1:(...args:A1[]) => B, pattern2:Observable[], f2:(...args:A2[]) => B):EventStream; + function when(pattern1: Observable[], f1: (...args: A1[]) => B, pattern2: Observable[], f2: (...args: A2[]) => B): EventStream; /** * @callback Bacon.when3~f1 @@ -2504,8 +2504,8 @@ declare namespace Bacon { * let oxygen = Bacon.interval(1e3, "O"), * hydrogen = Bacon.interval(2e3, "H"), * carbon = Bacon.interval(1.5e3, "C"), - * makeWater = (oxygen:string, hydrogen1:string, hydrogen2:string) => `${hydrogen1}${[hydrogen1, hydrogen2].length}${oxygen}`, - * makeCarbonMonoxide = (oxygen:string, carbon:string) => `${carbon}${oxygen}`; + * makeWater = (oxygen: string, hydrogen1: string, hydrogen2: string) => `${hydrogen1}${[hydrogen1, hydrogen2].length}${oxygen}`, + * makeCarbonMonoxide = (oxygen: string, carbon: string) => `${carbon}${oxygen}`; * Bacon.when( * [oxygen, hydrogen, hydrogen], makeWater, * [oxygen, carbon], makeCarbonMonoxide @@ -2518,8 +2518,8 @@ declare namespace Bacon { * // Properties are not part of the synchronization pattern, but are instead just sampled. The following example take three input streams `$price`, `$quantity` and `$total`, e.g. coming from input fields, and defines mutally recursive behaviours in properties `price`, `quantity` and `total` such that: * // -- updating `quantity` sets `total` to `price * quantity`; * // -- updating `total` sets `price` to `total / quantity`. - * let random = (x:number) => Math.round(x * Math.random()), - * id = (x:A):A => x; + * let random = (x: number) => Math.round(x * Math.random()), + * id = (x: A): A => x; * let $quantity = Bacon.interval(1e3, 10).map(random), * $price = Bacon.interval(2e3, 100).map(random), * $total = Bacon.interval(1.5e3, 1000).map(random); @@ -2543,7 +2543,7 @@ declare namespace Bacon { * // Hungry could be any type of observable, but we'll use bus here. * hungry = [new Bacon.Bus(), new Bacon.Bus(), new Bacon.Bus()], * // A philosopher eats for one second, then makes the chopsticks available again by pushing values onto their bus. - * eat = (i:number) => () => { + * eat = (i: number) => () => { * setTimeout(() => { * console.log("done!"); * chopsticks[i].push({}); @@ -2569,7 +2569,7 @@ declare namespace Bacon { * } * } */ - function when(pattern1:Observable[], f1:(...args:A1[]) => B, pattern2:Observable[], f2:(...args:A2[]) => B, pattern3:Observable[], f3:(...args:A3[]) => B):EventStream; + function when(pattern1: Observable[], f1: (...args: A1[]) => B, pattern2: Observable[], f2: (...args: A2[]) => B, pattern3: Observable[], f3: (...args: A3[]) => B): EventStream; /** * @callback Bacon.when4~f1 @@ -2633,8 +2633,8 @@ declare namespace Bacon { * let oxygen = Bacon.interval(1e3, "O"), * hydrogen = Bacon.interval(2e3, "H"), * carbon = Bacon.interval(1.5e3, "C"), - * makeWater = (oxygen:string, hydrogen1:string, hydrogen2:string) => `${hydrogen1}${[hydrogen1, hydrogen2].length}${oxygen}`, - * makeCarbonMonoxide = (oxygen:string, carbon:string) => `${carbon}${oxygen}`; + * makeWater = (oxygen: string, hydrogen1: string, hydrogen2: string) => `${hydrogen1}${[hydrogen1, hydrogen2].length}${oxygen}`, + * makeCarbonMonoxide = (oxygen: string, carbon: string) => `${carbon}${oxygen}`; * Bacon.when( * [oxygen, hydrogen, hydrogen], makeWater, * [oxygen, carbon], makeCarbonMonoxide @@ -2647,8 +2647,8 @@ declare namespace Bacon { * // Properties are not part of the synchronization pattern, but are instead just sampled. The following example take three input streams `$price`, `$quantity` and `$total`, e.g. coming from input fields, and defines mutally recursive behaviours in properties `price`, `quantity` and `total` such that: * // -- updating `quantity` sets `total` to `price * quantity`; * // -- updating `total` sets `price` to `total / quantity`. - * let random = (x:number) => Math.round(x * Math.random()), - * id = (x:A):A => x; + * let random = (x: number) => Math.round(x * Math.random()), + * id = (x: A): A => x; * let $quantity = Bacon.interval(1e3, 10).map(random), * $price = Bacon.interval(2e3, 100).map(random), * $total = Bacon.interval(1.5e3, 1000).map(random); @@ -2672,7 +2672,7 @@ declare namespace Bacon { * // Hungry could be any type of observable, but we'll use bus here. * hungry = [new Bacon.Bus(), new Bacon.Bus(), new Bacon.Bus()], * // A philosopher eats for one second, then makes the chopsticks available again by pushing values onto their bus. - * eat = (i:number) => () => { + * eat = (i: number) => () => { * setTimeout(() => { * console.log("done!"); * chopsticks[i].push({}); @@ -2698,7 +2698,7 @@ declare namespace Bacon { * } * } */ - function when(pattern1:Observable[], f1:(...args:A1[]) => B, pattern2:Observable[], f2:(...args:A2[]) => B, pattern3:Observable[], f3:(...args:A3[]) => B, pattern4:Observable[], f4:(...args:A4[]) => B):EventStream; + function when(pattern1: Observable[], f1: (...args: A1[]) => B, pattern2: Observable[], f2: (...args: A2[]) => B, pattern3: Observable[], f3: (...args: A3[]) => B, pattern4: Observable[], f4: (...args: A4[]) => B): EventStream; /** * @callback Bacon.when5~f1 @@ -2769,8 +2769,8 @@ declare namespace Bacon { * let oxygen = Bacon.interval(1e3, "O"), * hydrogen = Bacon.interval(2e3, "H"), * carbon = Bacon.interval(1.5e3, "C"), - * makeWater = (oxygen:string, hydrogen1:string, hydrogen2:string) => `${hydrogen1}${[hydrogen1, hydrogen2].length}${oxygen}`, - * makeCarbonMonoxide = (oxygen:string, carbon:string) => `${carbon}${oxygen}`; + * makeWater = (oxygen: string, hydrogen1: string, hydrogen2: string) => `${hydrogen1}${[hydrogen1, hydrogen2].length}${oxygen}`, + * makeCarbonMonoxide = (oxygen: string, carbon: string) => `${carbon}${oxygen}`; * Bacon.when( * [oxygen, hydrogen, hydrogen], makeWater, * [oxygen, carbon], makeCarbonMonoxide @@ -2783,8 +2783,8 @@ declare namespace Bacon { * // Properties are not part of the synchronization pattern, but are instead just sampled. The following example take three input streams `$price`, `$quantity` and `$total`, e.g. coming from input fields, and defines mutally recursive behaviours in properties `price`, `quantity` and `total` such that: * // -- updating `quantity` sets `total` to `price * quantity`; * // -- updating `total` sets `price` to `total / quantity`. - * let random = (x:number) => Math.round(x * Math.random()), - * id = (x:A):A => x; + * let random = (x: number) => Math.round(x * Math.random()), + * id = (x: A): A => x; * let $quantity = Bacon.interval(1e3, 10).map(random), * $price = Bacon.interval(2e3, 100).map(random), * $total = Bacon.interval(1.5e3, 1000).map(random); @@ -2808,7 +2808,7 @@ declare namespace Bacon { * // Hungry could be any type of observable, but we'll use bus here. * hungry = [new Bacon.Bus(), new Bacon.Bus(), new Bacon.Bus()], * // A philosopher eats for one second, then makes the chopsticks available again by pushing values onto their bus. - * eat = (i:number) => () => { + * eat = (i: number) => () => { * setTimeout(() => { * console.log("done!"); * chopsticks[i].push({}); @@ -2834,7 +2834,7 @@ declare namespace Bacon { * } * } */ - function when(pattern1:Observable[], f1:(...args:A1[]) => B, pattern2:Observable[], f2:(...args:A2[]) => B, pattern3:Observable[], f3:(...args:A3[]) => B, pattern4:Observable[], f4:(...args:A4[]) => B, pattern5:Observable[], f5:(...args:A5[]) => B):EventStream; + function when(pattern1: Observable[], f1: (...args: A1[]) => B, pattern2: Observable[], f2: (...args: A2[]) => B, pattern3: Observable[], f3: (...args: A3[]) => B, pattern4: Observable[], f4: (...args: A4[]) => B, pattern5: Observable[], f5: (...args: A5[]) => B): EventStream; /** * @callback Bacon.update1~f1 @@ -2856,10 +2856,10 @@ declare namespace Bacon { * x = Bacon.interval(1e3, 1), * y = Bacon.interval(2e3, 1), * z = Bacon.interval(1.5e3, 1); - * // NOTE: had to explicitly specify the typing for `previous:number` + * // NOTE: had to explicitly specify the typing for `previous: number` * Bacon.update(initial, - * [x, y, z], (previous:number, x, y, z) => previous + x + y + z, - * [x, y], (previous:number, x, y) => previous + x + y + z + * [x, y, z], (previous: number, x, y, z) => previous + x + y + z, + * [x, y], (previous: number, x, y) => previous + x + y + z * ); * // As input, each function above will get the previous value of the `result` Property, along with values from the listed Observables. The value returned by the function will be used as the next value of `result`. Just like in `Bacon.when`, only EventStreams will trigger an update, while Properties will be just sampled. So, if you list a single EventStream and several Properties, the value will be updated only when an event occurs in the EventStream. * } @@ -2870,13 +2870,13 @@ declare namespace Bacon { * hitUfo = new Bacon.Bus(), * hitMotherShip = new Bacon.Bus(), * score = Bacon.update(0, - * [hitUfo, scoreMultiplier], (score, _, multiplier:number) => score + 100 * multiplier, + * [hitUfo, scoreMultiplier], (score, _, multiplier: number) => score + 100 * multiplier, * [hitMotherShip], (score, _) => score + 2000 * ); * // In the example, the `score` property is updated when either `hitUfo` or `hitMotherShip` occur. The `scoreMultiplier` Property is sampled to take multiplier into account when `hitUfo` occurs. * } */ - function update(initial:B, pattern1:Observable[], f1:(initial:B, ...args:A1[]) => B):Property; + function update(initial: B, pattern1: Observable[], f1: (initial: B, ...args: A1[]) => B): Property; /** * @callback Bacon.update2~f1 @@ -2906,10 +2906,10 @@ declare namespace Bacon { * x = Bacon.interval(1e3, 1), * y = Bacon.interval(2e3, 1), * z = Bacon.interval(1.5e3, 1); - * // NOTE: had to explicitly specify the typing for `previous:number` + * // NOTE: had to explicitly specify the typing for `previous: number` * Bacon.update(initial, - * [x, y, z], (previous:number, x, y, z) => previous + x + y + z, - * [x, y], (previous:number, x, y) => previous + x + y + z + * [x, y, z], (previous: number, x, y, z) => previous + x + y + z, + * [x, y], (previous: number, x, y) => previous + x + y + z * ); * // As input, each function above will get the previous value of the `result` Property, along with values from the listed Observables. The value returned by the function will be used as the next value of `result`. Just like in `Bacon.when`, only EventStreams will trigger an update, while Properties will be just sampled. So, if you list a single EventStream and several Properties, the value will be updated only when an event occurs in the EventStream. * } @@ -2920,13 +2920,13 @@ declare namespace Bacon { * hitUfo = new Bacon.Bus(), * hitMotherShip = new Bacon.Bus(), * score = Bacon.update(0, - * [hitUfo, scoreMultiplier], (score, _, multiplier:number) => score + 100 * multiplier, + * [hitUfo, scoreMultiplier], (score, _, multiplier: number) => score + 100 * multiplier, * [hitMotherShip], (score, _) => score + 2000 * ); * // In the example, the `score` property is updated when either `hitUfo` or `hitMotherShip` occur. The `scoreMultiplier` Property is sampled to take multiplier into account when `hitUfo` occurs. * } */ - function update(initial:B, pattern1:Observable[], f1:(initial:B, ...args:A1[]) => B, pattern2:Observable[], f2:(initial:B, ...args:A2[]) => B):Property; + function update(initial: B, pattern1: Observable[], f1: (initial: B, ...args: A1[]) => B, pattern2: Observable[], f2: (initial: B, ...args: A2[]) => B): Property; /** * @callback Bacon.update3~f1 @@ -2964,10 +2964,10 @@ declare namespace Bacon { * x = Bacon.interval(1e3, 1), * y = Bacon.interval(2e3, 1), * z = Bacon.interval(1.5e3, 1); - * // NOTE: had to explicitly specify the typing for `previous:number` + * // NOTE: had to explicitly specify the typing for `previous: number` * Bacon.update(initial, - * [x, y, z], (previous:number, x, y, z) => previous + x + y + z, - * [x, y], (previous:number, x, y) => previous + x + y + z + * [x, y, z], (previous: number, x, y, z) => previous + x + y + z, + * [x, y], (previous: number, x, y) => previous + x + y + z * ); * // As input, each function above will get the previous value of the `result` Property, along with values from the listed Observables. The value returned by the function will be used as the next value of `result`. Just like in `Bacon.when`, only EventStreams will trigger an update, while Properties will be just sampled. So, if you list a single EventStream and several Properties, the value will be updated only when an event occurs in the EventStream. * } @@ -2978,13 +2978,13 @@ declare namespace Bacon { * hitUfo = new Bacon.Bus(), * hitMotherShip = new Bacon.Bus(), * score = Bacon.update(0, - * [hitUfo, scoreMultiplier], (score, _, multiplier:number) => score + 100 * multiplier, + * [hitUfo, scoreMultiplier], (score, _, multiplier: number) => score + 100 * multiplier, * [hitMotherShip], (score, _) => score + 2000 * ); * // In the example, the `score` property is updated when either `hitUfo` or `hitMotherShip` occur. The `scoreMultiplier` Property is sampled to take multiplier into account when `hitUfo` occurs. * } */ - function update(initial:B, pattern1:Observable[], f1:(initial:B, ...args:A1[]) => B, pattern2:Observable[], f2:(initial:B, ...args:A2[]) => B, pattern3:Observable[], f3:(initial:B, ...args:A3[]) => B):Property; + function update(initial: B, pattern1: Observable[], f1: (initial: B, ...args: A1[]) => B, pattern2: Observable[], f2: (initial: B, ...args: A2[]) => B, pattern3: Observable[], f3: (initial: B, ...args: A3[]) => B): Property; /** * @callback Bacon.update4~f1 @@ -3030,10 +3030,10 @@ declare namespace Bacon { * x = Bacon.interval(1e3, 1), * y = Bacon.interval(2e3, 1), * z = Bacon.interval(1.5e3, 1); - * // NOTE: had to explicitly specify the typing for `previous:number` + * // NOTE: had to explicitly specify the typing for `previous: number` * Bacon.update(initial, - * [x, y, z], (previous:number, x, y, z) => previous + x + y + z, - * [x, y], (previous:number, x, y) => previous + x + y + z + * [x, y, z], (previous: number, x, y, z) => previous + x + y + z, + * [x, y], (previous: number, x, y) => previous + x + y + z * ); * // As input, each function above will get the previous value of the `result` Property, along with values from the listed Observables. The value returned by the function will be used as the next value of `result`. Just like in `Bacon.when`, only EventStreams will trigger an update, while Properties will be just sampled. So, if you list a single EventStream and several Properties, the value will be updated only when an event occurs in the EventStream. * } @@ -3044,13 +3044,13 @@ declare namespace Bacon { * hitUfo = new Bacon.Bus(), * hitMotherShip = new Bacon.Bus(), * score = Bacon.update(0, - * [hitUfo, scoreMultiplier], (score, _, multiplier:number) => score + 100 * multiplier, + * [hitUfo, scoreMultiplier], (score, _, multiplier: number) => score + 100 * multiplier, * [hitMotherShip], (score, _) => score + 2000 * ); * // In the example, the `score` property is updated when either `hitUfo` or `hitMotherShip` occur. The `scoreMultiplier` Property is sampled to take multiplier into account when `hitUfo` occurs. * } */ - function update(initial:B, pattern1:Observable[], f1:(initial:B, ...args:A1[]) => B, pattern2:Observable[], f2:(initial:B, ...args:A2[]) => B, pattern3:Observable[], f3:(initial:B, ...args:A3[]) => B, pattern4:Observable[], f4:(initial:B, ...args:A4[]) => B):Property; + function update(initial: B, pattern1: Observable[], f1: (initial: B, ...args: A1[]) => B, pattern2: Observable[], f2: (initial: B, ...args: A2[]) => B, pattern3: Observable[], f3: (initial: B, ...args: A3[]) => B, pattern4: Observable[], f4: (initial: B, ...args: A4[]) => B): Property; /** * @callback Bacon.update5~f1 @@ -3104,10 +3104,10 @@ declare namespace Bacon { * x = Bacon.interval(1e3, 1), * y = Bacon.interval(2e3, 1), * z = Bacon.interval(1.5e3, 1); - * // NOTE: had to explicitly specify the typing for `previous:number` + * // NOTE: had to explicitly specify the typing for `previous: number` * Bacon.update(initial, - * [x, y, z], (previous:number, x, y, z) => previous + x + y + z, - * [x, y], (previous:number, x, y) => previous + x + y + z + * [x, y, z], (previous: number, x, y, z) => previous + x + y + z, + * [x, y], (previous: number, x, y) => previous + x + y + z * ); * // As input, each function above will get the previous value of the `result` Property, along with values from the listed Observables. The value returned by the function will be used as the next value of `result`. Just like in `Bacon.when`, only EventStreams will trigger an update, while Properties will be just sampled. So, if you list a single EventStream and several Properties, the value will be updated only when an event occurs in the EventStream. * } @@ -3118,13 +3118,13 @@ declare namespace Bacon { * hitUfo = new Bacon.Bus(), * hitMotherShip = new Bacon.Bus(), * score = Bacon.update(0, - * [hitUfo, scoreMultiplier], (score, _, multiplier:number) => score + 100 * multiplier, + * [hitUfo, scoreMultiplier], (score, _, multiplier: number) => score + 100 * multiplier, * [hitMotherShip], (score, _) => score + 2000 * ); * // In the example, the `score` property is updated when either `hitUfo` or `hitMotherShip` occur. The `scoreMultiplier` Property is sampled to take multiplier into account when `hitUfo` occurs. * } */ - function update(initial:B, pattern1:Observable[], f1:(initial:B, ...args:A1[]) => B, pattern2:Observable[], f2:(initial:B, ...args:A2[]) => B, pattern3:Observable[], f3:(initial:B, ...args:A3[]) => B, pattern4:Observable[], f4:(initial:B, ...args:A4[]) => B, pattern5:Observable[], f5:(initial:B, ...args:A5[]) => B):Property; + function update(initial: B, pattern1: Observable[], f1: (initial: B, ...args: A1[]) => B, pattern2: Observable[], f2: (initial: B, ...args: A2[]) => B, pattern3: Observable[], f3: (initial: B, ...args: A3[]) => B, pattern4: Observable[], f4: (initial: B, ...args: A4[]) => B, pattern5: Observable[], f5: (initial: B, ...args: A5[]) => B): Property; } declare module "baconjs" { diff --git a/base-x/index.d.ts b/base-x/index.d.ts index bbad200ce1..f81adebf8d 100644 --- a/base-x/index.d.ts +++ b/base-x/index.d.ts @@ -18,6 +18,6 @@ declare namespace BaseX { } interface Base { - (ALPHABET: string): BaseX.BaseConverter + (ALPHABET: string): BaseX.BaseConverter; } } diff --git a/base16/index.d.ts b/base16/index.d.ts index c283c469c4..1a305a684d 100644 --- a/base16/index.d.ts +++ b/base16/index.d.ts @@ -8,59 +8,59 @@ * Based on https://github.com/chriskempson/base16 */ export interface ColorScheme { - scheme: string - author: string - base00: string - base01: string - base02: string - base03: string - base04: string - base05: string - base06: string - base07: string - base08: string - base09: string - base0A: string - base0B: string - base0C: string - base0D: string - base0E: string - base0F: string + scheme: string; + author: string; + base00: string; + base01: string; + base02: string; + base03: string; + base04: string; + base05: string; + base06: string; + base07: string; + base08: string; + base09: string; + base0A: string; + base0B: string; + base0C: string; + base0D: string; + base0E: string; + base0F: string; } // predefined schemes... -export var threezerotwofour: ColorScheme -export var apathy: ColorScheme -export var ashes: ColorScheme -export var atelierDune: ColorScheme -export var atelierForest: ColorScheme -export var atelierHeath: ColorScheme -export var atelierLakeside: ColorScheme -export var atelierSeaside: ColorScheme -export var bespin: ColorScheme -export var brewer: ColorScheme -export var bright: ColorScheme -export var chalk: ColorScheme -export var codeschool: ColorScheme -export var colors: ColorScheme -export var eighties: ColorScheme -export var embers: ColorScheme -export var flat: ColorScheme -export var google: ColorScheme -export var grayscale: ColorScheme -export var greenscreen: ColorScheme -export var harmonic: ColorScheme -export var hopscotch: ColorScheme -export var isotope: ColorScheme -export var marrakesh: ColorScheme -export var monokai: ColorScheme -export var ocean: ColorScheme -export var paraiso: ColorScheme -export var pop: ColorScheme -export var railscasts: ColorScheme -export var shapeshifter: ColorScheme -export var solarized: ColorScheme -export var summerfruit: ColorScheme -export var tomorrow: ColorScheme -export var tube: ColorScheme -export var twilight: ColorScheme +export var threezerotwofour: ColorScheme; +export var apathy: ColorScheme; +export var ashes: ColorScheme; +export var atelierDune: ColorScheme; +export var atelierForest: ColorScheme; +export var atelierHeath: ColorScheme; +export var atelierLakeside: ColorScheme; +export var atelierSeaside: ColorScheme; +export var bespin: ColorScheme; +export var brewer: ColorScheme; +export var bright: ColorScheme; +export var chalk: ColorScheme; +export var codeschool: ColorScheme; +export var colors: ColorScheme; +export var eighties: ColorScheme; +export var embers: ColorScheme; +export var flat: ColorScheme; +export var google: ColorScheme; +export var grayscale: ColorScheme; +export var greenscreen: ColorScheme; +export var harmonic: ColorScheme; +export var hopscotch: ColorScheme; +export var isotope: ColorScheme; +export var marrakesh: ColorScheme; +export var monokai: ColorScheme; +export var ocean: ColorScheme; +export var paraiso: ColorScheme; +export var pop: ColorScheme; +export var railscasts: ColorScheme; +export var shapeshifter: ColorScheme; +export var solarized: ColorScheme; +export var summerfruit: ColorScheme; +export var tomorrow: ColorScheme; +export var tube: ColorScheme; +export var twilight: ColorScheme; diff --git a/base64url/index.d.ts b/base64url/index.d.ts index e99ae3d2b3..5ba629f1de 100644 --- a/base64url/index.d.ts +++ b/base64url/index.d.ts @@ -13,44 +13,44 @@ /** * Encoding type */ -declare type Encoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "utf16le" | "base64" | "binary" | "hex" +declare type Encoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "utf16le" | "base64" | "binary" | "hex"; interface IBase64Url { /** * Encode input to base64url - * @param {string} input Incoming input + * @param {string} input Incoming input * @param {Encoding} encoding Default 'utf8' - * @return {string} + * @return {string} */ (input: string, encoding?: Encoding): string; /** * Encode input to base64url - * @param {Buffer} input Incoming value + * @param {Buffer} input Incoming value */ (inout: Buffer): string; /** * Encode input to base64url - * - * @param {string} input Incoming input + * + * @param {string} input Incoming input * @param {Encoding} encoding Default 'utf8' * @returns {string} */ encode(input: string, encoding?: Encoding): string; /** * Encode input to base64url - * @param {Buffer} input Incoming value + * @param {Buffer} input Incoming value */ encode(input: Buffer): string; /** * Convert a base64url encoded string into a raw string. - * @param {string} base64url base64url encoded string + * @param {string} base64url base64url encoded string * @param {Encoding} encoding Encoding defaults to 'utf8' * @returns {string} */ decode(base64url: string, encoding?: string): string; /** * Convert a base64url encoded string to a base64 encoded string - * @param {string | Buffer} base64url base64url encoded value + * @param {string | Buffer} base64url base64url encoded value * @returns {string} */ toBase64(base64url: string | Buffer): string; @@ -62,7 +62,7 @@ interface IBase64Url { fromBase64(base64: string): string; /** * Convert a base64url encoded string to a Buffer - * @param {string} base64url encoded string + * @param {string} base64url encoded string * @returns {Buffer} */ toBuffer(base64url: string): Buffer; diff --git a/bazinga-translator/index.d.ts b/bazinga-translator/index.d.ts index 06a9ef3858..6193a16491 100644 --- a/bazinga-translator/index.d.ts +++ b/bazinga-translator/index.d.ts @@ -82,7 +82,7 @@ interface BazingaTranslator { * * @return {String} The translated string */ - transChoice(id: string, number: number, parameters: any, domain: string, locale?: string): string, + transChoice(id: string, number: number, parameters: any, domain: string, locale?: string): string; /** * Loads translations from JSON. diff --git a/bcrypt/index.d.ts b/bcrypt/index.d.ts index e8d26bf0d0..c2f9fc3222 100644 --- a/bcrypt/index.d.ts +++ b/bcrypt/index.d.ts @@ -58,7 +58,7 @@ export declare function compare(data: any, encrypted: string, callback: (err: Er /** * Return the number of rounds used to encrypt a given hash - * + * * @param encrypted Hash from which the number of rounds used should be extracted. */ export declare function getRounds(encrypted: string): number; diff --git a/big.js/big.js-tests.ts b/big.js/big.js-tests.ts index 642bf0fd2e..e518478fe9 100644 --- a/big.js/big.js-tests.ts +++ b/big.js/big.js-tests.ts @@ -8,7 +8,7 @@ Tests include code from http://mikemcl.github.io/big.js/ Minor changes have been made such as adding variable definitions where required. - + */ import BigJS = BigJsLibrary.BigJS; diff --git a/big.js/index.d.ts b/big.js/index.d.ts index e08ee7bc57..105ffc7ceb 100644 --- a/big.js/index.d.ts +++ b/big.js/index.d.ts @@ -135,7 +135,7 @@ declare namespace BigJsLibrary { } declare module "big.js" { - var bigjs : BigJsLibrary.BigJS; + var bigjs: BigJsLibrary.BigJS; export = bigjs; } diff --git a/bignum/index.d.ts b/bignum/index.d.ts index ae556d00fe..eb9a7c804e 100644 --- a/bignum/index.d.ts +++ b/bignum/index.d.ts @@ -10,136 +10,136 @@ export = BigNum; declare class BigNum { /** Create a new BigNum from n. */ constructor(n: number|BigNum); - + /** Create a new BigNum from n and a base. */ constructor(n: string, base?: number); - + /** * Create a new BigNum from a Buffer. - * + * * The default options are: {endian: 'big', size: 1}. */ static fromBuffer(buffer: Buffer, options?: BigNum.BufferOptions): BigNum; - + /** * Generate a probable prime of length bits. - * + * * If safe is true, it will be a "safe" prime of the form p=2p'+1 where p' is also prime. */ static prime(bits: number, safe?: boolean): BigNum; - + /** Return true if num is identified as a BigNum instance. Otherwise, return false. */ static isBigNum(num: any): boolean; - + /** Print out the BigNum instance in the requested base as a string. Default: base 10 */ toString(base?: number): string; - + /** * Turn a BigNum into a Number. - * + * * If the BigNum is too big you'll lose precision or you'll get ±Infinity. */ toNumber(): number; - + /** * Return a new Buffer with the data from the BigNum. - * + * * The default options are: {endian: 'big', size: 1}. */ toBuffer(options?: BigNum.BufferOptions): Buffer; - + /** Return a new BigNum containing the instance value plus n. */ add(n: BigNum.BigNumCompatible): BigNum; - + /** Return a new BigNum containing the instance value minus n. */ sub(n: BigNum.BigNumCompatible): BigNum; - + /** Return a new BigNum containing the instance value multiplied by n. */ mul(n: BigNum.BigNumCompatible): BigNum; - + /** Return a new BigNum containing the instance value integrally divided by n. */ div(n: BigNum.BigNumCompatible): BigNum; - + /** Return a new BigNum with the absolute value of the instance. */ abs(): BigNum; - + /** Return a new BigNum with the negative of the instance value. */ neg(): BigNum; - + /** * Compare the instance value to n. - * + * * Return a positive integer if > n, a negative integer if < n, and 0 if == n. */ cmp(n: BigNum.BigNumCompatible): number; - + /** Return a boolean: whether the instance value is greater than n (> n). */ gt(n: BigNum.BigNumCompatible): boolean; - + /** Return a boolean: whether the instance value is greater than or equal to n (>= n). */ ge(n: BigNum.BigNumCompatible): boolean; - + /** Return a boolean: whether the instance value is equal to n (== n). */ eq(n: BigNum.BigNumCompatible): boolean; - + /** Return a boolean: whether the instance value is less than n (< n). */ lt(n: BigNum.BigNumCompatible): boolean; - + /** Return a boolean: whether the instance value is less than or equal to n (<= n). */ le(n: BigNum.BigNumCompatible): boolean; - + /** Return a new BigNum with the instance value bitwise AND (&)-ed with n. */ and(n: BigNum.BigNumCompatible): BigNum; - + /** Return a new BigNum with the instance value bitwise inclusive-OR (|)-ed with n. */ or(n: BigNum.BigNumCompatible): BigNum; - + /** Return a new BigNum with the instance value bitwise exclusive-OR (^)-ed with n. */ xor(n: BigNum.BigNumCompatible): BigNum; - + /** Return a new BigNum with the instance value modulo n. */ mod(n: BigNum.BigNumCompatible): BigNum; - + /** Return a new BigNum with the instance value raised to the nth power. */ pow(n: BigNum.BigNumCompatible): BigNum; - + /** Return a new BigNum with the instance value raised to the nth power modulo m. */ powm(n: BigNum.BigNumCompatible, m: BigNum.BigNumCompatible): BigNum; - + /** Compute the multiplicative inverse modulo m. */ invertm(m: BigNum.BigNumCompatible): BigNum; - + /** * If upperBound is supplied, return a random BigNum between the instance value and upperBound - 1, inclusive. * Otherwise, return a random BigNum between 0 and the instance value - 1, inclusive. */ rand(upperBound?: BigNum.BigNumCompatible): BigNum; - - /** + + /** * Return whether the BigNum is: * - certainly prime (true) * - probably prime ('maybe') * - certainly composite (false) */ probPrime(): boolean | string; - + /** Return a new BigNum that is the 2^n multiple. Equivalent of the << operator. */ shiftLeft(n: BigNum.BigNumCompatible): BigNum; - + /** Return a new BigNum of the value integer divided by 2^n. Equivalent of the >> operator. */ shiftRight(n: BigNum.BigNumCompatible): BigNum; - + /** Return the greatest common divisor of the current BigNum with n as a new BigNum. */ gcd(n: BigNum): BigNum; - + /** * Return the Jacobi symbol (or Legendre symbol if n is prime) of the current BigNum (= a) over n. * Note that n must be odd and >= 3. 0 <= a < n. - * + * * Returns -1 or 1 as an int (NOT a BigNum). Throws an error on failure. */ jacobi(n: BigNum): number; - + /** Return the number of bits used to represent the current BigNum. */ bitLength(): number; } @@ -147,121 +147,121 @@ declare class BigNum { declare namespace BigNum { /** Anything that can be converted to BigNum. */ type BigNumCompatible = BigNum | number | string; - + export interface BufferOptions { /** Can be either 'big' or 'little'. Also accepts 1 for big and -1 for little. Doesn't matter when size = 1. */ endian: string | number; - + /** Number of bytes per word, or 'auto' to flip entire Buffer. */ size: number | string; } - + /** * Turn a BigNum into a Number. - * + * * If the BigNum is too big you'll lose precision or you'll get ±Infinity. */ export function toNumber(n: BigNumCompatible): number; - + /** * Return a new Buffer with the data from the BigNum. - * + * * The default options are: {endian: 'big', size: 1}. */ export function toBuffer(n: BigNumCompatible, options?: BufferOptions): Buffer; - + /** Return a new BigNum containing the instance value plus n. */ export function add(left: BigNumCompatible, right: BigNumCompatible): BigNum; - + /** Return a new BigNum containing the instance value minus n. */ export function sub(left: BigNumCompatible, right: BigNumCompatible): BigNum; - + /** Return a new BigNum containing the instance value multiplied by n. */ export function mul(left: BigNumCompatible, right: BigNumCompatible): BigNum; - + /** Return a new BigNum containing the instance value integrally divided by n. */ export function div(dividend: BigNumCompatible, divisor: BigNumCompatible): BigNum; - + /** Return a new BigNum with the absolute value of the instance. */ export function abs(n: BigNumCompatible): BigNum; - + /** Return a new BigNum with the negative of the instance value. */ export function neg(n: BigNumCompatible): BigNum; - + /** * Compare the instance value to n. - * + * * Return a positive integer if > n, a negative integer if < n, and 0 if == n. */ export function cmp(left: BigNumCompatible, right: BigNumCompatible): number; - + /** Return a boolean: whether the instance value is greater than n (> n). */ export function gt(left: BigNumCompatible, right: BigNumCompatible): boolean; - + /** Return a boolean: whether the instance value is greater than or equal to n (>= n). */ export function ge(left: BigNumCompatible, right: BigNumCompatible): boolean; - + /** Return a boolean: whether the instance value is equal to n (== n). */ export function eq(left: BigNumCompatible, right: BigNumCompatible): boolean; - + /** Return a boolean: whether the instance value is less than n (< n). */ export function lt(left: BigNumCompatible, right: BigNumCompatible): boolean; - + /** Return a boolean: whether the instance value is less than or equal to n (<= n). */ export function le(left: BigNumCompatible, right: BigNumCompatible): boolean; - + /** Return a new BigNum with the instance value bitwise AND (&)-ed with n. */ export function and(left: BigNumCompatible, right: BigNumCompatible): BigNum; - + /** Return a new BigNum with the instance value bitwise inclusive-OR (|)-ed with n. */ export function or(left: BigNumCompatible, right: BigNumCompatible): BigNum; - + /** Return a new BigNum with the instance value bitwise exclusive-OR (^)-ed with n. */ export function xor(left: BigNumCompatible, right: BigNumCompatible): BigNum; - + /** Return a new BigNum with the instance value modulo n. */ export function mod(left: BigNumCompatible, right: BigNumCompatible): BigNum; - + /** Return a new BigNum with the instance value raised to the nth power. */ export function pow(base: BigNumCompatible, exponent: BigNumCompatible): BigNum; - + /** Return a new BigNum with the instance value raised to the nth power modulo m. */ export function powm(base: BigNumCompatible, exponent: BigNumCompatible, m: BigNumCompatible): BigNum; - + /** Compute the multiplicative inverse modulo m. */ export function invertm(n: BigNumCompatible, m: BigNumCompatible): BigNum; - + /** * If upperBound is supplied, return a random BigNum between the instance value and upperBound - 1, inclusive. * Otherwise, return a random BigNum between 0 and the instance value - 1, inclusive. */ export function rand(n: BigNumCompatible, upperBound?: BigNumCompatible): BigNum; - - /** + + /** * Return whether the BigNum is: * - certainly prime (true) * - probably prime ('maybe') * - certainly composite (false) */ export function probPrime(n: BigNumCompatible): boolean | string; - + /** Return a new BigNum that is the 2^bits multiple. Equivalent of the << operator. */ export function shiftLeft(n: BigNumCompatible, bits: BigNumCompatible): BigNum; - + /** Return a new BigNum of the value integer divided by 2^bits. Equivalent of the >> operator. */ export function shiftRight(n: BigNumCompatible, bits: BigNumCompatible): BigNum; - + /** Return the greatest common divisor of the current BigNum with n as a new BigNum. */ export function gcd(left: BigNumCompatible, right: BigNum): BigNum; - + /** * Return the Jacobi symbol (or Legendre symbol if n is prime) of the current BigNum (= a) over n. * Note that n must be odd and >= 3. 0 <= a < n. - * + * * Returns -1 or 1 as an int (NOT a BigNum). Throws an error on failure. */ export function jacobi(a: BigNumCompatible, n: BigNum): number; - + /** Return the number of bits used to represent the current BigNum. */ export function bitLength(n: BigNumCompatible): number; } diff --git a/bingmaps/Microsoft.Maps.Search.d.ts b/bingmaps/Microsoft.Maps.Search.d.ts index 21011ab1cd..df0b7d81ff 100644 --- a/bingmaps/Microsoft.Maps.Search.d.ts +++ b/bingmaps/Microsoft.Maps.Search.d.ts @@ -13,13 +13,13 @@ declare namespace Microsoft.Maps.Search { formattedAddress: string; locality: string; postalCode: string; - postalTown:string; + postalTown: string; } export interface GeocodeLocation { location: Location; name: string; - precision:LocationPrecision; + precision: LocationPrecision; } export interface GeocodeRequestOptions { @@ -29,14 +29,14 @@ declare namespace Microsoft.Maps.Search { errorCallback?: (options: GeocodeRequestOptions) => any; timeout?: number; userData?: any; - where:string; + where: string; } export interface GeocodeResult { parsedAddress: Address; parsedKeyword: string; parsedSeparator: string; - results:Array; + results: Array; } export enum LocationPrecision { @@ -65,7 +65,7 @@ declare namespace Microsoft.Maps.Search { locations: Array; matchCode: MatchCode; matchConfidence: MatchConfidence; - name:string; + name: string; } export interface ReverseGeocodeRequestOptions { @@ -73,7 +73,7 @@ declare namespace Microsoft.Maps.Search { errorCallback?: (options: ReverseGeocodeRequestOptions) => any; location?: Location; timeout?: number; - userData?:any; + userData?: any; } export class SearchManager { @@ -82,13 +82,13 @@ declare namespace Microsoft.Maps.Search { geocode(request: GeocodeRequestOptions): void; reverseGeocode(request: ReverseGeocodeRequestOptions): void; - search(request:SearchRequestOptions):void; + search(request: SearchRequestOptions): void; } export interface SearchParseResult { keyword: string; location: GeocodeLocation; - matchConfidence:MatchConfidence; + matchConfidence: MatchConfidence; } export interface SearchRegion { @@ -98,20 +98,20 @@ declare namespace Microsoft.Maps.Search { mapBounds: LocationRect; matchCode: MatchCode; matchConfidence: MatchConfidence; - source:string; + source: string; } export interface SearchRequestOptions { - callback?:(result: SearchResponse, userData: any)=>any; + callback?: (result: SearchResponse, userData: any) => any; count: number; - errorCallback?:(options: SearchRequestOptions)=>any; + errorCallback?: (options: SearchRequestOptions) => any; query?: string; startIndex?: number; timeout?: number; entityType?: string; userData?: any; what?: string; - where?:string; + where?: string; } export interface SearchResponse { @@ -120,7 +120,7 @@ declare namespace Microsoft.Maps.Search { parseResults: Array; responseSummary: SearchResponseSummary; searchRegion: SearchRegion; - searchResults:Array; + searchResults: Array; } export interface SearchResponseSummary { @@ -128,7 +128,7 @@ declare namespace Microsoft.Maps.Search { copyright: string; errorMessage: string; statusCode: number; - traceId:number; + traceId: number; } export interface SearchResult { @@ -144,7 +144,7 @@ declare namespace Microsoft.Maps.Search { postalCode: string; reviewCount: number; userRating: number; - website:string; + website: string; } } diff --git a/bingmaps/Microsoft.Maps.Traffic.d.ts b/bingmaps/Microsoft.Maps.Traffic.d.ts index 353ec39b7c..8dad4caa35 100644 --- a/bingmaps/Microsoft.Maps.Traffic.d.ts +++ b/bingmaps/Microsoft.Maps.Traffic.d.ts @@ -16,7 +16,7 @@ declare namespace Microsoft.Maps.Traffic { show(): void; showFlow(): void; showIncidents(): void; - showLegend():void; + showLegend(): void; } } diff --git a/bingmaps/index.d.ts b/bingmaps/index.d.ts index 95644801c5..67a285440f 100644 --- a/bingmaps/index.d.ts +++ b/bingmaps/index.d.ts @@ -154,7 +154,7 @@ declare namespace Microsoft.Maps { export interface MapModeOptions { shouldClipPolygons?: boolean; - drawShapesInSingleLayer?:boolean; + drawShapesInSingleLayer?: boolean; } export interface MapOptions { @@ -512,9 +512,9 @@ declare namespace Microsoft.Maps { export interface PositionOptionsErrorCallbackResult { internalError: PositionError; - errorCode:number; + errorCode: number; } - + export interface PositionOptionsSuccessCallbackResult { center: Location; position: Position; diff --git a/bip21/bip21-tests.ts b/bip21/bip21-tests.ts index ef200719a8..04dc291b0e 100644 --- a/bip21/bip21-tests.ts +++ b/bip21/bip21-tests.ts @@ -1,8 +1,7 @@ import bip21 = require('bip21'); let decoded:any = bip21.decode('bitcoin:1BgGZ9tcN4rm9KBzDn7KprQz87SZ26SAMH?amount=20.3&label=Foobar'); - + let encoded:string = bip21.encode('1BgGZ9tcN4rm9KBzDn7KprQz87SZ26SAMH', { amount: 20.3, label: 'Foobar' -}); - \ No newline at end of file +}); diff --git a/bip21/index.d.ts b/bip21/index.d.ts index 06e61a6944..ad7f1ce949 100644 --- a/bip21/index.d.ts +++ b/bip21/index.d.ts @@ -4,8 +4,8 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace bip21 { - export function decode(uri:string) : {address:string,amount?:number}; - export function encode(address:string,options?:any) : string; + export function decode(uri: string): {address: string, amount?: number}; + export function encode(address: string, options?: any): string; } export = bip21; diff --git a/blessed/index.d.ts b/blessed/index.d.ts index 24b6fddaf3..f2932af7c1 100644 --- a/blessed/index.d.ts +++ b/blessed/index.d.ts @@ -16,9 +16,9 @@ declare namespace Blessed { showCursor: any; } - export module Widgets { + export namespace Widgets { - export module Types { + export namespace Types { export type TTopLeft = string | number | "center"; @@ -41,10 +41,10 @@ declare namespace Blessed { hover?: boolean; focus?: boolean; label?: string; - track?: {bg?: string; fg?: string;}; - scrollbar?: {bg?: string; fg?: string;}; - } - + track?: {bg?: string; fg?: string}; + scrollbar?: {bg?: string; fg?: string}; + }; + export type TBorder = { /** * Type of border (line or bg). bg by default. @@ -57,15 +57,15 @@ declare namespace Blessed { /** * Border foreground and background, must be numbers (-1 for default). */ - bg?: number; + bg?: number; fg?: number; /** * Border attributes. */ - bold?: string; + bold?: string; underline?: string; - } - + }; + export type TCursor = { /** * Have blessed draw a custom cursor and hide the terminal cursor (experimental). @@ -83,28 +83,28 @@ declare namespace Blessed { * Color of the color. Accepts any valid color value (null is default). */ color: string; - } + }; - export type TAlign = "left" | "center" | "right"; + export type TAlign = "left" | "center" | "right"; - export type ListbarCommand = { - key: string; + export type ListbarCommand = { + key: string; callback: () => void; - }; + }; export type TImage = { /** * Pixel width. */ - width: number; + width: number; /** * Pixel height. */ height: number; /** * Image bitmap. - * */ - bmp: any; + * */ + bmp: any; /** * Image cellmap (bitmap scaled down to cell size). */ @@ -128,17 +128,17 @@ declare namespace Blessed { * Color of the color. Accepts any valid color value (null is default). */ color: string; - } + }; } - export module Events { - + export namespace Events { + export interface IMouseEventArg { x: number; y: number; action: Types.TMouseAction; } - + export interface IKeyEventArg { full: string; name: string; @@ -148,7 +148,7 @@ declare namespace Blessed { sequence: string; } } - + export interface NodeChildProcessExecOptions { cwd?: string; stdio?: any; @@ -163,14 +163,14 @@ declare namespace Blessed { export interface IDestroyable { destroy(): void; } - + export interface IOptions { } - + export interface IHasOptions { options: T; } - + export interface TputsOptions extends IOptions { terminal?: string; extended?: boolean; @@ -201,7 +201,7 @@ declare namespace Blessed { termcapFile: string; error: Error; terminal: string; - + setup(): void; term(is: any): boolean; readTerminfo(term: string): string; @@ -233,11 +233,11 @@ declare namespace Blessed { strings: Object; }; } - + export interface IDestroyable { destroy(): void; } - + export interface INodeOptions extends IOptions { name?: string; screen?: Screen; @@ -245,7 +245,7 @@ declare namespace Blessed { children?: Node[]; focusable?: boolean; } - + export abstract class Node extends EventEmitter implements IHasOptions, IDestroyable { constructor(options: INodeOptions); @@ -257,19 +257,19 @@ declare namespace Blessed { * Original options object. */ options: INodeOptions; - + /** * An object for any miscellanous user data. */ - data: {[index: string]: any;}; + data: {[index: string]: any}; /** * An object for any miscellanous user data. */ - _: {[index: string]: any;}; + _: {[index: string]: any}; /** * An object for any miscellanous user data. */ - $: {[index: string]: any;}; + $: {[index: string]: any}; /** * Type of the node (e.g. box). */ @@ -290,7 +290,7 @@ declare namespace Blessed { * Array of node's children. */ children: Node[]; - + // ** methods ** // /** @@ -398,7 +398,7 @@ declare namespace Blessed { */ on(event: "detach", callback: (arg: Node) => void): this; } - + export class NodeWithEvents extends Node { // ** methods ** // @@ -417,7 +417,7 @@ declare namespace Blessed { removeKey(name: string, listener: Function): void; // ** events ** // - + on(event: string, listener: Function): this; /** * Received on screen resize. @@ -451,12 +451,12 @@ declare namespace Blessed { */ //on(event: "key", callback: (arg: BlessedScreen) => void): this; /** - * Received when the terminal window focuses/blurs. Requires a terminal supporting the + * Received when the terminal window focuses/blurs. Requires a terminal supporting the * focus protocol and focus needs to be passed to program.enableMouse(). */ on(event: "focus", callback: (arg: Screen) => void): this; /** - * Received when the terminal window focuses/blurs. Requires a terminal supporting the + * Received when the terminal window focuses/blurs. Requires a terminal supporting the * focus protocol and focus needs to be passed to program.enableMouse(). */ on(event: "blur", callback: (arg: Screen) => void): this; @@ -492,31 +492,31 @@ declare namespace Blessed { * Received when element becomes hidden. */ on(event: "hide", callback: () => void): this; - + on(event: "set content", callback: () => void): this; on(event: "parsed content", callback: () => void): this; } - + export interface IScreenOptions extends INodeOptions { /** * The blessed Program to be associated with. Will be automatically instantiated if none is provided. */ program?: BlessedProgram; /** - * Attempt to perform CSR optimization on all possible elements (not just full-width ones, elements with - * uniform cells to their sides). This is known to cause flickering with elements that are not full-width, + * Attempt to perform CSR optimization on all possible elements (not just full-width ones, elements with + * uniform cells to their sides). This is known to cause flickering with elements that are not full-width, * however, it is more optimal for terminal rendering. */ smartCSR?: boolean; /** - * Do CSR on any element within 20 cols of the screen edge on either side. Faster than smartCSR, + * Do CSR on any element within 20 cols of the screen edge on either side. Faster than smartCSR, * but may cause flickering depending on what is on each side of the element. */ fastCSR?: boolean; /** - * Attempt to perform back_color_erase optimizations for terminals that support it. It will also work - * with terminals that don't support it, but only on lines with the default background color. As it - * stands with the current implementation, it's uncertain how much terminal performance this adds at + * Attempt to perform back_color_erase optimizations for terminals that support it. It will also work + * with terminals that don't support it, but only on lines with the default background color. As it + * stands with the current implementation, it's uncertain how much terminal performance this adds at * the cost of overhead within node. */ useBCE?: boolean; @@ -529,13 +529,13 @@ declare namespace Blessed { */ tabSize?: number; /** - * Automatically position child elements with border and padding in mind (NOTE: this is a recommended + * Automatically position child elements with border and padding in mind (NOTE: this is a recommended * option. It may become default in the future). */ autoPadding?: boolean; - + cursor?: Types.TCursor; - + /** * Create a log file. See log method. */ @@ -545,31 +545,31 @@ declare namespace Blessed { */ dump?: string; /** - * Debug mode. Enables usage of the debug method. Also creates a debug console which will display when + * Debug mode. Enables usage of the debug method. Also creates a debug console which will display when * pressing F12. It will display all log and debug messages. */ debug?: (...msg: string[]) => void; /** - * Array of keys in their full format (e.g. C-c) to ignore when keys are locked or grabbed. Useful + * Array of keys in their full format (e.g. C-c) to ignore when keys are locked or grabbed. Useful * for creating a key that will always exit no matter whether the keys are locked. */ ignoreLocked?: boolean; /** - * Automatically "dock" borders with other elements instead of overlapping, depending on position + * Automatically "dock" borders with other elements instead of overlapping, depending on position * (experimental). For example: These border-overlapped elements: */ dockBorders?: boolean; /** - * Normally, dockable borders will not dock if the colors or attributes are different. This option + * Normally, dockable borders will not dock if the colors or attributes are different. This option * will allow them to dock regardless. It may produce some odd looking multi-colored borders though. */ ignoreDockContrast?: boolean; /** - * Allow for rendering of East Asian double-width characters, utf-16 surrogate pairs, and unicode - * combining characters. This allows you to display text above the basic multilingual plane. This - * is behind an option because it may affect performance slightly negatively. Without this option - * enabled, all double-width, surrogate pair, and combining characters will be replaced by '??', - * '?', '' respectively. (NOTE: iTerm2 cannot display combining characters properly. Blessed simply + * Allow for rendering of East Asian double-width characters, utf-16 surrogate pairs, and unicode + * combining characters. This allows you to display text above the basic multilingual plane. This + * is behind an option because it may affect performance slightly negatively. Without this option + * enabled, all double-width, surrogate pair, and combining characters will be replaced by '??', + * '?', '' respectively. (NOTE: iTerm2 cannot display combining characters properly. Blessed simply * removes them from an element's content if iTerm2 is detected). */ fullUnicode?: boolean; @@ -582,17 +582,17 @@ declare namespace Blessed { */ warnings?: boolean; /** - * Force blessed to use unicode even if it is not detected via terminfo, env variables, or windows code page. + * Force blessed to use unicode even if it is not detected via terminfo, env variables, or windows code page. * If value is true unicode is forced. If value is false non-unicode is forced (default: null). */ forceUnicode?: boolean; /** - * Input and output streams. process.stdin/process.stdout by default, however, it could be a + * Input and output streams. process.stdin/process.stdout by default, however, it could be a * net.Socket if you want to make a program that runs over telnet or something of that nature. * */ input?: stream.Writable; /** - * Input and output streams. process.stdin/process.stdout by default, however, it could be a + * Input and output streams. process.stdin/process.stdout by default, however, it could be a * net.Socket if you want to make a program that runs over telnet or something of that nature. * */ output?: stream.Readable; @@ -673,13 +673,13 @@ declare namespace Blessed { */ title?: string; } - + export class Screen extends NodeWithEvents implements IHasOptions { constructor(opts: IScreenOptions); // ** properties ** // cleanSides: any; - + /** * Original options object. */ @@ -690,20 +690,20 @@ declare namespace Blessed { */ program: BlessedProgram; /** - * Attempt to perform CSR optimization on all possible elements (not just full-width ones, elements with - * uniform cells to their sides). This is known to cause flickering with elements that are not full-width, + * Attempt to perform CSR optimization on all possible elements (not just full-width ones, elements with + * uniform cells to their sides). This is known to cause flickering with elements that are not full-width, * however, it is more optimal for terminal rendering. */ smartCSR: boolean; /** - * Do CSR on any element within 20 cols of the screen edge on either side. Faster than smartCSR, + * Do CSR on any element within 20 cols of the screen edge on either side. Faster than smartCSR, * but may cause flickering depending on what is on each side of the element. */ fastCSR: boolean; /** - * Attempt to perform back_color_erase optimizations for terminals that support it. It will also work - * with terminals that don't support it, but only on lines with the default background color. As it - * stands with the current implementation, it's uncertain how much terminal performance this adds at + * Attempt to perform back_color_erase optimizations for terminals that support it. It will also work + * with terminals that don't support it, but only on lines with the default background color. As it + * stands with the current implementation, it's uncertain how much terminal performance this adds at * the cost of overhead within node. */ useBCE: boolean; @@ -716,38 +716,38 @@ declare namespace Blessed { */ tabSize: number; /** - * Automatically position child elements with border and padding in mind (NOTE: this is a recommended + * Automatically position child elements with border and padding in mind (NOTE: this is a recommended * option. It may become default in the future). */ autoPadding: boolean; - + cursor: Types.TCursor; - + /** * Dump all output and input to desired file. Can be used together with log option if set as a boolean. */ dump: string; /** - * Array of keys in their full format (e.g. C-c) to ignore when keys are locked or grabbed. Useful + * Array of keys in their full format (e.g. C-c) to ignore when keys are locked or grabbed. Useful * for creating a key that will always exit no matter whether the keys are locked. */ ignoreLocked: boolean; /** - * Automatically "dock" borders with other elements instead of overlapping, depending on position + * Automatically "dock" borders with other elements instead of overlapping, depending on position * (experimental). For example: These border-overlapped elements: */ dockBorders: boolean; /** - * Normally, dockable borders will not dock if the colors or attributes are different. This option + * Normally, dockable borders will not dock if the colors or attributes are different. This option * will allow them to dock regardless. It may produce some odd looking multi-colored borders though. */ ignoreDockContrast: boolean; /** - * Allow for rendering of East Asian double-width characters, utf-16 surrogate pairs, and unicode - * combining characters. This allows you to display text above the basic multilingual plane. This - * is behind an option because it may affect performance slightly negatively. Without this option - * enabled, all double-width, surrogate pair, and combining characters will be replaced by '??', - * '?', '' respectively. (NOTE: iTerm2 cannot display combining characters properly. Blessed simply + * Allow for rendering of East Asian double-width characters, utf-16 surrogate pairs, and unicode + * combining characters. This allows you to display text above the basic multilingual plane. This + * is behind an option because it may affect performance slightly negatively. Without this option + * enabled, all double-width, surrogate pair, and combining characters will be replaced by '??', + * '?', '' respectively. (NOTE: iTerm2 cannot display combining characters properly. Blessed simply * removes them from an element's content if iTerm2 is detected). */ fullUnicode: boolean; @@ -760,17 +760,17 @@ declare namespace Blessed { */ warnings: boolean; /** - * Force blessed to use unicode even if it is not detected via terminfo, env variables, or windows code page. + * Force blessed to use unicode even if it is not detected via terminfo, env variables, or windows code page. * If value is true unicode is forced. If value is false non-unicode is forced (default: null). */ forceUnicode: boolean; /** - * Input and output streams. process.stdin/process.stdout by default, however, it could be a + * Input and output streams. process.stdin/process.stdout by default, however, it could be a * net.Socket if you want to make a program that runs over telnet or something of that nature. * */ input: stream.Writable; /** - * Input and output streams. process.stdin/process.stdout by default, however, it could be a + * Input and output streams. process.stdin/process.stdout by default, however, it could be a * net.Socket if you want to make a program that runs over telnet or something of that nature. * */ output: stream.Readable; @@ -850,9 +850,9 @@ declare namespace Blessed { * Set or get window title. */ title: string; - + // ** methods ** // - + /** * Write string to the log file if one was created. */ @@ -860,7 +860,7 @@ declare namespace Blessed { /** * Same as the log method, but only gets called if the debug option was set. */ - debug(...msg: string[]): void; + debug(...msg: string[]): void; /** * Allocate a new pending screen buffer and a new output screen buffer. */ @@ -959,13 +959,13 @@ declare namespace Blessed { */ deleteTop(top: number, bottom: number): void; /** - * Enable mouse events for the screen and optionally an element (automatically called when a form of + * Enable mouse events for the screen and optionally an element (automatically called when a form of * on('mouse') is bound). */ enableMouse(el: BlessedElement): void; enableMouse(): void; /** - * Enable keypress events for the screen and optionally an element (automatically called when a form of + * Enable keypress events for the screen and optionally an element (automatically called when a form of * on('keypress') is bound). */ enableKeys(el: BlessedElement): void; @@ -980,7 +980,7 @@ declare namespace Blessed { */ copyToClipboard(text: string): void; /** - * Attempt to change cursor shape. Will not work in all terminals (see artificial cursors for a solution + * Attempt to change cursor shape. Will not work in all terminals (see artificial cursors for a solution * to this). Returns true if successful. */ cursorShape(shape: boolean, blink: boolean): any; @@ -993,14 +993,14 @@ declare namespace Blessed { */ cursorReset(): void; /** - * Take an SGR screenshot of the screen within the region. Returns a string containing only + * Take an SGR screenshot of the screen within the region. Returns a string containing only * characters and SGR codes. Can be displayed by simply echoing it in a terminal. */ screenshot(xi: number, xl: number, yi: number, yl: number): string; screenshot(): void; /** - * Destroy the screen object and remove it from the global list. Also remove all global events relevant - * to the screen object. If all screen objects are destroyed, the node process is essentially reset + * Destroy the screen object and remove it from the global list. Also remove all global events relevant + * to the screen object. If all screen objects are destroyed, the node process is essentially reset * to its initial state. */ destroy(): void; @@ -1043,23 +1043,23 @@ declare namespace Blessed { /** * Border foreground and background, must be numbers (-1 for default). */ - bg?: number; + bg?: number; fg?: number; /** * Border attributes. */ - bold?: string; + bold?: string; underline?: string; } export interface ElementOptions extends INodeOptions { tags?: boolean; - - fg?: string; - bg?: string; - bold?: string; + + fg?: string; + bg?: string; + bold?: string; underline?: string; - + style?: any; /** * Border object, see below. @@ -1107,24 +1107,24 @@ declare namespace Blessed { */ shrink?: boolean; /** - * Amount of padding on the inside of the element. Can be a number or an object containing + * Amount of padding on the inside of the element. Can be a number or an object containing * the properties: left, right, top, and bottom. */ padding?: number | Padding; - + top?: Types.TTopLeft; left?: Types.TTopLeft; right?: Types.TPosition; bottom?: Types.TPosition; - + /** - * Width/height of the element, can be a number, percentage (0-100%), or keyword (half or shrink). + * Width/height of the element, can be a number, percentage (0-100%), or keyword (half or shrink). * Percentages can also have offsets (50%+1, 50%-1). */ width?: number | string; /** - * Offsets of the element relative to its parent. Can be a number, percentage (0-100%), or - * keyword (center). right and bottom do not accept keywords. Percentages can also have + * Offsets of the element relative to its parent. Can be a number, percentage (0-100%), or + * keyword (center). right and bottom do not accept keywords. Percentages can also have * offsets (50%+1, 50%-1). */ height?: number | string; @@ -1156,7 +1156,7 @@ declare namespace Blessed { yl: number; yi: number; base: number; - _contentEnd: {x: number; y: number;}; + _contentEnd: {x: number; y: number}; notop: Types.TTopLeft; noleft: Types.TTopLeft; noright: Types.TPosition; @@ -1171,7 +1171,7 @@ declare namespace Blessed { // TODO: scrollable - Note: If the scrollable option is enabled, Element inherits all methods from ScrollableBox. export abstract class BlessedElement extends NodeWithEvents implements IHasOptions { constructor(opts: ElementOptions); - + // ** properties ** // /** @@ -1196,28 +1196,28 @@ declare namespace Blessed { /** * Border foreground and background, must be numbers (-1 for default). */ - bg: number; + bg: number; fg: number; /** * Border attributes. */ - bold: string; + bold: string; underline: string; /** * Calculated width. */ - width: number | string; + width: number | string; /** * Calculated height. */ height: number | string; /** - * Calculated relative top offset.*/ - top: Types.TTopLeft; + * Calculated relative top offset.*/ + top: Types.TTopLeft; /** * Calculated relative left offset. - */ - left: Types.TTopLeft; + */ + left: Types.TTopLeft; /** * Calculated relative right offset. */ @@ -1228,12 +1228,12 @@ declare namespace Blessed { bottom: Types.TPosition; /** * Calculated absolute top offset. - */ - atop: Types.TTopLeft; + */ + atop: Types.TTopLeft; /** * Calculated absolute left offset. - */ - aleft: Types.TTopLeft; + */ + aleft: Types.TTopLeft; /** * Calculated absolute right offset. */ @@ -1241,13 +1241,13 @@ declare namespace Blessed { /** * Calculated absolute bottom offset. */ - abottom: Types.TPosition; + abottom: Types.TPosition; /** * Whether the element is draggable. Set to true to allow dragging. */ - draggable: boolean; - + draggable: boolean; + itop: Types.TTopLeft; ileft: Types.TTopLeft; iheight: Types.TPosition; @@ -1255,115 +1255,115 @@ declare namespace Blessed { /** * Calculated relative top offset. - */ + */ rtop: Types.TTopLeft; /** * Calculated relative left offset. - */ + */ rleft: Types.TTopLeft; /** * Calculated relative right offset. - */ + */ rright: Types.TPosition; /** * Calculated relative bottom offset. - */ + */ rbottom: Types.TPosition; - + lpos: PositionCoords; - + // ** methods ** // - + /** * Write content and children to the screen buffer. */ render(): Coords; /** - * Hide element.*/ - hide(): void; + * Hide element.*/ + hide(): void; /** * Show element. */ - show(): void; + show(): void; /** * Toggle hidden/shown. */ toggle(): void; /** * Focus element. - */ - focus(): void; + */ + focus(): void; /** - * Same asel.on('screen', ...) except this will automatically keep track of which listeners + * Same asel.on('screen', ...) except this will automatically keep track of which listeners * are bound to the screen object. For use with removeScreenEvent(), free(), and destroy(). */ - onScreenEvent(type: string, handler: Function): void; + onScreenEvent(type: string, handler: Function): void; /** - * Same asel.removeListener('screen', ...) except this will automatically keep track of which + * Same asel.removeListener('screen', ...) except this will automatically keep track of which * listeners are bound to the screen object. For use with onScreenEvent(), free(), and destroy(). */ removeScreenEvent(type: string, handler: Function): void; /** - * Free up the element. Automatically unbind all events that may have been bound to the screen - * object. This prevents memory leaks. For use with onScreenEvent(), removeScreenEvent(), + * Free up the element. Automatically unbind all events that may have been bound to the screen + * object. This prevents memory leaks. For use with onScreenEvent(), removeScreenEvent(), * and destroy(). - */ - free(): void; + */ + free(): void; /** - * Same as the detach() method, except this will automatically call free() and unbind any screen + * Same as the detach() method, except this will automatically call free() and unbind any screen * events to prevent memory leaks. for use with onScreenEvent(), removeScreenEvent(), and free(). */ - destroy(): void; + destroy(): void; /** * Set the z-index of the element (changes rendering order). */ setIndex(z: number): void; /** - * Put the element in front of its siblings.*/ - setFront(): void; + * Put the element in front of its siblings.*/ + setFront(): void; /** * Put the element in back of its siblings. */ - setBack(): void; + setBack(): void; /** * text/options - Set the label text for the top-left corner. Example options: {text:'foo',side:'left'} */ setLabel(arg: string | LabelOptions): void; /** * Remove the label completely. - */ - removeLabel(): any; + */ + removeLabel(): any; /** - * text/options - Set a hover text box to follow the cursor. Similar to the "title" DOM attribute + * text/options - Set a hover text box to follow the cursor. Similar to the "title" DOM attribute * in the browser. Example options: {text:'foo'} */ setHover(arg: string | LabelOptions): void; /** * Remove the hover label completely. - */ - removeHover(): void; + */ + removeHover(): void; /** * Enable mouse events for the element (automatically called when a form of on('mouse') is bound). */ enableMouse(): void; /** * Enable keypress events for the element (automatically called when a form of on('keypress') is bound). - */ - enableKeys(): void; + */ + enableKeys(): void; /** * Enable key and mouse events. Calls bot enableMouse and enableKeys. */ enableInput(): void; /** * Enable dragging of the element. - */ - enableDrag(): void; + */ + enableDrag(): void; /** * Disable dragging of the element. */ - disableDrag(): void; + disableDrag(): void; /** - * Take an SGR screenshot of the screen within the region. Returns a string containing only + * Take an SGR screenshot of the screen within the region. Returns a string containing only * characters and SGR codes. Can be displayed by simply echoing it in a terminal. */ screenshot(xi: number, xl: number, yi: number, yl: number): string; @@ -1372,132 +1372,132 @@ declare namespace Blessed { /* Content Methods - Methods for dealing with text content, line by line. Useful for writing a text editor, + Methods for dealing with text content, line by line. Useful for writing a text editor, irc client, etc. - Note: All of these methods deal with pre-aligned, pre-wrapped text. If you use deleteTop() - on a box with a wrapped line at the top, it may remove 3-4 "real" lines (rows) depending + Note: All of these methods deal with pre-aligned, pre-wrapped text. If you use deleteTop() + on a box with a wrapped line at the top, it may remove 3-4 "real" lines (rows) depending on how long the original line was. - The lines parameter can be a string or an array of strings. The line parameter must + The lines parameter can be a string or an array of strings. The line parameter must be a string. */ /** - * Set the content. Note: When text is input, it will be stripped of all non-SGR - * escape codes, tabs will be replaced with 8 spaces, and tags will be replaced + * Set the content. Note: When text is input, it will be stripped of all non-SGR + * escape codes, tabs will be replaced with 8 spaces, and tags will be replaced * with SGR codes (if enabled). */ setContent(text: string): void; /** * Return content, slightly different from el.content. Assume the above formatting. - */ - getContent(): string; + */ + getContent(): string; /** * Similar to setContent, but ignore tags and remove escape codes. */ setText(text: string): void; /** * Similar to getContent, but return content with tags and escape codes removed. - */ - getText(): string; + */ + getText(): string; /** * Insert a line into the box's content. */ insertLine(i: number, lines: string | string[]): void; /** * Delete a line from the box's content. - */ - deleteLine(i: number): void; + */ + deleteLine(i: number): void; /** * Get a line from the box's content. */ - getLine(i: number): string; + getLine(i: number): string; /** * Get a line from the box's content from the visible top. */ - getBaseLine(i: number): string; + getBaseLine(i: number): string; /** * Set a line in the box's content. */ - setLine(i: number, line: string | string[]): void; + setLine(i: number, line: string | string[]): void; /** * Set a line in the box's content from the visible top. */ setBaseLine(i: number, line: string | string[]): void; /** * Clear a line from the box's content. - */ - clearLine(i: number): void; + */ + clearLine(i: number): void; /** * Clear a line from the box's content from the visible top. */ - clearBaseLine(i: number): void; + clearBaseLine(i: number): void; /** * Insert a line at the top of the box. */ - insertTop(lines: string | string[]): void; + insertTop(lines: string | string[]): void; /** * Insert a line at the bottom of the box. */ insertBottom(lines: string | string[]): void; /** * Delete a line at the top of the box. - */ - deleteTop(): void; + */ + deleteTop(): void; /** * Delete a line at the bottom of the box. */ - deleteBottom(): void; + deleteBottom(): void; /** * Unshift a line onto the top of the content. */ unshiftLine(lines: string | string[]): void; /** * Shift a line off the top of the content. - */ - shiftLine(i: number): void; + */ + shiftLine(i: number): void; /** * Push a line onto the bottom of the content. */ pushLine(lines: string | string[]): void; /** * Pop a line off the bottom of the content. - */ + */ popLine(i: number): string; /** * An array containing the content lines. - */ - getLines(): string[]; + */ + getLines(): string[]; /** * An array containing the lines as they are displayed on the screen. */ - getScreenLines(): string[]; + getScreenLines(): string[]; /** - * Get a string's displayed width, taking into account double-width, surrogate pairs, + * Get a string's displayed width, taking into account double-width, surrogate pairs, * combining characters, tags, and SGR escape codes. */ - strWidth(text: string): string; + strWidth(text: string): string; // ** events ** // } - + export interface ScrollableBoxOptions extends ElementOptions { /** * A limit to the childBase. Default is Infinity. */ - baseLimit?: number; + baseLimit?: number; /** - * A option which causes the ignoring of childOffset. This in turn causes the + * A option which causes the ignoring of childOffset. This in turn causes the * childBase to change every time the element is scrolled. */ - alwaysScroll?: boolean; + alwaysScroll?: boolean; /** * Object enabling a scrollbar. * Style of the scrollbar track if present (takes regular style options). */ - scrollbar?: { style?: any; track?: any; ch?: string; } - } + scrollbar?: { style?: any; track?: any; ch?: string; }; + } export interface ScrollableTextOptions extends ScrollableBoxOptions { /** @@ -1507,18 +1507,18 @@ declare namespace Blessed { mouse?: boolean | (() => void); /** * Use pre-defined keys (i or enter for insert, e for editor, C-e for editor while inserting). - */ - keys?: string | string[] | boolean; + */ + keys?: string | string[] | boolean; /** * Use vi keys with the keys option. */ vi?: boolean; } - + export interface BoxOptions extends ScrollableTextOptions { bindings?: any; } - + /** * DEPRECATED - Use Box with the scrollable option instead. A box with scrollable content. */ @@ -1526,60 +1526,60 @@ declare namespace Blessed { /** * The offset of the top of the scroll content. */ - childBase: number; + childBase: number; /** * The offset of the chosen item/line. */ childOffset: number; - + /** * Scroll the content by a relative offset. */ - scroll(offset: number, always?: boolean): void; + scroll(offset: number, always?: boolean): void; /** * Scroll the content to an absolute index. */ - scrollTo(index: number): void; + scrollTo(index: number): void; /** * Same as scrollTo. */ - setScroll(index: number): void; + setScroll(index: number): void; /** * Set the current scroll index in percentage (0-100). */ setScrollPerc(perc: number): void; /** * Get the current scroll index in lines. - */ - getScroll(): void; + */ + getScroll(): void; /** * Get the actual height of the scrolling area. */ getScrollHeight(): void; /** * Get the current scroll index in percentage. - */ + */ getScrollPerc(): void; /** * Reset the scroll index to its initial state. - */ - resetScroll(): void; - + */ + resetScroll(): void; + on(event: string, listener: Function): this; /** * Received when the element is scrolled. */ on(event: "scroll", callback: () => void): this; } - + /** * DEPRECATED - Use Box with the scrollable and alwaysScroll options instead. - * A scrollable text box which can display and scroll text, as well as handle + * A scrollable text box which can display and scroll text, as well as handle * pre-existing newlines and escape codes. */ export class ScrollableTextElement extends ScrollableBoxElement { } - + /** * A box element which draws a simple box containing content or other elements. */ @@ -1594,7 +1594,7 @@ declare namespace Blessed { export interface TextOptions extends ElementOptions { /** - * Fill the entire line with chosen bg until parent bg ends, even if there + * Fill the entire line with chosen bg until parent bg ends, even if there * is not enough text to fill the entire width. */ fill?: boolean; @@ -1609,13 +1609,13 @@ declare namespace Blessed { */ export class TextElement extends BlessedElement implements IHasOptions { constructor(opts: TextOptions); - + /** * Original options object. */ options: TextOptions; } - + /** * A simple line which can be line or bg styled. */ @@ -1632,51 +1632,51 @@ declare namespace Blessed { fg?: string; ch?: string; } - + /** * A simple line which can be line or bg styled. */ export class LineElement extends BoxElement implements IHasOptions { constructor(opts: LineOptions); - + /** * Original options object. */ options: LineOptions; } - + export interface BigTextOptions extends BoxOptions { /** * bdf->json font file to use (see ttystudio for instructions on compiling BDFs to JSON). */ - font?: string; + font?: string; /** * bdf->json bold font file to use (see ttystudio for instructions on compiling BDFs to JSON). */ fontBold?: string; /** * foreground character. (default: ' ') - */ + */ fch?: string; } - + /** * A box which can render content drawn as 8x14 cell characters using the terminus font. */ export class BigTextElement extends BoxElement implements IHasOptions { constructor(opts: BigTextOptions); - + /** * Original options object. */ options: BigTextOptions; } - + export interface ListElementStyle { selected?: any; item?: any; } - + export interface ListOptions extends BoxOptions { /** * Style for a selected item. Style for an unselected item. @@ -1687,9 +1687,9 @@ declare namespace Blessed { */ items?: string[]; /** - * A function that is called when vi mode is enabled and the key / is pressed. This function accepts a - * callback function which should be called with the search string. The search string is then used to - * jump to an item that is found in items. + * A function that is called when vi mode is enabled and the key / is pressed. This function accepts a + * callback function which should be called with the search string. The search string is then used to + * jump to an item that is found in items. */ search?: () => void; /** @@ -1701,10 +1701,10 @@ declare namespace Blessed { */ invertSelected?: boolean; } - + export class ListElement extends BoxElement implements IHasOptions> { constructor(opts: ListOptions); - + /** * Original options object. */ @@ -1712,11 +1712,11 @@ declare namespace Blessed { /** * Add an item based on a string. - */ + */ add(text: string): void; /** * Add an item based on a string. - */ + */ addItem(text: string): void; /** * Removes an item from the list. Child can be an element, index, or string. @@ -1724,75 +1724,75 @@ declare namespace Blessed { removeItem(child: BlessedElement): BlessedElement; /** * Push an item onto the list. - * */ + * */ pushItem(child: BlessedElement): number; /** * Pop an item off the list. - * */ - popItem(): BlessedElement; + * */ + popItem(): BlessedElement; /** * Unshift an item onto the list. */ unshiftItem(child: BlessedElement): number; /** * Shift an item off the list. - * */ - shiftItem(): BlessedElement; + * */ + shiftItem(): BlessedElement; /** * Inserts an item to the list. Child can be an element, index, or string. */ - insertItem(i: number, child: BlessedElement): void; + insertItem(i: number, child: BlessedElement): void; /** * Returns the item element. Child can be an element, index, or string. */ - getItem(child: BlessedElement): BlessedElement; + getItem(child: BlessedElement): BlessedElement; /** * Set item to content. */ setItem(child: BlessedElement, content: BlessedElement | string): void; /** * Remove and insert items to the list. - * */ + * */ spliceItem(i: number, n: number, ...items: BlessedElement[]): void; /** * Clears all items from the list. - * */ - clearItems(): void; + * */ + clearItems(): void; /** * Sets the list items to multiple strings. */ - setItems(items: BlessedElement[]): void; + setItems(items: BlessedElement[]): void; /** * Returns the item index from the list. Child can be an element, index, or string. */ getItemIndex(child: BlessedElement): number; /** * Select an index of an item. - * */ + * */ select(index: number): void; /** * Select item based on current offset. - * */ + * */ move(offset: number): void; /** * Select item above selected. - * */ - up(amount: number): void; + * */ + up(amount: number): void; /** * Select item below selected. */ - down(amount: number): void; + down(amount: number): void; /** * Show/focus list and pick an item. The callback is executed with the result. */ - pick(callback: () => void): void; + pick(callback: () => void): void; /** * Find an item based on its text content. */ - fuzzyFind(arg: string | RegExp | (() => void)): void; - + fuzzyFind(arg: string | RegExp | (() => void)): void; + // ** events ** // - + on(event: string, listener: Function): this; /** * Received when an item is selected. @@ -1806,7 +1806,7 @@ declare namespace Blessed { * Either a select or a cancel event was received. */ on(event: "action", callback: () => void): this; - + on(event: "create item", callback: () => void): this; on(event: "add item", callback: () => void): this; on(event: "remove item", callback: () => void): this; @@ -1814,17 +1814,17 @@ declare namespace Blessed { on(event: "set items", callback: () => void): this; on(event: "select item", callback: (item: BlessedElement, index: number) => void): this; } - + export interface FileManagerOptions extends ListOptions { /** * Current working directory. */ cwd?: string; } - + export class FileManagerElement extends ListElement implements IHasOptions { constructor(opts: FileManagerOptions); - + /** * Original options object. */ @@ -1833,27 +1833,27 @@ declare namespace Blessed { * Current working directory. */ cwd: string; - + /** * Refresh the file list (perform a readdir on cwd and update the list items). */ - refresh(cwd:string, callback: () => void): void; + refresh(cwd: string, callback: () => void): void; refresh(callback: () => void): void; refresh(): void; /** * Pick a single file and return the path in the callback. */ - pick(cwd:string, callback: () => void): void; + pick(cwd: string, callback: () => void): void; pick(callback: () => void): void; /** * Reset back to original cwd. */ - reset(cwd:string, callback: () => void): void; + reset(cwd: string, callback: () => void): void; reset(callback: () => void): void; reset(): void; - + // ** events ** // - + on(event: string, listener: Function): this; /** * Received when an item is selected. @@ -1863,11 +1863,11 @@ declare namespace Blessed { * Received when an item is selected. */ on(event: "file", callback: (file: string) => void): this; - + on(event: "error", callback: (err: any, file: string) => void): this; on(event: "refresh", callback: () => void): this; } - + export interface StyleListTable extends ListElementStyle { /** * Header style. @@ -1878,7 +1878,7 @@ declare namespace Blessed { */ cell?: any; } - + export interface ListTableOptions extends ListOptions { /** * Array of array of strings representing rows. @@ -1886,7 +1886,7 @@ declare namespace Blessed { rows?: string[]; data?: string[][]; /** - * Spaces to attempt to pad on the sides of each cell. 2 by default: one space on each side + * Spaces to attempt to pad on the sides of each cell. 2 by default: one space on each side * (only useful if the width is shrunken). */ pad?: number; @@ -1894,22 +1894,22 @@ declare namespace Blessed { * Do not draw inner cells. */ noCellBorders?: boolean; - + style?: StyleListTable; } - + export class ListTableElement extends ListElement implements IHasOptions { constructor(opts: ListTableOptions); - + /** * Original options object. */ options: ListTableOptions; - + /** * Set rows in table. Array of arrays of strings. * @example: - * + * * table.setData([ [ 'Animals', 'Foods' ], [ 'Elephant', 'Apple' ], @@ -1920,7 +1920,7 @@ declare namespace Blessed { /** * Set rows in table. Array of arrays of strings. * @example: - * + * * table.setData([ [ 'Animals', 'Foods' ], [ 'Elephant', 'Apple' ], @@ -1929,11 +1929,11 @@ declare namespace Blessed { */ setData(rows: string[][]): void; } - + export interface ListbarOptions extends BoxOptions { style?: ListElementStyle; /** - * Set buttons using an object with keys as titles of buttons, containing of objects + * Set buttons using an object with keys as titles of buttons, containing of objects * containing keys of keys and callback. */ commands: Types.ListbarCommand[]; @@ -1943,15 +1943,15 @@ declare namespace Blessed { */ autoCommandKeys: boolean; } - + export class ListbarElement extends BoxElement implements IHasOptions { constructor(opts: ListbarOptions); - + /** * Original options object. */ options: ListbarOptions; - + /** * Set commands (see commands option above). */ @@ -1990,18 +1990,18 @@ declare namespace Blessed { moveRight(offset: number): void; /** * Select button and execute its callback. - */ + */ selectTab(index: number): void; - + // ** events ** // - + on(event: string, listener: Function): this; on(event: "set items", callback: () => void): this; on(event: "remove item", callback: () => void): this; on(event: "select tab", callback: () => void): this; } - + export interface FormOptions extends BoxOptions { /** * Allow default keys (tab, vi keys, enter). @@ -2015,7 +2015,7 @@ declare namespace Blessed { export class FormElement extends BoxElement implements IHasOptions { constructor(opts: FormOptions); - + /** * Original options object. */ @@ -2024,7 +2024,7 @@ declare namespace Blessed { * Last submitted data. */ submission: TFormData; - + /** * Focus next form element. */ @@ -2045,9 +2045,9 @@ declare namespace Blessed { * Clear the form. */ reset(): void; - + // ** events ** // - + on(event: string, listener: Function): this; /** * Form is submitted. Receives a data object. @@ -2062,7 +2062,7 @@ declare namespace Blessed { */ on(event: "reset", callback: () => void): this; } - + export interface InputOptions extends BoxOptions { } export abstract class InputElement extends BoxElement { @@ -2078,20 +2078,20 @@ declare namespace Blessed { */ inputOnFocus?: boolean; } - + export class TextareaElement extends InputElement implements IHasOptions { constructor(opts: TextareaOptions); - + /** * Original options object. */ options: TextareaOptions; - + /** * The input text. read-only. */ value: string; - + /** * Submit the textarea (emits submit). */ @@ -2101,32 +2101,32 @@ declare namespace Blessed { */ cancel(): void; /** - * Grab key events and start reading text from the keyboard. Takes a callback which receives + * Grab key events and start reading text from the keyboard. Takes a callback which receives * the final value. */ readInput(callback?: (err: any, value?: string) => void): void; /** - * Grab key events and start reading text from the keyboard. Takes a callback which receives + * Grab key events and start reading text from the keyboard. Takes a callback which receives * the final value. */ input(callback: (err: any, value?: string) => void): void; /** - * Grab key events and start reading text from the keyboard. Takes a callback which receives + * Grab key events and start reading text from the keyboard. Takes a callback which receives * the final value. */ setInput(callback: (err: any, value?: string) => void): void; /** - * Open text editor in $EDITOR, read the output from the resulting file. Takes a callback which + * Open text editor in $EDITOR, read the output from the resulting file. Takes a callback which * receives the final value. */ readEditor(callback: (err: any, value?: string) => void): void; /** - * Open text editor in $EDITOR, read the output from the resulting file. Takes a callback which + * Open text editor in $EDITOR, read the output from the resulting file. Takes a callback which * receives the final value. */ editor(callback: (err: any, value?: string) => void): void; /** - * Open text editor in $EDITOR, read the output from the resulting file. Takes a callback which + * Open text editor in $EDITOR, read the output from the resulting file. Takes a callback which * receives the final value. */ setEditor(callback: (err: any, value?: string) => void): void; @@ -2142,9 +2142,9 @@ declare namespace Blessed { * Set value. */ setValue(text: string): void; - + // ** events ** // - + on(event: string, listener: Function): this; on(event: "error", callback: (err: any) => void): this; @@ -2162,7 +2162,7 @@ declare namespace Blessed { */ on(event: "action", callback: (value: any) => void): this; } - + export interface TextboxOptions extends TextareaOptions { /** * Completely hide text. @@ -2173,10 +2173,10 @@ declare namespace Blessed { */ censor?: boolean; } - + export class TextboxElement extends TextareaElement implements IHasOptions { constructor(opts: TextboxOptions); - + /** * Original options object. */ @@ -2189,14 +2189,14 @@ declare namespace Blessed { /** * Replace text with asterisks (*). */ - censor: boolean; + censor: boolean; } - + export interface ButtonOptions extends BoxOptions { } export class ButtonElement extends InputElement implements IHasOptions { constructor(opts: ButtonOptions); - + /** * Original options object. */ @@ -2206,25 +2206,25 @@ declare namespace Blessed { * Press button. Emits press. */ press(): void; - + on(event: string, listener: Function): this; on(event: "press", callback: () => void): this; } - + export interface CheckboxOptions extends BoxOptions { - /** - * whether the element is checked or not. + /** + * whether the element is checked or not. * */ checked?: boolean; - /** - * enable mouse support. + /** + * enable mouse support. * */ mouse?: boolean; } - - /** - * A checkbox which can be used in a form element. + + /** + * A checkbox which can be used in a form element. * */ export class CheckboxElement extends InputElement implements IHasOptions { constructor(options?: CheckboxOptions); @@ -2234,39 +2234,39 @@ declare namespace Blessed { */ options: CheckboxOptions; - /** - * the text next to the checkbox (do not use setcontent, use `check.text = ''`). + /** + * the text next to the checkbox (do not use setcontent, use `check.text = ''`). * */ text: string; - /** - * whether the element is checked or not. + /** + * whether the element is checked or not. * */ checked: boolean; - /** - * same as `checked`. + /** + * same as `checked`. * */ value: boolean; - /** - * check the element. + /** + * check the element. * */ check(): void; - /** - * uncheck the element. + /** + * uncheck the element. * */ uncheck(): void; - /** - * toggle checked state. + /** + * toggle checked state. * */ toggle(): void; - } + } export interface RadioSetOptions extends BoxOptions { } /** - * An element wrapping RadioButtons. RadioButtons within this element will be mutually exclusive + * An element wrapping RadioButtons. RadioButtons within this element will be mutually exclusive * with each other. - * */ + * */ export abstract class RadioSetElement extends BoxElement { constructor(opts: RadioSetOptions); } @@ -2279,7 +2279,7 @@ declare namespace Blessed { export abstract class RadioButtonElement extends CheckboxElement { constructor(opts: RadioButtonOptions); } - + export interface PromptOptions extends BoxOptions { } /** @@ -2297,7 +2297,7 @@ declare namespace Blessed { setInput(text: string, value: string, callback: (err: any, value: string) => void): void; readInput(text: string, value: string, callback: (err: any, value: string) => void): void; } - + export interface QuestionOptions extends BoxOptions { } /** @@ -2307,13 +2307,13 @@ declare namespace Blessed { constructor(opts: QuestionOptions); options: QuestionOptions; - + /** * Ask a question. callback will yield the result. */ ask(question: string, callback: (err: any, value: string) => void): void; } - + export interface MessageOptions extends BoxOptions { } /** @@ -2331,14 +2331,14 @@ declare namespace Blessed { log(text: string, callback: (err: any) => void): void; display(text: string, time: number, callback: (err: any) => void): void; display(text: string, callback: (err: any) => void): void; - + /** * Display an error in the same way. */ error(text: string, time: number, callback: () => void): void; error(text: string, callback: () => void): void; } - + export interface LoadingOptions extends BoxOptions { } /** @@ -2360,32 +2360,32 @@ declare namespace Blessed { } export interface ProgressBarOptions extends BoxOptions { - /** - * can be `horizontal` or `vertical`. + /** + * can be `horizontal` or `vertical`. * */ orientation: string; - /** - * the character to fill the bar with (default is space). + /** + * the character to fill the bar with (default is space). * */ pch: string; - /** - * the amount filled (0 - 100). + /** + * the amount filled (0 - 100). * */ filled: number; - /** - * same as `filled`. + /** + * same as `filled`. * */ value: number; - /** - * enable key support. + /** + * enable key support. * */ keys: boolean; - /** - * enable mouse support. + /** + * enable mouse support. * */ mouse: boolean; } - + /** * A progress bar allowing various styles. This can also be used as a form input. */ @@ -2394,19 +2394,19 @@ declare namespace Blessed { options: ProgressBarOptions; - /** - * progress the bar by a fill amount. + /** + * progress the bar by a fill amount. * */ - progress(amount:number): void; - /** - * set progress to specific amount. + progress(amount: number): void; + /** + * set progress to specific amount. * */ - setProgress(amount:number): void; - /** - * reset the bar. + setProgress(amount: number): void; + /** + * reset the bar. * */ reset(): void; - + on(event: string, listener: Function): this; /** * Bar was reset. @@ -2419,104 +2419,104 @@ declare namespace Blessed { } export interface LogOptions extends ScrollableTextOptions { - /** - * amount of scrollback allowed. default: Infinity. + /** + * amount of scrollback allowed. default: Infinity. * */ scrollback?: number; - /** - * scroll to bottom on input even if the user has scrolled up. default: false. + /** + * scroll to bottom on input even if the user has scrolled up. default: false. * */ scrollOnInput?: boolean; } - - /** - * A log permanently scrolled to the bottom. + + /** + * A log permanently scrolled to the bottom. * */ export class Log extends ScrollableTextElement implements IHasOptions { constructor(options?: LogOptions); options: LogOptions; - /** - * amount of scrollback allowed. default: Infinity. + /** + * amount of scrollback allowed. default: Infinity. * */ scrollback: number; - /** - * scroll to bottom on input even if the user has scrolled up. default: false. + /** + * scroll to bottom on input even if the user has scrolled up. default: false. * */ scrollOnInput: boolean; - /** - * add a log line. + /** + * add a log line. * */ - log(text:string): void; - /** - * add a log line. + log(text: string): void; + /** + * add a log line. * */ - add(text:string): void; + add(text: string): void; } export interface TableOptions extends BoxOptions { - /** - * array of array of strings representing rows (same as `data`). + /** + * array of array of strings representing rows (same as `data`). * */ rows?: string[][]; - /** - * array of array of strings representing rows (same as `rows`). + /** + * array of array of strings representing rows (same as `rows`). * */ data?: string[][]; - /** - * spaces to attempt to pad on the sides of each cell. `2` by default: one space on each side (only useful if the width is shrunken). + /** + * spaces to attempt to pad on the sides of each cell. `2` by default: one space on each side (only useful if the width is shrunken). * */ pad?: number; - /** - * do not draw inner cells. + /** + * do not draw inner cells. * */ noCellBorders?: boolean; - /** - * fill cell borders with the adjacent background color. + /** + * fill cell borders with the adjacent background color. * */ fillCellBorders?: boolean; } - /** - * A stylized table of text elements. - * */ + /** + * A stylized table of text elements. + * */ export class TableElement extends BoxElement implements IHasOptions { constructor(opts: TableOptions); options: TableOptions; - /** - * set rows in table. array of arrays of strings. + /** + * set rows in table. array of arrays of strings. * */ setData(rows: string[][]): void; - /** - * set rows in table. array of arrays of strings. + /** + * set rows in table. array of arrays of strings. * */ setRows(rows: string[][]): void; } export interface TerminalOptions extends BoxOptions { - /** - * handler for input data. + /** + * handler for input data. * */ - handler?: (userInput:Buffer) => void; - /** - * name of shell. $SHELL by default. + handler?: (userInput: Buffer) => void; + /** + * name of shell. $SHELL by default. * */ - shell?:string; - /** - * args for shell. + shell?: string; + /** + * args for shell. * */ - args?:any; - /** - * can be line, underline, and block. + args?: any; + /** + * can be line, underline, and block. * */ cursor?: 'line'|'underline'|'block'; - + terminal?: string; - + /** * Object for process env. */ @@ -2528,39 +2528,39 @@ declare namespace Blessed { options: TerminalOptions; - /** + /** * reference to the headless term.js terminal. * */ term: any; - /** - * reference to the pty.js pseudo terminal. + /** + * reference to the pty.js pseudo terminal. * */ pty: any; - /** - * write data to the terminal. + /** + * write data to the terminal. * */ - write(data:string): void; + write(data: string): void; - /** - * nearly identical to `element.screenshot`, however, the specified region includes the terminal's _entire_ scrollback, rather than just what is visible on the screen. + /** + * nearly identical to `element.screenshot`, however, the specified region includes the terminal's _entire_ scrollback, rather than just what is visible on the screen. * */ - screenshot(xi?:number, xl?:number, yi?:number, yl?:number): string; + screenshot(xi?: number, xl?: number, yi?: number, yl?: number): string; } export interface ImageOptions extends BoxOptions { - /** - * path to image. + /** + * path to image. * */ file: string; - /** - * path to w3mimgdisplay. if a proper w3mimgdisplay path is not given, blessed will search the entire disk for the binary. + /** + * path to w3mimgdisplay. if a proper w3mimgdisplay path is not given, blessed will search the entire disk for the binary. * */ type: "ansi" | "overlay" | "w3m"; } - - /** - * Display an image in the terminal (jpeg, png, gif) using w3mimgdisplay. Requires w3m to be installed. X11 required: works in xterm, urxvt, and possibly other terminals. + + /** + * Display an image in the terminal (jpeg, png, gif) using w3mimgdisplay. Requires w3m to be installed. X11 required: works in xterm, urxvt, and possibly other terminals. * */ export class ImageElement extends BoxElement implements IHasOptions { constructor(options?: ImageOptions); @@ -2569,47 +2569,47 @@ declare namespace Blessed { } export interface ANSIImageOptions extends BoxOptions { - /** - * URL or path to PNG/GIF file. Can also be a buffer. + /** + * URL or path to PNG/GIF file. Can also be a buffer. * */ file: string; - /** - * Scale cellmap down (0-1.0) from its original pixel width/height (Default: 1.0). + /** + * Scale cellmap down (0-1.0) from its original pixel width/height (Default: 1.0). * */ scale: number; /** * This differs from other element's width or height in that only one of them is needed: blessed will maintain the aspect ratio of the image as it scales down to the proper number of cells. NOTE: PNG/GIF's are always automatically shrunken to size (based on scale) if a width or height is not given. - * */ + * */ width: number | string; height: number | string; - + /** * Add various "density" ASCII characters over the rendering to give the image more detail, similar to libcaca/libcucul (the library mplayer uses to display videos in the terminal). */ ascii: string; - + /** * Whether to animate if the image is an APNG/animating GIF. If false, only display the first frame or IDAT (Default: true). */ animate: boolean; - + /** * Set the speed of animation. Slower: 0.0-1.0. Faster: 1-1000. It cannot go faster than 1 frame per millisecond, so 1000 is the fastest. (Default: 1.0) */ - speed: number; - + speed: number; + /** * mem or cpu. If optimizing for memory, animation frames will be rendered to bitmaps as the animation plays, using less memory. Optimizing for cpu will precompile all bitmaps beforehand, which may be faster, but might also OOM the process on large images. (Default: mem). */ optimization: "mem" | "cpu"; } - - /** - * Convert any .png file (or .gif, see below) to an ANSI image and display it as an element. + + /** + * Convert any .png file (or .gif, see below) to an ANSI image and display it as an element. * */ export class ANSIImageElement extends BoxElement implements IHasOptions { - constructor(options?:ANSIImageOptions); + constructor(options?: ANSIImageOptions); options: ANSIImageOptions; @@ -2618,18 +2618,18 @@ declare namespace Blessed { */ img: Types.TImage; - /** - * set the image in the box to a new path. + /** + * set the image in the box to a new path. * */ setImage(img: string, callback: () => void): void; - /** - * clear the current image. + /** + * clear the current image. * */ clearImage(callback: () => void): void; /** * Play animation if it has been paused or stopped. */ - play(): void; + play(): void; /** * Pause animation. */ @@ -2644,7 +2644,7 @@ declare namespace Blessed { /** * Path to image. */ - file: string; + file: string; /** * Render the file as ANSI art instead of using w3m to overlay Internally uses the ANSIImage element. See the ANSIImage element for more information/options. (Default: true). */ @@ -2652,39 +2652,39 @@ declare namespace Blessed { /** * Path to w3mimgdisplay. If a proper w3mimgdisplay path is not given, blessed will search the entire disk for the binary. */ - w3m: string; + w3m: string; /** * Whether to search /usr, /bin, and /lib for w3mimgdisplay (Default: true). */ search: string; } - /** - * Convert any .png file (or .gif, see below) to an ANSI image and display it as an element. + /** + * Convert any .png file (or .gif, see below) to an ANSI image and display it as an element. * */ export class OverlayImageElement extends BoxElement implements IHasOptions { constructor(options?: OverlayImageOptions); - + options: OverlayImageOptions; - /** - * set the image in the box to a new path. + /** + * set the image in the box to a new path. * */ setImage(img: string, callback: () => void): void; - /** - * clear the current image. + /** + * clear the current image. * */ clearImage(callback: () => void): void; - /** - * get the size of an image file in pixels. + /** + * get the size of an image file in pixels. * */ - imageSize(img:string, callback: () => void): void; - /** - * get the size of the terminal in pixels. + imageSize(img: string, callback: () => void): void; + /** + * get the size of the terminal in pixels. * */ termSize(callback: () => void): void; - /** - * get the pixel to cell ratio for the terminal. + /** + * get the pixel to cell ratio for the terminal. * */ getPixelRatio(callback: () => void): void; } @@ -2697,30 +2697,30 @@ declare namespace Blessed { /** * Start time in seconds. */ - start: number; + start: number; } - + export class VideoElement extends BoxElement implements IHasOptions { constructor(options?: VideoOptions); options: VideoOptions; - + /** * The terminal element running mplayer or mpv. */ tty: any; } - + export interface LayoutOptions extends ElementOptions { /** - * A callback which is called right before the children are iterated over to be rendered. Should return an + * A callback which is called right before the children are iterated over to be rendered. Should return an * iterator callback which is called on each child element: iterator(el, i). */ renderer?: () => void; /** - * Using the default renderer, it provides two layouts: inline, and grid. inline is the default and will render - * akin to inline-block. grid will create an automatic grid based on element dimensions. The grid cells' + * Using the default renderer, it provides two layouts: inline, and grid. inline is the default and will render + * akin to inline-block. grid will create an automatic grid based on element dimensions. The grid cells' * width and height are always determined by the largest children in the layout. */ layout: "inline" | "inline-block" | "grid"; @@ -2732,25 +2732,25 @@ declare namespace Blessed { options: LayoutOptions; /** - * A callback which is called right before the children are iterated over to be rendered. Should return an + * A callback which is called right before the children are iterated over to be rendered. Should return an * iterator callback which is called on each child element: iterator(el, i). */ renderer(coords: PositionCoords): void; /** - * Check to see if a previous child element has been rendered and is visible on screen. This is only useful + * Check to see if a previous child element has been rendered and is visible on screen. This is only useful * for checking child elements that have already been attempted to be rendered! see the example below. */ isRendered(el: BlessedElement): boolean; /** - * Get the last rendered and visible child element based on an index. This is useful for basing the position + * Get the last rendered and visible child element based on an index. This is useful for basing the position * of the current child element on the position of the last child element. */ getLast(i: number): Element; /** - * Get the last rendered and visible child element coords based on an index. This is useful for basing the position + * Get the last rendered and visible child element coords based on an index. This is useful for basing the position * of the current child element on the position of the last child element. See the example below. */ - getLastCoords(i: number): PositionCoords; + getLastCoords(i: number): PositionCoords; } export class Program { @@ -2759,11 +2759,11 @@ declare namespace Blessed { name. The `attr` string can be of the form `red fg` or `52 bg` where `52` is a 0-255 integer color number. */ - text (text:string, attr:string): string; + text (text: string, attr: string): string; } } - export module widget { + export namespace widget { export class Element extends Widgets.BlessedElement { } export class Node extends Widgets.Node { } export class Screen extends Widgets.Screen { } @@ -2816,21 +2816,21 @@ declare namespace Blessed { export function radiobutton(options?: Widgets.RadioButtonOptions): Widgets.RadioButtonElement; export function table(options?: Widgets.TableOptions): Widgets.TableElement; - + export function prompt(options?: Widgets.PromptOptions): Widgets.PromptElement; export function question(options?: Widgets.QuestionOptions): Widgets.QuestionElement; export function message(options?: Widgets.MessageOptions): Widgets.MessageElement; export function loading(options?: Widgets.LoadingOptions): Widgets.LoadingElement; - + export function progressbar(options?: Widgets.ProgressBarOptions): Widgets.ProgressBarElement; export function terminal(options?: Widgets.TerminalOptions): Widgets.TerminalElement; export function layout(options?: Widgets.LayoutOptions): Widgets.LayoutElement; - + export function escape(item: any): any; export const colors: { match: (hexColor: string) => string - } + }; } export = Blessed; \ No newline at end of file diff --git a/blissfuljs/index.d.ts b/blissfuljs/index.d.ts index 76061c1391..7e84854ad1 100644 --- a/blissfuljs/index.d.ts +++ b/blissfuljs/index.d.ts @@ -22,7 +22,7 @@ declare namespace BlissNS { create(tag: "a"): HTMLAnchorElement; create(tag: "applet"): HTMLAppletElement; - create(tag: "area"):HTMLAreaElement; + create(tag: "area"): HTMLAreaElement; create(tag: "audio"): HTMLAudioElement; create(tag: "base"): HTMLBaseElement; create(tag: "basefont"): HTMLBaseFontElement; @@ -126,39 +126,39 @@ declare namespace BlissNS { create(tag: "video", options: Object): HTMLVideoElement; create(tag: string, options: Object): BlissDecoratedElement; - create(...args:any[]): BlissDecoratedElement; + create(...args: any[]): BlissDecoratedElement; set(subject: BlissDecoratedElement, options: Object): BlissDecoratedElement; contents(subject: BlissDecoratedElement , elements: Object | Array | string | Number | Node): BlissDecoratedElement; contents(subject: BlissDecoratedElement[], elements: Object | Array | string | Number | Node): BlissDecoratedElement[]; - clone(subject:BlissDecoratedElement) : BlissDecoratedElement; - after(subject:BlissDecoratedElement, element: Element) : BlissDecoratedElement; - around(subject:BlissDecoratedElement, element: Element) : BlissDecoratedElement; - attributes(subject:BlissDecoratedElement, attrs: Object) : BlissDecoratedElement; - attributes(subject:BlissDecoratedElement[], attrs: Object) : BlissDecoratedElement[]; - before(subject:BlissDecoratedElement, element: Element) : BlissDecoratedElement; - inside(subject:BlissDecoratedElement, element: Element) : BlissDecoratedElement; - properties(subject:BlissDecoratedElement, props: Object) : BlissDecoratedElement; - properties(subject:BlissDecoratedElement[], props: Object) : BlissDecoratedElement[]; - start(subject:BlissDecoratedElement, element: Element) : BlissDecoratedElement; - style(subject:BlissDecoratedElement, properties: Object) : BlissDecoratedElement; - style(subject:BlissDecoratedElement[], properties: Object) : BlissDecoratedElement[]; - transition(subject:BlissDecoratedElement | BlissDecoratedElement[], properties: Object, duration?: number) : Promise; - delegate(subject:BlissDecoratedElement , type: string, selector: string, callback: (event: Event) => void): BlissDecoratedElement; + clone(subject: BlissDecoratedElement): BlissDecoratedElement; + after(subject: BlissDecoratedElement, element: Element): BlissDecoratedElement; + around(subject: BlissDecoratedElement, element: Element): BlissDecoratedElement; + attributes(subject: BlissDecoratedElement, attrs: Object): BlissDecoratedElement; + attributes(subject: BlissDecoratedElement[], attrs: Object): BlissDecoratedElement[]; + before(subject: BlissDecoratedElement, element: Element): BlissDecoratedElement; + inside(subject: BlissDecoratedElement, element: Element): BlissDecoratedElement; + properties(subject: BlissDecoratedElement, props: Object): BlissDecoratedElement; + properties(subject: BlissDecoratedElement[], props: Object): BlissDecoratedElement[]; + start(subject: BlissDecoratedElement, element: Element): BlissDecoratedElement; + style(subject: BlissDecoratedElement, properties: Object): BlissDecoratedElement; + style(subject: BlissDecoratedElement[], properties: Object): BlissDecoratedElement[]; + transition(subject: BlissDecoratedElement | BlissDecoratedElement[], properties: Object, duration?: number): Promise; + delegate(subject: BlissDecoratedElement , type: string, selector: string, callback: (event: Event) => void): BlissDecoratedElement; delegate(subject: BlissDecoratedElement[], type: string, selector: string, callback: (event: Event) => void): BlissDecoratedElement[]; - delegate(subject:BlissDecoratedElement , type: string, selectorsToCallbacks: {[selector: string] : (event: Event) => void}): BlissDecoratedElement; - delegate(subject:BlissDecoratedElement[], type: string, selectorsToCallbacks: {[selector: string] : (event: Event) => void}): BlissDecoratedElement[]; - delegate(subject:BlissDecoratedElement , typesToSelectorsToCallbacks: {[type: string] : {[selector: string] : (event: Event) => void}}): BlissDecoratedElement; - delegate(subject:BlissDecoratedElement[], typesToSelectorsToCallbacks: {[type: string] : {[selector: string] : (event: Event) => void}}): BlissDecoratedElement[]; - events(subject:BlissDecoratedElement , handlers: {[eventName:string] : (event: Event) => void} | Element): BlissDecoratedElement; - events(subject: BlissDecoratedElement[], handlers: {[eventName:string] : (event: Event) => void} | Element): BlissDecoratedElement[]; - fire(subject:BlissDecoratedElement, type: string, properties?: {[propertyName: string] : any}): BlissDecoratedElement; - fire(subject:BlissDecoratedElement[], type: string, properties?: {[propertyName: string] : any}): BlissDecoratedElement[]; - once(subject:BlissDecoratedElement, handlers: {[eventName:string] : (event: Event) => void} | Element): BlissDecoratedElement; - once(subject:BlissDecoratedElement[], handlers: {[eventName:string] : (event: Event) => void} | Element): BlissDecoratedElement[]; + delegate(subject: BlissDecoratedElement , type: string, selectorsToCallbacks: {[selector: string]: (event: Event) => void}): BlissDecoratedElement; + delegate(subject: BlissDecoratedElement[], type: string, selectorsToCallbacks: {[selector: string]: (event: Event) => void}): BlissDecoratedElement[]; + delegate(subject: BlissDecoratedElement , typesToSelectorsToCallbacks: {[type: string]: {[selector: string]: (event: Event) => void}}): BlissDecoratedElement; + delegate(subject: BlissDecoratedElement[], typesToSelectorsToCallbacks: {[type: string]: {[selector: string]: (event: Event) => void}}): BlissDecoratedElement[]; + events(subject: BlissDecoratedElement , handlers: {[eventName: string]: (event: Event) => void} | Element): BlissDecoratedElement; + events(subject: BlissDecoratedElement[], handlers: {[eventName: string]: (event: Event) => void} | Element): BlissDecoratedElement[]; + fire(subject: BlissDecoratedElement, type: string, properties?: {[propertyName: string]: any}): BlissDecoratedElement; + fire(subject: BlissDecoratedElement[], type: string, properties?: {[propertyName: string]: any}): BlissDecoratedElement[]; + once(subject: BlissDecoratedElement, handlers: {[eventName: string]: (event: Event) => void} | Element): BlissDecoratedElement; + once(subject: BlissDecoratedElement[], handlers: {[eventName: string]: (event: Event) => void} | Element): BlissDecoratedElement[]; ready(context?: Document): Promise; - remove(subject:Element | BlissStatic): void; + remove(subject: Element | BlissStatic): void; all(array: Array, method: string, ...args: Array): Array; all(array: Array, method: string, ...args: Array): Array; @@ -170,7 +170,7 @@ declare namespace BlissNS { lazy?: Object; live?: Object; static?: Object; - [propertyName: string]:any; + [propertyName: string]: any; }): T; Class(options: { @@ -180,20 +180,20 @@ declare namespace BlissNS { lazy?: Object; live?: Object; static?: Object; - [propertyName: string]:any; + [propertyName: string]: any; }): Object; - each(obj: {[propertyName: string] : any}, callback: Function, ret?: Object): T; - each(obj: {[propertyName: string] : any}, callback: Function, ret?: Object): Object; + each(obj: {[propertyName: string]: any}, callback: Function, ret?: Object): T; + each(obj: {[propertyName: string]: any}, callback: Function, ret?: Object): Object; - extend(target: Object, source: any, whitelist? : string[] | string | Function | RegExp): Object; - extend(target: Object, source: any, whitelist? : string[] | string | Function | RegExp): T; + extend(target: Object, source: any, whitelist?: string[] | string | Function | RegExp): Object; + extend(target: Object, source: any, whitelist?: string[] | string | Function | RegExp): T; lazy(object: Object, property: string, getter: () => any): Object; - lazy(object:Object, property: string, getter:() => any): T; + lazy(object: Object, property: string, getter: () => any): T; - lazy(object: Object, properties: {[propertyName:string]: () => any}): Object; - lazy(object: Object, properties: {[propertyName:string]: () => any}): T; + lazy(object: Object, properties: {[propertyName: string]: () => any}): Object; + lazy(object: Object, properties: {[propertyName: string]: () => any}): T; live(object: Object, property: string, descriptor: Object | Function): Object; live(object: Object, property: string, descriptor: Object | Function): T; @@ -212,7 +212,7 @@ declare namespace BlissNS { fetch(url: string, options?: { method?: string; data?: string; - headers?:{[key:string]:string}; + headers?: {[key: string]: string}; onreadystatechange?: (ev: ProgressEvent) => any; readyState?: number; @@ -234,7 +234,7 @@ declare namespace BlissNS { include(url: string ): Promise; add(name: string, callback: Function, on?: BlissStatic | BlissStaticCollection | Element | Array): void; - add(callbacks:{[callbackName: string]: Function}, on?: BlissStatic | BlissStaticCollection | Element | Array): void; + add(callbacks: {[callbackName: string]: Function}, on?: BlissStatic | BlissStaticCollection | Element | Array): void; hooks: { add(name: string, callback: Function): void; @@ -612,24 +612,24 @@ declare namespace BlissNS { } interface BlissBindedElement extends BlissNativeExtentions { - set(options: Object): BlissDecoratedElement - contents(elements: Object | Array | string | Number | Node): BlissDecoratedElement + set(options: Object): BlissDecoratedElement; + contents(elements: Object | Array | string | Number | Node): BlissDecoratedElement; clone(): BlissDecoratedElement; - after(element:Element) : BlissDecoratedElement; - around(element:Element) : BlissDecoratedElement; - attributes(attrs: Object) : BlissDecoratedElement; - before(element:Element) : BlissDecoratedElement; - inside(element:Element) : BlissDecoratedElement; - properties(props: Object) : BlissDecoratedElement; - start(element:Element) : BlissDecoratedElement; - style(properties: Object) : BlissDecoratedElement; - transition(properties: Object, duration?: number) : Promise; + after(element: Element): BlissDecoratedElement; + around(element: Element): BlissDecoratedElement; + attributes(attrs: Object): BlissDecoratedElement; + before(element: Element): BlissDecoratedElement; + inside(element: Element): BlissDecoratedElement; + properties(props: Object): BlissDecoratedElement; + start(element: Element): BlissDecoratedElement; + style(properties: Object): BlissDecoratedElement; + transition(properties: Object, duration?: number): Promise; delegate(type: string, selector: string, callback: (event: Event) => void): BlissDecoratedElement; - delegate(type: string, selectorsToCallbacks: {[selector: string] : (event: Event) => void}): BlissDecoratedElement; - delegate(typesToSelectorsToCallbacks: {[type: string] : {[selector: string] : (event: Event) => void}}): BlissDecoratedElement; - events(handlers: {[eventName:string] : (event: Event) => void} | Element): BlissDecoratedElement; - fire(type: string, properties?: {[propertyName: string] : any}): BlissDecoratedElement; - once(handlers: {[eventName:string] : (event: Event) => void} | Element): BlissDecoratedElement; + delegate(type: string, selectorsToCallbacks: {[selector: string]: (event: Event) => void}): BlissDecoratedElement; + delegate(typesToSelectorsToCallbacks: {[type: string]: {[selector: string]: (event: Event) => void}}): BlissDecoratedElement; + events(handlers: {[eventName: string]: (event: Event) => void} | Element): BlissDecoratedElement; + fire(type: string, properties?: {[propertyName: string]: any}): BlissDecoratedElement; + once(handlers: {[eventName: string]: (event: Event) => void} | Element): BlissDecoratedElement; remove(): BlissDecoratedElement; } @@ -640,24 +640,24 @@ declare namespace BlissNS { } interface BlissCollectionArray { - set(options: Object): BlissCollectionArray - contents(elements: Object | Array | string | Number | Node): BlissCollectionArray + set(options: Object): BlissCollectionArray; + contents(elements: Object | Array | string | Number | Node): BlissCollectionArray; clone(): BlissCollectionArray; - after(element:Element) : BlissCollectionArray; - around(element:Element) : BlissCollectionArray; - attributes(attrs: Object) : BlissCollectionArray; - before(element:Element) : BlissCollectionArray; - inside(element:Element) : BlissCollectionArray; - properties(props: Object) : BlissCollectionArray; - start(element:Element) : BlissCollectionArray; - style(properties: Object) : BlissCollectionArray; - transition(properties: Object, duration?: number) : Promise[]; + after(element: Element): BlissCollectionArray; + around(element: Element): BlissCollectionArray; + attributes(attrs: Object): BlissCollectionArray; + before(element: Element): BlissCollectionArray; + inside(element: Element): BlissCollectionArray; + properties(props: Object): BlissCollectionArray; + start(element: Element): BlissCollectionArray; + style(properties: Object): BlissCollectionArray; + transition(properties: Object, duration?: number): Promise[]; delegate(type: string, selector: string, callback: (event: Event) => void): BlissCollectionArray; - delegate(type: string, selectorsToCallbacks: {[selector: string] : (event: Event) => void}): BlissCollectionArray; - delegate(typesToSelectorsToCallbacks: {[type: string] : {[selector: string] : (event: Event) => void}}): BlissCollectionArray; - events(handlers: {[eventName:string] : (event: Event) => void} | Element): BlissCollectionArray; - fire(type: string, properties?: {[propertyName: string] : any}): BlissCollectionArray; - once(handlers: {[eventName:string] : (event: Event) => void} | Element): BlissCollectionArray; + delegate(type: string, selectorsToCallbacks: {[selector: string]: (event: Event) => void}): BlissCollectionArray; + delegate(typesToSelectorsToCallbacks: {[type: string]: {[selector: string]: (event: Event) => void}}): BlissCollectionArray; + events(handlers: {[eventName: string]: (event: Event) => void} | Element): BlissCollectionArray; + fire(type: string, properties?: {[propertyName: string]: any}): BlissCollectionArray; + once(handlers: {[eventName: string]: (event: Event) => void} | Element): BlissCollectionArray; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): BlissCollectionArray; diff --git a/blob-stream/index.d.ts b/blob-stream/index.d.ts index c7452a3242..869fd680a7 100644 --- a/blob-stream/index.d.ts +++ b/blob-stream/index.d.ts @@ -9,7 +9,7 @@ declare function BlobStream(): BlobStream.IBlobStream; declare namespace BlobStream { - interface IBlobStream extends NodeJS.WritableStream{ + interface IBlobStream extends NodeJS.WritableStream { toBlob(type?: string): Blob; toBlobURL(type?: string): string; } diff --git a/blocks/blocks-tests.ts b/blocks/blocks-tests.ts index 3fa24b4d83..474d1ce888 100644 --- a/blocks/blocks-tests.ts +++ b/blocks/blocks-tests.ts @@ -51,7 +51,7 @@ function test_blocks_methods() { blocks.type(null); // -> null - + blocks.is([], 'array'); // -> true @@ -91,7 +91,7 @@ function test_blocks_methods() { blocks.toUnit('60px', '%'); // -> 60% - + var array = [3, 1, 4]; var cloned = blocks.clone(array); // -> [3, 1, 4] @@ -137,7 +137,7 @@ function test_blocks_methods() { alertAll(); // -> alerts 'My name is John Doe' - + blocks.equals([3, 4], [3, 4]); // -> true diff --git a/blocks/index.d.ts b/blocks/index.d.ts index 42cff624ae..8280ca5b0b 100644 --- a/blocks/index.d.ts +++ b/blocks/index.d.ts @@ -9,12 +9,12 @@ interface BlocksStatic { (obj: any): any; - + /** * Performs a query operation on the DOM. Executes all data-query attributes * and renders the html result to the specified HTMLElement if not specified * uses document.body by default. - * + * * @param model The model that will be used to query the DOM. */ query(model: any): void; @@ -31,54 +31,54 @@ interface BlocksStatic { /** * Iterates over the collection - * + * * @param collection The array or object to iterate over * @param callback The callback that will be executed for each element in the collection * @param thisArg Optional this context for the callback */ each(collection: any, callback: (value: any, index: any, collection: any) => void, thisArg?: any): void; - + /** * Iterates over the collection from end to start - * + * * @param collection The array or object to iterate over * @param callback The callback that will be executed for each element in the collection * @param thisArg Optional this context for the callback */ eachRight(collection: any, callback: (value: any, index: any, collection: any) => void, thisArg?: any): void; - + /** * Determines if a value is an array. * Returns false for array like objects (for example arguments object). - * + * * @param value The value to check if it is an array */ isArray(value: any): boolean; - + /** * Represents a dummy empty function */ noop(): Function; - + /** * Determines the true type of an object. * Returns the type of the value as a string. - * + * * @param value The value for which to determine its type */ type(value: any): string; - + /** * Determines if a specific value is the specified type - * + * * @param value The value * @param type The type */ is(value: any, type: string): boolean; - + /** * Checks if a variable has the specified property. Uses hasOwnProperty internally - * + * * @param obj The object to call hasOwnPrototype for * @param key The key to check if exists in the object */ @@ -87,23 +87,23 @@ interface BlocksStatic { /** * Unwraps a jsblocks value to its raw representation. * Unwraps blocks.observable() and blocks() values - * + * * @param value The value that will be unwrapped */ unwrap(value: any): any; - + /** * Converts a value to an array. Arguments object is converted to array and primitive values * are wrapped in an array. * Does nothing when value is already an array - * + * * @param value The value to be converted to an array */ toArray(value: any): any[]; - + /** * Converts an integer or string to a unit. If the value could not be parsed to a number it is not converted - * + * * @param value The value to be converted to the specified unit */ toUnit(value: any): any; @@ -112,10 +112,10 @@ interface BlocksStatic { * @param unit Optionally provide a unit to convert to. Default value is 'px' */ toUnit(value: any, unit: string): any; - + /** * Clones value. If deepClone is set to true the value will be cloned recursively - * + * * @param value Value/object to be cloned */ clone(value: any): any; @@ -124,23 +124,23 @@ interface BlocksStatic { * @param deepClone By default false */ clone(value: any, deepClone: boolean): any; - + /** * Determines if the specified value is a HTML elements collection. * Returns whether the value is elements collection. - * + * * @param value The value to check if it is elements collection */ isElements(value: any): boolean; - + /** * Determines if the specified value is a HTML element. * Returns whether the value is a HTML element. - * + * * @param value The value to check if it is a HTML element */ isElement(value: any): boolean; - + /** * Determines if a the specified value is a boolean. * Whether the value is a boolean or not. @@ -148,11 +148,11 @@ interface BlocksStatic { * @param value The value to be checked if it is a boolean */ isBoolean(value: any): boolean; - + /** * Determines if the specified value is an object. * Returns whether the value is an object. - * + * * @param obj The value to check for if it is an object */ isObject(obj: any): boolean; @@ -160,7 +160,7 @@ interface BlocksStatic { /** * Determines if a value is a object created using {} or new Object. * Whether the value is a plain object or not. - * + * * @param obj The value that will be checked */ isPlainObject(obj: any): boolean; @@ -168,16 +168,16 @@ interface BlocksStatic { /** * Changes the this binding to a function and optionally passes additional parameters to the function. * Returns the newly created function having the new this binding and optional arguments. - * + * * @param func The function for which to change the this binding and optionally add arguments * @param thisArg The new this binding context value * @param args Optional arguments that will be passed to the function */ bind(func: Function, thisArg: any, ...args: any[]): Function; - + /** * Determines if two values are deeply equal. Set deepEqual to false to stop recusively equality checking - * + * * @param a The first object to be campared * @param b The second object to be compared */ @@ -188,32 +188,32 @@ interface BlocksStatic { * @param deepEqual Determines if the equality check will recursively check all child properties */ equals(a: any, b: any, deepEqual: boolean): boolean; - + /** * Gets the context for a particular element. Searches all parents until it finds the context. - * + * * @param element The element from which to search for a context - * + * */ context(element: any): any; - + /** * Gets the associated dataItem for a particlar element. Searches all parents until it finds the context - * + * * @param element The element from which to search for a dataItem */ dataItem(element: any): any; /** * Determines if particular value is an blocks.observable - * + * * @param value The value to check if the value is observable */ isObservable(value: any): boolean; - + /** * Gets the raw value of an observable or returns the value if the specified object is not an observable - * + * * @param value The value that could be any object observable or not */ unwrapObservable(value: any): any; @@ -233,7 +233,7 @@ interface BlocksStatic { * @param options Overrides default jsblocks options */ server(options: Server): { express(): any }; - + /** * Make observable property. You can specify initial value in parentheses. */ @@ -254,15 +254,15 @@ interface BlocksStatic { interface BlocksObservable extends Extendable { (arg: any): BlocksObservable; - + /** * Updates all elements, expressions and dependencies where the observable is used */ update(): BlocksObservable; - + /** * If event in prototype is not defined use this function instead. - * + * * @param event Name of the event to raise * @param trigger Function to be called when event is fired */ @@ -279,12 +279,12 @@ interface BlocksArray extends BlocksObservable { * Updates all elements, expressions and dependencies where the observable is used */ update(): BlocksArray; - + /** * Extends the current observable with particular functionality depending on the parameters specified. * If the method is called without arguments and jsvalue framework is included the observable will be * extended with the methods available in jsvalue for the current type. - * + * * @param options Optional options */ extend(...options: any[]): BlocksArray; @@ -297,14 +297,14 @@ interface BlocksArray extends BlocksObservable { /** * Removes all items from the collection and replaces them with the new value provided. * The value could be Array, observable array or jsvalue.Array - * + * * @param value The new value that will be populated */ reset(value: any[]): BlocksArray; - + /** * Adds values to the end of the observable array - * + * * @param value The values that will be added to the end of the array */ add(value: any): BlocksArray; @@ -313,10 +313,10 @@ interface BlocksArray extends BlocksObservable { * @param index Optional index specifying where to insert the value */ add(value: any, index: number): BlocksArray; - + /** * Adds the values from the provided array(s) to the end of the collection - * + * * @param value The array that will be added to the end of the array */ addMany(value: any[]): BlocksArray; @@ -328,23 +328,23 @@ interface BlocksArray extends BlocksObservable { /** * Swaps two values in the observable array. Note: Faster than removing the items and adding them at the locations - * + * * @param indexA The first index that points to the index in the array that will be swapped * @param indexB The second index that points to the index in the array that will be swapped */ swap(indexA: number, indexB: number): BlocksArray; - + /** * Moves an item from one location to another in the array. Note: Faster than removing the item and adding it at the location - * + * * @param sourceIndex The index pointing to the item that will be moved * @param targetIndex The index where the item will be moved to */ move(sourceIndex: number, targetIndex: number): BlocksArray; - + /** * Removes an item from the observable array - * + * * @param value The value that will be removed or a callback function which returns true or false to determine if the value should be removed */ remove(value: any): BlocksArray; @@ -353,10 +353,10 @@ interface BlocksArray extends BlocksObservable { * @param thisArg Optional this context for the callback */ remove(value: any, thisArg: Function): BlocksArray; - + /** * Removes an item at the specified index - * + * * @param index The index location of the item that will be removed */ removeAt(index: number): BlocksArray; @@ -379,17 +379,17 @@ interface BlocksArray extends BlocksObservable { * @param thisArg Optional this context for the callback function */ removeAll(callback: Function, thisArg: any): BlocksArray; - + /** * The concat() method is used to join two or more arrays - * + * * @param arrays The arrays to be joined */ - concat(...arrays: any[]): any[] - + concat(...arrays: any[]): any[]; + /** * The slice() method returns the selected elements in an array, as a new array object - * + * * @param start An integer that specifies where to start the selection (The first element has an index of 0) */ slice(start: number): any[]; @@ -408,29 +408,29 @@ interface BlocksArray extends BlocksObservable { * @param separator The separator to be used. If omitted, the elements are separated with a comma */ join(seperator: string): string; - + /** * The pop() method removes the last element of a observable array, and returns that element */ pop(): any; - - /** + + /** * The push() method adds new items to the end of the observable array, and returns the new length - * + * * @param values The item(s) to add to the observable array */ push(...values: any[]): number; - + /** * Reverses the order of the elements in the observable array */ reverse(): any[]; - + /** * Removes the first element of a observable array, and returns that element */ - shift(): any - + shift(): any; + /** * Sorts the elements of an array */ @@ -439,11 +439,11 @@ interface BlocksArray extends BlocksObservable { * @param sortfunction A function that defines the sort order */ sort(sortfunction: Function): any[]; - + /** * Adds and/or removes elements from the observable array * Returns A new array containing the removed items, if any. - * + * * @param index An integer that specifies at what position to add/remove items. Use negative values to specify the position from the end of the array. * @param howMany The number of items to be removed. If set to 0, no items will be removed. * @param items The new item(s) to be added to the array. @@ -452,7 +452,7 @@ interface BlocksArray extends BlocksObservable { /** * The unshift() method adds new items to the beginning of an array, and returns the new length. - * + * * @param items */ unshift(...items: any[]): number; @@ -463,7 +463,7 @@ interface BlocksArray extends BlocksObservable { ///////////////////////////////////////// interface App extends Extendable { - + /** * Creates an application property for a Model. */ @@ -472,33 +472,33 @@ interface App extends Extendable { * @param options Configuration options for property */ Property(options: PropertyPrototype): any; - + /** * Defines a view that will be part of the Application. - * + * * @param name The name of the View you are creating * @param prototype The object that will represent the View */ View(name: string, prototype: ViewPrototype): any; /** * Defines a view that will be part of the Application. - * + * * @param parentViewName Provide this parameter only if you are creating nested views. This is the name of the parent View * @param name The name of the View you are creating * @param prototype The object that will represent the View */ View(parentViewName: string, name: string, prototype: ViewPrototype): any; - + /** * Creates a new Model - * + * * @param prototype The Model object properties that will be created */ Model(prototype: ModelPrototype): Model; - + /** * Creates a new Collection - * + * * @param prototype The Collection object properties that will be created. */ Collection(prototype: CollectionPrototype): Collection; @@ -516,7 +516,7 @@ interface PropertyPrototype { value?: any; validateOnChange?: boolean; maxErrors?: number; - validateInitially?: boolean + validateInitially?: boolean; // Validators required?: Validator; @@ -543,20 +543,20 @@ interface Validator { } interface ViewPrototype { parentView?: any; - + /** * Routes to a specific URL and actives the appropriate views associated with the URL - * + * * @param name Name of the route */ route?(name: string): ViewPrototype; - + /** * Determines if the view is visible */ isActive?(): boolean; - + /** * Override the init method to perform actions when the View is first created and shown on the page */ @@ -590,7 +590,7 @@ interface ViewPrototype { interface Model { (): Model; (props: Object): Model; - + /** * Fires a request to the server to populate the Model based on the read URL specified */ @@ -599,7 +599,7 @@ interface Model { * @param params The parameters Object that will be used to populate the Model from the specified options.read URL. If the URL does not contain parameters */ read(params: Object): Model; - + /** * Synchronizes the changes with the server by sending requests to the provided URL's */ @@ -607,33 +607,33 @@ interface Model { } interface ModelPrototype { - + /** * Override the init method to perform actions on creation for each Model instance */ init?: Function; - + /** * Validates all observable properties that have validation and returns true if all values are valid otherwise returns false */ validate?(): boolean; - + /** * Extracts the raw(non observable) dataItem object values from the Model */ dataItem?(): Object; - + /** * Applies new properties to the Model by providing an Object - * + * * @param dataItem The object from which the new values will be applied */ reset?(dataItem: ModelPrototype): ModelPrototype; - + /** * Determines whether the instance is new. If true when syncing the item will send for insertion instead of updating it. * The check is determined by the idAttr value specified in the options. If idAttr is not specified the item will always be considered new. - * + * */ isNew?(): boolean; @@ -656,7 +656,7 @@ interface ModelPrototype { interface Collection extends Extendable { (): Collection; (props: Object[]): Collection; - + /** * Fires a request to the server to populate the Model based on the read URL specified */ @@ -665,12 +665,12 @@ interface Collection extends Extendable { * @param params The parameters Object that will be used to populate the Collection from the specified options.read URL. If the URL does not contain parameters */ read(params: Object): Collection; - + /** * Clear all changes made to the collection */ clearChanges(): Collection; - + /** * Performs an ajax request for all create, update and delete operations in order to sync them with a database. */ @@ -690,12 +690,12 @@ interface CollectionPrototype { } interface Extendable { - + /** * Extends the current observable with particular functionality depending on the parameters specified. * If the method is called without arguments and jsvalue framework is included the observable will be * extended with the methods available in jsvalue for the current type. - * + * * @param name Name of the extender * @param options Optional options */ @@ -704,24 +704,24 @@ interface Extendable { } interface Server { - + /** * The port at which your application will be run */ port?: number; - + /** * The folder where your application files like .html; .js and .css are going to be. * The value is passed to express.static() middleware. */ static?: string; - + /** * Caches pages result instead of executing them each time. * Disabling cache could impact performance. */ cache?: boolean; - + /** * Provide an express middleware function or an array of middleware functions. * Use: [compression(); bodyParser()] diff --git a/bluebird/bluebird-2.0.d.ts b/bluebird/bluebird-2.0.d.ts index 34659859cb..59c7b467e7 100644 --- a/bluebird/bluebird-2.0.d.ts +++ b/bluebird/bluebird-2.0.d.ts @@ -36,7 +36,7 @@ interface PromiseConstructor { reject: (error: any) => void, onCancel?: PromiseCancelHandlerSetter ) => void): Promise; - + config(options: { warnings?: boolean | {wForgottenReturn?: boolean}; longStackTraces?: boolean; @@ -152,8 +152,8 @@ interface PromiseConstructor { /** * Returns a promise that is resolved by a node style callback function. */ - fromNode(resolver: (callback: (err: any, result?: any) => void) => void, options? : {multiArgs? : boolean}): Promise; - fromCallback(resolver: (callback: (err: any, result?: any) => void) => void, options? : {multiArgs? : boolean}): Promise; + fromNode(resolver: (callback: (err: any, result?: any) => void) => void, options?: {multiArgs?: boolean}): Promise; + fromCallback(resolver: (callback: (err: any, result?: any) => void) => void, options?: {multiArgs?: boolean}): Promise; /** * Returns a function that can use `yield` to run asynchronous code synchronously. This feature requires the support of generators which are drafted in the next version of the language. Node version greater than `0.11.2` is required and needs to be executed with the `--harmony-generators` (or `--harmony`) command-line switch. @@ -313,7 +313,7 @@ interface PromiseConstructor { // array with values mapSeries(values: R[], mapper: (item: R, index: number, arrayLength: number) => U | PromiseLike): Promise; - + /** * Reduce an array, or a promise of an array, which contains a promises (or a mix of promises and values) with the given `reducer` function with the signature `(total, current, index, arrayLength)` where `item` is the resolved value of a respective promise in the input array. If any promise in the input array is rejected the returned promise is rejected as well. diff --git a/bluebird/index.d.ts b/bluebird/index.d.ts index 3087abb2e5..75427a39b5 100644 --- a/bluebird/index.d.ts +++ b/bluebird/index.d.ts @@ -318,7 +318,7 @@ declare class Bluebird implements Bluebird.Thenable, Bluebird.Inspection void), + placement?: string | PlacementOptions | ((currentInput: JQuery, maxLengthIndicator: JQuery, currentInputPosition: PositionParam) => void); /** * Appends the maxlength indicator badge to the parent of the input rather than to the body. * @default false */ - appendToParent?: boolean, + appendToParent?: boolean; /** * An alternative way to provide the message text. * String example: 'You have typed %charsTyped% chars, %charsRemaining% of %charsTotal% remaining'. @@ -110,40 +110,40 @@ declare namespace BootstrapMaxlength { * Function example: function(currentText, maxLength) { return '' + Math.ceil(currentText.length / 160) + ' SMS Message(s)'; } * @default null */ - message?: string | ((currentText : string, maxLength: Number) => string), + message?: string | ((currentText: string, maxLength: Number) => string); /** * If true the input will count using utf8 bytesize/encoding. For example: the '�' character is counted as two characters. * @default false */ - utf8?: boolean, + utf8?: boolean; /** * Shows the badge as soon as it is added to the page, similar to alwaysShow * @default false */ - showOnReady?: boolean, + showOnReady?: boolean; /** * Count linebreak as 2 characters to match IE/Chrome textarea validation. As well as DB storage. * @default true */ - twoCharLinebreak?: boolean, + twoCharLinebreak?: boolean; /** * Allows a custom attribute to display indicator without triggering native maxlength behaviour. * Ignored if value greater than a native maxlength attribute. * 'overmax' class gets added when exceeded to allow user to implement form validation. * @default null (use the maxlength attribute and browser functionality) */ - customMaxAttribute?: string, + customMaxAttribute?: string; /** * Will allow the input to be over the customMaxLength. Useful in soft max situations. * @default false */ - allowOverMax?: boolean, + allowOverMax?: boolean; /** * If the browser doesn't support the maxlength attribute, attempt to type more than * the indicated chars, will be prevented. * @default false */ - validate?: boolean + validate?: boolean; } } diff --git a/bootstrap-notify/index.d.ts b/bootstrap-notify/index.d.ts index c6939a7c2c..712ff5465b 100644 --- a/bootstrap-notify/index.d.ts +++ b/bootstrap-notify/index.d.ts @@ -5,10 +5,7 @@ /// -/* tslint:disable: interface-name no-any */ - interface JQueryStatic { - /* tslint:enable: interface-name */ notify(message: string): NotifyReturn; notify(opts: NotifyOptions, settings?: NotifySettings): NotifyReturn; notifyDefaults(settings: NotifySettings): void; diff --git a/bootstrap-slider/index.d.ts b/bootstrap-slider/index.d.ts index 9ed5c440c3..8a194b23dd 100644 --- a/bootstrap-slider/index.d.ts +++ b/bootstrap-slider/index.d.ts @@ -81,7 +81,7 @@ interface SliderOptions { * formatter callback. Return the value wanted to be displayed in the tooltip * @param val the current value to display */ - formatter?(val:number): string; + formatter?(val: number): string; /** * Default: false * The natural order is used for the arrow keys. Arrow up select the upper slider value for vertical sliders, arrow right the righter slider value for a horizontal slider - no matter if the slider was reversed or not. By default the arrow keys are oriented by arrow up/right to the higher slider value, arrow down/left to the lower slider value. @@ -124,8 +124,8 @@ interface JQuery { * Creates a slider from the current element. * @param options */ - slider(options?:SliderOptions): JQuery; - slider(methodName:string, ...args:any[]): JQuery; + slider(options?: SliderOptions): JQuery; + slider(methodName: string, ...args: any[]): JQuery; } interface ChangeValue { @@ -160,7 +160,7 @@ interface Slider extends JQuery { * @param triggerSlideEvent * @param triggerChangeEvent */ - setValue(newValue:number, triggerSlideEvent?:boolean, triggerChangeEvent?:boolean): void; + setValue(newValue: number, triggerSlideEvent?: boolean, triggerChangeEvent?: boolean): void; /** * Properly clean up and remove the slider instance */ @@ -182,12 +182,12 @@ interface Slider extends JQuery { * @param attribute * @param value */ - setAttribute(attribute:string, value:any): void; + setAttribute(attribute: string, value: any): void; /** * Get the slider's attributes * @param attribute */ - getAttribute(attribute:string): any; + getAttribute(attribute: string): any; /** * Refreshes the current slider */ @@ -197,11 +197,11 @@ interface Slider extends JQuery { */ relayout(): void; on: { - (eventType:string, callback:(eventObject:JQueryEventObject, ...args:any[]) => any): Slider; - (eventType:string, data:any, callback:(eventObject:JQueryEventObject, ...args:any[]) => any): Slider; - (eventType:string, selector:string, callback:(eventObject:JQueryEventObject, ...eventData:any[]) => any): Slider; - (eventType:string, selector:string, data:any, callback:(eventObject:JQueryEventObject, ...eventData:any[]) => any): Slider; - (eventType:{ [key: string]: any; }, selector?:string, data?:any): Slider; - (eventType:{ [key: string]: any; }, data?:any): Slider; - } + (eventType: string, callback: (eventObject: JQueryEventObject, ...args: any[]) => any): Slider; + (eventType: string, data: any, callback: (eventObject: JQueryEventObject, ...args: any[]) => any): Slider; + (eventType: string, selector: string, callback: (eventObject: JQueryEventObject, ...eventData: any[]) => any): Slider; + (eventType: string, selector: string, data: any, callback: (eventObject: JQueryEventObject, ...eventData: any[]) => any): Slider; + (eventType: { [key: string]: any; }, selector?: string, data?: any): Slider; + (eventType: { [key: string]: any; }, data?: any): Slider; + }; } diff --git a/bootstrap-switch/bootstrap-switch-tests.ts b/bootstrap-switch/bootstrap-switch-tests.ts index 17bc0fd561..651843775c 100644 --- a/bootstrap-switch/bootstrap-switch-tests.ts +++ b/bootstrap-switch/bootstrap-switch-tests.ts @@ -3,7 +3,7 @@ function test_cases() { $('#switch').bootstrapSwitch(); - + $('#switch').bootstrapSwitch({ state: false }); @@ -15,7 +15,7 @@ function test_cases() { //var mySwitch = $('#switch').get(0); //mySwitch.toggleAnimate(); - + $('#switch').bootstrapSwitch('state', true, true); diff --git a/bootstrap-switch/index.d.ts b/bootstrap-switch/index.d.ts index 302e4f8735..f022a61fcd 100644 --- a/bootstrap-switch/index.d.ts +++ b/bootstrap-switch/index.d.ts @@ -13,7 +13,7 @@ declare namespace BootstrapSwitch { interface BootstrapSwitchChangeEventObject extends JQueryEventObject { - state: boolean + state: boolean; } interface BootstrapSwitchEventObject extends JQueryEventObject { } diff --git a/bootstrap-touchspin/bootstrap-touchspin-tests.ts b/bootstrap-touchspin/bootstrap-touchspin-tests.ts index d3c37d87d7..879a298822 100644 --- a/bootstrap-touchspin/bootstrap-touchspin-tests.ts +++ b/bootstrap-touchspin/bootstrap-touchspin-tests.ts @@ -26,7 +26,7 @@ $(function () { $("input[name='demo_vertical']").TouchSpin({ verticalbuttons: true }); - + // Example 4 from http://www.virtuosoft.eu/code/bootstrap-touchspin/ $("input[name='demo_vertical2']").TouchSpin({ verticalbuttons: true, diff --git a/bootstrap.v3.datetimepicker/index.d.ts b/bootstrap.v3.datetimepicker/index.d.ts index 565ad9a356..71ad7f2f37 100644 --- a/bootstrap.v3.datetimepicker/index.d.ts +++ b/bootstrap.v3.datetimepicker/index.d.ts @@ -47,9 +47,9 @@ export interface Datetimepicker { hide(): void; /**Returns the components current options object. * Note that the changing the values of the returned object does not change the components actual configuration. */ - options(): DatetimepickerOptions + options(): DatetimepickerOptions; /**Takes an object variable with option key:value properties and configures the component. Use this to update multiple options on the component. */ - options(options: DatetimepickerOptions): void + options(options: DatetimepickerOptions): void; /**Shows the widget * Emits: * - dp.show - if the widget was hidden before that call diff --git a/bootstrap/index.d.ts b/bootstrap/index.d.ts index 64f84f1d85..32bfa65c03 100644 --- a/bootstrap/index.d.ts +++ b/bootstrap/index.d.ts @@ -53,7 +53,7 @@ interface PopoverOptions { } interface CollapseOptions { - parent?: any; + parent?: any; toggle?: boolean; } diff --git a/bounce.js/index.d.ts b/bounce.js/index.d.ts index 250fef1a51..eca85b8fa1 100644 --- a/bounce.js/index.d.ts +++ b/bounce.js/index.d.ts @@ -6,60 +6,60 @@ /// -export default Bounce +export default Bounce; interface Point2D { - x: number - y: number + x: number; + y: number; } interface BounceOptions { - from: T - to: T - duration?: number - delay?: number - easing?: string - bounces?: number - stiffness?: number + from: T; + to: T; + duration?: number; + delay?: number; + easing?: string; + bounces?: number; + stiffness?: number; } interface AnimationOptions { - loop?: boolean - remove?: boolean - onComplete?: () => void + loop?: boolean; + remove?: boolean; + onComplete?: () => void; } interface SerailizedComponent { - type: string - from: T - to: T - duration: number - delay: number - easing: string - bounces: number - stiffness: number + type: string; + from: T; + to: T; + duration: number; + delay: number; + easing: string; + bounces: number; + stiffness: number; } declare class Bounce { - static FPS: number - static counter: number + static FPS: number; + static counter: number; - static isSupported(): boolean + static isSupported(): boolean; constructor(); - scale(options: BounceOptions): Bounce - rotate(options: BounceOptions): Bounce - translate(options: BounceOptions): Bounce - skew(options: BounceOptions): Bounce + scale(options: BounceOptions): Bounce; + rotate(options: BounceOptions): Bounce; + translate(options: BounceOptions): Bounce; + skew(options: BounceOptions): Bounce; - serialize(): SerailizedComponent[] - deserialize(serailized: SerailizedComponent[]): Bounce + serialize(): SerailizedComponent[]; + deserialize(serailized: SerailizedComponent[]): Bounce; - applyTo(element: Element, options?: AnimationOptions): void - applyTo(elements: Element[], options?: AnimationOptions): void - applyTo(elements: JQuery, options?: AnimationOptions): JQueryPromise + applyTo(element: Element, options?: AnimationOptions): void; + applyTo(elements: Element[], options?: AnimationOptions): void; + applyTo(elements: JQuery, options?: AnimationOptions): JQueryPromise; - define(name: string): Bounce - remove(): void + define(name: string): Bounce; + remove(): void; } diff --git a/braintree-web/index.d.ts b/braintree-web/index.d.ts index d62ec01fd1..1070da4771 100644 --- a/braintree-web/index.d.ts +++ b/braintree-web/index.d.ts @@ -368,7 +368,7 @@ declare namespace BraintreeWeb { expirationDate: string; billingAddress: { postalCode?: string; - } + }; } export interface Client { diff --git a/breeze/index.d.ts b/breeze/index.d.ts index 8cc109d746..3e0ad3713b 100644 --- a/breeze/index.d.ts +++ b/breeze/index.d.ts @@ -462,7 +462,7 @@ declare namespace breeze { static importEntities(exportedString: string, config?: { mergeStrategy?: MergeStrategySymbol; metadataVersionFn?: (any: any) => void }): EntityManager; static importEntities(exportedData: Object, config?: { mergeStrategy?: MergeStrategySymbol; metadataVersionFn?: (any: any) => void }): EntityManager; - importEntities(exportedString: string, config?: { mergeStrategy?: MergeStrategySymbol; metadataVersionFn?: (any: any) => void }): { entities: Entity[]; tempKeyMapping: { [key: string] : EntityKey } }; + importEntities(exportedString: string, config?: { mergeStrategy?: MergeStrategySymbol; metadataVersionFn?: (any: any) => void }): { entities: Entity[]; tempKeyMapping: { [key: string]: EntityKey } }; importEntities(exportedData: Object, config?: { mergeStrategy?: MergeStrategySymbol; metadataVersionFn?: (any: any) => void }): { entities: Entity[]; tempKeyMapping: { [key: string]: EntityKey } }; rejectChanges(): Entity[]; @@ -495,7 +495,7 @@ declare namespace breeze { } export interface ExecuteQueryErrorCallback { - (error: { query: EntityQuery; httpResponse: HttpResponse; entityManager: EntityManager; message?: string; stack?:string }): void; + (error: { query: EntityQuery; httpResponse: HttpResponse; entityManager: EntityManager; message?: string; stack?: string }): void; } export interface SaveChangesSuccessCallback { @@ -796,7 +796,7 @@ declare namespace breeze { export interface IRecursiveArray { [i: number]: T | IRecursiveArray; } - + export class Predicate { constructor(); constructor(property: string, operator: string, value: any); @@ -843,7 +843,7 @@ declare namespace breeze { fetchStrategy: FetchStrategySymbol; mergeStrategy: MergeStrategySymbol; /** Whether query should return cached deleted entities (false by default) */ - includeDeleted: boolean + includeDeleted: boolean; constructor(config?: QueryOptionsConfiguration); @@ -864,7 +864,7 @@ declare namespace breeze { error?: any; saveContext?: any; status: number; - getHeaders(headerName: string): string + getHeaders(headerName: string): string; } export interface QueryResult { @@ -879,7 +879,7 @@ declare namespace breeze { /** Total number of results available on the server */ inlineCount?: number; /** All entities returned by the query. Differs from results when an expand is used. */ - retrievedEntities?: Entity[] + retrievedEntities?: Entity[]; } export class SaveOptions { @@ -993,7 +993,7 @@ declare namespace breeze { /** Creates a regular expression validator with a fixed expression. */ static makeRegExpValidator(validatorName: string, expression: RegExp, defaultMessage: string, context?: any): Validator; - /** Run this validator against the specified value. + /** Run this validator against the specified value. @param value {Object} Value to validate @param additionalContext {Object} Any additional contextual information that the Validator can make use of. @return {ValidationError|null} A ValidationError if validation fails, null otherwise */ @@ -1046,15 +1046,15 @@ declare namespace breeze.config { export function getAdapterInstance(interfaceName: string, adapterName?: string): Object; export interface Adapter { - getRoutePrefix: Function + getRoutePrefix: Function; } /** - Initializes a single adapter implementation. Initialization means either newing a instance of the + Initializes a single adapter implementation. Initialization means either newing a instance of the specified interface and then calling "initialize" on it or simply calling "initialize" on the instance if it already exists. @param interfaceName {String} The name of the interface to which the adapter to initialize belongs. @param adapterName {String} - The name of a previously registered adapter to initialize. - @param isDefault=true {Boolean} - Whether to make this the default "adapter" for this interface. + @param isDefault=true {Boolean} - Whether to make this the default "adapter" for this interface. @return {an instance of the specified adapter} **/ export function initializeAdapterInstance(interfaceName: string, adapterName: string, isDefault?: boolean): Adapter; @@ -1080,15 +1080,15 @@ declare namespace breeze.config { export var objectRegistry: Object; /** Method use to register implementations of standard breeze interfaces. Calls to this method are usually - made as the last step within an adapter implementation. + made as the last step within an adapter implementation. @param interfaceName {String} - one of the following interface names "ajax", "dataService" or "modelLibrary" - @param adapterCtor {Function} - an ctor function that returns an instance of the specified interface. + @param adapterCtor {Function} - an ctor function that returns an instance of the specified interface. **/ export function registerAdapter(interfaceName: string, adapterCtor: Function): void; export function registerFunction(fn: Function, fnName: string): void; export function registerType(ctor: Function, typeName: string): void; //static setProperties(config: Object): void; //deprecated - /** + /** Set the promise implementation, if Q.js is not found. @param q - implementation of promise. @see http://wiki.commonjs.org/wiki/Promises/A */ diff --git a/browser-harness/index.d.ts b/browser-harness/index.d.ts index d2c49be3e9..a778220403 100644 --- a/browser-harness/index.d.ts +++ b/browser-harness/index.d.ts @@ -50,70 +50,70 @@ export interface Driver { } export interface ElementProxy { - click(callback?: (err: Error, element: ElementProxy) => void): ElementProxy - focus(callback?: (err: Error, element: ElementProxy) => void): ElementProxy - blur(callback?: (err: Error, element: ElementProxy) => void): ElementProxy - val(value?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - attr(name: string, value?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - removeAttr(name: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - prop(name: string, value?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - removeProp(name: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - html(value?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - text(value?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - hasClass(className: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - addClass(className: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - removeClass(className: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - toggleClass(className: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy + click(callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + focus(callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + blur(callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + val(value?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + attr(name: string, value?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + removeAttr(name: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + prop(name: string, value?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + removeProp(name: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + html(value?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + text(value?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + hasClass(className: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + addClass(className: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + removeClass(className: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + toggleClass(className: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; - trigger(event: string, extraParameters?: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - triggerHandler(event: string, extraParameters?: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy + trigger(event: string, extraParameters?: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + triggerHandler(event: string, extraParameters?: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; - css(name: string, value?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - height(value?: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - innerHeight(value?: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - outerHeight(value?: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - width(value?: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - innerWidth(value?: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - outerWidth(value?: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - offset(value?: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - position(callback?: (err: Error, element: ElementProxy) => void): ElementProxy - scrollLeft(value?: number, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - scrollTop(value?: number, callback?: (err: Error, element: ElementProxy) => void): ElementProxy + css(name: string, value?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + height(value?: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + innerHeight(value?: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + outerHeight(value?: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + width(value?: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + innerWidth(value?: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + outerWidth(value?: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + offset(value?: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + position(callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + scrollLeft(value?: number, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + scrollTop(value?: number, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; - hide(callback?: (err: Error, element: ElementProxy) => void): ElementProxy - show(callback?: (err: Error, element: ElementProxy) => void): ElementProxy - toggle(callback?: (err: Error, element: ElementProxy) => void): ElementProxy + hide(callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + show(callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + toggle(callback?: (err: Error, element: ElementProxy) => void): ElementProxy; - children(callback?: (err: Error, element: ElementProxy) => void): ElementProxy - closest(callback?: (err: Error, element: ElementProxy) => void): ElementProxy - contents(callback?: (err: Error, element: ElementProxy) => void): ElementProxy - find(selector: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - findElements(selector: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - findElement(selector: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - findVisible(selector: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - findVisibles(selector: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - isActionable(callback?: (err: Error, element: ElementProxy) => void): ElementProxy - first(callback?: (err: Error, element: ElementProxy) => void): ElementProxy - has(arg: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - is(arg: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - last(callback?: (err: Error, element: ElementProxy) => void): ElementProxy - next(selector?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - nextAll(selector?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - nextUntil(selector?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - offsetParent(callback?: (err: Error, element: ElementProxy) => void): ElementProxy - parent(selector?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - parents(selector?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - parentsUntil(selector?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - prev(selector?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - prevAll(selector?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - prevUntil(selector?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - siblings(selector?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy + children(callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + closest(callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + contents(callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + find(selector: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + findElements(selector: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + findElement(selector: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + findVisible(selector: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + findVisibles(selector: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + isActionable(callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + first(callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + has(arg: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + is(arg: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + last(callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + next(selector?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + nextAll(selector?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + nextUntil(selector?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + offsetParent(callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + parent(selector?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + parents(selector?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + parentsUntil(selector?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + prev(selector?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + prevAll(selector?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + prevUntil(selector?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + siblings(selector?: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; - data(name: string, value?: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy - removeData(name: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy + data(name: string, value?: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; + removeData(name: string, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; - filter(selector: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy + filter(selector: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy; } export declare class Browser { @@ -124,7 +124,7 @@ export declare class Browser { close(); } -export declare function listen(port: number, callback?: Function) +export declare function listen(port: number, callback?: Function); export declare var events: HarnessEvents; export declare var config: { timeoutMS: number; diff --git a/browser-sync/index.d.ts b/browser-sync/index.d.ts index 84b604c993..b3328ba524 100644 --- a/browser-sync/index.d.ts +++ b/browser-sync/index.d.ts @@ -400,8 +400,7 @@ declare namespace browserSync { /** * Stand alone file-watcher. Use this along with Browsersync to create your own, minimal build system */ - watch(patterns: string, opts?: chokidar.WatchOptions, fn?: (event: string, file: fs.Stats) => any) - : NodeJS.EventEmitter; + watch(patterns: string, opts?: chokidar.WatchOptions, fn?: (event: string, file: fs.Stats) => any): NodeJS.EventEmitter; /** * Method to pause file change events */ diff --git a/bson/index.d.ts b/bson/index.d.ts index 75726c4516..a893ee4529 100644 --- a/bson/index.d.ts +++ b/bson/index.d.ts @@ -9,9 +9,7 @@ declare namespace bson { - - export module BSONPure { - + export namespace BSONPure { export interface DeserializeOptions { /** {Boolean, default:false}, evaluate functions in the BSON document scoped to the object deserialized. */ evalFunctions?: boolean; diff --git a/bucks/index.d.ts b/bucks/index.d.ts index ab3a1f455a..f909743de8 100644 --- a/bucks/index.d.ts +++ b/bucks/index.d.ts @@ -36,7 +36,7 @@ declare namespace Bucks { * Catch all errors. * @param onError Function called after catching error */ - onError(onError: (err:Error, bucks:Bucks)=>any): void; + onError(onError: (err: Error, bucks: Bucks) => any): void; } interface Bucks { @@ -51,7 +51,7 @@ declare namespace Bucks { * Add a task called only in case of success. * @param onSuccess Function called only in case of success */ - then(onSuccess: (res:any, next?:Task)=>any): Bucks; + then(onSuccess: (res: any, next?: Task) => any): Bucks; /** * Add a empty task. @@ -62,7 +62,7 @@ declare namespace Bucks { * Add a task called only in case of error. * @param onError Function called only in case of error */ - error(onError: (err:Error, next?:Task)=>any): Bucks; + error(onError: (err: Error, next?: Task) => any): Bucks; /** * Add tasks in asynchronous way and join their results. @@ -98,7 +98,7 @@ declare namespace Bucks { * @param callback Last callback function * @param errback Handler for occurring error in last callback function */ - end(callback?: Task, errback?: (err:Error)=>any): void; + end(callback?: Task, errback?: (err: Error) => any): void; } interface TaskWithNext { diff --git a/buffer-compare/index.d.ts b/buffer-compare/index.d.ts index bd61febdb7..27e2fd09de 100644 --- a/buffer-compare/index.d.ts +++ b/buffer-compare/index.d.ts @@ -6,7 +6,7 @@ interface List { [index: number]: any; - length: number + length: number; } declare function compare(cmp: List, to: List): number; diff --git a/bugsnag/index.d.ts b/bugsnag/index.d.ts index 1ba14de2ef..61a3b8d18f 100644 --- a/bugsnag/index.d.ts +++ b/bugsnag/index.d.ts @@ -4,9 +4,9 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface BugsnagUser { - id?: string, - name?: string, - email?: string + id?: string; + name?: string; + email?: string; } interface BugsnagStatic { diff --git a/bull/index.d.ts b/bull/index.d.ts index c604fe25d6..e7c1968d76 100644 --- a/bull/index.d.ts +++ b/bull/index.d.ts @@ -19,12 +19,12 @@ declare module "bull" { namespace Bull { export interface DoneCallback { - (error?: Error, value?: any): void + (error?: Error, value?: any): void; } export interface Job { - jobId: string + jobId: string; /** * The custom data passed when the job was created @@ -54,7 +54,7 @@ declare module "bull" { /** * Backoff type, which can be either `fixed` or `exponential` */ - type: string + type: string; /** * Backoff delay, in milliseconds @@ -77,7 +77,7 @@ declare module "bull" { /** * Backoff setting for automatic retries if the job fails */ - backoff?: number | Backoff + backoff?: number | Backoff; /** * A boolean which, if true, adds the job to the right @@ -213,7 +213,7 @@ declare module "bull" { } interface EventCallback { - (...args: any[]): void + (...args: any[]): void; } interface ReadyEventCallback extends EventCallback { @@ -228,7 +228,7 @@ declare module "bull" { /** * Abort this job */ - cancel(): void + cancel(): void; } interface ActiveEventCallback extends EventCallback { diff --git a/bunyan/index.d.ts b/bunyan/index.d.ts index 6886aade90..23d65197a0 100644 --- a/bunyan/index.d.ts +++ b/bunyan/index.d.ts @@ -11,7 +11,7 @@ import { EventEmitter } from 'events'; declare class Logger extends EventEmitter { constructor(options: LoggerOptions); addStream(stream: Stream): void; - addSerializers(serializers:Serializers | StdSerializers):void; + addSerializers(serializers: Serializers | StdSerializers): void; child(options: LoggerOptions, simple?: boolean): Logger; child(obj: Object, simple?: boolean): Logger; reopenFileStreams(): void; @@ -21,7 +21,7 @@ declare class Logger extends EventEmitter { levels(name: number | string, value: number | string): void; fields: any; - src:boolean; + src: boolean; trace(error: Error, format?: any, ...params: any[]): void; trace(buffer: Buffer, format?: any, ...params: any[]): void; diff --git a/business-rules-engine/Utils.d.ts b/business-rules-engine/Utils.d.ts index 0efa349a73..e2011c4693 100644 --- a/business-rules-engine/Utils.d.ts +++ b/business-rules-engine/Utils.d.ts @@ -12,4 +12,6 @@ declare namespace Utils { static GetNegDigits(value: string): number; } } -declare module "node-utils" {export = Utils;} +declare module "node-utils" { + export = Utils; +} diff --git a/business-rules-engine/Validation.d.ts b/business-rules-engine/Validation.d.ts index 0dd8283dc2..0e150a4e6b 100644 --- a/business-rules-engine/Validation.d.ts +++ b/business-rules-engine/Validation.d.ts @@ -126,23 +126,23 @@ declare namespace Validation { public Error: IError; public IsAsync: boolean; constructor(Error: IError, IsAsync: boolean); - public HasError : boolean; - public ErrorMessage : string; - public TranslateArgs : IErrorTranslateArgs; + public HasError: boolean; + public ErrorMessage: string; + public TranslateArgs: IErrorTranslateArgs; } class ValidationResult implements IValidationResult { public Name: string; constructor(Name: string); public IsDirty: boolean; - public Children : IValidationResult[]; + public Children: IValidationResult[]; public Add(error: IValidationResult): void; public Remove(index: number): void; public Optional: IOptional; public TranslateArgs: IErrorTranslateArgs[]; - public HasErrorsDirty : boolean; - public HasErrors : boolean; - public ErrorCount : number; - public ErrorMessage : string; + public HasErrorsDirty: boolean; + public HasErrors: boolean; + public ErrorCount: number; + public ErrorMessage: string; } class CompositeValidationResult implements IValidationResult { public Name: string; @@ -152,13 +152,13 @@ declare namespace Validation { public AddFirst(error: IValidationResult): void; public Add(error: IValidationResult): void; public Remove(index: number): void; - public HasErrorsDirty : boolean; - public HasErrors : boolean; - public ErrorCount : number; - public ErrorMessage : string; - public TranslateArgs : IErrorTranslateArgs[]; + public HasErrorsDirty: boolean; + public HasErrors: boolean; + public ErrorCount: number; + public ErrorMessage: string; + public TranslateArgs: IErrorTranslateArgs[]; public LogErrors(headerMessage?: string): void; - public Errors : { + public Errors: { [name: string]: IValidationResult; }; private FlattenErros; @@ -238,4 +238,6 @@ declare namespace Validation { static GetValidationMessage(validator: any): string; } } -declare module "node-validation" {export = Validation;} +declare module "node-validation" { + export = Validation; +} diff --git a/business-rules-engine/index.d.ts b/business-rules-engine/index.d.ts index 4f71b43dfb..e6a623adb4 100644 --- a/business-rules-engine/index.d.ts +++ b/business-rules-engine/index.d.ts @@ -129,23 +129,23 @@ declare namespace Validation { public Error: IError; public IsAsync: boolean; constructor(Error: IError, IsAsync: boolean); - public HasError : boolean; - public ErrorMessage : string; - public TranslateArgs : IErrorTranslateArgs; + public HasError: boolean; + public ErrorMessage: string; + public TranslateArgs: IErrorTranslateArgs; } class ValidationResult implements IValidationResult { public Name: string; constructor(Name: string); public IsDirty: boolean; - public Children : IValidationResult[]; + public Children: IValidationResult[]; public Add(error: IValidationResult): void; public Remove(index: number): void; public Optional: IOptional; public TranslateArgs: IErrorTranslateArgs[]; - public HasErrorsDirty : boolean; - public HasErrors : boolean; - public ErrorCount : number; - public ErrorMessage : string; + public HasErrorsDirty: boolean; + public HasErrors: boolean; + public ErrorCount: number; + public ErrorMessage: string; } class CompositeValidationResult implements IValidationResult { public Name: string; @@ -155,13 +155,13 @@ declare namespace Validation { public AddFirst(error: IValidationResult): void; public Add(error: IValidationResult): void; public Remove(index: number): void; - public HasErrorsDirty : boolean; - public HasErrors : boolean; - public ErrorCount : number; - public ErrorMessage : string; - public TranslateArgs : IErrorTranslateArgs[]; + public HasErrorsDirty: boolean; + public HasErrors: boolean; + public ErrorCount: number; + public ErrorMessage: string; + public TranslateArgs: IErrorTranslateArgs[]; public LogErrors(headerMessage?: string): void; - public Errors : { + public Errors: { [name: string]: IValidationResult; }; private FlattenErros; diff --git a/business-rules-engine/node-validators.d.ts b/business-rules-engine/node-validators.d.ts index 73746eef92..0fa2c33301 100644 --- a/business-rules-engine/node-validators.d.ts +++ b/business-rules-engine/node-validators.d.ts @@ -68,8 +68,8 @@ export class RangeLengthValidator implements Validation.IStringValidator { public RangeLength: number[]; constructor(RangeLength?: number[]); public isAcceptable(s: string): boolean; - public MinLength : number; - public MaxLength : number; + public MinLength: number; + public MaxLength: number; public tagName: string; } export class MinValidator implements Validation.IPropertyValidator { @@ -88,8 +88,8 @@ export class RangeValidator implements Validation.IPropertyValidator { public Range: number[]; constructor(Range?: number[]); public isAcceptable(s: any): boolean; - public Min : number; - public Max : number; + public Min: number; + public Max: number; public tagName: string; } export class StepValidator implements Validation.IPropertyValidator { diff --git a/byline/index.d.ts b/byline/index.d.ts index 785a799a98..c1301f507d 100644 --- a/byline/index.d.ts +++ b/byline/index.d.ts @@ -20,7 +20,7 @@ declare namespace bl { } export interface LineStreamCreatable extends LineStream { - new (options?: LineStreamOptions): LineStream + new (options?: LineStreamOptions): LineStream; } //TODO is it possible to declare static factory functions without name (directly on the module) @@ -41,4 +41,4 @@ declare namespace bl { export var LineStream: LineStreamCreatable; } -export = bl; \ No newline at end of file +export = bl; diff --git a/bytebuffer/index.d.ts b/bytebuffer/index.d.ts index 1cf7142592..2f9f2f4823 100644 --- a/bytebuffer/index.d.ts +++ b/bytebuffer/index.d.ts @@ -10,8 +10,7 @@ declare namespace ByteBuffer {} export = ByteBuffer; export as namespace ByteBuffer; -declare class ByteBuffer -{ +declare class ByteBuffer { /** * Constructs a new ByteBuffer. */ diff --git a/bytes/index.d.ts b/bytes/index.d.ts index fd0a65c365..c334f74e48 100644 --- a/bytes/index.d.ts +++ b/bytes/index.d.ts @@ -4,10 +4,10 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface BytesOptions { - decimalPlaces?: number, - thousandsSeparator?: string, - unitSeparator?: string, - fixedDecimals?: boolean + decimalPlaces?: number; + thousandsSeparator?: string; + unitSeparator?: string; + fixedDecimals?: boolean; } /** *Convert the given value in bytes into a string. diff --git a/cachefactory/index.d.ts b/cachefactory/index.d.ts index 658a2660f4..ebabf54e74 100644 --- a/cachefactory/index.d.ts +++ b/cachefactory/index.d.ts @@ -283,7 +283,7 @@ declare namespace CacheFactory { * Return the values of all items in the cache as an array. * @returns Array */ - values(): Array + values(): Array; } export interface ICacheFactory { @@ -379,7 +379,7 @@ declare namespace CacheFactory { isObject(value: any): boolean; isFunction(value: any): boolean; equals(a: any, b: any): boolean; - fromJson(value: any): {} + fromJson(value: any): {}; Promise: any; } diff --git a/cal-heatmap/index.d.ts b/cal-heatmap/index.d.ts index 4ecc4d3d87..431c403291 100644 --- a/cal-heatmap/index.d.ts +++ b/cal-heatmap/index.d.ts @@ -5,15 +5,12 @@ /// -declare namespace CalHeatMap -{ - interface CalHeatMapStatic - { +declare namespace CalHeatMap { + interface CalHeatMapStatic { new (): CalHeatMap; } - interface CalHeatMap - { + interface CalHeatMap { /** * Initialise the CalHeatMap with the specified options * @param {InitOptions} options The CalHeatMap options @@ -107,8 +104,7 @@ declare namespace CalHeatMap destroy(callback?: Function): CalHeatMap; } - interface LegendColor - { + interface LegendColor { /** Color of the smallest value on the legend */ min: string; /** Color of the highest value on the legend */ @@ -121,8 +117,7 @@ declare namespace CalHeatMap overflow?: string; } - interface InitOptions - { + interface InitOptions { // ================================================ // Presentation // ================================================ @@ -426,8 +421,7 @@ declare namespace CalHeatMap onMaxDomainReached?: (reached: boolean) => void; } - interface RuntimeOptions extends InitOptions - { + interface RuntimeOptions extends InitOptions { /** Margin around each domain, in pixels. Ordered like in CSS (top, right, bottom, left) */ domainMargin: number[]; /** Margin around the legend, in pixels. Ordered like in CSS (top, right, bottom, left) */ @@ -441,8 +435,7 @@ declare namespace CalHeatMap itemName: string[]; } - interface LegendTitleTemplates - { + interface LegendTitleTemplates { /** Formatting of the smallest (leftmost) value of the legend. Default value: "less than {min} {name}" */ lower?: string; /** Formatting of all the value but the first and the last. Default value: "between {down} and {up} {name}" */ @@ -451,29 +444,25 @@ declare namespace CalHeatMap upper?: string; } - interface SubDomainFormatTemplates - { + interface SubDomainFormatTemplates { /** Format of the title when there is no value associated to the date. Default value: "{date}" */ empty?: string; /** Format of the title when it's associated to a value. Default value: "{count} {name} {connector} {date}" */ filled?: string; } - interface DataFormat - { + interface DataFormat { /** timestamp are in seconds, value can be any number (integer or float) */ [timestamp: string]: number; } - interface LabelOffset - { + interface LabelOffset { x: number; y: number; } /** Position and alignment of the domain label. */ - interface Label - { + interface Label { /** * Position of the label, relative to the domain. Default: "bottom" * Valid values: {"top", "right", "bottom", "left"} diff --git a/calq/index.d.ts b/calq/index.d.ts index 0d4eb5f347..ccb8f62b4e 100644 --- a/calq/index.d.ts +++ b/calq/index.d.ts @@ -3,34 +3,30 @@ // Definitions by: Eirik Hoem // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -interface Calq -{ - action:Calq.Action; - user:Calq.User; +interface Calq { + action: Calq.Action; + user: Calq.User; - init(writeKey:string, options?:{[index:string]:any}):void; + init(writeKey: string, options?: {[index: string]: any}): void; } -declare namespace Calq -{ - interface Action - { - track(action:string, params?:{[index:string]:any}):void; - trackSale(action:string, params:{[index:string]:any}, currency:string, amount:number):void; - trackHTMLLink(action:string, params?:{[index:string]:any}):void; - trackPageView(action?:string):void; +declare namespace Calq { + interface Action { + track(action: string, params?: {[index: string]: any}): void; + trackSale(action: string, params: {[index: string]: any}, currency: string, amount: number): void; + trackHTMLLink(action: string, params?: {[index: string]: any}): void; + trackPageView(action?: string): void; - setGlobalProperty(name:string, value:any):void; - setGlobalProperty(params: {[index:string]: any}):void; + setGlobalProperty(name: string, value: any): void; + setGlobalProperty(params: {[index: string]: any}): void; } - interface User - { - identify(userId:string):void; - clear():void; - profile(params:{[index:string]:any}):void; + interface User { + identify(userId: string): void; + clear(): void; + profile(params: {[index: string]: any}): void; } } -declare var calq:Calq; +declare var calq: Calq; diff --git a/camel-case/camel-case-tests.ts b/camel-case/camel-case-tests.ts index f26f7cdb85..a177d4ec0b 100644 --- a/camel-case/camel-case-tests.ts +++ b/camel-case/camel-case-tests.ts @@ -6,4 +6,4 @@ console.log(camelCase('dot.case')); // => "dotCase" console.log(camelCase('PascalCase')); // => "pascalCase" console.log(camelCase('version 1.2.10')); // => "version1_2_10" -console.log(camelCase('STRING 1.2', 'tr')); // => "strıng1_2" +console.log(camelCase('STRING 1.2', 'tr')); // => "strıng1_2" diff --git a/canvas-gauges/index.d.ts b/canvas-gauges/index.d.ts index 6ba360a7ea..a21b0d93bb 100644 --- a/canvas-gauges/index.d.ts +++ b/canvas-gauges/index.d.ts @@ -15,125 +15,125 @@ declare namespace CanvasGauges { } export interface Highlight { - from: number, - to: number, - color: string + from: number; + to: number; + color: string; } export type MajorTicks = string[]|number[]; export interface GenericOptions { - renderTo: RenderTarget, - width?: number, - height?: number, - minValue?: number, - maxValue?: number, - value?: number, - units?: string|boolean, - majorTicks?: MajorTicks, - minorTicks?: number, - strokeTicks?: boolean, - animatedValue?: boolean, - animateOnInit?: boolean, - title?: string|boolean, - borders?: boolean, - valueInt?: number, - valueDec?: number, - majorTicksInt?: number, - majorTicksDec?: number, - animation?: boolean, - animationDuration?: number, - animationRule?: string|AnimationRule, - colorPlate?: string, - colorMajorTicks?: string, - colorMinorTicks?: string, - colorTitle?: string, - colorUnits?: string, - colorNumbers?: string, - colorNeedle?: string, - colorNeedleEnd?: string, - colorValueText?: string, - colorValueTextShadow?: string, - colorBorderShadow?: string, - colorBorderOuter?: string, - colorBorderOuterEnd?: string, - colorBorderMiddle?: string, - colorBorderMiddleEnd?: string, - colorBorderInner?: string, - colorBorderInnerEnd?: string, - colorValueBoxRect?: string, - colorValueBoxRectEnd?: string, - colorValueBoxBackground?: string, - colorValueBoxShadow?: string, - colorNeedleShadowUp?: string, - colorNeedleShadowDown?: string, - needle?: boolean, - needleShadow?: boolean, - needleType?: string, - needleStart?: number, - needleEnd?: number, - needleWidth?: number, - borderOuterWidth?: number, - borderMiddleWidth?: number, - borderInnerWidth?: number, - borderShadowWidth?: number, - valueBox?: boolean, - valueBoxWidth?: number, - valueBoxStroke?: number, - valueText?: string, - valueTextShadow?: boolean, - valueBoxBorderRadius?: number, - highlights?: Highlight[], - highlightsWidth?: number, - fontNumbers?: string, - fontTitle?: string, - fontUnits?: string, - fontValue?: string, - fontTitleSize?: number, - fontValueSize?: number, - fontUnitsSize?: number, - fontNumbersSize?: number, - fontTitleStyle?: FontStyle, - fontValueStyle?: FontStyle, - fontUnitsStyle?: FontStyle, - fontNumbersStyle?: FontStyle, - fontTitleWeight?: FontWeight, - fontValueWeight?: FontWeight, - fontUnitsWeight?: FontWeight, - fontNumbersWeight?: FontWeight + renderTo: RenderTarget; + width?: number; + height?: number; + minValue?: number; + maxValue?: number; + value?: number; + units?: string|boolean; + majorTicks?: MajorTicks; + minorTicks?: number; + strokeTicks?: boolean; + animatedValue?: boolean; + animateOnInit?: boolean; + title?: string|boolean; + borders?: boolean; + valueInt?: number; + valueDec?: number; + majorTicksInt?: number; + majorTicksDec?: number; + animation?: boolean; + animationDuration?: number; + animationRule?: string|AnimationRule; + colorPlate?: string; + colorMajorTicks?: string; + colorMinorTicks?: string; + colorTitle?: string; + colorUnits?: string; + colorNumbers?: string; + colorNeedle?: string; + colorNeedleEnd?: string; + colorValueText?: string; + colorValueTextShadow?: string; + colorBorderShadow?: string; + colorBorderOuter?: string; + colorBorderOuterEnd?: string; + colorBorderMiddle?: string; + colorBorderMiddleEnd?: string; + colorBorderInner?: string; + colorBorderInnerEnd?: string; + colorValueBoxRect?: string; + colorValueBoxRectEnd?: string; + colorValueBoxBackground?: string; + colorValueBoxShadow?: string; + colorNeedleShadowUp?: string; + colorNeedleShadowDown?: string; + needle?: boolean; + needleShadow?: boolean; + needleType?: string; + needleStart?: number; + needleEnd?: number; + needleWidth?: number; + borderOuterWidth?: number; + borderMiddleWidth?: number; + borderInnerWidth?: number; + borderShadowWidth?: number; + valueBox?: boolean; + valueBoxWidth?: number; + valueBoxStroke?: number; + valueText?: string; + valueTextShadow?: boolean; + valueBoxBorderRadius?: number; + highlights?: Highlight[]; + highlightsWidth?: number; + fontNumbers?: string; + fontTitle?: string; + fontUnits?: string; + fontValue?: string; + fontTitleSize?: number; + fontValueSize?: number; + fontUnitsSize?: number; + fontNumbersSize?: number; + fontTitleStyle?: FontStyle; + fontValueStyle?: FontStyle; + fontUnitsStyle?: FontStyle; + fontNumbersStyle?: FontStyle; + fontTitleWeight?: FontWeight; + fontValueWeight?: FontWeight; + fontUnitsWeight?: FontWeight; + fontNumbersWeight?: FontWeight; } export interface RadialGaugeOptions extends GenericOptions { - ticksAngle?: number, - startAngle?: number, - colorNeedleCircleOuter?: string, - colorNeedleCircleOuterEnd?: string, - colorNeedleCircleInner?: string, - colorNeedleCircleInnerEnd?: string, - needleCircleSize?: number, - needleCircleInner?: boolean, - needleCircleOuter?: boolean, - animationTarget?: string + ticksAngle?: number; + startAngle?: number; + colorNeedleCircleOuter?: string; + colorNeedleCircleOuterEnd?: string; + colorNeedleCircleInner?: string; + colorNeedleCircleInnerEnd?: string; + needleCircleSize?: number; + needleCircleInner?: boolean; + needleCircleOuter?: boolean; + animationTarget?: string; } export interface LinearGaugeOptions extends GenericOptions { - borderRadius?: number, - barBeginCircle?: number, - barWidth?: number, - barStrokeWidth?: number, - barProgress?: boolean, - colorBar?: string, - colorBarEnd?: string, - colorBarStroke?: string, - colorBarProgress?: string, - colorBarProgressEnd?: string, - tickSide?: string, - needleSide?: string, - numberSide?: string, - ticksWidth?: number, - ticksWidthMinor?: number, - ticksPadding?: number, - barLength?: number + borderRadius?: number; + barBeginCircle?: number; + barWidth?: number; + barStrokeWidth?: number; + barProgress?: boolean; + colorBar?: string; + colorBarEnd?: string; + colorBarStroke?: string; + colorBarProgress?: string; + colorBarProgressEnd?: string; + tickSide?: string; + needleSide?: string; + numberSide?: string; + ticksWidth?: number; + ticksWidthMinor?: number; + ticksPadding?: number; + barLength?: number; } export interface DrawEventCallback { @@ -145,17 +145,17 @@ declare namespace CanvasGauges { } export interface rules { - linear: AnimationRule, - quad: AnimationRule, - dequad: AnimationRule, - quint: AnimationRule, - dequint: AnimationRule, - cycle: AnimationRule, - decycle: AnimationRule, - bounce: AnimationRule, - debounce: AnimationRule, - elastic: AnimationRule, - delastic: AnimationRule + linear: AnimationRule; + quad: AnimationRule; + dequad: AnimationRule; + quint: AnimationRule; + dequint: AnimationRule; + cycle: AnimationRule; + decycle: AnimationRule; + bounce: AnimationRule; + debounce: AnimationRule; + elastic: AnimationRule; + delastic: AnimationRule; } export class Animation { diff --git a/canvasjs/index.d.ts b/canvasjs/index.d.ts index 79a168f2d0..b41b1308e6 100644 --- a/canvasjs/index.d.ts +++ b/canvasjs/index.d.ts @@ -640,7 +640,7 @@ declare namespace CanvasJS { */ maximum?: number | Date; } - + interface ChartAxisYOptions extends ChartAxisOptions { /** * When includeZero is set to true, axisY sets the range in such a way that Zero is a part of it. It is set to true by default. But, whenever y values are very big and difference among dataPoints are hard to judge, setting includeZero to false makes axisY to set a range that makes the differences prominently visible. @@ -648,7 +648,7 @@ declare namespace CanvasJS { * Example: true, false */ includeZero?: boolean; - + /** * Sets the minimum value of Axis. Values smaller than minimum are clipped. * Default: Automatically Calculated based on the data diff --git a/cash/index.d.ts b/cash/index.d.ts index efa108e5f8..da9c0665c4 100644 --- a/cash/index.d.ts +++ b/cash/index.d.ts @@ -105,7 +105,7 @@ interface CashStatic { /** * Cash - * Interface for CashJs + * Interface for CashJs * Refer https://github.com/kenwheeler/cash for documentation and uses of the methods and properties */ interface Cash { @@ -305,7 +305,7 @@ interface Cash { * Returns last element in the collection. */ last(): Cash; - + /** * next * Returns next sibling. @@ -323,13 +323,13 @@ interface Cash { * Removes event listener from collection elements. */ off(eventName: string, callback: Function): Cash; - + /** * offset * Get the coordinates of the first element in a collection relative to the document. */ offset(): OffsetType; - + /** * offsetParent * Get the first element's ancestor that's positioned. @@ -416,7 +416,7 @@ interface Cash { * Removes collection elements from the DOM. */ remove(): Cash; - + /** * removeAttr * Removes attribute from collection elements. diff --git a/casperjs/index.d.ts b/casperjs/index.d.ts index a3f456f238..68acb34a36 100644 --- a/casperjs/index.d.ts +++ b/casperjs/index.d.ts @@ -7,7 +7,7 @@ interface CasperModule { create(options: CasperOptions): Casper; - selectXPath(expression: string): Object + selectXPath(expression: string): Object; } interface EventEmitter { @@ -43,7 +43,7 @@ interface Casper extends EventEmitter { download(url: string, target?: string, method?: string, data?: any): Casper; each(array: T[], fn: (self: Casper, item: T, index: number) => void): Casper; echo(message: string, style?: string): Casper; - evaluate(fn: () => T, ...args: any[]): T + evaluate(fn: () => T, ...args: any[]): T; evaluateOrDie(fn: () => any, message?: string, status?: number): Casper; exit(status?: number): Casper; exists(selector: string): boolean; diff --git a/cassandra-driver/index.d.ts b/cassandra-driver/index.d.ts index 9bf5fb7137..c04ca9d233 100644 --- a/cassandra-driver/index.d.ts +++ b/cassandra-driver/index.d.ts @@ -100,8 +100,8 @@ export namespace policies { } interface RequestInfo { - request: any, - nbRetry: number + request: any; + nbRetry: number; } enum retryDecision { @@ -437,25 +437,25 @@ export var HostMap: HostMapStatic; export var Encoder: EncoderStatic; export interface ClientOptions { - contactPoints: Array, - keyspace: string, + contactPoints: Array; + keyspace: string; policies?: { addressResolution?: policies.addressResolution.AddressTranslator, loadBalancing?: policies.loadBalancing.LoadBalancingPolicy, reconnection?: policies.reconnection.ReconnectionPolicy, retry?: policies.retry.RetryPolicy - }, - queryOptions?: QueryOptions, + }; + queryOptions?: QueryOptions; pooling?: { heartBeatInterval: number, coreConnectionsPerHost: { [key: number]: number; }, warmup: boolean; - }, + }; protocolOptions?: { port: number, maxSchemaAgreementWaitSeconds: number, maxVersion: number - }, + }; socketOptions?: { connectTimeout: number, defunctReadTimeoutThreshold: number, @@ -464,15 +464,15 @@ export interface ClientOptions { readTimeout: number, tcpNoDelay: boolean, coalescingThreshold: number - }, - authProvider?: auth.AuthProvider, - sslOptions?: any, + }; + authProvider?: auth.AuthProvider; + sslOptions?: any; encoding?: { map: Function, set: Function, copyBuffer: boolean, useUndefinedAsUnset: boolean - } + }; } export interface QueryOptions { @@ -632,7 +632,7 @@ export namespace metadata { argumentTypes: Array<{ code: number, info: any }>; finalFunction: string; initCondition: string; - keyspaceName: string, + keyspaceName: string; returnType: string; signature: Array; stateFunction: string; @@ -640,17 +640,17 @@ export namespace metadata { } interface DataTypeInfo { - code: number, - info: string | DataTypeInfo | Array, + code: number; + info: string | DataTypeInfo | Array; options: { frozen: boolean, reversed: boolean - } + }; } interface ColumnInfo { - name: string, - type: DataTypeInfo + name: string; + type: DataTypeInfo; } interface DataCollection { @@ -672,7 +672,7 @@ export namespace metadata { maxIndexInterval?: number; minIndexInterval?: number; name: string; - partitionKeys: Array<{ c: ColumnInfo, index: number }> + partitionKeys: Array<{ c: ColumnInfo, index: number }>; populateCacheOnFlush: boolean; readRepairChance: number; speculateRetry: string; @@ -737,7 +737,7 @@ export namespace metadata { argumentTypes: Array<{ code: number, info: any }>; body: string; calledOnNullInput: boolean; - keyspaceName: string, + keyspaceName: string; language: string; name: string; returnType: string; diff --git a/chai-enzyme/index.d.ts b/chai-enzyme/index.d.ts index 72842332ad..734edd09e5 100644 --- a/chai-enzyme/index.d.ts +++ b/chai-enzyme/index.d.ts @@ -144,10 +144,10 @@ declare namespace Chai { declare module "chai-enzyme" { import { ShallowWrapper, ReactWrapper, CheerioWrapper } from "enzyme"; - type DebugWrapper = ShallowWrapper | CheerioWrapper | ReactWrapper; + type DebugWrapper = ShallowWrapper | CheerioWrapper | ReactWrapper; function chaiEnzyMe(wrapper?: (debugWrapper: DebugWrapper) => string): (chai: any) => void; - module chaiEnzyMe { + namespace chaiEnzyMe { } export = chaiEnzyMe; } diff --git a/chalk/index.d.ts b/chalk/index.d.ts index 3651e8077d..11fb84a445 100644 --- a/chalk/index.d.ts +++ b/chalk/index.d.ts @@ -125,7 +125,7 @@ declare namespace Chalk { export const constructor: { new (options: {enabled: boolean}): Chalk; - } + }; export interface Chalk extends ChalkStyle { enabled: boolean; diff --git a/chance/index.d.ts b/chance/index.d.ts index 7ce79b431f..12657641cd 100644 --- a/chance/index.d.ts +++ b/chance/index.d.ts @@ -126,7 +126,7 @@ declare namespace Chance { pick(arr: T[]): T; pickone(arr: T[]): T; /** - * @deprecated Use pickset + * @deprecated Use pickset */ pick(arr: T[], count: number): T[]; pickset(arr: T[], count: number): T[]; diff --git a/chartjs/index.d.ts b/chartjs/index.d.ts index fca81b6d22..13b5b6e48f 100644 --- a/chartjs/index.d.ts +++ b/chartjs/index.d.ts @@ -80,7 +80,7 @@ interface ChartOptions extends ChartSettings { scaleGridLineColor?: string; scaleGridLineWidth?: number; scaleShowHorizontalLines?: boolean; - scaleShowVerticalLines?: boolean; + scaleShowVerticalLines?: boolean; legendTemplate?: string; } @@ -137,7 +137,7 @@ interface BarChartOptions extends ChartOptions { barShowStroke?: boolean; barStrokeWidth?: number; barValueSpacing?: number; - barDatasetSpacing?: number; + barDatasetSpacing?: number; } interface RadarChartOptions extends ChartSettings { diff --git a/cheap-ruler/index.d.ts b/cheap-ruler/index.d.ts index 91f417d490..1b3e1f17e8 100644 --- a/cheap-ruler/index.d.ts +++ b/cheap-ruler/index.d.ts @@ -4,26 +4,26 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "cheap-ruler" { - type BBox = [number, number, number, number] | number[] - type Point = [number, number] | number[] - type Line = Array - type Points = Array - type Polygon = Array> + type BBox = [number, number, number, number] | number[]; + type Point = [number, number] | number[]; + type Line = Array; + type Points = Array; + type Polygon = Array>; interface TemplateUnits { - kilometers: number - miles: number - nauticalmiles: number - meters: number - metres: number - yards: number - feet: number - inches: number + kilometers: number; + miles: number; + nauticalmiles: number; + meters: number; + metres: number; + yards: number; + feet: number; + inches: number; } interface InterfacePointOnLine { - point: Point - index: number - t: number + point: Point; + index: number; + t: number; } class CheapRuler { /** @@ -197,7 +197,7 @@ declare module "cheap-ruler" { * // convert 50 meters to yards * 50 * cheapRuler.units.yards / cheapRuler.units.meters; */ - const units: TemplateUnits + const units: TemplateUnits; /** * Creates a ruler object from tile coordinates (y and z). Convenient in tile-reduce scripts. @@ -212,5 +212,5 @@ declare module "cheap-ruler" { */ function fromTile(y: number, z: number, units?: string): CheapRuler; } - export = cheapRuler + export = cheapRuler; } \ No newline at end of file diff --git a/cheerio/index.d.ts b/cheerio/index.d.ts index e94eb1a68c..f1f157b900 100644 --- a/cheerio/index.d.ts +++ b/cheerio/index.d.ts @@ -122,8 +122,8 @@ interface Cheerio { add(elements: CheerioElement[]): Cheerio; add(selection: Cheerio): Cheerio; - addBack():Cheerio; - addBack(filter: string):Cheerio; + addBack(): Cheerio; + addBack(filter: string): Cheerio; // Manipulation @@ -262,7 +262,7 @@ interface CheerioAPI extends CheerioSelector { load(element: CheerioElement, options?: CheerioOptionsInterface): CheerioStatic; } -declare var cheerio:CheerioAPI; +declare var cheerio: CheerioAPI; declare module "cheerio" { export = cheerio; diff --git a/chocolatechipjs/chocolatechipjs-tests.ts b/chocolatechipjs/chocolatechipjs-tests.ts index 465ea2b0a9..7142d94702 100644 --- a/chocolatechipjs/chocolatechipjs-tests.ts +++ b/chocolatechipjs/chocolatechipjs-tests.ts @@ -282,7 +282,7 @@ fetch('../controllers/php-post.php', { }, body: formData }) -.then($.json) +.then($.json) .then(function(data: any): any { if(data.email_check == "valid"){ $("#message_ajax").html("
" + data.email + " is a valid e-mail address. Thank you, " + data.name + ".
"); @@ -300,12 +300,12 @@ interface putData { var putData = $('#fileText').val(); fetch('../controllers/php-put.php', { method: 'put', - headers: { - "Content-type": "application/x-www-form-urlencoded; charset=UTF-8" + headers: { + "Content-type": "application/x-www-form-urlencoded; charset=UTF-8" }, body: putData }) -.then($.json) +.then($.json) .then(function(data:any): any { console.dir(data.base); $("#message_ajax").append('

' + data.result + '

'); @@ -324,12 +324,12 @@ interface deleteData { var file = $('#fileName').val(); fetch('../controllers/php-delete.php', { method: 'delete', - headers: { - "Content-type": "application/x-www-form-urlencoded; charset=UTF-8" + headers: { + "Content-type": "application/x-www-form-urlencoded; charset=UTF-8" }, body: file }) -.then($.json) +.then($.json) .then(function(data: any): any { $("#message_ajax").html("
DELETE was sent to the server successfully.
"); $("#message_ajax").append('

' + data.result + '

'); diff --git a/chocolatechipjs/index.d.ts b/chocolatechipjs/index.d.ts index f1e0701e39..64694b8df8 100644 --- a/chocolatechipjs/index.d.ts +++ b/chocolatechipjs/index.d.ts @@ -45,7 +45,7 @@ interface ChocolateChipStatic { * @return document[] */ (document: Document): Document[]; - + /** * If no argument is provided, return the document as a ChocolateChipElementArray. * @return Document[] @@ -503,12 +503,12 @@ interface ChocolateChipStatic { * The repeater method used to rendering iterable template data. */ repeater: { - + /** * Use this method to render declarative temlate repeaters. This expects a "data-repeater" attribute whose value points to data stored on $.template.data. */ (): void; - + /** * A method to repeated output a template. * @@ -536,7 +536,7 @@ interface ChocolateChipStatic { /** * ATENTION: DO NOT TOUCH! This is the ChocolateChipJS cache. This is used to store details about registered events and data. You should not touch any of these values, even though they are exposed, as this can seriously impair the behavior of your app. - * + * * data: this is used by $(element).data() to store data. * events: this is used by the event system. */ @@ -545,7 +545,7 @@ interface ChocolateChipStatic { * DO NOT TOUCH! This hold data stored by $(element).data(). */ data: {}; - + /** * DO NOT TOUCH! This stores information about registered events. */ @@ -556,7 +556,7 @@ interface ChocolateChipStatic { hasKey: Function; _delete: Function; } - } + }; } @@ -652,7 +652,7 @@ interface ChocolateChipElementArray extends Array { * @ return HTMLElement[] */ has(selector: string): ChocolateChipElementArray; - + /** * Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element. * @@ -668,7 +668,7 @@ interface ChocolateChipElementArray extends Array { * @ return HTMLElement[] */ hasnt(selector: string): ChocolateChipElementArray; - + /** * Reduce the set of matched elements to those that have a descendant that does not match the selector or DOM element. * @@ -857,10 +857,10 @@ interface ChocolateChipElementArray extends Array { * @return HTMLElement[] */ prop(propertyName: string, value: any | boolean): ChocolateChipElementArray; - + /** * Remove an element property. - * + * * @param property The property to remove. * @return HTMLElement[] */ @@ -1220,7 +1220,7 @@ interface ChocolateChipElementArray extends Array { /** * Trigger an event on an element. - * + * * @param eventType The event to trigger. * @return void */ @@ -1337,7 +1337,7 @@ interface fetch { method?: string; headers?: {}; body?: any; - mode?: { + mode?: { cors: string; "no-cors": string; "same-origin": string; @@ -1404,7 +1404,7 @@ interface Request { } interface URLSearchParams { - ():URLSearchParams; + (): URLSearchParams; } /** @@ -1440,14 +1440,14 @@ interface Response { } interface ChocolateChipStatic { - + /** * A cache to hold callbacks execute by the response from a JSONP request. This is an array of strings. By default these values get purged when the callback execute and exposes the data returned by the request. */ JSONPCallbacks: string[]; /** - * Method to perform JSONP request. - * + * Method to perform JSONP request. + * * @param url A string defining the url to target. * @param options And object literal of properties: {timeout? number, callbackName?: string, clear?: boolean} */ @@ -1456,17 +1456,17 @@ interface ChocolateChipStatic { * A number representing milliseconds to express when to refect a JSONP request. */ timeout?: number; - + /** - * The optional name for the callback when the server response will execute. The default value is "callback". However some sites may use a different name for their JSONP function. Consult the documentation on the site to ascertain the correct value for this callback. + * The optional name for the callback when the server response will execute. The default value is "callback". However some sites may use a different name for their JSONP function. Consult the documentation on the site to ascertain the correct value for this callback. */ callbackName?: string; - + /** * This value determines whether the callbacks and script associate with JSONP persist or are purged after the request returns. By default this is set to true, meaning that they will be purged. */ clear?: boolean; - }): any + }): any; } interface Window { diff --git a/chokidar/index.d.ts b/chokidar/index.d.ts index aa0dd27ef5..151f2a7a97 100644 --- a/chokidar/index.d.ts +++ b/chokidar/index.d.ts @@ -5,40 +5,36 @@ /// -declare module "fs" -{ - interface FSWatcher - { - add(fileDirOrGlob:string):void; - add(filesDirsOrGlobs:Array):void; - unwatch(fileDirOrGlob:string):void; - unwatch(filesDirsOrGlobs:Array):void; - getWatched():any; +declare module "fs" { + interface FSWatcher { + add(fileDirOrGlob: string): void; + add(filesDirsOrGlobs: Array): void; + unwatch(fileDirOrGlob: string): void; + unwatch(filesDirsOrGlobs: Array): void; + getWatched(): any; } } -declare module "chokidar" -{ - interface WatchOptions - { - persistent?:boolean; - ignored?:any; - ignoreInitial?:boolean; - followSymlinks?:boolean; - cwd?:string; - usePolling?:boolean; - useFsEvents?:boolean; - alwaysStat?:boolean; - depth?:number; - interval?:number; - binaryInterval?:number; - ignorePermissionErrors?:boolean; - atomic?:boolean; - awaitWriteFinish?:any; +declare module "chokidar" { + interface WatchOptions { + persistent?: boolean; + ignored?: any; + ignoreInitial?: boolean; + followSymlinks?: boolean; + cwd?: string; + usePolling?: boolean; + useFsEvents?: boolean; + alwaysStat?: boolean; + depth?: number; + interval?: number; + binaryInterval?: number; + ignorePermissionErrors?: boolean; + atomic?: boolean; + awaitWriteFinish?: any; } import fs = require("fs"); - function watch(fileDirOrGlob:string, options?:WatchOptions):fs.FSWatcher; - function watch(filesDirsOrGlobs:Array, options?:WatchOptions):fs.FSWatcher; + function watch(fileDirOrGlob: string, options?: WatchOptions): fs.FSWatcher; + function watch(filesDirsOrGlobs: Array, options?: WatchOptions): fs.FSWatcher; } diff --git a/chroma-js/chroma-js-tests.ts b/chroma-js/chroma-js-tests.ts index 200d07615a..d881d5c326 100644 --- a/chroma-js/chroma-js-tests.ts +++ b/chroma-js/chroma-js-tests.ts @@ -7,7 +7,7 @@ function test_chroma() { chroma('#ff3399'); chroma('F39'); chroma.hex("#fff"); - + chroma(0xff3399); chroma(0xff, 0x33, 0x99); chroma(255, 51, 153); diff --git a/chroma-js/index.d.ts b/chroma-js/index.d.ts index e3f463d368..bafeba8f1a 100644 --- a/chroma-js/index.d.ts +++ b/chroma-js/index.d.ts @@ -19,7 +19,7 @@ declare namespace Chroma { /** * Creates a color from a number representation [0; 16777215] - * + * * @param color The number to convert to a color. * @return the color object. */ @@ -67,13 +67,13 @@ declare namespace Chroma { rgb(r: number, g: number, b: number): Color; - /** + /** * GL is a variant of RGB(A), with the only difference that the components are normalized to the range of 0..1. */ gl(red: number, green: number, blue: number, alpha?: number): Color; - /** - * light 2000K, bright sunlight 6000K. Based on Neil Bartlett's implementation. + /** + * light 2000K, bright sunlight 6000K. Based on Neil Bartlett's implementation. * https://github.com/neilbartlett/color-temperature */ temperature(t: number): Color; @@ -93,7 +93,7 @@ declare namespace Chroma { random(): Color; /** - * Computes the WCAG contrast ratio between two colors. + * Computes the WCAG contrast ratio between two colors. * A minimum contrast of 4.5:1 is recommended to ensure that text is still readable against a background color. * * @param color1 The first color. @@ -105,7 +105,7 @@ declare namespace Chroma { bezier(colors: string[]): Scale; /** - * chroma.brewer is an map of ColorBrewer scales that are included in chroma.js for convenience. + * chroma.brewer is an map of ColorBrewer scales that are included in chroma.js for convenience. * chroma.scale uses the colors to construct. */ brewer: { @@ -147,7 +147,7 @@ declare namespace Chroma { }; /** - * Helper function that computes class breaks for you, based on actual data. + * Helper function that computes class breaks for you, based on actual data. * Supports three different modes: equidistant breaks, quantiles breaks and breaks based on k-means clusting. */ limits(data: number[], mode: string, c: number): number[]; @@ -159,7 +159,7 @@ declare namespace Chroma { cubehelix(): Cubehelix; cmyk(c: number, m: number, y: number, k: number): Color; - + /** * Create a color from a hex or string representation (as supported in CSS). * diff --git a/chrome/chrome-app.d.ts b/chrome/chrome-app.d.ts index a38d0c7724..ba7289de2b 100644 --- a/chrome/chrome-app.d.ts +++ b/chrome/chrome-app.d.ts @@ -566,28 +566,28 @@ declare namespace chrome.runtime { background?: { scripts?: string[]; } - }, + }; bluetooth?: { uuids?: string[]; socket?: boolean; low_energy?: boolean; peripheral?: boolean; - }, + }; file_handlers?: { [name: string]: { types?: string[]; extensions?: string[]; title?: string; } - }, - kiosk_enabled?: boolean, - kiosk_only?: boolean, + }; + kiosk_enabled?: boolean; + kiosk_only?: boolean; url_handlers?: { [name: string]: { matches: string[]; title?: string; } - }, + }; usb_printers?: { filters: { vendorId?: number; @@ -596,13 +596,13 @@ declare namespace chrome.runtime { interfaceSubclass?: number; interfaceProtocol?: number; }[] - }, + }; webview?: { partitions?: { name: string; accessible_resources: string[]; }[] - } + }; } } @@ -613,72 +613,72 @@ declare namespace chrome.usb { type Direction = 'in' | 'out'; interface Device { - device: number, - vendorId: number, - productId: number, - productName: string, - manufacturerName: string, - serialNumber: string + device: number; + vendorId: number; + productId: number; + productName: string; + manufacturerName: string; + serialNumber: string; } interface ConnectionHandle { - handle: number, - vendorId: number, - productId: number + handle: number; + vendorId: number; + productId: number; } interface EndpointDescriptor { - address: number, - type: 'control' | 'interrupt' | 'isochronous' | 'bulk', - direction: Direction, - maximumPacketSize: number, - synchronization?: 'asynchronous' | 'adaptive' | 'synchronous', - usage?: 'data' | 'feedback' | 'explicitFeedback', - pollingInterval?: number, - extra_data: ArrayBuffer + address: number; + type: 'control' | 'interrupt' | 'isochronous' | 'bulk'; + direction: Direction; + maximumPacketSize: number; + synchronization?: 'asynchronous' | 'adaptive' | 'synchronous'; + usage?: 'data' | 'feedback' | 'explicitFeedback'; + pollingInterval?: number; + extra_data: ArrayBuffer; } interface InterfaceDescriptor { - interfaceNumber: number, - alternateSetting: number, - interfaceClass: number, - interfaceSubclass: number, - interfaceProtocol: number, - description?: string, - endpoints: EndpointDescriptor[], - extra_data: ArrayBuffer + interfaceNumber: number; + alternateSetting: number; + interfaceClass: number; + interfaceSubclass: number; + interfaceProtocol: number; + description?: string; + endpoints: EndpointDescriptor[]; + extra_data: ArrayBuffer; } interface ConfigDescriptor { - active: boolean, - configurationValue: number, - description?: string, - selfPowered: boolean, - remoteWakeup: boolean, - maxPower: number, - interfaces: InterfaceDescriptor[], - extra_data: ArrayBuffer + active: boolean; + configurationValue: number; + description?: string; + selfPowered: boolean; + remoteWakeup: boolean; + maxPower: number; + interfaces: InterfaceDescriptor[]; + extra_data: ArrayBuffer; } interface GenericTransferInfo { - direction: Direction, - endpoint: number, - length?: number, - data?: ArrayBuffer, - timeout?: number + direction: Direction; + endpoint: number; + length?: number; + data?: ArrayBuffer; + timeout?: number; } interface TransferResultInfo { - resultCode: number, - data?: ArrayBuffer + resultCode: number; + data?: ArrayBuffer; } interface DeviceFilter { - vendorId?: number, - productId?: number, - interfaceClass?: number, - interfaceSubclass?: number, - interfaceProtocol?: number + vendorId?: number; + productId?: number; + interfaceClass?: number; + interfaceSubclass?: number; + interfaceProtocol?: number; } interface TransferInfo { diff --git a/chrome/chrome-cast.d.ts b/chrome/chrome-cast.d.ts index 081d3de1bf..57da92522d 100644 --- a/chrome/chrome-cast.d.ts +++ b/chrome/chrome-cast.d.ts @@ -139,35 +139,35 @@ declare namespace chrome.cast { errorCallback: (error: chrome.cast.Error) => void, sessionRequest?: chrome.cast.SessionRequest, label?: string - ): void + ): void; /** * @param {string} sessionId The id of the session to join. */ export function requestSessionById( sessionId: string - ): void + ): void; /** * @param {chrome.cast.ReceiverActionListener} listener */ export function addReceiverActionListener( listener: (receiver: chrome.cast.Receiver, receiverAction: chrome.cast.ReceiverAction) => void - ): void + ): void; /** * @param {chrome.cast.ReceiverActionListener} listener */ export function removeReceiverActionListener( listener: (receiver: chrome.cast.Receiver, receiverAction: chrome.cast.ReceiverAction) => void - ): void + ): void; /** * @param {string} message The message to log. */ export function logMessage( message: string - ): void + ): void; /** * @param {!Array} receivers @@ -178,7 +178,7 @@ declare namespace chrome.cast { receivers: Array, successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ): void + ): void; /** * @param {!chrome.cast.Receiver} receiver @@ -189,7 +189,7 @@ declare namespace chrome.cast { receiver: chrome.cast.Receiver, successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ): void + ): void; interface ApiConfig { /** @@ -208,7 +208,7 @@ declare namespace chrome.cast { receiverListener: (receiverAvailability: chrome.cast.ReceiverAvailability) => void, autoJoinPolicy?: chrome.cast.AutoJoinPolicy, defaultActionPolicy?: chrome.cast.DefaultActionPolicy - ):ApiConfig; + ): ApiConfig; sessionRequest: chrome.cast.SessionRequest; sessionListener: (session: chrome.cast.Session) => void; @@ -229,7 +229,7 @@ declare namespace chrome.cast { code: chrome.cast.ErrorCode, description?: string, details?: Object - ):Error; + ): Error; code: chrome.cast.ErrorCode; description?: string; @@ -245,7 +245,7 @@ declare namespace chrome.cast { */ new( url: string - ):Image; + ): Image; url: string; height?: number; @@ -260,7 +260,7 @@ declare namespace chrome.cast { */ new( platform: chrome.cast.SenderPlatform - ):SenderApplication; + ): SenderApplication; platform: chrome.cast.SenderPlatform; url?: string; @@ -279,7 +279,7 @@ declare namespace chrome.cast { appId: string, capabilities?: Array, timeout?: number - ):SessionRequest; + ): SessionRequest; appId: string; capabilities: Array; @@ -303,7 +303,7 @@ declare namespace chrome.cast { displayName: string, appImages: Array, receiver: chrome.cast.Receiver - ):Session; + ): Session; sessionId: string; appId: string; @@ -313,7 +313,7 @@ declare namespace chrome.cast { senderApps: Array; namespaces: Array<{name: string}>; media: Array; - status: chrome.cast.SessionStatus + status: chrome.cast.SessionStatus; /** * @param {number} newLevel @@ -324,7 +324,7 @@ declare namespace chrome.cast { newLevel: number, successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ):void + ): void; /** * @param {boolean} muted @@ -335,7 +335,7 @@ declare namespace chrome.cast { muted: boolean, successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ):void + ): void; /** * @param {function()} successCallback @@ -344,7 +344,7 @@ declare namespace chrome.cast { leave( successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ):void + ): void; /** * @param {function()} successCallback @@ -353,7 +353,7 @@ declare namespace chrome.cast { stop( successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ):void + ): void; /** * @param {string} namespace @@ -366,21 +366,21 @@ declare namespace chrome.cast { message: string, successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ):void + ): void; /** * @param {function(boolean)} listener */ addUpdateListener( - listener: (isAlive:boolean) => void - ):void + listener: (isAlive: boolean) => void + ): void; /** * @param {function(boolean)} listener */ removeUpdateListener( - listener: (isAlive:boolean) => void - ):void + listener: (isAlive: boolean) => void + ): void; /** * @param {string} namespace @@ -389,7 +389,7 @@ declare namespace chrome.cast { addMessageListener( namespace: string, listener: (namespace: string, message: string) => void - ):void + ): void; /** * @param {string} namespace @@ -397,22 +397,22 @@ declare namespace chrome.cast { */ removeMessageListener( namespace: string, - listener: (namespace:string, message:string) => void - ):void + listener: (namespace: string, message: string) => void + ): void; /** * @param {function(!chrome.cast.media.Media)} listener */ addMediaListener( listener: (media: chrome.cast.media.Media) => void - ):void + ): void; /** * @param {function(!chrome.cast.media.Media)} listener */ removeMediaListener( listener: (media: chrome.cast.media.Media) => void - ):void + ): void; /** * @param {!chrome.cast.media.LoadRequest} loadRequest @@ -423,7 +423,7 @@ declare namespace chrome.cast { loadRequest: chrome.cast.media.LoadRequest, successCallback: (media: chrome.cast.media.Media) => void, errorCallback: (error: chrome.cast.Error) => void - ):void + ): void; /** * @param {!chrome.cast.media.QueueLoadRequest} queueLoadRequest @@ -434,7 +434,7 @@ declare namespace chrome.cast { queueLoadRequest: chrome.cast.media.QueueLoadRequest, successCallback: (media: chrome.cast.media.Media) => void, errorCallback: (error: chrome.cast.Error) => void - ):void + ): void; } interface Receiver { @@ -451,7 +451,7 @@ declare namespace chrome.cast { friendlyName: string, capabilities?: Array, volume?: chrome.cast.Volume - ):Receiver; + ): Receiver; label: string; friendlyName: string; @@ -471,7 +471,7 @@ declare namespace chrome.cast { new( statusText: string, appImages: Array - ):ReceiverDisplayStatus; + ): ReceiverDisplayStatus; statusText: string; appImages: Array; @@ -487,7 +487,7 @@ declare namespace chrome.cast { new( level?: number, muted?: boolean - ):Volume; + ): Volume; level?: number; muted?: boolean; @@ -567,10 +567,10 @@ declare namespace chrome.cast.media { * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media#.RepeatMode */ interface RepeatMode { - OFF:string; - ALL:string; - SINGLE:string; - ALL_AND_SHUFFLE:string; + OFF: string; + ALL: string; + SINGLE: string; + ALL_AND_SHUFFLE: string; } interface QueueItem { @@ -581,7 +581,7 @@ declare namespace chrome.cast.media { */ new( mediaInfo: chrome.cast.media.MediaInfo - ):QueueItem; + ): QueueItem; activeTrackIds: Array; autoplay: boolean; @@ -600,7 +600,7 @@ declare namespace chrome.cast.media { */ new( items: Array - ):QueueLoadRequest; + ): QueueLoadRequest; customData: Object; items: Array; @@ -616,10 +616,10 @@ declare namespace chrome.cast.media { */ new( itemsToInsert: Array - ):QueueInsertItemsRequest; + ): QueueInsertItemsRequest; customData: Object; - insertBefore:number; + insertBefore: number; items: Array; } @@ -631,7 +631,7 @@ declare namespace chrome.cast.media { */ new( itemIdsToRemove: Array - ):QueueRemoveItemsRequest; + ): QueueRemoveItemsRequest; customData: Object; itemIds: Array; @@ -645,7 +645,7 @@ declare namespace chrome.cast.media { */ new( itemIdsToReorder: Array - ):QueueReorderItemsRequest; + ): QueueReorderItemsRequest; customData: Object; insertBefore: number; @@ -660,7 +660,7 @@ declare namespace chrome.cast.media { */ new( itemsToUpdate: Array - ):QueueUpdateItemsRequest; + ): QueueUpdateItemsRequest; customData: Object; item: Array; @@ -740,7 +740,7 @@ declare namespace chrome.cast.media { * @constructor * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.GetStatusRequest */ - new():GetStatusRequest; + new(): GetStatusRequest; customData: Object; } @@ -750,7 +750,7 @@ declare namespace chrome.cast.media { * @constructor * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.PauseRequest */ - new():PauseRequest; + new(): PauseRequest; customData: Object; } @@ -760,7 +760,7 @@ declare namespace chrome.cast.media { * @constructor * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.PlayRequest */ - new():PlayRequest; + new(): PlayRequest; customData: Object; } @@ -770,7 +770,7 @@ declare namespace chrome.cast.media { * @constructor * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.SeekRequest */ - new():SeekRequest; + new(): SeekRequest; currentTime: number; resumeState: chrome.cast.media.ResumeState; @@ -782,7 +782,7 @@ declare namespace chrome.cast.media { * @constructor * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.StopRequest */ - new():StopRequest; + new(): StopRequest; customData: Object; } @@ -795,7 +795,7 @@ declare namespace chrome.cast.media { */ new( volume: chrome.cast.Volume - ):VolumeRequest; + ): VolumeRequest; volume: chrome.cast.Volume; customData: Object; @@ -809,7 +809,7 @@ declare namespace chrome.cast.media { */ new( mediaInfo: chrome.cast.media.MediaInfo - ):LoadRequest; + ): LoadRequest; activeTrackIds: Array; autoplay: boolean; @@ -828,7 +828,7 @@ declare namespace chrome.cast.media { new( activeTrackIds?: Array, textTrackStyle?: chrome.cast.media.TextTrackStyle - ):EditTracksInfoRequest; + ): EditTracksInfoRequest; activeTrackIds: Array; textTrackStyle: chrome.cast.media.TextTrackStyle; @@ -839,7 +839,7 @@ declare namespace chrome.cast.media { * @constructor * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.GenericMediaMetadata */ - new():GenericMediaMetadata; + new(): GenericMediaMetadata; images: Array; metadataType: chrome.cast.media.MetadataType; @@ -857,7 +857,7 @@ declare namespace chrome.cast.media { * @constructor * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.MovieMediaMetadata */ - new():MovieMediaMetadata; + new(): MovieMediaMetadata; images: Array; metadataType: chrome.cast.media.MetadataType; @@ -1009,7 +1009,7 @@ declare namespace chrome.cast.media { getStatusRequest: chrome.cast.media.GetStatusRequest, successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ): void + ): void; /** * @param {chrome.cast.media.PlayRequest} playRequest @@ -1020,7 +1020,7 @@ declare namespace chrome.cast.media { playRequest: chrome.cast.media.PlayRequest, successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ): void + ): void; /** * @param {chrome.cast.media.PauseRequest} pauseRequest @@ -1031,7 +1031,7 @@ declare namespace chrome.cast.media { pauseRequest: chrome.cast.media.PauseRequest, successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ): void + ): void; /** * @param {!chrome.cast.media.SeekRequest} seekRequest @@ -1042,7 +1042,7 @@ declare namespace chrome.cast.media { seekRequest: chrome.cast.media.SeekRequest, successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ): void + ): void; /** * @param {chrome.cast.media.StopRequest} stopRequest @@ -1053,7 +1053,7 @@ declare namespace chrome.cast.media { stopRequest: chrome.cast.media.StopRequest, successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ): void + ): void; /** * @param {!chrome.cast.media.VolumeRequest} volumeRequest @@ -1064,7 +1064,7 @@ declare namespace chrome.cast.media { volumeRequest: chrome.cast.media.VolumeRequest, successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ): void + ): void; /** * @param {!chrome.cast.media.EditTracksInfoRequest} editTracksInfoRequest @@ -1075,7 +1075,7 @@ declare namespace chrome.cast.media { editTracksInfoRequest: chrome.cast.media.EditTracksInfoRequest, successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ): void + ): void; /** * @param {!chrome.cast.media.MediaCommand} command @@ -1083,27 +1083,27 @@ declare namespace chrome.cast.media { */ supportsCommand( command: chrome.cast.media.MediaCommand - ): boolean + ): boolean; /** * @param {function(boolean)} listener */ addUpdateListener( - listener: (isAlive:boolean) => void - ): void + listener: (isAlive: boolean) => void + ): void; /** * @param {function(boolean)} listener */ removeUpdateListener( - listener: (isAlive:boolean) => void - ): void + listener: (isAlive: boolean) => void + ): void; /** * @return {number} * @suppress {deprecated} Uses currentTime member to compute estimated time. */ - getEstimatedTime(): number + getEstimatedTime(): number; /** * @param {!chrome.cast.media.QueueItem} item @@ -1114,7 +1114,7 @@ declare namespace chrome.cast.media { item: chrome.cast.media.QueueItem, successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ): void + ): void; /** * @param {!chrome.cast.media.QueueInsertItemsRequest} queueInsertItemsRequest @@ -1125,7 +1125,7 @@ declare namespace chrome.cast.media { queueInsertItemsRequest: chrome.cast.media.QueueInsertItemsRequest, successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ): void + ): void; /** * @param {!number} itemId @@ -1136,7 +1136,7 @@ declare namespace chrome.cast.media { itemId: number, successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ): void + ): void; /** * @param {!number} itemId @@ -1149,7 +1149,7 @@ declare namespace chrome.cast.media { newIndex: number, successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ): void + ): void; /** * @param {function()} successCallback @@ -1158,7 +1158,7 @@ declare namespace chrome.cast.media { queueNext ( successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ): void + ): void; /** * @param {function()} successCallback @@ -1167,7 +1167,7 @@ declare namespace chrome.cast.media { queuePrev ( successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ): void + ): void; /** * @param {!number} itemId @@ -1178,7 +1178,7 @@ declare namespace chrome.cast.media { itemId: number, successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ): void + ): void; /** * @param {!chrome.cast.media.QueueReorderItemsRequest} queueReorderItemsRequest @@ -1189,7 +1189,7 @@ declare namespace chrome.cast.media { queueReorderItemsRequest: chrome.cast.media.QueueReorderItemsRequest, successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ): void + ): void; /** * @param {!chrome.cast.media.RepeatMode} repeatMode @@ -1200,7 +1200,7 @@ declare namespace chrome.cast.media { repeatMode: chrome.cast.media.RepeatMode, successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ): void + ): void; /** * @param {!chrome.cast.media.QueueUpdateItemsRequest} queueUpdateItemsRequest @@ -1211,7 +1211,7 @@ declare namespace chrome.cast.media { queueUpdateItemsRequest: chrome.cast.media.QueueUpdateItemsRequest, successCallback: Function, errorCallback: (error: chrome.cast.Error) => void - ): void + ): void; } diff --git a/chrome/index.d.ts b/chrome/index.d.ts index ed9e3e9ef2..3257432db2 100644 --- a/chrome/index.d.ts +++ b/chrome/index.d.ts @@ -1272,7 +1272,7 @@ declare namespace chrome.cookies { * Permissions: "debugger" */ // TODO: Uncomment when Microsoft/TypeScript#8312 is merged in -// declare module chrome.debugger { +// declare namespace chrome.debugger { // /** Debuggee identifier. Either tabId or extensionId must be specified */ // interface Debuggee { // /** Optional. The id of the tab which you intend to debug. */ @@ -5517,7 +5517,7 @@ declare namespace chrome.storage { get(callback: (items: { [key: string]: any }) => void): void; /** * Gets one or more items from storage. - * @param keys A single key to get, list of keys to get, or a dictionary specifying default values. + * @param keys A single key to get, list of keys to get, or a dictionary specifying default values. * An empty list or object will return an empty result object. Pass in null to get the entire contents of storage. * @param callback Callback with storage items, or on failure (in which case runtime.lastError will be set). * Parameter items: Object with items in their key-value mappings. diff --git a/chui/chui-tests.ts b/chui/chui-tests.ts index 5e1e549dc7..79e3f38872 100644 --- a/chui/chui-tests.ts +++ b/chui/chui-tests.ts @@ -12,11 +12,11 @@ $(function() { $.forEach([1,2,3], function(ctx: number, idx: number) { return idx; }); - + var isiPhone = $.isiPhone; var isAndroid = $.isAndroid; var isWinPhone = $.isWinPhone; - + $('li').on($.eventStart, function(){ return; }); @@ -29,7 +29,7 @@ $(function() { $('li').on($.eventCancel, function(){ return; }); - + var browserVersion = $.browserVersion(); $.UIHideNavBar(); $.UIShowNavBar(); @@ -65,7 +65,7 @@ $(function() { $.UIBindData("#myBoundData"); $.UIUnBindData(); $.UIUnBindData("#myBoundData"); - + /** * Test plugin methods: */ @@ -93,5 +93,5 @@ $(function() { $('#myStepper').UIStepper({ start: 1, end: 10, defaultValue: 5 }); $('#mySwitch').UISwitch(); $('#myRangeControl').UIRange(); - + }); \ No newline at end of file diff --git a/chui/index.d.ts b/chui/index.d.ts index 4bf597e869..766436a661 100644 --- a/chui/index.d.ts +++ b/chui/index.d.ts @@ -1078,7 +1078,7 @@ interface JQueryStatic { data: { repeaterName?: any; }; - + /** * Use this value to output an index value in a template repeater. */ @@ -1371,7 +1371,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false. * @return JQuery */ - on(events: string | ChUIEventInterface, data : any, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery; + on(events: string | ChUIEventInterface, data: any, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery; /** * Attach an event handler function for one or more events to the selected elements. * diff --git a/chunked-dc/index.d.ts b/chunked-dc/index.d.ts index 2b38bef438..ec194b2a75 100644 --- a/chunked-dc/index.d.ts +++ b/chunked-dc/index.d.ts @@ -21,7 +21,7 @@ declare namespace chunkedDc { } interface ChunkerStatic { - new(id: number, message: Uint8Array, chunkSize: number): Chunker + new(id: number, message: Uint8Array, chunkSize: number): Chunker; } /** unchunker.ts **/ @@ -35,14 +35,14 @@ declare namespace chunkedDc { } interface UnchunkerStatic { - new(): Unchunker + new(): Unchunker; } /** main.ts **/ interface Standalone { - Chunker: ChunkerStatic, - Unchunker: UnchunkerStatic, + Chunker: ChunkerStatic; + Unchunker: UnchunkerStatic; } } diff --git a/ckeditor/index.d.ts b/ckeditor/index.d.ts index f95875501c..bbb5f1c9b6 100644 --- a/ckeditor/index.d.ts +++ b/ckeditor/index.d.ts @@ -718,7 +718,7 @@ declare namespace CKEDITOR { linkShowAdvancedTab?: boolean; linkShowTargetTab?: boolean; - magicline_color?: string + magicline_color?: string; magicline_everywhere?: boolean; magicline_holdDistance?: number; magicline_keystrokeNext?: number; @@ -966,7 +966,7 @@ declare namespace CKEDITOR { editables: any; editor: CKEDITOR.editor; element: CKEDITOR.dom.element; - focusedEditable: CKEDITOR.plugins.widget.nestedEditable + focusedEditable: CKEDITOR.plugins.widget.nestedEditable; id: number; init: Function; inited: boolean; @@ -1042,10 +1042,10 @@ declare namespace CKEDITOR { } interface IMenuItemDefinition { - label:string, - command:string, - group:string, - order:number + label: string; + command: string; + group: string; + order: number; } class editor extends event { @@ -1085,13 +1085,13 @@ declare namespace CKEDITOR { addFeature(feature: feature): boolean; addMenuGroup(name: string, order?: number): void; addMenuItem(name: string, definition?: IMenuItemDefinition): void; - addMenuItems(definitions: {[id:string]:IMenuItemDefinition}): void; + addMenuItems(definitions: {[id: string]: IMenuItemDefinition}): void; addMode(mode: string, exec: () => void): void; addRemoveFormatFilter(func: Function): void; applyStyle(style: style): void; attachStyleStateChange(style: style, callback: Function): void; checkDirty(): boolean; - commands:any; + commands: any; createFakeElement(realElement: Object, className: Object, realElementType: Object, isResizable: Object): void; createFakeParserElement(realElement: Object, className: Object, realElementType: Object, isResizable: Object): void; createRange(): dom.range; @@ -1255,9 +1255,9 @@ declare namespace CKEDITOR { } interface buttonDefinition { - label : string; - command : string; - toolbar : string; + label: string; + command: string; + toolbar: string; } interface template { @@ -1323,24 +1323,24 @@ declare namespace CKEDITOR { } class environmentConfig { - air : boolean; - chrome : boolean; - cssClass : string; - edge : boolean; - gecko : boolean; - hc : boolean; - hidpi : boolean; - iOS : boolean; - ie : boolean; - isCompatible : boolean; - mac : boolean; - needsBrFiller : boolean; - needsNbspFiller : boolean; - quirks : boolean; - safari : boolean; - version : number; - webkit : boolean; - secure( ) : boolean; + air: boolean; + chrome: boolean; + cssClass: string; + edge: boolean; + gecko: boolean; + hc: boolean; + hidpi: boolean; + iOS: boolean; + ie: boolean; + isCompatible: boolean; + mac: boolean; + needsBrFiller: boolean; + needsNbspFiller: boolean; + quirks: boolean; + safari: boolean; + version: number; + webkit: boolean; + secure( ): boolean; } namespace ui { @@ -1826,7 +1826,7 @@ declare namespace CKEDITOR { namespace tools { var callFunction: Function; - function enableHtml5Elements(doc: Object, withAppend? : Boolean) : void; + function enableHtml5Elements(doc: Object, withAppend?: Boolean): void; } diff --git a/classnames/index.d.ts b/classnames/index.d.ts index 22d9803399..6996677038 100644 --- a/classnames/index.d.ts +++ b/classnames/index.d.ts @@ -18,5 +18,5 @@ interface ClassNamesFn { declare var classNames: ClassNamesFn; declare module "classnames" { - export = classNames + export = classNames; } diff --git a/cldrjs/cldr.js-supplemental.d.ts b/cldrjs/cldr.js-supplemental.d.ts index 3b25e21962..503e22b884 100644 --- a/cldrjs/cldr.js-supplemental.d.ts +++ b/cldrjs/cldr.js-supplemental.d.ts @@ -19,8 +19,8 @@ declare namespace cldr { interface SupplementalStatic { timeData: TimeDataStatic; weekData: WeekDataStatic; - (path:string): any; - (paths:string[]): any; + (path: string): any; + (paths: string[]): any; } interface CldrStatic { diff --git a/cldrjs/index.d.ts b/cldrjs/index.d.ts index 70a7c1c753..b9f8ff7733 100644 --- a/cldrjs/index.d.ts +++ b/cldrjs/index.d.ts @@ -133,7 +133,7 @@ declare namespace self { * * @returns {any} The cldr member. */ - get(path: string) : any; + get(path: string): any; /** * @name get @@ -257,15 +257,15 @@ declare namespace self { } interface CldrStatic { - on(event:string, listener:(path:string, value:any) => void): void; - once(event:string, listener:(path:string, value:any) => void): void; - off(event:string, listener:(path:string, value:any) => void): void; + on(event: string, listener: (path: string, value: any) => void): void; + once(event: string, listener: (path: string, value: any) => void): void; + off(event: string, listener: (path: string, value: any) => void): void; } interface CldrFactory { - on(event:string, listener:(path:string, value:any) => void): void; - once(event:string, listener:(path:string, value:any) => void): void; - off(event:string, listener:(path:string, value:any) => void): void; + on(event: string, listener: (path: string, value: any) => void): void; + once(event: string, listener: (path: string, value: any) => void): void; + off(event: string, listener: (path: string, value: any) => void): void; } } diff --git a/clone/index.d.ts b/clone/index.d.ts index 07fb70d94d..db2ae7c3a3 100644 --- a/clone/index.d.ts +++ b/clone/index.d.ts @@ -21,4 +21,4 @@ declare namespace clone { function clonePrototype(obj: T): T; } -export = clone +export = clone; diff --git a/co-views/index.d.ts b/co-views/index.d.ts index f5b8c3d3e0..6ab233a04a 100644 --- a/co-views/index.d.ts +++ b/co-views/index.d.ts @@ -9,7 +9,7 @@ declare namespace CoViews { * Pass views `dir` and `opts` to return a render function. */ export interface Views { - (dir?: string, opts?: CoViewsOptions): { (view: string, locals?: Object): any } + (dir?: string, opts?: CoViewsOptions): { (view: string, locals?: Object): any }; } export interface CoViewsOptions { @@ -17,32 +17,32 @@ declare namespace CoViews { /** * default extname */ - ext?: string, + ext?: string; /** * default extname */ - default?: string, + default?: string; /** * engine map */ - map?: Object, + map?: Object; /** * proxy partials */ - partials?: Object, + partials?: Object; /** * cache compiled templates */ - cache?: boolean, + cache?: boolean; /** * common locals data */ - locals?: Object + locals?: Object; } } diff --git a/codemirror/codemirror-runmode.d.ts b/codemirror/codemirror-runmode.d.ts index 116c092cd2..45985ccff8 100644 --- a/codemirror/codemirror-runmode.d.ts +++ b/codemirror/codemirror-runmode.d.ts @@ -18,5 +18,5 @@ declare namespace CodeMirror { * tokens will be converted to span elements as in an editor, * and inserted into the node (through innerHTML). */ - function runMode(text: string, modespec: any, callback: (HTMLElement | ((text: string, style: string) => void)), options? : { tabSize?: number; state?: any; }): void; + function runMode(text: string, modespec: any, callback: (HTMLElement | ((text: string, style: string) => void)), options?: { tabSize?: number; state?: any; }): void; } diff --git a/codemirror/index.d.ts b/codemirror/index.d.ts index 83c45e93ab..699f00c0f8 100644 --- a/codemirror/index.d.ts +++ b/codemirror/index.d.ts @@ -10,7 +10,7 @@ declare function CodeMirror(host: HTMLElement, options?: CodeMirror.EditorConfig declare function CodeMirror(callback: (host: HTMLElement) => void , options?: CodeMirror.EditorConfiguration): CodeMirror.Editor; declare namespace CodeMirror { - export var Doc : CodeMirror.DocConstructor; + export var Doc: CodeMirror.DocConstructor; export var Pos: CodeMirror.PositionConstructor; export var Pass: any; @@ -302,7 +302,7 @@ declare namespace CodeMirror { If you need to perform a lot of operations on a CodeMirror instance, you can call this method with a function argument. It will call the function, buffering up all changes, and only doing the expensive update after the function returns. This can be a lot faster. The return value from this method will be the return value of your function. */ - operation(fn: ()=> T): T; + operation(fn: () => T): T; /** Adjust the indentation of the given line. The second argument (which defaults to "smart") may be one of: @@ -665,7 +665,7 @@ declare namespace CodeMirror { (line: number, ch?: number): Position; } - interface Range{ + interface Range { from: CodeMirror.Position; to: CodeMirror.Position; } @@ -800,7 +800,7 @@ declare namespace CodeMirror { /** Indicates how quickly CodeMirror should poll its input textarea for changes(when focused). Most input is captured by events, but some things, like IME input on some browsers, don't generate events that allow CodeMirror to properly detect it. Thus, it polls. Default is 100 milliseconds. */ - pollInterval?: number + pollInterval?: number; /** By default, CodeMirror will combine adjacent tokens into a single span if they have the same class. This will result in a simpler DOM tree, and thus perform better. With some kinds of styling(such as rounded corners), @@ -1048,18 +1048,18 @@ declare namespace CodeMirror { /** * Trigger a reindent whenever one of the characters in the string is typed. */ - electricChars?: string + electricChars?: string; /** * Trigger a reindent whenever the regex matches the part of the line before the cursor. */ - electricinput?: RegExp + electricinput?: RegExp; } /** * A function that, given a CodeMirror configuration object and an optional mode configuration object, returns a mode object. */ interface ModeFactory { - (config: CodeMirror.EditorConfiguration, modeOptions?: any): Mode + (config: CodeMirror.EditorConfiguration, modeOptions?: any): Mode; } /** @@ -1086,7 +1086,7 @@ declare namespace CodeMirror { * Both modes get to parse all of the text, but when both assign a non-null style to a piece of code, the overlay wins, unless * the combine argument was true and not overridden, or state.overlay.combineTokens was true, in which case the styles are combined. */ - function overlayMode(base: Mode, overlay: Mode, combine?: boolean): Mode + function overlayMode(base: Mode, overlay: Mode, combine?: boolean): Mode; /** * async specifies that the lint process runs asynchronously. hasGutters specifies that lint errors should be displayed in the CodeMirror diff --git a/colors/index.d.ts b/colors/index.d.ts index 50e960c416..95b9e774b2 100644 --- a/colors/index.d.ts +++ b/colors/index.d.ts @@ -48,7 +48,7 @@ declare module "colors" { } namespace e { - export function setTheme(theme:any): void; + export function setTheme(theme: any): void; export var enabled: boolean; diff --git a/commander/index.d.ts b/commander/index.d.ts index 15a3246710..c26287470e 100644 --- a/commander/index.d.ts +++ b/commander/index.d.ts @@ -16,12 +16,12 @@ declare namespace commander { * @param {String} name * @api public */ - new (name?:string):ICommand; + new (name?: string): ICommand; } interface ICommand extends NodeJS.EventEmitter { args: string[]; - _args: { required:boolean; name: string; }[]; + _args: { required: boolean; name: string; }[]; /** * Add command `name`. @@ -72,7 +72,7 @@ declare namespace commander { * @return {Command} the new command * @api public */ - command(name:string, desc?:string, opts?: any):ICommand; + command(name: string, desc?: string, opts?: any): ICommand; /** * Set / get the arguments usage `str`. @@ -85,7 +85,7 @@ declare namespace commander { * * @api private */ - addImplicitHelpCommand():void; + addImplicitHelpCommand(): void; /** * Parse expected `args`. @@ -96,7 +96,7 @@ declare namespace commander { * @return {Command} for chaining * @api public */ - parseExpectedArgs(args:string[]):ICommand; + parseExpectedArgs(args: string[]): ICommand; /** * Register callback `fn` for the command. @@ -114,7 +114,7 @@ declare namespace commander { * @return {Command} for chaining * @api public */ - action(fn:(...args:any[])=>void):ICommand; + action(fn: (...args: any[]) => void): ICommand; /** * Define option with `flags`, `description` and optional @@ -164,8 +164,8 @@ declare namespace commander { * @return {Command} for chaining * @api public */ - option(flags:string, description?:string, fn?:((arg1:any, arg2:any)=>void)|RegExp, defaultValue?:any):ICommand; - option(flags:string, description?:string, defaultValue?:any):ICommand; + option(flags: string, description?: string, fn?: ((arg1: any, arg2: any) => void)|RegExp, defaultValue?: any): ICommand; + option(flags: string, description?: string, defaultValue?: any): ICommand; /** * Allow unknown options on the command line. @@ -174,7 +174,7 @@ declare namespace commander { * for unknown options. * @api public */ - allowUnknownOption(arg?: boolean):ICommand; + allowUnknownOption(arg?: boolean): ICommand; /** * Parse `argv`, settings options and invoking commands when defined. @@ -183,7 +183,7 @@ declare namespace commander { * @return {Command} for chaining * @api public */ - parse(argv:string[]):ICommand; + parse(argv: string[]): ICommand; /** * Execute a sub-command executable. @@ -193,7 +193,7 @@ declare namespace commander { * @param {Array} unknown * @api private */ - executeSubCommand(argv:string[], args:string[], unknown:string[]):any; /* child_process.ChildProcess */ + executeSubCommand(argv: string[], args: string[], unknown: string[]): any; /* child_process.ChildProcess */ /** * Normalize `args`, splitting joined short flags. For example @@ -204,7 +204,7 @@ declare namespace commander { * @return {Array} * @api private */ - normalize(args:string[]):string[]; + normalize(args: string[]): string[]; /** * Parse command `args`. @@ -217,7 +217,7 @@ declare namespace commander { * @return {Command} for chaining * @api private */ - parseArgs(args:string[], unknown:string[]):ICommand; + parseArgs(args: string[], unknown: string[]): ICommand; /** * Return an option matching `arg` if any. @@ -226,7 +226,7 @@ declare namespace commander { * @return {Option} * @api private */ - optionFor(arg:string):IOption; + optionFor(arg: string): IOption; /** * Parse options from `argv` returning `argv` @@ -236,7 +236,7 @@ declare namespace commander { * @return {Array} * @api public */ - parseOptions(argv:string[]): {args:string[]; unknown:string[];}; + parseOptions(argv: string[]): {args: string[]; unknown: string[]}; /** * Return an object containing options as key-value pairs @@ -244,7 +244,7 @@ declare namespace commander { * @return {Object} * @api public */ - opts():any; + opts(): any; /** * Argument `name` is missing. @@ -252,7 +252,7 @@ declare namespace commander { * @param {String} name * @api private */ - missingArgument(name:string):void; + missingArgument(name: string): void; /** * `Option` is missing an argument, but received `flag` or nothing. @@ -261,7 +261,7 @@ declare namespace commander { * @param {String} flag * @api private */ - optionMissingArgument(option:{flags:string;}, flag?:string):void; + optionMissingArgument(option: {flags: string}, flag?: string): void; /** * Unknown option `flag`. @@ -269,7 +269,7 @@ declare namespace commander { * @param {String} flag * @api private */ - unknownOption(flag:string):void; + unknownOption(flag: string): void; /** * Set the program version to `str`. @@ -282,7 +282,7 @@ declare namespace commander { * @return {Command} for chaining * @api public */ - version(str:string, flags?:string):ICommand; + version(str: string, flags?: string): ICommand; /** * Set the description to `str`. @@ -291,8 +291,8 @@ declare namespace commander { * @return {String|Command} * @api public */ - description(str:string):ICommand; - description():string; + description(str: string): ICommand; + description(): string; /** * Set an alias for the command @@ -301,8 +301,8 @@ declare namespace commander { * @return {String|Command} * @api public */ - alias(alias:string):ICommand; - alias():string; + alias(alias: string): ICommand; + alias(): string; /** * Set / get the command usage `str`. @@ -311,8 +311,8 @@ declare namespace commander { * @return {String|Command} * @api public */ - usage(str:string):ICommand; - usage():string; + usage(str: string): ICommand; + usage(): string; /** * Get the name of the command @@ -321,7 +321,7 @@ declare namespace commander { * @return {String|Command} * @api public */ - name():string; + name(): string; /** * Return the largest option length. @@ -329,7 +329,7 @@ declare namespace commander { * @return {Number} * @api private */ - largestOptionLength():number; + largestOptionLength(): number; /** * Return help for options. @@ -337,7 +337,7 @@ declare namespace commander { * @return {String} * @api private */ - optionHelp():string; + optionHelp(): string; /** * Return command help documentation. @@ -345,7 +345,7 @@ declare namespace commander { * @return {String} * @api private */ - commandHelp():string; + commandHelp(): string; /** * Return program help documentation. @@ -353,21 +353,21 @@ declare namespace commander { * @return {String} * @api private */ - helpInformation():string; + helpInformation(): string; /** * Output help information for this command * * @api public */ - outputHelp():void; + outputHelp(): void; /** * Output help information and exit. * * @api public */ - help():void; + help(): void; } interface IOptionStatic { @@ -378,17 +378,17 @@ declare namespace commander { * @param {String} description * @api public */ - new (flags:string, description?:string):IOption; + new (flags: string, description?: string): IOption; } interface IOption { - flags:string; - required:boolean; - optional:boolean; - bool:boolean; - short?:string; - long:string; - description:string; + flags: string; + required: boolean; + optional: boolean; + bool: boolean; + short?: string; + long: string; + description: string; /** * Return option name. @@ -396,7 +396,7 @@ declare namespace commander { * @return {String} * @api private */ - name():string; + name(): string; /** * Check if `arg` matches the short or long flag. @@ -405,7 +405,7 @@ declare namespace commander { * @return {Boolean} * @api private */ - is(arg:string):boolean; + is(arg: string): boolean; } interface IExportedCommand extends ICommand { diff --git a/commangular/commangular-mock.d.ts b/commangular/commangular-mock.d.ts index 134e4d0d1e..5ff1295ade 100644 --- a/commangular/commangular-mock.d.ts +++ b/commangular/commangular-mock.d.ts @@ -3,34 +3,34 @@ // Definitions by: Hiraash Thawfeek // Definitions: https://github.com/borisyankov/DefinitelyTyped -declare module commangular { - +declare namespace commangular { + /////////////////////////////////////////////////////////////////////////// // Commangular Static // see http://commangular.org/docs/#commangular-namespace /////////////////////////////////////////////////////////////////////////// interface ICommAngularStatic { - + /** * Mock dispatch function for testing commands. */ dispatch( ec: ICommandCall, callback: Function ): void; } - + interface ICommandCall { /** * Name of the command that needs to * execute */ command: string; - + /** * Data that needs to be passed to the command */ data?: any; } - - + + /** * Object type expected to be passed into the callback function * of the dispatch() function @@ -40,26 +40,26 @@ declare module commangular { * The data that was passed into the command * @param key The property name that is in the object that was passed */ - dataPassed( key : string ) : any; - + dataPassed(key: string): any; + /** * The data that was returned by the command * @param key The result key that was defined in the command. If no result * was defined use 'lastResult' as the key */ - resultKey( key: string ): any; - + resultKey(key: string): any; + /** * Indicates if the command execution was cancelled. */ - canceled( ): boolean; - + canceled(): boolean; + /** * Indicates if the command was executed???? */ - commandExecuted( ): boolean; + commandExecuted(): boolean; } - + } @@ -69,5 +69,5 @@ declare module commangular { * @param callback The function that will be called upon the completion of the command * function should expecte an ICommandInfo paramter. */ -declare function dispatch( ec: commangular.ICommandCall, callback: Function ): void; +declare function dispatch( ec: commangular.ICommandCall, callback: Function ): void; diff --git a/commangular/index.d.ts b/commangular/index.d.ts index 06126ac64f..8500b5d961 100644 --- a/commangular/index.d.ts +++ b/commangular/index.d.ts @@ -7,7 +7,7 @@ declare var commangular: commangular.ICommAngularStatic; -declare module commangular { +declare namespace commangular { /////////////////////////////////////////////////////////////////////////// // Commangular Static @@ -23,8 +23,8 @@ declare module commangular { * It has to be something that implements ICommand. Same as angular syntax * @param commandConfig It's and object with paramaters to configure the command execution. */ - create (commandName: string, commandFunction: Function, commandConfig?:ICommandConfig) : void; - command (commandName: string, commandFunction: Function, commandConfig?:ICommandConfig) : void; + create (commandName: string, commandFunction: Function, commandConfig?: ICommandConfig): void; + command (commandName: string, commandFunction: Function, commandConfig?: ICommandConfig): void; /** * This function allows you to hijack the execution before or after and @@ -48,7 +48,7 @@ declare module commangular { * @param order You can chain any number of interceptors to the same command, so if you need to executed * the interceptor in a specific order you can indicate it here. An order of 0 is assigned by default. */ - aspect ( aspectDescriptor: string, aspectFunction: ICommand, order: number ) : void; + aspect ( aspectDescriptor: string, aspectFunction: ICommand, order: number ): void; /** * Event aspects work the same way command aspects do, but they intercept all the command groups instead, @@ -68,27 +68,27 @@ declare module commangular { * @param order You can chain any number of interceptors to the same command, so if you need to executed * the interceptor in a specific order you can indicate it here. An order of 0 is assigned by default. */ - eventAspect( aspectDescriptor: string, aspectFunction: ICommand, order: number ) : void; + eventAspect( aspectDescriptor: string, aspectFunction: ICommand, order: number ): void; /** * TBD */ - resolver( commandName: string, resolverFunction : Function ) : void; + resolver( commandName: string, resolverFunction: Function ): void; /** * Clears all commands and aspects registered with commangular. */ - reset() : void; + reset(): void; /** * Can be used to enable/disable debug */ - debug( enableDebug : boolean ) : void; + debug( enableDebug: boolean ): void; /** * TBD */ - build() : void; + build(): void; } /** @@ -100,24 +100,24 @@ declare module commangular { * This function is what gets called when the command executes. * It can take parameters in as injected by angular */ - execute() : any; + execute(): any; } - interface IResultCommand extends ICommand{ + interface IResultCommand extends ICommand { /** * Is executed after the execute method and the interception chain and can receive * the result from the execute method of the same command. * * @param result Value/object returned by the execution. */ - onResult ( result: any ) : void; + onResult ( result: any ): void; /** * Is executed when the executed method ends with an error. Can receive the error throw by the execute method. * @param error The error that occured during execution */ - onError ( error: Error ) : void; + onError ( error: Error ): void; } /** @@ -129,7 +129,7 @@ declare module commangular { /** * By defualt the result of the command will be found in this property */ - lastResult : any; + lastResult: any; } /** @@ -142,7 +142,7 @@ declare module commangular { * key passed in 'resultKey'. It has to be a string. It means that after the execution of this * commands you will be able to inject on the next command using that key and the result of the command will be injected. */ - resultKey : string; + resultKey: string; } /** @@ -158,7 +158,7 @@ declare module commangular { * This function lets you map a even name to a command sequence * @param eventName An event that will be watched by commangular */ - mapTo( eventName: string ) : ICommAngularDescriptor; + mapTo( eventName: string ): ICommAngularDescriptor; /** * Used along with mapTo function. Creates a sequence of commands that @@ -196,7 +196,7 @@ declare module commangular { * @param eventName Name of the even that will trigger a command sequence * @param data Data of any type that will be passed to the command. */ - dispatch( eventName: string, data?: any ) : ng.IPromise; + dispatch( eventName: string, data?: any ): ng.IPromise; } interface ICommAngularDescriptor { @@ -257,7 +257,7 @@ declare module commangular { /** * Extending the angular rootScope to include the dispatch function in all scopes. */ -declare module angular { +declare namespace angular { interface IRootScopeService { @@ -266,7 +266,7 @@ declare module angular { * @param eventName Name of the even that will trigger a command sequence * @param data Data of any type that will be passed to the command. */ - dispatch( eventName: string, data?: any ) : ng.IPromise; + dispatch( eventName: string, data?: any ): ng.IPromise; } diff --git a/common-tags/index.d.ts b/common-tags/index.d.ts index a9f8ddeffd..b88e02b1f3 100644 --- a/common-tags/index.d.ts +++ b/common-tags/index.d.ts @@ -8,8 +8,8 @@ declare module 'common-tags' { type TemplateTransformer = { onSubstitution?: (substitution: string, resultSoFar: string) => string; - onEndResult?: (endResult : string) => string; - } + onEndResult?: (endResult: string) => string; + }; /* Built-in Tags */ export var commaLists: TemplateTag; diff --git a/commonmark/index.d.ts b/commonmark/index.d.ts index bba8cd7e36..bc5ecb4011 100644 --- a/commonmark/index.d.ts +++ b/commonmark/index.d.ts @@ -34,10 +34,10 @@ declare namespace commonmark { } export interface ListData { - type?: string, - tight?: boolean, - delimiter?: string, - bulletChar?: string + type?: string; + tight?: boolean; + delimiter?: string; + bulletChar?: string; } export class Node { diff --git a/compose-function/index.d.ts b/compose-function/index.d.ts index a77317c48c..05d8ed70f4 100644 --- a/compose-function/index.d.ts +++ b/compose-function/index.d.ts @@ -8,23 +8,23 @@ declare function f( f1: (b: B) => C, f2: (a: A) => B -): (a: A) => C +): (a: A) => C; declare function f( f1: (b: C) => D, f2: (a: B) => C, f3: (a: A) => B -): (a: A) => D +): (a: A) => D; declare function f( f1: (b: D) => E, f2: (a: C) => D, f3: (a: B) => C, f4: (a: A) => B -): (a: A) => E +): (a: A) => E; // Minimal typing for more than 4 parameters declare function f( f1: (a: any) => Result, ...functions: Function[] -): (a: any) => Result +): (a: any) => Result; export = f; diff --git a/compression/index.d.ts b/compression/index.d.ts index 5099a3fb1b..048e77bf6a 100644 --- a/compression/index.d.ts +++ b/compression/index.d.ts @@ -41,7 +41,7 @@ declare namespace e { * See https://github.com/expressjs/compression#filter regarding the usage. */ filter?: Function; - + /** * See https://nodejs.org/api/zlib.html#zlib_class_options regarding the usage. */ diff --git a/concaveman/index.d.ts b/concaveman/index.d.ts index a5b55c8fa3..4c10ca6928 100644 --- a/concaveman/index.d.ts +++ b/concaveman/index.d.ts @@ -6,7 +6,7 @@ declare module "concaveman" { /** * A very fast 2D concave hull algorithm in JavaScript (generates a general outline of a point set). - * + * * @name concaveman * @param {Array>} points is an array of [x, y] points. * @param {number} [concavity=2] is a relative measure of concavity. 1 results in a relatively detailed shape, Infinity results in a convex hull. You can use values lower than 1, but they can produce pretty crazy shapes. @@ -15,7 +15,7 @@ declare module "concaveman" { * @example * var points = [[10, 20], [30, 12.5], ...]; * var polygon = concaveman(points); - * + * * //=hull */ function concaveman(points: number[][], concavity?: number, lengthThreshold?: number): number[][]; diff --git a/confit/index.d.ts b/confit/index.d.ts index b78bd88727..9baba80806 100644 --- a/confit/index.d.ts +++ b/confit/index.d.ts @@ -5,7 +5,7 @@ declare module "confit" { interface ProtocolsSetPrivate { - [protocol:string] : (value:any, callback?:any) => void + [protocol: string]: (value: any, callback?: any) => void; } interface ConfigStore { @@ -17,10 +17,10 @@ declare module "confit" { type options = { basedir: string; protocols: ProtocolsSetPrivate - } + }; interface ConfigFactory { - create(callback: (err: any, config: ConfigStore) => any) : void; + create(callback: (err: any, config: ConfigStore) => any): void; addOverride(filepathOrSettingsObj: string|Object): this; addDefault(filepathOrSettingsObj: string|Object): this; } diff --git a/connect-livereload/connect-livereload-tests.ts b/connect-livereload/connect-livereload-tests.ts index 26a09a2983..53d495dbec 100644 --- a/connect-livereload/connect-livereload-tests.ts +++ b/connect-livereload/connect-livereload-tests.ts @@ -28,13 +28,13 @@ app.use(livereload({ // include all urls by default include: [/.*/], - + // this function is used to determine if the content of `res.write` or `res.end` is html. html: function (str) { if (!str) return false; return /<[:_-\w\s\!\/\=\"\']+>/i.test(str); }, - + // rules are provided to find the place where the snippet should be inserted. // the main problem is that on the server side it can be tricky to determine if a string will be valid html on the client. // the function `fn` of the first `match` is executed like this `body.replace(rule.match, rule.fn);` @@ -49,13 +49,13 @@ app.use(livereload({ match: /<\!DOCTYPE.+?>/i, fn: append }], - + // port where the script is loaded port: 35729, - + // location where the script is provided (not by connect-livereload). Change this e.g. when serving livereload with a proxy. src: "http://localhost:35729/livereload.js?snipver=1", - + // Set this option to `true` to set `req.headers['accept-encoding']` to 'identity' (disabling compression) disableCompression: false })); diff --git a/connect/connect-tests.ts b/connect/connect-tests.ts index 627017a7e4..4889e8cb8c 100644 --- a/connect/connect-tests.ts +++ b/connect/connect-tests.ts @@ -15,7 +15,7 @@ app.use((err: Error, req: http.IncomingMessage, res: http.ServerResponse, next: if (err) { return res.end(`Error: ${err}`); } - + next(); }); diff --git a/constant-case/constant-case-tests.ts b/constant-case/constant-case-tests.ts index ddb5c57e66..000ea6a1c0 100644 --- a/constant-case/constant-case-tests.ts +++ b/constant-case/constant-case-tests.ts @@ -5,4 +5,4 @@ console.log(constantCase('string')); // => "STRING" console.log(constantCase('PascalCase')); // => "PASCAL_CASE" console.log(constantCase('myString', 'tr')); // => "MY_STRİNG" - + diff --git a/consul/index.d.ts b/consul/index.d.ts index b154eeccb3..62eb252159 100644 --- a/consul/index.d.ts +++ b/consul/index.d.ts @@ -87,7 +87,7 @@ declare namespace Consul { update: { (opts: Acl.UpdateOptions, callback: Callback): void; (opts: Acl.UpdateOptions): Thenable; - } + }; /** * Destroys a given token diff --git a/cookiejs/index.d.ts b/cookiejs/index.d.ts index ba7f0ee4f1..eb611d3c52 100644 --- a/cookiejs/index.d.ts +++ b/cookiejs/index.d.ts @@ -9,42 +9,42 @@ export = cookie; export as namespace cookie; -declare function cookie(key : string, fallback?: string) : string; -declare function cookie(keys : string[], fallback?: string) : string; +declare function cookie(key: string, fallback?: string): string; +declare function cookie(keys: string[], fallback?: string): string; declare namespace cookie { /** * Create a cookie. The value will automatically be escaped. */ - export function set(key : string, value : string, options? : any) : void; + export function set(key: string, value: string, options?: any): void; /** * Set several cookies at once */ - export function set(obj : any, options? : any) : void; + export function set(obj: any, options?: any): void; /** * Remove cookies */ - export function remove(key : string) : void; - export function remove(keys : string[]) : void; - export function remove(...args : string[]) : void; + export function remove(key: string): void; + export function remove(keys: string[]): void; + export function remove(...args: string[]): void; /** * Remove all cookies */ - export function empty() : void; + export function empty(): void; /** * Retrieve the value of the cookie */ - export function get(key : string, fallback?: string) : string; + export function get(key: string, fallback?: string): string; /** * Retrieve values of several cookies */ - export function get(keys : string[], fallback?: string) : any; + export function get(keys: string[], fallback?: string): any; /** * Get all currently saved cookies */ - export function all() : any; + export function all(): any; /** * Test if cookies are enabled */ - export function enabled() : boolean; + export function enabled(): boolean; } diff --git a/cookies/cookies-tests.ts b/cookies/cookies-tests.ts index 21e81b49de..861d9ef037 100644 --- a/cookies/cookies-tests.ts +++ b/cookies/cookies-tests.ts @@ -13,11 +13,11 @@ const server = http.createServer((req, res) => { cookies // set a regular cookie .set("unsigned", "foo", { httpOnly: false }) - - // set a signed cookie + + // set a signed cookie .set("signed", "bar", { signed: true }) - - // mimic a signed cookie, but with a bogus signature + + // mimic a signed cookie, but with a bogus signature .set("tampered", "baz") .set("tampered.sig", "bogus") diff --git a/cookies/index.d.ts b/cookies/index.d.ts index 3f46563cb6..db42e2c6ed 100644 --- a/cookies/index.d.ts +++ b/cookies/index.d.ts @@ -6,7 +6,7 @@ /// -import * as http from "http" +import * as http from "http"; declare namespace cookies { interface ICookies { @@ -96,4 +96,4 @@ interface CookiesStatic { declare const cookies: CookiesStatic; -export = cookies +export = cookies; diff --git a/copy-paste/index.d.ts b/copy-paste/index.d.ts index 9b505cb0a5..1994f5a5cc 100644 --- a/copy-paste/index.d.ts +++ b/copy-paste/index.d.ts @@ -10,7 +10,7 @@ export type PasteCallback = (err: Error, content: string) => void; /** * Asynchronously replaces the current contents of the clip board with text. - * + * * @param {T} content Takes either a string, array, object, or readable stream. * @return {T} Returns the same value passed in. */ @@ -18,7 +18,7 @@ export declare function copy(content: T): T; /** * Asynchronously replaces the current contents of the clip board with text. - * + * * @param {T} content Takes either a string, array, object, or readable stream. * @param {CopyCallback} callback will fire when the copy operation is complete. * @return {T} Returns the same value passed in. @@ -28,18 +28,18 @@ export declare function copy(content: T, callback: CopyCallback): T; /** * Synchronously returns the current contents of the system clip board. - * + * * Note: The synchronous version of paste is not always availabled. * An error message is shown if the synchronous version of paste is used on an unsupported platform. * The asynchronous version of paste is always available. - * + * * @return {string} Returns the current contents of the system clip board. */ 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. */ export declare function paste(callback: PasteCallback): void; diff --git a/cordova-ionic/keyboard.d.ts b/cordova-ionic/keyboard.d.ts index 409811f8d2..67a4c78208 100644 --- a/cordova-ionic/keyboard.d.ts +++ b/cordova-ionic/keyboard.d.ts @@ -11,7 +11,7 @@ declare namespace Ionic { * * @param hide */ - hideKeyboardAccessoryBar(hide:boolean): void; + hideKeyboardAccessoryBar(hide: boolean): void; /** * Close the keyboard if it is open. @@ -31,7 +31,7 @@ declare namespace Ionic { * * @param disbale */ - disableScroll(disbale:boolean): void; + disableScroll(disbale: boolean): void; /** * Whether or not the keyboard is currently visible. diff --git a/cordova-plugin-background-mode/index.d.ts b/cordova-plugin-background-mode/index.d.ts index 48a1be08c2..d78e6eea20 100644 --- a/cordova-plugin-background-mode/index.d.ts +++ b/cordova-plugin-background-mode/index.d.ts @@ -51,26 +51,25 @@ interface ICordovaPluginBackgroundModeNotificationItem { /** * The title of the notification displayed in background mode */ - title?: string, + title?: string; /** * The ticker of the notification displayed in background mode */ - ticker?: string, + ticker?: string; /** * The body of the notification displayed in background mode */ - text?: string, + text?: string; /** * Handles if app is coming to foreground when tapping on the notification */ - resume?: boolean, + resume?: boolean; /** * Handles if there is a notification when background is activated */ - silent?: boolean + silent?: boolean; } interface CordovaPlugins { - - backgroundMode: CordovaPluginBackgroundMode + backgroundMode: CordovaPluginBackgroundMode; } \ No newline at end of file diff --git a/cordova-plugin-battery-status/index.d.ts b/cordova-plugin-battery-status/index.d.ts index 9baedc8cb0..6a2c86a2f2 100644 --- a/cordova-plugin-battery-status/index.d.ts +++ b/cordova-plugin-battery-status/index.d.ts @@ -2,9 +2,9 @@ // Project: https://github.com/apache/cordova-plugin-battery-status // Definitions by: Microsoft Open Technologies Inc // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// +// // Copyright (c) Microsoft Open Technologies Inc -// Licensed under the MIT license. +// Licensed under the MIT license. interface Window { onbatterystatus: (type: BatteryStatusEvent) => void; diff --git a/cordova-plugin-camera/index.d.ts b/cordova-plugin-camera/index.d.ts index 48c8f8ae5c..2385520ab3 100644 --- a/cordova-plugin-camera/index.d.ts +++ b/cordova-plugin-camera/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/apache/cordova-plugin-camera // Definitions by: Microsoft Open Technologies Inc // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// +// // Copyright (c) Microsoft Open Technologies Inc // Licensed under the MIT license. @@ -129,13 +129,13 @@ interface CameraPopoverOptions { /** * Direction the arrow on the popover should point. Defined in Camera.PopoverArrowDirection * Matches iOS UIPopoverArrowDirection constants. - * ARROW_UP : 1, + * ARROW_UP : 1, * ARROW_DOWN : 2, * ARROW_LEFT : 4, * ARROW_RIGHT : 8, * ARROW_ANY : 15 */ - arrowDir : number; + arrowDir: number; } declare var Camera: { diff --git a/cordova-plugin-contacts/index.d.ts b/cordova-plugin-contacts/index.d.ts index f0979ba6c2..f0f0705f0a 100644 --- a/cordova-plugin-contacts/index.d.ts +++ b/cordova-plugin-contacts/index.d.ts @@ -41,7 +41,7 @@ interface Contacts { * @param onError Error callback function, invoked when an error occurs. */ pickContact(onSuccess: (contact: Contact) => void, - onError: (error: ContactError) => void): void + onError: (error: ContactError) => void): void; /** * This allows us to use an enumeration when setting the desired fields for the ContactFindOptions. @@ -75,7 +75,7 @@ interface Contacts { streetAddress: "streetAddress", title: "title", urls: "urls" - } + }; } interface ContactProperties { diff --git a/cordova-plugin-device-motion/index.d.ts b/cordova-plugin-device-motion/index.d.ts index ae38803fd2..99e1634dad 100644 --- a/cordova-plugin-device-motion/index.d.ts +++ b/cordova-plugin-device-motion/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/apache/cordova-plugin-device-motion // Definitions by: Microsoft Open Technologies Inc // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// +// // Copyright (c) Microsoft Open Technologies Inc // Licensed under the MIT license. diff --git a/cordova-plugin-device-orientation/index.d.ts b/cordova-plugin-device-orientation/index.d.ts index dcd9654efa..1d99099c89 100644 --- a/cordova-plugin-device-orientation/index.d.ts +++ b/cordova-plugin-device-orientation/index.d.ts @@ -2,12 +2,12 @@ // Project: https://github.com/apache/cordova-plugin-device-orientation // Definitions by: Microsoft Open Technologies Inc // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// +// // Copyright (c) Microsoft Open Technologies Inc -// Licensed under the MIT license. +// Licensed under the MIT license. interface Navigator { - /** + /** * This plugin provides access to the device's compass. The compass is a sensor that detects * the direction or heading that the device is pointed, typically from the top of the device. * It measures the heading in degrees from 0 to 359.99, where 0 is north. @@ -15,7 +15,7 @@ interface Navigator { compass: Compass; } -/** +/** * This plugin provides access to the device's compass. The compass is a sensor that detects * the direction or heading that the device is pointed, typically from the top of the device. * It measures the heading in degrees from 0 to 359.99, where 0 is north. @@ -83,4 +83,4 @@ declare var CompassError: { new(code: number): CompassError; COMPASS_INTERNAL_ERR: number; COMPASS_NOT_SUPPORTED: number -} \ No newline at end of file +}; \ No newline at end of file diff --git a/cordova-plugin-device/index.d.ts b/cordova-plugin-device/index.d.ts index cb75703d1a..87e7c1df38 100644 --- a/cordova-plugin-device/index.d.ts +++ b/cordova-plugin-device/index.d.ts @@ -2,9 +2,9 @@ // Project: https://github.com/apache/cordova-plugin-device // Definitions by: Microsoft Open Technologies Inc // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// +// // Copyright (c) Microsoft Open Technologies Inc -// Licensed under the MIT license +// Licensed under the MIT license /** * This plugin defines a global device object, which describes the device's hardware and software. @@ -31,6 +31,7 @@ interface Device { /** Whether the device is running on a simulator. */ isVirtual: boolean; /** Get the device hardware serial number. */ - serial: string;} + serial: string; +} declare var device: Device; diff --git a/cordova-plugin-dialogs/index.d.ts b/cordova-plugin-dialogs/index.d.ts index 8a4035bf01..ef2b847424 100644 --- a/cordova-plugin-dialogs/index.d.ts +++ b/cordova-plugin-dialogs/index.d.ts @@ -2,13 +2,13 @@ // Project: https://github.com/apache/cordova-plugin-dialogs // Definitions by: Microsoft Open Technologies Inc // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// +// // Copyright (c) Microsoft Open Technologies Inc -// Licensed under the MIT license. +// Licensed under the MIT license. interface Navigator { /** This plugin provides access to some native dialog UI elements. */ - notification: Notification + notification: Notification; } /** This plugin provides access to some native dialog UI elements. */ @@ -27,7 +27,7 @@ interface Notification { buttonName?: string): void; /** * The device plays a beep sound. - * @param times The number of times to repeat the beep. + * @param times The number of times to repeat the beep. */ beep(times: number): void; /** diff --git a/cordova-plugin-email-composer/index.d.ts b/cordova-plugin-email-composer/index.d.ts index 74221b2607..a9f1733bb7 100644 --- a/cordova-plugin-email-composer/index.d.ts +++ b/cordova-plugin-email-composer/index.d.ts @@ -9,25 +9,25 @@ */ interface CordovaPluginEmailComposer { /** Determine if the device is capable to send emails */ - isAvailable(callback:(isAvailable:boolean) => void, scope?:any):void; + isAvailable(callback: (isAvailable: boolean) => void, scope?: any): void; /** Open a pre-filled email draft */ - open(options?:ICordovaPluginEmailComposerOpenOptions, callback?:() => void, scope?:any):void; - openDraft(options?:ICordovaPluginEmailComposerOpenOptions, callback?:() => void, scope?:any):void; + open(options?: ICordovaPluginEmailComposerOpenOptions, callback?: () => void, scope?: any): void; + openDraft(options?: ICordovaPluginEmailComposerOpenOptions, callback?: () => void, scope?: any): void; } interface ICordovaPluginEmailComposerOpenOptions { /** An configured email account is required to send emails */ - to?:string[]; - body?:string; - cc?:string[]; - bcc?:string[]; + to?: string[]; + body?: string; + cc?: string[]; + bcc?: string[]; /** Attachments can be either base64 encoded datas, files from the the device storage or assets from within the www folder */ - attachments?:any[]; - subject?:string; + attachments?: any[]; + subject?: string; /** The default value for isHTML is true */ - isHtml?:boolean; + isHtml?: boolean; } interface CordovaPlugins { - email:CordovaPluginEmailComposer; + email: CordovaPluginEmailComposer; } diff --git a/cordova-plugin-file-transfer/index.d.ts b/cordova-plugin-file-transfer/index.d.ts index ad8d9945f5..e1b0d8fd18 100644 --- a/cordova-plugin-file-transfer/index.d.ts +++ b/cordova-plugin-file-transfer/index.d.ts @@ -133,4 +133,4 @@ declare var FileTransferError: { CONNECTION_ERR: number; ABORT_ERR: number; NOT_MODIFIED_ERR: number; -} \ No newline at end of file +}; \ No newline at end of file diff --git a/cordova-plugin-file/index.d.ts b/cordova-plugin-file/index.d.ts index 6aadbf6fad..40a5685aae 100644 --- a/cordova-plugin-file/index.d.ts +++ b/cordova-plugin-file/index.d.ts @@ -368,11 +368,11 @@ interface Cordova { documentsDirectory: string; /* BlackBerry10: Files globally available to all apps */ sharedDirectory: string - } + }; } declare enum LocalFileSystem { - PERSISTENT=0, - TEMPORARY=1 + PERSISTENT = 0, + TEMPORARY = 1 } diff --git a/cordova-plugin-globalization/index.d.ts b/cordova-plugin-globalization/index.d.ts index 5894bd27d0..8b302d7b4f 100644 --- a/cordova-plugin-globalization/index.d.ts +++ b/cordova-plugin-globalization/index.d.ts @@ -2,13 +2,13 @@ // Project: https://github.com/apache/cordova-plugin-globalization // Definitions by: Microsoft Open Technologies Inc // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// +// // Copyright (c) Microsoft Open Technologies Inc // Licensed under the MIT license. interface Navigator { /** This plugin obtains information and performs operations specific to the user's locale and timezone. */ - globalization: Globalization + globalization: Globalization; } /** This plugin obtains information and performs operations specific to the user's locale and timezone. */ @@ -257,4 +257,4 @@ declare var GlobalizationError: { FORMATTING_ERROR: number; PARSING_ERROR: number; PATTERN_ERROR: number; -} \ No newline at end of file +}; \ No newline at end of file diff --git a/cordova-plugin-inappbrowser/index.d.ts b/cordova-plugin-inappbrowser/index.d.ts index d5e221ba42..7f7c310003 100644 --- a/cordova-plugin-inappbrowser/index.d.ts +++ b/cordova-plugin-inappbrowser/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/apache/cordova-plugin-inappbrowser // Definitions by: Microsoft Open Technologies Inc // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// +// // Copyright (c) Microsoft Open Technologies Inc // Licensed under the MIT license. diff --git a/cordova-plugin-keyboard/index.d.ts b/cordova-plugin-keyboard/index.d.ts index 427a5425e5..acdfc80e3c 100644 --- a/cordova-plugin-keyboard/index.d.ts +++ b/cordova-plugin-keyboard/index.d.ts @@ -47,7 +47,7 @@ interface Keyboard { * * @param shrink */ - shrinkView(shrink:boolean): void, + shrinkView(shrink: boolean): void; /** * Hide the keyboard toolbar. @@ -63,7 +63,7 @@ interface Keyboard { * * @param hide */ - hideFormAccessoryBar(hide:boolean): void, + hideFormAccessoryBar(hide: boolean): void; /** * Disable scrolling when the the WebView is shrunk. @@ -78,7 +78,7 @@ interface Keyboard { * * @param disable */ - disableScrollingInShrinkView(disable:boolean): void, + disableScrollingInShrinkView(disable: boolean): void; // Properties @@ -95,7 +95,7 @@ interface Keyboard { * * */ - isVisible: boolean, + isVisible: boolean; /** * Specifies whenether content of page would be autoamtically scrolled to the top of the page when keyboard is hiding. * @@ -108,7 +108,7 @@ interface Keyboard { * * */ - automaticScrollToTopOnHiding: boolean, + automaticScrollToTopOnHiding: boolean; // Events @@ -125,7 +125,7 @@ interface Keyboard { * * */ - onshow():void, + onshow(): void; /** * If defined, this function is fired when keyboard fully closed. * @@ -139,7 +139,7 @@ interface Keyboard { * * */ - onhide():void, + onhide(): void; /** * If defined, this function is fired before keyboard will be shown. * @@ -153,7 +153,7 @@ interface Keyboard { * * */ - onshowing():void, + onshowing(): void; /** * If defined, this function is fired when keyboard is about to be closed. * @@ -167,8 +167,8 @@ interface Keyboard { * * */ - onhiding():void, + onhiding(): void; } -declare var Keyboard:Keyboard; +declare var Keyboard: Keyboard; diff --git a/cordova-plugin-media-capture/index.d.ts b/cordova-plugin-media-capture/index.d.ts index 726c5dac88..ac3c488c0f 100644 --- a/cordova-plugin-media-capture/index.d.ts +++ b/cordova-plugin-media-capture/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/apache/cordova-plugin-media-capture // Definitions by: Microsoft Open Technologies Inc // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// +// // Copyright (c) Microsoft Open Technologies Inc // Licensed under the MIT license @@ -75,7 +75,7 @@ interface MediaFile { /** * Retrieves format information about the media capture file. * @param successCallback Invoked with a MediaFileData object when successful. - * @param errorCallback Invoked if the attempt fails, this function. + * @param errorCallback Invoked if the attempt fails, this function. */ getFormatData( successCallback: (data: MediaFileData) => void, @@ -123,7 +123,7 @@ declare var CaptureError: { CAPTURE_INVALID_ARGUMENT: number; CAPTURE_NO_MEDIA_FILES: number; CAPTURE_NOT_SUPPORTED: number; -} +}; /** Encapsulates audio capture configuration options. */ interface AudioOptions { diff --git a/cordova-plugin-media/index.d.ts b/cordova-plugin-media/index.d.ts index 77f14d4e0b..8b4f71014e 100644 --- a/cordova-plugin-media/index.d.ts +++ b/cordova-plugin-media/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/apache/cordova-plugin-media // Definitions by: Microsoft Open Technologies Inc // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// +// // Copyright (c) Microsoft Open Technologies Inc // Licensed under the MIT license @@ -37,7 +37,7 @@ interface Media { mediaError?: (error: MediaError) => void): void; /** Returns the duration of an audio file in seconds. If the duration is unknown, it returns a value of -1. */ getDuration(): number; - /** + /** * Starts or resumes playing an audio file. * @param iosPlayOptions: iOS options quirks */ diff --git a/cordova-plugin-ms-adal/cordova-plugin-ms-adal-tests.ts b/cordova-plugin-ms-adal/cordova-plugin-ms-adal-tests.ts index 6022aa7bc4..cc58676790 100644 --- a/cordova-plugin-ms-adal/cordova-plugin-ms-adal-tests.ts +++ b/cordova-plugin-ms-adal/cordova-plugin-ms-adal-tests.ts @@ -31,7 +31,7 @@ function test_cordova_plugin_ms_adal() { }); } }); - + // clear TokenCache context.tokenCache.clear(); diff --git a/cordova-plugin-ms-adal/index.d.ts b/cordova-plugin-ms-adal/index.d.ts index 407de6347a..3fc5432610 100644 --- a/cordova-plugin-ms-adal/index.d.ts +++ b/cordova-plugin-ms-adal/index.d.ts @@ -8,38 +8,38 @@ declare namespace Microsoft { namespace ADAL { interface UserInfo { - displayableId: string, - userId: string, - familyName: string, - givenName: string, - identityProvider: string, - passwordChangeUrl: string, - passwordExpiresOn: Date, - uniqueId: string, + displayableId: string; + userId: string; + familyName: string; + givenName: string; + identityProvider: string; + passwordChangeUrl: string; + passwordExpiresOn: Date; + uniqueId: string; } interface TokenCacheItem { - accessToken: string, - authority: string, - clientId: string, - displayableId: string, - expiresOn: Date, - isMultipleResourceRefreshToken: boolean, - resource: string, - tenantId: string, - userInfo: UserInfo + accessToken: string; + authority: string; + clientId: string; + displayableId: string; + expiresOn: Date; + isMultipleResourceRefreshToken: boolean; + resource: string; + tenantId: string; + userInfo: UserInfo; } interface Promise { - then(doneCallBack: () => any, failCallBack?: (message: string) => any):any; + then(doneCallBack: () => any, failCallBack?: (message: string) => any): any; } interface PromiseTokenCacheItems { - then(doneCallBack: (tokenCacheItems: TokenCacheItem[]) => any, failCallBack?: (message: string) => any):any; + then(doneCallBack: (tokenCacheItems: TokenCacheItem[]) => any, failCallBack?: (message: string) => any): any; } class TokenCache { - contextAuthority: string + contextAuthority: string; /** * Clears the cache by deleting all the items. @@ -85,11 +85,11 @@ declare namespace Microsoft { } interface PromiseAuthenticationResult { - then(doneCallBack: (context: AuthenticationResult) => any, failCallBack?: (message: string) => any):any; + then(doneCallBack: (context: AuthenticationResult) => any, failCallBack?: (message: string) => any): any; } interface PromiseAuthenticationContext { - then(doneCallBack: (context: AuthenticationContext) => any, failCallBack?: (message: string) => any):any; + then(doneCallBack: (context: AuthenticationContext) => any, failCallBack?: (message: string) => any): any; } class AuthenticationContext { diff --git a/cordova-plugin-network-information/index.d.ts b/cordova-plugin-network-information/index.d.ts index 4e9457efbd..a985bed9a6 100644 --- a/cordova-plugin-network-information/index.d.ts +++ b/cordova-plugin-network-information/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/apache/cordova-plugin-network-information // Definitions by: Microsoft Open Technologies Inc // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// +// // Copyright (c) Microsoft Open Technologies Inc // Licensed under the MIT license @@ -13,14 +13,14 @@ interface Navigator { */ connection: Connection; // see https://github.com/apache/cordova-plugin-network-information/blob/dev/doc/index.md#api-change - // for + // for network: { /** * This plugin provides an implementation of an old version of the Network Information API. * It provides information about the device's cellular and wifi connection, and whether the device has an internet connection. */ connection: Connection - } + }; } interface Document { @@ -59,4 +59,4 @@ declare var Connection: { CELL_4G: string; CELL: string; NONE: string; -} +}; diff --git a/cordova-plugin-ouralabs/index.d.ts b/cordova-plugin-ouralabs/index.d.ts index 0756b13c6e..56fac6b283 100644 --- a/cordova-plugin-ouralabs/index.d.ts +++ b/cordova-plugin-ouralabs/index.d.ts @@ -18,7 +18,7 @@ declare namespace OuralabsPlugin { WARN: number, ERROR: number, FATAL: number - } + }; /** * Initialize the Ourlabs plugin with the given channel ID string value. diff --git a/cordova-plugin-qrscanner/index.d.ts b/cordova-plugin-qrscanner/index.d.ts index ed5f72f26f..b5e6fa52b3 100644 --- a/cordova-plugin-qrscanner/index.d.ts +++ b/cordova-plugin-qrscanner/index.d.ts @@ -150,7 +150,7 @@ interface QRScannerStatus { * (`AVAuthorizationStatus.Authorized`). On platforms with permissions granted * at install (Android pre-6.0, Windows Phone) this property is always true. */ - authorized: Boolean, + authorized: Boolean; /** * A boolean value which is true if the user permenantly denied camera access @@ -158,59 +158,59 @@ interface QRScannerStatus { * only be gained by requesting the user change their decision (consider * offering a link to the setting via `openSettings()`). */ - denied: Boolean, + denied: Boolean; /** * A boolean value which is true if the user is unable to grant permissions due * to parental controls, organization security configuration profiles, or * similar reasons. */ - restricted: Boolean, + restricted: Boolean; /** * A boolean value which is true if QRScanner is prepared to capture video and * render it to the view. */ - prepared: Boolean, + prepared: Boolean; /** * A boolean value which is true if QRScanner is actively scanning for a QR code. */ - scanning: Boolean, + scanning: Boolean; /** * A boolean value which is true if QRScanner is displaying a live preview * from the device's camera. Set to false when the preview is paused. */ - previewing: Boolean, + previewing: Boolean; /** * A boolean value which is true when the native webview background is transparent. */ - webviewBackgroundIsTransparent: Boolean, + webviewBackgroundIsTransparent: Boolean; /** * A boolean value which is true if the light is enabled. */ - lightEnabled: Boolean, + lightEnabled: Boolean; /** * A boolean value which is true only if the users' operating system is able * to `QRScanner.openSettings()`. */ - canOpenSettings: Boolean, + canOpenSettings: Boolean; /** * A boolean value which is true only if the users' device can enable a light * in the direction of the currentCamera. */ - canEnableLight: Boolean, + canEnableLight: Boolean; /** * A number representing the index of the currentCamera. `0` is the back * camera, `1` is the front. */ - currentCamera: Number + currentCamera: Number; } /** @@ -242,17 +242,17 @@ interface QRScannerError { /** * The standard string identifying the type of this QRScannerError. */ - name: String, + name: String; /** * The standard number identifying the type of this QRScannerError. */ - code: Number, + code: Number; /** * A simple message describing this QRScannerError. */ - _message: String + _message: String; } declare var QRScanner: QRScanner; diff --git a/cordova-plugin-splashscreen/index.d.ts b/cordova-plugin-splashscreen/index.d.ts index 968b340067..9791b8ac4f 100644 --- a/cordova-plugin-splashscreen/index.d.ts +++ b/cordova-plugin-splashscreen/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/apache/cordova-plugin-splashscreen // Definitions by: Microsoft Open Technologies Inc // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// +// // Copyright (c) Microsoft Open Technologies Inc // Licensed under the MIT license. @@ -13,5 +13,5 @@ interface Navigator { hide(): void; /** Displays the splash screen. */ show(): void; - } + }; } \ No newline at end of file diff --git a/cordova-plugin-websql/index.d.ts b/cordova-plugin-websql/index.d.ts index cb2a0e00e4..36138bff33 100644 --- a/cordova-plugin-websql/index.d.ts +++ b/cordova-plugin-websql/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/MSOpenTech/cordova-plugin-websql // Definitions by: Microsoft Open Technologies Inc // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// +// // Copyright (c) Microsoft Open Technologies Inc // Licensed under the MIT license. @@ -53,7 +53,7 @@ declare var Database: { version: string, displayname: string, size: number, - creationCallback: (database: Database)=> void): Database; + creationCallback: (database: Database) => void): Database; }; interface SqlTransaction { diff --git a/cordova-plugin-x-socialsharing/index.d.ts b/cordova-plugin-x-socialsharing/index.d.ts index e68a072ee2..92210dbc7f 100644 --- a/cordova-plugin-x-socialsharing/index.d.ts +++ b/cordova-plugin-x-socialsharing/index.d.ts @@ -11,8 +11,7 @@ interface Plugins { socialsharing: SocialSharingPlugin.SocialSharing; } -declare module SocialSharingPlugin { - +declare namespace SocialSharingPlugin { interface ShareOptions { message: string; subject?: string; diff --git a/cordova/index.d.ts b/cordova/index.d.ts index 30a827ed93..e7823092df 100644 --- a/cordova/index.d.ts +++ b/cordova/index.d.ts @@ -26,7 +26,7 @@ interface Cordova { /** Access a Cordova module by name. */ require(moduleName: string): any; /** Namespace for Cordova plugin functionality */ - plugins:CordovaPlugins; + plugins: CordovaPlugins; } interface CordovaPlugins {} @@ -59,7 +59,7 @@ interface Document { } interface Window { - cordova:Cordova; + cordova: Cordova; } // cordova/argscheck module @@ -71,7 +71,7 @@ interface ArgsCheck { // cordova/urlutil module interface UrlUtil { - makeAbsolute(url: string): string + makeAbsolute(url: string): string; } /** Apache Cordova instance */ diff --git a/cordovarduino/index.d.ts b/cordovarduino/index.d.ts index 8ec58f2f27..6b1ac76adf 100644 --- a/cordovarduino/index.d.ts +++ b/cordovarduino/index.d.ts @@ -11,7 +11,7 @@ declare namespace Cordovardunio { * @param successCallback Function to call on success * @param errorCallback Function to call on error */ - requestPermission(successCallback:Function, errorCallback:Function): void; + requestPermission(successCallback: Function, errorCallback: Function): void; /** * Open a connection. @@ -20,7 +20,7 @@ declare namespace Cordovardunio { * @param successCallback Function to call on success * @param errorCallback Function to call on error */ - open(opts:SerialOptions, successCallback:Function, errorCallback:Function): void + open(opts: SerialOptions, successCallback: Function, errorCallback: Function): void; /** * Write to the serial port. @@ -29,7 +29,7 @@ declare namespace Cordovardunio { * @param successCallback Function to call on success * @param errorCallback Function to call on error */ - write(data:string, successCallback:Function, errorCallback:Function): void; + write(data: string, successCallback: Function, errorCallback: Function): void; /** * Read from the serial port. @@ -37,7 +37,7 @@ declare namespace Cordovardunio { * @param successCallback Function to call on success * @param errorCallback Function to call on error */ - read(successCallback:Function, errorCallback:Function): void; + read(successCallback: Function, errorCallback: Function): void; /** * Close connection. @@ -45,7 +45,7 @@ declare namespace Cordovardunio { * @param successCallback Function to call on success * @param errorCallback Function to call on error */ - close(successCallback:Function, errorCallback:Function): void; + close(successCallback: Function, errorCallback: Function): void; /** * Register a callback for the driver reading incoming data from the serial device @@ -53,7 +53,7 @@ declare namespace Cordovardunio { * @param successCallback Function to call on success * @param errorCallback Function to call on error */ - registerReadCallback(successCallback:Function, errorCallback:Function): void; + registerReadCallback(successCallback: Function, errorCallback: Function): void; } interface SerialOptions { @@ -81,4 +81,4 @@ declare namespace Cordovardunio { // Plugin will be surfaced as window.serial -declare var serial:Cordovardunio.Serial; +declare var serial: Cordovardunio.Serial; diff --git a/core-js/core-js-tests.ts b/core-js/core-js-tests.ts index 6b4c03352c..9f3ce1e5f7 100644 --- a/core-js/core-js-tests.ts +++ b/core-js/core-js-tests.ts @@ -57,7 +57,7 @@ let dictOfAny: Dict; // ############################################################################################# // ECMAScript 6: Object & Function -// Modules: es6.object.assign, es6.object.is, es6.object.set-prototype-of, +// Modules: es6.object.assign, es6.object.is, es6.object.set-prototype-of, // es6.object.to-string, es6.function.name and es6.function.has-instance. // ############################################################################################# @@ -88,8 +88,8 @@ arrayOfPoint = Array.of(point, point); // ############################################################################################# // ECMAScript 6: String & RegExp -// Modules: es6.string.from-code-point, es6.string.raw, es6.string.code-point-at, -// es6.string.ends-with, es6.string.includes, es6.string.repeat, +// Modules: es6.string.from-code-point, es6.string.raw, es6.string.code-point-at, +// es6.string.ends-with, es6.string.includes, es6.string.repeat, // es6.string.starts-with, and es6.regexp // ############################################################################################# @@ -334,7 +334,7 @@ b = Reflect.setPrototypeOf(a, a); // ############################################################################################# // ECMAScript 7 -// Modules: es7.array.includes, es7.string.at, es7.string.lpad, es7.string.rpad, +// Modules: es7.array.includes, es7.string.at, es7.string.lpad, es7.string.rpad, // es7.object.to-array, es7.object.get-own-property-descriptors, es7.regexp.escape, // es7.map.to-json, and es7.set.to-json // ############################################################################################# diff --git a/core-js/index.d.ts b/core-js/index.d.ts index 94aa14606b..71204ea90a 100644 --- a/core-js/index.d.ts +++ b/core-js/index.d.ts @@ -827,7 +827,7 @@ interface PromiseConstructor { all(values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike]): Promise<[T1, T2, T3]>; all(values: [T1 | PromiseLike, T2 | PromiseLike]): Promise<[T1, T2]>; all(values: Iterable>): Promise; - + /** * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved * or rejected. @@ -1782,8 +1782,7 @@ declare module "core-js/fn/function/has-instance" { var hasInstance: (value: any) => boolean; export = hasInstance; } -declare module "core-js/fn/function/name" -{ +declare module "core-js/fn/function/name" { } declare module "core-js/fn/function/part" { var part: typeof core.Function.part; diff --git a/couchbase/couchbase-tests.ts b/couchbase/couchbase-tests.ts index 547133754b..e7d96c612c 100644 --- a/couchbase/couchbase-tests.ts +++ b/couchbase/couchbase-tests.ts @@ -9,6 +9,6 @@ bucket.upsert('testdoc', { name: 'Frank' }, (error) => { if (err) throw err; console.log(result.value); - // {name: Frank} + // {name: Frank} }); }); \ No newline at end of file diff --git a/couchbase/index.d.ts b/couchbase/index.d.ts index eb945af458..f90a3815b2 100644 --- a/couchbase/index.d.ts +++ b/couchbase/index.d.ts @@ -209,7 +209,7 @@ interface CreateBucketOptions { * The bucket name */ name?: string; - authType?: string, + authType?: string; bucketType?: string; ramQuotaMB?: number; replicaNumber?: number; @@ -1076,7 +1076,7 @@ declare namespace Bucket { * * @param doc The data from Couchbase to decode. */ - (doc: Bucket.TranscoderDoc): any + (doc: Bucket.TranscoderDoc): any; } /** diff --git a/cradle/index.d.ts b/cradle/index.d.ts index 159787ea64..fe7781bdc3 100644 --- a/cradle/index.d.ts +++ b/cradle/index.d.ts @@ -13,7 +13,7 @@ interface Options { auth?: string | { username: string; password: string; - } + }; ca?: string; secure?: boolean; retries?: number; diff --git a/credential/index.d.ts b/credential/index.d.ts index 16b588dd72..a5e94028d6 100644 --- a/credential/index.d.ts +++ b/credential/index.d.ts @@ -29,6 +29,6 @@ declare function credential(defaultOptions?: defaultOptions): { verify(hash: hashObject | string, password: string, callback: VerifyCallback): void; verify(hash: hashObject | string, password: string): Promise; expired(hash: string, days: number): boolean; -} +}; export = credential; diff --git a/cross-storage/index.d.ts b/cross-storage/index.d.ts index 8d425a96c8..ddcb6e07b9 100644 --- a/cross-storage/index.d.ts +++ b/cross-storage/index.d.ts @@ -20,31 +20,31 @@ interface SubDomain { export declare class CrossStorageClient { /** - * Constructs a new cross storage client given the url to a hub. By default, an iframe is created - * within the document body that points to the url. It also accepts an options object, which may include - * a timeout, frameId, and promise. The timeout, in milliseconds, is applied to each request and defaults - * to 5000ms. The options object may also include a frameId, identifying an existing frame on which to - * install its listeners. If the promise key is supplied the constructor for a Promise, that Promise + * Constructs a new cross storage client given the url to a hub. By default, an iframe is created + * within the document body that points to the url. It also accepts an options object, which may include + * a timeout, frameId, and promise. The timeout, in milliseconds, is applied to each request and defaults + * to 5000ms. The options object may also include a frameId, identifying an existing frame on which to + * install its listeners. If the promise key is supplied the constructor for a Promise, that Promise * library will be used instead of the default window.Promise. */ constructor(hubUrl: string, opts: CrossStorageClientOptions) /** - * Returns a promise that is fulfilled when a connection has been established with the cross storage + * Returns a promise that is fulfilled when a connection has been established with the cross storage * hub. Its use is required to avoid sending any requests prior to initialization being complete. */ onConnect(): Promise; /** - * Sets a key to the specified value, optionally accepting a ttl to passively expire the key after a - * number of milliseconds. Returns a promise that is fulfilled on success, or rejected if any errors + * Sets a key to the specified value, optionally accepting a ttl to passively expire the key after a + * number of milliseconds. Returns a promise that is fulfilled on success, or rejected if any errors * setting the key occurred, or the request timed out. */ set(key: string, value: any, ttl?: number): Promise; /** - * Accepts one or more keys for which to retrieve their values. Returns a promise that is settled on - * hub response or timeout. On success, it is fulfilled with the value of the key if only passed a - * single argument. Otherwise it's resolved with an array of values. On failure, it is rejected with + * Accepts one or more keys for which to retrieve their values. Returns a promise that is settled on + * hub response or timeout. On success, it is fulfilled with the value of the key if only passed a + * single argument. Otherwise it's resolved with an array of values. On failure, it is rejected with * the corresponding error message. */ get(key: string): Promise; @@ -66,7 +66,7 @@ export declare class CrossStorageClient { clear(): Promise; /** - * Deletes the iframe and sets the connected state to false. The client can no longer be used after + * Deletes the iframe and sets the connected state to false. The client can no longer be used after * being invoked. */ close(): void; @@ -74,10 +74,10 @@ export declare class CrossStorageClient { 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 - * from any of the matching origins, allowing access to the associated lists of methods. Methods may - * include any of: get, set, del, getKeys and clear. A 'ready' message is sent to the parent window once + * 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 + * from any of the matching origins, allowing access to the associated lists of methods. Methods may + * include any of: get, set, del, getKeys and clear. A 'ready' message is sent to the parent window once * complete. */ static init(subdomains: SubDomain[]): void; diff --git a/crossfilter/index.d.ts b/crossfilter/index.d.ts index ed888f6959..3982a0ed88 100644 --- a/crossfilter/index.d.ts +++ b/crossfilter/index.d.ts @@ -16,24 +16,24 @@ declare namespace CrossFilter { bisect: { (array: T[], value: T, lo: number, hi: number): number; by(value: Selector): Bisector; - } + }; heap: { (array: T[], lo: number, hi: number): T[]; by(value: Selector): Heap; - } + }; heapselect: { (array: T[], lo: number, hi: number, k: number): T[]; by(value: Selector): HeapSelect; - } + }; insertionsort: { (array: T[], lo: number, hi: number): T[]; by(value: Selector): Sort; - } + }; quicksort: { (array: T[], lo: number, hi: number): T[]; by(value: Selector): Sort; - } + }; } export interface Bisection { @@ -41,8 +41,8 @@ declare namespace CrossFilter { } export interface Bisector extends Bisection { - left: Bisection - right: Bisection + left: Bisection; + right: Bisection; } export interface Heap { @@ -113,6 +113,6 @@ declare namespace CrossFilter { declare var crossfilter: CrossFilter.CrossFilterStatic; declare module "crossfilter" { var crossfilter: CrossFilter.CrossFilterStatic; - export = crossfilter; + export = crossfilter; } diff --git a/cryptojs/index.d.ts b/cryptojs/index.d.ts index d537641462..f0f4e1a984 100644 --- a/cryptojs/index.d.ts +++ b/cryptojs/index.d.ts @@ -5,461 +5,461 @@ declare var CryptoJS: CryptoJS.CryptoJSStatic; -declare namespace CryptoJS{ - namespace lib{ +declare namespace CryptoJS { + namespace lib { type SomeArray = ArrayBuffer | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array; - interface Base{ - extend(overrides: Object): Object - init(...args: any[]): void + interface Base { + extend(overrides: Object): Object; + init(...args: any[]): void; //arguments of create() is same as init(). This is true for all subclasses - create(...args: any[]): Base - mixIn(properties: Object): void - clone(): Base + create(...args: any[]): Base; + mixIn(properties: Object): void; + clone(): Base; } - interface WordArray extends Base{ - words: number[] - sigBytes: number + interface WordArray extends Base { + words: number[]; + sigBytes: number; - init(typedArray: SomeArray): void - init(words?: number[], sigBytes?: number): void + init(typedArray: SomeArray): void; + init(words?: number[], sigBytes?: number): void; create(typedArray: SomeArray): WordArray; - create(words?: number[], sigBytes?: number): WordArray + create(words?: number[], sigBytes?: number): WordArray; - toString(encoder?: enc.IEncoder): string - concat(wordArray: WordArray): WordArray - clamp(): void - clone(): WordArray - random(nBytes: number): WordArray + toString(encoder?: enc.IEncoder): string; + concat(wordArray: WordArray): WordArray; + clamp(): void; + clone(): WordArray; + random(nBytes: number): WordArray; } - interface BufferedBlockAlgorithm extends Base{ - reset(): void - clone(): BufferedBlockAlgorithm + interface BufferedBlockAlgorithm extends Base { + reset(): void; + clone(): BufferedBlockAlgorithm; } //tparam C - Configuration type - interface IHasher extends BufferedBlockAlgorithm{ - cfg: C - init(cfg?: C): void - create(cfg?: C): IHasher + interface IHasher extends BufferedBlockAlgorithm { + cfg: C; + init(cfg?: C): void; + create(cfg?: C): IHasher; - update(messageUpdate: string): Hasher - update(messageUpdate: WordArray): Hasher + update(messageUpdate: string): Hasher; + update(messageUpdate: WordArray): Hasher; - finalize(messageUpdate?: string): WordArray - finalize(messageUpdate?: WordArray): WordArray + finalize(messageUpdate?: string): WordArray; + finalize(messageUpdate?: WordArray): WordArray; - blockSize: number + blockSize: number; - _createHelper(hasher: Hasher): IHasherHelper - _createHmacHelper(hasher: Hasher): IHasherHmacHelper + _createHelper(hasher: Hasher): IHasherHelper; + _createHmacHelper(hasher: Hasher): IHasherHmacHelper; - clone(): IHasher + clone(): IHasher; } - interface Hasher extends IHasher{} + interface Hasher extends IHasher {} //tparam C - Configuration type - interface IHasherHelper{ - (message: string, cfg?: C): WordArray - (message: WordArray, cfg?: C): WordArray + interface IHasherHelper { + (message: string, cfg?: C): WordArray; + (message: WordArray, cfg?: C): WordArray; } - interface HasherHelper extends IHasherHelper{} + interface HasherHelper extends IHasherHelper {} - interface IHasherHmacHelper{ - (message: string, key: string): WordArray - (message: string, key: WordArray): WordArray - (message: WordArray, key: string): WordArray - (message: WordArray, key: WordArray): WordArray + interface IHasherHmacHelper { + (message: string, key: string): WordArray; + (message: string, key: WordArray): WordArray; + (message: WordArray, key: string): WordArray; + (message: WordArray, key: WordArray): WordArray; } //tparam C - Configuration type - interface ICipher extends BufferedBlockAlgorithm{ - cfg: C - createEncryptor(key: WordArray, cfg?: C): ICipher - createDecryptor(key: WordArray, cfg?: C): ICipher + interface ICipher extends BufferedBlockAlgorithm { + cfg: C; + createEncryptor(key: WordArray, cfg?: C): ICipher; + createDecryptor(key: WordArray, cfg?: C): ICipher; - create(xformMode?: number, key?: WordArray, cfg?: C): ICipher - init(xformMode?: number, key?: WordArray, cfg?: C): void + create(xformMode?: number, key?: WordArray, cfg?: C): ICipher; + init(xformMode?: number, key?: WordArray, cfg?: C): void; - process(dataUpdate: string): WordArray - process(dataUpdate: WordArray): WordArray + process(dataUpdate: string): WordArray; + process(dataUpdate: WordArray): WordArray; - finalize(dataUpdate?: string): WordArray - finalize(dataUpdate?: WordArray): WordArray + finalize(dataUpdate?: string): WordArray; + finalize(dataUpdate?: WordArray): WordArray; - keySize: number - ivSize: number + keySize: number; + ivSize: number; - _createHelper(cipher: Cipher): ICipherHelper + _createHelper(cipher: Cipher): ICipherHelper; - clone(): ICipher + clone(): ICipher; } - interface Cipher extends ICipher{} + interface Cipher extends ICipher {} - interface IStreamCipher extends ICipher{ + interface IStreamCipher extends ICipher { drop?: number; - createEncryptor(key: WordArray, cfg?: C): IStreamCipher - createDecryptor(key: WordArray, cfg?: C): IStreamCipher + createEncryptor(key: WordArray, cfg?: C): IStreamCipher; + createDecryptor(key: WordArray, cfg?: C): IStreamCipher; - create(xformMode?: number, key?: WordArray, cfg?: C): IStreamCipher + create(xformMode?: number, key?: WordArray, cfg?: C): IStreamCipher; - blockSize: number + blockSize: number; } - interface StreamCipher extends IStreamCipher{} + interface StreamCipher extends IStreamCipher {} - interface BlockCipherMode extends Base{ - createEncryptor(cipher: Cipher, iv: number[]): mode.IBlockCipherEncryptor - createDecryptor(cipher: Cipher, iv: number[]): mode.IBlockCipherDecryptor - init(cipher?: Cipher, iv?: number[]): void - create(cipher?: Cipher, iv?: number[]): BlockCipherMode + interface BlockCipherMode extends Base { + createEncryptor(cipher: Cipher, iv: number[]): mode.IBlockCipherEncryptor; + createDecryptor(cipher: Cipher, iv: number[]): mode.IBlockCipherDecryptor; + init(cipher?: Cipher, iv?: number[]): void; + create(cipher?: Cipher, iv?: number[]): BlockCipherMode; } //BlockCipher has interface same as IStreamCipher - interface BlockCipher extends IStreamCipher{} + interface BlockCipher extends IStreamCipher {} interface IBlockCipherCfg { iv?: WordArray; - mode?: mode.IBlockCipherModeImpl //default CBC - padding?: pad.IPaddingImpl //default Pkcs7 + mode?: mode.IBlockCipherModeImpl; //default CBC + padding?: pad.IPaddingImpl; //default Pkcs7 } interface CipherParamsData { - ciphertext?: lib.WordArray - key?: lib.WordArray - iv?: lib.WordArray - salt?: lib.WordArray - algorithm?: Cipher - mode?: mode.IBlockCipherModeImpl - padding?: pad.IPaddingImpl - blockSize?: number - formatter?: format.IFormatter + ciphertext?: lib.WordArray; + key?: lib.WordArray; + iv?: lib.WordArray; + salt?: lib.WordArray; + algorithm?: Cipher; + mode?: mode.IBlockCipherModeImpl; + padding?: pad.IPaddingImpl; + blockSize?: number; + formatter?: format.IFormatter; } - interface CipherParams extends Base, CipherParamsData{ - init(cipherParams?: CipherParamsData): void - create(cipherParams?: CipherParamsData): CipherParams - toString(formatter?: format.IFormatter): string + interface CipherParams extends Base, CipherParamsData { + init(cipherParams?: CipherParamsData): void; + create(cipherParams?: CipherParamsData): CipherParams; + toString(formatter?: format.IFormatter): string; } //tparam C - Configuration type - interface ISerializableCipher extends Base{ - cfg: C - encrypt(cipher: Cipher, message: WordArray, key: WordArray, cfg?: C): CipherParams - encrypt(cipher: Cipher, message: string, key: WordArray, cfg?: C): CipherParams + interface ISerializableCipher extends Base { + cfg: C; + encrypt(cipher: Cipher, message: WordArray, key: WordArray, cfg?: C): CipherParams; + encrypt(cipher: Cipher, message: string, key: WordArray, cfg?: C): CipherParams; - decrypt(cipher: Cipher, ciphertext: CipherParamsData, key: WordArray, cfg?: C): WordArray - decrypt(cipher: Cipher, ciphertext: string, key: WordArray, cfg?: C): WordArray + decrypt(cipher: Cipher, ciphertext: CipherParamsData, key: WordArray, cfg?: C): WordArray; + decrypt(cipher: Cipher, ciphertext: string, key: WordArray, cfg?: C): WordArray; } - interface SerializableCipher extends ISerializableCipher{} - interface ISerializableCipherCfg{ - format?: format.IFormatter //default OpenSSLFormatter + interface SerializableCipher extends ISerializableCipher {} + interface ISerializableCipherCfg { + format?: format.IFormatter; //default OpenSSLFormatter iv?: WordArray; mode?: mode.IBlockCipherModeImpl; padding?: pad.IPaddingImpl; } - interface IPasswordBasedCipher extends Base{ - cfg: C - encrypt(cipher: Cipher, message: WordArray, password: string, cfg?: C): CipherParams - encrypt(cipher: Cipher, message: string, password: string, cfg?: C): CipherParams + interface IPasswordBasedCipher extends Base { + cfg: C; + encrypt(cipher: Cipher, message: WordArray, password: string, cfg?: C): CipherParams; + encrypt(cipher: Cipher, message: string, password: string, cfg?: C): CipherParams; - decrypt(cipher: Cipher, ciphertext: CipherParamsData, password: string, cfg?: C): WordArray - decrypt(cipher: Cipher, ciphertext: string, password: string, cfg?: C): WordArray + decrypt(cipher: Cipher, ciphertext: CipherParamsData, password: string, cfg?: C): WordArray; + decrypt(cipher: Cipher, ciphertext: string, password: string, cfg?: C): WordArray; } - interface PasswordBasedCipher extends IPasswordBasedCipher{} - interface IPasswordBasedCipherCfg extends ISerializableCipherCfg{ - kdf?: kdf.IKdfImpl //default OpenSSLKdf + interface PasswordBasedCipher extends IPasswordBasedCipher {} + interface IPasswordBasedCipherCfg extends ISerializableCipherCfg { + kdf?: kdf.IKdfImpl; //default OpenSSLKdf mode?: mode.IBlockCipherModeImpl; padding?: pad.IPaddingImpl; } /** see Cipher._createHelper */ - interface ICipherHelper{ - encrypt(message: string, password: string, cfg?: C): CipherParams - encrypt(message: string, key: WordArray, cfg?: C): CipherParams - encrypt(message: WordArray, password: string, cfg?: C): CipherParams - encrypt(message: WordArray, key: WordArray, cfg?: C): CipherParams + interface ICipherHelper { + encrypt(message: string, password: string, cfg?: C): CipherParams; + encrypt(message: string, key: WordArray, cfg?: C): CipherParams; + encrypt(message: WordArray, password: string, cfg?: C): CipherParams; + encrypt(message: WordArray, key: WordArray, cfg?: C): CipherParams; - decrypt(ciphertext: string, password: string, cfg?: C): WordArray - decrypt(ciphertext: string, key: WordArray, cfg?: C): WordArray - decrypt(ciphertext: CipherParamsData, password: string, cfg?: C): WordArray - decrypt(ciphertext: CipherParamsData, key: WordArray, cfg?: C): WordArray + decrypt(ciphertext: string, password: string, cfg?: C): WordArray; + decrypt(ciphertext: string, key: WordArray, cfg?: C): WordArray; + decrypt(ciphertext: CipherParamsData, password: string, cfg?: C): WordArray; + decrypt(ciphertext: CipherParamsData, key: WordArray, cfg?: C): WordArray; } - interface CipherHelper extends ICipherHelper{} - interface LibStatic{ - Base: lib.Base - WordArray: lib.WordArray - CipherParams: lib.CipherParams - SerializableCipher: lib.SerializableCipher - PasswordBasedCipher: lib.PasswordBasedCipher + interface CipherHelper extends ICipherHelper {} + interface LibStatic { + Base: lib.Base; + WordArray: lib.WordArray; + CipherParams: lib.CipherParams; + SerializableCipher: lib.SerializableCipher; + PasswordBasedCipher: lib.PasswordBasedCipher; } } - namespace enc{ - interface IEncoder{ - stringify(wordArray: lib.WordArray): string + namespace enc { + interface IEncoder { + stringify(wordArray: lib.WordArray): string; } - interface IDecoder{ - parse(s: string): lib.WordArray + interface IDecoder { + parse(s: string): lib.WordArray; } interface ICoder extends IEncoder, IDecoder {} - interface EncStatic{ - Hex: ICoder - Latin1: ICoder - Utf8: ICoder - Base64: ICoder - Utf16: ICoder - Utf16BE: ICoder - Utf16LE: ICoder + interface EncStatic { + Hex: ICoder; + Latin1: ICoder; + Utf8: ICoder; + Base64: ICoder; + Utf16: ICoder; + Utf16BE: ICoder; + Utf16LE: ICoder; } } - namespace kdf{ - interface KdfStatic{ - OpenSSL: IKdfImpl + namespace kdf { + interface KdfStatic { + OpenSSL: IKdfImpl; } - interface IKdfImpl{ - execute(password: string, keySize: number, ivSize: number, salt?: string): lib.CipherParams - execute(password: string, keySize: number, ivSize: number, salt?: lib.WordArray): lib.CipherParams + interface IKdfImpl { + execute(password: string, keySize: number, ivSize: number, salt?: string): lib.CipherParams; + execute(password: string, keySize: number, ivSize: number, salt?: lib.WordArray): lib.CipherParams; } } - namespace format{ - interface FormatStatic{ - OpenSSL: IFormatter - Hex: IFormatter + namespace format { + interface FormatStatic { + OpenSSL: IFormatter; + Hex: IFormatter; } - interface IFormatter{ - stringify(cipherParams: lib.CipherParamsData): string - parse(s: string): lib.CipherParams + interface IFormatter { + stringify(cipherParams: lib.CipherParamsData): string; + parse(s: string): lib.CipherParams; } } - namespace algo{ - interface AlgoStatic{ - AES: algo.AES - DES: algo.DES - TripleDES: algo.TripleDES + namespace algo { + interface AlgoStatic { + AES: algo.AES; + DES: algo.DES; + TripleDES: algo.TripleDES; - RabbitLegacy: algo.RabbitLegacy - Rabbit: algo.Rabbit - RC4: algo.RC4 + RabbitLegacy: algo.RabbitLegacy; + Rabbit: algo.Rabbit; + RC4: algo.RC4; - MD5: algo.MD5 - RIPEMD160: algo.RIPEMD160 - SHA1: algo.SHA1 - SHA256: algo.SHA256 - SHA224: algo.SHA224 - SHA384: algo.SHA384 - SHA512: algo.SHA512 + MD5: algo.MD5; + RIPEMD160: algo.RIPEMD160; + SHA1: algo.SHA1; + SHA256: algo.SHA256; + SHA224: algo.SHA224; + SHA384: algo.SHA384; + SHA512: algo.SHA512; - SHA3: algo.SHA3 + SHA3: algo.SHA3; - HMAC: algo.HMAC + HMAC: algo.HMAC; - EvpKDF: algo.EvpKDF - PBKDF2: algo.PBKDF2 + EvpKDF: algo.EvpKDF; + PBKDF2: algo.PBKDF2; - RC4Drop: algo.RC4Drop + RC4Drop: algo.RC4Drop; } - interface IBlockCipherImpl extends lib.BlockCipher{ - encryptBlock(M: number[], offset: number): void - decryptBlock(M: number[], offset: number): void + interface IBlockCipherImpl extends lib.BlockCipher { + encryptBlock(M: number[], offset: number): void; + decryptBlock(M: number[], offset: number): void; - createEncryptor(key: lib.WordArray, cfg?: lib.CipherParamsData): IBlockCipherImpl - createDecryptor(key: lib.WordArray, cfg?: lib.CipherParamsData): IBlockCipherImpl + createEncryptor(key: lib.WordArray, cfg?: lib.CipherParamsData): IBlockCipherImpl; + createDecryptor(key: lib.WordArray, cfg?: lib.CipherParamsData): IBlockCipherImpl; - create(xformMode?: number, key?: lib.WordArray, cfg?: lib.IBlockCipherCfg): IBlockCipherImpl + create(xformMode?: number, key?: lib.WordArray, cfg?: lib.IBlockCipherCfg): IBlockCipherImpl; } - interface AES extends IBlockCipherImpl{} - interface DES extends IBlockCipherImpl{} - interface TripleDES extends IBlockCipherImpl{} + interface AES extends IBlockCipherImpl {} + interface DES extends IBlockCipherImpl {} + interface TripleDES extends IBlockCipherImpl {} - interface RabbitLegacy extends lib.StreamCipher{} - interface Rabbit extends lib.StreamCipher{} - interface RC4 extends lib.StreamCipher{} + interface RabbitLegacy extends lib.StreamCipher {} + interface Rabbit extends lib.StreamCipher {} + interface RC4 extends lib.StreamCipher {} - interface MD5 extends lib.Hasher{} - interface RIPEMD160 extends lib.Hasher{} - interface SHA1 extends lib.Hasher{} - interface SHA256 extends lib.Hasher{} - interface SHA224 extends lib.Hasher{} - interface SHA384 extends lib.Hasher{} - interface SHA512 extends lib.Hasher{} + interface MD5 extends lib.Hasher {} + interface RIPEMD160 extends lib.Hasher {} + interface SHA1 extends lib.Hasher {} + interface SHA256 extends lib.Hasher {} + interface SHA224 extends lib.Hasher {} + interface SHA384 extends lib.Hasher {} + interface SHA512 extends lib.Hasher {} - interface SHA3 extends lib.IHasher{} - interface ISHA3Cfg{ - outputLength?: number //default 512 + interface SHA3 extends lib.IHasher {} + interface ISHA3Cfg { + outputLength?: number; //default 512 } - interface HMAC extends lib.Base{ - init(hasher?: lib.Hasher, key?: string): void - init(hasher?: lib.Hasher, key?: lib.WordArray): void - create(hasher?: lib.Hasher, key?: string): HMAC - create(hasher?: lib.Hasher, key?: lib.WordArray): HMAC + interface HMAC extends lib.Base { + init(hasher?: lib.Hasher, key?: string): void; + init(hasher?: lib.Hasher, key?: lib.WordArray): void; + create(hasher?: lib.Hasher, key?: string): HMAC; + create(hasher?: lib.Hasher, key?: lib.WordArray): HMAC; - update(messageUpdate: string): HMAC - update(messageUpdate: lib.WordArray): HMAC + update(messageUpdate: string): HMAC; + update(messageUpdate: lib.WordArray): HMAC; - finalize(messageUpdate?: string): lib.WordArray - finalize(messageUpdate?: lib.WordArray): lib.WordArray + finalize(messageUpdate?: string): lib.WordArray; + finalize(messageUpdate?: lib.WordArray): lib.WordArray; } - interface EvpKDF extends lib.Base{ - cfg: IEvpKDFCfg - init(cfg?: IEvpKDFCfg): void - create(cfg?: IEvpKDFCfg): EvpKDF - compute(password: string, salt: string): lib.WordArray - compute(password: string, salt: lib.WordArray): lib.WordArray - compute(password: lib.WordArray, salt: string): lib.WordArray - compute(password: lib.WordArray, salt: lib.WordArray): lib.WordArray + interface EvpKDF extends lib.Base { + cfg: IEvpKDFCfg; + init(cfg?: IEvpKDFCfg): void; + create(cfg?: IEvpKDFCfg): EvpKDF; + compute(password: string, salt: string): lib.WordArray; + compute(password: string, salt: lib.WordArray): lib.WordArray; + compute(password: lib.WordArray, salt: string): lib.WordArray; + compute(password: lib.WordArray, salt: lib.WordArray): lib.WordArray; } - interface IEvpKDFCfg{ - keySize?: number //default 128/32 - hasher?: lib.Hasher //default MD5, or SHA1 with PBKDF2 - iterations?: number //default 1 + interface IEvpKDFCfg { + keySize?: number; //default 128/32 + hasher?: lib.Hasher; //default MD5, or SHA1 with PBKDF2 + iterations?: number; //default 1 } - interface IEvpKDFHelper{ - (password: string, salt: string, cfg?: IEvpKDFCfg): lib.WordArray - (password: string, salt: lib.WordArray, cfg?: IEvpKDFCfg): lib.WordArray - (password: lib.WordArray, salt: string, cfg?: IEvpKDFCfg): lib.WordArray - (password: lib.WordArray, salt: lib.WordArray, cfg?: IEvpKDFCfg): lib.WordArray + interface IEvpKDFHelper { + (password: string, salt: string, cfg?: IEvpKDFCfg): lib.WordArray; + (password: string, salt: lib.WordArray, cfg?: IEvpKDFCfg): lib.WordArray; + (password: lib.WordArray, salt: string, cfg?: IEvpKDFCfg): lib.WordArray; + (password: lib.WordArray, salt: lib.WordArray, cfg?: IEvpKDFCfg): lib.WordArray; } - interface PBKDF2 extends EvpKDF{} //PBKDF2 is same as EvpKDF + interface PBKDF2 extends EvpKDF {} //PBKDF2 is same as EvpKDF interface RC4Drop extends RC4 { } } - namespace mode{ - interface ModeStatic{ - CBC: mode.CBC - CFB: mode.CFB - CTR: mode.CTR - CTRGladman: mode.CTRGladman - ECB: mode.ECB - OFB: mode.OFB + namespace mode { + interface ModeStatic { + CBC: mode.CBC; + CFB: mode.CFB; + CTR: mode.CTR; + CTRGladman: mode.CTRGladman; + ECB: mode.ECB; + OFB: mode.OFB; } - interface IBlockCipherEncryptor extends lib.BlockCipherMode{ - processBlock(words: number[], offset: number): void + interface IBlockCipherEncryptor extends lib.BlockCipherMode { + processBlock(words: number[], offset: number): void; } - interface IBlockCipherDecryptor extends lib.BlockCipherMode{ //exactly as IBlockCipherEncryptor - processBlock(words: number[], offset: number): void + interface IBlockCipherDecryptor extends lib.BlockCipherMode { //exactly as IBlockCipherEncryptor + processBlock(words: number[], offset: number): void; } - interface IBlockCipherModeImpl extends lib.BlockCipherMode{ - Encryptor: IBlockCipherEncryptor - Decryptor: IBlockCipherDecryptor + interface IBlockCipherModeImpl extends lib.BlockCipherMode { + Encryptor: IBlockCipherEncryptor; + Decryptor: IBlockCipherDecryptor; } - interface CBC extends IBlockCipherModeImpl{} - interface CFB extends IBlockCipherModeImpl{} - interface CTR extends IBlockCipherModeImpl{} - interface CTRGladman extends IBlockCipherModeImpl{} - interface ECB extends IBlockCipherModeImpl{} - interface OFB extends IBlockCipherModeImpl{} + interface CBC extends IBlockCipherModeImpl {} + interface CFB extends IBlockCipherModeImpl {} + interface CTR extends IBlockCipherModeImpl {} + interface CTRGladman extends IBlockCipherModeImpl {} + interface ECB extends IBlockCipherModeImpl {} + interface OFB extends IBlockCipherModeImpl {} } - namespace pad{ - interface PadStatic{ - Pkcs7: pad.Pkcs7 - AnsiX923: pad.AnsiX923 - Iso10126: pad.Iso10126 - Iso97971: pad.Iso97971 - ZeroPadding: pad.ZeroPadding - NoPadding: pad.NoPadding + namespace pad { + interface PadStatic { + Pkcs7: pad.Pkcs7; + AnsiX923: pad.AnsiX923; + Iso10126: pad.Iso10126; + Iso97971: pad.Iso97971; + ZeroPadding: pad.ZeroPadding; + NoPadding: pad.NoPadding; } - interface IPaddingImpl{ - pad(data: lib.WordArray, blockSize: number): void - unpad(data: lib.WordArray): void + interface IPaddingImpl { + pad(data: lib.WordArray, blockSize: number): void; + unpad(data: lib.WordArray): void; } - interface Pkcs7 extends IPaddingImpl{} - interface AnsiX923 extends IPaddingImpl{} - interface Iso10126 extends IPaddingImpl{} - interface Iso97971 extends IPaddingImpl{} - interface ZeroPadding extends IPaddingImpl{} - interface NoPadding extends IPaddingImpl{} + interface Pkcs7 extends IPaddingImpl {} + interface AnsiX923 extends IPaddingImpl {} + interface Iso10126 extends IPaddingImpl {} + interface Iso97971 extends IPaddingImpl {} + interface ZeroPadding extends IPaddingImpl {} + interface NoPadding extends IPaddingImpl {} } - namespace x64{ - interface X64Static{ - Word: x64.Word - WordArray: x64.WordArray + namespace x64 { + interface X64Static { + Word: x64.Word; + WordArray: x64.WordArray; } - interface Word extends lib.Base{ - high: number - low: number + interface Word extends lib.Base { + high: number; + low: number; - init(high?: number, low?: number): void - create(high?: number, low?: number): Word + init(high?: number, low?: number): void; + create(high?: number, low?: number): Word; } - interface WordArray extends lib.Base{ - words: Word[] - sigBytes: number + interface WordArray extends lib.Base { + words: Word[]; + sigBytes: number; - init(words?: Word[], sigBytes?: number): void - create(words?: Word[], sigBytes?: number): WordArray - toX32(): lib.WordArray - clone(): WordArray + init(words?: Word[], sigBytes?: number): void; + create(words?: Word[], sigBytes?: number): WordArray; + toX32(): lib.WordArray; + clone(): WordArray; } } - interface CryptoJSStatic{ - lib: lib.LibStatic - enc: enc.EncStatic - kdf: kdf.KdfStatic - format: format.FormatStatic - algo: algo.AlgoStatic - mode: mode.ModeStatic - pad: pad.PadStatic - x64: x64.X64Static + interface CryptoJSStatic { + lib: lib.LibStatic; + enc: enc.EncStatic; + kdf: kdf.KdfStatic; + format: format.FormatStatic; + algo: algo.AlgoStatic; + mode: mode.ModeStatic; + pad: pad.PadStatic; + x64: x64.X64Static; - AES: CryptoJS.lib.ICipherHelper - DES: CryptoJS.lib.ICipherHelper - TripleDES: CryptoJS.lib.ICipherHelper + AES: CryptoJS.lib.ICipherHelper; + DES: CryptoJS.lib.ICipherHelper; + TripleDES: CryptoJS.lib.ICipherHelper; - RabbitLegacy: CryptoJS.lib.CipherHelper - Rabbit: CryptoJS.lib.CipherHelper - RC4: CryptoJS.lib.CipherHelper - RC4Drop: CryptoJS.lib.ICipherHelper + RabbitLegacy: CryptoJS.lib.CipherHelper; + Rabbit: CryptoJS.lib.CipherHelper; + RC4: CryptoJS.lib.CipherHelper; + RC4Drop: CryptoJS.lib.ICipherHelper; - MD5: CryptoJS.lib.HasherHelper - HmacMD5: CryptoJS.lib.IHasherHmacHelper - RIPEMD160: CryptoJS.lib.HasherHelper - HmacRIPEMD160: CryptoJS.lib.IHasherHmacHelper - SHA1: CryptoJS.lib.HasherHelper - HmacSHA1: CryptoJS.lib.IHasherHmacHelper - SHA256: CryptoJS.lib.HasherHelper - HmacSHA256: CryptoJS.lib.IHasherHmacHelper - SHA224: CryptoJS.lib.HasherHelper - HmacSHA224: CryptoJS.lib.IHasherHmacHelper - SHA512: CryptoJS.lib.HasherHelper - HmacSHA512: CryptoJS.lib.IHasherHmacHelper - SHA384: CryptoJS.lib.HasherHelper - HmacSHA384: CryptoJS.lib.IHasherHmacHelper + MD5: CryptoJS.lib.HasherHelper; + HmacMD5: CryptoJS.lib.IHasherHmacHelper; + RIPEMD160: CryptoJS.lib.HasherHelper; + HmacRIPEMD160: CryptoJS.lib.IHasherHmacHelper; + SHA1: CryptoJS.lib.HasherHelper; + HmacSHA1: CryptoJS.lib.IHasherHmacHelper; + SHA256: CryptoJS.lib.HasherHelper; + HmacSHA256: CryptoJS.lib.IHasherHmacHelper; + SHA224: CryptoJS.lib.HasherHelper; + HmacSHA224: CryptoJS.lib.IHasherHmacHelper; + SHA512: CryptoJS.lib.HasherHelper; + HmacSHA512: CryptoJS.lib.IHasherHmacHelper; + SHA384: CryptoJS.lib.HasherHelper; + HmacSHA384: CryptoJS.lib.IHasherHmacHelper; - SHA3: CryptoJS.lib.IHasherHelper - HmacSHA3: CryptoJS.lib.IHasherHmacHelper + SHA3: CryptoJS.lib.IHasherHelper; + HmacSHA3: CryptoJS.lib.IHasherHmacHelper; - EvpKDF: CryptoJS.algo.IEvpKDFHelper - PBKDF2: CryptoJS.algo.IEvpKDFHelper //PBKDF2 is same as EvpKDF + EvpKDF: CryptoJS.algo.IEvpKDFHelper; + PBKDF2: CryptoJS.algo.IEvpKDFHelper; //PBKDF2 is same as EvpKDF } } diff --git a/css/index.d.ts b/css/index.d.ts index c892d5c3a2..57d324a518 100644 --- a/css/index.d.ts +++ b/css/index.d.ts @@ -26,16 +26,16 @@ export interface StringifyOptions { indent?: string; /** Omit comments and extraneous whitespace. */ compress?: boolean; - /** Return a sourcemap along with the CSS output. - * Using the source option of css.parse is strongly recommended - * when creating a source map. Specify sourcemap: 'generator' - * to return the SourceMapGenerator object instead of serializing the source map. + /** Return a sourcemap along with the CSS output. + * Using the source option of css.parse is strongly recommended + * when creating a source map. Specify sourcemap: 'generator' + * to return the SourceMapGenerator object instead of serializing the source map. */ sourcemap?: string; /** (enabled by default, specify false to disable) - * Reads any source maps referenced by the input files - * when generating the output source map. When enabled, - * file system access may be required for reading the referenced source maps. + * Reads any source maps referenced by the input files + * when generating the output source map. When enabled, + * file system access may be required for reading the referenced source maps. */ inputSourcemaps?: boolean; } @@ -102,15 +102,15 @@ export interface Declaration extends Node { value?: string; } -/** +/** * A rule-level or declaration-level comment. Comments inside selectors, properties and values etc. are lost. */ export interface Comment extends Node { comment?: string; } -/** - * The @charset at-rule. +/** + * The @charset at-rule. */ export interface Charset { /** The part following @charset. */ @@ -118,7 +118,7 @@ export interface Charset { } /** - * The @custom-media at-rule + * The @custom-media at-rule */ export interface CustomMedia { /** The ---prefixed name. */ @@ -223,8 +223,8 @@ export interface Supports { /** All at-rules. */ export type AtRule = Charset | CustomMedia | Document | FontFace | Host | Import | KeyFrames | Media | Namespace | Page | Supports; -/** - * The root node returned by css.parse. +/** + * The root node returned by css.parse. */ export interface Stylesheet extends Node { stylesheet?: { @@ -239,7 +239,7 @@ export interface Stylesheet extends Node { /** * Accepts a CSS string and returns an AST object. - * + * * @param {string} code - CSS code. * @param {ParserOptions} options - CSS parser options. * @return {Stylesheet} AST object built using provides CSS code. @@ -248,7 +248,7 @@ export function parse(code: string, options?: ParserOptions): Stylesheet; /** * Accepts an AST object (as css.parse produces) and returns a CSS string. - * + * * @param {Stylesheet} stylesheet - AST tree. * @param {StringifyOptions} options - AST tree to string serializaiton options. * @return {string} CSS code. diff --git a/csv-parse/index.d.ts b/csv-parse/index.d.ts index 5cdfe164ef..b638366919 100644 --- a/csv-parse/index.d.ts +++ b/csv-parse/index.d.ts @@ -7,11 +7,11 @@ declare module "csv-parse/types" { interface callbackFn { - (err: any, output: any): void + (err: any, output: any): void; } interface nameCallback { - (line1: any[]): boolean | string[] + (line1: any[]): boolean | string[]; } interface options { @@ -23,16 +23,16 @@ declare module "csv-parse/types" { /*** * String used to delimit record rows or a special value; special constants are 'auto', 'unix', 'mac', 'windows', 'unicode'; defaults to 'auto' (discovered in source or 'unix' if no source is specified). */ - rowDelimiter?: string; + rowDelimiter?: string; /*** * Optional character surrounding a field, one character only, defaults to double quotes. */ - quote?: string + quote?: string; /*** * Set the escape character, one character only, defaults to double quotes. */ - escape?: string + escape?: string; /*** * List of fields as an array, a user defined callback accepting the first line and returning the column names or true if autodiscovered in the first CSV line, default to null, affect the result data set in the sense that records will be objects instead of arrays. @@ -42,57 +42,57 @@ declare module "csv-parse/types" { /*** * Treat all the characters after this one as a comment, default to '' (disabled). */ - comment?: string + comment?: string; /*** * Name of header-record title to name objects by. */ - objname?: string + objname?: string; /*** * Preserve quotes inside unquoted field. */ - relax?: boolean + relax?: boolean; /*** * Discard inconsistent columns count, default to false. */ - relax_column_count?: boolean + relax_column_count?: boolean; /*** * Dont generate empty values for empty lines. */ - skip_empty_lines?: boolean + skip_empty_lines?: boolean; /*** * Maximum numer of characters to be contained in the field and line buffers before an exception is raised, used to guard against a wrong delimiter or rowDelimiter, default to 128000 characters. */ - max_limit_on_data_read?: number + max_limit_on_data_read?: number; /*** * If true, ignore whitespace immediately around the delimiter, defaults to false. Does not remove whitespace in a quoted field. */ - trim?: boolean + trim?: boolean; /*** * If true, ignore whitespace immediately following the delimiter (i.e. left-trim all fields), defaults to false. Does not remove whitespace in a quoted field. */ - ltrim?: boolean + ltrim?: boolean; /*** * If true, ignore whitespace immediately preceding the delimiter (i.e. right-trim all fields), defaults to false. Does not remove whitespace in a quoted field. */ - rtrim?: boolean + rtrim?: boolean; /*** * If true, the parser will attempt to convert read data types to native types. */ - auto_parse?: boolean + auto_parse?: boolean; /*** * If true, the parser will attempt to convert read data types to dates. It requires the "auto_parse" option. */ - auto_parse_date?: boolean + auto_parse_date?: boolean; } import * as stream from "stream"; diff --git a/cucumber/cucumber-tests.ts b/cucumber/cucumber-tests.ts index fd2a6e2e47..96f3322108 100644 --- a/cucumber/cucumber-tests.ts +++ b/cucumber/cucumber-tests.ts @@ -39,19 +39,19 @@ function StepSample() { callback(new Error("Expected to be on page with title " + title)); } }); - - // Type for data_table.js on + + // Type for data_table.js on // https://github.com/cucumber/cucumber-js/blob/a5fd8251918c278ab2e389226d165cedb44df14a/lib/cucumber/ast/data_table.js - + step.Given(/^a table step with Table raw$/, function(table:Table){ var expected = [ ['Cucumber', 'Cucumis sativus'], ['Burr Gherkin', 'Cucumis anguria'] ]; - + assert.deepEqual(table.raw(), expected); }); - + step.Given(/^a table step with Table rows$/, function(table: Table){ var expected = [ ['Apricot', '5'], @@ -60,7 +60,7 @@ function StepSample() { ]; assert.deepEqual(table.rows(), expected) }); - + step.Given(/^a table step with Table rowHash$/, function(table:Table){ var expected = { 'Cucumber': 'Cucumis sativus', @@ -68,7 +68,7 @@ function StepSample() { }; assert.deepEqual(table.rowsHash(), expected) }); - + step.Given(/^a table step$/, function(table:Table){ var expected = [ {'Vegetable': 'Apricot', 'Rating': '5'}, diff --git a/cucumber/index.d.ts b/cucumber/index.d.ts index de0a8d07d3..998a61e0e3 100644 --- a/cucumber/index.d.ts +++ b/cucumber/index.d.ts @@ -7,12 +7,12 @@ export = cucumber; declare namespace cucumber { - export interface CallbackStepDefinition{ - pending : () => PromiseLike; - (error?:any, pending?: string):void; + export interface CallbackStepDefinition { + pending: () => PromiseLike; + (error?: any, pending?: string): void; } - export interface TableDefinition{ + export interface TableDefinition { raw: () => Array; rows: () => Array; rowsHash: () => {}; @@ -25,7 +25,7 @@ declare namespace cucumber { (...stepArgs: Array): PromiseLike | any | void; } - interface StepDefinitionOptions{ + interface StepDefinitionOptions { timeout?: number; } @@ -36,39 +36,39 @@ declare namespace cucumber { When(pattern: RegExp | string, code: StepDefinitionCode): void; Then(pattern: RegExp | string, options: StepDefinitionOptions, code: StepDefinitionCode): void; Then(pattern: RegExp | string, code: StepDefinitionCode): void; - setDefaultTimeout(time:number): void; + setDefaultTimeout(time: number): void; } - interface HookScenario{ - getKeyword():string; - getName():string; - getDescription():string; - getUri():string; - getLine():number; - getTags():string[]; - getException():Error; - getAttachments():any[]; - attach(data:any, mimeType?:string, callback?:(err?:any) => void):void; - isSuccessful():boolean; - isFailed():boolean; - isPending():boolean; - isUndefined():boolean; - isSkipped():boolean; + interface HookScenario { + getKeyword(): string; + getName(): string; + getDescription(): string; + getUri(): string; + getLine(): number; + getTags(): string[]; + getException(): Error; + getAttachments(): any[]; + attach(data: any, mimeType?: string, callback?: (err?: any) => void): void; + isSuccessful(): boolean; + isFailed(): boolean; + isPending(): boolean; + isUndefined(): boolean; + isSkipped(): boolean; } interface HookCode { (scenario: HookScenario, callback?: CallbackStepDefinition): void; } - interface AroundCode{ - (scenario: HookScenario, runScenario?: (error:string, callback?:Function)=>void): void; + interface AroundCode { + (scenario: HookScenario, runScenario?: (error: string, callback?: Function) => void): void; } export interface Hooks { Before(code: HookCode): void; After(code: HookCode): void; - Around(code: AroundCode):void; - setDefaultTimeout(time:number): void; - registerHandler(handlerOption:string, code:(event:any, callback:CallbackStepDefinition) =>void): void; + Around(code: AroundCode): void; + setDefaultTimeout(time: number): void; + registerHandler(handlerOption: string, code: (event: any, callback: CallbackStepDefinition) => void): void; } } diff --git a/cuid/index.d.ts b/cuid/index.d.ts index d7979eefcd..d6de63c92b 100644 --- a/cuid/index.d.ts +++ b/cuid/index.d.ts @@ -3,7 +3,6 @@ // Definitions by: Dave Keen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - declare function cuid(): string; -export = cuid +export = cuid; diff --git a/d3-dsv/v0/index.d.ts b/d3-dsv/v0/index.d.ts index b798c4fcbe..ec5f832208 100644 --- a/d3-dsv/v0/index.d.ts +++ b/d3-dsv/v0/index.d.ts @@ -14,14 +14,14 @@ declare var loader: ( export = loader; export as namespace d3_dsv; -declare module _d3dsv { +declare namespace _d3dsv { /** A parser and formatter for DSV (CSV and TSV) files. Extracted from D3. */ export class D3Dsv { - /** Parses the specified string, which is the contents of a CSV file, returning an array of objects representing the parsed rows. - The string is assumed to be RFC4180-compliant. - Unlike the parseRows method, this method requires that the first line of the CSV file contains a comma-separated list of column names; - these column names become the attributes on the returned objects. + /** Parses the specified string, which is the contents of a CSV file, returning an array of objects representing the parsed rows. + The string is assumed to be RFC4180-compliant. + Unlike the parseRows method, this method requires that the first line of the CSV file contains a comma-separated list of column names; + these column names become the attributes on the returned objects. For example, consider the following CSV file: Year,Make,Model,Length @@ -34,7 +34,7 @@ The resulting JavaScript array is: {"Year": "2000", "Make": "Mercury", "Model": "Cougar", "Length": "2.38"} ] */ public parse( - table: string, + table: string, /** coerce cells (strings) into different types or modify them. return null to strip this row from the output results. */ accessor?: (row: any) => TRow ): TRow[]; diff --git a/d3-selection/index.d.ts b/d3-selection/index.d.ts index 5919e9ce39..bbad735dbb 100644 --- a/d3-selection/index.d.ts +++ b/d3-selection/index.d.ts @@ -60,7 +60,7 @@ export type CustomEventParameters = { * Any custom data associated with the event */ detail: any; -} +}; /** * Callback type for selections and transitions @@ -1042,7 +1042,7 @@ export type NamespaceLocalObject = { * Name of the local to be namespaced. */ local: string -} +}; /** * Obtain an object with properties of fully qualified namespace string and @@ -1120,7 +1120,7 @@ export function matcher(selector: string): (this: BaseType) => boolean; * * @param selector A CSS selector string. */ -export function selector(selector: string): (this: BaseType) => DescElement +export function selector(selector: string): (this: BaseType) => DescElement; /** * Given the specified selector, returns a function which returns all descendants of "this" element that match the specified selector. diff --git a/d3-shape/index.d.ts b/d3-shape/index.d.ts index cf3f0a5c21..9fb28a092a 100644 --- a/d3-shape/index.d.ts +++ b/d3-shape/index.d.ts @@ -369,10 +369,10 @@ export function stack(): Stack; export function stackOrderAscending(series: Series): Array; -export function stackOrderDescending(series: Series): Array -export function stackOrderInsideOut(series: Series): Array -export function stackOrderNone(series: Series): Array -export function stackOrderReverse(series: Series): Array +export function stackOrderDescending(series: Series): Array; +export function stackOrderInsideOut(series: Series): Array; +export function stackOrderNone(series: Series): Array; +export function stackOrderReverse(series: Series): Array; export function stackOffsetExpand(series: Series, order: Array): void; export function stackOffsetNone(series: Series, order: Array): void; diff --git a/d3kit/d3kit-v1.1.0.d.ts b/d3kit/d3kit-v1.1.0.d.ts index ef6405b04d..41187b7e7e 100644 --- a/d3kit/d3kit-v1.1.0.d.ts +++ b/d3kit/d3kit-v1.1.0.d.ts @@ -16,7 +16,7 @@ declare namespace d3kit { export interface ChartOptions { margin?: ChartMargin; - offset?: [number,number]; + offset?: [number, number]; initialWidth?: number; initialHeight?: number; [name: string]: any; @@ -55,7 +55,7 @@ declare namespace d3kit { dimension(): [number, number]; dimension(dimension: [number|string, number|string], doNotDispatch?: boolean): Skeleton; autoResize(mode?: string|boolean): string|boolean|void; - autoResizeDetection(method?:string): string|void; + autoResizeDetection(method?: string): string|void; autoResizeToAspectRatio(ratio?: number|boolean): number|boolean|void; // Other functions @@ -78,9 +78,9 @@ declare namespace d3kit { export class Chartlet { constructor( - enterFunction?: ChartletEventFunction, - updateFunction?: ChartletEventFunction, - exitFunction?: ChartletEventFunction, + enterFunction?: ChartletEventFunction, + updateFunction?: ChartletEventFunction, + exitFunction?: ChartletEventFunction, customEventName?: Array); // Getter functions @@ -107,9 +107,9 @@ declare namespace d3kit { } interface LayerConfig { - name?: string, - names?: Array, - sublayers?: LayerConfig + name?: string; + names?: Array; + sublayers?: LayerConfig; } export class LayerOrganizer { diff --git a/d3pie/index.d.ts b/d3pie/index.d.ts index 2bfe5d6525..00b95e9e9a 100644 --- a/d3pie/index.d.ts +++ b/d3pie/index.d.ts @@ -5,27 +5,27 @@ declare namespace d3pie { interface ID3PieChart { - redraw(): void - openSegment(index: number): void - closeSegment(index: void): void - getOpenSegment(): any - updateProp(propKey: string, value: any): void - destroy(): void + redraw(): void; + openSegment(index: number): void; + closeSegment(index: void): void; + getOpenSegment(): any; + updateProp(propKey: string, value: any): void; + destroy(): void; } interface ID3PieStyleOptions { - color?: string - fontSize?: number - font?: string + color?: string; + fontSize?: number; + font?: string; } interface ID3PieTextOptions extends ID3PieStyleOptions { - text?: string + text?: string; } interface ID3PieLabelsOptions { - format?: 'label' | 'value' | 'percentage' | 'label-value1' | 'label-value2' | 'label-percentage1' | 'label-percentage2' - hideWhenLessThanPercentage?: number + format?: 'label' | 'value' | 'percentage' | 'label-value1' | 'label-value2' | 'label-percentage1' | 'label-percentage2'; + hideWhenLessThanPercentage?: number; } interface ID3PieOptions { @@ -34,14 +34,14 @@ declare namespace d3pie { subtitle?: ID3PieTextOptions location?: 'top-center' | 'top-left' | 'pie-center' titleSubtitlePadding?: number - } - footer?: { location?: 'left' } & ID3PieTextOptions + }; + footer?: { location?: 'left' } & ID3PieTextOptions; size?: { canvasHeight?: number canvasWidth?: number pieOuterRadius?: string | number pieInnerRadius?: string | number - } + }; data: { sortOrder?: 'none' | 'random' | 'value-asc' | 'value-desc' | 'label-asc' | 'label-desc' smallSegmentGrouping?: { @@ -56,7 +56,7 @@ declare namespace d3pie { value: number color?: string }[] - } + }; labels?: { outer?: { pieDistance?: number } & ID3PieLabelsOptions inner?: ID3PieLabelsOptions @@ -77,7 +77,7 @@ declare namespace d3pie { value: number label: string }) => string - } + }; effects?: { load?: { effect?: 'none' | 'default' @@ -90,7 +90,7 @@ declare namespace d3pie { } highlightSegmentOnMouseover?: boolean highlightLuminosity?: number - } + }; tooltips?: { enabled?: boolean type?: 'placeholder' | 'caption' @@ -106,7 +106,7 @@ declare namespace d3pie { fontSize?: number padding?: number } - } + }; misc?: { colors?: { background?: string @@ -129,18 +129,18 @@ declare namespace d3pie { y?: number } cssPrefix?: string - } + }; callbacks?: { onload?: Function onMouseoverSegment?: Function onMouseoutSegment?: Function onClickSegment?: Function - } + }; } interface ID3PieClass { - new (id: string | HTMLElement, options: ID3PieOptions): ID3PieChart + new (id: string | HTMLElement, options: ID3PieOptions): ID3PieChart; } } -declare const d3pie: d3pie.ID3PieClass \ No newline at end of file +declare const d3pie: d3pie.ID3PieClass; \ No newline at end of file diff --git a/dat-gui/index.d.ts b/dat-gui/index.d.ts index a38699e0bb..2bd7e72d07 100644 --- a/dat-gui/index.d.ts +++ b/dat-gui/index.d.ts @@ -11,17 +11,17 @@ declare namespace dat { __folders: GUI[]; domElement: HTMLElement; - add(target: Object, propName:string): GUIController; - add(target: Object, propName:string, min: number, max: number): GUIController; - add(target: Object, propName:string, status: boolean): GUIController; - add(target: Object, propName:string, items:string[]): GUIController; - add(target: Object, propName:string, items:number[]): GUIController; - add(target: Object, propName:string, items:Object): GUIController; + add(target: Object, propName: string): GUIController; + add(target: Object, propName: string, min: number, max: number): GUIController; + add(target: Object, propName: string, status: boolean): GUIController; + add(target: Object, propName: string, items: string[]): GUIController; + add(target: Object, propName: string, items: number[]): GUIController; + add(target: Object, propName: string, items: Object): GUIController; - addColor(target: Object, propName:string): GUIController; - addColor(target: Object, propName:string, color: string): GUIController; - addColor(target: Object, propName:string, rgba: number[]): GUIController; // rgb or rgba - addColor(target: Object, propName:string, hsv:{h:number; s:number; v:number}): GUIController; + addColor(target: Object, propName: string): GUIController; + addColor(target: Object, propName: string, color: string): GUIController; + addColor(target: Object, propName: string, rgba: number[]): GUIController; // rgb or rgba + addColor(target: Object, propName: string, hsv: {h: number; s: number; v: number}): GUIController; remove(controller: GUIController): void; destroy(): void; @@ -54,7 +54,7 @@ declare namespace dat { useLocalStorage: boolean; } - export interface GUIParams{ + export interface GUIParams { autoPlace?: boolean; closed?: boolean; load?: any; diff --git a/data-driven/index.d.ts b/data-driven/index.d.ts index e6fc06051d..ee8fb9d403 100644 --- a/data-driven/index.d.ts +++ b/data-driven/index.d.ts @@ -5,4 +5,4 @@ declare function data_driven(data: T[], callback: () => any): any; -export = data_driven +export = data_driven; diff --git a/datatables-buttons/index.d.ts b/datatables-buttons/index.d.ts index 3bb8d5c02c..db9620083c 100644 --- a/datatables-buttons/index.d.ts +++ b/datatables-buttons/index.d.ts @@ -86,7 +86,7 @@ declare namespace DataTables { } export interface FunctionButtonAvailable { - (dt: DataTables.DataTable, config: any): boolean + (dt: DataTables.DataTable, config: any): boolean; } export interface ButtonExportOptions { columns?: string; @@ -101,18 +101,18 @@ declare namespace DataTables { } export interface ButtonText { - (dt: DataTables.DataTable, node: JQuery, config: any): string + (dt: DataTables.DataTable, node: JQuery, config: any): string; } export interface FunctionButtonInit { - (dt: DataTables.DataTable, node: JQuery, config: any): void + (dt: DataTables.DataTable, node: JQuery, config: any): void; } // api object? export interface FunctionButtonAction { - (e: any, dt: DataTables.DataTable, node: JQuery, config: any): void + (e: any, dt: DataTables.DataTable, node: JQuery, config: any): void; } export interface FunctionButtonCustomize { - (win: Window): void + (win: Window): void; } //#endregion "button-settings } diff --git a/date.format.js/index.d.ts b/date.format.js/index.d.ts index 7911cbe8c4..15f9ed5e38 100644 --- a/date.format.js/index.d.ts +++ b/date.format.js/index.d.ts @@ -177,7 +177,7 @@ interface Date { * @param {string=} mask * @param {boolean=} utc */ - format(mask?: string, utc?: boolean) : string; + format(mask?: string, utc?: boolean): string; } // Some common format strings @@ -213,6 +213,6 @@ interface DateFormatI18n { */ declare var dateFormat: { (date?: any, mask?: string, utc?: boolean ): string; - masks : DateFormatMasks; - i18n : DateFormatI18n; + masks: DateFormatMasks; + i18n: DateFormatI18n; }; diff --git a/datejs/datejs-tests.ts b/datejs/datejs-tests.ts index ee37c91b70..9f22850cbd 100644 --- a/datejs/datejs-tests.ts +++ b/datejs/datejs-tests.ts @@ -15,7 +15,7 @@ function tests() { // Number fun (3).days().ago(); - + // 6 months from now var n = 6; n.months().fromNow(); diff --git a/db-migrate-base/db-migrate-base-tests.ts b/db-migrate-base/db-migrate-base-tests.ts index 79d81a75f9..1b9164856d 100644 --- a/db-migrate-base/db-migrate-base-tests.ts +++ b/db-migrate-base/db-migrate-base-tests.ts @@ -23,7 +23,7 @@ db.createTable('pets', { ifNotExists: true }, callback); -db.createTable('product_variant', +db.createTable('product_variant', { id: { type: 'int', @@ -50,7 +50,7 @@ db.createTable('product_variant', } }, callback); -db.createTable('product_variant', +db.createTable('product_variant', { id: { type: 'int', @@ -182,7 +182,7 @@ db.createTableAsync('pets', { ifNotExists: true }).then(onResolve); -db.createTableAsync('product_variant', +db.createTableAsync('product_variant', { id: { type: 'int', @@ -209,7 +209,7 @@ db.createTableAsync('product_variant', } }).then(onResolve); -db.createTableAsync('product_variant', +db.createTableAsync('product_variant', { id: { type: 'int', diff --git a/db-migrate-pg/db-migrate-pg-tests.ts b/db-migrate-pg/db-migrate-pg-tests.ts index adf2716074..1b4120f914 100644 --- a/db-migrate-pg/db-migrate-pg-tests.ts +++ b/db-migrate-pg/db-migrate-pg-tests.ts @@ -23,7 +23,7 @@ db.createTable('pets', { ifNotExists: true }, callback); -db.createTable('product_variant', +db.createTable('product_variant', { id: { type: 'int', @@ -50,7 +50,7 @@ db.createTable('product_variant', } }, callback); -db.createTable('product_variant', +db.createTable('product_variant', { id: { type: 'int', @@ -182,7 +182,7 @@ db.createTableAsync('pets', { ifNotExists: true }).then(onResolve); -db.createTableAsync('product_variant', +db.createTableAsync('product_variant', { id: { type: 'int', @@ -209,7 +209,7 @@ db.createTableAsync('product_variant', } }).then(onResolve); -db.createTableAsync('product_variant', +db.createTableAsync('product_variant', { id: { type: 'int', diff --git a/db.js/index.d.ts b/db.js/index.d.ts index fa962dc0a3..bdea76cda3 100644 --- a/db.js/index.d.ts +++ b/db.js/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Chris Wrench // Definitions: https://github.com/borisyankov/DefinitelyTyped -declare module DbJs { +declare namespace DbJs { interface ErrorListener { (err: Error): void; } diff --git a/dc/dc-1.6.0.d.ts b/dc/dc-1.6.0.d.ts index 9938d3bc45..0bea4d51df 100644 --- a/dc/dc-1.6.0.d.ts +++ b/dc/dc-1.6.0.d.ts @@ -15,7 +15,7 @@ declare namespace dc { // helper for get/set situation interface IGetSet { (): T; - (t:T): V; + (t: T): V; } export interface ILegendwidget { x: IGetSet; @@ -35,24 +35,24 @@ export interface ILegendwidget { group: IGetSet; // not sure here transitionDuration: IGetSet; colors: IGetSet; - keyAccessor: IGetSet<(d:any) => number, T>; - valueAccessor: IGetSet<(d:any) => number, T>; - label: IGetSet<(l:any) => string, T>; + keyAccessor: IGetSet<(d: any) => number, T>; + valueAccessor: IGetSet<(d: any) => number, T>; + label: IGetSet<(l: any) => string, T>; renderLabel: IGetSet; - renderlet: (fnctn: (t:T) => void) => T; - title: IGetSet<(t:string) => string, T>; + renderlet: (fnctn: (t: T) => void) => T; + title: IGetSet<(t: string) => string, T>; filter: IGetSet; filterAll: () => void; expireCache: () => void; - legend: (l:ILegendwidget) => T; + legend: (l: ILegendwidget) => T; chartID: () => number; - options: (o:Object)=>void ; + options: (o: Object) => void ; select: (selector: d3.Selection) => d3.Selection; selectAll: (selector: d3.Selection) => d3.Selection; } export interface IEvents { - trigger(fnctn: () => void, delay?: number):void; + trigger(fnctn: () => void, delay?: number): void; } export var events: IEvents; @@ -86,7 +86,7 @@ export interface ILegendwidget { colorDomain: IGetSet; } export interface IAbstractStackableChart { - stack: (group: IChartGroup, name?:string, retriever?: (d:Object)=>number) => T; + stack: (group: IChartGroup, name?: string, retriever?: (d: Object) => number) => T; } export interface IAbstractCoordinateGridChart { @@ -103,17 +103,17 @@ export interface ILegendwidget { export interface IAbstractBubblechart { r: IGetSet; - radiusValueAccessor: IGetSet<(d:any) => number, T>; + radiusValueAccessor: IGetSet<(d: any) => number, T>; } // function interfaces export interface columnFunction { - (rowinfo:any): string; + (rowinfo: any): string; } export interface sortbyFunction { - (rowinfo:any): any; + (rowinfo: any): any; } export interface orderFunction { (a: T, b: T): number; @@ -150,7 +150,7 @@ export interface ILegendwidget { IAbstractCoordinateGridChart, IMarginable, IListener { - centerBar: (b:boolean) => IBarchart; + centerBar: (b: boolean) => IBarchart; gap: (gapBetweenBars: number) => IBarchart; } diff --git a/dc/index.d.ts b/dc/index.d.ts index b0291d703c..c22699d459 100644 --- a/dc/index.d.ts +++ b/dc/index.d.ts @@ -180,7 +180,7 @@ declare namespace DC { } export interface MarginMixin { - margins: IGetSet + margins: IGetSet; } export interface ColorMixin { diff --git a/debounce/index.d.ts b/debounce/index.d.ts index 43b1630689..29045122e7 100644 --- a/debounce/index.d.ts +++ b/debounce/index.d.ts @@ -6,5 +6,5 @@ // Overload on boolean constants would allow us to narrow further, // but it is not implemented for TypeScript yet -declare function f(f: A, interval?: number, immediate?: boolean): A +declare function f(f: A, interval?: number, immediate?: boolean): A; export default f; diff --git a/debug/index.d.ts b/debug/index.d.ts index 45d3ad02f3..4f28d8521e 100644 --- a/debug/index.d.ts +++ b/debug/index.d.ts @@ -10,20 +10,20 @@ export as namespace debug; declare namespace debug { export interface IDebug { - (namespace: string): debug.IDebugger, - coerce: (val: any) => any, - disable: () => void, - enable: (namespaces: string) => void, - enabled: (namespaces: string) => boolean, + (namespace: string): debug.IDebugger; + coerce: (val: any) => any; + disable: () => void; + enable: (namespaces: string) => void; + enabled: (namespaces: string) => boolean; - names: string[], - skips: string[], + names: string[]; + skips: string[]; - formatters: IFormatters + formatters: IFormatters; } export interface IFormatters { - [formatter: string]: Function + [formatter: string]: Function; } export interface IDebugger { diff --git a/denodeify/index.d.ts b/denodeify/index.d.ts index d5283bf777..f89851de58 100644 --- a/denodeify/index.d.ts +++ b/denodeify/index.d.ts @@ -15,7 +15,7 @@ declare function _(fn: _.F7, tra declare function _(fn: _.F8, transformer?: _.M): (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H) => Promise; declare function _(fn: _.F, transformer?: _.M): (...args: any[]) => Promise; -declare module _ { +declare namespace _ { type Callback = (err: Error, result: R) => any; type F0 = (cb: Callback) => any; type F1 = (a: A, cb: Callback) => any; diff --git a/depd/depd-tests.ts b/depd/depd-tests.ts index 99330a757d..90bb64bd3f 100644 --- a/depd/depd-tests.ts +++ b/depd/depd-tests.ts @@ -38,12 +38,12 @@ interface ITestDeprecatedFunction { var obj2 = {}; -// message automatically derived from function name +// message automatically derived from function name obj2.func1 = deprecate.function(function func1() { console.log('all calls to [func1] are deprecated '); }); -// specific message +// specific message obj2.func2 = deprecate.function(function () { console.log('all calls to [func2] are deprecated '); }, 'func2'); diff --git a/deployjava/deployJava-tests.ts b/deployjava/deployJava-tests.ts index b8ca98fc52..4de93de3ad 100644 --- a/deployjava/deployJava-tests.ts +++ b/deployjava/deployJava-tests.ts @@ -13,7 +13,7 @@ function testAllowPlugin() { function testCompareVersions() { var installed = '1.8'; var required = '1.7'; - + var result = deployJava.compareVersions(installed, required); } @@ -25,7 +25,7 @@ function testCompareVersionToPattern() { var patternArray: Array = ['1.6', '1.7', '1.8']; var familyMatch: boolean = false; var minMatch: boolean = true; - + var result = deployJava.compareVersionToPattern(version, patternArray, familyMatch, minMatch); } @@ -180,10 +180,10 @@ function testRunApplet() { width:710, height:540 }; - + var parameters: Object = { fontSize:16, permissions:'sandbox' }; var version: string = '1.8'; - + deployJava.runApplet(attributes, parameters); deployJava.runApplet(attributes, parameters, version); } @@ -267,7 +267,7 @@ function testWriteAppletTag() { width:710, height:540 }; - + var parameters: Object = { fontSize:16, permissions:'sandbox' }; deployJava.writeAppletTag(attributes, parameters); } diff --git a/devexpress-web/devexpress-web-tests.ts b/devexpress-web/devexpress-web-tests.ts index 0f182ad19a..f5efb2b0fc 100644 --- a/devexpress-web/devexpress-web-tests.ts +++ b/devexpress-web/devexpress-web-tests.ts @@ -6,7 +6,7 @@ declare var loginPopup: ASPxClientPopupControl; declare var searchButton: ASPxClientButton; declare var searchComboBox: ASPxClientComboBox; declare var roomsNumberSpinEdit: ASPxClientSpinEdit; -declare var adultsNumberSpinEdit: ASPxClientSpinEdit; +declare var adultsNumberSpinEdit: ASPxClientSpinEdit; declare var childrenNumberSpinEdit: ASPxClientSpinEdit; declare var checkInDateEdit: ASPxClientDateEdit; declare var checkOutDateEdit: ASPxClientDateEdit; diff --git a/devexpress-web/index.d.ts b/devexpress-web/index.d.ts index 7c3eeda936..e9c3d2714e 100644 --- a/devexpress-web/index.d.ts +++ b/devexpress-web/index.d.ts @@ -1419,10 +1419,10 @@ interface ASPxClientDashboardItemAction { Actions: any[]; } declare enum ASPxClientDashboardAction { - SetMasterFilter=0, - ClearMasterFilter=1, - DrillDown=2, - DrillUp=3 + SetMasterFilter = 0, + ClearMasterFilter = 1, + DrillDown = 2, + DrillUp = 3 } /** * References a method that will handle the MasterFilterSet event. @@ -1653,7 +1653,7 @@ interface ASPxClientBinaryImage extends ASPxClientEdit { GetValue(): Object; /** * For internal use only. - * @param value + * @param value */ SetValue(value: Object): void; /** @@ -3661,7 +3661,7 @@ interface ASPxClientCardView extends ASPxClientGridBase { * @param column An ASPxClientCardViewColumn object that represents the data column. * @param sortOrder A string value that specifies the column's sort order ('ASC', 'DSC' or 'NONE'). * @param reset true to clear any previous sorting; otherwise, false. - * @param sortIndex + * @param sortIndex */ SortBy(column: ASPxClientCardViewColumn, sortOrder: string, reset: boolean, sortIndex: number): void; /** @@ -6293,7 +6293,7 @@ interface ASPxClientVerticalGrid extends ASPxClientGridBase { * @param rowIndex An integer value that specifies the row's position within the row collection. * @param sortOrder A string value that specifies the row's sort order ('ASC', 'DSC' or 'NONE'). * @param reset true to clear any previous sorting; otherwise, false. - * @param sortIndex + * @param sortIndex */ SortBy(rowIndex: number, sortOrder: string, reset: boolean, sortIndex: number): void; /** @@ -9642,16 +9642,16 @@ interface TableStyle extends StyleBase { parent: TableStyle; } declare enum HeaderFooterType { - First=0, - Odd=1, - Primary=1, - Even=2 + First = 0, + Odd = 1, + Primary = 1, + Even = 2 } declare enum SubDocumentType { - Main=0, - Header=1, - Footer=2, - TextBox=3 + Main = 0, + Header = 1, + Footer = 2, + TextBox = 3 } /** * Contains a set of methods and properties to work with the document selection. @@ -9889,7 +9889,7 @@ interface DeleteBookmarkCommand extends CommandWithSimpleStateBase { interface GoToBookmarkCommand extends CommandWithSimpleStateBase { /** * Executes the GoToBookmarkCommand command by applying the specified setting. May result in taking no action if the command's state does not allow command execution. Use the object's getState method to check the command state. - * @param name + * @param name */ execute(name: string): boolean; } @@ -10165,14 +10165,14 @@ interface MailMergeSettings { mergeMode: any; } declare enum MergeMode { - NewParagraph=0, - NewSection=1, - JoinTables=2 + NewParagraph = 0, + NewSection = 1, + JoinTables = 2 } declare enum MailMergeExportRange { - AllRecords=0, - CurrentRecord=1, - Range=2 + AllRecords = 0, + CurrentRecord = 1, + Range = 2 } /** * A command to create a new empty document. @@ -10648,71 +10648,71 @@ interface ListLevelSettings { fontItalic: boolean; } declare enum ListLevelFormat { - Decimal=0, - AIUEOHiragana=1, - AIUEOFullWidthHiragana=2, - ArabicAbjad=3, - ArabicAlpha=4, - Bullet=5, - CardinalText=6, - Chicago=7, - ChineseCounting=8, - ChineseCountingThousand=9, - ChineseLegalSimplified=10, - Chosung=11, - DecimalEnclosedCircle=12, - DecimalEnclosedCircleChinese=13, - DecimalEnclosedFullstop=14, - DecimalEnclosedParentheses=15, - DecimalFullWidth=16, - DecimalFullWidth2=17, - DecimalHalfWidth=18, - DecimalZero=19, - Ganada=20, - Hebrew1=21, - Hebrew2=22, - Hex=23, - HindiConsonants=24, - HindiDescriptive=25, - HindiNumbers=26, - HindiVowels=27, - IdeographDigital=28, - IdeographEnclosedCircle=29, - IdeographLegalTraditional=30, - IdeographTraditional=31, - IdeographZodiac=32, - IdeographZodiacTraditional=33, - Iroha=34, - IrohaFullWidth=35, - JapaneseCounting=36, - JapaneseDigitalTenThousand=37, - JapaneseLegal=38, - KoreanCounting=39, - KoreanDigital=40, - KoreanDigital2=41, - KoreanLegal=42, - LowerLetter=43, - LowerRoman=44, - None=45, - NumberInDash=46, - Ordinal=47, - OrdinalText=48, - RussianLower=49, - RussianUpper=50, - TaiwaneseCounting=51, - TaiwaneseCountingThousand=52, - TaiwaneseDigital=53, - ThaiDescriptive=54, - ThaiLetters=55, - ThaiNumbers=56, - UpperLetter=57, - UpperRoman=58, - VietnameseDescriptive=59 + Decimal = 0, + AIUEOHiragana = 1, + AIUEOFullWidthHiragana = 2, + ArabicAbjad = 3, + ArabicAlpha = 4, + Bullet = 5, + CardinalText = 6, + Chicago = 7, + ChineseCounting = 8, + ChineseCountingThousand = 9, + ChineseLegalSimplified = 10, + Chosung = 11, + DecimalEnclosedCircle = 12, + DecimalEnclosedCircleChinese = 13, + DecimalEnclosedFullstop = 14, + DecimalEnclosedParentheses = 15, + DecimalFullWidth = 16, + DecimalFullWidth2 = 17, + DecimalHalfWidth = 18, + DecimalZero = 19, + Ganada = 20, + Hebrew1 = 21, + Hebrew2 = 22, + Hex = 23, + HindiConsonants = 24, + HindiDescriptive = 25, + HindiNumbers = 26, + HindiVowels = 27, + IdeographDigital = 28, + IdeographEnclosedCircle = 29, + IdeographLegalTraditional = 30, + IdeographTraditional = 31, + IdeographZodiac = 32, + IdeographZodiacTraditional = 33, + Iroha = 34, + IrohaFullWidth = 35, + JapaneseCounting = 36, + JapaneseDigitalTenThousand = 37, + JapaneseLegal = 38, + KoreanCounting = 39, + KoreanDigital = 40, + KoreanDigital2 = 41, + KoreanLegal = 42, + LowerLetter = 43, + LowerRoman = 44, + None = 45, + NumberInDash = 46, + Ordinal = 47, + OrdinalText = 48, + RussianLower = 49, + RussianUpper = 50, + TaiwaneseCounting = 51, + TaiwaneseCountingThousand = 52, + TaiwaneseDigital = 53, + ThaiDescriptive = 54, + ThaiLetters = 55, + ThaiNumbers = 56, + UpperLetter = 57, + UpperRoman = 58, + VietnameseDescriptive = 59 } declare enum ListLevelNumberAlignment { - Left=0, - Center=1, - Right=2 + Left = 0, + Center = 1, + Right = 2 } /** * A command to invoke the Insert Image dialog. @@ -10882,8 +10882,8 @@ interface OpenPageMarginsDialogCommand extends CommandWithSimpleStateBase { */ interface ChangePageOrientationCommand extends CommandBase { /** - * - * @param isPortrait + * + * @param isPortrait */ execute(isPortrait: any): boolean; /** @@ -11135,8 +11135,8 @@ interface Margins { bottom: number; } declare enum Orientation { - Landscape=0, - Portrait=1 + Landscape = 0, + Portrait = 1 } /** * A command to increment the indent level of paragraphs in a selected range. @@ -11388,19 +11388,19 @@ interface TabSettings { deleted: boolean; } declare enum TabAlign { - Left=0, - Center=1, - Right=2, - Decimal=3 + Left = 0, + Center = 1, + Right = 2, + Decimal = 3 } declare enum TabLeaderType { - None=0, - Dots=1, - MiddleDots=2, - Hyphens=3, - Underline=4, - ThickLine=5, - EqualSign=6 + None = 0, + Dots = 1, + MiddleDots = 2, + Hyphens = 3, + Underline = 4, + ThickLine = 5, + EqualSign = 6 } /** * Contains settings to define the paragraph formatting. @@ -11478,23 +11478,23 @@ interface ParagraphFormattingSettings { backColor: string; } declare enum ParagraphAlignment { - Left=0, - Right=1, - Center=2, - Justify=3 + Left = 0, + Right = 1, + Center = 2, + Justify = 3 } declare enum ParagraphLineSpacingType { - Single=0, - Sesquialteral=1, - Double=2, - Multiple=3, - Exactly=4, - AtLeast=5 + Single = 0, + Sesquialteral = 1, + Double = 2, + Multiple = 3, + Exactly = 4, + AtLeast = 5 } declare enum ParagraphFirstLineIndent { - None=0, - Indented=1, - Hanging=2 + None = 0, + Indented = 1, + Hanging = 2 } interface OpenSpellingDialogCommand extends CommandWithSimpleStateBase { execute(): boolean; @@ -12105,197 +12105,197 @@ interface TableBorderSettings { style: any; } declare enum BorderLineStyle { - None=0, - Single=1, - Thick=2, - Double=3, - Dotted=4, - Dashed=5, - DotDash=6, - DotDotDash=7, - Triple=8, - ThinThickSmallGap=9, - ThickThinSmallGap=10, - ThinThickThinSmallGap=11, - ThinThickMediumGap=12, - ThickThinMediumGap=13, - ThinThickThinMediumGap=14, - ThinThickLargeGap=15, - ThickThinLargeGap=16, - ThinThickThinLargeGap=17, - Wave=18, - DoubleWave=19, - DashSmallGap=20, - DashDotStroked=21, - ThreeDEmboss=22, - ThreeDEngrave=23, - Outset=24, - Inset=25, - Apples=26, - ArchedScallops=27, - BabyPacifier=28, - BabyRattle=29, - Balloons3Colors=30, - BalloonsHotAir=31, - BasicBlackDashes=32, - BasicBlackDots=33, - BasicBlackSquares=34, - BasicThinLines=35, - BasicWhiteDashes=36, - BasicWhiteDots=37, - BasicWhiteSquares=38, - BasicWideInline=39, - BasicWideMidline=40, - BasicWideOutline=41, - Bats=42, - Birds=43, - BirdsFlight=44, - Cabins=45, - CakeSlice=46, - CandyCorn=47, - CelticKnotwork=48, - CertificateBanner=49, - ChainLink=50, - ChampagneBottle=51, - CheckedBarBlack=52, - CheckedBarColor=53, - Checkered=54, - ChristmasTree=55, - CirclesLines=56, - CirclesRectangles=57, - ClassicalWave=58, - Clocks=59, - Compass=60, - Confetti=61, - ConfettiGrays=62, - ConfettiOutline=63, - ConfettiStreamers=64, - ConfettiWhite=65, - CornerTriangles=66, - CouponCutoutDashes=67, - CouponCutoutDots=68, - CrazyMaze=69, - CreaturesButterfly=70, - CreaturesFish=71, - CreaturesInsects=72, - CreaturesLadyBug=73, - CrossStitch=74, - Cup=75, - DecoArch=76, - DecoArchColor=77, - DecoBlocks=78, - DiamondsGray=79, - DoubleD=80, - DoubleDiamonds=81, - Earth1=82, - Earth2=83, - EclipsingSquares1=84, - EclipsingSquares2=85, - EggsBlack=86, - Fans=87, - Film=88, - Firecrackers=89, - FlowersBlockPrint=90, - FlowersDaisies=91, - FlowersModern1=92, - FlowersModern2=93, - FlowersPansy=94, - FlowersRedRose=95, - FlowersRoses=96, - FlowersTeacup=97, - FlowersTiny=98, - Gems=99, - GingerbreadMan=100, - Gradient=101, - Handmade1=102, - Handmade2=103, - HeartBalloon=104, - HeartGray=105, - Hearts=106, - HeebieJeebies=107, - Holly=108, - HouseFunky=109, - Hypnotic=110, - IceCreamCones=111, - LightBulb=112, - Lightning1=113, - Lightning2=114, - MapleLeaf=115, - MapleMuffins=116, - MapPins=117, - Marquee=118, - MarqueeToothed=119, - Moons=120, - Mosaic=121, - MusicNotes=122, - Northwest=123, - Ovals=124, - Packages=125, - PalmsBlack=126, - PalmsColor=127, - PaperClips=128, - Papyrus=129, - PartyFavor=130, - PartyGlass=131, - Pencils=132, - People=133, - PeopleHats=134, - PeopleWaving=135, - Poinsettias=136, - PostageStamp=137, - Pumpkin1=138, - PushPinNote1=139, - PushPinNote2=140, - Pyramids=141, - PyramidsAbove=142, - Quadrants=143, - Rings=144, - Safari=145, - Sawtooth=146, - SawtoothGray=147, - ScaredCat=148, - Seattle=149, - ShadowedSquares=150, - SharksTeeth=151, - ShorebirdTracks=152, - Skyrocket=153, - SnowflakeFancy=154, - Snowflakes=155, - Sombrero=156, - Southwest=157, - Stars=158, - Stars3d=159, - StarsBlack=160, - StarsShadowed=161, - StarsTop=162, - Sun=163, - Swirligig=164, - TornPaper=165, - TornPaperBlack=166, - Trees=167, - TriangleParty=168, - Triangles=169, - Tribal1=170, - Tribal2=171, - Tribal3=172, - Tribal4=173, - Tribal5=174, - Tribal6=175, - TwistedLines1=176, - TwistedLines2=177, - Vine=178, - Waveline=179, - WeavingAngles=180, - WeavingBraid=181, - WeavingRibbon=182, - WeavingStrips=183, - WhiteFlowers=184, - Woodwork=185, - XIllusions=186, - ZanyTriangles=187, - ZigZag=188, - ZigZagStitch=189, - Nil=-1 + None = 0, + Single = 1, + Thick = 2, + Double = 3, + Dotted = 4, + Dashed = 5, + DotDash = 6, + DotDotDash = 7, + Triple = 8, + ThinThickSmallGap = 9, + ThickThinSmallGap = 10, + ThinThickThinSmallGap = 11, + ThinThickMediumGap = 12, + ThickThinMediumGap = 13, + ThinThickThinMediumGap = 14, + ThinThickLargeGap = 15, + ThickThinLargeGap = 16, + ThinThickThinLargeGap = 17, + Wave = 18, + DoubleWave = 19, + DashSmallGap = 20, + DashDotStroked = 21, + ThreeDEmboss = 22, + ThreeDEngrave = 23, + Outset = 24, + Inset = 25, + Apples = 26, + ArchedScallops = 27, + BabyPacifier = 28, + BabyRattle = 29, + Balloons3Colors = 30, + BalloonsHotAir = 31, + BasicBlackDashes = 32, + BasicBlackDots = 33, + BasicBlackSquares = 34, + BasicThinLines = 35, + BasicWhiteDashes = 36, + BasicWhiteDots = 37, + BasicWhiteSquares = 38, + BasicWideInline = 39, + BasicWideMidline = 40, + BasicWideOutline = 41, + Bats = 42, + Birds = 43, + BirdsFlight = 44, + Cabins = 45, + CakeSlice = 46, + CandyCorn = 47, + CelticKnotwork = 48, + CertificateBanner = 49, + ChainLink = 50, + ChampagneBottle = 51, + CheckedBarBlack = 52, + CheckedBarColor = 53, + Checkered = 54, + ChristmasTree = 55, + CirclesLines = 56, + CirclesRectangles = 57, + ClassicalWave = 58, + Clocks = 59, + Compass = 60, + Confetti = 61, + ConfettiGrays = 62, + ConfettiOutline = 63, + ConfettiStreamers = 64, + ConfettiWhite = 65, + CornerTriangles = 66, + CouponCutoutDashes = 67, + CouponCutoutDots = 68, + CrazyMaze = 69, + CreaturesButterfly = 70, + CreaturesFish = 71, + CreaturesInsects = 72, + CreaturesLadyBug = 73, + CrossStitch = 74, + Cup = 75, + DecoArch = 76, + DecoArchColor = 77, + DecoBlocks = 78, + DiamondsGray = 79, + DoubleD = 80, + DoubleDiamonds = 81, + Earth1 = 82, + Earth2 = 83, + EclipsingSquares1 = 84, + EclipsingSquares2 = 85, + EggsBlack = 86, + Fans = 87, + Film = 88, + Firecrackers = 89, + FlowersBlockPrint = 90, + FlowersDaisies = 91, + FlowersModern1 = 92, + FlowersModern2 = 93, + FlowersPansy = 94, + FlowersRedRose = 95, + FlowersRoses = 96, + FlowersTeacup = 97, + FlowersTiny = 98, + Gems = 99, + GingerbreadMan = 100, + Gradient = 101, + Handmade1 = 102, + Handmade2 = 103, + HeartBalloon = 104, + HeartGray = 105, + Hearts = 106, + HeebieJeebies = 107, + Holly = 108, + HouseFunky = 109, + Hypnotic = 110, + IceCreamCones = 111, + LightBulb = 112, + Lightning1 = 113, + Lightning2 = 114, + MapleLeaf = 115, + MapleMuffins = 116, + MapPins = 117, + Marquee = 118, + MarqueeToothed = 119, + Moons = 120, + Mosaic = 121, + MusicNotes = 122, + Northwest = 123, + Ovals = 124, + Packages = 125, + PalmsBlack = 126, + PalmsColor = 127, + PaperClips = 128, + Papyrus = 129, + PartyFavor = 130, + PartyGlass = 131, + Pencils = 132, + People = 133, + PeopleHats = 134, + PeopleWaving = 135, + Poinsettias = 136, + PostageStamp = 137, + Pumpkin1 = 138, + PushPinNote1 = 139, + PushPinNote2 = 140, + Pyramids = 141, + PyramidsAbove = 142, + Quadrants = 143, + Rings = 144, + Safari = 145, + Sawtooth = 146, + SawtoothGray = 147, + ScaredCat = 148, + Seattle = 149, + ShadowedSquares = 150, + SharksTeeth = 151, + ShorebirdTracks = 152, + Skyrocket = 153, + SnowflakeFancy = 154, + Snowflakes = 155, + Sombrero = 156, + Southwest = 157, + Stars = 158, + Stars3d = 159, + StarsBlack = 160, + StarsShadowed = 161, + StarsTop = 162, + Sun = 163, + Swirligig = 164, + TornPaper = 165, + TornPaperBlack = 166, + Trees = 167, + TriangleParty = 168, + Triangles = 169, + Tribal1 = 170, + Tribal2 = 171, + Tribal3 = 172, + Tribal4 = 173, + Tribal5 = 174, + Tribal6 = 175, + TwistedLines1 = 176, + TwistedLines2 = 177, + Vine = 178, + Waveline = 179, + WeavingAngles = 180, + WeavingBraid = 181, + WeavingRibbon = 182, + WeavingStrips = 183, + WhiteFlowers = 184, + Woodwork = 185, + XIllusions = 186, + ZanyTriangles = 187, + ZigZag = 188, + ZigZagStitch = 189, + Nil = -1 } /** * Contains the settings to define the table cell formatting. @@ -12343,10 +12343,10 @@ interface TableCellFormattingSettings { marginsSameAsTable: boolean; } declare enum TableCellVerticalAlignment { - Top=0, - Both=1, - Center=2, - Bottom=3 + Top = 0, + Both = 1, + Center = 2, + Bottom = 3 } /** * Contains the settings to format a table. @@ -12430,23 +12430,23 @@ interface TableHeightUnit { type: any; } declare enum TableHeightUnitType { - Minimum=0, - Auto=1, - Exact=2 + Minimum = 0, + Auto = 1, + Exact = 2 } declare enum TableRowAlignment { - Both=0, - Center=1, - Distribute=2, - Left=3, - NumTab=4, - Right=5 + Both = 0, + Center = 1, + Distribute = 2, + Left = 3, + NumTab = 4, + Right = 5 } declare enum TableWidthUnitType { - Nil=0, - Auto=1, - FiftiethsOfPercent=2, - ModelUnits=3 + Nil = 0, + Auto = 1, + FiftiethsOfPercent = 2, + ModelUnits = 3 } /** * A command to change the font name of characters in a selected range. @@ -12779,9 +12779,9 @@ interface FontFormattingSettings { hidden: boolean; } declare enum CharacterFormattingScript { - Normal=0, - Subscript=1, - Superscript=2 + Normal = 0, + Subscript = 1, + Superscript = 2 } /** * A command to toggle the horizontal ruler's visibility. @@ -14354,8 +14354,8 @@ interface ASPxClientToolTipBase { */ Close(): void; /** - * - * @param bounds + * + * @param bounds */ CalculatePosition(bounds: Object): ASPxClientPoint; /** @@ -15861,9 +15861,9 @@ interface MVCxClientPopupControl extends ASPxClientPopupControl { */ PerformWindowCallback(window: ASPxClientPopupWindow, data: Object): void; /** - * - * @param window - * @param parameter + * + * @param window + * @param parameter */ PerformWindowCallback(window: ASPxClientPopupWindow, parameter: string): void; /** @@ -16081,9 +16081,9 @@ interface MVCxClientSchedulerTemplateToolTip extends ASPxClientToolTipBase { */ interface MVCxClientSchedulerToolTipDisplayingEventHandler { /** - * - * @param source - * @param e + * + * @param source + * @param e */ (source: S, e: MVCxClientSchedulerToolTipDisplayingEventArgs): void; } @@ -16369,7 +16369,7 @@ interface ASPxClientControlBase { GetClientVisible(): boolean; /** * Specifies whether a control is displayed. - * @param visible + * @param visible */ SetClientVisible(visible: boolean): void; /** @@ -16547,8 +16547,8 @@ interface ASPxClientEvent { ClearHandlers(): void; /** * For internal use only. - * @param source - * @param e + * @param source + * @param e */ FireEvent(source: Object, e: ASPxClientEventArgs): void; } @@ -16936,18 +16936,18 @@ interface ASPxClientControlCollection { */ GetByName(name: string): Object; /** - * - * @param predicate + * + * @param predicate */ GetControlsByPredicate(predicate: ASPxClientControlPredicate): Object[]; /** - * - * @param type + * + * @param type */ GetControlsByType(type: Object): Object[]; /** - * - * @param action + * + * @param action */ ForEachControl(action: ASPxClientControlAction): void; } @@ -19809,9 +19809,9 @@ interface ASPxClientPopupControl extends ASPxClientPopupControlBase { */ GetWindowPopUpReasonMouseEvent(window: ASPxClientPopupWindow): Object; /** - * - * @param window - * @param parameter + * + * @param window + * @param parameter */ PerformWindowCallback(window: ASPxClientPopupWindow, parameter: string): void; /** @@ -26150,9 +26150,9 @@ interface ASPxSchedulerDateTimeHelperStatic { */ ToDayTime(date: Date): any; /** - * - * @param date - * @param dayCount + * + * @param date + * @param dayCount */ AddDays(date: Date, dayCount: number): Date; /** diff --git a/devextreme/devextreme-15.1.3.d.ts b/devextreme/devextreme-15.1.3.d.ts index 432b6d4008..10d65988f5 100644 --- a/devextreme/devextreme-15.1.3.d.ts +++ b/devextreme/devextreme-15.1.3.d.ts @@ -18,7 +18,7 @@ declare namespace DevExpress { off(eventName: string, eventHandler: Function): T; } /** An object that serves as a namespace for the methods required to perform validation. */ - export module validationEngine { + export namespace validationEngine { export interface IValidator { validate(): ValidatorValidationResult; reset(): void; @@ -42,9 +42,9 @@ declare namespace DevExpress { reset(): void; } /** Provides access to the object that represents the specified validation group. */ - export function getGroupConfig(group: any): GroupConfig + export function getGroupConfig(group: any): GroupConfig; /** Provides access to the object that represents the default validation group. */ - export function getGroupConfig(): GroupConfig + export function getGroupConfig(): GroupConfig; /** Validates rules of the validators that belong to the specified validation group. */ export function validateGroup(group: any): ValidationGroupValidationResult; /** Validates rules of the validators that belong to the default validation group. */ @@ -56,7 +56,7 @@ declare namespace DevExpress { /** Validates the rules that are defined within the dxValidator objects that are registered for the specified ViewModel. */ export function validateModel(model: Object): ValidationGroupValidationResult; /** Registers all the dxValidator objects by which the fields of the specified ViewModel are extended. */ - export function registerModelForValidation(model: Object) : void; + export function registerModelForValidation(model: Object): void; } export var hardwareBackButton: JQueryCallback; /** Processes the hardware back button click. */ @@ -85,7 +85,7 @@ declare namespace DevExpress { urlFor(key: string): string; } /** An object that serves as a namespace for the methods that are used to animate UI elements. */ - export module fx { + export namespace fx { /** Defines animation options. */ export interface AnimationOptions { /** A function called after animation is completed. */ @@ -144,7 +144,7 @@ declare namespace DevExpress { /** A repository of animations. */ export var animationPresets: AnimationPresetCollection; /** An object that serves as a namespace for the methods and events specifying information on the current device. */ - export module devices { + export namespace devices { /** The device object defines the device on which the application is running. */ export interface Device { /** Indicates whether or not the device platform is Android. */ @@ -241,7 +241,7 @@ declare namespace DevExpress { options?: any; }): void; } - export module data { + export namespace data { export interface ODataError extends Error { httpStatus?: number; errorDetails?: any; @@ -648,10 +648,10 @@ declare namespace DevExpress { Decimal(value: any): EdmLiteral; }; } - } + }; } /** An object that serves as a namespace for DevExtreme UI widgets as well as for methods implementing UI logic in DevExtreme sites/applications. */ - export module ui { + export namespace ui { export interface WidgetOptions extends DOMComponentOptions { /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ activeStateEnabled?: boolean; @@ -1004,11 +1004,11 @@ declare namespace DevExpress.framework { /** Removes the application state that has been saved by the saveState() method to the state storage. */ clearState(): void; } - export module html { + export namespace html { export var layoutSets: Array; export var animationSets: { [animationSetName: string]: AnimationSet }; export interface AnimationSet { - [animationName: string]: any + [animationName: string]: any; } export interface HtmlApplicationOptions { /** Specifies where the commands that are defined in the application's views must be displayed. */ @@ -3635,7 +3635,7 @@ Searches grid records by a search string. /** The string to display instead of All Fields. */ allFields?: string; }; - } + }; /** Strings that can be changed or localized in the dxPivotGrid widget. */ texts?: { /** The string to display as a header of the Grand Total row and column. */ @@ -4562,7 +4562,7 @@ declare namespace DevExpress.viz.charts { minValueMargin?: number; tick?: { visible?: boolean; - } + }; } export interface CommonPane { /** Specifies a background color in a pane. */ @@ -4868,7 +4868,7 @@ declare namespace DevExpress.viz.charts { visible?: boolean; /** Specifies font options for the text of the label that belongs to the horizontal crosshair line. */ font?: viz.core.Font; - } + }; } export interface PolarChartTooltip extends BaseChartTooltip { /** Specifies the kind of information to display in a tooltip. */ diff --git a/devextreme/devextreme-15.1.4.d.ts b/devextreme/devextreme-15.1.4.d.ts index 44881ea912..4e35b0575d 100644 --- a/devextreme/devextreme-15.1.4.d.ts +++ b/devextreme/devextreme-15.1.4.d.ts @@ -18,7 +18,7 @@ declare namespace DevExpress { off(eventName: string, eventHandler: Function): T; } /** An object that serves as a namespace for the methods required to perform validation. */ - export module validationEngine { + export namespace validationEngine { export interface IValidator { validate(): ValidatorValidationResult; reset(): void; @@ -42,9 +42,9 @@ declare namespace DevExpress { reset(): void; } /** Provides access to the object that represents the specified validation group. */ - export function getGroupConfig(group: any): GroupConfig + export function getGroupConfig(group: any): GroupConfig; /** Provides access to the object that represents the default validation group. */ - export function getGroupConfig(): GroupConfig + export function getGroupConfig(): GroupConfig; /** Validates rules of the validators that belong to the specified validation group. */ export function validateGroup(group: any): ValidationGroupValidationResult; /** Validates rules of the validators that belong to the default validation group. */ @@ -56,7 +56,7 @@ declare namespace DevExpress { /** Validates the rules that are defined within the dxValidator objects that are registered for the specified ViewModel. */ export function validateModel(model: Object): ValidationGroupValidationResult; /** Registers all the dxValidator objects by which the fields of the specified ViewModel are extended. */ - export function registerModelForValidation(model: Object) : void; + export function registerModelForValidation(model: Object): void; } export var hardwareBackButton: JQueryCallback; /** Processes the hardware back button click. */ @@ -85,7 +85,7 @@ declare namespace DevExpress { urlFor(key: string): string; } /** An object that serves as a namespace for the methods that are used to animate UI elements. */ - export module fx { + export namespace fx { /** Defines animation options. */ export interface AnimationOptions { /** A function called after animation is completed. */ @@ -250,7 +250,7 @@ declare namespace DevExpress { options?: any; }): void; } - export module data { + export namespace data { export interface ODataError extends Error { httpStatus?: number; errorDetails?: any; @@ -664,10 +664,10 @@ declare namespace DevExpress { Decimal(value: any): EdmLiteral; }; } - } + }; } /** An object that serves as a namespace for DevExtreme UI widgets as well as for methods implementing UI logic in DevExtreme sites/applications. */ - export module ui { + export namespace ui { export interface WidgetOptions extends DOMComponentOptions { /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ activeStateEnabled?: boolean; @@ -3633,7 +3633,7 @@ Searches grid records by a search string. /** The string to display instead of All Fields. */ allFields?: string; }; - } + }; /** Strings that can be changed or localized in the dxPivotGrid widget. */ texts?: { /** The string to display as a header of the Grand Total row and column. */ @@ -3828,11 +3828,11 @@ declare namespace DevExpress.framework { /** Removes the application state that has been saved by the saveState() method to the state storage. */ clearState(): void; } - export module html { + export namespace html { export var layoutSets: Array; export var animationSets: { [animationSetName: string]: AnimationSet }; export interface AnimationSet { - [animationName: string]: any + [animationName: string]: any; } export interface HtmlApplicationOptions { /** Specifies where the commands that are defined in the application's views must be displayed. */ @@ -5067,7 +5067,7 @@ declare namespace DevExpress.viz.charts { minValueMargin?: number; tick?: { visible?: boolean; - } + }; } export interface CommonPane { /** Specifies a background color in a pane. */ @@ -5373,7 +5373,7 @@ declare namespace DevExpress.viz.charts { visible?: boolean; /** Specifies font options for the text of the label that belongs to the horizontal crosshair line. */ font?: viz.core.Font; - } + }; } export interface PolarChartTooltip extends BaseChartTooltip { /** Specifies the kind of information to display in a tooltip. */ diff --git a/devextreme/devextreme-15.1.5.d.ts b/devextreme/devextreme-15.1.5.d.ts index 6e0fbdf7ae..cdc827ca32 100644 --- a/devextreme/devextreme-15.1.5.d.ts +++ b/devextreme/devextreme-15.1.5.d.ts @@ -18,7 +18,7 @@ declare namespace DevExpress { off(eventName: string, eventHandler: Function): T; } /** An object that serves as a namespace for the methods required to perform validation. */ - export module validationEngine { + export namespace validationEngine { export interface IValidator { validate(): ValidatorValidationResult; reset(): void; @@ -42,9 +42,9 @@ declare namespace DevExpress { reset(): void; } /** Provides access to the object that represents the specified validation group. */ - export function getGroupConfig(group: any): GroupConfig + export function getGroupConfig(group: any): GroupConfig; /** Provides access to the object that represents the default validation group. */ - export function getGroupConfig(): GroupConfig + export function getGroupConfig(): GroupConfig; /** Validates rules of the validators that belong to the specified validation group. */ export function validateGroup(group: any): ValidationGroupValidationResult; /** Validates rules of the validators that belong to the default validation group. */ @@ -56,7 +56,7 @@ declare namespace DevExpress { /** Validates the rules that are defined within the dxValidator objects that are registered for the specified ViewModel. */ export function validateModel(model: Object): ValidationGroupValidationResult; /** Registers all the dxValidator objects by which the fields of the specified ViewModel are extended. */ - export function registerModelForValidation(model: Object) : void; + export function registerModelForValidation(model: Object): void; } export var hardwareBackButton: JQueryCallback; /** Processes the hardware back button click. */ @@ -85,7 +85,7 @@ declare namespace DevExpress { urlFor(key: string): string; } /** An object that serves as a namespace for the methods that are used to animate UI elements. */ - export module fx { + export namespace fx { /** Defines animation options. */ export interface AnimationOptions { /** A function called after animation is completed. */ @@ -250,7 +250,7 @@ declare namespace DevExpress { options?: any; }): void; } - export module data { + export namespace data { export interface ODataError extends Error { httpStatus?: number; errorDetails?: any; @@ -666,10 +666,10 @@ declare namespace DevExpress { Decimal(value: any): EdmLiteral; }; } - } + }; } /** An object that serves as a namespace for DevExtreme UI widgets as well as for methods implementing UI logic in DevExtreme sites/applications. */ - export module ui { + export namespace ui { export interface WidgetOptions extends DOMComponentOptions { /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ activeStateEnabled?: boolean; @@ -3644,7 +3644,7 @@ Searches grid records by a search string. /** The string to display instead of All Fields. */ allFields?: string; }; - } + }; /** Strings that can be changed or localized in the dxPivotGrid widget. */ texts?: { /** The string to display as a header of the Grand Total row and column. */ @@ -3841,11 +3841,11 @@ declare namespace DevExpress.framework { /** Removes the application state that has been saved by the saveState() method to the state storage. */ clearState(): void; } - export module html { + export namespace html { export var layoutSets: Array; export var animationSets: { [animationSetName: string]: AnimationSet }; export interface AnimationSet { - [animationName: string]: any + [animationName: string]: any; } export interface HtmlApplicationOptions { /** Specifies where the commands that are defined in the application's views must be displayed. */ @@ -5080,7 +5080,7 @@ declare namespace DevExpress.viz.charts { minValueMargin?: number; tick?: { visible?: boolean; - } + }; } export interface CommonPane { /** Specifies a background color in a pane. */ @@ -5388,7 +5388,7 @@ declare namespace DevExpress.viz.charts { visible?: boolean; /** Specifies font options for the text of the label that belongs to the horizontal crosshair line. */ font?: viz.core.Font; - } + }; } export interface PolarChartTooltip extends BaseChartTooltip { /** Specifies the kind of information to display in a tooltip. */ diff --git a/devextreme/devextreme-15.1.6.d.ts b/devextreme/devextreme-15.1.6.d.ts index 056ba14ee7..e42d3f0622 100644 --- a/devextreme/devextreme-15.1.6.d.ts +++ b/devextreme/devextreme-15.1.6.d.ts @@ -18,7 +18,7 @@ declare namespace DevExpress { off(eventName: string, eventHandler: Function): T; } /** An object that serves as a namespace for the methods required to perform validation. */ - export module validationEngine { + export namespace validationEngine { export interface IValidator { validate(): ValidatorValidationResult; reset(): void; @@ -42,9 +42,9 @@ declare namespace DevExpress { reset(): void; } /** Provides access to the object that represents the specified validation group. */ - export function getGroupConfig(group: any): GroupConfig + export function getGroupConfig(group: any): GroupConfig; /** Provides access to the object that represents the default validation group. */ - export function getGroupConfig(): GroupConfig + export function getGroupConfig(): GroupConfig; /** Validates rules of the validators that belong to the specified validation group. */ export function validateGroup(group: any): ValidationGroupValidationResult; /** Validates rules of the validators that belong to the default validation group. */ @@ -85,7 +85,7 @@ declare namespace DevExpress { urlFor(key: string): string; } /** An object that serves as a namespace for the methods that are used to animate UI elements. */ - export module fx { + export namespace fx { /** Defines animation options. */ export interface AnimationOptions { /** A function called after animation is completed. */ @@ -250,7 +250,7 @@ declare namespace DevExpress { options?: any; }): void; } - export module data { + export namespace data { export interface ODataError extends Error { httpStatus?: number; errorDetails?: any; @@ -672,10 +672,10 @@ declare namespace DevExpress { Decimal(value: any): EdmLiteral; }; } - } + }; } /** An object that serves as a namespace for DevExtreme UI widgets as well as for methods implementing UI logic in DevExtreme sites/applications. */ - export module ui { + export namespace ui { export interface WidgetOptions extends DOMComponentOptions { /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ activeStateEnabled?: boolean; @@ -830,7 +830,7 @@ declare namespace DevExpress { initMobileViewport(options: { allowZoom?: boolean; allowPan?: boolean; allowSelection?: boolean }): void; }; /** An object that serves as a namespace for DevExtreme Data Visualization Widgets. */ - export module viz { + export namespace viz { /** Applies a theme for the entire page with several DevExtreme visualization widgets. */ export function currentTheme(theme: string): void; /** Applies a new theme (with the color scheme defined separately) for the entire page with several DevExtreme visualization widgets. */ @@ -3734,7 +3734,7 @@ declare namespace DevExpress.ui { /** The string to display instead of All Fields. */ allFields?: string; }; - } + }; /** Strings that can be changed or localized in the dxPivotGrid widget. */ texts?: { /** The string to display as a header of the Grand Total row and column. */ @@ -3933,11 +3933,11 @@ declare namespace DevExpress.framework { /** Removes the application state that has been saved by the saveState() method to the state storage. */ clearState(): void; } - export module html { + export namespace html { export var layoutSets: Array; export var animationSets: { [animationSetName: string]: AnimationSet }; export interface AnimationSet { - [animationName: string]: any + [animationName: string]: any; } export interface HtmlApplicationOptions { /** Specifies where the commands that are defined in the application's views must be displayed. */ @@ -5202,7 +5202,7 @@ declare namespace DevExpress.viz.charts { minValueMargin?: number; tick?: { visible?: boolean; - } + }; } export interface CommonPane { /** Specifies a background color in a pane. */ @@ -5510,7 +5510,7 @@ declare namespace DevExpress.viz.charts { visible?: boolean; /** Specifies font options for the text of the label that belongs to the horizontal crosshair line. */ font?: viz.core.Font; - } + }; } export interface PolarChartTooltip extends BaseChartTooltip { /** Specifies the kind of information to display in a tooltip. */ diff --git a/devextreme/devextreme-15.1.7.d.ts b/devextreme/devextreme-15.1.7.d.ts index 53f058c593..6cf4cd2fe3 100644 --- a/devextreme/devextreme-15.1.7.d.ts +++ b/devextreme/devextreme-15.1.7.d.ts @@ -18,7 +18,7 @@ declare namespace DevExpress { off(eventName: string, eventHandler: Function): T; } /** An object that serves as a namespace for the methods required to perform validation. */ - export module validationEngine { + export namespace validationEngine { export interface IValidator { validate(): ValidatorValidationResult; reset(): void; @@ -42,9 +42,9 @@ declare namespace DevExpress { reset(): void; } /** Provides access to the object that represents the specified validation group. */ - export function getGroupConfig(group: any): GroupConfig + export function getGroupConfig(group: any): GroupConfig; /** Provides access to the object that represents the default validation group. */ - export function getGroupConfig(): GroupConfig + export function getGroupConfig(): GroupConfig; /** Validates rules of the validators that belong to the specified validation group. */ export function validateGroup(group: any): ValidationGroupValidationResult; /** Validates rules of the validators that belong to the default validation group. */ @@ -87,7 +87,7 @@ declare namespace DevExpress { urlFor(key: string): string; } /** An object that serves as a namespace for the methods that are used to animate UI elements. */ - export module fx { + export namespace fx { /** Defines animation options. */ export interface AnimationOptions { /** A function called after animation is completed. */ @@ -252,7 +252,7 @@ declare namespace DevExpress { options?: any; }): void; } - export module data { + export namespace data { export interface ODataError extends Error { httpStatus?: number; errorDetails?: any; @@ -675,10 +675,10 @@ declare namespace DevExpress { Decimal(value: any): EdmLiteral; }; } - } + }; } /** An object that serves as a namespace for DevExtreme UI widgets as well as for methods implementing UI logic in DevExtreme sites/applications. */ - export module ui { + export namespace ui { export interface WidgetOptions extends DOMComponentOptions { /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ activeStateEnabled?: boolean; @@ -833,7 +833,7 @@ declare namespace DevExpress { initMobileViewport(options: { allowZoom?: boolean; allowPan?: boolean; allowSelection?: boolean }): void; }; /** An object that serves as a namespace for DevExtreme Data Visualization Widgets. */ - export module viz { + export namespace viz { /** Applies a theme for the entire page with several DevExtreme visualization widgets. */ export function currentTheme(theme: string): void; /** Applies a new theme (with the color scheme defined separately) for the entire page with several DevExtreme visualization widgets. */ @@ -1397,7 +1397,7 @@ declare namespace DevExpress.ui { google?: string; /** A key used to authenticate the application within the "Google Static" map provider. */ googleStatic?: string; - } + }; /** A handler for the markerAdded event. */ onMarkerAdded?: Function; markerAddedAction?: Function; @@ -3691,7 +3691,7 @@ declare namespace DevExpress.ui { /** The string to display instead of All Fields. */ allFields?: string; }; - } + }; /** Strings that can be changed or localized in the dxPivotGrid widget. */ texts?: { /** The string to display as a header of the Grand Total row and column. */ @@ -3892,11 +3892,11 @@ declare namespace DevExpress.framework { /** Removes the application state that has been saved by the saveState() method to the state storage. */ clearState(): void; } - export module html { + export namespace html { export var layoutSets: Array; export var animationSets: { [animationSetName: string]: AnimationSet }; export interface AnimationSet { - [animationName: string]: any + [animationName: string]: any; } export interface HtmlApplicationOptions { /** Specifies where the commands that are defined in the application's views must be displayed. */ @@ -5157,7 +5157,7 @@ declare namespace DevExpress.viz.charts { minValueMargin?: number; tick?: { visible?: boolean; - } + }; } export interface CommonPane { /** Specifies a background color in a pane. */ @@ -5465,7 +5465,7 @@ declare namespace DevExpress.viz.charts { visible?: boolean; /** Specifies font options for the text of the label that belongs to the horizontal crosshair line. */ font?: viz.core.Font; - } + }; } export interface PolarChartTooltip extends BaseChartTooltip { /** Specifies the kind of information to display in a tooltip. */ diff --git a/devextreme/devextreme-15.1.8.d.ts b/devextreme/devextreme-15.1.8.d.ts index 447e0b15b9..7405a2fc7c 100644 --- a/devextreme/devextreme-15.1.8.d.ts +++ b/devextreme/devextreme-15.1.8.d.ts @@ -18,7 +18,7 @@ declare namespace DevExpress { off(eventName: string, eventHandler: Function): T; } /** An object that serves as a namespace for the methods required to perform validation. */ - export module validationEngine { + export namespace validationEngine { export interface IValidator { validate(): ValidatorValidationResult; reset(): void; @@ -42,9 +42,9 @@ declare namespace DevExpress { reset(): void; } /** Provides access to the object that represents the specified validation group. */ - export function getGroupConfig(group: any): GroupConfig + export function getGroupConfig(group: any): GroupConfig; /** Provides access to the object that represents the default validation group. */ - export function getGroupConfig(): GroupConfig + export function getGroupConfig(): GroupConfig; /** Validates rules of the validators that belong to the specified validation group. */ export function validateGroup(group: any): ValidationGroupValidationResult; /** Validates rules of the validators that belong to the default validation group. */ @@ -56,7 +56,7 @@ declare namespace DevExpress { /** Validates the rules that are defined within the dxValidator objects that are registered for the specified ViewModel. */ export function validateModel(model: Object): ValidationGroupValidationResult; /** Registers all the dxValidator objects by which the fields of the specified ViewModel are extended. */ - export function registerModelForValidation(model: Object) : void; + export function registerModelForValidation(model: Object): void; } export var hardwareBackButton: JQueryCallback; /** Processes the hardware back button click. */ @@ -87,7 +87,7 @@ declare namespace DevExpress { urlFor(key: string): string; } /** An object that serves as a namespace for the methods that are used to animate UI elements. */ - export module fx { + export namespace fx { /** Defines animation options. */ export interface AnimationOptions { /** A function called after animation is completed. */ @@ -256,7 +256,7 @@ declare namespace DevExpress { options?: any; }): void; } - export module data { + export namespace data { export interface ODataError extends Error { httpStatus?: number; errorDetails?: any; @@ -679,10 +679,10 @@ declare namespace DevExpress { Decimal(value: any): EdmLiteral; }; } - } + }; } /** An object that serves as a namespace for DevExtreme UI widgets as well as for methods implementing UI logic in DevExtreme sites/applications. */ - export module ui { + export namespace ui { export interface WidgetOptions extends DOMComponentOptions { /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ activeStateEnabled?: boolean; @@ -837,7 +837,7 @@ declare namespace DevExpress { initMobileViewport(options: { allowZoom?: boolean; allowPan?: boolean; allowSelection?: boolean }): void; }; /** An object that serves as a namespace for DevExtreme Data Visualization Widgets. */ - export module viz { + export namespace viz { /** Applies a theme for the entire page with several DevExtreme visualization widgets. */ export function currentTheme(theme: string): void; /** Applies a new theme (with the color scheme defined separately) for the entire page with several DevExtreme visualization widgets. */ @@ -1401,7 +1401,7 @@ declare namespace DevExpress.ui { google?: string; /** A key used to authenticate the application within the "Google Static" map provider. */ googleStatic?: string; - } + }; /** A handler for the markerAdded event. */ onMarkerAdded?: Function; markerAddedAction?: Function; @@ -3699,7 +3699,7 @@ declare namespace DevExpress.ui { /** The string to display instead of All Fields. */ allFields?: string; }; - } + }; /** Strings that can be changed or localized in the dxPivotGrid widget. */ texts?: { /** The string to display as a header of the Grand Total row and column. */ @@ -3900,11 +3900,11 @@ declare namespace DevExpress.framework { /** Removes the application state that has been saved by the saveState() method to the state storage. */ clearState(): void; } - export module html { + export namespace html { export var layoutSets: Array; export var animationSets: { [animationSetName: string]: AnimationSet }; export interface AnimationSet { - [animationName: string]: any + [animationName: string]: any; } export interface HtmlApplicationOptions { /** Specifies where the commands that are defined in the application's views must be displayed. */ @@ -5165,7 +5165,7 @@ declare namespace DevExpress.viz.charts { minValueMargin?: number; tick?: { visible?: boolean; - } + }; } export interface CommonPane { /** Specifies a background color in a pane. */ @@ -5473,7 +5473,7 @@ declare namespace DevExpress.viz.charts { visible?: boolean; /** Specifies font options for the text of the label that belongs to the horizontal crosshair line. */ font?: viz.core.Font; - } + }; } export interface PolarChartTooltip extends BaseChartTooltip { /** Specifies the kind of information to display in a tooltip. */ diff --git a/devextreme/devextreme-15.2.4.d.ts b/devextreme/devextreme-15.2.4.d.ts index bffccd11ca..669d32f0f9 100644 --- a/devextreme/devextreme-15.2.4.d.ts +++ b/devextreme/devextreme-15.2.4.d.ts @@ -18,7 +18,7 @@ declare namespace DevExpress { off(eventName: string, eventHandler: Function): T; } /** An object that serves as a namespace for the methods required to perform validation. */ - export module validationEngine { + export namespace validationEngine { export interface IValidator { validate(): ValidatorValidationResult; reset(): void; @@ -42,9 +42,9 @@ declare namespace DevExpress { reset(): void; } /** Provides access to the object that represents the specified validation group. */ - export function getGroupConfig(group: any): GroupConfig + export function getGroupConfig(group: any): GroupConfig; /** Provides access to the object that represents the default validation group. */ - export function getGroupConfig(): GroupConfig + export function getGroupConfig(): GroupConfig; /** Validates rules of the validators that belong to the specified validation group. */ export function validateGroup(group: any): ValidationGroupValidationResult; /** Validates rules of the validators that belong to the default validation group. */ @@ -85,7 +85,7 @@ declare namespace DevExpress { urlFor(key: string): string; } /** An object that serves as a namespace for the methods that are used to animate UI elements. */ - export module fx { + export namespace fx { /** Defines animation options. */ export interface AnimationOptions { /** A function called after animation is completed. */ @@ -256,7 +256,7 @@ declare namespace DevExpress { options?: any; }): void; } - export module data { + export namespace data { export interface ODataError extends Error { httpStatus?: number; errorDetails?: any; @@ -659,10 +659,10 @@ declare namespace DevExpress { Decimal(value: any): EdmLiteral; }; } - } + }; } /** An object that serves as a namespace for DevExtreme UI widgets as well as for methods implementing UI logic in DevExtreme sites/applications. */ - export module ui { + export namespace ui { export interface WidgetOptions extends DOMComponentOptions { /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ activeStateEnabled?: boolean; @@ -809,7 +809,7 @@ declare namespace DevExpress { cancelAnimationFrame(requestID: number): void; }; /** An object that serves as a namespace for DevExtreme Data Visualization Widgets. */ - export module viz { + export namespace viz { /** Applies a theme for the entire page with several DevExtreme visualization widgets. */ export function currentTheme(theme: string): void; /** Applies a new theme (with the color scheme defined separately) for the entire page with several DevExtreme visualization widgets. */ @@ -1381,7 +1381,7 @@ declare namespace DevExpress.ui { google?: string; /** A key used to authenticate the application within the "Google Static" map provider. */ googleStatic?: string; - } + }; /** A handler for the markerAdded event. */ onMarkerAdded?: Function; /** A URL pointing to the custom icon to be used for map markers. */ @@ -2853,7 +2853,7 @@ declare namespace DevExpress.ui { allowResizing?: boolean; /** Specifies whether or not an end-user can drag appointments. */ allowDragging?: boolean; - } + }; /** Specifies an array of resources available in the scheduler. */ resources?: Array<{ /** Indicates whether or not several resources of this kind can be assigned to an appointment. */ @@ -3939,7 +3939,7 @@ declare namespace DevExpress.ui { /** The string to display instead of All Fields. */ allFields?: string; }; - } + }; /** Strings that can be changed or localized in the dxPivotGrid widget. */ texts?: { /** The string to display as a header of the Grand Total row and column. */ @@ -4177,11 +4177,11 @@ declare namespace DevExpress.framework { /** Removes the application state that has been saved by the saveState() method to the state storage. */ clearState(): void; } - export module html { + export namespace html { export var layoutSets: Array; export var animationSets: { [animationSetName: string]: AnimationSet }; export interface AnimationSet { - [animationName: string]: any + [animationName: string]: any; } export interface HtmlApplicationOptions { /** Specifies where the commands that are defined in the application's views must be displayed. */ @@ -4494,7 +4494,7 @@ declare namespace DevExpress.viz.core { font?: viz.core.Font; /** Specifies text for the subtitle. */ text?: string; - } + }; } export interface Tooltip { /** Specifies the length of the tooltip's arrow in pixels. */ @@ -5477,7 +5477,7 @@ declare namespace DevExpress.viz.charts { minValueMargin?: number; tick?: { visible?: boolean; - } + }; } export interface CommonPane { /** Specifies a background color in a pane. */ @@ -5763,7 +5763,7 @@ declare namespace DevExpress.viz.charts { visible?: boolean; /** Specifies font options for the text of the label that belongs to the horizontal crosshair line. */ font?: viz.core.Font; - } + }; } export interface PolarChartTooltip extends BaseChartTooltip { /** Specifies the kind of information to display in a tooltip. */ @@ -7128,7 +7128,7 @@ declare namespace DevExpress.viz.map { layer?: string; /** Specifies the type of the legend grouping. */ grouping?: string; - } + }; } /** A vector map widget. */ export class dxVectorMap extends viz.core.BaseWidget { diff --git a/devextreme/devextreme-15.2.5.d.ts b/devextreme/devextreme-15.2.5.d.ts index f968fcb1e5..195a5de59c 100644 --- a/devextreme/devextreme-15.2.5.d.ts +++ b/devextreme/devextreme-15.2.5.d.ts @@ -18,7 +18,7 @@ declare namespace DevExpress { off(eventName: string, eventHandler: Function): T; } /** An object that serves as a namespace for the methods required to perform validation. */ - export module validationEngine { + export namespace validationEngine { export interface IValidator { validate(): ValidatorValidationResult; reset(): void; @@ -42,9 +42,9 @@ declare namespace DevExpress { reset(): void; } /** Provides access to the object that represents the specified validation group. */ - export function getGroupConfig(group: any): GroupConfig + export function getGroupConfig(group: any): GroupConfig; /** Provides access to the object that represents the default validation group. */ - export function getGroupConfig(): GroupConfig + export function getGroupConfig(): GroupConfig; /** Validates rules of the validators that belong to the specified validation group. */ export function validateGroup(group: any): ValidationGroupValidationResult; /** Validates rules of the validators that belong to the default validation group. */ @@ -56,7 +56,7 @@ declare namespace DevExpress { /** Validates the rules that are defined within the dxValidator objects that are registered for the specified ViewModel. */ export function validateModel(model: Object): ValidationGroupValidationResult; /** Registers all the dxValidator objects by which the fields of the specified ViewModel are extended. */ - export function registerModelForValidation(model: Object) : void; + export function registerModelForValidation(model: Object): void; } export var hardwareBackButton: JQueryCallback; /** Processes the hardware back button click. */ @@ -85,7 +85,7 @@ declare namespace DevExpress { urlFor(key: string): string; } /** An object that serves as a namespace for the methods that are used to animate UI elements. */ - export module fx { + export namespace fx { /** Defines animation options. */ export interface AnimationOptions { /** A function called after animation is completed. */ @@ -256,7 +256,7 @@ declare namespace DevExpress { options?: any; }): void; } - export module data { + export namespace data { export interface ODataError extends Error { httpStatus?: number; errorDetails?: any; @@ -666,10 +666,10 @@ declare namespace DevExpress { Decimal(value: any): EdmLiteral; }; } - } + }; } /** An object that serves as a namespace for DevExtreme UI widgets as well as for methods implementing UI logic in DevExtreme sites/applications. */ - export module ui { + export namespace ui { export interface WidgetOptions extends DOMComponentOptions { /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ activeStateEnabled?: boolean; @@ -816,7 +816,7 @@ declare namespace DevExpress { cancelAnimationFrame(requestID: number): void; }; /** An object that serves as a namespace for DevExtreme Data Visualization Widgets. */ - export module viz { + export namespace viz { /** Applies a theme for the entire page with several DevExtreme visualization widgets. */ export function currentTheme(theme: string): void; /** Applies a new theme (with the color scheme defined separately) for the entire page with several DevExtreme visualization widgets. */ @@ -1388,7 +1388,7 @@ declare namespace DevExpress.ui { google?: string; /** A key used to authenticate the application within the "Google Static" map provider. */ googleStatic?: string; - } + }; /** A handler for the markerAdded event. */ onMarkerAdded?: Function; /** A URL pointing to the custom icon to be used for map markers. */ @@ -2861,7 +2861,7 @@ declare namespace DevExpress.ui { allowResizing?: boolean; /** Specifies whether or not an end-user can drag appointments. */ allowDragging?: boolean; - } + }; /** Specifies an array of resources available in the scheduler. */ resources?: Array<{ /** Indicates whether or not several resources of this kind can be assigned to an appointment. */ @@ -3978,7 +3978,7 @@ declare namespace DevExpress.ui { /** The string to display instead of All Fields. */ allFields?: string; }; - } + }; /** Strings that can be changed or localized in the dxPivotGrid widget. */ texts?: { /** The string to display as a header of the Grand Total row and column. */ @@ -4223,11 +4223,11 @@ declare namespace DevExpress.framework { /** Removes the application state that has been saved by the saveState() method to the state storage. */ clearState(): void; } - export module html { + export namespace html { export var layoutSets: Array; export var animationSets: { [animationSetName: string]: AnimationSet }; export interface AnimationSet { - [animationName: string]: any + [animationName: string]: any; } export interface HtmlApplicationOptions { /** Specifies where the commands that are defined in the application's views must be displayed. */ @@ -4540,7 +4540,7 @@ declare namespace DevExpress.viz.core { font?: viz.core.Font; /** Specifies text for the subtitle. */ text?: string; - } + }; } export interface Tooltip { /** Specifies the length of the tooltip's arrow in pixels. */ @@ -5529,7 +5529,7 @@ declare namespace DevExpress.viz.charts { minValueMargin?: number; tick?: { visible?: boolean; - } + }; } export interface CommonPane { /** Specifies a background color in a pane. */ @@ -5815,7 +5815,7 @@ declare namespace DevExpress.viz.charts { visible?: boolean; /** Specifies font options for the text of the label that belongs to the horizontal crosshair line. */ font?: viz.core.Font; - } + }; } export interface PolarChartTooltip extends BaseChartTooltip { /** Specifies the kind of information to display in a tooltip. */ @@ -7186,7 +7186,7 @@ declare namespace DevExpress.viz.map { layer?: string; /** Specifies the type of the legend grouping. */ grouping?: string; - } + }; } /** A vector map widget. */ export class dxVectorMap extends viz.core.BaseWidget { diff --git a/devextreme/devextreme-15.2.7.d.ts b/devextreme/devextreme-15.2.7.d.ts index d12d4f4751..6f482898a8 100644 --- a/devextreme/devextreme-15.2.7.d.ts +++ b/devextreme/devextreme-15.2.7.d.ts @@ -18,7 +18,7 @@ declare namespace DevExpress { off(eventName: string, eventHandler: Function): T; } /** An object that serves as a namespace for the methods required to perform validation. */ - export module validationEngine { + export namespace validationEngine { export interface IValidator { validate(): ValidatorValidationResult; reset(): void; @@ -42,9 +42,9 @@ declare namespace DevExpress { reset(): void; } /** Provides access to the object that represents the specified validation group. */ - export function getGroupConfig(group: any): GroupConfig + export function getGroupConfig(group: any): GroupConfig; /** Provides access to the object that represents the default validation group. */ - export function getGroupConfig(): GroupConfig + export function getGroupConfig(): GroupConfig; /** Validates rules of the validators that belong to the specified validation group. */ export function validateGroup(group: any): ValidationGroupValidationResult; /** Validates rules of the validators that belong to the default validation group. */ @@ -56,7 +56,7 @@ declare namespace DevExpress { /** Validates the rules that are defined within the dxValidator objects that are registered for the specified ViewModel. */ export function validateModel(model: Object): ValidationGroupValidationResult; /** Registers all the dxValidator objects by which the fields of the specified ViewModel are extended. */ - export function registerModelForValidation(model: Object) : void; + export function registerModelForValidation(model: Object): void; } export var hardwareBackButton: JQueryCallback; /** Processes the hardware back button click. */ @@ -85,7 +85,7 @@ declare namespace DevExpress { urlFor(key: string): string; } /** An object that serves as a namespace for the methods that are used to animate UI elements. */ - export module fx { + export namespace fx { /** Defines animation options. */ export interface AnimationOptions { /** A function called after animation is completed. */ @@ -256,7 +256,7 @@ declare namespace DevExpress { options?: any; }): void; } - export module data { + export namespace data { export interface ODataError extends Error { httpStatus?: number; errorDetails?: any; @@ -666,10 +666,10 @@ declare namespace DevExpress { Decimal(value: any): EdmLiteral; }; } - } + }; } /** An object that serves as a namespace for DevExtreme UI widgets as well as for methods implementing UI logic in DevExtreme sites/applications. */ - export module ui { + export namespace ui { export interface WidgetOptions extends DOMComponentOptions { /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ activeStateEnabled?: boolean; @@ -816,7 +816,7 @@ declare namespace DevExpress { cancelAnimationFrame(requestID: number): void; }; /** An object that serves as a namespace for DevExtreme Data Visualization Widgets. */ - export module viz { + export namespace viz { /** Applies a theme for the entire page with several DevExtreme visualization widgets. */ export function currentTheme(theme: string): void; /** Applies a new theme (with the color scheme defined separately) for the entire page with several DevExtreme visualization widgets. */ @@ -1391,7 +1391,7 @@ declare namespace DevExpress.ui { google?: string; /** A key used to authenticate the application within the "Google Static" map provider. */ googleStatic?: string; - } + }; /** A handler for the markerAdded event. */ onMarkerAdded?: Function; /** A URL pointing to the custom icon to be used for map markers. */ @@ -2887,7 +2887,7 @@ declare namespace DevExpress.ui { allowResizing?: boolean; /** Specifies whether or not an end-user can drag appointments. */ allowDragging?: boolean; - } + }; /** Specifies an array of resources available in the scheduler. */ resources?: Array<{ /** Indicates whether or not several resources of this kind can be assigned to an appointment. */ @@ -4013,7 +4013,7 @@ declare namespace DevExpress.ui { /** The string to display instead of All Fields. */ allFields?: string; }; - } + }; /** Strings that can be changed or localized in the dxPivotGrid widget. */ texts?: { /** The string to display as a header of the Grand Total row and column. */ @@ -4257,11 +4257,11 @@ declare namespace DevExpress.framework { /** Removes the application state that has been saved by the saveState() method to the state storage. */ clearState(): void; } - export module html { + export namespace html { export var layoutSets: Array; export var animationSets: { [animationSetName: string]: AnimationSet }; export interface AnimationSet { - [animationName: string]: any + [animationName: string]: any; } export interface HtmlApplicationOptions { /** Specifies where the commands that are defined in the application's views must be displayed. */ @@ -4574,7 +4574,7 @@ declare namespace DevExpress.viz.core { font?: viz.core.Font; /** Specifies text for the subtitle. */ text?: string; - } + }; } export interface Tooltip { /** Specifies the length of the tooltip's arrow in pixels. */ @@ -5563,7 +5563,7 @@ declare namespace DevExpress.viz.charts { minValueMargin?: number; tick?: { visible?: boolean; - } + }; } export interface CommonPane { /** Specifies a background color in a pane. */ @@ -5861,7 +5861,7 @@ declare namespace DevExpress.viz.charts { precision?: number; /** Customizes the text displayed by the crosshair label that accompany the horizontal line. */ customizeText?: (info: { value: any; valueText: string; point: ChartPoint; }) => string; - } + }; } export interface PolarChartTooltip extends BaseChartTooltip { /** Specifies the kind of information to display in a tooltip. */ @@ -7232,7 +7232,7 @@ declare namespace DevExpress.viz.map { layer?: string; /** Specifies the type of the legend grouping. */ grouping?: string; - } + }; } /** A vector map widget. */ export class dxVectorMap extends viz.core.BaseWidget { diff --git a/devextreme/devextreme-15.2.9.d.ts b/devextreme/devextreme-15.2.9.d.ts index 0b70507a5d..8a9cf9d8ea 100644 --- a/devextreme/devextreme-15.2.9.d.ts +++ b/devextreme/devextreme-15.2.9.d.ts @@ -5,7 +5,7 @@ /// -declare module DevExpress { +declare namespace DevExpress { /** A mixin that provides a capability to fire and subscribe to events. */ export interface EventsMixin { /** Subscribes to a specified event. */ @@ -18,7 +18,7 @@ declare module DevExpress { off(eventName: string, eventHandler: Function): T; } /** An object that serves as a namespace for the methods required to perform validation. */ - export module validationEngine { + export namespace validationEngine { export interface IValidator { validate(): ValidatorValidationResult; reset(): void; @@ -42,9 +42,9 @@ declare module DevExpress { reset(): void; } /** Provides access to the object that represents the specified validation group. */ - export function getGroupConfig(group: any): GroupConfig + export function getGroupConfig(group: any): GroupConfig; /** Provides access to the object that represents the default validation group. */ - export function getGroupConfig(): GroupConfig + export function getGroupConfig(): GroupConfig; /** Validates rules of the validators that belong to the specified validation group. */ export function validateGroup(group: any): ValidationGroupValidationResult; /** Validates rules of the validators that belong to the default validation group. */ @@ -56,7 +56,7 @@ declare module DevExpress { /** Validates the rules that are defined within the dxValidator objects that are registered for the specified ViewModel. */ export function validateModel(model: Object): ValidationGroupValidationResult; /** Registers all the dxValidator objects by which the fields of the specified ViewModel are extended. */ - export function registerModelForValidation(model: Object) : void; + export function registerModelForValidation(model: Object): void; } export var hardwareBackButton: JQueryCallback; /** Processes the hardware back button click. */ @@ -85,7 +85,7 @@ declare module DevExpress { urlFor(key: string): string; } /** An object that serves as a namespace for the methods that are used to animate UI elements. */ - export module fx { + export namespace fx { /** Defines animation options. */ export interface AnimationOptions { /** A function called after animation is completed. */ @@ -256,7 +256,7 @@ declare module DevExpress { options?: any; }): void; } - export module data { + export namespace data { export interface ODataError extends Error { httpStatus?: number; errorDetails?: any; @@ -670,10 +670,10 @@ declare module DevExpress { Decimal(value: any): EdmLiteral; }; } - } + }; } /** An object that serves as a namespace for DevExtreme UI widgets as well as for methods implementing UI logic in DevExtreme sites/applications. */ - export module ui { + export namespace ui { export interface WidgetOptions extends DOMComponentOptions { /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ activeStateEnabled?: boolean; @@ -820,7 +820,7 @@ declare module DevExpress { cancelAnimationFrame(requestID: number): void; }; /** An object that serves as a namespace for DevExtreme Data Visualization Widgets. */ - export module viz { + export namespace viz { /** Applies a theme for the entire page with several DevExtreme visualization widgets. */ export function currentTheme(theme: string): void; /** Applies a new theme (with the color scheme defined separately) for the entire page with several DevExtreme visualization widgets. */ @@ -835,7 +835,7 @@ declare module DevExpress { export function registerPalette(paletteName: string, palette: Object): void; } } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxValidatorOptions extends DOMComponentOptions { /** An array of validation rules to be checked for the editor with which the dxValidator object is associated. */ validationRules?: Array; @@ -1395,7 +1395,7 @@ declare module DevExpress.ui { google?: string; /** A key used to authenticate the application within the "Google Static" map provider. */ googleStatic?: string; - } + }; /** A handler for the markerAdded event. */ onMarkerAdded?: Function; /** A URL pointing to the custom icon to be used for map markers. */ @@ -2413,7 +2413,7 @@ interface JQuery { dxForm(options: DevExpress.ui.dxFormOptions): JQuery; } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxTileViewOptions extends CollectionWidgetOptions { /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ activeStateEnabled?: boolean; @@ -2650,7 +2650,7 @@ interface JQuery { dxDropDownMenu(options: string, ...params: any[]): any; dxDropDownMenu(options: DevExpress.ui.dxDropDownMenuOptions): JQuery; } -declare module DevExpress.data { +declare namespace DevExpress.data { export interface XmlaStoreOptions { /** The HTTP address to an XMLA OLAP server. */ url?: string; @@ -2847,7 +2847,7 @@ declare module DevExpress.data { off(eventName: string, eventHandler: Function): PivotGridDataSource; } } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxSchedulerOptions extends WidgetOptions { /** Specifies a date displayed on the current scheduler view by default. */ currentDate?: Date; @@ -2891,7 +2891,7 @@ declare module DevExpress.ui { allowResizing?: boolean; /** Specifies whether or not an end-user can drag appointments. */ allowDragging?: boolean; - } + }; /** Specifies an array of resources available in the scheduler. */ resources?: Array<{ /** Indicates whether or not several resources of this kind can be assigned to an appointment. */ @@ -4023,7 +4023,7 @@ declare module DevExpress.ui { /** The string to display instead of All Fields. */ allFields?: string; }; - } + }; /** Strings that can be changed or localized in the dxPivotGrid widget. */ texts?: { /** The string to display as a header of the Grand Total row and column. */ @@ -4199,7 +4199,7 @@ interface JQuery { dxScheduler(options: string, ...params: any[]): any; dxScheduler(options: DevExpress.ui.dxSchedulerOptions): JQuery; } -declare module DevExpress.framework { +declare namespace DevExpress.framework { /** An object used to store information on the views displayed in an application. */ export class ViewCache { viewRemoved: JQueryCallback; @@ -4267,11 +4267,11 @@ declare module DevExpress.framework { /** Removes the application state that has been saved by the saveState() method to the state storage. */ clearState(): void; } - export module html { + export namespace html { export var layoutSets: Array; export var animationSets: { [animationSetName: string]: AnimationSet }; export interface AnimationSet { - [animationName: string]: any + [animationName: string]: any; } export interface HtmlApplicationOptions { /** Specifies where the commands that are defined in the application's views must be displayed. */ @@ -4481,7 +4481,7 @@ declare module DevExpress.framework { } } } -declare module DevExpress.viz.core { +declare namespace DevExpress.viz.core { /** * Applies a theme for the entire page with several DevExtreme visualization widgets. * @deprecated Use the DevExpress.viz.currentTheme(theme) method instead. @@ -4584,7 +4584,7 @@ declare module DevExpress.viz.core { font?: viz.core.Font; /** Specifies text for the subtitle. */ text?: string; - } + }; } export interface Tooltip { /** Specifies the length of the tooltip's arrow in pixels. */ @@ -4717,7 +4717,7 @@ declare module DevExpress.viz.core { svg(): string; } } -declare module DevExpress.viz.charts { +declare namespace DevExpress.viz.charts { /** This section describes the fields and methods that can be used in code to manipulate the Series object. */ export interface BaseSeries { /** Provides information about the state of the series object. */ @@ -5573,7 +5573,7 @@ declare module DevExpress.viz.charts { minValueMargin?: number; tick?: { visible?: boolean; - } + }; } export interface CommonPane { /** Specifies a background color in a pane. */ @@ -5873,7 +5873,7 @@ declare module DevExpress.viz.charts { precision?: number; /** Customizes the text displayed by the crosshair label that accompany the horizontal line. */ customizeText?: (info: { value: any; valueText: string; point: ChartPoint; }) => string; - } + }; } export interface PolarChartTooltip extends BaseChartTooltip { /** Specifies the kind of information to display in a tooltip. */ @@ -5968,7 +5968,7 @@ interface JQuery { dxPolarChart(methodName: string, ...params: any[]): any; dxPolarChart(methodName: "instance"): DevExpress.viz.charts.dxPolarChart; } -declare module DevExpress.viz.gauges { +declare namespace DevExpress.viz.gauges { export interface BaseRangeContainer { /** Specifies a range container's background color. */ backgroundColor?: string; @@ -6385,7 +6385,7 @@ interface JQuery { dxBarGauge(methodName: string, ...params: any[]): any; dxBarGauge(methodName: "instance"): DevExpress.viz.gauges.dxBarGauge; } -declare module DevExpress.viz.rangeSelector { +declare namespace DevExpress.viz.rangeSelector { export interface dxRangeSelectorOptions extends viz.core.BaseWidgetOptions { /** Specifies the options for the range selector's background. */ background?: { @@ -6681,7 +6681,7 @@ interface JQuery { dxRangeSelector(methodName: string, ...params: any[]): any; dxRangeSelector(methodName: "instance"): DevExpress.viz.rangeSelector.dxRangeSelector; } -declare module DevExpress.viz.map { +declare namespace DevExpress.viz.map { /** This section describes the fields and methods that can be used in code to manipulate the Layer object. */ export interface MapLayer { /** The name of the layer. */ @@ -7246,7 +7246,7 @@ declare module DevExpress.viz.map { layer?: string; /** Specifies the type of the legend grouping. */ grouping?: string; - } + }; } /** A vector map widget. */ export class dxVectorMap extends viz.core.BaseWidget { @@ -7320,7 +7320,7 @@ interface JQuery { dxVectorMap(methodName: string, ...params: any[]): any; dxVectorMap(methodName: "instance"): DevExpress.viz.map.dxVectorMap; } -declare module DevExpress.viz.sparklines { +declare namespace DevExpress.viz.sparklines { export interface SparklineTooltip extends viz.core.Tooltip { /** * Specifies how a tooltip is horizontally aligned relative to the graph. diff --git a/devextreme/index.d.ts b/devextreme/index.d.ts index bbf6eaad76..77af3f4f0b 100644 --- a/devextreme/index.d.ts +++ b/devextreme/index.d.ts @@ -5,7 +5,7 @@ /// -declare module DevExpress { +declare namespace DevExpress { /** A mixin that provides a capability to fire and subscribe to events. */ export interface EventsMixin { /** Subscribes to a specified event. */ @@ -18,7 +18,7 @@ declare module DevExpress { off(eventName: string, eventHandler: Function): T; } /** An object that serves as a namespace for the methods required to perform validation. */ - export module validationEngine { + export namespace validationEngine { export interface IValidator { validate(): ValidatorValidationResult; reset(): void; @@ -42,9 +42,9 @@ declare module DevExpress { reset(): void; } /** Provides access to the object that represents the specified validation group. */ - export function getGroupConfig(group: any): GroupConfig + export function getGroupConfig(group: any): GroupConfig; /** Provides access to the object that represents the default validation group. */ - export function getGroupConfig(): GroupConfig + export function getGroupConfig(): GroupConfig; /** Validates rules of the validators that belong to the specified validation group. */ export function validateGroup(group: any): ValidationGroupValidationResult; /** Validates rules of the validators that belong to the default validation group. */ @@ -56,7 +56,7 @@ declare module DevExpress { /** Validates the rules that are defined within the dxValidator objects that are registered for the specified ViewModel. */ export function validateModel(model: Object): ValidationGroupValidationResult; /** Registers all the dxValidator objects by which the fields of the specified ViewModel are extended. */ - export function registerModelForValidation(model: Object) : void; + export function registerModelForValidation(model: Object): void; } export var hardwareBackButton: JQueryCallback; /** Processes the hardware back button click. */ @@ -85,7 +85,7 @@ declare module DevExpress { urlFor(key: string): string; } /** An object that serves as a namespace for the methods that are used to animate UI elements. */ - export module fx { + export namespace fx { /** Defines animation options. */ export interface AnimationOptions { /** A function called after animation is completed. */ @@ -258,7 +258,7 @@ declare module DevExpress { options?: any; }): void; } - export module data { + export namespace data { export interface ODataError extends Error { httpStatus?: number; errorDetails?: any; @@ -677,10 +677,10 @@ declare module DevExpress { Decimal(value: any): EdmLiteral; }; } - } + }; } /** An object that serves as a namespace for DevExtreme UI widgets as well as for methods implementing UI logic in DevExtreme sites/applications. */ - export module ui { + export namespace ui { export interface WidgetOptions extends DOMComponentOptions { /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ activeStateEnabled?: boolean; @@ -827,7 +827,7 @@ declare module DevExpress { cancelAnimationFrame(requestID: number): void; }; /** An object that serves as a namespace for DevExtreme Data Visualization Widgets. */ - export module viz { + export namespace viz { /** Applies a theme for the entire page with several DevExtreme visualization widgets. */ export function currentTheme(theme: string): void; /** Applies a new theme (with the color scheme defined separately) for the entire page with several DevExtreme visualization widgets. */ @@ -842,7 +842,7 @@ declare module DevExpress { export function registerPalette(paletteName: string, palette: Object): void; } } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxValidatorOptions extends DOMComponentOptions { /** An array of validation rules to be checked for the editor with which the dxValidator object is associated. */ validationRules?: Array; @@ -1436,7 +1436,7 @@ declare module DevExpress.ui { google?: string; /** A key used to authenticate the application within the "Google Static" map provider. */ googleStatic?: string; - } + }; /** A handler for the markerAdded event. */ onMarkerAdded?: Function; /** A URL pointing to the custom icon to be used for map markers. */ @@ -2470,7 +2470,7 @@ interface JQuery { dxForm(options: DevExpress.ui.dxFormOptions): JQuery; } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxTileViewOptions extends CollectionWidgetOptions { /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ activeStateEnabled?: boolean; @@ -2706,7 +2706,7 @@ interface JQuery { dxDropDownMenu(options: string, ...params: any[]): any; dxDropDownMenu(options: DevExpress.ui.dxDropDownMenuOptions): JQuery; } -declare module DevExpress.data { +declare namespace DevExpress.data { export interface XmlaStoreOptions { /** The HTTP address to an XMLA OLAP server. */ url?: string; @@ -2903,7 +2903,7 @@ declare module DevExpress.data { off(eventName: string, eventHandler: Function): PivotGridDataSource; } } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxSchedulerOptions extends WidgetOptions { /** Specifies a date displayed on the current scheduler view by default. */ currentDate?: any; @@ -2947,7 +2947,7 @@ declare module DevExpress.ui { allowResizing?: boolean; /** Specifies whether or not an end-user can drag appointments. */ allowDragging?: boolean; - } + }; /** Specifies an array of resources available in the scheduler. */ resources?: Array<{ /** Indicates whether or not several resources of this kind can be assigned to an appointment. */ @@ -4084,7 +4084,7 @@ declare module DevExpress.ui { /** The string to display instead of All Fields. */ allFields?: string; }; - } + }; /** Strings that can be changed or localized in the dxPivotGrid widget. */ texts?: { /** The string to display as a header of the Grand Total row and column. */ @@ -4260,7 +4260,7 @@ interface JQuery { dxScheduler(options: string, ...params: any[]): any; dxScheduler(options: DevExpress.ui.dxSchedulerOptions): JQuery; } -declare module DevExpress.framework { +declare namespace DevExpress.framework { /** An object used to store information on the views displayed in an application. */ export class ViewCache { viewRemoved: JQueryCallback; @@ -4328,11 +4328,11 @@ declare module DevExpress.framework { /** Removes the application state that has been saved by the saveState() method to the state storage. */ clearState(): void; } - export module html { + export namespace html { export var layoutSets: Array; export var animationSets: { [animationSetName: string]: AnimationSet }; export interface AnimationSet { - [animationName: string]: any + [animationName: string]: any; } export interface HtmlApplicationOptions { /** Specifies where the commands that are defined in the application's views must be displayed. */ @@ -4542,7 +4542,7 @@ declare module DevExpress.framework { } } } -declare module DevExpress.viz.core { +declare namespace DevExpress.viz.core { /** * Applies a theme for the entire page with several DevExtreme visualization widgets. * @deprecated Use the DevExpress.viz.currentTheme(theme) method instead. @@ -4645,7 +4645,7 @@ declare module DevExpress.viz.core { font?: viz.core.Font; /** Specifies text for the subtitle. */ text?: string; - } + }; } export interface Tooltip { /** Specifies the length of the tooltip's arrow in pixels. */ @@ -4778,7 +4778,7 @@ declare module DevExpress.viz.core { svg(): string; } } -declare module DevExpress.viz.charts { +declare namespace DevExpress.viz.charts { /** This section describes the fields and methods that can be used in code to manipulate the Series object. */ export interface BaseSeries { /** Provides information about the state of the series object. */ @@ -5634,7 +5634,7 @@ declare module DevExpress.viz.charts { minValueMargin?: number; tick?: { visible?: boolean; - } + }; } export interface CommonPane { /** Specifies a background color in a pane. */ @@ -5934,7 +5934,7 @@ declare module DevExpress.viz.charts { precision?: number; /** Customizes the text displayed by the crosshair label that accompany the horizontal line. */ customizeText?: (info: { value: any; valueText: string; point: ChartPoint; }) => string; - } + }; } export interface PolarChartTooltip extends BaseChartTooltip { /** Specifies the kind of information to display in a tooltip. */ @@ -6029,7 +6029,7 @@ interface JQuery { dxPolarChart(methodName: string, ...params: any[]): any; dxPolarChart(methodName: "instance"): DevExpress.viz.charts.dxPolarChart; } -declare module DevExpress.viz.gauges { +declare namespace DevExpress.viz.gauges { export interface BaseRangeContainer { /** Specifies a range container's background color. */ backgroundColor?: string; @@ -6446,7 +6446,7 @@ interface JQuery { dxBarGauge(methodName: string, ...params: any[]): any; dxBarGauge(methodName: "instance"): DevExpress.viz.gauges.dxBarGauge; } -declare module DevExpress.viz.rangeSelector { +declare namespace DevExpress.viz.rangeSelector { export interface dxRangeSelectorOptions extends viz.core.BaseWidgetOptions { /** Specifies the options for the range selector's background. */ background?: { @@ -6742,7 +6742,7 @@ interface JQuery { dxRangeSelector(methodName: string, ...params: any[]): any; dxRangeSelector(methodName: "instance"): DevExpress.viz.rangeSelector.dxRangeSelector; } -declare module DevExpress.viz.map { +declare namespace DevExpress.viz.map { /** This section describes the fields and methods that can be used in code to manipulate the Layer object. */ export interface MapLayer { /** The name of the layer. */ @@ -7307,7 +7307,7 @@ declare module DevExpress.viz.map { layer?: string; /** Specifies the type of the legend grouping. */ grouping?: string; - } + }; } /** A vector map widget. */ export class dxVectorMap extends viz.core.BaseWidget { @@ -7381,7 +7381,7 @@ interface JQuery { dxVectorMap(methodName: string, ...params: any[]): any; dxVectorMap(methodName: "instance"): DevExpress.viz.map.dxVectorMap; } -declare module DevExpress.viz.sparklines { +declare namespace DevExpress.viz.sparklines { export interface SparklineTooltip extends viz.core.Tooltip { /** * Specifies how a tooltip is horizontally aligned relative to the graph. diff --git a/devtools-detect/index.d.ts b/devtools-detect/index.d.ts index c66d63f0fa..ce83bca821 100644 --- a/devtools-detect/index.d.ts +++ b/devtools-detect/index.d.ts @@ -6,7 +6,7 @@ type DevTools = { open: boolean; orientation: "vertical" | "horizontal"; -} +}; interface DevToolsEvent extends Event { detail: DevTools; } diff --git a/dhtmlxgantt/index.d.ts b/dhtmlxgantt/index.d.ts index a9542cc00f..b71152a2a5 100644 --- a/dhtmlxgantt/index.d.ts +++ b/dhtmlxgantt/index.d.ts @@ -4,10 +4,10 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -interface GanttCallback { (...args: any[]) : any } -type GanttEventName ='onAfterAutoSchedule'|'onAfterBatchUpdate'|'onAfterLightbox'|'onAfterLinkAdd'|'onAfterLinkDelete'|'onAfterLinkUpdate'|'onAfterRedo'|'onAfterTaskAdd'|'onAfterTaskAutoSchedule'|'onAfterTaskDelete'|'onAfterTaskDrag'|'onAfterTaskMove'|'onAfterTaskUpdate'|'onAfterUndo'|'onAjaxError'|'onBeforeAutoSchedule'|'onBeforeBatchUpdate'|'onBeforeCollapse'|'onBeforeDataRender'|'onBeforeExpand'|'onBeforeGanttReady'|'onBeforeGanttRender'|'onBeforeLightbox'|'onBeforeLinkAdd'|'onBeforeLinkDelete'|'onBeforeLinkDisplay'|'onBeforeLinkUpdate'|'onBeforeParse'|'onBeforeRedo'|'onBeforeRowDragEnd'|'onBeforeTaskAdd'|'onBeforeTaskAutoSchedule'|'onBeforeTaskChanged'|'onBeforeTaskDelete'|'onBeforeTaskDisplay'|'onBeforeTaskDrag'|'onBeforeTaskMove'|'onBeforeTaskSelected'|'onBeforeTaskUpdate'|'onBeforeUndo'|'onCircularLinkError'|'onClear'|'onCollapse'|'onColumnResize'|'onColumnResizeEnd'|'onColumnResizeStart'|'onContextMenu'|'onDataRender'|'onEmptyClick'|'onError'|'onExpand'|'onGanttReady'|'onGanttRender'|'onGanttScroll'|'onGridHeaderClick'|'onGridResize'|'onGridResizeEnd'|'onGridResizeStart'|'onLightbox'|'onLightboxButton'|'onLightboxCancel'|'onLightboxChange'|'onLightboxDelete'|'onLightboxSave'|'onLinkClick'|'onLinkDblClick'|'onLinkIdChange'|'onLinkValidation'|'onLoadEnd'|'onLoadStart'|'onMouseMove'|'onOptionsLoad'|'onParse'|'onRowDragEnd'|'onRowDragStart'|'onScaleAdjusted'|'onScaleClick'|'onTaskClick'|'onTaskClosed'|'onTaskCreated'|'onTaskDblClick'|'onTaskDrag'|'onTaskIdChange'|'onTaskLoading'|'onTaskOpened'|'onTaskRowClick'|'onTaskSelected'|'onTaskUnselected'|'onTemplatesReady'; +interface GanttCallback { (...args: any[]): any; } +type GanttEventName = 'onAfterAutoSchedule'|'onAfterBatchUpdate'|'onAfterLightbox'|'onAfterLinkAdd'|'onAfterLinkDelete'|'onAfterLinkUpdate'|'onAfterRedo'|'onAfterTaskAdd'|'onAfterTaskAutoSchedule'|'onAfterTaskDelete'|'onAfterTaskDrag'|'onAfterTaskMove'|'onAfterTaskUpdate'|'onAfterUndo'|'onAjaxError'|'onBeforeAutoSchedule'|'onBeforeBatchUpdate'|'onBeforeCollapse'|'onBeforeDataRender'|'onBeforeExpand'|'onBeforeGanttReady'|'onBeforeGanttRender'|'onBeforeLightbox'|'onBeforeLinkAdd'|'onBeforeLinkDelete'|'onBeforeLinkDisplay'|'onBeforeLinkUpdate'|'onBeforeParse'|'onBeforeRedo'|'onBeforeRowDragEnd'|'onBeforeTaskAdd'|'onBeforeTaskAutoSchedule'|'onBeforeTaskChanged'|'onBeforeTaskDelete'|'onBeforeTaskDisplay'|'onBeforeTaskDrag'|'onBeforeTaskMove'|'onBeforeTaskSelected'|'onBeforeTaskUpdate'|'onBeforeUndo'|'onCircularLinkError'|'onClear'|'onCollapse'|'onColumnResize'|'onColumnResizeEnd'|'onColumnResizeStart'|'onContextMenu'|'onDataRender'|'onEmptyClick'|'onError'|'onExpand'|'onGanttReady'|'onGanttRender'|'onGanttScroll'|'onGridHeaderClick'|'onGridResize'|'onGridResizeEnd'|'onGridResizeStart'|'onLightbox'|'onLightboxButton'|'onLightboxCancel'|'onLightboxChange'|'onLightboxDelete'|'onLightboxSave'|'onLinkClick'|'onLinkDblClick'|'onLinkIdChange'|'onLinkValidation'|'onLoadEnd'|'onLoadStart'|'onMouseMove'|'onOptionsLoad'|'onParse'|'onRowDragEnd'|'onRowDragStart'|'onScaleAdjusted'|'onScaleClick'|'onTaskClick'|'onTaskClosed'|'onTaskCreated'|'onTaskDblClick'|'onTaskDrag'|'onTaskIdChange'|'onTaskLoading'|'onTaskOpened'|'onTaskRowClick'|'onTaskSelected'|'onTaskUnselected'|'onTemplatesReady'; -interface GanttTemplates{ +interface GanttTemplates { /** * specifies the format of dates that are set by means of API methods. Used to parse incoming dates * @param date the date which needs formatting @@ -269,7 +269,7 @@ interface GanttTemplates{ } -interface GanttConfigOptions{ +interface GanttConfigOptions { /** * sets the date format for addTask() method to */ @@ -802,7 +802,7 @@ interface GanttConfigOptions{ } -interface GanttDateHelpers{ +interface GanttDateHelpers { add(origin: Date, count: number, unit: string): Date; copy(origin: Date): Date; @@ -823,21 +823,21 @@ interface GanttDateHelpers{ to_fixed(value: number): string; } -interface GanttHotkeys{ +interface GanttHotkeys { edit_save: number; edit_cancel: number; } -//Gantt.locale +//Gantt.locale -interface GanttLocaleDate{ +interface GanttLocaleDate { month_full: string[]; month_short: string[]; day_full: string[]; day_short: string[]; } -interface GanttLocaleLabels{ +interface GanttLocaleLabels { new_task: string; icon_save: string; icon_cancel: string; @@ -861,19 +861,19 @@ interface GanttLocaleLabels{ years: string; } -interface GanttLocale{ +interface GanttLocale { date: GanttLocaleDate; labels: GanttLocaleLabels; } -interface GanttEnterprise{ +interface GanttEnterprise { /** * Creates a new instance of Gantt */ getGanttInstance(): GanttStatic; } -interface GanttStatic{ +interface GanttStatic { templates: GanttTemplates; config: GanttConfigOptions; date: GanttDateHelpers; diff --git a/dhtmlxscheduler/index.d.ts b/dhtmlxscheduler/index.d.ts index 3f075861ab..60919562cd 100644 --- a/dhtmlxscheduler/index.d.ts +++ b/dhtmlxscheduler/index.d.ts @@ -3,8 +3,8 @@ // Definitions by: Maksim Kozhukh // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -interface SchedulerCallback { (...args: any[]): any } -interface SchedulerFilterCallback { (id: string | number, event: any): boolean } +interface SchedulerCallback { (...args: any[]): any; } +interface SchedulerFilterCallback { (id: string | number, event: any): boolean; } type SchedulerEventName = 'onAfterEventDisplay' | 'onAfterFolderToggle' | 'onAfterLightbox' | 'onAfterSchedulerResize' | 'onBeforeCollapse' | 'onBeforeDrag' | 'onBeforeEventChanged' | 'onBeforeEventCreated' | 'onBeforeEventDelete' | 'onBeforeEventDisplay' | 'onBeforeEventDragIn' | 'onBeforeEventDragOut' | 'onBeforeExpand' | 'onBeforeExternalDragIn' | 'onBeforeFolderToggle' | 'onBeforeLightbox' | 'onBeforeSectionRender' | 'onBeforeTodayDisplayed' | 'onBeforeTooltip' | 'onBeforeViewChange' | 'onCellClick' | 'onCellDblClick' | 'onClearAll' | 'onClick' | 'onCollapse' | 'onConfirmedBeforeEventDelete' | 'onContextMenu' | 'onDblClick' | 'onDragEnd' | 'onEmptyClick' | 'onEventAdded' | 'onEventCancel' | 'onEventChanged' | 'onEventCollision' | 'onEventCopied' | 'onEventCreated' | 'onEventCut' | 'onEventDeleted' | 'onEventDrag' | 'onEventDragIn' | 'onEventDragOut' | 'onEventDropOut' | 'onEventIdChange' | 'onEventLoading' | 'onEventPasted' | 'onEventSave' | 'onExpand' | 'onExternalDragIn' | 'onLightbox' | 'onLightboxButton' | 'onLimitViolation' | 'onLoadError' | 'onLocationError' | 'onMouseDown' | 'onMouseMove' | 'onOptionsLoad' | 'onOptionsLoadFinal' | 'onOptionsLoadStart' | 'onSaveError' | 'onScaleAdd' | 'onScaleDblClick' | 'onSchedulerReady' | 'onSchedulerResize' | 'onTemplatesReady' | 'onTimelineCreated' | 'onViewChange' | 'onViewMoreClick' | 'onXLE' | 'onXLS' | 'onXScaleClick' | 'onXScaleDblClick' | 'onYScaleClick' | 'onYScaleDblClick'; diff --git a/diff-match-patch/diff-match-patch-tests.ts b/diff-match-patch/diff-match-patch-tests.ts index 9226d7be4a..daad868f19 100644 --- a/diff-match-patch/diff-match-patch-tests.ts +++ b/diff-match-patch/diff-match-patch-tests.ts @@ -14,7 +14,7 @@ var pattern = ""; diffs.forEach(function(diff) { var operation = diff[0]; // Operation (insert, delete, equal) var text = diff[1]; // Text of change - + switch (operation) { case DiffMatchPatch.DIFF_INSERT: pattern += "I"; diff --git a/diff/index.d.ts b/diff/index.d.ts index 102305ce70..ed1445feb1 100644 --- a/diff/index.d.ts +++ b/diff/index.d.ts @@ -36,34 +36,34 @@ declare namespace JsDiff { } class Diff { - ignoreWhitespace:boolean; + ignoreWhitespace: boolean; - constructor(ignoreWhitespace?:boolean); + constructor(ignoreWhitespace?: boolean); - diff(oldString:string, newString:string):IDiffResult[]; + diff(oldString: string, newString: string): IDiffResult[]; - pushComponent(components:IDiffResult[], value:string, added:boolean, removed:boolean):void; + pushComponent(components: IDiffResult[], value: string, added: boolean, removed: boolean): void; - extractCommon(basePath:IBestPath, newString:string, oldString:string, diagonalPath:number):number; + extractCommon(basePath: IBestPath, newString: string, oldString: string, diagonalPath: number): number; - equals(left:string, right:string):boolean; + equals(left: string, right: string): boolean; - join(left:string, right:string):string; + join(left: string, right: string): string; - tokenize(value:string):any; // return types are string or string[] + tokenize(value: string): any; // return types are string or string[] } - function diffChars(oldStr:string, newStr:string):IDiffResult[]; + function diffChars(oldStr: string, newStr: string): IDiffResult[]; - function diffWords(oldStr:string, newStr:string):IDiffResult[]; + function diffWords(oldStr: string, newStr: string): IDiffResult[]; - function diffWordsWithSpace(oldStr:string, newStr:string):IDiffResult[]; + function diffWordsWithSpace(oldStr: string, newStr: string): IDiffResult[]; function diffJson(oldObj: Object, newObj: Object): IDiffResult[]; - function diffLines(oldStr:string, newStr:string):IDiffResult[]; + function diffLines(oldStr: string, newStr: string): IDiffResult[]; - function diffCss(oldStr:string, newStr:string):IDiffResult[]; + function diffCss(oldStr: string, newStr: string): IDiffResult[]; function createPatch(fileName: string, oldStr: string, newStr: string, oldHeader: string, newHeader: string, options?: {context: number}): string; @@ -81,7 +81,7 @@ declare namespace JsDiff { function parsePatch(diffStr: string, options?: {strict: boolean}): IUniDiff[]; - function convertChangesToXML(changes:IDiffResult[]):string; + function convertChangesToXML(changes: IDiffResult[]): string; - function convertChangesToDMP(changes:IDiffResult[]):{0: number; 1:string;}[]; + function convertChangesToDMP(changes: IDiffResult[]): {0: number; 1: string}[]; } diff --git a/diff2html/index.d.ts b/diff2html/index.d.ts index 398cb1aba1..07e836cec4 100644 --- a/diff2html/index.d.ts +++ b/diff2html/index.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace Diff2Html { - + export interface Options { inputFormat?: string; outputFormat?: string; @@ -53,7 +53,7 @@ declare namespace Diff2Html { checksumAfter?: string; mode?: string; } - + export interface Diff2Html { getJsonFromDiff(input: string, configuration?: Options): Result; getPrettyHtml(input: any, configuration?: Options): string; diff --git a/doccookies/docCookies-tests.ts b/doccookies/docCookies-tests.ts index 2b26c63970..f94136ac51 100644 --- a/doccookies/docCookies-tests.ts +++ b/doccookies/docCookies-tests.ts @@ -15,7 +15,7 @@ docCookies.setItem("test6", "Hello world!", 150); docCookies.setItem("test7", "Hello world!", 245, "/content"); docCookies.setItem("test8", "Hello world!", null, null, "example.com"); docCookies.setItem("test9", "Hello world!", null, null, null, true); - + alert(docCookies.keys().join("\n")); alert(docCookies.getItem("test1")); alert(docCookies.getItem("test5")); diff --git a/doccookies/index.d.ts b/doccookies/index.d.ts index e2590a2def..25009202e5 100644 --- a/doccookies/index.d.ts +++ b/doccookies/index.d.ts @@ -7,19 +7,19 @@ interface docCookies { /** Create/overwrite a cookie. - @param {string} name (required) The name of the cookie to create/overwrite - @param {string} value (required) The value of the cookie + @param {string} name (required) The name of the cookie to create/overwrite + @param {string} value (required) The value of the cookie @param {number} end (optional) The max-age in seconds (e.g. 31536e3 for a year, Infinity for a never-expires cookie). If not specified it will expire at the end of session @param {string} path (optional) E.g., "/", "/mydir"; if not specified, defaults to the current path of the current document location @param {string} domain (optional) E.g., "example.com", ".example.com" (includes all subdomains) or "subdomain.example.com"; if not specified, defaults to the host portion of the current document location @param {boolean} secure (optional) The cookie will be transmitted only over secure protocol as https - */ + */ setItem(sKey: string, sValue: string, vEnd?: number, sPath?: string, sDomain?: string, bSecure?: boolean): boolean; /** Create/overwrite a cookie. - @param {string} name (required) The name of the cookie to create/overwrite - @param {string} value (required) The value of the cookie + @param {string} name (required) The name of the cookie to create/overwrite + @param {string} value (required) The value of the cookie @param {string} end (optional) The expires date in GMTString format. If not specified it will expire at the end of session @param {string} path (optional) E.g., "/", "/mydir"; if not specified, defaults to the current path of the current document location @param {string} domain (optional) E.g., "example.com", ".example.com" (includes all subdomains) or "subdomain.example.com"; if not specified, defaults to the host portion of the current document location @@ -29,8 +29,8 @@ interface docCookies { /** Create/overwrite a cookie. - @param {string} name (required) The name of the cookie to create/overwrite - @param {string} value (required) The value of the cookie + @param {string} name (required) The name of the cookie to create/overwrite + @param {string} value (required) The value of the cookie @param {Date} end (optional) The expires date as a Date object. If not specified it will expire at the end of session @param {string} path (optional) E.g., "/", "/mydir"; if not specified, defaults to the current path of the current document location @param {string} domain (optional) E.g., "example.com", ".example.com" (includes all subdomains) or "subdomain.example.com"; if not specified, defaults to the host portion of the current document location @@ -40,13 +40,13 @@ interface docCookies { /** Read a cookie. If the cookie doesn't exist a null value will be returned. - @param {string} name (required) The name of the cookie to read + @param {string} name (required) The name of the cookie to read */ getItem(sKey: string): string; /** Delete a cookie. - @param {string} name (required) The name of the cookie to remove + @param {string} name (required) The name of the cookie to remove */ removeItem(sKey: string, sPath?: string): boolean; diff --git a/dock-spawn/index.d.ts b/dock-spawn/index.d.ts index df20eb632a..c2a35805bf 100644 --- a/dock-spawn/index.d.ts +++ b/dock-spawn/index.d.ts @@ -4,15 +4,13 @@ // Definitions by: Drew Noakes // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/dock-spawn -declare namespace dockspawn -{ +declare namespace dockspawn { /** * Dock manager manages all the dock panels in a hierarchy, similar to Visual Studio. * It owns an HTMLDivElement inside which all panels are docked. * Initially the document manager takes up the central space and acts as the root node. */ - class DockManager - { + class DockManager { context: DockManagerContext; constructor(element: HTMLDivElement); @@ -64,8 +62,7 @@ declare namespace dockspawn loadState(state: string): void; } - class DockManagerContext - { + class DockManagerContext { dockManager: DockManager; model: DockModel; documentManagerView: DocumentManagerContainer; @@ -73,14 +70,12 @@ declare namespace dockspawn constructor(dockManager: DockManager); } - class DockModel - { + class DockModel { rootNode: DockNode; documentManagerNode: DockNode; } - class DockNode - { + class DockNode { constructor(container: PanelContainer); detachFromParent(): void; @@ -90,8 +85,7 @@ declare namespace dockspawn * Tab Host control contains tabs known as TabPages. * The tab strip can be aligned in different orientations */ - class TabHost - { + class TabHost { tabStripDirection: TabStripDirection; displayCloseButton: boolean; pages: TabPage[]; @@ -110,21 +104,18 @@ declare namespace dockspawn resize(width: number, height: number): void; } - class TabPage - { + class TabPage { constructor(host: TabHost, container: PanelContainer); } - enum TabStripDirection - { + enum TabStripDirection { DIRECTION_TOP = 0, DIRECTION_BOTTOM = 1, DIRECTION_LEFT = 2, DIRECTION_RIGHT = 3 } - class FillDockContainer - { + class FillDockContainer { tabOrientation: TabStripDirection; element: HTMLDivElement; tabHost: TabHost; @@ -141,8 +132,7 @@ declare namespace dockspawn * This is where more important panels are placed (e.g. the text editor in an IDE, * 3D view in a modelling package etc */ - class DocumentManagerContainer extends FillDockContainer - { + class DocumentManagerContainer extends FillDockContainer { selectedTab: TabPage; constructor(dockManager: DockManager); @@ -150,8 +140,7 @@ declare namespace dockspawn saveState(state: string): void; } - class PanelContainer - { + class PanelContainer { width: number; height: number; @@ -161,8 +150,7 @@ declare namespace dockspawn setTitleIcon(iconName: string): void; } - class Dialog - { + class Dialog { static fromElement(id: string, dockManager: DockManager): Dialog; constructor(panel: PanelContainer, dockManager: DockManager); diff --git a/docopt/index.d.ts b/docopt/index.d.ts index a40904bf76..790f71d946 100644 --- a/docopt/index.d.ts +++ b/docopt/index.d.ts @@ -12,13 +12,13 @@ export = docopt; interface DocoptOption { /** is an optional argument vector. It defaults to the arguments passed to your program (process.argv[2..]). You can also supply it with an array of strings, as with process.argv. For example: ['--verbose', '-o', 'hai.txt'] */ - argv?: Array, + argv?: Array; /** (default:true) specifies whether the parser should automatically print the help message (supplied as doc) in case -h or --help options are encountered. After showing the usage-message, the program will terminate. If you want to handle -h or --help options manually (the same as other options), set help=false. */ - help?: boolean, + help?: boolean; /** (default:null) is an optional argument that specifies the version of your program. If supplied, then, if the parser encounters --version option, it will print the supplied version and terminate. version could be any printable object, but most likely a string, e.g. '2.1.0rc1'. */ - version?: any, + version?: any; /** (default false) If set to true will disallow mixing options and positional argument. I.e. after first positional argument, all arguments will be interpreted as positional even if the look like options. This can be used for strict compatibility with POSIX, or if you want to dispatch your arguments to other programs. */ - options_first?: boolean, + options_first?: boolean; /** (default true) If set to false will cause docopt to throw exceptions instead of printing the error to console and terminating the application. This flag is mainly for testing purposes. */ - exit?: boolean + exit?: boolean; } diff --git a/doctrine/index.d.ts b/doctrine/index.d.ts index 6ccab4269a..40afe40165 100644 --- a/doctrine/index.d.ts +++ b/doctrine/index.d.ts @@ -103,40 +103,40 @@ export type Type = type.TypeApplication | type.UndefinedLiteral | type.UnionType | type.VoidLiteral); -export module type { - export interface AllLiteral { type: 'AllLiteral' } - export interface ArrayType { type: 'ArrayType', elements: Type[] } - export interface FieldType { type: 'FieldType', key: string, value?: Type } +export namespace type { + export interface AllLiteral { type: 'AllLiteral'; } + export interface ArrayType { type: 'ArrayType'; elements: Type[]; } + export interface FieldType { type: 'FieldType'; key: string; value?: Type; } export interface FunctionType { type: 'FunctionType'; 'this': Type; - 'new': Type, params: Type[]; - result: Type[] + 'new': Type; params: Type[]; + result: Type[]; } - export interface NameExpression { type: 'NameExpression', name: string } + export interface NameExpression { type: 'NameExpression'; name: string; } export interface NonNullableType { - type: 'NonNullableType', prefix: boolean, expression: Type + type: 'NonNullableType'; prefix: boolean; expression: Type; } - export interface NullableLiteral { type: 'NullableLiteral' } + export interface NullableLiteral { type: 'NullableLiteral'; } export interface NullableType { - type: 'NullableType', prefix: boolean, expression: Type + type: 'NullableType'; prefix: boolean; expression: Type; } - export interface NullLiteral { type: 'NullLiteral' } - export interface OptionalType { type: 'OptionalType', expression: Type } + export interface NullLiteral { type: 'NullLiteral'; } + export interface OptionalType { type: 'OptionalType'; expression: Type; } export interface ParameterType { - type: 'ParameterType', name: string, expression: Type + type: 'ParameterType'; name: string; expression: Type; } - export interface RecordType { type: 'RecordType', fields: Type[] } + export interface RecordType { type: 'RecordType'; fields: Type[]; } export interface RestType { type: 'RestType'; expression?: Type; } export interface TypeApplication { - type: 'TypeApplication', expression: Type, applications: Type[] + type: 'TypeApplication'; expression: Type; applications: Type[]; } - export interface UndefinedLiteral { type: 'UndefinedLiteral' } - export interface UnionType { type: 'UnionType', elements: Type[] } - export interface VoidLiteral { type: 'VoidLiteral' } + export interface UndefinedLiteral { type: 'UndefinedLiteral'; } + export interface UnionType { type: 'UnionType'; elements: Type[]; } + export interface VoidLiteral { type: 'VoidLiteral'; } export function stringify(type: Type): string; export function parseType(src: string, options?: {midstream: boolean}): Type; @@ -161,7 +161,7 @@ export module type { NullableType: 'NullableType', NameExpression: 'NameExpression', TypeApplication: 'TypeApplication' - } + }; } export const version: string; diff --git a/documentdb-server/documentdb-server-tests.ts b/documentdb-server/documentdb-server-tests.ts index 0cc3dc55bd..924a47c304 100644 --- a/documentdb-server/documentdb-server-tests.ts +++ b/documentdb-server/documentdb-server-tests.ts @@ -103,7 +103,7 @@ function value() { // Samples taken from https://github.com/Azure/azure-documentdb-js-server/tree/master/samples /** * This script called as stored procedure to import lots of documents in one batch. -* The script sets response body to the number of docs imported and is called multiple times +* The script sets response body to the number of docs imported and is called multiple times * by the client until total number of docs desired by the client is imported. * @param {Object[]} docs - Array of documents to import. */ @@ -127,7 +127,7 @@ function bulkImport(docs: Array) { tryCreate(docs[count], callback); // Note that there are 2 exit conditions: - // 1) The createDocument request was not accepted. + // 1) The createDocument request was not accepted. // In this case the callback will not be called, we just call setBody and we are done. // 2) The callback was called docs.length times. // In this case all documents were created and we don't need to call tryCreate anymore. Just call setBody and we are done. @@ -135,7 +135,7 @@ function bulkImport(docs: Array) { var isAccepted = collection.createDocument(collectionLink, doc, callback); // If the request was accepted, callback will be called. - // Otherwise report current count back to the client, + // Otherwise report current count back to the client, // which will call the script again with remaining set of docs. // This condition will happen when this stored procedure has been running too long // and is about to get cancelled by the server. This will allow the calling client @@ -164,7 +164,7 @@ function bulkImport(docs: Array) { * This is executed as stored procedure to count the number of docs in the collection. * To avoid script timeout on the server when there are lots of documents (100K+), the script executed in batches, * each batch counts docs to some number and returns continuation token. -* The script is run multiple times, starting from empty continuation, +* The script is run multiple times, starting from empty continuation, * then using continuation returned by last invocation script until continuation returned by the script is null/empty string. * * @param {String} filterQuery - Optional filter for query (e.g. "SELECT * FROM docs WHERE docs.category = 'food'"). @@ -172,7 +172,7 @@ function bulkImport(docs: Array) { */ function count(filterQuery: string, continuationToken: string) { var collection: ICollection = getContext().getCollection(); - var maxResult: number = 25; // MAX number of docs to process in one batch, when reached, return to client/request continuation. + var maxResult: number = 25; // MAX number of docs to process in one batch, when reached, return to client/request continuation. // intentionally set low to demonstrate the concept. This can be much higher. Try experimenting. // We've had it in to the high thousands before seeing the stored proceudre timing out. @@ -186,7 +186,7 @@ function count(filterQuery: string, continuationToken: string) { var responseOptions: Object = { continuation: nextContinuationToken, pageSize: maxResult }; // In case the server is running this script for long time/near timeout, it would return false, - // in this case we set the response to current continuation token, + // in this case we set the response to current continuation token, // and the client will run this script again starting from this continuation. // When the client calls this script 1st time, is passes empty continuation token. if (result >= maxResult || !query(responseOptions)) { @@ -210,7 +210,7 @@ function count(filterQuery: string, continuationToken: string) { // Increament the number of documents counted so far. result += docFeed.length; - // If there is continuation, call query again with it, + // If there is continuation, call query again with it, // otherwise we are done, in which case set continuation to null. if (responseOptions.continuation) { tryQuery(responseOptions.continuation); @@ -324,7 +324,7 @@ function orderBy(filterQuery: string, orderByFieldName: string, continuationToke break; } } - + // Now next batch to return to client has i elements. // Slice the continuationResult if needed and discard the end. var partialResult: Array = continuationResult; @@ -341,7 +341,7 @@ function orderBy(filterQuery: string, orderByFieldName: string, continuationToke /** * This is run as stored procedure and does the following: -* - get 1st document in the collection, convert to JSON, prepend string specified by the prefix parameter +* - get 1st document in the collection, convert to JSON, prepend string specified by the prefix parameter * and set response to the result of that. * * @param {String} prefix - The string to prepend to the 1st document in collection. @@ -750,8 +750,8 @@ function updateSproc(id: string, update: Object) { /** * A DocumentDB stored procedure that upserts a given document (insert new or update if present) using its id property.
- * This implementation tries to create, and if the create fails then query for the document with the specified document's id, then replace it. - * Use this sproc if creates are more common than replaces, otherwise use "upsertOptimizedForReplace" + * This implementation tries to create, and if the create fails then query for the document with the specified document's id, then replace it. + * Use this sproc if creates are more common than replaces, otherwise use "upsertOptimizedForReplace" * * @function * @param {Object} document - A document that should be upserted into this collection. @@ -820,7 +820,7 @@ function upsert(document: IDocumentMeta) { /** * A DocumentDB stored procedure that upserts a given document (insert new or update if present) using its id property.
* This implementation queries for the document's id, and creates if absent and replaces if found. - * Use this sproc if replaces are more common than creates, otherwise use "upsert" + * Use this sproc if replaces are more common than creates, otherwise use "upsert" * * @function * @param {Object} document - A document that should be upserted into this collection. @@ -941,17 +941,17 @@ function updateMetadata() { // for 1st document use doc.Size, for all the rest see if it's less than last min. if (metaDoc.minSize == 0) metaDoc.minSize = doc.size; else metaDoc.minSize = Math.min(metaDoc.minSize, doc.size); - + // Update metaDoc.maxSize. metaDoc.maxSize = Math.max(metaDoc.maxSize, doc.size); // Update metaDoc.totalSize. metaDoc.totalSize += doc.size; - + // Update/replace the metadata document in the store. var isAccepted: boolean = collection.replaceDocument(metaDoc._self, metaDoc, function (err: IRequestCallbackError) { if (err) throw err; - // Note: in case concurrent updates causes conflict with ErrorCode.RETRY_WITH, we can't read the meta again + // Note: in case concurrent updates causes conflict with ErrorCode.RETRY_WITH, we can't read the meta again // and update again because due to Snapshot isolation we will read same exact version (we are in same transaction). // We have to take care of that on the client side. }); diff --git a/documentdb-server/index.d.ts b/documentdb-server/index.d.ts index 907fbd3d8c..8b6437d9b0 100644 --- a/documentdb-server/index.d.ts +++ b/documentdb-server/index.d.ts @@ -130,14 +130,14 @@ interface IQueryAPI { value(options?: IFeedOptions, callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): IQueryResponse; } - + /** * Stored procedures and triggers are registered for a particular collection. The Collection object supports create, read, update and delete (CRUD) and query operations on documents and attachments in the current collection. * All collection operations are completed asynchronously. You can provide a callback to handle the result of the operation, and to perform error handling if necessary. * Stored procedures and triggers are executed in a time-limited manner. Long-running stored procedures and triggers are defensively timed out and all transactions performed are rolled back. * We stop queuing collection operations if the stored procedure is close to timing out. You can inspect the boolean return value of all collection operations to see if an operation was not queued and handle this situation gracefully. */ -interface ICollection extends IQueryAPI { +interface ICollection extends IQueryAPI { /** Opening call to start a chained query. Should be used in conjunction with the closing value call to perform chained queries. */ chain(): IQueryResponse; @@ -152,7 +152,7 @@ interface ICollection extends IQueryAPI { body: IAttachment, options?: ICreateOptions, callback?: (error: IRequestCallbackError, resources: Object, options: IRequestCallbackOptions) => void): boolean; - + /** * Create a document under the collection. * @param collectionLink resource link of the collection under which the document will be created @@ -164,7 +164,7 @@ interface ICollection extends IQueryAPI { body: Object, options?: ICreateOptions, callback?: (error: IRequestCallbackError, resources: Object, options: IRequestCallbackOptions) => void): boolean; - + /** * Delete an attachment. * @param attachmentLink resource link of the attachment to be deleted @@ -174,7 +174,7 @@ interface ICollection extends IQueryAPI { deleteAttachment(attachmentLink: string, options?: IDeleteOptions, callback?: (error: IRequestCallbackError, resources: Object, options: IRequestCallbackOptions) => void): boolean; - + /** * Delete a document. * @param documentLink resource link of the document to delete @@ -184,13 +184,13 @@ interface ICollection extends IQueryAPI { deleteDocument(documentLink: string, options?: IDeleteOptions, callback?: (error: IRequestCallbackError, resources: Object, options: IRequestCallbackOptions) => void): boolean; - + /** Get alt link (name-based link) of current collection. */ getAltLink(): string; /** Get self link of current collection. */ getSelfLink(): string; - + /** * Execute a SQL query on the attachments for the document. * @param documentLink resource link of the document whose attachments are being queried @@ -206,7 +206,7 @@ interface ICollection extends IQueryAPI { query: IParameterizedQuery, options?: IFeedOptions, callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): boolean; - + /** * Execute a SQL query on the documents of the collection. * @param collectionLink resource link of the collection whose documents are being queried @@ -230,7 +230,7 @@ interface ICollection extends IQueryAPI { filterQuery: IParameterizedQuery, options?: IFeedOptions, callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): boolean; - + /** * Read an Attachment. * @param attachmenLink resource link of the attachment to read @@ -240,7 +240,7 @@ interface ICollection extends IQueryAPI { readAttachment(attachmenLink: string, options?: IReadOptions, callback?: (error: IRequestCallbackError, resources: Object, options: IRequestCallbackOptions) => void): boolean; - + /** * Get all attachments for the document. * @param documentLink resource link of the document whose attachments are being read @@ -250,7 +250,7 @@ interface ICollection extends IQueryAPI { readAttachments(documentLink: string, options?: IFeedOptions, callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): boolean; - + /** * Read a document. * @param documentLink resource link of the document to read @@ -263,7 +263,7 @@ interface ICollection extends IQueryAPI { readDocument(documentLink: string, options?: IReadOptions, callback?: (error: IRequestCallbackError, resources: T, options: IRequestCallbackOptions) => void): boolean; - + /** * Get all documents for the collection. * @param collectionLink resource link of the collection whose documents are being read @@ -276,7 +276,7 @@ interface ICollection extends IQueryAPI { readDocuments(collectionLink: string, options?: IFeedOptions, callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): boolean; - + /** * Replace an attachment. * @param attachmentLink resource link of the attachment to be replaced @@ -288,7 +288,7 @@ interface ICollection extends IQueryAPI { attachment: Object, options?: IReplaceOptions, callback?: (error: IRequestCallbackError, resources: Object, options: IRequestCallbackOptions) => void): boolean; - + /** * Replace a document. * @param documentLink resource link of the document @@ -301,7 +301,7 @@ interface ICollection extends IQueryAPI { options?: IReplaceOptions, callback?: (error: IRequestCallbackError, resources: Object, options: IRequestCallbackOptions) => void): boolean; } - + /** Options associated with a create operation. */ interface ICreateOptions { /** Specifies indexing directives. */ @@ -309,7 +309,7 @@ interface ICreateOptions { /** Disables automatic generation of "id" field of the document to be created (if it is not provided) */ disableAutomaticIdGeneration?: string; } - + /** Options associated with a delete operation. */ interface IDeleteOptions { /** @@ -318,7 +318,7 @@ interface IDeleteOptions { */ etag?: string; } - + /** Will contain error information if an error occurs, undefined otherwise. */ interface IFeedCallbackError { /** The HTTP response code corresponding to the error. */ @@ -326,7 +326,7 @@ interface IFeedCallbackError { /** A string containing the error information. */ body: string; } - + /** Information associated with the response to the operation. */ interface IFeedCallbackOptions { /** Opaque token for continuing the read feed or query. */ @@ -336,7 +336,7 @@ interface IFeedCallbackOptions { /** Comma delimited string containing the collection's maximum quota metrics (storage, number of stored procedure, triggers and UDFs). */ maxCollectionSizeInMB: string; } - + /** Options associated with a read feed or query operation. */ interface IFeedOptions { /** @@ -360,13 +360,13 @@ interface IQueryResponse extends IQueryAPI { /** True if the query has been queued, false if it is not queued because of a pending timeout. */ isAccepted: boolean; } - + /** Options associated with a read operation. */ interface IReadOptions { /** The conditional HTTP method ifNoneMatch value. */ ifNoneMatch?: string; } - + /** Options associated with a replace operation. */ interface IReplaceOptions { /** Specifies indexing directives. */ @@ -377,7 +377,7 @@ interface IReplaceOptions { */ etag?: string; } - + /** Will contain error information if an error occurs, undefined otherwise. */ interface IRequestCallbackError { /** The HTTP response code corresponding to the error. */ @@ -385,7 +385,7 @@ interface IRequestCallbackError { /** A string containing the error information. */ body: string; } - + /** Information associated with the response to the operation. */ interface IRequestCallbackOptions { /** Comma delimited string containing the collection's current quota metrics (storage, number of stored procedure, triggers and UDFs) after completion of the operation. */ @@ -411,7 +411,7 @@ interface IDocumentMeta extends Object { _etag?: string; _attachments?: string; } - + /** * The Request object represents the request message that was sent to the server. This includes information about HTTP headers and the body of the HTTP request sent to the server. * For triggers, the request represents the operation that is executing when the trigger is run. For example, if the trigger is being run ("triggered") on the creation of a document, then @@ -445,7 +445,7 @@ interface IRequest { */ setValue(key: string, value: string): void; } - + /** * The Response object represents the response message that will be sent from the server in response to the requested operation. This includes information about the HTTP headers and body of the response from the server. * The Response object is not present in pre-triggers because they are run before the response is generated. diff --git a/documentdb/documentdb-tests.ts b/documentdb/documentdb-tests.ts index 34d6b5236b..ac4b9e538c 100644 --- a/documentdb/documentdb-tests.ts +++ b/documentdb/documentdb-tests.ts @@ -14,7 +14,7 @@ docDBClient.createDatabase({ id: 'foo' }, undefined, (error, result) => { var dbQuerySpec: docDB.SqlQuerySpec = {query: 'SELECT * FROM d WHERE d.meta = @meta', parameters: [{name: '@meta', value: {creator: 'John Smith', type: 'documentdb'}}]}; docDBClient.queryDatabases(dbQuerySpec).toArray((error, result) => { - + if (error) { throw new Error(error.body); } @@ -65,7 +65,7 @@ var trigger: docDB.Trigger = { }; docDBClient.createTrigger('collection', trigger, undefined, (error, result) => { - + if (error) { throw new Error(error.body); } @@ -76,7 +76,7 @@ docDBClient.createTrigger('collection', trigger, undefined, (error, result) => { var triggerQuerySpec: docDB.SqlQuerySpec = {query: 'SELECT * FROM t WHERE t.id = @id', parameters: [{name: '@id', value: 'trigger-foo'}]}; docDBClient.queryTriggers('collection', triggerQuerySpec).toArray((error, result) => { - + if (error) { throw new Error(error.body); } @@ -101,9 +101,9 @@ docDBClient.createDocument('collection', document, undefined, (error, result) => } else { console.log('Created document: ' + result.id); - + docDBClient.replaceDocument(result._self, document, undefined, (subError, subResult) => { - + if (subError) { throw new Error(subError.body); } diff --git a/documentdb/index.d.ts b/documentdb/index.d.ts index 8bcf447d57..f3784791f2 100644 --- a/documentdb/index.d.ts +++ b/documentdb/index.d.ts @@ -94,12 +94,12 @@ interface RequestCallback { /** Represents the result returned from a query. */ interface QueryIterator { current(): TResultRow; - executeNext(callback: (error: QueryError, result: TResultRow[], responseHeaders? : any) => void): void; - forEach(iteratorFunction : (error: QueryError, element: TResultRow, responseHeaders? : any) => void): void; + executeNext(callback: (error: QueryError, result: TResultRow[], responseHeaders?: any) => void): void; + forEach(iteratorFunction: (error: QueryError, element: TResultRow, responseHeaders?: any) => void): void; hasMoreResults(): boolean; - nextItem(callback: (error: QueryError, item: TResultRow, responseHeaders? : any) => void): void; + nextItem(callback: (error: QueryError, item: TResultRow, responseHeaders?: any) => void): void; reset(): void; - toArray(callback: (error: QueryError, result: TResultRow[], responseHeaders? : any) => void): void + toArray(callback: (error: QueryError, result: TResultRow[], responseHeaders?: any) => void): void; } /** Reprents an object with a unique identifier. */ @@ -127,14 +127,14 @@ interface AbstractMeta extends UniqueId { /** Represents a custom document for storing in DocumentDB */ interface NewDocument extends UniqueId { - /** A custom property for containing the actual JSON object representing the document. + /** A custom property for containing the actual JSON object representing the document. * Define a custom property in order to disambiguate the JSON document from the metadata added by Azure. * This property is optional and the name is application-specific. */ // doc: TContent; } -/** Represents a document retrieved from storage. +/** Represents a document retrieved from storage. * This differs from a new document by the properties in AbstractMeta, which are added by the system. */ interface RetrievedDocument extends NewDocument, AbstractMeta { @@ -249,7 +249,7 @@ export declare class DocumentClient { */ constructor(urlConnection: string, auth: AuthOptions, connectionPolicy?: any, consistencyLevel?: string); - /** Send a request for creating a database. + /** Send a request for creating a database. *

* A database manages users, permissions and a set of collections.
* Each Azure DocumentDB Database Account is able to support multiple independent named databases, with the database being the logical container for data.
@@ -281,7 +281,7 @@ export declare class DocumentClient { *

* DocumentDB allows stored procedures to be executed in the storage tier, directly against a document collection. The script
* gets executed under ACID transactions on the primary storage partition of the specified collection. For additional details,
- * refer to the server-side JavaScript API documentation. + * refer to the server-side JavaScript API documentation. *

* @param collectionLink - The self-link of the collection. * @param procedure - Represents the body of the stored procedure. @@ -305,7 +305,7 @@ export declare class DocumentClient { /** * Create a document. - *

+ *

* There is no set schema for JSON documents. They may contain any number of custom properties as well as an optional list of attachments.
* A Document is an application resource and can be authorized using the master key or resource keys *

@@ -324,7 +324,7 @@ export declare class DocumentClient { */ public executeStoredProcedure(procedureLink: string, params: any[], callback: RequestCallback): void; - /** Lists all databases that satisfy a query. + /** Lists all databases that satisfy a query. * @param query - A SQL query string. * @param [options] - The feed options. * @returns - An instance of QueryIterator to handle reading feed. @@ -371,7 +371,7 @@ export declare class DocumentClient { * Delete the document object. * @param documentLink - The self-link of the document. * @param [options] - The request options. - * @param callback - The callback for the request. + * @param callback - The callback for the request. */ public deleteDocument(documentLink: string, options: RequestOptions, callback: RequestCallback): void; @@ -379,7 +379,7 @@ export declare class DocumentClient { * Delete the database object. * @param databaseLink - The self-link of the database. * @param [options] - The request options. - * @param callback - The callback for the request. + * @param callback - The callback for the request. */ public deleteDatabase(databaseLink: string, options: RequestOptions, callback: RequestCallback): void; @@ -387,7 +387,7 @@ export declare class DocumentClient { * Delete the collection object. * @param collectionLink - The self-link of the collection. * @param [options] - The request options. - * @param callback - The callback for the request. + * @param callback - The callback for the request. */ public deleteCollection(collectionLink: string, options: RequestOptions, callback: RequestCallback): void; diff --git a/dojo/dijit.d.ts b/dojo/dijit.d.ts index 3c2d892471..2a12a32017 100644 --- a/dojo/dijit.d.ts +++ b/dojo/dijit.d.ts @@ -3,15 +3,17 @@ // Definitions by: Michael Van Sickle // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// tslint:disable + /// -declare module dijit { +declare namespace dijit { /** * Permalink: http://dojotoolkit.org/api/1.9/dijit/_BidiSupport.html * * Deprecated module for enabling textdir support in the dijit widgets. New code should just define * has("dojo-bidi") to return true, rather than manually requiring this module. - * + * */ interface _BidiSupport{(): void} /** @@ -19,24 +21,24 @@ declare module dijit { * * For IE/FF z-index shenanigans. id attribute is required. * new dijit.BackgroundIframe(node). - * + * * Makes a background iframe as a child of node, that fills * area (and position) of node - * - * @param node + * + * @param node */ interface BackgroundIframe{(node: HTMLElement): void} module BackgroundIframe { /** * destroy the iframe - * + * */ interface destroy{(): void} /** * Resize the iframe so it's the same size as node. * Needed on IE6 and IE/quirks because height:100% doesn't work right. - * - * @param node + * + * @param node */ interface resize{(node: any): void} } @@ -46,7 +48,7 @@ declare module dijit { * * Test if computer is in high contrast mode, and sets dijit_a11y flag on if it is. * Deprecated, use dojo/hccss instead. - * + * */ interface hccss{(): void} /** @@ -54,39 +56,39 @@ declare module dijit { * * Mixin for widgets to attach to dom nodes and setup events via * convenient data-dojo-attach-point and data-dojo-attach-event DOM attributes. - * + * * Superclass of _TemplatedMixin, and can also be used standalone when templates are pre-rendered on the * server. - * + * * Does not [yet] handle widgets like ContentPane with this.containerNode set. It should skip * scanning for data-dojo-attach-point and data-dojo-attach-event inside this.containerNode, but it * doesn't. - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified, replace srcNodeRef with my generated DOM tree. + * + * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. + * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified, replace srcNodeRef with my generated DOM tree. */ class _AttachMixin { constructor(params?: Object, srcNodeRef?: HTMLElement); /** * Object to which attach points and events will be scoped. Defaults * to 'this'. - * + * */ "attachScope": Object; /** * Search descendants of this.containerNode for data-dojo-attach-point and data-dojo-attach-event. * Should generally be left false (the default value) both for performance and to avoid failures when * this.containerNode holds other _AttachMixin instances with their own attach points and events. - * + * */ "searchContainerNode": boolean; /** * Attach to DOM nodes marked with special attributes. - * + * */ buildRendering(): void; /** - * + * */ destroyRendering(): void; } @@ -94,7 +96,7 @@ declare module dijit { * Permalink: http://dojotoolkit.org/api/1.9/dijit/_Container.html * * Mixin for widgets that contain HTML and/or a set of widget children. - * + * */ class _Container { constructor(); @@ -102,40 +104,40 @@ declare module dijit { * Makes the given widget a child of this widget. * Inserts specified child widget's dom node as a child of this widget's * container node, and possibly does other processing (such as layout). - * - * @param widget - * @param insertIndex Optional + * + * @param widget + * @param insertIndex Optional */ addChild(widget: dijit._WidgetBase, insertIndex?: number): void; /** - * + * */ buildRendering(): void; /** * Gets the index of the child in this container or -1 if not found - * - * @param child + * + * @param child */ getIndexOfChild(child: dijit._WidgetBase): any; /** * Returns true if widget has child widgets, i.e. if this.containerNode contains widgets. - * + * */ hasChildren(): boolean; /** * Removes the passed widget instance from this widget but does * not destroy it. You can also pass in an integer indicating * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget + * + * @param widget */ removeChild(widget: dijit._WidgetBase): void; /** * Removes the passed widget instance from this widget but does * not destroy it. You can also pass in an integer indicating * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget + * + * @param widget */ removeChild(widget: number): void; @@ -144,7 +146,7 @@ declare module dijit { * Permalink: http://dojotoolkit.org/api/1.9/dijit/_Contained.html * * Mixin for widgets that are children of a container widget - * + * */ class _Contained { constructor(); @@ -152,19 +154,19 @@ declare module dijit { * Returns the index of this widget within its container parent. * It returns -1 if the parent does not exist, or if the parent * is not a dijit/_Container - * + * */ getIndexInParent(): any; /** * Returns null if this is the last child of the parent, * otherwise returns the next element sibling to the "right". - * + * */ getNextSibling(): any; /** * Returns null if this is the first child of the parent, * otherwise returns the next element sibling to the "left". - * + * */ getPreviousSibling(): any; } @@ -172,7 +174,7 @@ declare module dijit { * Permalink: http://dojotoolkit.org/api/1.9/dijit/_DialogMixin.html * * This provides functions useful to Dialog and TooltipDialog - * + * */ class _DialogMixin { constructor(); @@ -182,10 +184,10 @@ declare module dijit { * After the user has pressed the submit button, the Dialog * first calls onExecute() to notify the container to hide the * dialog and restore focus to wherever it used to be. - * + * * Then this method is called. - * - * @param formContents + * + * @param formContents */ execute(formContents: Object): void; /** @@ -193,7 +195,7 @@ declare module dijit { * Developer shouldn't override or connect to this method; * it's a private communication device between the TooltipDialog * and the thing that opened it (ex: dijit/form/DropDownButton) - * + * */ onCancel(): void; /** @@ -201,7 +203,7 @@ declare module dijit { * Developer shouldn't override or connect to this method; * it's a private communication device between the TooltipDialog * and the thing that opened it (ex: dijit/form/DropDownButton) - * + * */ onExecute(): void; } @@ -214,40 +216,40 @@ declare module dijit { * maintain CSS classes on the widget root node (this.domNode) depending on hover, * active, focus, etc. state. Ex: with a baseClass of dijitButton, it will apply the classes * dijitButtonHovered and dijitButtonActive, as the user moves the mouse over the widget and clicks it. - * + * * It also sets CSS like dijitButtonDisabled based on widget semantic state. - * + * * By setting the cssStateNodes attribute, a widget can also track events on subnodes (like buttons * within the widget). - * + * */ class _CssStateMixin { constructor(); /** * True if mouse was pressed while over this widget, and hasn't been released yet - * + * */ "active": boolean; /** * Subclasses may define a cssStateNodes property that lists sub-nodes within the widget that * need CSS classes applied on mouse hover/press and focus. - * + * * Each entry in this optional hash is a an attach-point name (like "upArrowButton") mapped to a CSS class name * (like "dijitUpArrowButton"). Example: - * + * * { * "upArrowButton": "dijitUpArrowButton", * "downArrowButton": "dijitDownArrowButton" * } * The above will set the CSS class dijitUpArrowButton to the this.upArrowButton DOMNode when it - * + * * is hovered, etc. - * + * */ "cssStateNodes": Object; /** * True if cursor is over this widget - * + * */ "hovering": boolean; } @@ -256,7 +258,7 @@ declare module dijit { * * Mixin to widget to provide _onFocus() and _onBlur() methods that * fire when a widget or its descendants get/lose focus - * + * */ class _FocusMixin { constructor(); @@ -265,7 +267,7 @@ declare module dijit { * Permalink: http://dojotoolkit.org/api/1.9/dijit/_HasDropDown.html * * Mixin for widgets that need drop down ability. - * + * */ class _HasDropDown extends dijit._FocusMixin { constructor(); @@ -273,19 +275,19 @@ declare module dijit { * Set to true to make the drop down at least as wide as this * widget. Set to false if the drop down should just be its * default width. - * + * */ "autoWidth": boolean; /** * The widget to display as a popup. This widget must be * defined before the startup function is called. - * + * */ "dropDown": Object; /** * This variable controls the position of the drop down. * It's an array of strings with the following values: - * + * * before: places drop down to the left of the target node/widget, or to the right in * the case of RTL scripts like Hebrew and Arabic * after: places drop down to the right of the target node/widget, or to the left in @@ -294,40 +296,40 @@ declare module dijit { * below: drop down goes below target node * The list is positions is tried, in order, until a position is found where the drop down fits * within the viewport. - * + * */ "dropDownPosition": Object; /** * Set to true to make the drop down exactly as wide as this * widget. Overrides autoWidth. - * + * */ "forceWidth": boolean; /** * The max height for our dropdown. * Any dropdown taller than this will have scrollbars. * Set to 0 for no max height, or -1 to limit height to available space in viewport - * + * */ "maxHeight": number; /** - * + * */ buildRendering(): void; /** * Closes the drop down on this widget - * - * @param focus If true, refocuses the button widget + * + * @param focus If true, refocuses the button widget */ closeDropDown(focus: boolean): void; /** - * + * */ destroy(): void; /** * Returns true if the dropdown exists and it's data is loaded. This can * be overridden in order to force a call to loadDropDown(). - * + * */ isLoaded(): boolean; /** @@ -335,33 +337,33 @@ declare module dijit { * if there's an href and it hasn't been loaded yet, and * then opens the drop down. This is basically a callback when the * user presses the down arrow button to open the drop down. - * + * */ loadAndOpenDropDown(): any; /** * Creates the drop down if it doesn't exist, loads the data * if there's an href and it hasn't been loaded yet, and then calls * the given callback. - * - * @param loadCallback + * + * @param loadCallback */ loadDropDown(loadCallback: Function): void; /** * Opens the dropdown for this widget. To be called only when this.dropDown * has been created and is ready to display (ie, it's data is loaded). - * + * */ openDropDown(): any; /** * set up nodes and connect our mouse and keyboard events - * + * */ postCreate(): void; /** * Callback when the user presses the down arrow button or presses * the down arrow key to open/close the drop down. * Toggle the drop-down widget; if it is up, close it, if not, open it - * + * */ toggleDropDown(): void; } @@ -371,9 +373,9 @@ declare module dijit { * A mixin to allow arrow key and letter key navigation of child or descendant widgets. * It can be used by dijit/_Container based widgets with a flat list of children, * or more complex widgets like dijit/Tree. - * + * * To use this mixin, the subclass must: - * + * * - Implement _getNext(), _getFirst(), _getLast(), _onLeftArrow(), _onRightArrow() * _onDownArrow(), _onUpArrow() methods to handle home/end/left/right/up/down keystrokes. * Next and previous in this context refer to a linear ordering of the descendants used @@ -382,7 +384,7 @@ declare module dijit { * descendants added later, by for example addChild() * - Define childSelector to a function or string that identifies focusable descendant widgets * Also, child widgets must implement a focus() method. - * + * */ class _KeyNavMixin extends dijit._FocusMixin { constructor(); @@ -390,65 +392,65 @@ declare module dijit { * Selector (passed to on.selector()) used to identify what to treat as a child widget. Used to monitor * focus events and set this.focusedChild. Must be set by implementing class. If this is a string * (ex: "> *") then the implementing class must require dojo/query. - * + * */ "childSelector": any; /** * The currently focused child widget, or null if there isn't one - * + * */ "focusedChild": Object; /** * If multiple characters are typed where each keystroke happens within * multiCharSearchDuration of the previous keystroke, * search for nodes matching all the keystrokes. - * + * * For example, typing "ab" will search for entries starting with * "ab" unless the delay between "a" and "b" is greater than multiCharSearchDuration. - * + * */ "multiCharSearchDuration": number; /** * Tab index of the container; same as HTML tabIndex attribute. * Note then when user tabs into the container, focus is immediately * moved to the first item in the container. - * + * */ "tabIndex": string; /** * Default focus() implementation: focus the first child. - * + * */ focus(): void; /** * Focus specified child widget. - * - * @param widget Reference to container's child widget - * @param last If true and if widget has multiple focusable nodes, focus thelast one instead of the first one + * + * @param widget Reference to container's child widget + * @param last If true and if widget has multiple focusable nodes, focus thelast one instead of the first one */ focusChild(widget: dijit._WidgetBase, last: boolean): void; /** * Focus the first focusable child in the container. - * + * */ focusFirstChild(): void; /** * Focus the last focusable child in the container. - * + * */ focusLastChild(): void; /** - * + * */ postCreate(): void; /** * When a key is pressed that matches a child item, * this method is called so that a widget can take appropriate action is necessary. - * - * @param item - * @param evt - * @param searchString - * @param numMatches + * + * @param item + * @param evt + * @param searchString + * @param numMatches */ onKeyboardSearch(item: dijit._WidgetBase, evt: Event, searchString: String, numMatches: number): void; } @@ -459,136 +461,136 @@ declare module dijit { * Provides normalized keyboard and focusing code for Container widgets. * To use this mixin, call connectKeyNavHandlers() in postCreate(). * Also, child widgets must implement a focus() method. - * + * */ class _KeyNavContainer extends dijit._FocusMixin implements dijit._KeyNavMixin, dijit._Container { constructor(); /** * The currently focused child widget, or null if there isn't one - * + * */ "focusedChild": Object; /** * If multiple characters are typed where each keystroke happens within * multiCharSearchDuration of the previous keystroke, * search for nodes matching all the keystrokes. - * + * * For example, typing "ab" will search for entries starting with * "ab" unless the delay between "a" and "b" is greater than multiCharSearchDuration. - * + * */ "multiCharSearchDuration": number; /** * Tab index of the container; same as HTML tabIndex attribute. * Note then when user tabs into the container, focus is immediately * moved to the first item in the container. - * + * */ "tabIndex": string; /** - * - * @param widget - * @param insertIndex Optional + * + * @param widget + * @param insertIndex Optional */ addChild(widget: dijit._WidgetBase, insertIndex?: number): void; /** - * + * */ buildRendering(): void; /** - * - * @param node + * + * @param node */ childSelector(node: HTMLElement): any; /** * Deprecated. You can call this in postCreate() to attach the keyboard handlers to the container, * but the preferred method is to override _onLeftArrow() and _onRightArrow(), or * _onUpArrow() and _onDownArrow(), to call focusPrev() and focusNext(). - * - * @param prevKeyCodes Key codes for navigating to the previous child. - * @param nextKeyCodes Key codes for navigating to the next child. + * + * @param prevKeyCodes Key codes for navigating to the previous child. + * @param nextKeyCodes Key codes for navigating to the next child. */ connectKeyNavHandlers(prevKeyCodes: dojo.keys, nextKeyCodes: dojo.keys): void; /** * Default focus() implementation: focus the first child. - * + * */ focus(): void; /** * Focus specified child widget. - * - * @param widget Reference to container's child widget - * @param last If true and if widget has multiple focusable nodes, focus thelast one instead of the first one + * + * @param widget Reference to container's child widget + * @param last If true and if widget has multiple focusable nodes, focus thelast one instead of the first one */ focusChild(widget: dijit._WidgetBase, last: boolean): void; /** * Focus the first focusable child in the container. - * + * */ focusFirstChild(): void; /** * Focus the last focusable child in the container. - * + * */ focusLastChild(): void; /** * Focus the next widget - * + * */ focusNext(): void; /** * Focus the last focusable node in the previous widget * (ex: go to the ComboButton icon section rather than button section) - * + * */ focusPrev(): void; /** * Gets the index of the child in this container or -1 if not found - * - * @param child + * + * @param child */ getIndexOfChild(child: dijit._WidgetBase): any; /** * Returns true if widget has child widgets, i.e. if this.containerNode contains widgets. - * + * */ hasChildren(): boolean; /** - * + * */ postCreate(): void; /** * Removes the passed widget instance from this widget but does * not destroy it. You can also pass in an integer indicating * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget + * + * @param widget */ removeChild(widget: dijit._WidgetBase): void; /** * Removes the passed widget instance from this widget but does * not destroy it. You can also pass in an integer indicating * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget + * + * @param widget */ removeChild(widget: number): void; /** - * + * */ startup(): void; /** - * + * */ startupKeyNavChildren(): void; /** * When a key is pressed that matches a child item, * this method is called so that a widget can take appropriate action is necessary. - * - * @param item - * @param evt - * @param searchString - * @param numMatches + * + * @param item + * @param evt + * @param searchString + * @param numMatches */ onKeyboardSearch(item: dijit._WidgetBase, evt: Event, searchString: String, numMatches: number): void; } @@ -596,26 +598,26 @@ declare module dijit { * Permalink: http://dojotoolkit.org/api/1.9/dijit/_OnDijitClickMixin.html * * Deprecated. New code should access the dijit/a11yclick event directly, ex: - * + * * this.own(on(node, a11yclick, function(){ ... })); * Mixing in this class will make _WidgetBase.connect(node, "ondijitclick", ...) work. * It also used to be necessary to make templates with ondijitclick work, but now you can just require * dijit/a11yclick. - * + * */ class _OnDijitClickMixin { constructor(); /** * Custom press, release, and click synthetic events * which trigger on a left mouse click, touch, or space/enter keyup. - * + * */ "a11yclick": Object; /** - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: any, method: any): any; } @@ -625,35 +627,35 @@ declare module dijit { * * Custom press, release, and click synthetic events * which trigger on a left mouse click, touch, or space/enter keyup. - * + * */ interface a11yclick { /** * Logical click operation for mouse, touch, or keyboard (space/enter key) - * - * @param node - * @param listener + * + * @param node + * @param listener */ click(node: any, listener: any): void; /** * Mouse cursor or a finger is dragged over the given node. - * - * @param node - * @param listener + * + * @param node + * @param listener */ move(node: any, listener: any): void; /** * Mousedown (left button), touchstart, or keydown (space or enter) corresponding to logical click operation. - * - * @param node - * @param listener + * + * @param node + * @param listener */ press(node: any, listener: any): void; /** * Mouseup (left button), touchend, or keyup (space or enter) corresponding to logical click operation. - * - * @param node - * @param listener + * + * @param node + * @param listener */ release(node: any, listener: any): void; } @@ -664,83 +666,83 @@ declare module dijit { * * A keyboard accessible palette, for picking a color/emoticon/etc. * A mixin for a grid showing various entities, so the user can pick a certain entity. - * + * */ class _PaletteMixin extends dijit._CssStateMixin { constructor(); /** * True if mouse was pressed while over this widget, and hasn't been released yet - * + * */ "active": boolean; /** * CSS class applied to each cell in the palette - * + * */ "cellClass": string; /** * Subclasses may define a cssStateNodes property that lists sub-nodes within the widget that * need CSS classes applied on mouse hover/press and focus. - * + * * Each entry in this optional hash is a an attach-point name (like "upArrowButton") mapped to a CSS class name * (like "dijitUpArrowButton"). Example: - * + * * { * "upArrowButton": "dijitUpArrowButton", * "downArrowButton": "dijitDownArrowButton" * } * The above will set the CSS class dijitUpArrowButton to the this.upArrowButton DOMNode when it - * + * * is hovered, etc. - * + * */ "cssStateNodes": Object; /** * Number of milliseconds before a held key or button becomes typematic - * + * */ "defaultTimeout": number; /** * Constructor for Object created for each cell of the palette. * dyeClass should implement the dijit/_PaletteMixin.__Dye interface. - * + * */ "dyeClass": Object; /** * True if cursor is over this widget - * + * */ "hovering": boolean; /** * Widget tab index. - * + * */ "tabIndex": string; /** * Fraction of time used to change the typematic timer between events * 1.0 means that each typematic event fires at defaultTimeout intervals * Less than 1.0 means that each typematic event fires at an increasing faster rate - * + * */ "timeoutChangeRate": number; /** * Currently selected color/emoticon/etc. - * + * */ "value": string; /** * Focus this widget. Puts focus on the most recently focused cell. - * + * */ focus(): void; /** - * + * */ postCreate(): void; /** * Callback when a cell is selected. - * - * @param value Value corresponding to cell. + * + * @param value Value corresponding to cell. */ onChange(value: String): void; } @@ -749,24 +751,24 @@ declare module dijit { * Permalink: http://dojotoolkit.org/api/1.9/dijit/_PaletteMixin.__Dye.html * * Interface for the JS Object associated with a palette cell (i.e. DOMNode) - * - * @param alias - * @param row - * @param col + * + * @param alias + * @param row + * @param col */ class __Dye { constructor(alias: String, row: any, col: any); /** * Add cell DOMNode inner structure - * - * @param cell The surrounding cell - * @param blankGif URL for blank cell image + * + * @param cell The surrounding cell + * @param blankGif URL for blank cell image */ fillCell(cell: HTMLElement, blankGif: String): void; /** * Return "value" of cell; meaning of "value" varies by subclass. * For example color hex value, emoticon ascii value etc, entity hex value. - * + * */ getValue(): void; } @@ -776,50 +778,50 @@ declare module dijit { * Permalink: http://dojotoolkit.org/api/1.9/dijit/_TemplatedMixin.html * * Mixin for widgets that are instantiated from a template - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified, replace srcNodeRef with my generated DOM tree. + * + * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. + * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified, replace srcNodeRef with my generated DOM tree. */ class _TemplatedMixin extends dijit._AttachMixin { constructor(params?: Object, srcNodeRef?: HTMLElement); /** * Object to which attach points and events will be scoped. Defaults * to 'this'. - * + * */ "attachScope": Object; /** - * + * */ "searchContainerNode": boolean; /** * Path to template (HTML file) for this widget relative to dojo.baseUrl. * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * + * */ "templatePath": string; /** * A string that represents the widget template. * Use in conjunction with dojo.cache() to load from a file. - * + * */ "templateString": string; /** * Construct the UI for this widget from a template, setting this.domNode. - * + * */ buildRendering(): void; /** - * + * */ destroyRendering(): void; /** * Static method to get a template based on the templatePath or * templateString key - * - * @param templateString The template - * @param alwaysUseString Don't cache the DOM tree for this template, even if it doesn't have any variables - * @param doc OptionalThe target document. Defaults to document global if unspecified. + * + * @param templateString The template + * @param alwaysUseString Don't cache the DOM tree for this template, even if it doesn't have any variables + * @param doc OptionalThe target document. Defaults to document global if unspecified. */ getCachedTemplate(templateString: String, alwaysUseString: boolean, doc?: HTMLDocument): any; } @@ -827,7 +829,7 @@ declare module dijit { /** * Permalink: http://dojotoolkit.org/api/1.9/dijit/_TemplatedMixin._templateCache.html * - * + * */ interface _templateCache { } @@ -838,55 +840,55 @@ declare module dijit { * * Deprecated mixin for widgets that are instantiated from a template. * Widgets should use _TemplatedMixin plus if necessary _WidgetsInTemplateMixin instead. - * + * */ class _Templated extends dijit._TemplatedMixin implements dijit._WidgetsInTemplateMixin { constructor(); /** * Object to which attach points and events will be scoped. Defaults * to 'this'. - * + * */ "attachScope": Object; /** * Used to provide a context require to the dojo/parser in order to be * able to use relative MIDs (e.g. ./Widget) in the widget's template. - * + * */ "contextRequire": Function; /** - * + * */ "searchContainerNode": boolean; /** * Path to template (HTML file) for this widget relative to dojo.baseUrl. * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * + * */ "templatePath": string; /** * A string that represents the widget template. * Use in conjunction with dojo.cache() to load from a file. - * + * */ "templateString": string; /** * Should we parse the template to find widgets that might be * declared in markup inside it? False by default. - * + * */ "widgetsInTemplate": boolean; /** * Construct the UI for this widget from a template, setting this.domNode. - * + * */ buildRendering(): void; /** - * + * */ destroyRendering(): void; /** - * + * */ startup(): void; /** @@ -900,9 +902,9 @@ declare module dijit { * * Abstract base class for Menu and MenuBar. * Subclass should implement _onUpArrow(), _onDownArrow(), _onLeftArrow(), and _onRightArrow(). - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree + * + * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. + * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree */ class _MenuBase extends dijit._Widget implements dijit._TemplatedMixin, dijit._KeyNavContainer, dijit._CssStateMixin { constructor(params?: Object, srcNodeRef?: HTMLElement); @@ -912,7 +914,7 @@ declare module dijit { * since TAB is a navigation operation and not a selection one. * For Windows apps, pressing the ALT key focuses the menubar menus (similar to TAB navigation) but the * menu is not active (ie no dropdown) until an item is clicked. - * + * */ "activated": boolean; set(property:"activated", value: boolean): void; @@ -920,7 +922,7 @@ declare module dijit { watch(property:"activated", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * True if mouse was pressed while over this widget, and hasn't been released yet - * + * */ "active": boolean; set(property:"active", value: boolean): void; @@ -929,7 +931,7 @@ declare module dijit { /** * Object to which attach points and events will be scoped. Defaults * to 'this'. - * + * */ "attachScope": Object; set(property:"attachScope", value: Object): void; @@ -938,44 +940,44 @@ declare module dijit { /** * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute * for each XXX attribute to be mapped to the DOM. - * + * * attributeMap sets up a "binding" between attributes (aka properties) * of the widget and the widget's DOM. * Changes to widget attributes listed in attributeMap will be * reflected into the DOM. - * + * * For example, calling set('title', 'hello') * on a TitlePane will automatically cause the TitlePane's DOM to update * with the new title. - * + * * attributeMap is a hash where the key is an attribute of the widget, * and the value reflects a binding to a: - * + * * DOM node attribute * focus: {node: "focusNode", type: "attribute"} * Maps this.focus to this.focusNode.focus - * + * * DOM node innerHTML * title: { node: "titleNode", type: "innerHTML" } * Maps this.title to this.titleNode.innerHTML - * + * * DOM node innerText * title: { node: "titleNode", type: "innerText" } * Maps this.title to this.titleNode.innerText - * + * * DOM node CSS class * myClass: { node: "domNode", type: "class" } * Maps this.myClass to this.domNode.className - * + * * If the value is an array, then each element in the array matches one of the * formats of the above list. - * + * * There are also some shorthands for backwards compatibility: - * + * * string --> { node: string, type: "attribute" }, for example: * "focusNode" ---> { node: "focusNode", type: "attribute" } * "" --> { node: "domNode", type: "attribute" } - * + * */ "attributeMap": Object; set(property:"attributeMap", value: Object): void; @@ -984,7 +986,7 @@ declare module dijit { /** * A toggle to control whether or not a Menu gets focused when opened as a drop down from a MenuBar * or DropDownButton/ComboButton. Note though that it always get focused when opened via the keyboard. - * + * */ "autoFocus": boolean; set(property:"autoFocus", value: boolean): void; @@ -993,14 +995,14 @@ declare module dijit { /** * Root CSS class of the widget (ex: dijitTextBox), used to construct CSS classes to indicate * widget state. - * + * */ "baseClass": string; set(property:"baseClass", value: string): void; get(property:"baseClass"): string; watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "class": string; set(property:"class", value: string): void; @@ -1010,24 +1012,24 @@ declare module dijit { * Designates where children of the source DOM node will be placed. * "Children" in this case refers to both DOM nodes and widgets. * For example, for myWidget: - * + * *
* here's a plain DOM node * and a widget * and another plain DOM node *
* containerNode would point to: - * + * * here's a plain DOM node * and a widget * and another plain DOM node * In templated widgets, "containerNode" is set via a * data-dojo-attach-point assignment. - * + * * containerNode must be defined for any widget that accepts innerHTML * (like ContentPane or BorderContainer or even Button), and conversely * is null for widgets that don't, like TextBox. - * + * */ "containerNode": HTMLElement; set(property:"containerNode", value: HTMLElement): void; @@ -1036,18 +1038,18 @@ declare module dijit { /** * Subclasses may define a cssStateNodes property that lists sub-nodes within the widget that * need CSS classes applied on mouse hover/press and focus. - * + * * Each entry in this optional hash is a an attach-point name (like "upArrowButton") mapped to a CSS class name * (like "dijitUpArrowButton"). Example: - * + * * { * "upArrowButton": "dijitUpArrowButton", * "downArrowButton": "dijitDownArrowButton" * } * The above will set the CSS class dijitUpArrowButton to the this.upArrowButton DOMNode when it - * + * * is hovered, etc. - * + * */ "cssStateNodes": Object; set(property:"cssStateNodes", value: Object): void; @@ -1057,7 +1059,7 @@ declare module dijit { * Bi-directional support, as defined by the HTML DIR * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's * default direction. - * + * */ "dir": string; set(property:"dir", value: string): void; @@ -1068,7 +1070,7 @@ declare module dijit { * Nodes may by assigned to other properties, usually through the * template system's data-dojo-attach-point syntax, but the domNode * property is the canonical "top level" node in widget UI. - * + * */ "domNode": HTMLElement; set(property:"domNode", value: HTMLElement): void; @@ -1077,7 +1079,7 @@ declare module dijit { /** * This widget or a widget it contains has focus, or is "active" because * it was recently clicked. - * + * */ "focused": boolean; set(property:"focused", value: boolean): void; @@ -1085,7 +1087,7 @@ declare module dijit { watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * The currently focused child widget, or null if there isn't one - * + * */ "focusedChild": Object; set(property:"focusedChild", value: Object): void; @@ -1093,7 +1095,7 @@ declare module dijit { watch(property:"focusedChild", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** * True if cursor is over this widget - * + * */ "hovering": boolean; set(property:"hovering", value: boolean): void; @@ -1104,7 +1106,7 @@ declare module dijit { * system. If the developer passes an ID which is known not to be * unique, the specified ID is ignored and the system-generated ID is * used instead. - * + * */ "id": string; set(property:"id", value: string): void; @@ -1115,7 +1117,7 @@ declare module dijit { * as defined by the HTML LANG attribute. * Value must be among the list of locales specified during by the Dojo bootstrap, * formatted according to RFC 3066 (like en-us). - * + * */ "lang": string; set(property:"lang", value: string): void; @@ -1125,10 +1127,10 @@ declare module dijit { * If multiple characters are typed where each keystroke happens within * multiCharSearchDuration of the previous keystroke, * search for nodes matching all the keystrokes. - * + * * For example, typing "ab" will search for entries starting with * "ab" unless the delay between "a" and "b" is greater than multiCharSearchDuration. - * + * */ "multiCharSearchDuration": number; set(property:"multiCharSearchDuration", value: number): void; @@ -1137,7 +1139,7 @@ declare module dijit { /** * The document this widget belongs to. If not specified to constructor, will default to * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * + * */ "ownerDocument": Object; set(property:"ownerDocument", value: Object): void; @@ -1145,7 +1147,7 @@ declare module dijit { watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** * pointer to menu that displayed me - * + * */ "parentMenu": Object; set(property:"parentMenu", value: Object): void; @@ -1154,7 +1156,7 @@ declare module dijit { /** * For a passive (unclicked) Menu, number of milliseconds before hovering (without clicking) will cause * the popup to open. Default is Infinity, meaning you need to click the menu to open it. - * + * */ "passivePopupDelay": number; set(property:"passivePopupDelay", value: number): void; @@ -1163,14 +1165,14 @@ declare module dijit { /** * After a menu has been activated (by clicking on it etc.), number of milliseconds before hovering * (without clicking) another MenuItem causes that MenuItem's popup to automatically open. - * + * */ "popupDelay": number; set(property:"popupDelay", value: number): void; get(property:"popupDelay"): number; watch(property:"popupDelay", callback:{(property?:string, oldValue?:number, newValue?: number):void}) :{unwatch():void} /** - * + * */ "searchContainerNode": boolean; set(property:"searchContainerNode", value: boolean): void; @@ -1181,7 +1183,7 @@ declare module dijit { * If a submenu is open, will be set to MenuItem that displayed the submenu. OTOH, if * this Menu is in passive mode (i.e. hasn't been clicked yet), will be null, because * "selected" is not merely "hovered". - * + * */ "selected": Object; set(property:"selected", value: Object): void; @@ -1189,7 +1191,7 @@ declare module dijit { watch(property:"selected", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** * pointer to original DOM node - * + * */ "srcNodeRef": HTMLElement; set(property:"srcNodeRef", value: HTMLElement): void; @@ -1197,7 +1199,7 @@ declare module dijit { watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} /** * HTML style attributes as cssText string or name/value hash - * + * */ "style": string; set(property:"style", value: string): void; @@ -1207,7 +1209,7 @@ declare module dijit { * Tab index of the container; same as HTML tabIndex attribute. * Note then when user tabs into the container, focus is immediately * moved to the first item in the container. - * + * */ "tabIndex": string; set(property:"tabIndex", value: string): void; @@ -1216,7 +1218,7 @@ declare module dijit { /** * Path to template (HTML file) for this widget relative to dojo.baseUrl. * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * + * */ "templatePath": string; set(property:"templatePath", value: string): void; @@ -1225,7 +1227,7 @@ declare module dijit { /** * A string that represents the widget template. * Use in conjunction with dojo.cache() to load from a file. - * + * */ "templateString": string; set(property:"templateString", value: string): void; @@ -1233,14 +1235,14 @@ declare module dijit { watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * HTML title attribute. - * + * * For form widgets this specifies a tooltip to display when hovering over * the widget (just like the native HTML title attribute). - * + * * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's * interpreted as HTML. - * + * */ "title": string; set(property:"title", value: string): void; @@ -1249,210 +1251,210 @@ declare module dijit { /** * When this widget's title attribute is used to for a tab label, accordion pane title, etc., * this specifies the tooltip to appear when the mouse is hovered over that text. - * + * */ "tooltip": string; set(property:"tooltip", value: string): void; get(property:"tooltip"): string; watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * - * @param widget - * @param insertIndex Optional + * + * @param widget + * @param insertIndex Optional */ addChild(widget: dijit._WidgetBase, insertIndex?: number): void; /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: String, value?: Object): any; /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: Object, value?: Object): any; /** * Construct the UI for this widget, setting this.domNode. * Most widgets will mixin dijit._TemplatedMixin, which implements this method. - * + * */ buildRendering(): void; /** * Selector (passed to on.selector()) used to identify MenuItem child widgets, but exclude inert children * like MenuSeparator. If subclass overrides to a string (ex: "> *"), the subclass must require dojo/query. - * - * @param node + * + * @param node */ childSelector(node: HTMLElement): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: Function): any; /** * Deprecated. You can call this in postCreate() to attach the keyboard handlers to the container, * but the preferred method is to override _onLeftArrow() and _onRightArrow(), or * _onUpArrow() and _onDownArrow(), to call focusPrev() and focusNext(). - * - * @param prevKeyCodes Key codes for navigating to the previous child. - * @param nextKeyCodes Key codes for navigating to the next child. + * + * @param prevKeyCodes Key codes for navigating to the previous child. + * @param nextKeyCodes Key codes for navigating to the next child. */ connectKeyNavHandlers(prevKeyCodes: dojo.keys, nextKeyCodes: dojo.keys): void; /** * Wrapper to setTimeout to avoid deferred functions executing * after the originating widget has been destroyed. * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. + * + * @param fcn Function reference. + * @param delay OptionalDelay, defaults to 0. */ defer(fcn: Function, delay?: number): Object; /** * Destroy this widget, but not its descendants. Descendants means widgets inside of * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * + * * This method will also destroy internal widgets such as those created from a template, * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * + * * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not * depend on the current ability to destroy a widget without destroying its descendants. Generally * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets + * + * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets */ destroy(preserveDom?: boolean): void; /** * Recursively destroy the children of this widget and their * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. + * + * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. */ destroyDescendants(preserveDom?: boolean): void; /** @@ -1460,69 +1462,69 @@ declare module dijit { * This is the generic "destructor" function that all widget users * should call to cleanly discard with a widget. Once a widget is * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. */ destroyRecursive(preserveDom?: boolean): void; /** * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. */ destroyRendering(preserveDom?: boolean): void; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Disconnects handle created by connect. - * - * @param handle + * + * @param handle */ disconnect(handle: any): void; /** * Used by widgets to signal that a synthetic event occurred, ex: - * + * * myWidget.emit("attrmodified-selectedChildWidget", {}). * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. * Also calls onType() method, if present, and returns value from that method. * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional + * + * @param type + * @param eventObj Optional + * @param callbackArgs Optional */ emit(type: String, eventObj?: Object, callbackArgs?: any[]): any; /** * Default focus() implementation: focus the first child. - * + * */ focus(): void; /** * Focus specified child widget. - * - * @param widget Reference to container's child widget - * @param last If true and if widget has multiple focusable nodes, focus thelast one instead of the first one + * + * @param widget Reference to container's child widget + * @param last If true and if widget has multiple focusable nodes, focus thelast one instead of the first one */ focusChild(widget: dijit._WidgetBase, last: boolean): void; /** * Focus the first focusable child in the container. - * + * */ focusFirstChild(): void; /** * Focus the last focusable child in the container. - * + * */ focusLastChild(): void; /** * Focus the next widget - * + * */ focusNext(): void; /** * Focus the last focusable node in the previous widget * (ex: go to the ComboButton icon section rather than button section) - * + * */ focusPrev(): void; /** @@ -1530,15 +1532,15 @@ declare module dijit { * Get a named property from a widget. The property may * potentially be retrieved via a getter method. If no getter is defined, this * just retrieves the object's property. - * + * * For example, if the widget has properties foo and bar * and a method named _getFooAttr(), calling: * myWidget.get("foo") would be equivalent to calling * widget._getFooAttr() and myWidget.get("bar") * would be equivalent to the expression * widget.bar2 - * - * @param name The property to get. + * + * @param name The property to get. */ get(name: any): any; /** @@ -1546,65 +1548,65 @@ declare module dijit { * is this widget. Note that it does not return all descendants, but rather just direct children. * Analogous to Node.childNodes, * except containing widgets rather than DOMNodes. - * + * * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) * outside of this.containerNode. - * + * * Note that the array returned is a simple array. Application code should not assume * existence of methods like forEach(). - * + * */ getChildren(): any[]; /** * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. * This method should generally be avoided as it returns widgets declared in templates, which are * supposed to be internal/hidden, but it's left here for back-compat reasons. - * + * */ getDescendants(): any[]; /** * Gets the index of the child in this container or -1 if not found - * - * @param child + * + * @param child */ getIndexOfChild(child: dijit._WidgetBase): any; /** * Returns the parent widget of this widget. - * + * */ getParent(): any; /** * Returns true if widget has child widgets, i.e. if this.containerNode contains widgets. - * + * */ hasChildren(): boolean; /** * Return true if this widget can currently be focused * and false if not - * + * */ isFocusable(): any; /** * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * + * */ isLeftToRight(): any; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: String, func: Function): any; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: Function, func: Function): any; /** * Track specified handles and remove/destroy them when this instance is destroyed, unless they were * already removed/destroyed manually. - * + * */ own(...args: any[]): any[]; /** @@ -1613,9 +1615,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: String): any; /** @@ -1624,9 +1626,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: String): any; /** @@ -1635,9 +1637,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: String): any; /** @@ -1646,9 +1648,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: number): any; /** @@ -1657,9 +1659,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: number): any; /** @@ -1668,13 +1670,13 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: number): any; /** - * + * */ postCreate(): void; /** @@ -1682,82 +1684,82 @@ declare module dijit { * but before the widget template is instantiated. Especially * useful to set properties that are referenced in the widget * template. - * + * */ postMixInProperties(): void; /** * Removes the passed widget instance from this widget but does * not destroy it. You can also pass in an integer indicating * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget + * + * @param widget */ removeChild(widget: dijit._WidgetBase): void; /** * Removes the passed widget instance from this widget but does * not destroy it. You can also pass in an integer indicating * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget + * + * @param widget */ removeChild(widget: number): void; /** * Set a property on a widget * Sets named properties on a widget which may potentially be handled by a * setter in the widget. - * + * * For example, if the widget has properties foo and bar * and a method named _setFooAttr(), calling * myWidget.set("foo", "Howdy!") would be equivalent to calling * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) * would be equivalent to the statement widget.bar = 3; - * + * * set() may also be called with a hash of name/value pairs, ex: - * + * * myWidget.set({ * foo: "Howdy", * bar: 3 * }); * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. + * + * @param name The property to set. + * @param value The value to set in the property. */ set(name: any, value: any): any; /** * Deprecated. Use set() instead. - * - * @param attr - * @param value + * + * @param attr + * @param value */ setAttribute(attr: String, value: any): void; /** * Processing after the DOM fragment is added to the document * Called after a widget and its children have been created and added to the page, * and all related widgets have finished their create() cycle, up through postCreate(). - * + * * Note that startup() may be called while the widget is still hidden, for example if the widget is * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. * For widgets that need to do layout, it's best to put that layout code inside resize(), and then * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * + * */ startup(): void; /** - * + * */ startupKeyNavChildren(): void; /** * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * + * * Subscribes to the specified topic and calls the specified method * of this object and registers for unsubscribe() on widget destroy. - * + * * Provide widget-specific analog to dojo.subscribe, except with the * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback + * + * @param t The topic + * @param method The callback */ subscribe(t: String, method: Function): any; /** @@ -1765,29 +1767,29 @@ declare module dijit { * When a widget is cast to a string, this method will be used to generate the * output. Currently, it does not implement any sort of reversible * serialization. - * + * */ toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. - * + * */ uninitialize(): boolean; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Unsubscribes handle created by this.subscribe. * Also removes handle from this widget's list of subscriptions - * - * @param handle + * + * @param handle */ unsubscribe(handle: Object): void; /** * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. + * + * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched + * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. */ watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; /** @@ -1800,27 +1802,27 @@ declare module dijit { * focus moved to something outside of it, or the user * clicked somewhere outside of it, or the widget was * hidden. - * + * */ onBlur(): void; /** * Attach point for notification about when the user cancels the current menu * This is an internal mechanism used for Menus to signal to their parent to * close them. In general developers should not attach to or override this method. - * - * @param closeAll + * + * @param closeAll */ onCancel(closeAll: boolean): void; /** * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onClick(event: any): void; /** * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onDblClick(event: any): void; /** @@ -1828,114 +1830,114 @@ declare module dijit { * This is an internal mechanism used for Menus to signal to their parent to * close them, because they are about to execute the onClick handler. In * general developers should not attach to or override this method. - * + * */ onExecute(): void; /** * Called when the widget becomes "active" because * it or a widget inside of it either has focus, or has recently * been clicked. - * + * */ onFocus(): void; /** * Called when another widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onHide(): void; /** * Called when cursor is over a MenuItem. - * - * @param item + * + * @param item */ onItemHover(item: dijit.MenuItem): void; /** * Callback fires when mouse exits a MenuItem - * - * @param item + * + * @param item */ onItemUnhover(item: dijit.MenuItem): void; /** * Attach point for notification about when a menu item has been searched for * via the keyboard search mechanism. - * - * @param item - * @param evt - * @param searchString - * @param numMatches + * + * @param item + * @param evt + * @param searchString + * @param numMatches */ onKeyboardSearch(item: dijit.MenuItem, evt: Event, searchString: String, numMatches: number): void; /** * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event + * + * @param event key Event */ onKeyDown(event: any): void; /** * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event + * + * @param event key Event */ onKeyPress(event: any): void; /** * Connect to this function to receive notifications of keys being released. - * - * @param event key Event + * + * @param event key Event */ onKeyUp(event: any): void; /** * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseDown(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseEnter(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseLeave(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseMove(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOut(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOver(event: any): void; /** * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseUp(event: any): void; /** * Called when this widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onShow(): void; } @@ -1943,24 +1945,24 @@ declare module dijit { * Permalink: http://dojotoolkit.org/api/1.9/dijit/_WidgetsInTemplateMixin.html * * Mixin to supplement _TemplatedMixin when template contains widgets - * + * */ class _WidgetsInTemplateMixin { constructor(); /** * Used to provide a context require to the dojo/parser in order to be * able to use relative MIDs (e.g. ./Widget) in the widget's template. - * + * */ "contextRequire": Function; /** * Should we parse the template to find widgets that might be * declared in markup inside it? (Remove for 2.0 and assume true) - * + * */ "widgetsInTemplate": boolean; /** - * + * */ startup(): void; } @@ -1970,90 +1972,90 @@ declare module dijit { * Future base class for all Dijit widgets. * Future base class for all Dijit widgets. * _Widget extends this class adding support for various features needed by desktop. - * + * * Provides stubs for widget lifecycle methods for subclasses to extend, like postMixInProperties(), buildRendering(), * postCreate(), startup(), and destroy(), and also public API methods like set(), get(), and watch(). - * + * * Widgets can provide custom setters/getters for widget attributes, which are called automatically by set(name, value). * For an attribute XXX, define methods _setXXXAttr() and/or _getXXXAttr(). - * + * * _setXXXAttr can also be a string/hash/array mapping from a widget attribute XXX to the widget's DOMNodes: - * + * * DOM node attribute * _setFocusAttr: {node: "focusNode", type: "attribute"} * _setFocusAttr: "focusNode" (shorthand) * _setFocusAttr: "" (shorthand, maps to this.domNode) * Maps this.focus to this.focusNode.focus, or (last example) this.domNode.focus - * + * * DOM node innerHTML * _setTitleAttr: { node: "titleNode", type: "innerHTML" } * Maps this.title to this.titleNode.innerHTML - * + * * DOM node innerText * _setTitleAttr: { node: "titleNode", type: "innerText" } * Maps this.title to this.titleNode.innerText - * + * * DOM node CSS class * _setMyClassAttr: { node: "domNode", type: "class" } * Maps this.myClass to this.domNode.className - * + * * If the value of _setXXXAttr is an array, then each element in the array matches one of the * formats of the above list. - * + * * If the custom setter is null, no action is performed other than saving the new value * in the widget (in this). - * + * * If no custom setter is defined for an attribute, then it will be copied * to this.focusNode (if the widget defines a focusNode), or this.domNode otherwise. * That's only done though for attributes that match DOMNode attributes (title, * alt, aria-labelledby, etc.) - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree + * + * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. + * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree */ class _WidgetBase extends dojo.Stateful implements dijit.Destroyable { constructor(params?: Object, srcNodeRef?: HTMLElement); /** * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute * for each XXX attribute to be mapped to the DOM. - * + * * attributeMap sets up a "binding" between attributes (aka properties) * of the widget and the widget's DOM. * Changes to widget attributes listed in attributeMap will be * reflected into the DOM. - * + * * For example, calling set('title', 'hello') * on a TitlePane will automatically cause the TitlePane's DOM to update * with the new title. - * + * * attributeMap is a hash where the key is an attribute of the widget, * and the value reflects a binding to a: - * + * * DOM node attribute * focus: {node: "focusNode", type: "attribute"} * Maps this.focus to this.focusNode.focus - * + * * DOM node innerHTML * title: { node: "titleNode", type: "innerHTML" } * Maps this.title to this.titleNode.innerHTML - * + * * DOM node innerText * title: { node: "titleNode", type: "innerText" } * Maps this.title to this.titleNode.innerText - * + * * DOM node CSS class * myClass: { node: "domNode", type: "class" } * Maps this.myClass to this.domNode.className - * + * * If the value is an array, then each element in the array matches one of the * formats of the above list. - * + * * There are also some shorthands for backwards compatibility: - * + * * string --> { node: string, type: "attribute" }, for example: * "focusNode" ---> { node: "focusNode", type: "attribute" } * "" --> { node: "domNode", type: "attribute" } - * + * */ "attributeMap": Object; set(property:"attributeMap", value: Object): void; @@ -2062,14 +2064,14 @@ declare module dijit { /** * Root CSS class of the widget (ex: dijitTextBox), used to construct CSS classes to indicate * widget state. - * + * */ "baseClass": string; set(property:"baseClass", value: string): void; get(property:"baseClass"): string; watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "class": string; set(property:"class", value: string): void; @@ -2079,24 +2081,24 @@ declare module dijit { * Designates where children of the source DOM node will be placed. * "Children" in this case refers to both DOM nodes and widgets. * For example, for myWidget: - * + * *
* here's a plain DOM node * and a widget * and another plain DOM node *
* containerNode would point to: - * + * * here's a plain DOM node * and a widget * and another plain DOM node * In templated widgets, "containerNode" is set via a * data-dojo-attach-point assignment. - * + * * containerNode must be defined for any widget that accepts innerHTML * (like ContentPane or BorderContainer or even Button), and conversely * is null for widgets that don't, like TextBox. - * + * */ "containerNode": HTMLElement; set(property:"containerNode", value: HTMLElement): void; @@ -2106,7 +2108,7 @@ declare module dijit { * Bi-directional support, as defined by the HTML DIR * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's * default direction. - * + * */ "dir": string; set(property:"dir", value: string): void; @@ -2117,7 +2119,7 @@ declare module dijit { * Nodes may by assigned to other properties, usually through the * template system's data-dojo-attach-point syntax, but the domNode * property is the canonical "top level" node in widget UI. - * + * */ "domNode": HTMLElement; set(property:"domNode", value: HTMLElement): void; @@ -2126,7 +2128,7 @@ declare module dijit { /** * This widget or a widget it contains has focus, or is "active" because * it was recently clicked. - * + * */ "focused": boolean; set(property:"focused", value: boolean): void; @@ -2137,7 +2139,7 @@ declare module dijit { * system. If the developer passes an ID which is known not to be * unique, the specified ID is ignored and the system-generated ID is * used instead. - * + * */ "id": string; set(property:"id", value: string): void; @@ -2148,7 +2150,7 @@ declare module dijit { * as defined by the HTML LANG attribute. * Value must be among the list of locales specified during by the Dojo bootstrap, * formatted according to RFC 3066 (like en-us). - * + * */ "lang": string; set(property:"lang", value: string): void; @@ -2157,7 +2159,7 @@ declare module dijit { /** * The document this widget belongs to. If not specified to constructor, will default to * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * + * */ "ownerDocument": Object; set(property:"ownerDocument", value: Object): void; @@ -2165,7 +2167,7 @@ declare module dijit { watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** * pointer to original DOM node - * + * */ "srcNodeRef": HTMLElement; set(property:"srcNodeRef", value: HTMLElement): void; @@ -2173,7 +2175,7 @@ declare module dijit { watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} /** * HTML style attributes as cssText string or name/value hash - * + * */ "style": Object; set(property:"style", value: Object): void; @@ -2181,14 +2183,14 @@ declare module dijit { watch(property:"style", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** * HTML title attribute. - * + * * For form widgets this specifies a tooltip to display when hovering over * the widget (just like the native HTML title attribute). - * + * * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's * interpreted as HTML. - * + * */ "title": string; set(property:"title", value: string): void; @@ -2197,7 +2199,7 @@ declare module dijit { /** * When this widget's title attribute is used to for a tab label, accordion pane title, etc., * this specifies the tooltip to appear when the mouse is hovered over that text. - * + * */ "tooltip": string; set(property:"tooltip", value: string): void; @@ -2206,165 +2208,165 @@ declare module dijit { /** * Construct the UI for this widget, setting this.domNode. * Most widgets will mixin dijit._TemplatedMixin, which implements this method. - * + * */ buildRendering(): void; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: Function): any; /** * Wrapper to setTimeout to avoid deferred functions executing * after the originating widget has been destroyed. * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. + * + * @param fcn Function reference. + * @param delay OptionalDelay, defaults to 0. */ defer(fcn: Function, delay?: number): Object; /** * Destroy this widget, but not its descendants. Descendants means widgets inside of * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * + * * This method will also destroy internal widgets such as those created from a template, * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * + * * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not * depend on the current ability to destroy a widget without destroying its descendants. Generally * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets + * + * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets */ destroy(preserveDom?: boolean): void; /** * Recursively destroy the children of this widget and their * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. + * + * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. */ destroyDescendants(preserveDom?: boolean): void; /** @@ -2372,36 +2374,36 @@ declare module dijit { * This is the generic "destructor" function that all widget users * should call to cleanly discard with a widget. Once a widget is * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. */ destroyRecursive(preserveDom?: boolean): void; /** * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. */ destroyRendering(preserveDom?: boolean): void; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Disconnects handle created by connect. - * - * @param handle + * + * @param handle */ disconnect(handle: any): void; /** * Used by widgets to signal that a synthetic event occurred, ex: - * + * * myWidget.emit("attrmodified-selectedChildWidget", {}). * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. * Also calls onType() method, if present, and returns value from that method. * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional + * + * @param type + * @param eventObj Optional + * @param callbackArgs Optional */ emit(type: String, eventObj?: Object, callbackArgs?: any[]): any; /** @@ -2409,15 +2411,15 @@ declare module dijit { * Get a named property from a widget. The property may * potentially be retrieved via a getter method. If no getter is defined, this * just retrieves the object's property. - * + * * For example, if the widget has properties foo and bar * and a method named _getFooAttr(), calling: * myWidget.get("foo") would be equivalent to calling * widget._getFooAttr() and myWidget.get("bar") * would be equivalent to the expression * widget.bar2 - * - * @param name The property to get. + * + * @param name The property to get. */ get(name: any): any; /** @@ -2425,33 +2427,33 @@ declare module dijit { * is this widget. Note that it does not return all descendants, but rather just direct children. * Analogous to Node.childNodes, * except containing widgets rather than DOMNodes. - * + * * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) * outside of this.containerNode. - * + * * Note that the array returned is a simple array. Application code should not assume * existence of methods like forEach(). - * + * */ getChildren(): any[]; /** * Returns the parent widget of this widget. - * + * */ getParent(): any; /** * Return true if this widget can currently be focused * and false if not - * + * */ isFocusable(): any; /** * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * + * */ isLeftToRight(): any; /** - * + * */ isValid: any; /** @@ -2459,9 +2461,9 @@ declare module dijit { * Call specified function when event type occurs, ex: myWidget.on("click", function(){ ... }). * Note that the function is not run in any particular scope, so if (for example) you want it to run in the * widget's scope you must do myWidget.on("click", lang.hitch(myWidget, func)). - * - * @param type Name of event (ex: "click") or extension event like touch.press. - * @param func + * + * @param type Name of event (ex: "click") or extension event like touch.press. + * @param func */ on(type: String, func: Function): {remove:{():void}}; /** @@ -2469,15 +2471,15 @@ declare module dijit { * Call specified function when event type occurs, ex: myWidget.on("click", function(){ ... }). * Note that the function is not run in any particular scope, so if (for example) you want it to run in the * widget's scope you must do myWidget.on("click", lang.hitch(myWidget, func)). - * - * @param type Name of event (ex: "click") or extension event like touch.press. - * @param func + * + * @param type Name of event (ex: "click") or extension event like touch.press. + * @param func */ on(type: Function, func: Function): {remove:{():void}}; /** * Track specified handles and remove/destroy them when this instance is destroyed, unless they were * already removed/destroyed manually. - * + * */ own(handle:any): any; /** @@ -2486,9 +2488,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: String): any; /** @@ -2497,9 +2499,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: String): any; /** @@ -2508,9 +2510,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: String): any; /** @@ -2519,9 +2521,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: number): any; /** @@ -2530,9 +2532,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: number): any; /** @@ -2541,9 +2543,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: number): any; /** @@ -2551,7 +2553,7 @@ declare module dijit { * Called after the DOM fragment has been created, but not necessarily * added to the document. Do not include any operations which rely on * node dimensions or placement. - * + * */ postCreate(): void; /** @@ -2559,55 +2561,55 @@ declare module dijit { * but before the widget template is instantiated. Especially * useful to set properties that are referenced in the widget * template. - * + * */ postMixInProperties(): void; /** * Set a property on a widget * Sets named properties on a widget which may potentially be handled by a * setter in the widget. - * + * * For example, if the widget has properties foo and bar * and a method named _setFooAttr(), calling * myWidget.set("foo", "Howdy!") would be equivalent to calling * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) * would be equivalent to the statement widget.bar = 3; - * + * * set() may also be called with a hash of name/value pairs, ex: - * + * * myWidget.set({ * foo: "Howdy", * bar: 3 * }); * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. + * + * @param name The property to set. + * @param value The value to set in the property. */ set(name: any, value: any): any; /** * Processing after the DOM fragment is added to the document * Called after a widget and its children have been created and added to the page, * and all related widgets have finished their create() cycle, up through postCreate(). - * + * * Note that startup() may be called while the widget is still hidden, for example if the widget is * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. * For widgets that need to do layout, it's best to put that layout code inside resize(), and then * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * + * */ startup(): void; /** * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * + * * Subscribes to the specified topic and calls the specified method * of this object and registers for unsubscribe() on widget destroy. - * + * * Provide widget-specific analog to dojo.subscribe, except with the * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback + * + * @param t The topic + * @param method The callback */ subscribe(t: String, method: Function): any; /** @@ -2615,29 +2617,29 @@ declare module dijit { * When a widget is cast to a string, this method will be used to generate the * output. Currently, it does not implement any sort of reversible * serialization. - * + * */ toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. - * + * */ uninitialize(): boolean; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Unsubscribes handle created by this.subscribe. * Also removes handle from this widget's list of subscriptions - * - * @param handle + * + * @param handle */ unsubscribe(handle: Object): void; /** * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. + * + * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched + * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. */ watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; /** @@ -2645,14 +2647,14 @@ declare module dijit { * focus moved to something outside of it, or the user * clicked somewhere outside of it, or the widget was * hidden. - * + * */ onBlur(): void; /** * Called when the widget becomes "active" because * it or a widget inside of it either has focus, or has recently * been clicked. - * + * */ onFocus(): void; } @@ -2661,9 +2663,9 @@ declare module dijit { * * Old base class for widgets. New widgets should extend dijit/_WidgetBase instead * Old Base class for Dijit widgets. - * + * * Extends _WidgetBase, adding support for: - * + * * declaratively/programatically specifying widget initialization parameters like * onMouseMove="foo" that call foo when this.domNode gets a mousemove event * ondijitclick: @@ -2674,62 +2676,62 @@ declare module dijit { * deprecated methods * onShow(), onHide(), onClose() * Also, by loading code in dijit/_base, turns on: - * + * * browser sniffing (putting browser class like dj_ie on node) * high contrast mode sniffing (add dijit_a11y class to if machine is in high contrast mode) - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree + * + * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. + * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree */ class _Widget extends dijit._WidgetBase implements dijit._OnDijitClickMixin, dijit._FocusMixin { constructor(params?: Object, srcNodeRef?: HTMLElement); /** * Custom press, release, and click synthetic events * which trigger on a left mouse click, touch, or space/enter keyup. - * + * */ "a11yclick": Object; /** * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute * for each XXX attribute to be mapped to the DOM. - * + * * attributeMap sets up a "binding" between attributes (aka properties) * of the widget and the widget's DOM. * Changes to widget attributes listed in attributeMap will be * reflected into the DOM. - * + * * For example, calling set('title', 'hello') * on a TitlePane will automatically cause the TitlePane's DOM to update * with the new title. - * + * * attributeMap is a hash where the key is an attribute of the widget, * and the value reflects a binding to a: - * + * * DOM node attribute * focus: {node: "focusNode", type: "attribute"} * Maps this.focus to this.focusNode.focus - * + * * DOM node innerHTML * title: { node: "titleNode", type: "innerHTML" } * Maps this.title to this.titleNode.innerHTML - * + * * DOM node innerText * title: { node: "titleNode", type: "innerText" } * Maps this.title to this.titleNode.innerText - * + * * DOM node CSS class * myClass: { node: "domNode", type: "class" } * Maps this.myClass to this.domNode.className - * + * * If the value is an array, then each element in the array matches one of the * formats of the above list. - * + * * There are also some shorthands for backwards compatibility: - * + * * string --> { node: string, type: "attribute" }, for example: * "focusNode" ---> { node: "focusNode", type: "attribute" } * "" --> { node: "domNode", type: "attribute" } - * + * */ "attributeMap": Object; set(property:"attributeMap", value: Object): void; @@ -2738,14 +2740,14 @@ declare module dijit { /** * Root CSS class of the widget (ex: dijitTextBox), used to construct CSS classes to indicate * widget state. - * + * */ "baseClass": string; set(property:"baseClass", value: string): void; get(property:"baseClass"): string; watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "class": string; set(property:"class", value: string): void; @@ -2755,24 +2757,24 @@ declare module dijit { * Designates where children of the source DOM node will be placed. * "Children" in this case refers to both DOM nodes and widgets. * For example, for myWidget: - * + * *
* here's a plain DOM node * and a widget * and another plain DOM node *
* containerNode would point to: - * + * * here's a plain DOM node * and a widget * and another plain DOM node * In templated widgets, "containerNode" is set via a * data-dojo-attach-point assignment. - * + * * containerNode must be defined for any widget that accepts innerHTML * (like ContentPane or BorderContainer or even Button), and conversely * is null for widgets that don't, like TextBox. - * + * */ "containerNode": HTMLElement; set(property:"containerNode", value: HTMLElement): void; @@ -2782,7 +2784,7 @@ declare module dijit { * Bi-directional support, as defined by the HTML DIR * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's * default direction. - * + * */ "dir": string; set(property:"dir", value: string): void; @@ -2790,7 +2792,7 @@ declare module dijit { watch(property:"dir", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Defines a type of widget. - * + * */ "dndType": string; set(property:"dndType", value: string): void; @@ -2801,7 +2803,7 @@ declare module dijit { * Nodes may by assigned to other properties, usually through the * template system's data-dojo-attach-point syntax, but the domNode * property is the canonical "top level" node in widget UI. - * + * */ "domNode": HTMLElement; set(property:"domNode", value: HTMLElement): void; @@ -2810,7 +2812,7 @@ declare module dijit { /** * This widget or a widget it contains has focus, or is "active" because * it was recently clicked. - * + * */ "focused": boolean; set(property:"focused", value: boolean): void; @@ -2821,7 +2823,7 @@ declare module dijit { * system. If the developer passes an ID which is known not to be * unique, the specified ID is ignored and the system-generated ID is * used instead. - * + * */ "id": string; set(property:"id", value: string): void; @@ -2832,14 +2834,14 @@ declare module dijit { * as defined by the HTML LANG attribute. * Value must be among the list of locales specified during by the Dojo bootstrap, * formatted according to RFC 3066 (like en-us). - * + * */ "lang": string; set(property:"lang", value: string): void; get(property:"lang"): string; watch(property:"lang", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "observer": string; set(property:"observer", value: string): void; @@ -2848,7 +2850,7 @@ declare module dijit { /** * The document this widget belongs to. If not specified to constructor, will default to * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * + * */ "ownerDocument": Object; set(property:"ownerDocument", value: Object): void; @@ -2859,7 +2861,7 @@ declare module dijit { * the ContentPane to slide in from a set direction. Defaults * to "random", or specify one of "top", "left", "right", "bottom" * to slideFrom top, left, right, or bottom. - * + * */ "slideFrom": string; set(property:"slideFrom", value: string): void; @@ -2867,7 +2869,7 @@ declare module dijit { watch(property:"slideFrom", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * pointer to original DOM node - * + * */ "srcNodeRef": HTMLElement; set(property:"srcNodeRef", value: HTMLElement): void; @@ -2875,7 +2877,7 @@ declare module dijit { watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} /** * HTML style attributes as cssText string or name/value hash - * + * */ "style": Object; set(property:"style", value: Object): void; @@ -2883,14 +2885,14 @@ declare module dijit { watch(property:"style", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** * HTML title attribute. - * + * * For form widgets this specifies a tooltip to display when hovering over * the widget (just like the native HTML title attribute). - * + * * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's * interpreted as HTML. - * + * */ "title": string; set(property:"title", value: string): void; @@ -2899,7 +2901,7 @@ declare module dijit { /** * When this widget's title attribute is used to for a tab label, accordion pane title, etc., * this specifies the tooltip to appear when the mouse is hovered over that text. - * + * */ "tooltip": string; set(property:"tooltip", value: string): void; @@ -2907,180 +2909,180 @@ declare module dijit { watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: String, value?: Object): any; /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: Object, value?: Object): any; /** * Construct the UI for this widget, setting this.domNode. * Most widgets will mixin dijit._TemplatedMixin, which implements this method. - * + * */ buildRendering(): void; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: Function): any; /** * Wrapper to setTimeout to avoid deferred functions executing * after the originating widget has been destroyed. * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. + * + * @param fcn Function reference. + * @param delay OptionalDelay, defaults to 0. */ defer(fcn: Function, delay?: number): Object; /** * Destroy this widget, but not its descendants. Descendants means widgets inside of * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * + * * This method will also destroy internal widgets such as those created from a template, * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * + * * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not * depend on the current ability to destroy a widget without destroying its descendants. Generally * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets + * + * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets */ destroy(preserveDom?: boolean): void; /** * Recursively destroy the children of this widget and their * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. + * + * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. */ destroyDescendants(preserveDom?: boolean): void; /** @@ -3088,36 +3090,36 @@ declare module dijit { * This is the generic "destructor" function that all widget users * should call to cleanly discard with a widget. Once a widget is * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. */ destroyRecursive(preserveDom?: boolean): void; /** * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. */ destroyRendering(preserveDom?: boolean): void; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Disconnects handle created by connect. - * - * @param handle + * + * @param handle */ disconnect(handle: any): void; /** * Used by widgets to signal that a synthetic event occurred, ex: - * + * * myWidget.emit("attrmodified-selectedChildWidget", {}). * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. * Also calls onType() method, if present, and returns value from that method. * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional + * + * @param type + * @param eventObj Optional + * @param callbackArgs Optional */ emit(type: String, eventObj?: Object, callbackArgs?: any[]): any; /** @@ -3125,15 +3127,15 @@ declare module dijit { * Get a named property from a widget. The property may * potentially be retrieved via a getter method. If no getter is defined, this * just retrieves the object's property. - * + * * For example, if the widget has properties foo and bar * and a method named _getFooAttr(), calling: * myWidget.get("foo") would be equivalent to calling * widget._getFooAttr() and myWidget.get("bar") * would be equivalent to the expression * widget.bar2 - * - * @param name The property to get. + * + * @param name The property to get. */ get(name: any): any; /** @@ -3141,54 +3143,54 @@ declare module dijit { * is this widget. Note that it does not return all descendants, but rather just direct children. * Analogous to Node.childNodes, * except containing widgets rather than DOMNodes. - * + * * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) * outside of this.containerNode. - * + * * Note that the array returned is a simple array. Application code should not assume * existence of methods like forEach(). - * + * */ getChildren(): any[]; /** * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. * This method should generally be avoided as it returns widgets declared in templates, which are * supposed to be internal/hidden, but it's left here for back-compat reasons. - * + * */ getDescendants(): any[]; /** * Returns the parent widget of this widget. - * + * */ getParent(): any; /** * Return true if this widget can currently be focused * and false if not - * + * */ isFocusable(): any; /** * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * + * */ isLeftToRight(): any; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: String, func: Function): any; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: Function, func: Function): any; /** * Track specified handles and remove/destroy them when this instance is destroyed, unless they were * already removed/destroyed manually. - * + * */ own(): any; /** @@ -3197,9 +3199,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: String): any; /** @@ -3208,9 +3210,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: String): any; /** @@ -3219,9 +3221,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: String): any; /** @@ -3230,9 +3232,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: number): any; /** @@ -3241,9 +3243,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: number): any; /** @@ -3252,13 +3254,13 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: number): any; /** - * + * */ postCreate(): void; /** @@ -3266,62 +3268,62 @@ declare module dijit { * but before the widget template is instantiated. Especially * useful to set properties that are referenced in the widget * template. - * + * */ postMixInProperties(): void; /** * Set a property on a widget * Sets named properties on a widget which may potentially be handled by a * setter in the widget. - * + * * For example, if the widget has properties foo and bar * and a method named _setFooAttr(), calling * myWidget.set("foo", "Howdy!") would be equivalent to calling * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) * would be equivalent to the statement widget.bar = 3; - * + * * set() may also be called with a hash of name/value pairs, ex: - * + * * myWidget.set({ * foo: "Howdy", * bar: 3 * }); * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. + * + * @param name The property to set. + * @param value The value to set in the property. */ set(name: any, value: any): any; /** * Deprecated. Use set() instead. - * - * @param attr - * @param value + * + * @param attr + * @param value */ setAttribute(attr: String, value: any): void; /** * Processing after the DOM fragment is added to the document * Called after a widget and its children have been created and added to the page, * and all related widgets have finished their create() cycle, up through postCreate(). - * + * * Note that startup() may be called while the widget is still hidden, for example if the widget is * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. * For widgets that need to do layout, it's best to put that layout code inside resize(), and then * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * + * */ startup(): void; /** * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * + * * Subscribes to the specified topic and calls the specified method * of this object and registers for unsubscribe() on widget destroy. - * + * * Provide widget-specific analog to dojo.subscribe, except with the * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback + * + * @param t The topic + * @param method The callback */ subscribe(t: String, method: Function): any; /** @@ -3329,29 +3331,29 @@ declare module dijit { * When a widget is cast to a string, this method will be used to generate the * output. Currently, it does not implement any sort of reversible * serialization. - * + * */ toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. - * + * */ uninitialize(): boolean; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Unsubscribes handle created by this.subscribe. * Also removes handle from this widget's list of subscriptions - * - * @param handle + * + * @param handle */ unsubscribe(handle: Object): void; /** * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. + * + * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched + * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. */ watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; /** @@ -3359,114 +3361,114 @@ declare module dijit { * focus moved to something outside of it, or the user * clicked somewhere outside of it, or the widget was * hidden. - * + * */ onBlur(): void; /** * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onClick(event: any): void; /** * Called when this widget is being displayed as a popup (ex: a Calendar popped * up from a DateTextBox), and it is hidden. * This is called from the dijit.popup code, and should not be called directly. - * + * * Also used as a parameter for children of dijit/layout/StackContainer or subclasses. * Callback if a user tries to close the child. Child will be closed if this function returns true. - * + * */ onClose(): boolean; /** * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onDblClick(event: any): void; /** * Called when the widget becomes "active" because * it or a widget inside of it either has focus, or has recently * been clicked. - * + * */ onFocus(): void; /** * Called when another widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onHide(): void; /** * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event + * + * @param event key Event */ onKeyDown(event: any): void; /** * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event + * + * @param event key Event */ onKeyPress(event: any): void; /** * Connect to this function to receive notifications of keys being released. - * - * @param event key Event + * + * @param event key Event */ onKeyUp(event: any): void; /** * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseDown(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseEnter(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseLeave(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseMove(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOut(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOver(event: any): void; /** * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseUp(event: any): void; /** * Called when this widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onShow(): void; } @@ -3475,53 +3477,53 @@ declare module dijit { * * A time picker dropdown, used by dijit/form/TimeTextBox. * This widget is not available as a standalone widget due to lack of accessibility support. - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified, replace srcNodeRef with my generated DOM tree + * + * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. + * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified, replace srcNodeRef with my generated DOM tree */ class _TimePicker extends dijit._WidgetBase implements dijit.form._ListMouseMixin { constructor(params?: Object, srcNodeRef?: HTMLElement); /** * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute * for each XXX attribute to be mapped to the DOM. - * + * * attributeMap sets up a "binding" between attributes (aka properties) * of the widget and the widget's DOM. * Changes to widget attributes listed in attributeMap will be * reflected into the DOM. - * + * * For example, calling set('title', 'hello') * on a TitlePane will automatically cause the TitlePane's DOM to update * with the new title. - * + * * attributeMap is a hash where the key is an attribute of the widget, * and the value reflects a binding to a: - * + * * DOM node attribute * focus: {node: "focusNode", type: "attribute"} * Maps this.focus to this.focusNode.focus - * + * * DOM node innerHTML * title: { node: "titleNode", type: "innerHTML" } * Maps this.title to this.titleNode.innerHTML - * + * * DOM node innerText * title: { node: "titleNode", type: "innerText" } * Maps this.title to this.titleNode.innerText - * + * * DOM node CSS class * myClass: { node: "domNode", type: "class" } * Maps this.myClass to this.domNode.className - * + * * If the value is an array, then each element in the array matches one of the * formats of the above list. - * + * * There are also some shorthands for backwards compatibility: - * + * * string --> { node: string, type: "attribute" }, for example: * "focusNode" ---> { node: "focusNode", type: "attribute" } * "" --> { node: "domNode", type: "attribute" } - * + * */ "attributeMap": Object; set(property:"attributeMap", value: Object): void; @@ -3529,14 +3531,14 @@ declare module dijit { watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** * The root className to use for the various states of this widget - * + * */ "baseClass": string; set(property:"baseClass", value: string): void; get(property:"baseClass"): string; watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "class": string; set(property:"class", value: string): void; @@ -3548,7 +3550,7 @@ declare module dijit { * Set in local time, without a time zone. * Example: T00:15:00 creates 15 minute increments * Must divide dijit/_TimePicker.visibleIncrement evenly - * + * */ "clickableIncrement": string; set(property:"clickableIncrement", value: string): void; @@ -3556,7 +3558,7 @@ declare module dijit { watch(property:"clickableIncrement", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Specifies valid range of times (start time, end time) - * + * */ "constraints": Object; set(property:"constraints", value: Object): void; @@ -3566,24 +3568,24 @@ declare module dijit { * Designates where children of the source DOM node will be placed. * "Children" in this case refers to both DOM nodes and widgets. * For example, for myWidget: - * + * *
* here's a plain DOM node * and a widget * and another plain DOM node *
* containerNode would point to: - * + * * here's a plain DOM node * and a widget * and another plain DOM node * In templated widgets, "containerNode" is set via a * data-dojo-attach-point assignment. - * + * * containerNode must be defined for any widget that accepts innerHTML * (like ContentPane or BorderContainer or even Button), and conversely * is null for widgets that don't, like TextBox. - * + * */ "containerNode": HTMLElement; set(property:"containerNode", value: HTMLElement): void; @@ -3593,7 +3595,7 @@ declare module dijit { * Bi-directional support, as defined by the HTML DIR * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's * default direction. - * + * */ "dir": string; set(property:"dir", value: string): void; @@ -3604,7 +3606,7 @@ declare module dijit { * Nodes may by assigned to other properties, usually through the * template system's data-dojo-attach-point syntax, but the domNode * property is the canonical "top level" node in widget UI. - * + * */ "domNode": HTMLElement; set(property:"domNode", value: HTMLElement): void; @@ -3612,7 +3614,7 @@ declare module dijit { watch(property:"domNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} /** * The string to filter by - * + * */ "filterString": string; set(property:"filterString", value: string): void; @@ -3621,7 +3623,7 @@ declare module dijit { /** * This widget or a widget it contains has focus, or is "active" because * it was recently clicked. - * + * */ "focused": boolean; set(property:"focused", value: boolean): void; @@ -3632,7 +3634,7 @@ declare module dijit { * system. If the developer passes an ID which is known not to be * unique, the specified ID is ignored and the system-generated ID is * used instead. - * + * */ "id": string; set(property:"id", value: string): void; @@ -3643,7 +3645,7 @@ declare module dijit { * as defined by the HTML LANG attribute. * Value must be among the list of locales specified during by the Dojo bootstrap, * formatted according to RFC 3066 (like en-us). - * + * */ "lang": string; set(property:"lang", value: string): void; @@ -3652,7 +3654,7 @@ declare module dijit { /** * The document this widget belongs to. If not specified to constructor, will default to * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * + * */ "ownerDocument": Object; set(property:"ownerDocument", value: Object): void; @@ -3660,7 +3662,7 @@ declare module dijit { watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** * currently selected node - * + * */ "selected": HTMLElement; set(property:"selected", value: HTMLElement): void; @@ -3668,7 +3670,7 @@ declare module dijit { watch(property:"selected", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} /** * pointer to original DOM node - * + * */ "srcNodeRef": HTMLElement; set(property:"srcNodeRef", value: HTMLElement): void; @@ -3676,7 +3678,7 @@ declare module dijit { watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} /** * HTML style attributes as cssText string or name/value hash - * + * */ "style": string; set(property:"style", value: string): void; @@ -3684,14 +3686,14 @@ declare module dijit { watch(property:"style", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * HTML title attribute. - * + * * For form widgets this specifies a tooltip to display when hovering over * the widget (just like the native HTML title attribute). - * + * * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's * interpreted as HTML. - * + * */ "title": string; set(property:"title", value: string): void; @@ -3700,7 +3702,7 @@ declare module dijit { /** * When this widget's title attribute is used to for a tab label, accordion pane title, etc., * this specifies the tooltip to appear when the mouse is hovered over that text. - * + * */ "tooltip": string; set(property:"tooltip", value: string): void; @@ -3720,7 +3722,7 @@ declare module dijit { * T10:00:00Z becomes T05:00:00-05:00 (5 hour difference between Zulu and local time) * yyyy-mm-ddThh:mm:ss is the format to set the date and time * Example: 2007-06-01T09:00:00 - * + * */ "value": string; set(property:"value", value: string): void; @@ -3731,172 +3733,172 @@ declare module dijit { * every element with a visible time in the time picker increases. * Set in local time, without a time zone. * Example: T01:00:00 creates text in every 1 hour increment - * + * */ "visibleIncrement": string; set(property:"visibleIncrement", value: string): void; get(property:"visibleIncrement"): string; watch(property:"visibleIncrement", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ buildRendering(): void; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: Function): any; /** * Wrapper to setTimeout to avoid deferred functions executing * after the originating widget has been destroyed. * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. + * + * @param fcn Function reference. + * @param delay OptionalDelay, defaults to 0. */ defer(fcn: Function, delay?: number): Object; /** * Destroy this widget, but not its descendants. Descendants means widgets inside of * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * + * * This method will also destroy internal widgets such as those created from a template, * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * + * * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not * depend on the current ability to destroy a widget without destroying its descendants. Generally * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets + * + * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets */ destroy(preserveDom?: boolean): void; /** * Recursively destroy the children of this widget and their * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. + * + * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. */ destroyDescendants(preserveDom?: boolean): void; /** @@ -3904,36 +3906,36 @@ declare module dijit { * This is the generic "destructor" function that all widget users * should call to cleanly discard with a widget. Once a widget is * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. */ destroyRecursive(preserveDom?: boolean): void; /** * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. */ destroyRendering(preserveDom?: boolean): void; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Disconnects handle created by connect. - * - * @param handle + * + * @param handle */ disconnect(handle: any): void; /** * Used by widgets to signal that a synthetic event occurred, ex: - * + * * myWidget.emit("attrmodified-selectedChildWidget", {}). * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. * Also calls onType() method, if present, and returns value from that method. * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional + * + * @param type + * @param eventObj Optional + * @param callbackArgs Optional */ emit(type: String, eventObj?: Object, callbackArgs?: any[]): any; /** @@ -3941,15 +3943,15 @@ declare module dijit { * Get a named property from a widget. The property may * potentially be retrieved via a getter method. If no getter is defined, this * just retrieves the object's property. - * + * * For example, if the widget has properties foo and bar * and a method named _getFooAttr(), calling: * myWidget.get("foo") would be equivalent to calling * widget._getFooAttr() and myWidget.get("bar") * would be equivalent to the expression * widget.bar2 - * - * @param name The property to get. + * + * @param name The property to get. */ get(name: any): any; /** @@ -3957,43 +3959,43 @@ declare module dijit { * is this widget. Note that it does not return all descendants, but rather just direct children. * Analogous to Node.childNodes, * except containing widgets rather than DOMNodes. - * + * * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) * outside of this.containerNode. - * + * * Note that the array returned is a simple array. Application code should not assume * existence of methods like forEach(). - * + * */ getChildren(): any[]; /** * Returns the parent widget of this widget. - * + * */ getParent(): any; /** * Called from dijit/form/_DateTimeTextBox to pass a keypress event * from the dijit/form/TimeTextBox to be handled in this widget - * - * @param e + * + * @param e */ handleKey(e: Event): any; /** * May be overridden to disable certain dates in the TimePicker e.g. isDisabledDate=locale.isWeekend - * - * @param dateObject - * @param locale Optional + * + * @param dateObject + * @param locale Optional */ isDisabledDate(dateObject: Date, locale?: String): boolean; /** * Return true if this widget can currently be focused * and false if not - * + * */ isFocusable(): any; /** * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * + * */ isLeftToRight(): any; /** @@ -4001,9 +4003,9 @@ declare module dijit { * Call specified function when event type occurs, ex: myWidget.on("click", function(){ ... }). * Note that the function is not run in any particular scope, so if (for example) you want it to run in the * widget's scope you must do myWidget.on("click", lang.hitch(myWidget, func)). - * - * @param type Name of event (ex: "click") or extension event like touch.press. - * @param func + * + * @param type Name of event (ex: "click") or extension event like touch.press. + * @param func */ on(type: String, func: Function): any; /** @@ -4011,15 +4013,15 @@ declare module dijit { * Call specified function when event type occurs, ex: myWidget.on("click", function(){ ... }). * Note that the function is not run in any particular scope, so if (for example) you want it to run in the * widget's scope you must do myWidget.on("click", lang.hitch(myWidget, func)). - * - * @param type Name of event (ex: "click") or extension event like touch.press. - * @param func + * + * @param type Name of event (ex: "click") or extension event like touch.press. + * @param func */ on(type: Function, func: Function): any; /** * Track specified handles and remove/destroy them when this instance is destroyed, unless they were * already removed/destroyed manually. - * + * */ own(): any; /** @@ -4028,9 +4030,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: String): any; /** @@ -4039,9 +4041,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: String): any; /** @@ -4050,9 +4052,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: String): any; /** @@ -4061,9 +4063,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: number): any; /** @@ -4072,9 +4074,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: number): any; /** @@ -4083,9 +4085,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: number): any; /** @@ -4093,34 +4095,34 @@ declare module dijit { * Called after the DOM fragment has been created, but not necessarily * added to the document. Do not include any operations which rely on * node dimensions or placement. - * + * */ postCreate(): void; /** - * + * */ postMixInProperties(): void; /** * Select the first displayed item in the list. - * + * */ selectFirstNode(): void; /** * Select the last displayed item in the list - * + * */ selectLastNode(): void; /** * Select the item just below the current selection. * If nothing selected, select first node. - * + * */ selectNextNode(): void; /** * Select the item just above the current selection. * If nothing selected, select last node (if * you select Previous and try to keep scrolling up the list). - * + * */ selectPreviousNode(): void; /** @@ -4128,63 +4130,63 @@ declare module dijit { * When options.selector is omitted, output follows RFC3339 * The local time zone is included as an offset from GMT, except when selector=='time' (time without a date) * Does not check bounds. Only years between 100 and 9999 are supported. - * - * @param dateObject A Date object - * @param options OptionalAn object with the following properties:selector (String): "date" or "time" for partial formatting of the Date object.Both date and time will be formatted by default.zulu (Boolean): if true, UTC/GMT is used for a timezonemilliseconds (Boolean): if true, output milliseconds + * + * @param dateObject A Date object + * @param options OptionalAn object with the following properties:selector (String): "date" or "time" for partial formatting of the Date object.Both date and time will be formatted by default.zulu (Boolean): if true, UTC/GMT is used for a timezonemilliseconds (Boolean): if true, output milliseconds */ serialize(dateObject: Date, options?: Object): any; /** * Set a property on a widget * Sets named properties on a widget which may potentially be handled by a * setter in the widget. - * + * * For example, if the widget has properties foo and bar * and a method named _setFooAttr(), calling * myWidget.set("foo", "Howdy!") would be equivalent to calling * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) * would be equivalent to the statement widget.bar = 3; - * + * * set() may also be called with a hash of name/value pairs, ex: - * + * * myWidget.set({ * foo: "Howdy", * bar: 3 * }); * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. + * + * @param name The property to set. + * @param value The value to set in the property. */ set(name: any, value: any): any; /** * Deprecated. Used set('value') instead. - * - * @param value + * + * @param value */ setValue(value: Date): void; /** * Processing after the DOM fragment is added to the document * Called after a widget and its children have been created and added to the page, * and all related widgets have finished their create() cycle, up through postCreate(). - * + * * Note that startup() may be called while the widget is still hidden, for example if the widget is * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. * For widgets that need to do layout, it's best to put that layout code inside resize(), and then * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * + * */ startup(): void; /** * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * + * * Subscribes to the specified topic and calls the specified method * of this object and registers for unsubscribe() on widget destroy. - * + * * Provide widget-specific analog to dojo.subscribe, except with the * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback + * + * @param t The topic + * @param method The callback */ subscribe(t: String, method: Function): any; /** @@ -4192,29 +4194,29 @@ declare module dijit { * When a widget is cast to a string, this method will be used to generate the * output. Currently, it does not implement any sort of reversible * serialization. - * + * */ toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. - * + * */ uninitialize(): boolean; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Unsubscribes handle created by this.subscribe. * Also removes handle from this widget's list of subscriptions - * - * @param handle + * + * @param handle */ unsubscribe(handle: Object): void; /** * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. + * + * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched + * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. */ watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; /** @@ -4222,49 +4224,49 @@ declare module dijit { * focus moved to something outside of it, or the user * clicked somewhere outside of it, or the widget was * hidden. - * + * */ onBlur(): void; /** * Notification that a time was selected. It may be the same as the previous value. - * - * @param time + * + * @param time */ onChange(time: Date): void; /** - * - * @param node + * + * @param node */ onClick(node: HTMLElement): void; /** - * - * @param node + * + * @param node */ onDeselect(node: HTMLElement): void; /** * Called when the widget becomes "active" because * it or a widget inside of it either has focus, or has recently * been clicked. - * + * */ onFocus(): void; /** - * - * @param node + * + * @param node */ onHover(node: HTMLElement): void; /** - * + * */ onOpen(): void; /** - * - * @param node + * + * @param node */ onSelect(node: HTMLElement): void; /** - * - * @param node + * + * @param node */ onUnhover(node: HTMLElement): void; } @@ -4272,58 +4274,58 @@ declare module dijit { /** * Permalink: http://dojotoolkit.org/api/1.9/dijit/_TimePicker.__Constraints.html * - * + * */ class __Constraints { constructor(); /** * override strings for am in times - * + * */ "am": string; /** * See dijit/_TimePicker.clickableIncrement - * + * */ "clickableIncrement": string; /** * override pattern with this string - * + * */ "datePattern": string; /** * choice of long, short, medium or full (plus any custom additions). Defaults to 'short' - * + * */ "formatLength": string; /** * (format only) use 4 digit years whenever 2 digit years are called for - * + * */ "fullYear": boolean; /** * override the locale used to determine formatting rules - * + * */ "locale": string; /** * override strings for pm in times - * + * */ "pm": string; /** * choice of 'time','date' (default: date and time) - * + * */ "selector": string; /** * (parse only) strict parsing, off by default - * + * */ "strict": boolean; /** * override pattern with this string - * + * */ "timePattern": string; } @@ -4336,20 +4338,20 @@ declare module dijit { * Call this.own(...) on list of handles (returned from dojo/aspect, dojo/on, * dojo/Stateful::watch, or any class (including widgets) with a destroyRecursive() or destroy() method. * Then call destroy() later to destroy this instance and release the resources. - * + * */ class Destroyable { constructor(); /** * Destroy this class, releasing any resources registered via own(). - * - * @param preserveDom + * + * @param preserveDom */ destroy(preserveDom?: boolean): void; /** * Track specified handles and remove/destroy them when this instance is destroyed, unless they were * already removed/destroyed manually. - * + * */ own(handle:any): any; } @@ -4360,22 +4362,22 @@ declare module dijit { * A simple GUI for choosing a date in the context of a monthly calendar. * This widget can't be used in a form because it doesn't serialize the date to an * field. For a form element, use dijit/form/DateTextBox instead. - * + * * Note that the parser takes all dates attributes passed in the * RFC 3339 format, e.g. 2005-06-30T08:05:00-07:00 * so that they are serializable and locale-independent. - * + * * Also note that this widget isn't keyboard accessible; use dijit.Calendar for that - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified, replace srcNodeRef with my generated DOM tree + * + * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. + * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified, replace srcNodeRef with my generated DOM tree */ class CalendarLite extends dijit._WidgetBase implements dijit._TemplatedMixin { constructor(params?: Object, srcNodeRef?: HTMLElement); /** * Object to which attach points and events will be scoped. Defaults * to 'this'. - * + * */ "attachScope": Object; set(property:"attachScope", value: Object): void; @@ -4384,58 +4386,58 @@ declare module dijit { /** * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute * for each XXX attribute to be mapped to the DOM. - * + * * attributeMap sets up a "binding" between attributes (aka properties) * of the widget and the widget's DOM. * Changes to widget attributes listed in attributeMap will be * reflected into the DOM. - * + * * For example, calling set('title', 'hello') * on a TitlePane will automatically cause the TitlePane's DOM to update * with the new title. - * + * * attributeMap is a hash where the key is an attribute of the widget, * and the value reflects a binding to a: - * + * * DOM node attribute * focus: {node: "focusNode", type: "attribute"} * Maps this.focus to this.focusNode.focus - * + * * DOM node innerHTML * title: { node: "titleNode", type: "innerHTML" } * Maps this.title to this.titleNode.innerHTML - * + * * DOM node innerText * title: { node: "titleNode", type: "innerText" } * Maps this.title to this.titleNode.innerText - * + * * DOM node CSS class * myClass: { node: "domNode", type: "class" } * Maps this.myClass to this.domNode.className - * + * * If the value is an array, then each element in the array matches one of the * formats of the above list. - * + * * There are also some shorthands for backwards compatibility: - * + * * string --> { node: string, type: "attribute" }, for example: * "focusNode" ---> { node: "focusNode", type: "attribute" } * "" --> { node: "domNode", type: "attribute" } - * + * */ "attributeMap": Object; set(property:"attributeMap", value: Object): void; get(property:"attributeMap"): Object; watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** - * + * */ "baseClass": string; set(property:"baseClass", value: string): void; get(property:"baseClass"): string; watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "class": string; set(property:"class", value: string): void; @@ -4445,24 +4447,24 @@ declare module dijit { * Designates where children of the source DOM node will be placed. * "Children" in this case refers to both DOM nodes and widgets. * For example, for myWidget: - * + * *
* here's a plain DOM node * and a widget * and another plain DOM node *
* containerNode would point to: - * + * * here's a plain DOM node * and a widget * and another plain DOM node * In templated widgets, "containerNode" is set via a * data-dojo-attach-point assignment. - * + * * containerNode must be defined for any widget that accepts innerHTML * (like ContentPane or BorderContainer or even Button), and conversely * is null for widgets that don't, like TextBox. - * + * */ "containerNode": HTMLElement; set(property:"containerNode", value: HTMLElement): void; @@ -4472,7 +4474,7 @@ declare module dijit { * Date object containing the currently focused date, or the date which would be focused * if the calendar itself was focused. Also indicates which year and month to display, * i.e. the current "page" the calendar is on. - * + * */ "currentFocus": Date; set(property:"currentFocus", value: Date): void; @@ -4481,14 +4483,14 @@ declare module dijit { /** * JavaScript namespace to find calendar routines. If unspecified, uses Gregorian calendar routines * at dojo/date and dojo/date/locale. - * + * */ "datePackage": string; set(property:"datePackage", value: string): void; get(property:"datePackage"): string; watch(property:"datePackage", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "dateTemplateString": string; set(property:"dateTemplateString", value: string): void; @@ -4496,7 +4498,7 @@ declare module dijit { watch(property:"dateTemplateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * How to represent the days of the week in the calendar header. See locale - * + * */ "dayWidth": string; set(property:"dayWidth", value: string): void; @@ -4506,7 +4508,7 @@ declare module dijit { * Bi-directional support, as defined by the HTML DIR * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's * default direction. - * + * */ "dir": string; set(property:"dir", value: string): void; @@ -4517,14 +4519,14 @@ declare module dijit { * Nodes may by assigned to other properties, usually through the * template system's data-dojo-attach-point syntax, but the domNode * property is the canonical "top level" node in widget UI. - * + * */ "domNode": HTMLElement; set(property:"domNode", value: HTMLElement): void; get(property:"domNode"): HTMLElement; watch(property:"domNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} /** - * + * */ "dowTemplateString": string; set(property:"dowTemplateString", value: string): void; @@ -4535,7 +4537,7 @@ declare module dijit { * system. If the developer passes an ID which is known not to be * unique, the specified ID is ignored and the system-generated ID is * used instead. - * + * */ "id": string; set(property:"id", value: string): void; @@ -4546,7 +4548,7 @@ declare module dijit { * as defined by the HTML LANG attribute. * Value must be among the list of locales specified during by the Dojo bootstrap, * formatted according to RFC 3066 (like en-us). - * + * */ "lang": string; set(property:"lang", value: string): void; @@ -4555,14 +4557,14 @@ declare module dijit { /** * The document this widget belongs to. If not specified to constructor, will default to * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * + * */ "ownerDocument": Object; set(property:"ownerDocument", value: Object): void; get(property:"ownerDocument"): Object; watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** - * + * */ "searchContainerNode": boolean; set(property:"searchContainerNode", value: boolean): void; @@ -4570,7 +4572,7 @@ declare module dijit { watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * pointer to original DOM node - * + * */ "srcNodeRef": HTMLElement; set(property:"srcNodeRef", value: HTMLElement): void; @@ -4578,7 +4580,7 @@ declare module dijit { watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} /** * HTML style attributes as cssText string or name/value hash - * + * */ "style": string; set(property:"style", value: string): void; @@ -4586,7 +4588,7 @@ declare module dijit { watch(property:"style", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Order fields are traversed when user hits the tab key - * + * */ "tabIndex": string; set(property:"tabIndex", value: string): void; @@ -4595,14 +4597,14 @@ declare module dijit { /** * Path to template (HTML file) for this widget relative to dojo.baseUrl. * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * + * */ "templatePath": string; set(property:"templatePath", value: string): void; get(property:"templatePath"): string; watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "templateString": string; set(property:"templateString", value: string): void; @@ -4610,14 +4612,14 @@ declare module dijit { watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * HTML title attribute. - * + * * For form widgets this specifies a tooltip to display when hovering over * the widget (just like the native HTML title attribute). - * + * * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's * interpreted as HTML. - * + * */ "title": string; set(property:"title", value: string): void; @@ -4626,7 +4628,7 @@ declare module dijit { /** * When this widget's title attribute is used to for a tab label, accordion pane title, etc., * this specifies the tooltip to appear when the mouse is hovered over that text. - * + * */ "tooltip": string; set(property:"tooltip", value: string): void; @@ -4634,179 +4636,179 @@ declare module dijit { watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * The currently selected Date, initially set to invalid date to indicate no selection. - * + * */ "value": Date; set(property:"value", value: Date): void; get(property:"value"): Date; watch(property:"value", callback:{(property?:string, oldValue?:Date, newValue?: Date):void}) :{unwatch():void} /** - * + * */ "weekTemplateString": string; set(property:"weekTemplateString", value: string): void; get(property:"weekTemplateString"): string; watch(property:"weekTemplateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ buildRendering(): void; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: Function): any; /** * Wrapper to setTimeout to avoid deferred functions executing * after the originating widget has been destroyed. * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. + * + * @param fcn Function reference. + * @param delay OptionalDelay, defaults to 0. */ defer(fcn: Function, delay?: number): Object; /** * Destroy this widget, but not its descendants. Descendants means widgets inside of * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * + * * This method will also destroy internal widgets such as those created from a template, * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * + * * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not * depend on the current ability to destroy a widget without destroying its descendants. Generally * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets + * + * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets */ destroy(preserveDom?: boolean): void; /** * Recursively destroy the children of this widget and their * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. + * + * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. */ destroyDescendants(preserveDom?: boolean): void; /** @@ -4814,41 +4816,41 @@ declare module dijit { * This is the generic "destructor" function that all widget users * should call to cleanly discard with a widget. Once a widget is * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. */ destroyRecursive(preserveDom?: boolean): void; /** * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. */ destroyRendering(preserveDom?: boolean): void; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Disconnects handle created by connect. - * - * @param handle + * + * @param handle */ disconnect(handle: any): void; /** * Used by widgets to signal that a synthetic event occurred, ex: - * + * * myWidget.emit("attrmodified-selectedChildWidget", {}). * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. * Also calls onType() method, if present, and returns value from that method. * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional + * + * @param type + * @param eventObj Optional + * @param callbackArgs Optional */ emit(type: String, eventObj?: Object, callbackArgs?: any[]): any; /** * Focus the calendar by focusing one of the calendar cells - * + * */ focus(): void; /** @@ -4856,15 +4858,15 @@ declare module dijit { * Get a named property from a widget. The property may * potentially be retrieved via a getter method. If no getter is defined, this * just retrieves the object's property. - * + * * For example, if the widget has properties foo and bar * and a method named _getFooAttr(), calling: * myWidget.get("foo") would be equivalent to calling * widget._getFooAttr() and myWidget.get("bar") * would be equivalent to the expression * widget.bar2 - * - * @param name The property to get. + * + * @param name The property to get. */ get(name: any): any; /** @@ -4872,49 +4874,49 @@ declare module dijit { * is this widget. Note that it does not return all descendants, but rather just direct children. * Analogous to Node.childNodes, * except containing widgets rather than DOMNodes. - * + * * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) * outside of this.containerNode. - * + * * Note that the array returned is a simple array. Application code should not assume * existence of methods like forEach(). - * + * */ getChildren(): any[]; /** * May be overridden to return CSS classes to associate with the date entry for the given dateObject, * for example to indicate a holiday in specified locale. - * - * @param dateObject - * @param locale Optional + * + * @param dateObject + * @param locale Optional */ getClassForDate(dateObject: Date, locale?: String): String; /** * Returns the parent widget of this widget. - * + * */ getParent(): any; /** * Sets calendar's value to today's date - * + * */ goToToday(): void; /** * May be overridden to disable certain dates in the calendar e.g. isDisabledDate=dojo.date.locale.isWeekend - * - * @param dateObject - * @param locale Optional + * + * @param dateObject + * @param locale Optional */ isDisabledDate(dateObject: Date, locale?: String): boolean; /** * Return true if this widget can currently be focused * and false if not - * + * */ isFocusable(): any; /** * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * + * */ isLeftToRight(): any; /** @@ -4922,9 +4924,9 @@ declare module dijit { * Call specified function when event type occurs, ex: myWidget.on("click", function(){ ... }). * Note that the function is not run in any particular scope, so if (for example) you want it to run in the * widget's scope you must do myWidget.on("click", lang.hitch(myWidget, func)). - * - * @param type Name of event (ex: "click") or extension event like touch.press. - * @param func + * + * @param type Name of event (ex: "click") or extension event like touch.press. + * @param func */ on(type: String, func: Function): any; /** @@ -4932,15 +4934,15 @@ declare module dijit { * Call specified function when event type occurs, ex: myWidget.on("click", function(){ ... }). * Note that the function is not run in any particular scope, so if (for example) you want it to run in the * widget's scope you must do myWidget.on("click", lang.hitch(myWidget, func)). - * - * @param type Name of event (ex: "click") or extension event like touch.press. - * @param func + * + * @param type Name of event (ex: "click") or extension event like touch.press. + * @param func */ on(type: Function, func: Function): any; /** * Track specified handles and remove/destroy them when this instance is destroyed, unless they were * already removed/destroyed manually. - * + * */ own(): any; /** @@ -4949,9 +4951,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: String): any; /** @@ -4960,9 +4962,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: String): any; /** @@ -4971,9 +4973,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: String): any; /** @@ -4982,9 +4984,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: number): any; /** @@ -4993,9 +4995,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: number): any; /** @@ -5004,13 +5006,13 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: number): any; /** - * + * */ postCreate(): void; /** @@ -5018,55 +5020,55 @@ declare module dijit { * but before the widget template is instantiated. Especially * useful to set properties that are referenced in the widget * template. - * + * */ postMixInProperties(): void; /** * Set a property on a widget * Sets named properties on a widget which may potentially be handled by a * setter in the widget. - * + * * For example, if the widget has properties foo and bar * and a method named _setFooAttr(), calling * myWidget.set("foo", "Howdy!") would be equivalent to calling * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) * would be equivalent to the statement widget.bar = 3; - * + * * set() may also be called with a hash of name/value pairs, ex: - * + * * myWidget.set({ * foo: "Howdy", * bar: 3 * }); * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. + * + * @param name The property to set. + * @param value The value to set in the property. */ set(name: any, value: any): any; /** * Processing after the DOM fragment is added to the document * Called after a widget and its children have been created and added to the page, * and all related widgets have finished their create() cycle, up through postCreate(). - * + * * Note that startup() may be called while the widget is still hidden, for example if the widget is * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. * For widgets that need to do layout, it's best to put that layout code inside resize(), and then * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * + * */ startup(): void; /** * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * + * * Subscribes to the specified topic and calls the specified method * of this object and registers for unsubscribe() on widget destroy. - * + * * Provide widget-specific analog to dojo.subscribe, except with the * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback + * + * @param t The topic + * @param method The callback */ subscribe(t: String, method: Function): any; /** @@ -5074,29 +5076,29 @@ declare module dijit { * When a widget is cast to a string, this method will be used to generate the * output. Currently, it does not implement any sort of reversible * serialization. - * + * */ toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. - * + * */ uninitialize(): boolean; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Unsubscribes handle created by this.subscribe. * Also removes handle from this widget's list of subscriptions - * - * @param handle + * + * @param handle */ unsubscribe(handle: Object): void; /** * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. + * + * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched + * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. */ watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; /** @@ -5106,8 +5108,8 @@ declare module dijit { getCachedTemplate(): any; /** * Called only when the selected date has changed - * - * @param date + * + * @param date */ onChange(date: Date): void; } @@ -5117,60 +5119,60 @@ declare module dijit { * * Displays name of current month padded to the width of the month * w/the longest name, so that changing months doesn't change width. - * + * * Create as: - * + * * new Calendar._MonthWidget({ * lang: ..., * dateLocaleModule: ... * }) - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree + * + * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. + * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree */ class _MonthWidget extends dijit._WidgetBase { constructor(params?: Object, srcNodeRef?: HTMLElement); /** * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute * for each XXX attribute to be mapped to the DOM. - * + * * attributeMap sets up a "binding" between attributes (aka properties) * of the widget and the widget's DOM. * Changes to widget attributes listed in attributeMap will be * reflected into the DOM. - * + * * For example, calling set('title', 'hello') * on a TitlePane will automatically cause the TitlePane's DOM to update * with the new title. - * + * * attributeMap is a hash where the key is an attribute of the widget, * and the value reflects a binding to a: - * + * * DOM node attribute * focus: {node: "focusNode", type: "attribute"} * Maps this.focus to this.focusNode.focus - * + * * DOM node innerHTML * title: { node: "titleNode", type: "innerHTML" } * Maps this.title to this.titleNode.innerHTML - * + * * DOM node innerText * title: { node: "titleNode", type: "innerText" } * Maps this.title to this.titleNode.innerText - * + * * DOM node CSS class * myClass: { node: "domNode", type: "class" } * Maps this.myClass to this.domNode.className - * + * * If the value is an array, then each element in the array matches one of the * formats of the above list. - * + * * There are also some shorthands for backwards compatibility: - * + * * string --> { node: string, type: "attribute" }, for example: * "focusNode" ---> { node: "focusNode", type: "attribute" } * "" --> { node: "domNode", type: "attribute" } - * + * */ "attributeMap": Object; set(property:"attributeMap", value: Object): void; @@ -5179,14 +5181,14 @@ declare module dijit { /** * Root CSS class of the widget (ex: dijitTextBox), used to construct CSS classes to indicate * widget state. - * + * */ "baseClass": string; set(property:"baseClass", value: string): void; get(property:"baseClass"): string; watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "class": string; set(property:"class", value: string): void; @@ -5196,24 +5198,24 @@ declare module dijit { * Designates where children of the source DOM node will be placed. * "Children" in this case refers to both DOM nodes and widgets. * For example, for myWidget: - * + * *
* here's a plain DOM node * and a widget * and another plain DOM node *
* containerNode would point to: - * + * * here's a plain DOM node * and a widget * and another plain DOM node * In templated widgets, "containerNode" is set via a * data-dojo-attach-point assignment. - * + * * containerNode must be defined for any widget that accepts innerHTML * (like ContentPane or BorderContainer or even Button), and conversely * is null for widgets that don't, like TextBox. - * + * */ "containerNode": HTMLElement; set(property:"containerNode", value: HTMLElement): void; @@ -5223,7 +5225,7 @@ declare module dijit { * Bi-directional support, as defined by the HTML DIR * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's * default direction. - * + * */ "dir": string; set(property:"dir", value: string): void; @@ -5234,7 +5236,7 @@ declare module dijit { * Nodes may by assigned to other properties, usually through the * template system's data-dojo-attach-point syntax, but the domNode * property is the canonical "top level" node in widget UI. - * + * */ "domNode": HTMLElement; set(property:"domNode", value: HTMLElement): void; @@ -5245,7 +5247,7 @@ declare module dijit { * system. If the developer passes an ID which is known not to be * unique, the specified ID is ignored and the system-generated ID is * used instead. - * + * */ "id": string; set(property:"id", value: string): void; @@ -5256,7 +5258,7 @@ declare module dijit { * as defined by the HTML LANG attribute. * Value must be among the list of locales specified during by the Dojo bootstrap, * formatted according to RFC 3066 (like en-us). - * + * */ "lang": string; set(property:"lang", value: string): void; @@ -5265,7 +5267,7 @@ declare module dijit { /** * The document this widget belongs to. If not specified to constructor, will default to * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * + * */ "ownerDocument": Object; set(property:"ownerDocument", value: Object): void; @@ -5273,7 +5275,7 @@ declare module dijit { watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** * pointer to original DOM node - * + * */ "srcNodeRef": HTMLElement; set(property:"srcNodeRef", value: HTMLElement): void; @@ -5281,7 +5283,7 @@ declare module dijit { watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} /** * HTML style attributes as cssText string or name/value hash - * + * */ "style": string; set(property:"style", value: string): void; @@ -5289,14 +5291,14 @@ declare module dijit { watch(property:"style", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * HTML title attribute. - * + * * For form widgets this specifies a tooltip to display when hovering over * the widget (just like the native HTML title attribute). - * + * * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's * interpreted as HTML. - * + * */ "title": string; set(property:"title", value: string): void; @@ -5305,7 +5307,7 @@ declare module dijit { /** * When this widget's title attribute is used to for a tab label, accordion pane title, etc., * this specifies the tooltip to appear when the mouse is hovered over that text. - * + * */ "tooltip": string; set(property:"tooltip", value: string): void; @@ -5314,165 +5316,165 @@ declare module dijit { /** * Construct the UI for this widget, setting this.domNode. * Most widgets will mixin dijit._TemplatedMixin, which implements this method. - * + * */ buildRendering(): void; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: Function): any; /** * Wrapper to setTimeout to avoid deferred functions executing * after the originating widget has been destroyed. * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. + * + * @param fcn Function reference. + * @param delay OptionalDelay, defaults to 0. */ defer(fcn: Function, delay?: number): Object; /** * Destroy this widget, but not its descendants. Descendants means widgets inside of * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * + * * This method will also destroy internal widgets such as those created from a template, * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * + * * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not * depend on the current ability to destroy a widget without destroying its descendants. Generally * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets + * + * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets */ destroy(preserveDom?: boolean): void; /** * Recursively destroy the children of this widget and their * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. + * + * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. */ destroyDescendants(preserveDom?: boolean): void; /** @@ -5480,36 +5482,36 @@ declare module dijit { * This is the generic "destructor" function that all widget users * should call to cleanly discard with a widget. Once a widget is * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. */ destroyRecursive(preserveDom?: boolean): void; /** * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. */ destroyRendering(preserveDom?: boolean): void; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Disconnects handle created by connect. - * - * @param handle + * + * @param handle */ disconnect(handle: any): void; /** * Used by widgets to signal that a synthetic event occurred, ex: - * + * * myWidget.emit("attrmodified-selectedChildWidget", {}). * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. * Also calls onType() method, if present, and returns value from that method. * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional + * + * @param type + * @param eventObj Optional + * @param callbackArgs Optional */ emit(type: String, eventObj?: Object, callbackArgs?: any[]): any; /** @@ -5517,15 +5519,15 @@ declare module dijit { * Get a named property from a widget. The property may * potentially be retrieved via a getter method. If no getter is defined, this * just retrieves the object's property. - * + * * For example, if the widget has properties foo and bar * and a method named _getFooAttr(), calling: * myWidget.get("foo") would be equivalent to calling * widget._getFooAttr() and myWidget.get("bar") * would be equivalent to the expression * widget.bar2 - * - * @param name The property to get. + * + * @param name The property to get. */ get(name: any): any; /** @@ -5533,29 +5535,29 @@ declare module dijit { * is this widget. Note that it does not return all descendants, but rather just direct children. * Analogous to Node.childNodes, * except containing widgets rather than DOMNodes. - * + * * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) * outside of this.containerNode. - * + * * Note that the array returned is a simple array. Application code should not assume * existence of methods like forEach(). - * + * */ getChildren(): any[]; /** * Returns the parent widget of this widget. - * + * */ getParent(): any; /** * Return true if this widget can currently be focused * and false if not - * + * */ isFocusable(): any; /** * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * + * */ isLeftToRight(): any; /** @@ -5563,9 +5565,9 @@ declare module dijit { * Call specified function when event type occurs, ex: myWidget.on("click", function(){ ... }). * Note that the function is not run in any particular scope, so if (for example) you want it to run in the * widget's scope you must do myWidget.on("click", lang.hitch(myWidget, func)). - * - * @param type Name of event (ex: "click") or extension event like touch.press. - * @param func + * + * @param type Name of event (ex: "click") or extension event like touch.press. + * @param func */ on(type: String, func: Function): any; /** @@ -5573,15 +5575,15 @@ declare module dijit { * Call specified function when event type occurs, ex: myWidget.on("click", function(){ ... }). * Note that the function is not run in any particular scope, so if (for example) you want it to run in the * widget's scope you must do myWidget.on("click", lang.hitch(myWidget, func)). - * - * @param type Name of event (ex: "click") or extension event like touch.press. - * @param func + * + * @param type Name of event (ex: "click") or extension event like touch.press. + * @param func */ on(type: Function, func: Function): any; /** * Track specified handles and remove/destroy them when this instance is destroyed, unless they were * already removed/destroyed manually. - * + * */ own(): any; /** @@ -5590,9 +5592,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: String): any; /** @@ -5601,9 +5603,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: String): any; /** @@ -5612,9 +5614,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: String): any; /** @@ -5623,9 +5625,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: number): any; /** @@ -5634,9 +5636,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: number): any; /** @@ -5645,9 +5647,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: number): any; /** @@ -5655,7 +5657,7 @@ declare module dijit { * Called after the DOM fragment has been created, but not necessarily * added to the document. Do not include any operations which rely on * node dimensions or placement. - * + * */ postCreate(): void; /** @@ -5663,55 +5665,55 @@ declare module dijit { * but before the widget template is instantiated. Especially * useful to set properties that are referenced in the widget * template. - * + * */ postMixInProperties(): void; /** * Set a property on a widget * Sets named properties on a widget which may potentially be handled by a * setter in the widget. - * + * * For example, if the widget has properties foo and bar * and a method named _setFooAttr(), calling * myWidget.set("foo", "Howdy!") would be equivalent to calling * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) * would be equivalent to the statement widget.bar = 3; - * + * * set() may also be called with a hash of name/value pairs, ex: - * + * * myWidget.set({ * foo: "Howdy", * bar: 3 * }); * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. + * + * @param name The property to set. + * @param value The value to set in the property. */ set(name: any, value: any): any; /** * Processing after the DOM fragment is added to the document * Called after a widget and its children have been created and added to the page, * and all related widgets have finished their create() cycle, up through postCreate(). - * + * * Note that startup() may be called while the widget is still hidden, for example if the widget is * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. * For widgets that need to do layout, it's best to put that layout code inside resize(), and then * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * + * */ startup(): void; /** * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * + * * Subscribes to the specified topic and calls the specified method * of this object and registers for unsubscribe() on widget destroy. - * + * * Provide widget-specific analog to dojo.subscribe, except with the * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback + * + * @param t The topic + * @param method The callback */ subscribe(t: String, method: Function): any; /** @@ -5719,29 +5721,29 @@ declare module dijit { * When a widget is cast to a string, this method will be used to generate the * output. Currently, it does not implement any sort of reversible * serialization. - * + * */ toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. - * + * */ uninitialize(): boolean; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Unsubscribes handle created by this.subscribe. * Also removes handle from this widget's list of subscriptions - * - * @param handle + * + * @param handle */ unsubscribe(handle: Object): void; /** * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. + * + * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched + * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. */ watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; } @@ -5752,53 +5754,53 @@ declare module dijit { * * The Declaration widget allows a developer to declare new widget * classes directly from a snippet of markup. - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree + * + * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. + * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree */ class Declaration extends dijit._Widget { constructor(params?: Object, srcNodeRef?: HTMLElement); /** * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute * for each XXX attribute to be mapped to the DOM. - * + * * attributeMap sets up a "binding" between attributes (aka properties) * of the widget and the widget's DOM. * Changes to widget attributes listed in attributeMap will be * reflected into the DOM. - * + * * For example, calling set('title', 'hello') * on a TitlePane will automatically cause the TitlePane's DOM to update * with the new title. - * + * * attributeMap is a hash where the key is an attribute of the widget, * and the value reflects a binding to a: - * + * * DOM node attribute * focus: {node: "focusNode", type: "attribute"} * Maps this.focus to this.focusNode.focus - * + * * DOM node innerHTML * title: { node: "titleNode", type: "innerHTML" } * Maps this.title to this.titleNode.innerHTML - * + * * DOM node innerText * title: { node: "titleNode", type: "innerText" } * Maps this.title to this.titleNode.innerText - * + * * DOM node CSS class * myClass: { node: "domNode", type: "class" } * Maps this.myClass to this.domNode.className - * + * * If the value is an array, then each element in the array matches one of the * formats of the above list. - * + * * There are also some shorthands for backwards compatibility: - * + * * string --> { node: string, type: "attribute" }, for example: * "focusNode" ---> { node: "focusNode", type: "attribute" } * "" --> { node: "domNode", type: "attribute" } - * + * */ "attributeMap": Object; set(property:"attributeMap", value: Object): void; @@ -5807,14 +5809,14 @@ declare module dijit { /** * Root CSS class of the widget (ex: dijitTextBox), used to construct CSS classes to indicate * widget state. - * + * */ "baseClass": string; set(property:"baseClass", value: string): void; get(property:"baseClass"): string; watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "class": string; set(property:"class", value: string): void; @@ -5824,31 +5826,31 @@ declare module dijit { * Designates where children of the source DOM node will be placed. * "Children" in this case refers to both DOM nodes and widgets. * For example, for myWidget: - * + * *
* here's a plain DOM node * and a widget * and another plain DOM node *
* containerNode would point to: - * + * * here's a plain DOM node * and a widget * and another plain DOM node * In templated widgets, "containerNode" is set via a * data-dojo-attach-point assignment. - * + * * containerNode must be defined for any widget that accepts innerHTML * (like ContentPane or BorderContainer or even Button), and conversely * is null for widgets that don't, like TextBox. - * + * */ "containerNode": HTMLElement; set(property:"containerNode", value: HTMLElement): void; get(property:"containerNode"): HTMLElement; watch(property:"containerNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} /** - * + * */ "defaults": Object; set(property:"defaults", value: Object): void; @@ -5858,7 +5860,7 @@ declare module dijit { * Bi-directional support, as defined by the HTML DIR * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's * default direction. - * + * */ "dir": string; set(property:"dir", value: string): void; @@ -5869,7 +5871,7 @@ declare module dijit { * Nodes may by assigned to other properties, usually through the * template system's data-dojo-attach-point syntax, but the domNode * property is the canonical "top level" node in widget UI. - * + * */ "domNode": HTMLElement; set(property:"domNode", value: HTMLElement): void; @@ -5878,7 +5880,7 @@ declare module dijit { /** * This widget or a widget it contains has focus, or is "active" because * it was recently clicked. - * + * */ "focused": boolean; set(property:"focused", value: boolean): void; @@ -5889,7 +5891,7 @@ declare module dijit { * system. If the developer passes an ID which is known not to be * unique, the specified ID is ignored and the system-generated ID is * used instead. - * + * */ "id": string; set(property:"id", value: string): void; @@ -5900,7 +5902,7 @@ declare module dijit { * as defined by the HTML LANG attribute. * Value must be among the list of locales specified during by the Dojo bootstrap, * formatted according to RFC 3066 (like en-us). - * + * */ "lang": string; set(property:"lang", value: string): void; @@ -5909,7 +5911,7 @@ declare module dijit { /** * List containing the prototype for this widget, and also any mixins, * ex: ["dijit._Widget", "dijit._Container"] - * + * */ "mixins": Object; set(property:"mixins", value: Object): void; @@ -5918,7 +5920,7 @@ declare module dijit { /** * The document this widget belongs to. If not specified to constructor, will default to * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * + * */ "ownerDocument": Object; set(property:"ownerDocument", value: Object): void; @@ -5926,7 +5928,7 @@ declare module dijit { watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** * pointer to original DOM node - * + * */ "srcNodeRef": HTMLElement; set(property:"srcNodeRef", value: HTMLElement): void; @@ -5934,7 +5936,7 @@ declare module dijit { watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} /** * HTML style attributes as cssText string or name/value hash - * + * */ "style": string; set(property:"style", value: string): void; @@ -5942,14 +5944,14 @@ declare module dijit { watch(property:"style", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * HTML title attribute. - * + * * For form widgets this specifies a tooltip to display when hovering over * the widget (just like the native HTML title attribute). - * + * * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's * interpreted as HTML. - * + * */ "title": string; set(property:"title", value: string): void; @@ -5958,7 +5960,7 @@ declare module dijit { /** * When this widget's title attribute is used to for a tab label, accordion pane title, etc., * this specifies the tooltip to appear when the mouse is hovered over that text. - * + * */ "tooltip": string; set(property:"tooltip", value: string): void; @@ -5966,7 +5968,7 @@ declare module dijit { watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Name of class being declared, ex: "acme.myWidget" - * + * */ "widgetClass": string; set(property:"widgetClass", value: string): void; @@ -5974,178 +5976,178 @@ declare module dijit { watch(property:"widgetClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: String, value?: Object): any; /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: Object, value?: Object): any; /** - * + * */ buildRendering(): void; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: Function): any; /** * Wrapper to setTimeout to avoid deferred functions executing * after the originating widget has been destroyed. * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. + * + * @param fcn Function reference. + * @param delay OptionalDelay, defaults to 0. */ defer(fcn: Function, delay?: number): Object; /** * Destroy this widget, but not its descendants. Descendants means widgets inside of * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * + * * This method will also destroy internal widgets such as those created from a template, * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * + * * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not * depend on the current ability to destroy a widget without destroying its descendants. Generally * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets + * + * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets */ destroy(preserveDom?: boolean): void; /** * Recursively destroy the children of this widget and their * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. + * + * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. */ destroyDescendants(preserveDom?: boolean): void; /** @@ -6153,36 +6155,36 @@ declare module dijit { * This is the generic "destructor" function that all widget users * should call to cleanly discard with a widget. Once a widget is * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. */ destroyRecursive(preserveDom?: boolean): void; /** * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. */ destroyRendering(preserveDom?: boolean): void; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Disconnects handle created by connect. - * - * @param handle + * + * @param handle */ disconnect(handle: any): void; /** * Used by widgets to signal that a synthetic event occurred, ex: - * + * * myWidget.emit("attrmodified-selectedChildWidget", {}). * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. * Also calls onType() method, if present, and returns value from that method. * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional + * + * @param type + * @param eventObj Optional + * @param callbackArgs Optional */ emit(type: String, eventObj?: Object, callbackArgs?: any[]): any; /** @@ -6190,15 +6192,15 @@ declare module dijit { * Get a named property from a widget. The property may * potentially be retrieved via a getter method. If no getter is defined, this * just retrieves the object's property. - * + * * For example, if the widget has properties foo and bar * and a method named _getFooAttr(), calling: * myWidget.get("foo") would be equivalent to calling * widget._getFooAttr() and myWidget.get("bar") * would be equivalent to the expression * widget.bar2 - * - * @param name The property to get. + * + * @param name The property to get. */ get(name: any): any; /** @@ -6206,54 +6208,54 @@ declare module dijit { * is this widget. Note that it does not return all descendants, but rather just direct children. * Analogous to Node.childNodes, * except containing widgets rather than DOMNodes. - * + * * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) * outside of this.containerNode. - * + * * Note that the array returned is a simple array. Application code should not assume * existence of methods like forEach(). - * + * */ getChildren(): any[]; /** * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. * This method should generally be avoided as it returns widgets declared in templates, which are * supposed to be internal/hidden, but it's left here for back-compat reasons. - * + * */ getDescendants(): any[]; /** * Returns the parent widget of this widget. - * + * */ getParent(): any; /** * Return true if this widget can currently be focused * and false if not - * + * */ isFocusable(): any; /** * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * + * */ isLeftToRight(): any; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: String, func: Function): any; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: Function, func: Function): any; /** * Track specified handles and remove/destroy them when this instance is destroyed, unless they were * already removed/destroyed manually. - * + * */ own(): any; /** @@ -6262,9 +6264,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: String): any; /** @@ -6273,9 +6275,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: String): any; /** @@ -6284,9 +6286,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: String): any; /** @@ -6295,9 +6297,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: number): any; /** @@ -6306,9 +6308,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: number): any; /** @@ -6317,13 +6319,13 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: number): any; /** - * + * */ postCreate(): void; /** @@ -6331,62 +6333,62 @@ declare module dijit { * but before the widget template is instantiated. Especially * useful to set properties that are referenced in the widget * template. - * + * */ postMixInProperties(): void; /** * Set a property on a widget * Sets named properties on a widget which may potentially be handled by a * setter in the widget. - * + * * For example, if the widget has properties foo and bar * and a method named _setFooAttr(), calling * myWidget.set("foo", "Howdy!") would be equivalent to calling * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) * would be equivalent to the statement widget.bar = 3; - * + * * set() may also be called with a hash of name/value pairs, ex: - * + * * myWidget.set({ * foo: "Howdy", * bar: 3 * }); * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. + * + * @param name The property to set. + * @param value The value to set in the property. */ set(name: any, value: any): any; /** * Deprecated. Use set() instead. - * - * @param attr - * @param value + * + * @param attr + * @param value */ setAttribute(attr: String, value: any): void; /** * Processing after the DOM fragment is added to the document * Called after a widget and its children have been created and added to the page, * and all related widgets have finished their create() cycle, up through postCreate(). - * + * * Note that startup() may be called while the widget is still hidden, for example if the widget is * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. * For widgets that need to do layout, it's best to put that layout code inside resize(), and then * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * + * */ startup(): void; /** * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * + * * Subscribes to the specified topic and calls the specified method * of this object and registers for unsubscribe() on widget destroy. - * + * * Provide widget-specific analog to dojo.subscribe, except with the * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback + * + * @param t The topic + * @param method The callback */ subscribe(t: String, method: Function): any; /** @@ -6394,29 +6396,29 @@ declare module dijit { * When a widget is cast to a string, this method will be used to generate the * output. Currently, it does not implement any sort of reversible * serialization. - * + * */ toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. - * + * */ uninitialize(): boolean; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Unsubscribes handle created by this.subscribe. * Also removes handle from this widget's list of subscriptions - * - * @param handle + * + * @param handle */ unsubscribe(handle: Object): void; /** * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. + * + * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched + * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. */ watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; /** @@ -6424,114 +6426,114 @@ declare module dijit { * focus moved to something outside of it, or the user * clicked somewhere outside of it, or the widget was * hidden. - * + * */ onBlur(): void; /** * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onClick(event: any): void; /** * Called when this widget is being displayed as a popup (ex: a Calendar popped * up from a DateTextBox), and it is hidden. * This is called from the dijit.popup code, and should not be called directly. - * + * * Also used as a parameter for children of dijit/layout/StackContainer or subclasses. * Callback if a user tries to close the child. Child will be closed if this function returns true. - * + * */ onClose(): boolean; /** * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onDblClick(event: any): void; /** * Called when the widget becomes "active" because * it or a widget inside of it either has focus, or has recently * been clicked. - * + * */ onFocus(): void; /** * Called when another widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onHide(): void; /** * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event + * + * @param event key Event */ onKeyDown(event: any): void; /** * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event + * + * @param event key Event */ onKeyPress(event: any): void; /** * Connect to this function to receive notifications of keys being released. - * - * @param event key Event + * + * @param event key Event */ onKeyUp(event: any): void; /** * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseDown(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseEnter(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseLeave(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseMove(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOut(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOver(event: any): void; /** * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseUp(event: any): void; /** * Called when this widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onShow(): void; } @@ -6540,26 +6542,26 @@ declare module dijit { * * A simple GUI for choosing a date in the context of a monthly calendar. * See CalendarLite for general description. Calendar extends CalendarLite, adding: - * + * * month drop down list * keyboard navigation * CSS classes for hover/mousepress on date, month, and year nodes * support of deprecated methods (will be removed in 2.0) - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified, replace srcNodeRef with my generated DOM tree + * + * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. + * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified, replace srcNodeRef with my generated DOM tree */ class Calendar extends dijit.CalendarLite implements dijit._Widget, dijit._CssStateMixin { constructor(params?: Object, srcNodeRef?: HTMLElement); /** * Custom press, release, and click synthetic events * which trigger on a left mouse click, touch, or space/enter keyup. - * + * */ "a11yclick": Object; /** * True if mouse was pressed while over this widget, and hasn't been released yet - * + * */ "active": boolean; set(property:"active", value: boolean): void; @@ -6568,7 +6570,7 @@ declare module dijit { /** * Object to which attach points and events will be scoped. Defaults * to 'this'. - * + * */ "attachScope": Object; set(property:"attachScope", value: Object): void; @@ -6577,58 +6579,58 @@ declare module dijit { /** * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute * for each XXX attribute to be mapped to the DOM. - * + * * attributeMap sets up a "binding" between attributes (aka properties) * of the widget and the widget's DOM. * Changes to widget attributes listed in attributeMap will be * reflected into the DOM. - * + * * For example, calling set('title', 'hello') * on a TitlePane will automatically cause the TitlePane's DOM to update * with the new title. - * + * * attributeMap is a hash where the key is an attribute of the widget, * and the value reflects a binding to a: - * + * * DOM node attribute * focus: {node: "focusNode", type: "attribute"} * Maps this.focus to this.focusNode.focus - * + * * DOM node innerHTML * title: { node: "titleNode", type: "innerHTML" } * Maps this.title to this.titleNode.innerHTML - * + * * DOM node innerText * title: { node: "titleNode", type: "innerText" } * Maps this.title to this.titleNode.innerText - * + * * DOM node CSS class * myClass: { node: "domNode", type: "class" } * Maps this.myClass to this.domNode.className - * + * * If the value is an array, then each element in the array matches one of the * formats of the above list. - * + * * There are also some shorthands for backwards compatibility: - * + * * string --> { node: string, type: "attribute" }, for example: * "focusNode" ---> { node: "focusNode", type: "attribute" } * "" --> { node: "domNode", type: "attribute" } - * + * */ "attributeMap": Object; set(property:"attributeMap", value: Object): void; get(property:"attributeMap"): Object; watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** - * + * */ "baseClass": string; set(property:"baseClass", value: string): void; get(property:"baseClass"): string; watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "class": string; set(property:"class", value: string): void; @@ -6638,31 +6640,31 @@ declare module dijit { * Designates where children of the source DOM node will be placed. * "Children" in this case refers to both DOM nodes and widgets. * For example, for myWidget: - * + * *
* here's a plain DOM node * and a widget * and another plain DOM node *
* containerNode would point to: - * + * * here's a plain DOM node * and a widget * and another plain DOM node * In templated widgets, "containerNode" is set via a * data-dojo-attach-point assignment. - * + * * containerNode must be defined for any widget that accepts innerHTML * (like ContentPane or BorderContainer or even Button), and conversely * is null for widgets that don't, like TextBox. - * + * */ "containerNode": HTMLElement; set(property:"containerNode", value: HTMLElement): void; get(property:"containerNode"): HTMLElement; watch(property:"containerNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} /** - * + * */ "cssStateNodes": Object; set(property:"cssStateNodes", value: Object): void; @@ -6672,7 +6674,7 @@ declare module dijit { * Date object containing the currently focused date, or the date which would be focused * if the calendar itself was focused. Also indicates which year and month to display, * i.e. the current "page" the calendar is on. - * + * */ "currentFocus": Date; set(property:"currentFocus", value: Date): void; @@ -6681,14 +6683,14 @@ declare module dijit { /** * JavaScript namespace to find calendar routines. If unspecified, uses Gregorian calendar routines * at dojo/date and dojo/date/locale. - * + * */ "datePackage": string; set(property:"datePackage", value: string): void; get(property:"datePackage"): string; watch(property:"datePackage", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "dateTemplateString": string; set(property:"dateTemplateString", value: string): void; @@ -6696,7 +6698,7 @@ declare module dijit { watch(property:"dateTemplateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * How to represent the days of the week in the calendar header. See locale - * + * */ "dayWidth": string; set(property:"dayWidth", value: string): void; @@ -6706,7 +6708,7 @@ declare module dijit { * Bi-directional support, as defined by the HTML DIR * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's * default direction. - * + * */ "dir": string; set(property:"dir", value: string): void; @@ -6717,14 +6719,14 @@ declare module dijit { * Nodes may by assigned to other properties, usually through the * template system's data-dojo-attach-point syntax, but the domNode * property is the canonical "top level" node in widget UI. - * + * */ "domNode": HTMLElement; set(property:"domNode", value: HTMLElement): void; get(property:"domNode"): HTMLElement; watch(property:"domNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} /** - * + * */ "dowTemplateString": string; set(property:"dowTemplateString", value: string): void; @@ -6732,7 +6734,7 @@ declare module dijit { watch(property:"dowTemplateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Defines a type of widget. - * + * */ "dndType": string; set(property:"dndType", value: string): void; @@ -6741,7 +6743,7 @@ declare module dijit { /** * This widget or a widget it contains has focus, or is "active" because * it was recently clicked. - * + * */ "focused": boolean; set(property:"focused", value: boolean): void; @@ -6749,7 +6751,7 @@ declare module dijit { watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * True if cursor is over this widget - * + * */ "hovering": boolean; set(property:"hovering", value: boolean): void; @@ -6760,7 +6762,7 @@ declare module dijit { * system. If the developer passes an ID which is known not to be * unique, the specified ID is ignored and the system-generated ID is * used instead. - * + * */ "id": string; set(property:"id", value: string): void; @@ -6771,14 +6773,14 @@ declare module dijit { * as defined by the HTML LANG attribute. * Value must be among the list of locales specified during by the Dojo bootstrap, * formatted according to RFC 3066 (like en-us). - * + * */ "lang": string; set(property:"lang", value: string): void; get(property:"lang"): string; watch(property:"lang", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "observer": string; set(property:"observer", value: string): void; @@ -6787,14 +6789,14 @@ declare module dijit { /** * The document this widget belongs to. If not specified to constructor, will default to * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * + * */ "ownerDocument": Object; set(property:"ownerDocument", value: Object): void; get(property:"ownerDocument"): Object; watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** - * + * */ "searchContainerNode": boolean; set(property:"searchContainerNode", value: boolean): void; @@ -6805,7 +6807,7 @@ declare module dijit { * the ContentPane to slide in from a set direction. Defaults * to "random", or specify one of "top", "left", "right", "bottom" * to slideFrom top, left, right, or bottom. - * + * */ "slideFrom": string; set(property:"slideFrom", value: string): void; @@ -6813,7 +6815,7 @@ declare module dijit { watch(property:"slideFrom", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * pointer to original DOM node - * + * */ "srcNodeRef": HTMLElement; set(property:"srcNodeRef", value: HTMLElement): void; @@ -6821,7 +6823,7 @@ declare module dijit { watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} /** * HTML style attributes as cssText string or name/value hash - * + * */ "style": string; set(property:"style", value: string): void; @@ -6829,7 +6831,7 @@ declare module dijit { watch(property:"style", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Order fields are traversed when user hits the tab key - * + * */ "tabIndex": string; set(property:"tabIndex", value: string): void; @@ -6838,14 +6840,14 @@ declare module dijit { /** * Path to template (HTML file) for this widget relative to dojo.baseUrl. * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * + * */ "templatePath": string; set(property:"templatePath", value: string): void; get(property:"templatePath"): string; watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "templateString": string; set(property:"templateString", value: string): void; @@ -6853,14 +6855,14 @@ declare module dijit { watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * HTML title attribute. - * + * * For form widgets this specifies a tooltip to display when hovering over * the widget (just like the native HTML title attribute). - * + * * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's * interpreted as HTML. - * + * */ "title": string; set(property:"title", value: string): void; @@ -6869,7 +6871,7 @@ declare module dijit { /** * When this widget's title attribute is used to for a tab label, accordion pane title, etc., * this specifies the tooltip to appear when the mouse is hovered over that text. - * + * */ "tooltip": string; set(property:"tooltip", value: string): void; @@ -6877,14 +6879,14 @@ declare module dijit { watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * The currently selected Date, initially set to invalid date to indicate no selection. - * + * */ "value": Date; set(property:"value", value: Date): void; get(property:"value"): Date; watch(property:"value", callback:{(property?:string, oldValue?:Date, newValue?: Date):void}) :{unwatch():void} /** - * + * */ "weekTemplateString": string; set(property:"weekTemplateString", value: string): void; @@ -6892,178 +6894,178 @@ declare module dijit { watch(property:"weekTemplateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: String, value?: Object): any; /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: Object, value?: Object): any; /** - * + * */ buildRendering(): void; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: Function): any; /** * Wrapper to setTimeout to avoid deferred functions executing * after the originating widget has been destroyed. * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. + * + * @param fcn Function reference. + * @param delay OptionalDelay, defaults to 0. */ defer(fcn: Function, delay?: number): Object; /** * Destroy this widget, but not its descendants. Descendants means widgets inside of * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * + * * This method will also destroy internal widgets such as those created from a template, * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * + * * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not * depend on the current ability to destroy a widget without destroying its descendants. Generally * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets + * + * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets */ destroy(preserveDom?: boolean): void; /** * Recursively destroy the children of this widget and their * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. + * + * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. */ destroyDescendants(preserveDom?: boolean): void; /** @@ -7071,41 +7073,41 @@ declare module dijit { * This is the generic "destructor" function that all widget users * should call to cleanly discard with a widget. Once a widget is * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. */ destroyRecursive(preserveDom?: boolean): void; /** * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. */ destroyRendering(preserveDom?: boolean): void; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Disconnects handle created by connect. - * - * @param handle + * + * @param handle */ disconnect(handle: any): void; /** * Used by widgets to signal that a synthetic event occurred, ex: - * + * * myWidget.emit("attrmodified-selectedChildWidget", {}). * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. * Also calls onType() method, if present, and returns value from that method. * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional + * + * @param type + * @param eventObj Optional + * @param callbackArgs Optional */ emit(type: String, eventObj?: Object, callbackArgs?: any[]): any; /** * Focus the calendar by focusing one of the calendar cells - * + * */ focus(): void; /** @@ -7113,15 +7115,15 @@ declare module dijit { * Get a named property from a widget. The property may * potentially be retrieved via a getter method. If no getter is defined, this * just retrieves the object's property. - * + * * For example, if the widget has properties foo and bar * and a method named _getFooAttr(), calling: * myWidget.get("foo") would be equivalent to calling * widget._getFooAttr() and myWidget.get("bar") * would be equivalent to the expression * widget.bar2 - * - * @param name The property to get. + * + * @param name The property to get. */ get(name: any): any; /** @@ -7129,38 +7131,38 @@ declare module dijit { * is this widget. Note that it does not return all descendants, but rather just direct children. * Analogous to Node.childNodes, * except containing widgets rather than DOMNodes. - * + * * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) * outside of this.containerNode. - * + * * Note that the array returned is a simple array. Application code should not assume * existence of methods like forEach(). - * + * */ getChildren(): any[]; /** * May be overridden to return CSS classes to associate with the date entry for the given dateObject, * for example to indicate a holiday in specified locale. - * - * @param dateObject - * @param locale Optional + * + * @param dateObject + * @param locale Optional */ getClassForDate(dateObject: Date, locale: String): String; /** * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. * This method should generally be avoided as it returns widgets declared in templates, which are * supposed to be internal/hidden, but it's left here for back-compat reasons. - * + * */ getDescendants(): any[]; /** * Returns the parent widget of this widget. - * + * */ getParent(): any; /** * Sets calendar's value to today's date - * + * */ goToToday(): void; /** @@ -7168,26 +7170,26 @@ declare module dijit { * Called from _onKeyDown() to handle keydown on a stand alone Calendar, * and also from dijit/form/_DateTimeTextBox to pass a keydown event * from the dijit/form/DateTextBox to be handled in this widget - * - * @param evt + * + * @param evt */ handleKey(evt: Event): any; /** * May be overridden to disable certain dates in the calendar e.g. isDisabledDate=dojo.date.locale.isWeekend - * - * @param dateObject - * @param locale Optional + * + * @param dateObject + * @param locale Optional */ isDisabledDate(dateObject: Date, locale?: String): boolean; /** * Return true if this widget can currently be focused * and false if not - * + * */ isFocusable(): any; /** * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * + * */ isLeftToRight(): any; /** @@ -7195,9 +7197,9 @@ declare module dijit { * Call specified function when event type occurs, ex: myWidget.on("click", function(){ ... }). * Note that the function is not run in any particular scope, so if (for example) you want it to run in the * widget's scope you must do myWidget.on("click", lang.hitch(myWidget, func)). - * - * @param type Name of event (ex: "click") or extension event like touch.press. - * @param func + * + * @param type Name of event (ex: "click") or extension event like touch.press. + * @param func */ on(type: String, func: Function): any; /** @@ -7205,15 +7207,15 @@ declare module dijit { * Call specified function when event type occurs, ex: myWidget.on("click", function(){ ... }). * Note that the function is not run in any particular scope, so if (for example) you want it to run in the * widget's scope you must do myWidget.on("click", lang.hitch(myWidget, func)). - * - * @param type Name of event (ex: "click") or extension event like touch.press. - * @param func + * + * @param type Name of event (ex: "click") or extension event like touch.press. + * @param func */ on(type: Function, func: Function): any; /** * Track specified handles and remove/destroy them when this instance is destroyed, unless they were * already removed/destroyed manually. - * + * */ own(): any; /** @@ -7222,9 +7224,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: String): any; /** @@ -7233,9 +7235,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: String): any; /** @@ -7244,9 +7246,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: String): any; /** @@ -7255,9 +7257,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: number): any; /** @@ -7266,9 +7268,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: number): any; /** @@ -7277,13 +7279,13 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: number): any; /** - * + * */ postCreate(): void; /** @@ -7291,68 +7293,68 @@ declare module dijit { * but before the widget template is instantiated. Especially * useful to set properties that are referenced in the widget * template. - * + * */ postMixInProperties(): void; /** * Set a property on a widget * Sets named properties on a widget which may potentially be handled by a * setter in the widget. - * + * * For example, if the widget has properties foo and bar * and a method named _setFooAttr(), calling * myWidget.set("foo", "Howdy!") would be equivalent to calling * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) * would be equivalent to the statement widget.bar = 3; - * + * * set() may also be called with a hash of name/value pairs, ex: - * + * * myWidget.set({ * foo: "Howdy", * bar: 3 * }); * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. + * + * @param name The property to set. + * @param value The value to set in the property. */ set(name: any, value: any): any; /** * Deprecated. Use set() instead. - * - * @param attr - * @param value + * + * @param attr + * @param value */ setAttribute(attr: String, value: any): void; /** * Deprecated. Use set('value', ...) instead. - * - * @param value + * + * @param value */ setValue(value: Date): void; /** * Processing after the DOM fragment is added to the document * Called after a widget and its children have been created and added to the page, * and all related widgets have finished their create() cycle, up through postCreate(). - * + * * Note that startup() may be called while the widget is still hidden, for example if the widget is * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. * For widgets that need to do layout, it's best to put that layout code inside resize(), and then * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * + * */ startup(): void; /** * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * + * * Subscribes to the specified topic and calls the specified method * of this object and registers for unsubscribe() on widget destroy. - * + * * Provide widget-specific analog to dojo.subscribe, except with the * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback + * + * @param t The topic + * @param method The callback */ subscribe(t: String, method: Function): any; /** @@ -7360,29 +7362,29 @@ declare module dijit { * When a widget is cast to a string, this method will be used to generate the * output. Currently, it does not implement any sort of reversible * serialization. - * + * */ toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. - * + * */ uninitialize(): boolean; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Unsubscribes handle created by this.subscribe. * Also removes handle from this widget's list of subscriptions - * - * @param handle + * + * @param handle */ unsubscribe(handle: Object): void; /** * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. + * + * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched + * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. */ watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; /** @@ -7395,127 +7397,127 @@ declare module dijit { * focus moved to something outside of it, or the user * clicked somewhere outside of it, or the widget was * hidden. - * + * */ onBlur(): void; /** - * - * @param value + * + * @param value */ onChange(value: any): void; /** * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onClick(event: any): void; /** * Called when this widget is being displayed as a popup (ex: a Calendar popped * up from a DateTextBox), and it is hidden. * This is called from the dijit.popup code, and should not be called directly. - * + * * Also used as a parameter for children of dijit/layout/StackContainer or subclasses. * Callback if a user tries to close the child. Child will be closed if this function returns true. - * + * */ onClose(): boolean; /** * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onDblClick(event: any): void; /** * Called when the widget becomes "active" because * it or a widget inside of it either has focus, or has recently * been clicked. - * + * */ onFocus(): void; /** * Called when another widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onHide(): void; /** * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event + * + * @param event key Event */ onKeyDown(event: any): void; /** * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event + * + * @param event key Event */ onKeyPress(event: any): void; /** * Connect to this function to receive notifications of keys being released. - * - * @param event key Event + * + * @param event key Event */ onKeyUp(event: any): void; /** * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseDown(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseEnter(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseLeave(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseMove(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOut(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOver(event: any): void; /** * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseUp(event: any): void; /** * Called when this widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onShow(): void; /** * Deprecated. Notification that a date cell was selected. It may be the same as the previous value. * Formerly used by dijit/form/_DateTimeTextBox (and thus dijit/form/DateTextBox) * to get notification when the user has clicked a date. Now onExecute() (above) is used. - * - * @param date + * + * @param date */ onValueSelected(date: Date): void; } @@ -7524,16 +7526,16 @@ declare module dijit { * Permalink: http://dojotoolkit.org/api/1.9/dijit/Calendar._MonthDropDown.html * * The list-of-months drop down from the MonthDropDownButton - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree + * + * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. + * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree */ class _MonthDropDown extends dijit._Widget implements dijit._TemplatedMixin { constructor(params?: Object, srcNodeRef?: HTMLElement); /** * Object to which attach points and events will be scoped. Defaults * to 'this'. - * + * */ "attachScope": Object; set(property:"attachScope", value: Object): void; @@ -7542,44 +7544,44 @@ declare module dijit { /** * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute * for each XXX attribute to be mapped to the DOM. - * + * * attributeMap sets up a "binding" between attributes (aka properties) * of the widget and the widget's DOM. * Changes to widget attributes listed in attributeMap will be * reflected into the DOM. - * + * * For example, calling set('title', 'hello') * on a TitlePane will automatically cause the TitlePane's DOM to update * with the new title. - * + * * attributeMap is a hash where the key is an attribute of the widget, * and the value reflects a binding to a: - * + * * DOM node attribute * focus: {node: "focusNode", type: "attribute"} * Maps this.focus to this.focusNode.focus - * + * * DOM node innerHTML * title: { node: "titleNode", type: "innerHTML" } * Maps this.title to this.titleNode.innerHTML - * + * * DOM node innerText * title: { node: "titleNode", type: "innerText" } * Maps this.title to this.titleNode.innerText - * + * * DOM node CSS class * myClass: { node: "domNode", type: "class" } * Maps this.myClass to this.domNode.className - * + * * If the value is an array, then each element in the array matches one of the * formats of the above list. - * + * * There are also some shorthands for backwards compatibility: - * + * * string --> { node: string, type: "attribute" }, for example: * "focusNode" ---> { node: "focusNode", type: "attribute" } * "" --> { node: "domNode", type: "attribute" } - * + * */ "attributeMap": Object; set(property:"attributeMap", value: Object): void; @@ -7588,14 +7590,14 @@ declare module dijit { /** * Root CSS class of the widget (ex: dijitTextBox), used to construct CSS classes to indicate * widget state. - * + * */ "baseClass": string; set(property:"baseClass", value: string): void; get(property:"baseClass"): string; watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "class": string; set(property:"class", value: string): void; @@ -7605,24 +7607,24 @@ declare module dijit { * Designates where children of the source DOM node will be placed. * "Children" in this case refers to both DOM nodes and widgets. * For example, for myWidget: - * + * *
* here's a plain DOM node * and a widget * and another plain DOM node *
* containerNode would point to: - * + * * here's a plain DOM node * and a widget * and another plain DOM node * In templated widgets, "containerNode" is set via a * data-dojo-attach-point assignment. - * + * * containerNode must be defined for any widget that accepts innerHTML * (like ContentPane or BorderContainer or even Button), and conversely * is null for widgets that don't, like TextBox. - * + * */ "containerNode": HTMLElement; set(property:"containerNode", value: HTMLElement): void; @@ -7632,7 +7634,7 @@ declare module dijit { * Bi-directional support, as defined by the HTML DIR * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's * default direction. - * + * */ "dir": string; set(property:"dir", value: string): void; @@ -7643,7 +7645,7 @@ declare module dijit { * Nodes may by assigned to other properties, usually through the * template system's data-dojo-attach-point syntax, but the domNode * property is the canonical "top level" node in widget UI. - * + * */ "domNode": HTMLElement; set(property:"domNode", value: HTMLElement): void; @@ -7652,7 +7654,7 @@ declare module dijit { /** * This widget or a widget it contains has focus, or is "active" because * it was recently clicked. - * + * */ "focused": boolean; set(property:"focused", value: boolean): void; @@ -7663,7 +7665,7 @@ declare module dijit { * system. If the developer passes an ID which is known not to be * unique, the specified ID is ignored and the system-generated ID is * used instead. - * + * */ "id": string; set(property:"id", value: string): void; @@ -7674,7 +7676,7 @@ declare module dijit { * as defined by the HTML LANG attribute. * Value must be among the list of locales specified during by the Dojo bootstrap, * formatted according to RFC 3066 (like en-us). - * + * */ "lang": string; set(property:"lang", value: string): void; @@ -7683,7 +7685,7 @@ declare module dijit { /** * List of names of months, possibly w/some undefined entries for Hebrew leap months * (ex: ["January", "February", undefined, "April", ...]) - * + * */ "months": Object; set(property:"months", value: Object): void; @@ -7692,14 +7694,14 @@ declare module dijit { /** * The document this widget belongs to. If not specified to constructor, will default to * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * + * */ "ownerDocument": Object; set(property:"ownerDocument", value: Object): void; get(property:"ownerDocument"): Object; watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** - * + * */ "searchContainerNode": boolean; set(property:"searchContainerNode", value: boolean): void; @@ -7707,7 +7709,7 @@ declare module dijit { watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * pointer to original DOM node - * + * */ "srcNodeRef": HTMLElement; set(property:"srcNodeRef", value: HTMLElement): void; @@ -7715,7 +7717,7 @@ declare module dijit { watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} /** * HTML style attributes as cssText string or name/value hash - * + * */ "style": string; set(property:"style", value: string): void; @@ -7724,14 +7726,14 @@ declare module dijit { /** * Path to template (HTML file) for this widget relative to dojo.baseUrl. * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * + * */ "templatePath": string; set(property:"templatePath", value: string): void; get(property:"templatePath"): string; watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "templateString": string; set(property:"templateString", value: string): void; @@ -7739,14 +7741,14 @@ declare module dijit { watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * HTML title attribute. - * + * * For form widgets this specifies a tooltip to display when hovering over * the widget (just like the native HTML title attribute). - * + * * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's * interpreted as HTML. - * + * */ "title": string; set(property:"title", value: string): void; @@ -7755,7 +7757,7 @@ declare module dijit { /** * When this widget's title attribute is used to for a tab label, accordion pane title, etc., * this specifies the tooltip to appear when the mouse is hovered over that text. - * + * */ "tooltip": string; set(property:"tooltip", value: string): void; @@ -7763,180 +7765,180 @@ declare module dijit { watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: String, value?: Object): any; /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: Object, value?: Object): any; /** * Construct the UI for this widget, setting this.domNode. * Most widgets will mixin dijit._TemplatedMixin, which implements this method. - * + * */ buildRendering(): void; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: Function): any; /** * Wrapper to setTimeout to avoid deferred functions executing * after the originating widget has been destroyed. * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. + * + * @param fcn Function reference. + * @param delay OptionalDelay, defaults to 0. */ defer(fcn: Function, delay?: number): Object; /** * Destroy this widget, but not its descendants. Descendants means widgets inside of * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * + * * This method will also destroy internal widgets such as those created from a template, * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * + * * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not * depend on the current ability to destroy a widget without destroying its descendants. Generally * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets + * + * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets */ destroy(preserveDom?: boolean): void; /** * Recursively destroy the children of this widget and their * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. + * + * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. */ destroyDescendants(preserveDom?: boolean): void; /** @@ -7944,36 +7946,36 @@ declare module dijit { * This is the generic "destructor" function that all widget users * should call to cleanly discard with a widget. Once a widget is * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. */ destroyRecursive(preserveDom?: boolean): void; /** * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. */ destroyRendering(preserveDom?: boolean): void; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Disconnects handle created by connect. - * - * @param handle + * + * @param handle */ disconnect(handle: any): void; /** * Used by widgets to signal that a synthetic event occurred, ex: - * + * * myWidget.emit("attrmodified-selectedChildWidget", {}). * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. * Also calls onType() method, if present, and returns value from that method. * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional + * + * @param type + * @param eventObj Optional + * @param callbackArgs Optional */ emit(type: String, eventObj?: Object, callbackArgs?: any[]): any; /** @@ -7981,15 +7983,15 @@ declare module dijit { * Get a named property from a widget. The property may * potentially be retrieved via a getter method. If no getter is defined, this * just retrieves the object's property. - * + * * For example, if the widget has properties foo and bar * and a method named _getFooAttr(), calling: * myWidget.get("foo") would be equivalent to calling * widget._getFooAttr() and myWidget.get("bar") * would be equivalent to the expression * widget.bar2 - * - * @param name The property to get. + * + * @param name The property to get. */ get(name: any): any; /** @@ -7997,54 +7999,54 @@ declare module dijit { * is this widget. Note that it does not return all descendants, but rather just direct children. * Analogous to Node.childNodes, * except containing widgets rather than DOMNodes. - * + * * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) * outside of this.containerNode. - * + * * Note that the array returned is a simple array. Application code should not assume * existence of methods like forEach(). - * + * */ getChildren(): any[]; /** * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. * This method should generally be avoided as it returns widgets declared in templates, which are * supposed to be internal/hidden, but it's left here for back-compat reasons. - * + * */ getDescendants(): any[]; /** * Returns the parent widget of this widget. - * + * */ getParent(): any; /** * Return true if this widget can currently be focused * and false if not - * + * */ isFocusable(): any; /** * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * + * */ isLeftToRight(): any; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: String, func: Function): any; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: Function, func: Function): any; /** * Track specified handles and remove/destroy them when this instance is destroyed, unless they were * already removed/destroyed manually. - * + * */ own(): any; /** @@ -8053,9 +8055,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: String): any; /** @@ -8064,9 +8066,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: String): any; /** @@ -8075,9 +8077,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: String): any; /** @@ -8086,9 +8088,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: number): any; /** @@ -8097,9 +8099,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: number): any; /** @@ -8108,13 +8110,13 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: number): any; /** - * + * */ postCreate(): void; /** @@ -8122,62 +8124,62 @@ declare module dijit { * but before the widget template is instantiated. Especially * useful to set properties that are referenced in the widget * template. - * + * */ postMixInProperties(): void; /** * Set a property on a widget * Sets named properties on a widget which may potentially be handled by a * setter in the widget. - * + * * For example, if the widget has properties foo and bar * and a method named _setFooAttr(), calling * myWidget.set("foo", "Howdy!") would be equivalent to calling * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) * would be equivalent to the statement widget.bar = 3; - * + * * set() may also be called with a hash of name/value pairs, ex: - * + * * myWidget.set({ * foo: "Howdy", * bar: 3 * }); * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. + * + * @param name The property to set. + * @param value The value to set in the property. */ set(name: any, value: any): any; /** * Deprecated. Use set() instead. - * - * @param attr - * @param value + * + * @param attr + * @param value */ setAttribute(attr: String, value: any): void; /** * Processing after the DOM fragment is added to the document * Called after a widget and its children have been created and added to the page, * and all related widgets have finished their create() cycle, up through postCreate(). - * + * * Note that startup() may be called while the widget is still hidden, for example if the widget is * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. * For widgets that need to do layout, it's best to put that layout code inside resize(), and then * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * + * */ startup(): void; /** * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * + * * Subscribes to the specified topic and calls the specified method * of this object and registers for unsubscribe() on widget destroy. - * + * * Provide widget-specific analog to dojo.subscribe, except with the * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback + * + * @param t The topic + * @param method The callback */ subscribe(t: String, method: Function): any; /** @@ -8185,29 +8187,29 @@ declare module dijit { * When a widget is cast to a string, this method will be used to generate the * output. Currently, it does not implement any sort of reversible * serialization. - * + * */ toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. - * + * */ uninitialize(): boolean; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Unsubscribes handle created by this.subscribe. * Also removes handle from this widget's list of subscriptions - * - * @param handle + * + * @param handle */ unsubscribe(handle: Object): void; /** * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. + * + * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched + * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. */ watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; /** @@ -8220,120 +8222,120 @@ declare module dijit { * focus moved to something outside of it, or the user * clicked somewhere outside of it, or the widget was * hidden. - * + * */ onBlur(): void; /** * Callback when month is selected from drop down - * - * @param month + * + * @param month */ onChange(month: number): void; /** * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onClick(event: any): void; /** * Called when this widget is being displayed as a popup (ex: a Calendar popped * up from a DateTextBox), and it is hidden. * This is called from the dijit.popup code, and should not be called directly. - * + * * Also used as a parameter for children of dijit/layout/StackContainer or subclasses. * Callback if a user tries to close the child. Child will be closed if this function returns true. - * + * */ onClose(): boolean; /** * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onDblClick(event: any): void; /** * Called when the widget becomes "active" because * it or a widget inside of it either has focus, or has recently * been clicked. - * + * */ onFocus(): void; /** * Called when another widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onHide(): void; /** * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event + * + * @param event key Event */ onKeyDown(event: any): void; /** * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event + * + * @param event key Event */ onKeyPress(event: any): void; /** * Connect to this function to receive notifications of keys being released. - * - * @param event key Event + * + * @param event key Event */ onKeyUp(event: any): void; /** * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseDown(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseEnter(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseLeave(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseMove(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOut(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOver(event: any): void; /** * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseUp(event: any): void; /** * Called when this widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onShow(): void; } @@ -8342,15 +8344,15 @@ declare module dijit { * * DropDownButton for the current month. Displays name of current month * and a list of month names in the drop down - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree + * + * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. + * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree */ class _MonthDropDownButton extends dijit.form.DropDownButton { constructor(params?: Object, srcNodeRef?: HTMLElement); /** * True if mouse was pressed while over this widget, and hasn't been released yet - * + * */ "active": boolean; set(property:"active", value: boolean): void; @@ -8358,14 +8360,14 @@ declare module dijit { watch(property:"active", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * Corresponds to the native HTML element's attribute. - * + * */ "alt": string; set(property:"alt", value: string): void; get(property:"alt"): string; watch(property:"alt", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "aria-label": string; set(property:"aria-label", value: string): void; @@ -8374,7 +8376,7 @@ declare module dijit { /** * Object to which attach points and events will be scoped. Defaults * to 'this'. - * + * */ "attachScope": Object; set(property:"attachScope", value: Object): void; @@ -8383,44 +8385,44 @@ declare module dijit { /** * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute * for each XXX attribute to be mapped to the DOM. - * + * * attributeMap sets up a "binding" between attributes (aka properties) * of the widget and the widget's DOM. * Changes to widget attributes listed in attributeMap will be * reflected into the DOM. - * + * * For example, calling set('title', 'hello') * on a TitlePane will automatically cause the TitlePane's DOM to update * with the new title. - * + * * attributeMap is a hash where the key is an attribute of the widget, * and the value reflects a binding to a: - * + * * DOM node attribute * focus: {node: "focusNode", type: "attribute"} * Maps this.focus to this.focusNode.focus - * + * * DOM node innerHTML * title: { node: "titleNode", type: "innerHTML" } * Maps this.title to this.titleNode.innerHTML - * + * * DOM node innerText * title: { node: "titleNode", type: "innerText" } * Maps this.title to this.titleNode.innerText - * + * * DOM node CSS class * myClass: { node: "domNode", type: "class" } * Maps this.myClass to this.domNode.className - * + * * If the value is an array, then each element in the array matches one of the * formats of the above list. - * + * * There are also some shorthands for backwards compatibility: - * + * * string --> { node: string, type: "attribute" }, for example: * "focusNode" ---> { node: "focusNode", type: "attribute" } * "" --> { node: "domNode", type: "attribute" } - * + * */ "attributeMap": Object; set(property:"attributeMap", value: Object): void; @@ -8430,21 +8432,21 @@ declare module dijit { * Set to true to make the drop down at least as wide as this * widget. Set to false if the drop down should just be its * default width. - * + * */ "autoWidth": boolean; set(property:"autoWidth", value: boolean): void; get(property:"autoWidth"): boolean; watch(property:"autoWidth", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** - * + * */ "baseClass": string; set(property:"baseClass", value: string): void; get(property:"baseClass"): string; watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "class": string; set(property:"class", value: string): void; @@ -8454,24 +8456,24 @@ declare module dijit { * Designates where children of the source DOM node will be placed. * "Children" in this case refers to both DOM nodes and widgets. * For example, for myWidget: - * + * *
* here's a plain DOM node * and a widget * and another plain DOM node *
* containerNode would point to: - * + * * here's a plain DOM node * and a widget * and another plain DOM node * In templated widgets, "containerNode" is set via a * data-dojo-attach-point assignment. - * + * * containerNode must be defined for any widget that accepts innerHTML * (like ContentPane or BorderContainer or even Button), and conversely * is null for widgets that don't, like TextBox. - * + * */ "containerNode": HTMLElement; set(property:"containerNode", value: HTMLElement): void; @@ -8480,18 +8482,18 @@ declare module dijit { /** * Subclasses may define a cssStateNodes property that lists sub-nodes within the widget that * need CSS classes applied on mouse hover/press and focus. - * + * * Each entry in this optional hash is a an attach-point name (like "upArrowButton") mapped to a CSS class name * (like "dijitUpArrowButton"). Example: - * + * * { * "upArrowButton": "dijitUpArrowButton", * "downArrowButton": "dijitDownArrowButton" * } * The above will set the CSS class dijitUpArrowButton to the this.upArrowButton DOMNode when it - * + * * is hovered, etc. - * + * */ "cssStateNodes": Object; set(property:"cssStateNodes", value: Object): void; @@ -8501,7 +8503,7 @@ declare module dijit { * Bi-directional support, as defined by the HTML DIR * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's * default direction. - * + * */ "dir": string; set(property:"dir", value: string): void; @@ -8510,7 +8512,7 @@ declare module dijit { /** * Should this widget respond to user input? * In markup, this is specified as "disabled='disabled'", or just "disabled". - * + * */ "disabled": boolean; set(property:"disabled", value: boolean): void; @@ -8521,7 +8523,7 @@ declare module dijit { * Nodes may by assigned to other properties, usually through the * template system's data-dojo-attach-point syntax, but the domNode * property is the canonical "top level" node in widget UI. - * + * */ "domNode": HTMLElement; set(property:"domNode", value: HTMLElement): void; @@ -8530,7 +8532,7 @@ declare module dijit { /** * The widget to display as a popup. This widget must be * defined before the startup function is called. - * + * */ "dropDown": Object; set(property:"dropDown", value: Object): void; @@ -8539,7 +8541,7 @@ declare module dijit { /** * This variable controls the position of the drop down. * It's an array of strings with the following values: - * + * * before: places drop down to the left of the target node/widget, or to the right in * the case of RTL scripts like Hebrew and Arabic * after: places drop down to the right of the target node/widget, or to the left in @@ -8548,7 +8550,7 @@ declare module dijit { * below: drop down goes below target node * The list is positions is tried, in order, until a position is found where the drop down fits * within the viewport. - * + * */ "dropDownPosition": Object; set(property:"dropDownPosition", value: Object): void; @@ -8557,7 +8559,7 @@ declare module dijit { /** * This widget or a widget it contains has focus, or is "active" because * it was recently clicked. - * + * */ "focused": boolean; set(property:"focused", value: boolean): void; @@ -8566,7 +8568,7 @@ declare module dijit { /** * Set to true to make the drop down exactly as wide as this * widget. Overrides autoWidth. - * + * */ "forceWidth": boolean; set(property:"forceWidth", value: boolean): void; @@ -8574,7 +8576,7 @@ declare module dijit { watch(property:"forceWidth", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * True if cursor is over this widget - * + * */ "hovering": boolean; set(property:"hovering", value: boolean): void; @@ -8582,7 +8584,7 @@ declare module dijit { watch(property:"hovering", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * Class to apply to DOMNode in button to make it display an icon - * + * */ "iconClass": string; set(property:"iconClass", value: string): void; @@ -8593,7 +8595,7 @@ declare module dijit { * system. If the developer passes an ID which is known not to be * unique, the specified ID is ignored and the system-generated ID is * used instead. - * + * */ "id": string; set(property:"id", value: string): void; @@ -8601,7 +8603,7 @@ declare module dijit { watch(property:"id", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Fires onChange for each value change or only on demand - * + * */ "intermediateChanges": boolean; set(property:"intermediateChanges", value: boolean): void; @@ -8609,7 +8611,7 @@ declare module dijit { watch(property:"intermediateChanges", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * Content to display in button. - * + * */ "label": string; set(property:"label", value: string): void; @@ -8620,7 +8622,7 @@ declare module dijit { * as defined by the HTML LANG attribute. * Value must be among the list of locales specified during by the Dojo bootstrap, * formatted according to RFC 3066 (like en-us). - * + * */ "lang": string; set(property:"lang", value: string): void; @@ -8630,7 +8632,7 @@ declare module dijit { * The max height for our dropdown. * Any dropdown taller than this will have scrollbars. * Set to 0 for no max height, or -1 to limit height to available space in viewport - * + * */ "maxHeight": number; set(property:"maxHeight", value: number): void; @@ -8638,7 +8640,7 @@ declare module dijit { watch(property:"maxHeight", callback:{(property?:string, oldValue?:number, newValue?: number):void}) :{unwatch():void} /** * Name used when submitting form; same as "name" attribute or plain HTML elements - * + * */ "name": string; set(property:"name", value: string): void; @@ -8647,7 +8649,7 @@ declare module dijit { /** * The document this widget belongs to. If not specified to constructor, will default to * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * + * */ "ownerDocument": Object; set(property:"ownerDocument", value: Object): void; @@ -8655,14 +8657,14 @@ declare module dijit { watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** * On focus, should this widget scroll into view? - * + * */ "scrollOnFocus": boolean; set(property:"scrollOnFocus", value: boolean): void; get(property:"scrollOnFocus"): boolean; watch(property:"scrollOnFocus", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** - * + * */ "searchContainerNode": boolean; set(property:"searchContainerNode", value: boolean): void; @@ -8673,10 +8675,10 @@ declare module dijit { * (If showLabel=false then iconClass must be specified.) * Especially useful for toolbars. * If showLabel=true, the label will become the title (a.k.a. tooltip/hint) of the icon. - * + * * The exception case is for computers in high-contrast mode, where the label * will still be displayed, since the icon doesn't appear. - * + * */ "showLabel": boolean; set(property:"showLabel", value: boolean): void; @@ -8684,7 +8686,7 @@ declare module dijit { watch(property:"showLabel", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * pointer to original DOM node - * + * */ "srcNodeRef": HTMLElement; set(property:"srcNodeRef", value: HTMLElement): void; @@ -8692,7 +8694,7 @@ declare module dijit { watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} /** * HTML style attributes as cssText string or name/value hash - * + * */ "style": string; set(property:"style", value: string): void; @@ -8700,7 +8702,7 @@ declare module dijit { watch(property:"style", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Order fields are traversed when user hits the tab key - * + * */ "tabIndex": string; set(property:"tabIndex", value: string): void; @@ -8709,14 +8711,14 @@ declare module dijit { /** * Path to template (HTML file) for this widget relative to dojo.baseUrl. * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * + * */ "templatePath": string; set(property:"templatePath", value: string): void; get(property:"templatePath"): string; watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "templateString": string; set(property:"templateString", value: string): void; @@ -8724,14 +8726,14 @@ declare module dijit { watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * HTML title attribute. - * + * * For form widgets this specifies a tooltip to display when hovering over * the widget (just like the native HTML title attribute). - * + * * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's * interpreted as HTML. - * + * */ "title": string; set(property:"title", value: string): void; @@ -8740,7 +8742,7 @@ declare module dijit { /** * When this widget's title attribute is used to for a tab label, accordion pane title, etc., * this specifies the tooltip to appear when the mouse is hovered over that text. - * + * */ "tooltip": string; set(property:"tooltip", value: string): void; @@ -8748,7 +8750,7 @@ declare module dijit { watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Corresponds to the native HTML element's attribute. - * + * */ "type": string; set(property:"type", value: string): void; @@ -8756,7 +8758,7 @@ declare module dijit { watch(property:"type", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Corresponds to the native HTML element's attribute. - * + * */ "value": string; set(property:"value", value: string): void; @@ -8766,200 +8768,200 @@ declare module dijit { * Makes the given widget a child of this widget. * Inserts specified child widget's dom node as a child of this widget's * container node, and possibly does other processing (such as layout). - * - * @param widget - * @param insertIndex Optional + * + * @param widget + * @param insertIndex Optional */ addChild(widget: dijit._WidgetBase, insertIndex?: number): void; /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: String, value?: Object): any; /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: Object, value?: Object): any; /** * Construct the UI for this widget, setting this.domNode. * Most widgets will mixin dijit._TemplatedMixin, which implements this method. - * + * */ buildRendering(): void; /** * Closes the drop down on this widget - * - * @param focus If true, refocuses the button widget + * + * @param focus If true, refocuses the button widget */ closeDropDown(focus: boolean): void; /** * Compare 2 values (as returned by get('value') for this widget). - * - * @param val1 - * @param val2 + * + * @param val1 + * @param val2 */ compare(val1: any, val2: any): number; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: Function): any; /** * Wrapper to setTimeout to avoid deferred functions executing * after the originating widget has been destroyed. * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. + * + * @param fcn Function reference. + * @param delay OptionalDelay, defaults to 0. */ defer(fcn: Function, delay?: number): Object; /** * Destroy this widget, but not its descendants. Descendants means widgets inside of * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * + * * This method will also destroy internal widgets such as those created from a template, * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * + * * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not * depend on the current ability to destroy a widget without destroying its descendants. Generally * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets + * + * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets */ destroy(preserveDom?: boolean): void; /** * Recursively destroy the children of this widget and their * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. + * + * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. */ destroyDescendants(preserveDom?: boolean): void; /** @@ -8967,41 +8969,41 @@ declare module dijit { * This is the generic "destructor" function that all widget users * should call to cleanly discard with a widget. Once a widget is * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. */ destroyRecursive(preserveDom?: boolean): void; /** * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. */ destroyRendering(preserveDom?: boolean): void; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Disconnects handle created by connect. - * - * @param handle + * + * @param handle */ disconnect(handle: any): void; /** * Used by widgets to signal that a synthetic event occurred, ex: - * + * * myWidget.emit("attrmodified-selectedChildWidget", {}). * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. * Also calls onType() method, if present, and returns value from that method. * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional + * + * @param type + * @param eventObj Optional + * @param callbackArgs Optional */ emit(type: String, eventObj?: Object, callbackArgs?: any[]): any; /** * Put focus on this widget - * + * */ focus(): void; /** @@ -9009,15 +9011,15 @@ declare module dijit { * Get a named property from a widget. The property may * potentially be retrieved via a getter method. If no getter is defined, this * just retrieves the object's property. - * + * * For example, if the widget has properties foo and bar * and a method named _getFooAttr(), calling: * myWidget.get("foo") would be equivalent to calling * widget._getFooAttr() and myWidget.get("bar") * would be equivalent to the expression * widget.bar2 - * - * @param name The property to get. + * + * @param name The property to get. */ get(name: any): any; /** @@ -9025,54 +9027,54 @@ declare module dijit { * is this widget. Note that it does not return all descendants, but rather just direct children. * Analogous to Node.childNodes, * except containing widgets rather than DOMNodes. - * + * * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) * outside of this.containerNode. - * + * * Note that the array returned is a simple array. Application code should not assume * existence of methods like forEach(). - * + * */ getChildren(): any[]; /** * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. * This method should generally be avoided as it returns widgets declared in templates, which are * supposed to be internal/hidden, but it's left here for back-compat reasons. - * + * */ getDescendants(): any[]; /** * Gets the index of the child in this container or -1 if not found - * - * @param child + * + * @param child */ getIndexOfChild(child: dijit._WidgetBase): any; /** * Returns the parent widget of this widget. - * + * */ getParent(): any; /** * Deprecated. Use get('value') instead. - * + * */ getValue(): any; /** * Returns true if widget has child widgets, i.e. if this.containerNode contains widgets. - * + * */ hasChildren(): boolean; /** - * + * */ isFocusable(): any; /** * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * + * */ isLeftToRight(): any; /** - * + * */ isLoaded(): boolean; /** @@ -9080,36 +9082,36 @@ declare module dijit { * if there's an href and it hasn't been loaded yet, and * then opens the drop down. This is basically a callback when the * user presses the down arrow button to open the drop down. - * + * */ loadAndOpenDropDown(): any; /** - * - * @param callback + * + * @param callback */ loadDropDown(callback: Function): void; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: String, func: Function): any; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: Function, func: Function): any; /** * Opens the dropdown for this widget. To be called only when this.dropDown * has been created and is ready to display (ie, it's data is loaded). - * + * */ openDropDown(): any; /** * Track specified handles and remove/destroy them when this instance is destroyed, unless they were * already removed/destroyed manually. - * + * */ own(): any; /** @@ -9118,9 +9120,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: String): any; /** @@ -9129,9 +9131,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: String): any; /** @@ -9140,9 +9142,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: String): any; /** @@ -9151,9 +9153,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: number): any; /** @@ -9162,9 +9164,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: number): any; /** @@ -9173,105 +9175,105 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: number): any; /** - * + * */ postCreate(): void; /** - * + * */ postMixInProperties(): void; /** * Removes the passed widget instance from this widget but does * not destroy it. You can also pass in an integer indicating * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget + * + * @param widget */ removeChild(widget: dijit._WidgetBase): void; /** * Removes the passed widget instance from this widget but does * not destroy it. You can also pass in an integer indicating * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget + * + * @param widget */ removeChild(widget: number): void; /** * Set a property on a widget * Sets named properties on a widget which may potentially be handled by a * setter in the widget. - * + * * For example, if the widget has properties foo and bar * and a method named _setFooAttr(), calling * myWidget.set("foo", "Howdy!") would be equivalent to calling * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) * would be equivalent to the statement widget.bar = 3; - * + * * set() may also be called with a hash of name/value pairs, ex: - * + * * myWidget.set({ * foo: "Howdy", * bar: 3 * }); * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. + * + * @param name The property to set. + * @param value The value to set in the property. */ set(name: any, value: any): any; /** * Deprecated. Use set() instead. - * - * @param attr - * @param value + * + * @param attr + * @param value */ setAttribute(attr: String, value: any): void; /** * Deprecated. Use set('disabled', ...) instead. - * - * @param disabled + * + * @param disabled */ setDisabled(disabled: boolean): void; /** * Deprecated. Use set('label', ...) instead. - * - * @param content + * + * @param content */ setLabel(content: String): void; /** * Deprecated. Use set('value', ...) instead. - * - * @param value + * + * @param value */ setValue(value: String): void; /** - * + * */ startup(): void; /** * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * + * * Subscribes to the specified topic and calls the specified method * of this object and registers for unsubscribe() on widget destroy. - * + * * Provide widget-specific analog to dojo.subscribe, except with the * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback + * + * @param t The topic + * @param method The callback */ subscribe(t: String, method: Function): any; /** * Callback when the user presses the down arrow button or presses * the down arrow key to open/close the drop down. * Toggle the drop-down widget; if it is up, close it, if not, open it - * + * */ toggleDropDown(): void; /** @@ -9279,29 +9281,29 @@ declare module dijit { * When a widget is cast to a string, this method will be used to generate the * output. Currently, it does not implement any sort of reversible * serialization. - * + * */ toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. - * + * */ uninitialize(): boolean; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Unsubscribes handle created by this.subscribe. * Also removes handle from this widget's list of subscriptions - * - * @param handle + * + * @param handle */ unsubscribe(handle: Object): void; /** * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. + * + * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched + * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. */ watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; /** @@ -9314,124 +9316,124 @@ declare module dijit { * focus moved to something outside of it, or the user * clicked somewhere outside of it, or the widget was * hidden. - * + * */ onBlur(): void; /** * Callback when this widget's value is changed. - * - * @param newValue + * + * @param newValue */ onChange(newValue: any): void; /** * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onClick(event: any): boolean; /** * Called when this widget is being displayed as a popup (ex: a Calendar popped * up from a DateTextBox), and it is hidden. * This is called from the dijit.popup code, and should not be called directly. - * + * * Also used as a parameter for children of dijit/layout/StackContainer or subclasses. * Callback if a user tries to close the child. Child will be closed if this function returns true. - * + * */ onClose(): boolean; /** * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onDblClick(event: any): void; /** * Called when the widget becomes "active" because * it or a widget inside of it either has focus, or has recently * been clicked. - * + * */ onFocus(): void; /** * Called when another widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onHide(): void; /** * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event + * + * @param event key Event */ onKeyDown(event: any): void; /** * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event + * + * @param event key Event */ onKeyPress(event: any): void; /** * Connect to this function to receive notifications of keys being released. - * - * @param event key Event + * + * @param event key Event */ onKeyUp(event: any): void; /** - * + * */ onMonthSelect(): void; /** * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseDown(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseEnter(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseLeave(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseMove(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOut(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOver(event: any): void; /** * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseUp(event: any): void; /** * Called when this widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onShow(): void; } @@ -9441,19 +9443,19 @@ declare module dijit { * Permalink: http://dojotoolkit.org/api/1.9/dijit/CheckedMenuItem.html * * A checkbox-like menu item for toggling on and off - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree + * + * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. + * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree */ class CheckedMenuItem extends dijit.MenuItem { constructor(params?: Object, srcNodeRef?: HTMLElement); /** * Text for the accelerator (shortcut) key combination, a control, alt, etc. modified keystroke meant to * execute the menu item regardless of where the focus is on the page. - * + * * Note that although Menu can display accelerator keys, there is no infrastructure to actually catch and * execute those accelerators. - * + * */ "accelKey": string; set(property:"accelKey", value: string): void; @@ -9461,7 +9463,7 @@ declare module dijit { watch(property:"accelKey", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * True if mouse was pressed while over this widget, and hasn't been released yet - * + * */ "active": boolean; set(property:"active", value: boolean): void; @@ -9470,7 +9472,7 @@ declare module dijit { /** * Object to which attach points and events will be scoped. Defaults * to 'this'. - * + * */ "attachScope": Object; set(property:"attachScope", value: Object): void; @@ -9479,51 +9481,51 @@ declare module dijit { /** * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute * for each XXX attribute to be mapped to the DOM. - * + * * attributeMap sets up a "binding" between attributes (aka properties) * of the widget and the widget's DOM. * Changes to widget attributes listed in attributeMap will be * reflected into the DOM. - * + * * For example, calling set('title', 'hello') * on a TitlePane will automatically cause the TitlePane's DOM to update * with the new title. - * + * * attributeMap is a hash where the key is an attribute of the widget, * and the value reflects a binding to a: - * + * * DOM node attribute * focus: {node: "focusNode", type: "attribute"} * Maps this.focus to this.focusNode.focus - * + * * DOM node innerHTML * title: { node: "titleNode", type: "innerHTML" } * Maps this.title to this.titleNode.innerHTML - * + * * DOM node innerText * title: { node: "titleNode", type: "innerText" } * Maps this.title to this.titleNode.innerText - * + * * DOM node CSS class * myClass: { node: "domNode", type: "class" } * Maps this.myClass to this.domNode.className - * + * * If the value is an array, then each element in the array matches one of the * formats of the above list. - * + * * There are also some shorthands for backwards compatibility: - * + * * string --> { node: string, type: "attribute" }, for example: * "focusNode" ---> { node: "focusNode", type: "attribute" } * "" --> { node: "domNode", type: "attribute" } - * + * */ "attributeMap": Object; set(property:"attributeMap", value: Object): void; get(property:"attributeMap"): Object; watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** - * + * */ "baseClass": string; set(property:"baseClass", value: string): void; @@ -9531,7 +9533,7 @@ declare module dijit { watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Our checked state - * + * */ "checked": boolean; set(property:"checked", value: boolean): void; @@ -9539,14 +9541,14 @@ declare module dijit { watch(property:"checked", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * Character (or string) used in place of checkbox icon when display in high contrast mode - * + * */ "checkedChar": string; set(property:"checkedChar", value: string): void; get(property:"checkedChar"): string; watch(property:"checkedChar", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "class": string; set(property:"class", value: string): void; @@ -9556,24 +9558,24 @@ declare module dijit { * Designates where children of the source DOM node will be placed. * "Children" in this case refers to both DOM nodes and widgets. * For example, for myWidget: - * + * *
* here's a plain DOM node * and a widget * and another plain DOM node *
* containerNode would point to: - * + * * here's a plain DOM node * and a widget * and another plain DOM node * In templated widgets, "containerNode" is set via a * data-dojo-attach-point assignment. - * + * * containerNode must be defined for any widget that accepts innerHTML * (like ContentPane or BorderContainer or even Button), and conversely * is null for widgets that don't, like TextBox. - * + * */ "containerNode": HTMLElement; set(property:"containerNode", value: HTMLElement): void; @@ -9582,18 +9584,18 @@ declare module dijit { /** * Subclasses may define a cssStateNodes property that lists sub-nodes within the widget that * need CSS classes applied on mouse hover/press and focus. - * + * * Each entry in this optional hash is a an attach-point name (like "upArrowButton") mapped to a CSS class name * (like "dijitUpArrowButton"). Example: - * + * * { * "upArrowButton": "dijitUpArrowButton", * "downArrowButton": "dijitDownArrowButton" * } * The above will set the CSS class dijitUpArrowButton to the this.upArrowButton DOMNode when it - * + * * is hovered, etc. - * + * */ "cssStateNodes": Object; set(property:"cssStateNodes", value: Object): void; @@ -9603,7 +9605,7 @@ declare module dijit { * Bi-directional support, as defined by the HTML DIR * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's * default direction. - * + * */ "dir": string; set(property:"dir", value: string): void; @@ -9612,7 +9614,7 @@ declare module dijit { /** * If true, the menu item is disabled. * If false, the menu item is enabled. - * + * */ "disabled": boolean; set(property:"disabled", value: boolean): void; @@ -9623,7 +9625,7 @@ declare module dijit { * Nodes may by assigned to other properties, usually through the * template system's data-dojo-attach-point syntax, but the domNode * property is the canonical "top level" node in widget UI. - * + * */ "domNode": HTMLElement; set(property:"domNode", value: HTMLElement): void; @@ -9632,7 +9634,7 @@ declare module dijit { /** * This widget or a widget it contains has focus, or is "active" because * it was recently clicked. - * + * */ "focused": boolean; set(property:"focused", value: boolean): void; @@ -9640,14 +9642,14 @@ declare module dijit { watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * True if cursor is over this widget - * + * */ "hovering": boolean; set(property:"hovering", value: boolean): void; get(property:"hovering"): boolean; watch(property:"hovering", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** - * + * */ "iconClass": string; set(property:"iconClass", value: string): void; @@ -9658,7 +9660,7 @@ declare module dijit { * system. If the developer passes an ID which is known not to be * unique, the specified ID is ignored and the system-generated ID is * used instead. - * + * */ "id": string; set(property:"id", value: string): void; @@ -9666,7 +9668,7 @@ declare module dijit { watch(property:"id", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Menu text as HTML - * + * */ "label": string; set(property:"label", value: string): void; @@ -9677,7 +9679,7 @@ declare module dijit { * as defined by the HTML LANG attribute. * Value must be among the list of locales specified during by the Dojo bootstrap, * formatted according to RFC 3066 (like en-us). - * + * */ "lang": string; set(property:"lang", value: string): void; @@ -9686,21 +9688,21 @@ declare module dijit { /** * The document this widget belongs to. If not specified to constructor, will default to * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * + * */ "ownerDocument": Object; set(property:"ownerDocument", value: Object): void; get(property:"ownerDocument"): Object; watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** - * + * */ "role": string; set(property:"role", value: string): void; get(property:"role"): string; watch(property:"role", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "searchContainerNode": boolean; set(property:"searchContainerNode", value: boolean): void; @@ -9711,7 +9713,7 @@ declare module dijit { * also known as a mnemonic. * This is denoted in the label by surrounding the single character with {}. * For example, if label="{F}ile", then shortcutKey="F". - * + * */ "shortcutKey": string; set(property:"shortcutKey", value: string): void; @@ -9719,7 +9721,7 @@ declare module dijit { watch(property:"shortcutKey", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * pointer to original DOM node - * + * */ "srcNodeRef": HTMLElement; set(property:"srcNodeRef", value: HTMLElement): void; @@ -9727,7 +9729,7 @@ declare module dijit { watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} /** * HTML style attributes as cssText string or name/value hash - * + * */ "style": string; set(property:"style", value: string): void; @@ -9736,14 +9738,14 @@ declare module dijit { /** * Path to template (HTML file) for this widget relative to dojo.baseUrl. * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * + * */ "templatePath": string; set(property:"templatePath", value: string): void; get(property:"templatePath"): string; watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "templateString": string; set(property:"templateString", value: string): void; @@ -9751,14 +9753,14 @@ declare module dijit { watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * HTML title attribute. - * + * * For form widgets this specifies a tooltip to display when hovering over * the widget (just like the native HTML title attribute). - * + * * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's * interpreted as HTML. - * + * */ "title": string; set(property:"title", value: string): void; @@ -9767,7 +9769,7 @@ declare module dijit { /** * When this widget's title attribute is used to for a tab label, accordion pane title, etc., * this specifies the tooltip to appear when the mouse is hovered over that text. - * + * */ "tooltip": string; set(property:"tooltip", value: string): void; @@ -9775,178 +9777,178 @@ declare module dijit { watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: String, value?: Object): any; /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: Object, value?: Object): any; /** - * + * */ buildRendering(): void; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: Function): any; /** * Wrapper to setTimeout to avoid deferred functions executing * after the originating widget has been destroyed. * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. + * + * @param fcn Function reference. + * @param delay OptionalDelay, defaults to 0. */ defer(fcn: Function, delay?: number): Object; /** * Destroy this widget, but not its descendants. Descendants means widgets inside of * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * + * * This method will also destroy internal widgets such as those created from a template, * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * + * * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not * depend on the current ability to destroy a widget without destroying its descendants. Generally * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets + * + * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets */ destroy(preserveDom?: boolean): void; /** * Recursively destroy the children of this widget and their * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. + * + * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. */ destroyDescendants(preserveDom?: boolean): void; /** @@ -9954,41 +9956,41 @@ declare module dijit { * This is the generic "destructor" function that all widget users * should call to cleanly discard with a widget. Once a widget is * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. */ destroyRecursive(preserveDom?: boolean): void; /** * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. */ destroyRendering(preserveDom?: boolean): void; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Disconnects handle created by connect. - * - * @param handle + * + * @param handle */ disconnect(handle: any): void; /** * Used by widgets to signal that a synthetic event occurred, ex: - * + * * myWidget.emit("attrmodified-selectedChildWidget", {}). * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. * Also calls onType() method, if present, and returns value from that method. * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional + * + * @param type + * @param eventObj Optional + * @param callbackArgs Optional */ emit(type: String, eventObj?: Object, callbackArgs?: any[]): any; /** * Focus on this MenuItem - * + * */ focus(): void; /** @@ -9996,15 +9998,15 @@ declare module dijit { * Get a named property from a widget. The property may * potentially be retrieved via a getter method. If no getter is defined, this * just retrieves the object's property. - * + * * For example, if the widget has properties foo and bar * and a method named _getFooAttr(), calling: * myWidget.get("foo") would be equivalent to calling * widget._getFooAttr() and myWidget.get("bar") * would be equivalent to the expression * widget.bar2 - * - * @param name The property to get. + * + * @param name The property to get. */ get(name: any): any; /** @@ -10012,73 +10014,73 @@ declare module dijit { * is this widget. Note that it does not return all descendants, but rather just direct children. * Analogous to Node.childNodes, * except containing widgets rather than DOMNodes. - * + * * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) * outside of this.containerNode. - * + * * Note that the array returned is a simple array. Application code should not assume * existence of methods like forEach(). - * + * */ getChildren(): any[]; /** * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. * This method should generally be avoided as it returns widgets declared in templates, which are * supposed to be internal/hidden, but it's left here for back-compat reasons. - * + * */ getDescendants(): any[]; /** * Returns the index of this widget within its container parent. * It returns -1 if the parent does not exist, or if the parent * is not a dijit/_Container - * + * */ getIndexInParent(): any; /** * Returns null if this is the last child of the parent, * otherwise returns the next element sibling to the "right". - * + * */ getNextSibling(): any; /** * Returns the parent widget of this widget. - * + * */ getParent(): any; /** * Returns null if this is the first child of the parent, * otherwise returns the next element sibling to the "left". - * + * */ getPreviousSibling(): any; /** * Return true if this widget can currently be focused * and false if not - * + * */ isFocusable(): any; /** * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * + * */ isLeftToRight(): any; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: String, func: Function): any; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: Function, func: Function): any; /** * Track specified handles and remove/destroy them when this instance is destroyed, unless they were * already removed/destroyed manually. - * + * */ own(): any; /** @@ -10087,9 +10089,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: String): any; /** @@ -10098,9 +10100,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: String): any; /** @@ -10109,9 +10111,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: String): any; /** @@ -10120,9 +10122,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: number): any; /** @@ -10131,9 +10133,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: number): any; /** @@ -10142,13 +10144,13 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: number): any; /** - * + * */ postCreate(): void; /** @@ -10156,74 +10158,74 @@ declare module dijit { * but before the widget template is instantiated. Especially * useful to set properties that are referenced in the widget * template. - * + * */ postMixInProperties(): void; /** * Set a property on a widget * Sets named properties on a widget which may potentially be handled by a * setter in the widget. - * + * * For example, if the widget has properties foo and bar * and a method named _setFooAttr(), calling * myWidget.set("foo", "Howdy!") would be equivalent to calling * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) * would be equivalent to the statement widget.bar = 3; - * + * * set() may also be called with a hash of name/value pairs, ex: - * + * * myWidget.set({ * foo: "Howdy", * bar: 3 * }); * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. + * + * @param name The property to set. + * @param value The value to set in the property. */ set(name: any, value: any): any; /** * Deprecated. Use set() instead. - * - * @param attr - * @param value + * + * @param attr + * @param value */ setAttribute(attr: String, value: any): void; /** * Deprecated. Use set('disabled', bool) instead. - * - * @param disabled + * + * @param disabled */ setDisabled(disabled: boolean): void; /** * Deprecated. Use set('label', ...) instead. - * - * @param content + * + * @param content */ setLabel(content: String): void; /** * Processing after the DOM fragment is added to the document * Called after a widget and its children have been created and added to the page, * and all related widgets have finished their create() cycle, up through postCreate(). - * + * * Note that startup() may be called while the widget is still hidden, for example if the widget is * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. * For widgets that need to do layout, it's best to put that layout code inside resize(), and then * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * + * */ startup(): void; /** * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * + * * Subscribes to the specified topic and calls the specified method * of this object and registers for unsubscribe() on widget destroy. - * + * * Provide widget-specific analog to dojo.subscribe, except with the * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback + * + * @param t The topic + * @param method The callback */ subscribe(t: String, method: Function): any; /** @@ -10231,29 +10233,29 @@ declare module dijit { * When a widget is cast to a string, this method will be used to generate the * output. Currently, it does not implement any sort of reversible * serialization. - * + * */ toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. - * + * */ uninitialize(): boolean; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Unsubscribes handle created by this.subscribe. * Also removes handle from this widget's list of subscriptions - * - * @param handle + * + * @param handle */ unsubscribe(handle: Object): void; /** * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. + * + * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched + * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. */ watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; /** @@ -10266,119 +10268,119 @@ declare module dijit { * focus moved to something outside of it, or the user * clicked somewhere outside of it, or the widget was * hidden. - * + * */ onBlur(): void; /** * User defined function to handle check/uncheck events - * - * @param checked + * + * @param checked */ onChange(checked: boolean): void; /** * User defined function to handle clicks - * + * */ onClick(): void; /** * Called when this widget is being displayed as a popup (ex: a Calendar popped * up from a DateTextBox), and it is hidden. * This is called from the dijit.popup code, and should not be called directly. - * + * * Also used as a parameter for children of dijit/layout/StackContainer or subclasses. * Callback if a user tries to close the child. Child will be closed if this function returns true. - * + * */ onClose(): boolean; /** * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onDblClick(event: any): void; /** * Called when the widget becomes "active" because * it or a widget inside of it either has focus, or has recently * been clicked. - * + * */ onFocus(): void; /** * Called when another widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onHide(): void; /** * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event + * + * @param event key Event */ onKeyDown(event: any): void; /** * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event + * + * @param event key Event */ onKeyPress(event: any): void; /** * Connect to this function to receive notifications of keys being released. - * - * @param event key Event + * + * @param event key Event */ onKeyUp(event: any): void; /** * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseDown(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseEnter(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseLeave(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseMove(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOut(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOver(event: any): void; /** * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseUp(event: any): void; /** * Called when this widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onShow(): void; } @@ -10386,26 +10388,26 @@ declare module dijit { * Permalink: http://dojotoolkit.org/api/1.9/dijit/DialogUnderlay.html * * A component used to block input behind a dijit/Dialog. - * + * * Normally this class should not be instantiated directly, but rather shown and hidden via * DialogUnderlay.show() and DialogUnderlay.hide(). And usually the module is not accessed directly * at all, since the underlay is shown and hidden by Dialog.DialogLevelManager. - * + * * The underlay itself can be styled based on and id: - * + * * #myDialog_underlay { background-color:red; } * In the case of dijit.Dialog, this id is based on the id of the Dialog, * suffixed with _underlay. - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree + * + * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. + * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree */ class DialogUnderlay extends dijit._Widget implements dijit._TemplatedMixin { constructor(params?: Object, srcNodeRef?: HTMLElement); /** * Object to which attach points and events will be scoped. Defaults * to 'this'. - * + * */ "attachScope": Object; set(property:"attachScope", value: Object): void; @@ -10414,44 +10416,44 @@ declare module dijit { /** * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute * for each XXX attribute to be mapped to the DOM. - * + * * attributeMap sets up a "binding" between attributes (aka properties) * of the widget and the widget's DOM. * Changes to widget attributes listed in attributeMap will be * reflected into the DOM. - * + * * For example, calling set('title', 'hello') * on a TitlePane will automatically cause the TitlePane's DOM to update * with the new title. - * + * * attributeMap is a hash where the key is an attribute of the widget, * and the value reflects a binding to a: - * + * * DOM node attribute * focus: {node: "focusNode", type: "attribute"} * Maps this.focus to this.focusNode.focus - * + * * DOM node innerHTML * title: { node: "titleNode", type: "innerHTML" } * Maps this.title to this.titleNode.innerHTML - * + * * DOM node innerText * title: { node: "titleNode", type: "innerText" } * Maps this.title to this.titleNode.innerText - * + * * DOM node CSS class * myClass: { node: "domNode", type: "class" } * Maps this.myClass to this.domNode.className - * + * * If the value is an array, then each element in the array matches one of the * formats of the above list. - * + * * There are also some shorthands for backwards compatibility: - * + * * string --> { node: string, type: "attribute" }, for example: * "focusNode" ---> { node: "focusNode", type: "attribute" } * "" --> { node: "domNode", type: "attribute" } - * + * */ "attributeMap": Object; set(property:"attributeMap", value: Object): void; @@ -10460,14 +10462,14 @@ declare module dijit { /** * Root CSS class of the widget (ex: dijitTextBox), used to construct CSS classes to indicate * widget state. - * + * */ "baseClass": string; set(property:"baseClass", value: string): void; get(property:"baseClass"): string; watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "class": string; set(property:"class", value: string): void; @@ -10477,24 +10479,24 @@ declare module dijit { * Designates where children of the source DOM node will be placed. * "Children" in this case refers to both DOM nodes and widgets. * For example, for myWidget: - * + * *
* here's a plain DOM node * and a widget * and another plain DOM node *
* containerNode would point to: - * + * * here's a plain DOM node * and a widget * and another plain DOM node * In templated widgets, "containerNode" is set via a * data-dojo-attach-point assignment. - * + * * containerNode must be defined for any widget that accepts innerHTML * (like ContentPane or BorderContainer or even Button), and conversely * is null for widgets that don't, like TextBox. - * + * */ "containerNode": HTMLElement; set(property:"containerNode", value: HTMLElement): void; @@ -10502,7 +10504,7 @@ declare module dijit { watch(property:"containerNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} /** * Id of the dialog.... DialogUnderlay's id is based on this id - * + * */ "dialogId": string; set(property:"dialogId", value: string): void; @@ -10512,7 +10514,7 @@ declare module dijit { * Bi-directional support, as defined by the HTML DIR * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's * default direction. - * + * */ "dir": string; set(property:"dir", value: string): void; @@ -10523,7 +10525,7 @@ declare module dijit { * Nodes may by assigned to other properties, usually through the * template system's data-dojo-attach-point syntax, but the domNode * property is the canonical "top level" node in widget UI. - * + * */ "domNode": HTMLElement; set(property:"domNode", value: HTMLElement): void; @@ -10532,7 +10534,7 @@ declare module dijit { /** * This widget or a widget it contains has focus, or is "active" because * it was recently clicked. - * + * */ "focused": boolean; set(property:"focused", value: boolean): void; @@ -10543,7 +10545,7 @@ declare module dijit { * system. If the developer passes an ID which is known not to be * unique, the specified ID is ignored and the system-generated ID is * used instead. - * + * */ "id": string; set(property:"id", value: string): void; @@ -10554,7 +10556,7 @@ declare module dijit { * as defined by the HTML LANG attribute. * Value must be among the list of locales specified during by the Dojo bootstrap, * formatted according to RFC 3066 (like en-us). - * + * */ "lang": string; set(property:"lang", value: string): void; @@ -10563,14 +10565,14 @@ declare module dijit { /** * The document this widget belongs to. If not specified to constructor, will default to * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * + * */ "ownerDocument": Object; set(property:"ownerDocument", value: Object): void; get(property:"ownerDocument"): Object; watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** - * + * */ "searchContainerNode": boolean; set(property:"searchContainerNode", value: boolean): void; @@ -10578,7 +10580,7 @@ declare module dijit { watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * pointer to original DOM node - * + * */ "srcNodeRef": HTMLElement; set(property:"srcNodeRef", value: HTMLElement): void; @@ -10586,7 +10588,7 @@ declare module dijit { watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} /** * HTML style attributes as cssText string or name/value hash - * + * */ "style": string; set(property:"style", value: string): void; @@ -10595,14 +10597,14 @@ declare module dijit { /** * Path to template (HTML file) for this widget relative to dojo.baseUrl. * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * + * */ "templatePath": string; set(property:"templatePath", value: string): void; get(property:"templatePath"): string; watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "templateString": string; set(property:"templateString", value: string): void; @@ -10610,14 +10612,14 @@ declare module dijit { watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * HTML title attribute. - * + * * For form widgets this specifies a tooltip to display when hovering over * the widget (just like the native HTML title attribute). - * + * * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's * interpreted as HTML. - * + * */ "title": string; set(property:"title", value: string): void; @@ -10626,7 +10628,7 @@ declare module dijit { /** * When this widget's title attribute is used to for a tab label, accordion pane title, etc., * this specifies the tooltip to appear when the mouse is hovered over that text. - * + * */ "tooltip": string; set(property:"tooltip", value: string): void; @@ -10634,170 +10636,170 @@ declare module dijit { watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: String, value?: Object): any; /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: Object, value?: Object): any; /** * Construct the UI for this widget, setting this.domNode. * Most widgets will mixin dijit._TemplatedMixin, which implements this method. - * + * */ buildRendering(): void; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: Function): any; /** * Wrapper to setTimeout to avoid deferred functions executing * after the originating widget has been destroyed. * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. + * + * @param fcn Function reference. + * @param delay OptionalDelay, defaults to 0. */ defer(fcn: Function, delay?: number): Object; /** - * + * */ destroy(): void; /** * Recursively destroy the children of this widget and their * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. + * + * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. */ destroyDescendants(preserveDom?: boolean): void; /** @@ -10805,36 +10807,36 @@ declare module dijit { * This is the generic "destructor" function that all widget users * should call to cleanly discard with a widget. Once a widget is * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. */ destroyRecursive(preserveDom?: boolean): void; /** * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. */ destroyRendering(preserveDom?: boolean): void; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Disconnects handle created by connect. - * - * @param handle + * + * @param handle */ disconnect(handle: any): void; /** * Used by widgets to signal that a synthetic event occurred, ex: - * + * * myWidget.emit("attrmodified-selectedChildWidget", {}). * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. * Also calls onType() method, if present, and returns value from that method. * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional + * + * @param type + * @param eventObj Optional + * @param callbackArgs Optional */ emit(type: String, eventObj?: Object, callbackArgs?: any[]): any; /** @@ -10842,15 +10844,15 @@ declare module dijit { * Get a named property from a widget. The property may * potentially be retrieved via a getter method. If no getter is defined, this * just retrieves the object's property. - * + * * For example, if the widget has properties foo and bar * and a method named _getFooAttr(), calling: * myWidget.get("foo") would be equivalent to calling * widget._getFooAttr() and myWidget.get("bar") * would be equivalent to the expression * widget.bar2 - * - * @param name The property to get. + * + * @param name The property to get. */ get(name: any): any; /** @@ -10858,59 +10860,59 @@ declare module dijit { * is this widget. Note that it does not return all descendants, but rather just direct children. * Analogous to Node.childNodes, * except containing widgets rather than DOMNodes. - * + * * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) * outside of this.containerNode. - * + * * Note that the array returned is a simple array. Application code should not assume * existence of methods like forEach(). - * + * */ getChildren(): any[]; /** * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. * This method should generally be avoided as it returns widgets declared in templates, which are * supposed to be internal/hidden, but it's left here for back-compat reasons. - * + * */ getDescendants(): any[]; /** * Returns the parent widget of this widget. - * + * */ getParent(): any; /** * Hide the underlay. - * + * */ hide(): void; /** * Return true if this widget can currently be focused * and false if not - * + * */ isFocusable(): any; /** * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * + * */ isLeftToRight(): any; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: String, func: Function): any; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: Function, func: Function): any; /** * Track specified handles and remove/destroy them when this instance is destroyed, unless they were * already removed/destroyed manually. - * + * */ own(): any; /** @@ -10919,9 +10921,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: String): any; /** @@ -10930,9 +10932,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: String): any; /** @@ -10941,9 +10943,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: String): any; /** @@ -10952,9 +10954,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: number): any; /** @@ -10963,9 +10965,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: number): any; /** @@ -10974,13 +10976,13 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: number): any; /** - * + * */ postCreate(): void; /** @@ -10988,75 +10990,75 @@ declare module dijit { * but before the widget template is instantiated. Especially * useful to set properties that are referenced in the widget * template. - * + * */ postMixInProperties(): void; /** * Set a property on a widget * Sets named properties on a widget which may potentially be handled by a * setter in the widget. - * + * * For example, if the widget has properties foo and bar * and a method named _setFooAttr(), calling * myWidget.set("foo", "Howdy!") would be equivalent to calling * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) * would be equivalent to the statement widget.bar = 3; - * + * * set() may also be called with a hash of name/value pairs, ex: - * + * * myWidget.set({ * foo: "Howdy", * bar: 3 * }); * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. + * + * @param name The property to set. + * @param value The value to set in the property. */ set(name: any, value: any): any; /** * Deprecated. Use set() instead. - * - * @param attr - * @param value + * + * @param attr + * @param value */ setAttribute(attr: String, value: any): void; /** * Show the dialog underlay - * + * */ show(): void; /** * Display the underlay with the given attributes set. If the underlay is already displayed, * then adjust it's attributes as specified. - * - * @param attrs The parameters to create DialogUnderlay with. - * @param zIndex zIndex of the underlay + * + * @param attrs The parameters to create DialogUnderlay with. + * @param zIndex zIndex of the underlay */ show(attrs: Object, zIndex: number): void; /** * Processing after the DOM fragment is added to the document * Called after a widget and its children have been created and added to the page, * and all related widgets have finished their create() cycle, up through postCreate(). - * + * * Note that startup() may be called while the widget is still hidden, for example if the widget is * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. * For widgets that need to do layout, it's best to put that layout code inside resize(), and then * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * + * */ startup(): void; /** * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * + * * Subscribes to the specified topic and calls the specified method * of this object and registers for unsubscribe() on widget destroy. - * + * * Provide widget-specific analog to dojo.subscribe, except with the * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback + * + * @param t The topic + * @param method The callback */ subscribe(t: String, method: Function): any; /** @@ -11064,29 +11066,29 @@ declare module dijit { * When a widget is cast to a string, this method will be used to generate the * output. Currently, it does not implement any sort of reversible * serialization. - * + * */ toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. - * + * */ uninitialize(): boolean; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Unsubscribes handle created by this.subscribe. * Also removes handle from this widget's list of subscriptions - * - * @param handle + * + * @param handle */ unsubscribe(handle: Object): void; /** * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. + * + * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched + * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. */ watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; /** @@ -11099,114 +11101,114 @@ declare module dijit { * focus moved to something outside of it, or the user * clicked somewhere outside of it, or the widget was * hidden. - * + * */ onBlur(): void; /** * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onClick(event: any): void; /** * Called when this widget is being displayed as a popup (ex: a Calendar popped * up from a DateTextBox), and it is hidden. * This is called from the dijit.popup code, and should not be called directly. - * + * * Also used as a parameter for children of dijit/layout/StackContainer or subclasses. * Callback if a user tries to close the child. Child will be closed if this function returns true. - * + * */ onClose(): boolean; /** * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onDblClick(event: any): void; /** * Called when the widget becomes "active" because * it or a widget inside of it either has focus, or has recently * been clicked. - * + * */ onFocus(): void; /** * Called when another widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onHide(): void; /** * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event + * + * @param event key Event */ onKeyDown(event: any): void; /** * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event + * + * @param event key Event */ onKeyPress(event: any): void; /** * Connect to this function to receive notifications of keys being released. - * - * @param event key Event + * + * @param event key Event */ onKeyUp(event: any): void; /** * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseDown(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseEnter(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseLeave(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseMove(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOut(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOver(event: any): void; /** * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseUp(event: any): void; /** * Called when this widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onShow(): void; } @@ -11214,38 +11216,38 @@ declare module dijit { * Permalink: http://dojotoolkit.org/api/1.10/dijit/_ConfirmDialogMixin.html * * Mixin for Dialog/TooltipDialog with OK/Cancel buttons. - * + * */ class _ConfirmDialogMixin extends dijit._WidgetsInTemplateMixin { constructor(); /** - * + * */ "actionBarTemplate": Object; /** * Label of cancel button - * + * */ "buttonCancel": string; /** * Label of OK button - * + * */ "buttonOk": string; /** * Used to provide a context require to the dojo/parser in order to be * able to use relative MIDs (e.g. ./Widget) in the widget's template. - * + * */ "contextRequire": Function; /** * Should we parse the template to find widgets that might be * declared in markup inside it? (Remove for 2.0 and assume true) - * + * */ "widgetsInTemplate": boolean; /** - * + * */ startup(): void; } @@ -11253,9 +11255,9 @@ declare module dijit { * Permalink: http://dojotoolkit.org/api/1.10/dijit/ConfirmDialog.html * * A Dialog with OK/Cancel buttons. - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree + * + * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. + * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree */ class ConfirmDialog extends dijit.Dialog implements dijit._ConfirmDialogMixin { constructor(params: Object, srcNodeRef?: HTMLElement); @@ -11265,7 +11267,7 @@ declare module dijit { /** * HTML snippet to show the action bar (gray bar with OK/cancel buttons). * Blank by default, but used by ConfirmDialog/ConfirmTooltipDialog subclasses. - * + * */ "actionBarTemplate": string; set(property:"actionBarTemplate", value: string): void; @@ -11273,7 +11275,7 @@ declare module dijit { watch(property:"actionBarTemplate", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * True if mouse was pressed while over this widget, and hasn't been released yet - * + * */ "active": boolean; set(property:"active", value: boolean): void; @@ -11282,7 +11284,7 @@ declare module dijit { /** * Object to which attach points and events will be scoped. Defaults * to 'this'. - * + * */ "attachScope": Object; set(property:"attachScope", value: Object): void; @@ -11291,44 +11293,44 @@ declare module dijit { /** * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute * for each XXX attribute to be mapped to the DOM. - * + * * attributeMap sets up a "binding" between attributes (aka properties) * of the widget and the widget's DOM. * Changes to widget attributes listed in attributeMap will be * reflected into the DOM. - * + * * For example, calling set('title', 'hello') * on a TitlePane will automatically cause the TitlePane's DOM to update * with the new title. - * + * * attributeMap is a hash where the key is an attribute of the widget, * and the value reflects a binding to a: - * + * * DOM node attribute * focus: {node: "focusNode", type: "attribute"} * Maps this.focus to this.focusNode.focus - * + * * DOM node innerHTML * title: { node: "titleNode", type: "innerHTML" } * Maps this.title to this.titleNode.innerHTML - * + * * DOM node innerText * title: { node: "titleNode", type: "innerText" } * Maps this.title to this.titleNode.innerText - * + * * DOM node CSS class * myClass: { node: "domNode", type: "class" } * Maps this.myClass to this.domNode.className - * + * * If the value is an array, then each element in the array matches one of the * formats of the above list. - * + * * There are also some shorthands for backwards compatibility: - * + * * string --> { node: string, type: "attribute" }, for example: * "focusNode" ---> { node: "focusNode", type: "attribute" } * "" --> { node: "domNode", type: "attribute" } - * + * */ "attributeMap": Object; set(property:"attributeMap", value: Object): void; @@ -11338,14 +11340,14 @@ declare module dijit { * A Toggle to modify the default focus behavior of a Dialog, which * is to focus on the first dialog element after opening the dialog. * False will disable autofocusing. Default: true - * + * */ "autofocus": boolean; set(property:"autofocus", value: boolean): void; get(property:"autofocus"): boolean; watch(property:"autofocus", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** - * + * */ "baseClass": string; set(property:"baseClass", value: string): void; @@ -11353,7 +11355,7 @@ declare module dijit { watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Label of cancel button - * + * */ "buttonCancel": string; set(property:"buttonCancel", value: string): void; @@ -11361,14 +11363,14 @@ declare module dijit { watch(property:"buttonCancel", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Label of OK button - * + * */ "buttonOk": string; set(property:"buttonOk", value: string): void; get(property:"buttonOk"): string; watch(property:"buttonOk", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "class": string; set(property:"class", value: string): void; @@ -11376,7 +11378,7 @@ declare module dijit { watch(property:"class", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Dialog show [x] icon to close itself, and ESC key will close the dialog. - * + * */ "closable": boolean; set(property:"closable", value: boolean): void; @@ -11386,24 +11388,24 @@ declare module dijit { * Designates where children of the source DOM node will be placed. * "Children" in this case refers to both DOM nodes and widgets. * For example, for myWidget: - * + * *
* here's a plain DOM node * and a widget * and another plain DOM node *
* containerNode would point to: - * + * * here's a plain DOM node * and a widget * and another plain DOM node * In templated widgets, "containerNode" is set via a * data-dojo-attach-point assignment. - * + * * containerNode must be defined for any widget that accepts innerHTML * (like ContentPane or BorderContainer or even Button), and conversely * is null for widgets that don't, like TextBox. - * + * */ "containerNode": HTMLElement; set(property:"containerNode", value: HTMLElement): void; @@ -11413,7 +11415,7 @@ declare module dijit { * The innerHTML of the ContentPane. * Note that the initialization parameter / argument to set("content", ...) * can be a String, DomNode, Nodelist, or _Widget. - * + * */ "content": string; set(property:"content", value: string): void; @@ -11422,14 +11424,14 @@ declare module dijit { /** * Used to provide a context require to the dojo/parser in order to be * able to use relative MIDs (e.g. ./Widget) in the widget's template. - * + * */ "contextRequire": Function; set(property:"contextRequire", value: Function): void; get(property:"contextRequire"): Function; watch(property:"contextRequire", callback:{(property?:string, oldValue?:Function, newValue?: Function):void}) :{unwatch():void} /** - * + * */ "cssStateNodes": Object; set(property:"cssStateNodes", value: Object): void; @@ -11439,17 +11441,17 @@ declare module dijit { * Bi-directional support, as defined by the HTML DIR * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's * default direction. - * + * */ "dir": string; set(property:"dir", value: string): void; get(property:"dir"): string; watch(property:"dir", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * * false - don't adjust size of children * true - if there is a single visible child widget, set it's size to however big the ContentPane is - * + * */ "doLayout": boolean; set(property:"doLayout", value: boolean): void; @@ -11460,7 +11462,7 @@ declare module dijit { * Nodes may by assigned to other properties, usually through the * template system's data-dojo-attach-point syntax, but the domNode * property is the canonical "top level" node in widget UI. - * + * */ "domNode": HTMLElement; set(property:"domNode", value: HTMLElement): void; @@ -11470,7 +11472,7 @@ declare module dijit { * Toggles the movable aspect of the Dialog. If true, Dialog * can be dragged by it's title. If false it will remain centered * in the viewport. - * + * */ "draggable": boolean; set(property:"draggable", value: boolean): void; @@ -11478,7 +11480,7 @@ declare module dijit { watch(property:"draggable", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * The time in milliseconds it takes the dialog to fade in and out - * + * */ "duration": number; set(property:"duration", value: number): void; @@ -11486,7 +11488,7 @@ declare module dijit { watch(property:"duration", callback:{(property?:string, oldValue?:number, newValue?: number):void}) :{unwatch():void} /** * Message that shows if an error occurs - * + * */ "errorMessage": string; set(property:"errorMessage", value: string): void; @@ -11495,7 +11497,7 @@ declare module dijit { /** * Extract visible content from inside of .... . * I.e., strip and (and it's contents) from the href - * + * */ "extractContent": boolean; set(property:"extractContent", value: boolean): void; @@ -11504,7 +11506,7 @@ declare module dijit { /** * This widget or a widget it contains has focus, or is "active" because * it was recently clicked. - * + * */ "focused": boolean; set(property:"focused", value: boolean): void; @@ -11512,7 +11514,7 @@ declare module dijit { watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * True if cursor is over this widget - * + * */ "hovering": boolean; set(property:"hovering", value: boolean): void; @@ -11523,7 +11525,7 @@ declare module dijit { * Set this at construction if you want to load data externally when the * pane is shown. (Set preload=true to load it immediately.) * Changing href after creation doesn't have any effect; Use set('href', ...); - * + * */ "href": string; set(property:"href", value: string): void; @@ -11534,7 +11536,7 @@ declare module dijit { * system. If the developer passes an ID which is known not to be * unique, the specified ID is ignored and the system-generated ID is * used instead. - * + * */ "id": string; set(property:"id", value: string): void; @@ -11542,9 +11544,9 @@ declare module dijit { watch(property:"id", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Parameters to pass to xhrGet() request, for example: - * + * *
- * + * */ "ioArgs": Object; set(property:"ioArgs", value: Object): void; @@ -11553,7 +11555,7 @@ declare module dijit { /** * Indicates that this widget will call resize() on it's child widgets * when they become visible. - * + * */ "isLayoutContainer": boolean; set(property:"isLayoutContainer", value: boolean): void; @@ -11563,10 +11565,10 @@ declare module dijit { * True if the ContentPane has data in it, either specified * during initialization (via href or inline content), or set * via set('content', ...) / set('href', ...) - * + * * False if it doesn't have any content, or if ContentPane is * still in the process of downloading href. - * + * */ "isLoaded": boolean; set(property:"isLoaded", value: boolean): void; @@ -11577,7 +11579,7 @@ declare module dijit { * as defined by the HTML LANG attribute. * Value must be among the list of locales specified during by the Dojo bootstrap, * formatted according to RFC 3066 (like en-us). - * + * */ "lang": string; set(property:"lang", value: string): void; @@ -11585,7 +11587,7 @@ declare module dijit { watch(property:"lang", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Message that shows while downloading - * + * */ "loadingMessage": string; set(property:"loadingMessage", value: string): void; @@ -11593,7 +11595,7 @@ declare module dijit { watch(property:"loadingMessage", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Maximum size to allow the dialog to expand to, relative to viewport size - * + * */ "maxRatio": number; set(property:"maxRatio", value: number): void; @@ -11604,10 +11606,10 @@ declare module dijit { * Calling onLoadDeferred.then() registers your * callback to be called only once, when the prior set('href', ...) call or * the initial href parameter to the constructor finishes loading. - * + * * This is different than an onLoad() handler which gets called any time any href * or content is loaded. - * + * */ "onLoadDeferred": Object; set(property:"onLoadDeferred", value: Object): void; @@ -11615,7 +11617,7 @@ declare module dijit { watch(property:"onLoadDeferred", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** * True if Dialog is currently displayed on screen. - * + * */ "open": boolean; set(property:"open", value: boolean): void; @@ -11624,7 +11626,7 @@ declare module dijit { /** * The document this widget belongs to. If not specified to constructor, will default to * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * + * */ "ownerDocument": Object; set(property:"ownerDocument", value: Object): void; @@ -11632,7 +11634,7 @@ declare module dijit { watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** * Parse content and create the widgets, if any. - * + * */ "parseOnLoad": boolean; set(property:"parseOnLoad", value: boolean): void; @@ -11643,7 +11645,7 @@ declare module dijit { * will search for data-dojo-type (or dojoType). For backwards compatibility * reasons defaults to dojo._scopeName (which is "dojo" except when * multi-version support is used, when it will be something like dojo16, dojo20, etc.) - * + * */ "parserScope": string; set(property:"parserScope", value: string): void; @@ -11651,7 +11653,7 @@ declare module dijit { watch(property:"parserScope", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Force load of data on initialization even if pane is hidden. - * + * */ "preload": boolean; set(property:"preload", value: boolean): void; @@ -11659,7 +11661,7 @@ declare module dijit { watch(property:"preload", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * Prevent caching of data from href's by appending a timestamp to the href. - * + * */ "preventCache": boolean; set(property:"preventCache", value: boolean): void; @@ -11669,7 +11671,7 @@ declare module dijit { * A Toggle to modify the default focus behavior of a Dialog, which * is to re-focus the element which had focus before being opened. * False will disable refocusing. Default: true - * + * */ "refocus": boolean; set(property:"refocus", value: boolean): void; @@ -11677,14 +11679,14 @@ declare module dijit { watch(property:"refocus", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * Refresh (re-download) content when pane goes from hidden to shown - * + * */ "refreshOnShow": boolean; set(property:"refreshOnShow", value: boolean): void; get(property:"refreshOnShow"): boolean; watch(property:"refreshOnShow", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** - * + * */ "searchContainerNode": boolean; set(property:"searchContainerNode", value: boolean): void; @@ -11692,7 +11694,7 @@ declare module dijit { watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * pointer to original DOM node - * + * */ "srcNodeRef": HTMLElement; set(property:"srcNodeRef", value: HTMLElement): void; @@ -11702,14 +11704,14 @@ declare module dijit { * Will be "Error" if one or more of the child widgets has an invalid value, * "Incomplete" if not all of the required child widgets are filled in. Otherwise, "", * which indicates that the form is ready to be submitted. - * + * */ "state": string; set(property:"state", value: string): void; get(property:"state"): string; watch(property:"state", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "stopParser": boolean; set(property:"stopParser", value: boolean): void; @@ -11717,7 +11719,7 @@ declare module dijit { watch(property:"stopParser", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * HTML style attributes as cssText string or name/value hash - * + * */ "style": string; set(property:"style", value: string): void; @@ -11726,14 +11728,14 @@ declare module dijit { /** * Path to template (HTML file) for this widget relative to dojo.baseUrl. * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * + * */ "templatePath": string; set(property:"templatePath", value: string): void; get(property:"templatePath"): string; watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "templateString": string; set(property:"templateString", value: string): void; @@ -11741,14 +11743,14 @@ declare module dijit { watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * HTML title attribute. - * + * * For form widgets this specifies a tooltip to display when hovering over * the widget (just like the native HTML title attribute). - * + * * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's * interpreted as HTML. - * + * */ "title": string; set(property:"title", value: string): void; @@ -11757,7 +11759,7 @@ declare module dijit { /** * When this widget's title attribute is used to for a tab label, accordion pane title, etc., * this specifies the tooltip to appear when the mouse is hovered over that text. - * + * */ "tooltip": string; set(property:"tooltip", value: string): void; @@ -11766,7 +11768,7 @@ declare module dijit { /** * Should we parse the template to find widgets that might be * declared in markup inside it? (Remove for 2.0 and assume true) - * + * */ "widgetsInTemplate": boolean; set(property:"widgetsInTemplate", value: boolean): void; @@ -11776,232 +11778,232 @@ declare module dijit { * Makes the given widget a child of this widget. * Inserts specified child widget's dom node as a child of this widget's * container node, and possibly does other processing (such as layout). - * - * @param widget - * @param insertIndex Optional + * + * @param widget + * @param insertIndex Optional */ addChild(widget: dijit._WidgetBase, insertIndex?: number): void; /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: String, value?: Object): any; /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: Object, value?: Object): any; /** - * + * */ buildRendering(): void; /** * Cancels an in-flight download of content - * + * */ cancel(): void; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: Function): any; /** * You can call this function directly, ex. in the event that you * programmatically add a widget to the form after the form has been * initialized. - * - * @param inStartup + * + * @param inStartup */ connectChildren(inStartup: boolean): void; /** - * - * @param params - * @param srcNodeRef + * + * @param params + * @param srcNodeRef */ create(params: any, srcNodeRef: any): void; /** * Wrapper to setTimeout to avoid deferred functions executing * after the originating widget has been destroyed. * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. + * + * @param fcn Function reference. + * @param delay OptionalDelay, defaults to 0. */ defer(fcn: Function, delay?: number): Object; /** - * + * */ destroy(): void; /** * Destroy all the widgets inside the ContentPane and empty containerNode - * - * @param preserveDom + * + * @param preserveDom */ destroyDescendants(preserveDom: boolean): void; /** * Destroy the ContentPane and its contents - * - * @param preserveDom + * + * @param preserveDom */ destroyRecursive(preserveDom: boolean): void; /** * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. */ destroyRendering(preserveDom?: boolean): void; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Disconnects handle created by connect. - * - * @param handle + * + * @param handle */ disconnect(handle: any): void; /** * Deprecated method. Applications no longer need to call this. Remove for 2.0. - * + * */ disconnectChildren(): void; /** * Used by widgets to signal that a synthetic event occurred, ex: - * + * * myWidget.emit("attrmodified-selectedChildWidget", {}). * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. * Also calls onType() method, if present, and returns value from that method. * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional + * + * @param type + * @param eventObj Optional + * @param callbackArgs Optional */ emit(type: String, eventObj?: Object, callbackArgs?: any[]): any; /** @@ -12010,14 +12012,14 @@ declare module dijit { * After the user has pressed the submit button, the Dialog * first calls onExecute() to notify the container to hide the * dialog and restore focus to wherever it used to be. - * + * * Then this method is called. - * - * @param formContents + * + * @param formContents */ execute(formContents: Object): void; /** - * + * */ focus(): void; /** @@ -12025,15 +12027,15 @@ declare module dijit { * Get a named property from a widget. The property may * potentially be retrieved via a getter method. If no getter is defined, this * just retrieves the object's property. - * + * * For example, if the widget has properties foo and bar * and a method named _getFooAttr(), calling: * myWidget.get("foo") would be equivalent to calling * widget._getFooAttr() and myWidget.get("bar") * would be equivalent to the expression * widget.bar2 - * - * @param name The property to get. + * + * @param name The property to get. */ get(name: any): any; /** @@ -12041,93 +12043,93 @@ declare module dijit { * is this widget. Note that it does not return all descendants, but rather just direct children. * Analogous to Node.childNodes, * except containing widgets rather than DOMNodes. - * + * * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) * outside of this.containerNode. - * + * * Note that the array returned is a simple array. Application code should not assume * existence of methods like forEach(). - * + * */ getChildren(): any[]; /** * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. * This method should generally be avoided as it returns widgets declared in templates, which are * supposed to be internal/hidden, but it's left here for back-compat reasons. - * + * */ getDescendants(): any[]; /** * Gets the index of the child in this container or -1 if not found - * - * @param child + * + * @param child */ getIndexOfChild(child: dijit._WidgetBase): any; /** * Returns the parent widget of this widget. - * + * */ getParent(): any; /** - * + * */ getValues(): any; /** * Returns true if widget has child widgets, i.e. if this.containerNode contains widgets. - * + * */ hasChildren(): boolean; /** * Hide the dialog - * + * */ hide(): any; /** * Function that should grab the content specified via href. - * - * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. + * + * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. */ ioMethod(args: Object): any; /** * Return true if this widget can currently be focused * and false if not - * + * */ isFocusable(): any; /** * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * + * */ isLeftToRight(): any; /** * Returns true if all of the widgets are valid. * Deprecated, will be removed in 2.0. Use get("state") instead. - * + * */ isValid: {(): boolean}; /** - * - * @param params - * @param node - * @param ctor + * + * @param params + * @param node + * @param ctor */ markupFactory(params: any, node: any, ctor: any): any; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: String, func: Function): any; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: Function, func: Function): any; /** * Track specified handles and remove/destroy them when this instance is destroyed, unless they were * already removed/destroyed manually. - * + * */ own(): any; /** @@ -12136,9 +12138,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: String): any; /** @@ -12147,9 +12149,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: String): any; /** @@ -12158,9 +12160,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position: String): any; /** @@ -12169,9 +12171,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: number): any; /** @@ -12180,9 +12182,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: number): any; /** @@ -12191,17 +12193,17 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, DocumentFragment, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: number): any; /** - * + * */ postCreate(): void; /** - * + * */ postMixInProperties(): void; /** @@ -12209,124 +12211,124 @@ declare module dijit { * cancels any currently in-flight requests * posts "loading..." message * sends XHR to download new data - * + * */ refresh(): any; /** * Removes the passed widget instance from this widget but does * not destroy it. You can also pass in an integer indicating * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget + * + * @param widget */ removeChild(widget: dijit._WidgetBase): void; /** * Removes the passed widget instance from this widget but does * not destroy it. You can also pass in an integer indicating * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget + * + * @param widget */ removeChild(widget: number): void; /** - * + * */ reset(): void; /** * See dijit/layout/_LayoutWidget.resize() for description. * Although ContentPane doesn't extend _LayoutWidget, it does implement * the same API. - * - * @param changeSize - * @param resultSize + * + * @param changeSize + * @param resultSize */ resize(changeSize: any, resultSize: any): void; /** * Set a property on a widget * Sets named properties on a widget which may potentially be handled by a * setter in the widget. - * + * * For example, if the widget has properties foo and bar * and a method named _setFooAttr(), calling * myWidget.set("foo", "Howdy!") would be equivalent to calling * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) * would be equivalent to the statement widget.bar = 3; - * + * * set() may also be called with a hash of name/value pairs, ex: - * + * * myWidget.set({ * foo: "Howdy", * bar: 3 * }); * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. + * + * @param name The property to set. + * @param value The value to set in the property. */ set(name: any, value: any): any; /** * Deprecated. Use set() instead. - * - * @param attr - * @param value + * + * @param attr + * @param value */ setAttribute(attr: String, value: any): void; /** * Deprecated. Use set('content', ...) instead. - * - * @param data + * + * @param data */ setContent(data: String): void; /** * Deprecated. Use set('content', ...) instead. - * - * @param data + * + * @param data */ setContent(data: HTMLElement): void; /** * Deprecated. Use set('content', ...) instead. - * - * @param data + * + * @param data */ setContent(data: NodeList): void; /** * Deprecated. Use set('href', ...) instead. - * - * @param href + * + * @param href */ setHref(href: String): any; /** * Deprecated. Use set('href', ...) instead. - * - * @param href + * + * @param href */ setHref(href: URL): any; /** - * - * @param val + * + * @param val */ setValues(val: any): any; /** * Display the dialog - * + * */ show(): any; /** * Call startup() on all children including non _Widget ones like dojo/dnd/Source objects - * + * */ startup(): void; /** * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * + * * Subscribes to the specified topic and calls the specified method * of this object and registers for unsubscribe() on widget destroy. - * + * * Provide widget-specific analog to dojo.subscribe, except with the * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback + * + * @param t The topic + * @param method The callback */ subscribe(t: String, method: Function): any; /** @@ -12334,38 +12336,38 @@ declare module dijit { * When a widget is cast to a string, this method will be used to generate the * output. Currently, it does not implement any sort of reversible * serialization. - * + * */ toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. - * + * */ uninitialize(): boolean; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Unsubscribes handle created by this.subscribe. * Also removes handle from this widget's list of subscriptions - * - * @param handle + * + * @param handle */ unsubscribe(handle: Object): void; /** * returns if the form is valid - same as isValid - but * provides a few additional (ui-specific) features: - * + * * it will highlight any sub-widgets that are not valid * it will call focus() on the first invalid sub-widget - * + * */ validate(): any; /** * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. + * + * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched + * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. */ watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; /** @@ -12378,7 +12380,7 @@ declare module dijit { * focus moved to something outside of it, or the user * clicked somewhere outside of it, or the widget was * hidden. - * + * */ onBlur(): void; /** @@ -12386,58 +12388,58 @@ declare module dijit { * Developer shouldn't override or connect to this method; * it's a private communication device between the TooltipDialog * and the thing that opened it (ex: dijit/form/DropDownButton) - * + * */ onCancel(): void; /** * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onClick(event: any): void; /** * Called when this widget is being displayed as a popup (ex: a Calendar popped * up from a DateTextBox), and it is hidden. * This is called from the dijit.popup code, and should not be called directly. - * + * * Also used as a parameter for children of dijit/layout/StackContainer or subclasses. * Callback if a user tries to close the child. Child will be closed if this function returns true. - * + * */ onClose(): boolean; /** * Called on DOM faults, require faults etc. in content. - * + * * In order to display an error message in the pane, return * the error message from this method, as an HTML string. - * + * * By default (if this method is not overriden), it returns * nothing, so the error message is just printed to the console. - * - * @param error + * + * @param error */ onContentError(error: Error): void; /** * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onDblClick(event: any): void; /** * Called when download is finished. - * + * */ onDownloadEnd(): void; /** * Called when download error occurs. - * + * * In order to display an error message in the pane, return * the error message from this method, as an HTML string. - * + * * Default behavior (if this method is not overriden) is to display * the error message inside the pane. - * - * @param error + * + * @param error */ onDownloadError(error: Error): any; /** @@ -12445,7 +12447,7 @@ declare module dijit { * The string returned by this function will be the html * that tells the user we are loading something. * Override with your own function if you want to change text. - * + * */ onDownloadStart(): any; /** @@ -12453,113 +12455,113 @@ declare module dijit { * Developer shouldn't override or connect to this method; * it's a private communication device between the TooltipDialog * and the thing that opened it (ex: dijit/form/DropDownButton) - * + * */ onExecute(): void; /** * Called when the widget becomes "active" because * it or a widget inside of it either has focus, or has recently * been clicked. - * + * */ onFocus(): void; /** * Called when another widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onHide(): void; /** * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event + * + * @param event key Event */ onKeyDown(event: any): void; /** * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event + * + * @param event key Event */ onKeyPress(event: any): void; /** * Connect to this function to receive notifications of keys being released. - * - * @param event key Event + * + * @param event key Event */ onKeyUp(event: any): void; /** * Event hook, is called after everything is loaded and widgetified - * - * @param data + * + * @param data */ onLoad(data: any): void; /** * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseDown(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseEnter(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseLeave(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseMove(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOut(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOver(event: any): void; /** * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseUp(event: any): void; /** * Called when this widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onShow(): void; /** * Event hook, is called before old content is cleared - * + * */ onUnload(): void; /** * Stub function to connect to if you want to do something * (like disable/enable a submit button) when the valid * state changes on the form as a whole. - * + * * Deprecated. Will be removed in 2.0. Use watch("state", ...) instead. - * - * @param isValid + * + * @param isValid */ onValidStateChange(isValid: boolean): void; } @@ -12571,15 +12573,15 @@ declare module dijit { * Pops up a modal dialog window, blocking access to the screen * and also graying out the screen Dialog is extended from * ContentPane so it supports all the same parameters (href, etc.). - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree + * + * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. + * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree */ class Dialog extends dijit.layout.ContentPane implements dijit._TemplatedMixin, dijit.form._FormMixin, dijit._DialogMixin, dijit._CssStateMixin { constructor(params?: Object, srcNodeRef?: HTMLElement); /** * True if mouse was pressed while over this widget, and hasn't been released yet - * + * */ "active": boolean; set(property:"active", value: boolean): void; @@ -12588,7 +12590,7 @@ declare module dijit { /** * Object to which attach points and events will be scoped. Defaults * to 'this'. - * + * */ "attachScope": Object; set(property:"attachScope", value: Object): void; @@ -12597,44 +12599,44 @@ declare module dijit { /** * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute * for each XXX attribute to be mapped to the DOM. - * + * * attributeMap sets up a "binding" between attributes (aka properties) * of the widget and the widget's DOM. * Changes to widget attributes listed in attributeMap will be * reflected into the DOM. - * + * * For example, calling set('title', 'hello') * on a TitlePane will automatically cause the TitlePane's DOM to update * with the new title. - * + * * attributeMap is a hash where the key is an attribute of the widget, * and the value reflects a binding to a: - * + * * DOM node attribute * focus: {node: "focusNode", type: "attribute"} * Maps this.focus to this.focusNode.focus - * + * * DOM node innerHTML * title: { node: "titleNode", type: "innerHTML" } * Maps this.title to this.titleNode.innerHTML - * + * * DOM node innerText * title: { node: "titleNode", type: "innerText" } * Maps this.title to this.titleNode.innerText - * + * * DOM node CSS class * myClass: { node: "domNode", type: "class" } * Maps this.myClass to this.domNode.className - * + * * If the value is an array, then each element in the array matches one of the * formats of the above list. - * + * * There are also some shorthands for backwards compatibility: - * + * * string --> { node: string, type: "attribute" }, for example: * "focusNode" ---> { node: "focusNode", type: "attribute" } * "" --> { node: "domNode", type: "attribute" } - * + * */ "attributeMap": Object; set(property:"attributeMap", value: Object): void; @@ -12644,21 +12646,21 @@ declare module dijit { * A Toggle to modify the default focus behavior of a Dialog, which * is to focus on the first dialog element after opening the dialog. * False will disable autofocusing. Default: true - * + * */ "autofocus": boolean; set(property:"autofocus", value: boolean): void; get(property:"autofocus"): boolean; watch(property:"autofocus", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** - * + * */ "baseClass": string; set(property:"baseClass", value: string): void; get(property:"baseClass"): string; watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "class": string; set(property:"class", value: string): void; @@ -12666,7 +12668,7 @@ declare module dijit { watch(property:"class", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Dialog show [x] icon to close itself, and ESC key will close the dialog. - * + * */ "closable": boolean; set(property:"closable", value: boolean): void; @@ -12676,24 +12678,24 @@ declare module dijit { * Designates where children of the source DOM node will be placed. * "Children" in this case refers to both DOM nodes and widgets. * For example, for myWidget: - * + * *
* here's a plain DOM node * and a widget * and another plain DOM node *
* containerNode would point to: - * + * * here's a plain DOM node * and a widget * and another plain DOM node * In templated widgets, "containerNode" is set via a * data-dojo-attach-point assignment. - * + * * containerNode must be defined for any widget that accepts innerHTML * (like ContentPane or BorderContainer or even Button), and conversely * is null for widgets that don't, like TextBox. - * + * */ "containerNode": HTMLElement; set(property:"containerNode", value: HTMLElement): void; @@ -12703,14 +12705,14 @@ declare module dijit { * The innerHTML of the ContentPane. * Note that the initialization parameter / argument to set("content", ...) * can be a String, DomNode, Nodelist, or _Widget. - * + * */ "content": string; set(property:"content", value: string): void; get(property:"content"): string; watch(property:"content", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "cssStateNodes": Object; set(property:"cssStateNodes", value: Object): void; @@ -12720,17 +12722,17 @@ declare module dijit { * Bi-directional support, as defined by the HTML DIR * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's * default direction. - * + * */ "dir": string; set(property:"dir", value: string): void; get(property:"dir"): string; watch(property:"dir", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * * false - don't adjust size of children * true - if there is a single visible child widget, set it's size to however big the ContentPane is - * + * */ "doLayout": boolean; set(property:"doLayout", value: boolean): void; @@ -12741,7 +12743,7 @@ declare module dijit { * Nodes may by assigned to other properties, usually through the * template system's data-dojo-attach-point syntax, but the domNode * property is the canonical "top level" node in widget UI. - * + * */ "domNode": HTMLElement; set(property:"domNode", value: HTMLElement): void; @@ -12751,7 +12753,7 @@ declare module dijit { * Toggles the movable aspect of the Dialog. If true, Dialog * can be dragged by it's title. If false it will remain centered * in the viewport. - * + * */ "draggable": boolean; set(property:"draggable", value: boolean): void; @@ -12759,7 +12761,7 @@ declare module dijit { watch(property:"draggable", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * The time in milliseconds it takes the dialog to fade in and out - * + * */ "duration": number; set(property:"duration", value: number): void; @@ -12767,7 +12769,7 @@ declare module dijit { watch(property:"duration", callback:{(property?:string, oldValue?:number, newValue?: number):void}) :{unwatch():void} /** * Message that shows if an error occurs - * + * */ "errorMessage": string; set(property:"errorMessage", value: string): void; @@ -12776,7 +12778,7 @@ declare module dijit { /** * Extract visible content from inside of .... . * I.e., strip and (and it's contents) from the href - * + * */ "extractContent": boolean; set(property:"extractContent", value: boolean): void; @@ -12785,7 +12787,7 @@ declare module dijit { /** * This widget or a widget it contains has focus, or is "active" because * it was recently clicked. - * + * */ "focused": boolean; set(property:"focused", value: boolean): void; @@ -12793,7 +12795,7 @@ declare module dijit { watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * True if cursor is over this widget - * + * */ "hovering": boolean; set(property:"hovering", value: boolean): void; @@ -12804,7 +12806,7 @@ declare module dijit { * Set this at construction if you want to load data externally when the * pane is shown. (Set preload=true to load it immediately.) * Changing href after creation doesn't have any effect; Use set('href', ...); - * + * */ "href": string; set(property:"href", value: string): void; @@ -12815,7 +12817,7 @@ declare module dijit { * system. If the developer passes an ID which is known not to be * unique, the specified ID is ignored and the system-generated ID is * used instead. - * + * */ "id": string; set(property:"id", value: string): void; @@ -12823,9 +12825,9 @@ declare module dijit { watch(property:"id", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Parameters to pass to xhrGet() request, for example: - * + * *
- * + * */ "ioArgs": Object; set(property:"ioArgs", value: Object): void; @@ -12834,7 +12836,7 @@ declare module dijit { /** * Indicates that this widget will call resize() on it's child widgets * when they become visible. - * + * */ "isLayoutContainer": boolean; set(property:"isLayoutContainer", value: boolean): void; @@ -12844,10 +12846,10 @@ declare module dijit { * True if the ContentPane has data in it, either specified * during initialization (via href or inline content), or set * via set('content', ...) / set('href', ...) - * + * * False if it doesn't have any content, or if ContentPane is * still in the process of downloading href. - * + * */ "isLoaded": boolean; set(property:"isLoaded", value: boolean): void; @@ -12858,7 +12860,7 @@ declare module dijit { * as defined by the HTML LANG attribute. * Value must be among the list of locales specified during by the Dojo bootstrap, * formatted according to RFC 3066 (like en-us). - * + * */ "lang": string; set(property:"lang", value: string): void; @@ -12866,7 +12868,7 @@ declare module dijit { watch(property:"lang", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Message that shows while downloading - * + * */ "loadingMessage": string; set(property:"loadingMessage", value: string): void; @@ -12874,7 +12876,7 @@ declare module dijit { watch(property:"loadingMessage", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Maximum size to allow the dialog to expand to, relative to viewport size - * + * */ "maxRatio": number; set(property:"maxRatio", value: number): void; @@ -12885,10 +12887,10 @@ declare module dijit { * Calling onLoadDeferred.then() registers your * callback to be called only once, when the prior set('href', ...) call or * the initial href parameter to the constructor finishes loading. - * + * * This is different than an onLoad() handler which gets called any time any href * or content is loaded. - * + * */ "onLoadDeferred": Object; set(property:"onLoadDeferred", value: Object): void; @@ -12896,7 +12898,7 @@ declare module dijit { watch(property:"onLoadDeferred", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** * True if Dialog is currently displayed on screen. - * + * */ "open": boolean; set(property:"open", value: boolean): void; @@ -12905,7 +12907,7 @@ declare module dijit { /** * The document this widget belongs to. If not specified to constructor, will default to * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * + * */ "ownerDocument": Object; set(property:"ownerDocument", value: Object): void; @@ -12913,7 +12915,7 @@ declare module dijit { watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** * Parse content and create the widgets, if any. - * + * */ "parseOnLoad": boolean; set(property:"parseOnLoad", value: boolean): void; @@ -12924,7 +12926,7 @@ declare module dijit { * will search for data-dojo-type (or dojoType). For backwards compatibility * reasons defaults to dojo._scopeName (which is "dojo" except when * multi-version support is used, when it will be something like dojo16, dojo20, etc.) - * + * */ "parserScope": string; set(property:"parserScope", value: string): void; @@ -12932,7 +12934,7 @@ declare module dijit { watch(property:"parserScope", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Force load of data on initialization even if pane is hidden. - * + * */ "preload": boolean; set(property:"preload", value: boolean): void; @@ -12940,7 +12942,7 @@ declare module dijit { watch(property:"preload", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * Prevent caching of data from href's by appending a timestamp to the href. - * + * */ "preventCache": boolean; set(property:"preventCache", value: boolean): void; @@ -12950,7 +12952,7 @@ declare module dijit { * A Toggle to modify the default focus behavior of a Dialog, which * is to re-focus the element which had focus before being opened. * False will disable refocusing. Default: true - * + * */ "refocus": boolean; set(property:"refocus", value: boolean): void; @@ -12958,14 +12960,14 @@ declare module dijit { watch(property:"refocus", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * Refresh (re-download) content when pane goes from hidden to shown - * + * */ "refreshOnShow": boolean; set(property:"refreshOnShow", value: boolean): void; get(property:"refreshOnShow"): boolean; watch(property:"refreshOnShow", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** - * + * */ "searchContainerNode": boolean; set(property:"searchContainerNode", value: boolean): void; @@ -12973,7 +12975,7 @@ declare module dijit { watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * pointer to original DOM node - * + * */ "srcNodeRef": HTMLElement; set(property:"srcNodeRef", value: HTMLElement): void; @@ -12983,14 +12985,14 @@ declare module dijit { * Will be "Error" if one or more of the child widgets has an invalid value, * "Incomplete" if not all of the required child widgets are filled in. Otherwise, "", * which indicates that the form is ready to be submitted. - * + * */ "state": string; set(property:"state", value: string): void; get(property:"state"): string; watch(property:"state", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "stopParser": boolean; set(property:"stopParser", value: boolean): void; @@ -12998,7 +13000,7 @@ declare module dijit { watch(property:"stopParser", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * HTML style attributes as cssText string or name/value hash - * + * */ "style": string; set(property:"style", value: string): void; @@ -13007,14 +13009,14 @@ declare module dijit { /** * Path to template (HTML file) for this widget relative to dojo.baseUrl. * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * + * */ "templatePath": string; set(property:"templatePath", value: string): void; get(property:"templatePath"): string; watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "templateString": string; set(property:"templateString", value: string): void; @@ -13022,14 +13024,14 @@ declare module dijit { watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * HTML title attribute. - * + * * For form widgets this specifies a tooltip to display when hovering over * the widget (just like the native HTML title attribute). - * + * * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's * interpreted as HTML. - * + * */ "title": string; set(property:"title", value: string): void; @@ -13038,7 +13040,7 @@ declare module dijit { /** * When this widget's title attribute is used to for a tab label, accordion pane title, etc., * this specifies the tooltip to appear when the mouse is hovered over that text. - * + * */ "tooltip": string; set(property:"tooltip", value: string): void; @@ -13048,232 +13050,232 @@ declare module dijit { * Makes the given widget a child of this widget. * Inserts specified child widget's dom node as a child of this widget's * container node, and possibly does other processing (such as layout). - * - * @param widget - * @param insertIndex Optional + * + * @param widget + * @param insertIndex Optional */ addChild(widget: dijit._WidgetBase, insertIndex?: number): void; /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: String, value?: Object): any; /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: Object, value?: Object): any; /** - * + * */ buildRendering(): void; /** * Cancels an in-flight download of content - * + * */ cancel(): void; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: Function): any; /** * You can call this function directly, ex. in the event that you * programmatically add a widget to the form after the form has been * initialized. - * - * @param inStartup + * + * @param inStartup */ connectChildren(inStartup: boolean): void; /** - * - * @param params - * @param srcNodeRef + * + * @param params + * @param srcNodeRef */ create(params: any, srcNodeRef: any): void; /** * Wrapper to setTimeout to avoid deferred functions executing * after the originating widget has been destroyed. * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. + * + * @param fcn Function reference. + * @param delay OptionalDelay, defaults to 0. */ defer(fcn: Function, delay?: number): Object; /** - * + * */ destroy(): void; /** * Destroy all the widgets inside the ContentPane and empty containerNode - * - * @param preserveDom + * + * @param preserveDom */ destroyDescendants(preserveDom?: boolean): void; /** * Destroy the ContentPane and its contents - * - * @param preserveDom + * + * @param preserveDom */ destroyRecursive(preserveDom?: boolean): void; /** * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. */ destroyRendering(preserveDom?: boolean): void; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Disconnects handle created by connect. - * - * @param handle + * + * @param handle */ disconnect(handle: any): void; /** * Deprecated method. Applications no longer need to call this. Remove for 2.0. - * + * */ disconnectChildren(): void; /** * Used by widgets to signal that a synthetic event occurred, ex: - * + * * myWidget.emit("attrmodified-selectedChildWidget", {}). * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. * Also calls onType() method, if present, and returns value from that method. * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional + * + * @param type + * @param eventObj Optional + * @param callbackArgs Optional */ emit(type: String, eventObj?: Object, callbackArgs?: any[]): any; /** @@ -13282,14 +13284,14 @@ declare module dijit { * After the user has pressed the submit button, the Dialog * first calls onExecute() to notify the container to hide the * dialog and restore focus to wherever it used to be. - * + * * Then this method is called. - * - * @param formContents + * + * @param formContents */ execute(formContents: Object): void; /** - * + * */ focus(): void; /** @@ -13297,15 +13299,15 @@ declare module dijit { * Get a named property from a widget. The property may * potentially be retrieved via a getter method. If no getter is defined, this * just retrieves the object's property. - * + * * For example, if the widget has properties foo and bar * and a method named _getFooAttr(), calling: * myWidget.get("foo") would be equivalent to calling * widget._getFooAttr() and myWidget.get("bar") * would be equivalent to the expression * widget.bar2 - * - * @param name The property to get. + * + * @param name The property to get. */ get(name: any): any; /** @@ -13313,93 +13315,93 @@ declare module dijit { * is this widget. Note that it does not return all descendants, but rather just direct children. * Analogous to Node.childNodes, * except containing widgets rather than DOMNodes. - * + * * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) * outside of this.containerNode. - * + * * Note that the array returned is a simple array. Application code should not assume * existence of methods like forEach(). - * + * */ getChildren(): any[]; /** * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. * This method should generally be avoided as it returns widgets declared in templates, which are * supposed to be internal/hidden, but it's left here for back-compat reasons. - * + * */ getDescendants(): any[]; /** * Gets the index of the child in this container or -1 if not found - * - * @param child + * + * @param child */ getIndexOfChild(child: dijit._WidgetBase): any; /** * Returns the parent widget of this widget. - * + * */ getParent(): any; /** - * + * */ getValues(): any; /** * Returns true if widget has child widgets, i.e. if this.containerNode contains widgets. - * + * */ hasChildren(): boolean; /** * Hide the dialog - * + * */ hide(): any; /** * Function that should grab the content specified via href. - * - * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. + * + * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. */ ioMethod(args: Object): any; /** * Return true if this widget can currently be focused * and false if not - * + * */ isFocusable(): any; /** * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * + * */ isLeftToRight(): any; /** * Returns true if all of the widgets are valid. * Deprecated, will be removed in 2.0. Use get("state") instead. - * + * */ isValid: {(): boolean}; /** - * - * @param params - * @param node - * @param ctor + * + * @param params + * @param node + * @param ctor */ markupFactory(params: any, node: any, ctor: any): any; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: String, func: Function): any; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: Function, func: Function): any; /** * Track specified handles and remove/destroy them when this instance is destroyed, unless they were * already removed/destroyed manually. - * + * */ own(): any; /** @@ -13408,9 +13410,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: String): any; /** @@ -13419,9 +13421,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: String): any; /** @@ -13430,9 +13432,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: String): any; /** @@ -13441,9 +13443,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: number): any; /** @@ -13452,9 +13454,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: number): any; /** @@ -13463,17 +13465,17 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: number): any; /** - * + * */ postCreate(): void; /** - * + * */ postMixInProperties(): void; /** @@ -13481,124 +13483,124 @@ declare module dijit { * cancels any currently in-flight requests * posts "loading..." message * sends XHR to download new data - * + * */ refresh(): any; /** * Removes the passed widget instance from this widget but does * not destroy it. You can also pass in an integer indicating * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget + * + * @param widget */ removeChild(widget: dijit._WidgetBase): void; /** * Removes the passed widget instance from this widget but does * not destroy it. You can also pass in an integer indicating * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget + * + * @param widget */ removeChild(widget: number): void; /** - * + * */ reset(): void; /** * See dijit/layout/_LayoutWidget.resize() for description. * Although ContentPane doesn't extend _LayoutWidget, it does implement * the same API. - * - * @param changeSize - * @param resultSize + * + * @param changeSize + * @param resultSize */ resize(changeSize: any, resultSize: any): void; /** * Set a property on a widget * Sets named properties on a widget which may potentially be handled by a * setter in the widget. - * + * * For example, if the widget has properties foo and bar * and a method named _setFooAttr(), calling * myWidget.set("foo", "Howdy!") would be equivalent to calling * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) * would be equivalent to the statement widget.bar = 3; - * + * * set() may also be called with a hash of name/value pairs, ex: - * + * * myWidget.set({ * foo: "Howdy", * bar: 3 * }); * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. + * + * @param name The property to set. + * @param value The value to set in the property. */ set(name: any, value: any): any; /** * Deprecated. Use set() instead. - * - * @param attr - * @param value + * + * @param attr + * @param value */ setAttribute(attr: String, value: any): void; /** * Deprecated. Use set('content', ...) instead. - * - * @param data + * + * @param data */ setContent(data: String): void; /** * Deprecated. Use set('content', ...) instead. - * - * @param data + * + * @param data */ setContent(data: HTMLElement): void; /** * Deprecated. Use set('content', ...) instead. - * - * @param data + * + * @param data */ setContent(data: NodeList): void; /** * Deprecated. Use set('href', ...) instead. - * - * @param href + * + * @param href */ setHref(href: String): any; /** * Deprecated. Use set('href', ...) instead. - * - * @param href + * + * @param href */ setHref(href: URL): any; /** - * - * @param val + * + * @param val */ setValues(val: any): any; /** * Display the dialog - * + * */ show(): any; /** * Call startup() on all children including non _Widget ones like dojo/dnd/Source objects - * + * */ startup(): void; /** * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * + * * Subscribes to the specified topic and calls the specified method * of this object and registers for unsubscribe() on widget destroy. - * + * * Provide widget-specific analog to dojo.subscribe, except with the * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback + * + * @param t The topic + * @param method The callback */ subscribe(t: String, method: Function): any; /** @@ -13606,38 +13608,38 @@ declare module dijit { * When a widget is cast to a string, this method will be used to generate the * output. Currently, it does not implement any sort of reversible * serialization. - * + * */ toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. - * + * */ uninitialize(): boolean; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Unsubscribes handle created by this.subscribe. * Also removes handle from this widget's list of subscriptions - * - * @param handle + * + * @param handle */ unsubscribe(handle: Object): void; /** * returns if the form is valid - same as isValid - but * provides a few additional (ui-specific) features: - * + * * it will highlight any sub-widgets that are not valid * it will call focus() on the first invalid sub-widget - * + * */ validate(): any; /** * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. + * + * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched + * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. */ watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; /** @@ -13650,7 +13652,7 @@ declare module dijit { * focus moved to something outside of it, or the user * clicked somewhere outside of it, or the widget was * hidden. - * + * */ onBlur(): void; /** @@ -13658,58 +13660,58 @@ declare module dijit { * Developer shouldn't override or connect to this method; * it's a private communication device between the TooltipDialog * and the thing that opened it (ex: dijit/form/DropDownButton) - * + * */ onCancel(): void; /** * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onClick(event: any): void; /** * Called when this widget is being displayed as a popup (ex: a Calendar popped * up from a DateTextBox), and it is hidden. * This is called from the dijit.popup code, and should not be called directly. - * + * * Also used as a parameter for children of dijit/layout/StackContainer or subclasses. * Callback if a user tries to close the child. Child will be closed if this function returns true. - * + * */ onClose(): boolean; /** * Called on DOM faults, require faults etc. in content. - * + * * In order to display an error message in the pane, return * the error message from this method, as an HTML string. - * + * * By default (if this method is not overriden), it returns * nothing, so the error message is just printed to the console. - * - * @param error + * + * @param error */ onContentError(error: Error): void; /** * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onDblClick(event: any): void; /** * Called when download is finished. - * + * */ onDownloadEnd(): void; /** * Called when download error occurs. - * + * * In order to display an error message in the pane, return * the error message from this method, as an HTML string. - * + * * Default behavior (if this method is not overriden) is to display * the error message inside the pane. - * - * @param error + * + * @param error */ onDownloadError(error: Error): any; /** @@ -13717,7 +13719,7 @@ declare module dijit { * The string returned by this function will be the html * that tells the user we are loading something. * Override with your own function if you want to change text. - * + * */ onDownloadStart(): any; /** @@ -13725,113 +13727,113 @@ declare module dijit { * Developer shouldn't override or connect to this method; * it's a private communication device between the TooltipDialog * and the thing that opened it (ex: dijit/form/DropDownButton) - * + * */ onExecute(): void; /** * Called when the widget becomes "active" because * it or a widget inside of it either has focus, or has recently * been clicked. - * + * */ onFocus(): void; /** * Called when another widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onHide(): void; /** * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event + * + * @param event key Event */ onKeyDown(event: any): void; /** * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event + * + * @param event key Event */ onKeyPress(event: any): void; /** * Connect to this function to receive notifications of keys being released. - * - * @param event key Event + * + * @param event key Event */ onKeyUp(event: any): void; /** * Event hook, is called after everything is loaded and widgetified - * - * @param data + * + * @param data */ onLoad(data: any): void; /** * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseDown(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseEnter(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseLeave(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseMove(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOut(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOver(event: any): void; /** * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseUp(event: any): void; /** * Called when this widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onShow(): void; /** * Event hook, is called before old content is cleared - * + * */ onUnload(): void; /** * Stub function to connect to if you want to do something * (like disable/enable a submit button) when the valid * state changes on the form as a whole. - * + * * Deprecated. Will be removed in 2.0. Use watch("state", ...) instead. - * - * @param isValid + * + * @param isValid */ onValidStateChange(isValid: boolean): void; } @@ -13839,41 +13841,41 @@ declare module dijit { /** * Permalink: http://dojotoolkit.org/api/1.9/dijit/Dialog._DialogBase.html * - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified, replace srcNodeRef with my generated DOM tree. + * + * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. + * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified, replace srcNodeRef with my generated DOM tree. */ class _DialogBase extends dijit._TemplatedMixin implements dijit.form._FormMixin, dijit._DialogMixin, dijit._CssStateMixin { constructor(params?: Object, srcNodeRef?: HTMLElement); /** * True if mouse was pressed while over this widget, and hasn't been released yet - * + * */ "active": boolean; /** * Object to which attach points and events will be scoped. Defaults * to 'this'. - * + * */ "attachScope": Object; /** * A Toggle to modify the default focus behavior of a Dialog, which * is to focus on the first dialog element after opening the dialog. * False will disable autofocusing. Default: true - * + * */ "autofocus": boolean; /** - * + * */ "baseClass": string; /** * Dialog show [x] icon to close itself, and ESC key will close the dialog. - * + * */ "closable": boolean; /** - * + * */ "cssStateNodes": Object; /** @@ -13881,88 +13883,88 @@ declare module dijit { * This ContentPane parameter doesn't make sense for Dialog, since Dialog * is never a child of a layout container, nor can you specify the size of * Dialog in order to control the size of an inner widget. - * + * */ "doLayout": boolean; /** * Toggles the movable aspect of the Dialog. If true, Dialog * can be dragged by it's title. If false it will remain centered * in the viewport. - * + * */ "draggable": boolean; /** * The time in milliseconds it takes the dialog to fade in and out - * + * */ "duration": number; /** * True if cursor is over this widget - * + * */ "hovering": boolean; /** * Maximum size to allow the dialog to expand to, relative to viewport size - * + * */ "maxRatio": number; /** * True if Dialog is currently displayed on screen. - * + * */ "open": boolean; /** * A Toggle to modify the default focus behavior of a Dialog, which * is to re-focus the element which had focus before being opened. * False will disable refocusing. Default: true - * + * */ "refocus": boolean; /** - * + * */ "searchContainerNode": boolean; /** * Will be "Error" if one or more of the child widgets has an invalid value, * "Incomplete" if not all of the required child widgets are filled in. Otherwise, "", * which indicates that the form is ready to be submitted. - * + * */ "state": string; /** * Path to template (HTML file) for this widget relative to dojo.baseUrl. * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * + * */ "templatePath": string; /** - * + * */ "templateString": string; /** * Construct the UI for this widget from a template, setting this.domNode. - * + * */ buildRendering(): void; /** * You can call this function directly, ex. in the event that you * programmatically add a widget to the form after the form has been * initialized. - * - * @param inStartup + * + * @param inStartup */ connectChildren(inStartup: boolean): void; /** - * + * */ destroy(): void; /** - * + * */ destroyRendering(): void; /** * Deprecated method. Applications no longer need to call this. Remove for 2.0. - * + * */ disconnectChildren(): void; /** @@ -13971,64 +13973,64 @@ declare module dijit { * After the user has pressed the submit button, the Dialog * first calls onExecute() to notify the container to hide the * dialog and restore focus to wherever it used to be. - * + * * Then this method is called. - * - * @param formContents + * + * @param formContents */ execute(formContents: Object): void; /** - * + * */ focus(): void; /** - * + * */ getValues(): any; /** * Hide the dialog - * + * */ hide(): any; /** * Returns true if all of the widgets are valid. * Deprecated, will be removed in 2.0. Use get("state") instead. - * + * */ isValid: {(): boolean}; /** - * + * */ postCreate(): void; /** - * + * */ postMixInProperties(): void; /** - * + * */ reset(): void; /** - * - * @param val + * + * @param val */ setValues(val: any): any; /** * Display the dialog - * + * */ show(): any; /** - * + * */ startup(): void; /** * returns if the form is valid - same as isValid - but * provides a few additional (ui-specific) features: - * + * * it will highlight any sub-widgets that are not valid * it will call focus() on the first invalid sub-widget - * + * */ validate(): any; /** @@ -14041,7 +14043,7 @@ declare module dijit { * Developer shouldn't override or connect to this method; * it's a private communication device between the TooltipDialog * and the thing that opened it (ex: dijit/form/DropDownButton) - * + * */ onCancel(): void; /** @@ -14049,24 +14051,24 @@ declare module dijit { * Developer shouldn't override or connect to this method; * it's a private communication device between the TooltipDialog * and the thing that opened it (ex: dijit/form/DropDownButton) - * + * */ onExecute(): void; /** * Called when data has been loaded from an href. * Unlike most other callbacks, this function can be connected to (via dojo.connect) * but should not be overridden. - * + * */ onLoad(): void; /** * Stub function to connect to if you want to do something * (like disable/enable a submit button) when the valid * state changes on the form as a whole. - * + * * Deprecated. Will be removed in 2.0. Use watch("state", ...) instead. - * - * @param isValid + * + * @param isValid */ onValidStateChange(isValid: boolean): void; } @@ -14076,38 +14078,38 @@ declare module dijit { * Controls the various active "levels" on the page, starting with the * stuff initially visible on the page (at z-index 0), and then having an entry for * each Dialog shown. - * + * */ interface _DialogLevelManager { /** * Called when the specified dialog is hidden/destroyed, after the fade-out * animation ends, in order to reset page focus, fix the underlay, etc. * If the specified dialog isn't open then does nothing. - * + * * Caller is responsible for either setting display:none on the dialog domNode, * or calling dijit/popup.hide(), or removing it from the page DOM. - * - * @param dialog + * + * @param dialog */ hide(dialog: dijit._WidgetBase): void; /** * Returns true if specified Dialog is the top in the task - * - * @param dialog + * + * @param dialog */ isTop(dialog: dijit._WidgetBase): boolean; /** * Call right before fade-in animation for new dialog. * Saves current focus, displays/adjusts underlay for new dialog, * and sets the z-index of the dialog itself. - * + * * New dialog will be displayed on top of all currently displayed dialogs. - * + * * Caller is responsible for setting focus in new dialog after the fade-in * animation completes. - * - * @param dialog - * @param underlayAttrs + * + * @param dialog + * @param underlayAttrs */ show(dialog: dijit._WidgetBase, underlayAttrs: Object): void; } @@ -14119,15 +14121,15 @@ declare module dijit { * A keyboard accessible color-picking widget * Grid showing various colors, so the user can pick a certain color. * Can be used standalone, or as a popup. - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree + * + * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. + * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree */ class ColorPalette extends dijit._Widget implements dijit._TemplatedMixin, dijit._PaletteMixin { constructor(params?: Object, srcNodeRef?: HTMLElement); /** * True if mouse was pressed while over this widget, and hasn't been released yet - * + * */ "active": boolean; set(property:"active", value: boolean): void; @@ -14136,7 +14138,7 @@ declare module dijit { /** * Object to which attach points and events will be scoped. Defaults * to 'this'. - * + * */ "attachScope": Object; set(property:"attachScope", value: Object): void; @@ -14145,51 +14147,51 @@ declare module dijit { /** * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute * for each XXX attribute to be mapped to the DOM. - * + * * attributeMap sets up a "binding" between attributes (aka properties) * of the widget and the widget's DOM. * Changes to widget attributes listed in attributeMap will be * reflected into the DOM. - * + * * For example, calling set('title', 'hello') * on a TitlePane will automatically cause the TitlePane's DOM to update * with the new title. - * + * * attributeMap is a hash where the key is an attribute of the widget, * and the value reflects a binding to a: - * + * * DOM node attribute * focus: {node: "focusNode", type: "attribute"} * Maps this.focus to this.focusNode.focus - * + * * DOM node innerHTML * title: { node: "titleNode", type: "innerHTML" } * Maps this.title to this.titleNode.innerHTML - * + * * DOM node innerText * title: { node: "titleNode", type: "innerText" } * Maps this.title to this.titleNode.innerText - * + * * DOM node CSS class * myClass: { node: "domNode", type: "class" } * Maps this.myClass to this.domNode.className - * + * * If the value is an array, then each element in the array matches one of the * formats of the above list. - * + * * There are also some shorthands for backwards compatibility: - * + * * string --> { node: string, type: "attribute" }, for example: * "focusNode" ---> { node: "focusNode", type: "attribute" } * "" --> { node: "domNode", type: "attribute" } - * + * */ "attributeMap": Object; set(property:"attributeMap", value: Object): void; get(property:"attributeMap"): Object; watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** - * + * */ "baseClass": string; set(property:"baseClass", value: string): void; @@ -14197,14 +14199,14 @@ declare module dijit { watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * CSS class applied to each cell in the palette - * + * */ "cellClass": string; set(property:"cellClass", value: string): void; get(property:"cellClass"): string; watch(property:"cellClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "class": string; set(property:"class", value: string): void; @@ -14214,24 +14216,24 @@ declare module dijit { * Designates where children of the source DOM node will be placed. * "Children" in this case refers to both DOM nodes and widgets. * For example, for myWidget: - * + * *
* here's a plain DOM node * and a widget * and another plain DOM node *
* containerNode would point to: - * + * * here's a plain DOM node * and a widget * and another plain DOM node * In templated widgets, "containerNode" is set via a * data-dojo-attach-point assignment. - * + * * containerNode must be defined for any widget that accepts innerHTML * (like ContentPane or BorderContainer or even Button), and conversely * is null for widgets that don't, like TextBox. - * + * */ "containerNode": HTMLElement; set(property:"containerNode", value: HTMLElement): void; @@ -14240,18 +14242,18 @@ declare module dijit { /** * Subclasses may define a cssStateNodes property that lists sub-nodes within the widget that * need CSS classes applied on mouse hover/press and focus. - * + * * Each entry in this optional hash is a an attach-point name (like "upArrowButton") mapped to a CSS class name * (like "dijitUpArrowButton"). Example: - * + * * { * "upArrowButton": "dijitUpArrowButton", * "downArrowButton": "dijitDownArrowButton" * } * The above will set the CSS class dijitUpArrowButton to the this.upArrowButton DOMNode when it - * + * * is hovered, etc. - * + * */ "cssStateNodes": Object; set(property:"cssStateNodes", value: Object): void; @@ -14259,7 +14261,7 @@ declare module dijit { watch(property:"cssStateNodes", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** * Number of milliseconds before a held key or button becomes typematic - * + * */ "defaultTimeout": number; set(property:"defaultTimeout", value: number): void; @@ -14269,7 +14271,7 @@ declare module dijit { * Bi-directional support, as defined by the HTML DIR * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's * default direction. - * + * */ "dir": string; set(property:"dir", value: string): void; @@ -14280,7 +14282,7 @@ declare module dijit { * Nodes may by assigned to other properties, usually through the * template system's data-dojo-attach-point syntax, but the domNode * property is the canonical "top level" node in widget UI. - * + * */ "domNode": HTMLElement; set(property:"domNode", value: HTMLElement): void; @@ -14289,7 +14291,7 @@ declare module dijit { /** * Constructor for Object created for each cell of the palette. * dyeClass should implement the dijit/_PaletteMixin.__Dye interface. - * + * */ "dyeClass": Function; set(property:"dyeClass", value: Function): void; @@ -14298,7 +14300,7 @@ declare module dijit { /** * This widget or a widget it contains has focus, or is "active" because * it was recently clicked. - * + * */ "focused": boolean; set(property:"focused", value: boolean): void; @@ -14306,7 +14308,7 @@ declare module dijit { watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * True if cursor is over this widget - * + * */ "hovering": boolean; set(property:"hovering", value: boolean): void; @@ -14317,7 +14319,7 @@ declare module dijit { * system. If the developer passes an ID which is known not to be * unique, the specified ID is ignored and the system-generated ID is * used instead. - * + * */ "id": string; set(property:"id", value: string): void; @@ -14328,7 +14330,7 @@ declare module dijit { * as defined by the HTML LANG attribute. * Value must be among the list of locales specified during by the Dojo bootstrap, * formatted according to RFC 3066 (like en-us). - * + * */ "lang": string; set(property:"lang", value: string): void; @@ -14337,7 +14339,7 @@ declare module dijit { /** * The document this widget belongs to. If not specified to constructor, will default to * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * + * */ "ownerDocument": Object; set(property:"ownerDocument", value: Object): void; @@ -14345,14 +14347,14 @@ declare module dijit { watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** * Size of grid, either "7x10" or "3x4". - * + * */ "palette": string; set(property:"palette", value: string): void; get(property:"palette"): string; watch(property:"palette", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "searchContainerNode": boolean; set(property:"searchContainerNode", value: boolean): void; @@ -14360,7 +14362,7 @@ declare module dijit { watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * pointer to original DOM node - * + * */ "srcNodeRef": HTMLElement; set(property:"srcNodeRef", value: HTMLElement): void; @@ -14368,7 +14370,7 @@ declare module dijit { watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} /** * HTML style attributes as cssText string or name/value hash - * + * */ "style": string; set(property:"style", value: string): void; @@ -14376,7 +14378,7 @@ declare module dijit { watch(property:"style", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Widget tab index. - * + * */ "tabIndex": string; set(property:"tabIndex", value: string): void; @@ -14385,7 +14387,7 @@ declare module dijit { /** * Path to template (HTML file) for this widget relative to dojo.baseUrl. * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * + * */ "templatePath": string; set(property:"templatePath", value: string): void; @@ -14393,7 +14395,7 @@ declare module dijit { watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * The template of this widget. - * + * */ "templateString": string; set(property:"templateString", value: string): void; @@ -14403,7 +14405,7 @@ declare module dijit { * Fraction of time used to change the typematic timer between events * 1.0 means that each typematic event fires at defaultTimeout intervals * Less than 1.0 means that each typematic event fires at an increasing faster rate - * + * */ "timeoutChangeRate": number; set(property:"timeoutChangeRate", value: number): void; @@ -14411,14 +14413,14 @@ declare module dijit { watch(property:"timeoutChangeRate", callback:{(property?:string, oldValue?:number, newValue?: number):void}) :{unwatch():void} /** * HTML title attribute. - * + * * For form widgets this specifies a tooltip to display when hovering over * the widget (just like the native HTML title attribute). - * + * * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's * interpreted as HTML. - * + * */ "title": string; set(property:"title", value: string): void; @@ -14427,7 +14429,7 @@ declare module dijit { /** * When this widget's title attribute is used to for a tab label, accordion pane title, etc., * this specifies the tooltip to appear when the mouse is hovered over that text. - * + * */ "tooltip": string; set(property:"tooltip", value: string): void; @@ -14435,7 +14437,7 @@ declare module dijit { watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Currently selected color/emoticon/etc. - * + * */ "value": string; set(property:"value", value: string): void; @@ -14443,178 +14445,178 @@ declare module dijit { watch(property:"value", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: String, value?: Object): any; /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: Object, value?: Object): any; /** - * + * */ buildRendering(): void; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: Function): any; /** * Wrapper to setTimeout to avoid deferred functions executing * after the originating widget has been destroyed. * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. + * + * @param fcn Function reference. + * @param delay OptionalDelay, defaults to 0. */ defer(fcn: Function, delay?: number): Object; /** * Destroy this widget, but not its descendants. Descendants means widgets inside of * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * + * * This method will also destroy internal widgets such as those created from a template, * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * + * * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not * depend on the current ability to destroy a widget without destroying its descendants. Generally * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets + * + * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets */ destroy(preserveDom?: boolean): void; /** * Recursively destroy the children of this widget and their * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. + * + * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. */ destroyDescendants(preserveDom?: boolean): void; /** @@ -14622,41 +14624,41 @@ declare module dijit { * This is the generic "destructor" function that all widget users * should call to cleanly discard with a widget. Once a widget is * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. */ destroyRecursive(preserveDom?: boolean): void; /** * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. */ destroyRendering(preserveDom?: boolean): void; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Disconnects handle created by connect. - * - * @param handle + * + * @param handle */ disconnect(handle: any): void; /** * Used by widgets to signal that a synthetic event occurred, ex: - * + * * myWidget.emit("attrmodified-selectedChildWidget", {}). * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. * Also calls onType() method, if present, and returns value from that method. * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional + * + * @param type + * @param eventObj Optional + * @param callbackArgs Optional */ emit(type: String, eventObj?: Object, callbackArgs?: any[]): any; /** * Focus this widget. Puts focus on the most recently focused cell. - * + * */ focus(): void; /** @@ -14664,15 +14666,15 @@ declare module dijit { * Get a named property from a widget. The property may * potentially be retrieved via a getter method. If no getter is defined, this * just retrieves the object's property. - * + * * For example, if the widget has properties foo and bar * and a method named _getFooAttr(), calling: * myWidget.get("foo") would be equivalent to calling * widget._getFooAttr() and myWidget.get("bar") * would be equivalent to the expression * widget.bar2 - * - * @param name The property to get. + * + * @param name The property to get. */ get(name: any): any; /** @@ -14680,54 +14682,54 @@ declare module dijit { * is this widget. Note that it does not return all descendants, but rather just direct children. * Analogous to Node.childNodes, * except containing widgets rather than DOMNodes. - * + * * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) * outside of this.containerNode. - * + * * Note that the array returned is a simple array. Application code should not assume * existence of methods like forEach(). - * + * */ getChildren(): any[]; /** * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. * This method should generally be avoided as it returns widgets declared in templates, which are * supposed to be internal/hidden, but it's left here for back-compat reasons. - * + * */ getDescendants(): any[]; /** * Returns the parent widget of this widget. - * + * */ getParent(): any; /** * Return true if this widget can currently be focused * and false if not - * + * */ isFocusable(): any; /** * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * + * */ isLeftToRight(): any; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: String, func: Function): any; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: Function, func: Function): any; /** * Track specified handles and remove/destroy them when this instance is destroyed, unless they were * already removed/destroyed manually. - * + * */ own(): any; /** @@ -14736,9 +14738,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: String): any; /** @@ -14747,9 +14749,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: String): any; /** @@ -14758,9 +14760,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: String): any; /** @@ -14769,9 +14771,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: number): any; /** @@ -14780,9 +14782,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: number): any; /** @@ -14791,13 +14793,13 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: number): any; /** - * + * */ postCreate(): void; /** @@ -14805,62 +14807,62 @@ declare module dijit { * but before the widget template is instantiated. Especially * useful to set properties that are referenced in the widget * template. - * + * */ postMixInProperties(): void; /** * Set a property on a widget * Sets named properties on a widget which may potentially be handled by a * setter in the widget. - * + * * For example, if the widget has properties foo and bar * and a method named _setFooAttr(), calling * myWidget.set("foo", "Howdy!") would be equivalent to calling * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) * would be equivalent to the statement widget.bar = 3; - * + * * set() may also be called with a hash of name/value pairs, ex: - * + * * myWidget.set({ * foo: "Howdy", * bar: 3 * }); * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. + * + * @param name The property to set. + * @param value The value to set in the property. */ set(name: any, value: any): any; /** * Deprecated. Use set() instead. - * - * @param attr - * @param value + * + * @param attr + * @param value */ setAttribute(attr: String, value: any): void; /** * Processing after the DOM fragment is added to the document * Called after a widget and its children have been created and added to the page, * and all related widgets have finished their create() cycle, up through postCreate(). - * + * * Note that startup() may be called while the widget is still hidden, for example if the widget is * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. * For widgets that need to do layout, it's best to put that layout code inside resize(), and then * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * + * */ startup(): void; /** * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * + * * Subscribes to the specified topic and calls the specified method * of this object and registers for unsubscribe() on widget destroy. - * + * * Provide widget-specific analog to dojo.subscribe, except with the * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback + * + * @param t The topic + * @param method The callback */ subscribe(t: String, method: Function): any; /** @@ -14868,29 +14870,29 @@ declare module dijit { * When a widget is cast to a string, this method will be used to generate the * output. Currently, it does not implement any sort of reversible * serialization. - * + * */ toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. - * + * */ uninitialize(): boolean; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Unsubscribes handle created by this.subscribe. * Also removes handle from this widget's list of subscriptions - * - * @param handle + * + * @param handle */ unsubscribe(handle: Object): void; /** * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. + * + * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched + * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. */ watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; /** @@ -14903,120 +14905,120 @@ declare module dijit { * focus moved to something outside of it, or the user * clicked somewhere outside of it, or the widget was * hidden. - * + * */ onBlur(): void; /** * Callback when a cell is selected. - * - * @param value Value corresponding to cell. + * + * @param value Value corresponding to cell. */ onChange(value: String): void; /** * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onClick(event: any): void; /** * Called when this widget is being displayed as a popup (ex: a Calendar popped * up from a DateTextBox), and it is hidden. * This is called from the dijit.popup code, and should not be called directly. - * + * * Also used as a parameter for children of dijit/layout/StackContainer or subclasses. * Callback if a user tries to close the child. Child will be closed if this function returns true. - * + * */ onClose(): boolean; /** * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onDblClick(event: any): void; /** * Called when the widget becomes "active" because * it or a widget inside of it either has focus, or has recently * been clicked. - * + * */ onFocus(): void; /** * Called when another widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onHide(): void; /** * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event + * + * @param event key Event */ onKeyDown(event: any): void; /** * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event + * + * @param event key Event */ onKeyPress(event: any): void; /** * Connect to this function to receive notifications of keys being released. - * - * @param event key Event + * + * @param event key Event */ onKeyUp(event: any): void; /** * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseDown(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseEnter(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseLeave(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseMove(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOut(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOver(event: any): void; /** * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseUp(event: any): void; /** * Called when this widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onShow(): void; } @@ -15026,104 +15028,104 @@ declare module dijit { * * Object associated with each cell in a ColorPalette palette. * Implements dijit/Dye. - * - * @param alias English name of the color. - * @param row Vertical position in grid. - * @param col - * @param title Localized name of the color. + * + * @param alias English name of the color. + * @param row Vertical position in grid. + * @param col + * @param title Localized name of the color. */ class _Color extends dojo._base.Color { constructor(alias: String, row: number, col: any, title: String); /** - * + * */ "a": number; /** - * + * */ "b": number; /** - * + * */ "g": number; /** - * + * */ "hcTemplate": string; /** - * + * */ "r": number; /** - * + * */ "template": string; /** - * - * @param cell - * @param blankGif + * + * @param cell + * @param blankGif */ fillCell(cell: HTMLElement, blankGif: String): void; /** * Note that although dijit._Color is initialized with a value like "white" getValue() always * returns a hex value - * + * */ getValue(): any; /** * makes sure that the object has correct attributes - * + * */ sanitize(): void; /** * Takes a named string, hex string, array of rgb or rgba values, * an object with r, g, b, and a properties, or another Color object * and sets this color instance to that value. - * - * @param color + * + * @param color */ setColor(color: any[]): Function; /** * Takes a named string, hex string, array of rgb or rgba values, * an object with r, g, b, and a properties, or another Color object * and sets this color instance to that value. - * - * @param color + * + * @param color */ setColor(color: String): Function; /** * Takes a named string, hex string, array of rgb or rgba values, * an object with r, g, b, and a properties, or another Color object * and sets this color instance to that value. - * - * @param color + * + * @param color */ setColor(color: Object): Function; /** * Returns a css color string in rgb(a) representation - * - * @param includeAlpha Optional + * + * @param includeAlpha Optional */ toCss(includeAlpha: boolean): String; /** * Returns a CSS color string in hexadecimal representation - * + * */ toHex(): String; /** * Returns 3 component array of rgb values - * + * */ toRgb(): any[]; /** * Returns a 4 component array of rgba values from the color * represented by this object. - * + * */ toRgba(): any[]; /** * Returns a visual representation of the color - * + * */ toString(): any; } @@ -15134,15 +15136,15 @@ declare module dijit { * * An accessible fieldset that can be expanded or collapsed via * its legend. Fieldset extends dijit.TitlePane. - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree + * + * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. + * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree */ class Fieldset extends dijit.TitlePane { constructor(params?: Object, srcNodeRef?: HTMLElement); /** * True if mouse was pressed while over this widget, and hasn't been released yet - * + * */ "active": boolean; set(property:"active", value: boolean): void; @@ -15151,7 +15153,7 @@ declare module dijit { /** * Object to which attach points and events will be scoped. Defaults * to 'this'. - * + * */ "attachScope": Object; set(property:"attachScope", value: Object): void; @@ -15160,44 +15162,44 @@ declare module dijit { /** * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute * for each XXX attribute to be mapped to the DOM. - * + * * attributeMap sets up a "binding" between attributes (aka properties) * of the widget and the widget's DOM. * Changes to widget attributes listed in attributeMap will be * reflected into the DOM. - * + * * For example, calling set('title', 'hello') * on a TitlePane will automatically cause the TitlePane's DOM to update * with the new title. - * + * * attributeMap is a hash where the key is an attribute of the widget, * and the value reflects a binding to a: - * + * * DOM node attribute * focus: {node: "focusNode", type: "attribute"} * Maps this.focus to this.focusNode.focus - * + * * DOM node innerHTML * title: { node: "titleNode", type: "innerHTML" } * Maps this.title to this.titleNode.innerHTML - * + * * DOM node innerText * title: { node: "titleNode", type: "innerText" } * Maps this.title to this.titleNode.innerText - * + * * DOM node CSS class * myClass: { node: "domNode", type: "class" } * Maps this.myClass to this.domNode.className - * + * * If the value is an array, then each element in the array matches one of the * formats of the above list. - * + * * There are also some shorthands for backwards compatibility: - * + * * string --> { node: string, type: "attribute" }, for example: * "focusNode" ---> { node: "focusNode", type: "attribute" } * "" --> { node: "domNode", type: "attribute" } - * + * */ "attributeMap": Object; set(property:"attributeMap", value: Object): void; @@ -15205,14 +15207,14 @@ declare module dijit { watch(property:"attributeMap", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** * The root className to use for the various states of this widget - * + * */ "baseClass": string; set(property:"baseClass", value: string): void; get(property:"baseClass"): string; watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "class": string; set(property:"class", value: string): void; @@ -15222,24 +15224,24 @@ declare module dijit { * Designates where children of the source DOM node will be placed. * "Children" in this case refers to both DOM nodes and widgets. * For example, for myWidget: - * + * *
* here's a plain DOM node * and a widget * and another plain DOM node *
* containerNode would point to: - * + * * here's a plain DOM node * and a widget * and another plain DOM node * In templated widgets, "containerNode" is set via a * data-dojo-attach-point assignment. - * + * * containerNode must be defined for any widget that accepts innerHTML * (like ContentPane or BorderContainer or even Button), and conversely * is null for widgets that don't, like TextBox. - * + * */ "containerNode": HTMLElement; set(property:"containerNode", value: HTMLElement): void; @@ -15249,7 +15251,7 @@ declare module dijit { * The innerHTML of the ContentPane. * Note that the initialization parameter / argument to set("content", ...) * can be a String, DomNode, Nodelist, or _Widget. - * + * */ "content": string; set(property:"content", value: string): void; @@ -15258,18 +15260,18 @@ declare module dijit { /** * Subclasses may define a cssStateNodes property that lists sub-nodes within the widget that * need CSS classes applied on mouse hover/press and focus. - * + * * Each entry in this optional hash is a an attach-point name (like "upArrowButton") mapped to a CSS class name * (like "dijitUpArrowButton"). Example: - * + * * { * "upArrowButton": "dijitUpArrowButton", * "downArrowButton": "dijitDownArrowButton" * } * The above will set the CSS class dijitUpArrowButton to the this.upArrowButton DOMNode when it - * + * * is hovered, etc. - * + * */ "cssStateNodes": Object; set(property:"cssStateNodes", value: Object): void; @@ -15279,7 +15281,7 @@ declare module dijit { * Bi-directional support, as defined by the HTML DIR * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's * default direction. - * + * */ "dir": string; set(property:"dir", value: string): void; @@ -15290,7 +15292,7 @@ declare module dijit { * This ContentPane parameter doesn't make sense for TitlePane, since TitlePane * is never a child of a layout container, nor should TitlePane try to control * the size of an inner widget. - * + * */ "doLayout": boolean; set(property:"doLayout", value: boolean): void; @@ -15301,7 +15303,7 @@ declare module dijit { * Nodes may by assigned to other properties, usually through the * template system's data-dojo-attach-point syntax, but the domNode * property is the canonical "top level" node in widget UI. - * + * */ "domNode": HTMLElement; set(property:"domNode", value: HTMLElement): void; @@ -15309,7 +15311,7 @@ declare module dijit { watch(property:"domNode", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} /** * Time in milliseconds to fade in/fade out - * + * */ "duration": number; set(property:"duration", value: number): void; @@ -15317,7 +15319,7 @@ declare module dijit { watch(property:"duration", callback:{(property?:string, oldValue?:number, newValue?: number):void}) :{unwatch():void} /** * Message that shows if an error occurs - * + * */ "errorMessage": string; set(property:"errorMessage", value: string): void; @@ -15326,7 +15328,7 @@ declare module dijit { /** * Extract visible content from inside of .... . * I.e., strip and (and it's contents) from the href - * + * */ "extractContent": boolean; set(property:"extractContent", value: boolean): void; @@ -15335,7 +15337,7 @@ declare module dijit { /** * This widget or a widget it contains has focus, or is "active" because * it was recently clicked. - * + * */ "focused": boolean; set(property:"focused", value: boolean): void; @@ -15343,7 +15345,7 @@ declare module dijit { watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * True if cursor is over this widget - * + * */ "hovering": boolean; set(property:"hovering", value: boolean): void; @@ -15354,7 +15356,7 @@ declare module dijit { * Set this at construction if you want to load data externally when the * pane is shown. (Set preload=true to load it immediately.) * Changing href after creation doesn't have any effect; Use set('href', ...); - * + * */ "href": string; set(property:"href", value: string): void; @@ -15365,7 +15367,7 @@ declare module dijit { * system. If the developer passes an ID which is known not to be * unique, the specified ID is ignored and the system-generated ID is * used instead. - * + * */ "id": string; set(property:"id", value: string): void; @@ -15373,9 +15375,9 @@ declare module dijit { watch(property:"id", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Parameters to pass to xhrGet() request, for example: - * + * *
- * + * */ "ioArgs": Object; set(property:"ioArgs", value: Object): void; @@ -15384,7 +15386,7 @@ declare module dijit { /** * Indicates that this widget will call resize() on it's child widgets * when they become visible. - * + * */ "isLayoutContainer": boolean; set(property:"isLayoutContainer", value: boolean): void; @@ -15394,10 +15396,10 @@ declare module dijit { * True if the ContentPane has data in it, either specified * during initialization (via href or inline content), or set * via set('content', ...) / set('href', ...) - * + * * False if it doesn't have any content, or if ContentPane is * still in the process of downloading href. - * + * */ "isLoaded": boolean; set(property:"isLoaded", value: boolean): void; @@ -15408,7 +15410,7 @@ declare module dijit { * as defined by the HTML LANG attribute. * Value must be among the list of locales specified during by the Dojo bootstrap, * formatted according to RFC 3066 (like en-us). - * + * */ "lang": string; set(property:"lang", value: string): void; @@ -15416,7 +15418,7 @@ declare module dijit { watch(property:"lang", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Message that shows while downloading - * + * */ "loadingMessage": string; set(property:"loadingMessage", value: string): void; @@ -15427,10 +15429,10 @@ declare module dijit { * Calling onLoadDeferred.then() registers your * callback to be called only once, when the prior set('href', ...) call or * the initial href parameter to the constructor finishes loading. - * + * * This is different than an onLoad() handler which gets called any time any href * or content is loaded. - * + * */ "onLoadDeferred": Object; set(property:"onLoadDeferred", value: Object): void; @@ -15438,7 +15440,7 @@ declare module dijit { watch(property:"onLoadDeferred", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** * Whether fieldset is opened or closed. - * + * */ "open": boolean; set(property:"open", value: boolean): void; @@ -15447,7 +15449,7 @@ declare module dijit { /** * The document this widget belongs to. If not specified to constructor, will default to * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * + * */ "ownerDocument": Object; set(property:"ownerDocument", value: Object): void; @@ -15455,7 +15457,7 @@ declare module dijit { watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** * Parse content and create the widgets, if any. - * + * */ "parseOnLoad": boolean; set(property:"parseOnLoad", value: boolean): void; @@ -15466,7 +15468,7 @@ declare module dijit { * will search for data-dojo-type (or dojoType). For backwards compatibility * reasons defaults to dojo._scopeName (which is "dojo" except when * multi-version support is used, when it will be something like dojo16, dojo20, etc.) - * + * */ "parserScope": string; set(property:"parserScope", value: string): void; @@ -15474,7 +15476,7 @@ declare module dijit { watch(property:"parserScope", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Force load of data on initialization even if pane is hidden. - * + * */ "preload": boolean; set(property:"preload", value: boolean): void; @@ -15482,7 +15484,7 @@ declare module dijit { watch(property:"preload", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * Prevent caching of data from href's by appending a timestamp to the href. - * + * */ "preventCache": boolean; set(property:"preventCache", value: boolean): void; @@ -15490,14 +15492,14 @@ declare module dijit { watch(property:"preventCache", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * Refresh (re-download) content when pane goes from hidden to shown - * + * */ "refreshOnShow": boolean; set(property:"refreshOnShow", value: boolean): void; get(property:"refreshOnShow"): boolean; watch(property:"refreshOnShow", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** - * + * */ "searchContainerNode": boolean; set(property:"searchContainerNode", value: boolean): void; @@ -15505,14 +15507,14 @@ declare module dijit { watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * pointer to original DOM node - * + * */ "srcNodeRef": HTMLElement; set(property:"srcNodeRef", value: HTMLElement): void; get(property:"srcNodeRef"): HTMLElement; watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} /** - * + * */ "stopParser": boolean; set(property:"stopParser", value: boolean): void; @@ -15520,7 +15522,7 @@ declare module dijit { watch(property:"stopParser", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * HTML style attributes as cssText string or name/value hash - * + * */ "style": string; set(property:"style", value: string): void; @@ -15529,7 +15531,7 @@ declare module dijit { /** * Tabindex setting for the title (so users can tab to the title then * use space/enter to open/close the title pane) - * + * */ "tabIndex": string; set(property:"tabIndex", value: string): void; @@ -15538,14 +15540,14 @@ declare module dijit { /** * Path to template (HTML file) for this widget relative to dojo.baseUrl. * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * + * */ "templatePath": string; set(property:"templatePath", value: string): void; get(property:"templatePath"): string; watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "templateString": string; set(property:"templateString", value: string): void; @@ -15553,7 +15555,7 @@ declare module dijit { watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Content of the legend tag. Overrides tag if not empty. - * + * */ "title": string; set(property:"title", value: string): void; @@ -15561,7 +15563,7 @@ declare module dijit { watch(property:"title", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * Whether pane can be opened or closed by clicking the title bar. - * + * */ "toggleable": boolean; set(property:"toggleable", value: boolean): void; @@ -15570,7 +15572,7 @@ declare module dijit { /** * When this widget's title attribute is used to for a tab label, accordion pane title, etc., * this specifies the tooltip to appear when the mouse is hovered over that text. - * + * */ "tooltip": string; set(property:"tooltip", value: string): void; @@ -15580,219 +15582,219 @@ declare module dijit { * Makes the given widget a child of this widget. * Inserts specified child widget's dom node as a child of this widget's * container node, and possibly does other processing (such as layout). - * - * @param widget - * @param insertIndex Optional + * + * @param widget + * @param insertIndex Optional */ addChild(widget: dijit._WidgetBase, insertIndex?: number): void; /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: String, value?: Object): any; /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: Object, value?: Object): any; /** - * + * */ buildRendering(): void; /** * Cancels an in-flight download of content - * + * */ cancel(): void; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: Function): any; /** - * - * @param params - * @param srcNodeRef + * + * @param params + * @param srcNodeRef */ create(params: any, srcNodeRef: any): void; /** * Wrapper to setTimeout to avoid deferred functions executing * after the originating widget has been destroyed. * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. + * + * @param fcn Function reference. + * @param delay OptionalDelay, defaults to 0. */ defer(fcn: Function, delay?: number): Object; /** - * + * */ destroy(): void; /** * Destroy all the widgets inside the ContentPane and empty containerNode - * - * @param preserveDom + * + * @param preserveDom */ destroyDescendants(preserveDom?: boolean): void; /** * Destroy the ContentPane and its contents - * - * @param preserveDom + * + * @param preserveDom */ destroyRecursive(preserveDom?: boolean): void; /** * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. */ destroyRendering(preserveDom?: boolean): void; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Disconnects handle created by connect. - * - * @param handle + * + * @param handle */ disconnect(handle: any): void; /** * Used by widgets to signal that a synthetic event occurred, ex: - * + * * myWidget.emit("attrmodified-selectedChildWidget", {}). * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. * Also calls onType() method, if present, and returns value from that method. * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional + * + * @param type + * @param eventObj Optional + * @param callbackArgs Optional */ emit(type: String, eventObj?: Object, callbackArgs?: any[]): any; /** @@ -15800,15 +15802,15 @@ declare module dijit { * Get a named property from a widget. The property may * potentially be retrieved via a getter method. If no getter is defined, this * just retrieves the object's property. - * + * * For example, if the widget has properties foo and bar * and a method named _getFooAttr(), calling: * myWidget.get("foo") would be equivalent to calling * widget._getFooAttr() and myWidget.get("bar") * would be equivalent to the expression * widget.bar2 - * - * @param name The property to get. + * + * @param name The property to get. */ get(name: any): any; /** @@ -15816,78 +15818,78 @@ declare module dijit { * is this widget. Note that it does not return all descendants, but rather just direct children. * Analogous to Node.childNodes, * except containing widgets rather than DOMNodes. - * + * * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) * outside of this.containerNode. - * + * * Note that the array returned is a simple array. Application code should not assume * existence of methods like forEach(). - * + * */ getChildren(): any[]; /** * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. * This method should generally be avoided as it returns widgets declared in templates, which are * supposed to be internal/hidden, but it's left here for back-compat reasons. - * + * */ getDescendants(): any[]; /** * Gets the index of the child in this container or -1 if not found - * - * @param child + * + * @param child */ getIndexOfChild(child: dijit._WidgetBase): any; /** * Returns the parent widget of this widget. - * + * */ getParent(): any; /** * Returns true if widget has child widgets, i.e. if this.containerNode contains widgets. - * + * */ hasChildren(): boolean; /** * Function that should grab the content specified via href. - * - * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. + * + * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. */ ioMethod(args: Object): any; /** * Return true if this widget can currently be focused * and false if not - * + * */ isFocusable(): any; /** * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * + * */ isLeftToRight(): any; /** - * - * @param params - * @param node - * @param ctor + * + * @param params + * @param node + * @param ctor */ markupFactory(params: any, node: any, ctor: any): any; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: String, func: Function): any; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: Function, func: Function): any; /** * Track specified handles and remove/destroy them when this instance is destroyed, unless they were * already removed/destroyed manually. - * + * */ own(): any; /** @@ -15896,9 +15898,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: String): any; /** @@ -15907,9 +15909,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: String): any; /** @@ -15918,9 +15920,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: String): any; /** @@ -15929,9 +15931,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: number): any; /** @@ -15940,9 +15942,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: number): any; /** @@ -15951,17 +15953,17 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: number): any; /** - * + * */ postCreate(): void; /** - * + * */ postMixInProperties(): void; /** @@ -15969,116 +15971,116 @@ declare module dijit { * cancels any currently in-flight requests * posts "loading..." message * sends XHR to download new data - * + * */ refresh(): any; /** * Removes the passed widget instance from this widget but does * not destroy it. You can also pass in an integer indicating * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget + * + * @param widget */ removeChild(widget: dijit._WidgetBase): void; /** * Removes the passed widget instance from this widget but does * not destroy it. You can also pass in an integer indicating * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget + * + * @param widget */ removeChild(widget: number): void; /** * See dijit/layout/_LayoutWidget.resize() for description. * Although ContentPane doesn't extend _LayoutWidget, it does implement * the same API. - * - * @param changeSize - * @param resultSize + * + * @param changeSize + * @param resultSize */ resize(changeSize: any, resultSize: any): void; /** * Set a property on a widget * Sets named properties on a widget which may potentially be handled by a * setter in the widget. - * + * * For example, if the widget has properties foo and bar * and a method named _setFooAttr(), calling * myWidget.set("foo", "Howdy!") would be equivalent to calling * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) * would be equivalent to the statement widget.bar = 3; - * + * * set() may also be called with a hash of name/value pairs, ex: - * + * * myWidget.set({ * foo: "Howdy", * bar: 3 * }); * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. + * + * @param name The property to set. + * @param value The value to set in the property. */ set(name: any, value: any): any; /** * Deprecated. Use set() instead. - * - * @param attr - * @param value + * + * @param attr + * @param value */ setAttribute(attr: String, value: any): void; /** * Deprecated. Use set('content', ...) instead. - * - * @param data + * + * @param data */ setContent(data: String): void; /** * Deprecated. Use set('content', ...) instead. - * - * @param data + * + * @param data */ setContent(data: HTMLElement): void; /** * Deprecated. Use set('content', ...) instead. - * - * @param data + * + * @param data */ setContent(data: NodeList): void; /** * Deprecated. Use set('href', ...) instead. - * - * @param href + * + * @param href */ setHref(href: String): any; /** * Deprecated. Use set('href', ...) instead. - * - * @param href + * + * @param href */ setHref(href: URL): any; /** * Deprecated. Use set('title', ...) instead. - * - * @param title + * + * @param title */ setTitle(title: String): void; /** * Call startup() on all children including non _Widget ones like dojo/dnd/Source objects - * + * */ startup(): void; /** * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * + * * Subscribes to the specified topic and calls the specified method * of this object and registers for unsubscribe() on widget destroy. - * + * * Provide widget-specific analog to dojo.subscribe, except with the * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback + * + * @param t The topic + * @param method The callback */ subscribe(t: String, method: Function): any; /** @@ -16086,29 +16088,29 @@ declare module dijit { * When a widget is cast to a string, this method will be used to generate the * output. Currently, it does not implement any sort of reversible * serialization. - * + * */ toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. - * + * */ uninitialize(): boolean; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Unsubscribes handle created by this.subscribe. * Also removes handle from this widget's list of subscriptions - * - * @param handle + * + * @param handle */ unsubscribe(handle: Object): void; /** * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. + * + * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched + * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. */ watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; /** @@ -16121,58 +16123,58 @@ declare module dijit { * focus moved to something outside of it, or the user * clicked somewhere outside of it, or the widget was * hidden. - * + * */ onBlur(): void; /** * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onClick(event: any): void; /** * Called when this widget is being displayed as a popup (ex: a Calendar popped * up from a DateTextBox), and it is hidden. * This is called from the dijit.popup code, and should not be called directly. - * + * * Also used as a parameter for children of dijit/layout/StackContainer or subclasses. * Callback if a user tries to close the child. Child will be closed if this function returns true. - * + * */ onClose(): boolean; /** * Called on DOM faults, require faults etc. in content. - * + * * In order to display an error message in the pane, return * the error message from this method, as an HTML string. - * + * * By default (if this method is not overriden), it returns * nothing, so the error message is just printed to the console. - * - * @param error + * + * @param error */ onContentError(error: Error): void; /** * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onDblClick(event: any): void; /** * Called when download is finished. - * + * */ onDownloadEnd(): void; /** * Called when download error occurs. - * + * * In order to display an error message in the pane, return * the error message from this method, as an HTML string. - * + * * Default behavior (if this method is not overriden) is to display * the error message inside the pane. - * - * @param error + * + * @param error */ onDownloadError(error: Error): any; /** @@ -16180,103 +16182,103 @@ declare module dijit { * The string returned by this function will be the html * that tells the user we are loading something. * Override with your own function if you want to change text. - * + * */ onDownloadStart(): any; /** * Called when the widget becomes "active" because * it or a widget inside of it either has focus, or has recently * been clicked. - * + * */ onFocus(): void; /** * Called when another widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onHide(): void; /** * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event + * + * @param event key Event */ onKeyDown(event: any): void; /** * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event + * + * @param event key Event */ onKeyPress(event: any): void; /** * Connect to this function to receive notifications of keys being released. - * - * @param event key Event + * + * @param event key Event */ onKeyUp(event: any): void; /** * Event hook, is called after everything is loaded and widgetified - * - * @param data + * + * @param data */ onLoad(data: any): void; /** * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseDown(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseEnter(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseLeave(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseMove(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOut(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOver(event: any): void; /** * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseUp(event: any): void; /** * Called when this widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onShow(): void; /** * Event hook, is called before old content is cleared - * + * */ onUnload(): void; } @@ -16284,9 +16286,9 @@ declare module dijit { * Permalink: http://dojotoolkit.org/api/1.9/dijit/DropDownMenu.html * * A menu, without features for context menu (Meaning, drop down menu) - * - * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. - * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree + * + * @param params Hash of initialization parameters for widget, including scalar values (like title, duration etc.)and functions, typically callbacks like onClick.The hash can contain any of the widget's properties, excluding read-only properties. + * @param srcNodeRef OptionalIf a srcNodeRef (DOM node) is specified:use srcNodeRef.innerHTML as my contentsif this is a behavioral widget then apply behavior to that srcNodeRefotherwise, replace srcNodeRef with my generated DOM tree */ class DropDownMenu extends dijit._MenuBase implements dijit._OnDijitClickMixin { constructor(params?: Object, srcNodeRef?: HTMLElement); @@ -16296,7 +16298,7 @@ declare module dijit { * since TAB is a navigation operation and not a selection one. * For Windows apps, pressing the ALT key focuses the menubar menus (similar to TAB navigation) but the * menu is not active (ie no dropdown) until an item is clicked. - * + * */ "activated": boolean; set(property:"activated", value: boolean): void; @@ -16304,7 +16306,7 @@ declare module dijit { watch(property:"activated", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * True if mouse was pressed while over this widget, and hasn't been released yet - * + * */ "active": boolean; set(property:"active", value: boolean): void; @@ -16313,7 +16315,7 @@ declare module dijit { /** * Object to which attach points and events will be scoped. Defaults * to 'this'. - * + * */ "attachScope": Object; set(property:"attachScope", value: Object): void; @@ -16322,44 +16324,44 @@ declare module dijit { /** * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute * for each XXX attribute to be mapped to the DOM. - * + * * attributeMap sets up a "binding" between attributes (aka properties) * of the widget and the widget's DOM. * Changes to widget attributes listed in attributeMap will be * reflected into the DOM. - * + * * For example, calling set('title', 'hello') * on a TitlePane will automatically cause the TitlePane's DOM to update * with the new title. - * + * * attributeMap is a hash where the key is an attribute of the widget, * and the value reflects a binding to a: - * + * * DOM node attribute * focus: {node: "focusNode", type: "attribute"} * Maps this.focus to this.focusNode.focus - * + * * DOM node innerHTML * title: { node: "titleNode", type: "innerHTML" } * Maps this.title to this.titleNode.innerHTML - * + * * DOM node innerText * title: { node: "titleNode", type: "innerText" } * Maps this.title to this.titleNode.innerText - * + * * DOM node CSS class * myClass: { node: "domNode", type: "class" } * Maps this.myClass to this.domNode.className - * + * * If the value is an array, then each element in the array matches one of the * formats of the above list. - * + * * There are also some shorthands for backwards compatibility: - * + * * string --> { node: string, type: "attribute" }, for example: * "focusNode" ---> { node: "focusNode", type: "attribute" } * "" --> { node: "domNode", type: "attribute" } - * + * */ "attributeMap": Object; set(property:"attributeMap", value: Object): void; @@ -16368,21 +16370,21 @@ declare module dijit { /** * A toggle to control whether or not a Menu gets focused when opened as a drop down from a MenuBar * or DropDownButton/ComboButton. Note though that it always get focused when opened via the keyboard. - * + * */ "autoFocus": boolean; set(property:"autoFocus", value: boolean): void; get(property:"autoFocus"): boolean; watch(property:"autoFocus", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** - * + * */ "baseClass": string; set(property:"baseClass", value: string): void; get(property:"baseClass"): string; watch(property:"baseClass", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "class": string; set(property:"class", value: string): void; @@ -16392,24 +16394,24 @@ declare module dijit { * Designates where children of the source DOM node will be placed. * "Children" in this case refers to both DOM nodes and widgets. * For example, for myWidget: - * + * *
* here's a plain DOM node * and a widget * and another plain DOM node *
* containerNode would point to: - * + * * here's a plain DOM node * and a widget * and another plain DOM node * In templated widgets, "containerNode" is set via a * data-dojo-attach-point assignment. - * + * * containerNode must be defined for any widget that accepts innerHTML * (like ContentPane or BorderContainer or even Button), and conversely * is null for widgets that don't, like TextBox. - * + * */ "containerNode": HTMLElement; set(property:"containerNode", value: HTMLElement): void; @@ -16418,18 +16420,18 @@ declare module dijit { /** * Subclasses may define a cssStateNodes property that lists sub-nodes within the widget that * need CSS classes applied on mouse hover/press and focus. - * + * * Each entry in this optional hash is a an attach-point name (like "upArrowButton") mapped to a CSS class name * (like "dijitUpArrowButton"). Example: - * + * * { * "upArrowButton": "dijitUpArrowButton", * "downArrowButton": "dijitDownArrowButton" * } * The above will set the CSS class dijitUpArrowButton to the this.upArrowButton DOMNode when it - * + * * is hovered, etc. - * + * */ "cssStateNodes": Object; set(property:"cssStateNodes", value: Object): void; @@ -16439,7 +16441,7 @@ declare module dijit { * Bi-directional support, as defined by the HTML DIR * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's * default direction. - * + * */ "dir": string; set(property:"dir", value: string): void; @@ -16450,7 +16452,7 @@ declare module dijit { * Nodes may by assigned to other properties, usually through the * template system's data-dojo-attach-point syntax, but the domNode * property is the canonical "top level" node in widget UI. - * + * */ "domNode": HTMLElement; set(property:"domNode", value: HTMLElement): void; @@ -16459,7 +16461,7 @@ declare module dijit { /** * This widget or a widget it contains has focus, or is "active" because * it was recently clicked. - * + * */ "focused": boolean; set(property:"focused", value: boolean): void; @@ -16467,7 +16469,7 @@ declare module dijit { watch(property:"focused", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void} /** * The currently focused child widget, or null if there isn't one - * + * */ "focusedChild": Object; set(property:"focusedChild", value: Object): void; @@ -16475,7 +16477,7 @@ declare module dijit { watch(property:"focusedChild", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** * True if cursor is over this widget - * + * */ "hovering": boolean; set(property:"hovering", value: boolean): void; @@ -16486,7 +16488,7 @@ declare module dijit { * system. If the developer passes an ID which is known not to be * unique, the specified ID is ignored and the system-generated ID is * used instead. - * + * */ "id": string; set(property:"id", value: string): void; @@ -16497,7 +16499,7 @@ declare module dijit { * as defined by the HTML LANG attribute. * Value must be among the list of locales specified during by the Dojo bootstrap, * formatted according to RFC 3066 (like en-us). - * + * */ "lang": string; set(property:"lang", value: string): void; @@ -16507,10 +16509,10 @@ declare module dijit { * If multiple characters are typed where each keystroke happens within * multiCharSearchDuration of the previous keystroke, * search for nodes matching all the keystrokes. - * + * * For example, typing "ab" will search for entries starting with * "ab" unless the delay between "a" and "b" is greater than multiCharSearchDuration. - * + * */ "multiCharSearchDuration": number; set(property:"multiCharSearchDuration", value: number): void; @@ -16519,7 +16521,7 @@ declare module dijit { /** * The document this widget belongs to. If not specified to constructor, will default to * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global - * + * */ "ownerDocument": Object; set(property:"ownerDocument", value: Object): void; @@ -16527,7 +16529,7 @@ declare module dijit { watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** * pointer to menu that displayed me - * + * */ "parentMenu": Object; set(property:"parentMenu", value: Object): void; @@ -16536,7 +16538,7 @@ declare module dijit { /** * For a passive (unclicked) Menu, number of milliseconds before hovering (without clicking) will cause * the popup to open. Default is Infinity, meaning you need to click the menu to open it. - * + * */ "passivePopupDelay": number; set(property:"passivePopupDelay", value: number): void; @@ -16545,14 +16547,14 @@ declare module dijit { /** * After a menu has been activated (by clicking on it etc.), number of milliseconds before hovering * (without clicking) another MenuItem causes that MenuItem's popup to automatically open. - * + * */ "popupDelay": number; set(property:"popupDelay", value: number): void; get(property:"popupDelay"): number; watch(property:"popupDelay", callback:{(property?:string, oldValue?:number, newValue?: number):void}) :{unwatch():void} /** - * + * */ "searchContainerNode": boolean; set(property:"searchContainerNode", value: boolean): void; @@ -16563,7 +16565,7 @@ declare module dijit { * If a submenu is open, will be set to MenuItem that displayed the submenu. OTOH, if * this Menu is in passive mode (i.e. hasn't been clicked yet), will be null, because * "selected" is not merely "hovered". - * + * */ "selected": Object; set(property:"selected", value: Object): void; @@ -16571,7 +16573,7 @@ declare module dijit { watch(property:"selected", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void} /** * pointer to original DOM node - * + * */ "srcNodeRef": HTMLElement; set(property:"srcNodeRef", value: HTMLElement): void; @@ -16579,7 +16581,7 @@ declare module dijit { watch(property:"srcNodeRef", callback:{(property?:string, oldValue?:HTMLElement, newValue?: HTMLElement):void}) :{unwatch():void} /** * HTML style attributes as cssText string or name/value hash - * + * */ "style": string; set(property:"style", value: string): void; @@ -16589,7 +16591,7 @@ declare module dijit { * Tab index of the container; same as HTML tabIndex attribute. * Note then when user tabs into the container, focus is immediately * moved to the first item in the container. - * + * */ "tabIndex": string; set(property:"tabIndex", value: string): void; @@ -16598,14 +16600,14 @@ declare module dijit { /** * Path to template (HTML file) for this widget relative to dojo.baseUrl. * Deprecated: use templateString with require([... "dojo/text!..."], ...) instead - * + * */ "templatePath": string; set(property:"templatePath", value: string): void; get(property:"templatePath"): string; watch(property:"templatePath", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * + * */ "templateString": string; set(property:"templateString", value: string): void; @@ -16613,14 +16615,14 @@ declare module dijit { watch(property:"templateString", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** * HTML title attribute. - * + * * For form widgets this specifies a tooltip to display when hovering over * the widget (just like the native HTML title attribute). - * + * * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's * interpreted as HTML. - * + * */ "title": string; set(property:"title", value: string): void; @@ -16629,210 +16631,210 @@ declare module dijit { /** * When this widget's title attribute is used to for a tab label, accordion pane title, etc., * this specifies the tooltip to appear when the mouse is hovered over that text. - * + * */ "tooltip": string; set(property:"tooltip", value: string): void; get(property:"tooltip"): string; watch(property:"tooltip", callback:{(property?:string, oldValue?:string, newValue?: string):void}) :{unwatch():void} /** - * - * @param widget - * @param insertIndex Optional + * + * @param widget + * @param insertIndex Optional */ addChild(widget: dijit._WidgetBase, insertIndex?: number): void; /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: String, value?: Object): any; /** * This method is deprecated, use get() or set() directly. - * - * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. - * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. + * + * @param name The property to get or set. If an object is passed here and nota string, its keys are used as names of attributes to be setand the value of the object as values to set in the widget. + * @param value OptionalOptional. If provided, attr() operates as a setter. If omitted,the current value of the named property is returned. */ attr(name: Object, value?: Object): any; /** * Construct the UI for this widget, setting this.domNode. * Most widgets will mixin dijit._TemplatedMixin, which implements this method. - * + * */ buildRendering(): void; /** * Selector (passed to on.selector()) used to identify MenuItem child widgets, but exclude inert children * like MenuSeparator. If subclass overrides to a string (ex: "> *"), the subclass must require dojo/query. - * - * @param node + * + * @param node */ childSelector(node: HTMLElement): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: String): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: String, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: Object, event: Function, method: Function): any; /** * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. - * + * * Connects specified obj/event to specified method of this object * and registers for disconnect() on widget destroy. - * + * * Provide widget-specific analog to dojo.connect, except with the * implicit use of this widget as the target object. * Events connected with this.connect are disconnected upon * destruction. - * - * @param obj - * @param event - * @param method + * + * @param obj + * @param event + * @param method */ connect(obj: any, event: Function, method: Function): any; /** * Deprecated. You can call this in postCreate() to attach the keyboard handlers to the container, * but the preferred method is to override _onLeftArrow() and _onRightArrow(), or * _onUpArrow() and _onDownArrow(), to call focusPrev() and focusNext(). - * - * @param prevKeyCodes Key codes for navigating to the previous child. - * @param nextKeyCodes Key codes for navigating to the next child. + * + * @param prevKeyCodes Key codes for navigating to the previous child. + * @param nextKeyCodes Key codes for navigating to the next child. */ connectKeyNavHandlers(prevKeyCodes: dojo.keys, nextKeyCodes: dojo.keys): void; /** * Wrapper to setTimeout to avoid deferred functions executing * after the originating widget has been destroyed. * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). - * - * @param fcn Function reference. - * @param delay OptionalDelay, defaults to 0. + * + * @param fcn Function reference. + * @param delay OptionalDelay, defaults to 0. */ defer(fcn: Function, delay?: number): Object; /** * Destroy this widget, but not its descendants. Descendants means widgets inside of * this.containerNode. Will also destroy any resources (including widgets) registered via this.own(). - * + * * This method will also destroy internal widgets such as those created from a template, * assuming those widgets exist inside of this.domNode but outside of this.containerNode. - * + * * For 2.0 it's planned that this method will also destroy descendant widgets, so apps should not * depend on the current ability to destroy a widget without destroying its descendants. Generally * they should use destroyRecursive() for widgets with children. - * - * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets + * + * @param preserveDom If true, this method will leave the original DOM structure alone.Note: This will not yet work with _TemplatedMixin widgets */ destroy(preserveDom?: boolean): void; /** * Recursively destroy the children of this widget and their * descendants. - * - * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. + * + * @param preserveDom OptionalIf true, the preserveDom attribute is passed to all descendantwidget's .destroy() method. Not for use with _Templatedwidgets. */ destroyDescendants(preserveDom?: boolean): void; /** @@ -16840,69 +16842,69 @@ declare module dijit { * This is the generic "destructor" function that all widget users * should call to cleanly discard with a widget. Once a widget is * destroyed, it is removed from the manager object. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structurealone of descendant Widgets. Note: This will NOT work withdijit._TemplatedMixin widgets. */ destroyRecursive(preserveDom?: boolean): void; /** * Destroys the DOM nodes associated with this widget. - * - * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. + * + * @param preserveDom OptionalIf true, this method will leave the original DOM structure aloneduring tear-down. Note: this will not work with _Templatedwidgets yet. */ destroyRendering(preserveDom?: boolean): void; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Disconnects handle created by connect. - * - * @param handle + * + * @param handle */ disconnect(handle: any): void; /** * Used by widgets to signal that a synthetic event occurred, ex: - * + * * myWidget.emit("attrmodified-selectedChildWidget", {}). * Emits an event on this.domNode named type.toLowerCase(), based on eventObj. * Also calls onType() method, if present, and returns value from that method. * By default passes eventObj to callback, but will pass callbackArgs instead, if specified. * Modifies eventObj by adding missing parameters (bubbles, cancelable, widget). - * - * @param type - * @param eventObj Optional - * @param callbackArgs Optional + * + * @param type + * @param eventObj Optional + * @param callbackArgs Optional */ emit(type: String, eventObj?: Object, callbackArgs?: any[]): any; /** * Default focus() implementation: focus the first child. - * + * */ focus(): void; /** * Focus specified child widget. - * - * @param widget Reference to container's child widget - * @param last If true and if widget has multiple focusable nodes, focus thelast one instead of the first one + * + * @param widget Reference to container's child widget + * @param last If true and if widget has multiple focusable nodes, focus thelast one instead of the first one */ focusChild(widget: dijit._WidgetBase, last: boolean): void; /** * Focus the first focusable child in the container. - * + * */ focusFirstChild(): void; /** * Focus the last focusable child in the container. - * + * */ focusLastChild(): void; /** * Focus the next widget - * + * */ focusNext(): void; /** * Focus the last focusable node in the previous widget * (ex: go to the ComboButton icon section rather than button section) - * + * */ focusPrev(): void; /** @@ -16910,15 +16912,15 @@ declare module dijit { * Get a named property from a widget. The property may * potentially be retrieved via a getter method. If no getter is defined, this * just retrieves the object's property. - * + * * For example, if the widget has properties foo and bar * and a method named _getFooAttr(), calling: * myWidget.get("foo") would be equivalent to calling * widget._getFooAttr() and myWidget.get("bar") * would be equivalent to the expression * widget.bar2 - * - * @param name The property to get. + * + * @param name The property to get. */ get(name: any): any; /** @@ -16926,65 +16928,65 @@ declare module dijit { * is this widget. Note that it does not return all descendants, but rather just direct children. * Analogous to Node.childNodes, * except containing widgets rather than DOMNodes. - * + * * The result intentionally excludes internally created widgets (a.k.a. supporting widgets) * outside of this.containerNode. - * + * * Note that the array returned is a simple array. Application code should not assume * existence of methods like forEach(). - * + * */ getChildren(): any[]; /** * Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. * This method should generally be avoided as it returns widgets declared in templates, which are * supposed to be internal/hidden, but it's left here for back-compat reasons. - * + * */ getDescendants(): any[]; /** * Gets the index of the child in this container or -1 if not found - * - * @param child + * + * @param child */ getIndexOfChild(child: dijit._WidgetBase): any; /** * Returns the parent widget of this widget. - * + * */ getParent(): any; /** * Returns true if widget has child widgets, i.e. if this.containerNode contains widgets. - * + * */ hasChildren(): boolean; /** * Return true if this widget can currently be focused * and false if not - * + * */ isFocusable(): any; /** * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) - * + * */ isLeftToRight(): any; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: String, func: Function): any; /** - * - * @param type protected - * @param func + * + * @param type protected + * @param func */ on(type: Function, func: Function): any; /** * Track specified handles and remove/destroy them when this instance is destroyed, unless they were * already removed/destroyed manually. - * + * */ own(): any; /** @@ -16993,9 +16995,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: String): any; /** @@ -17004,9 +17006,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: String): any; /** @@ -17015,9 +17017,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: String): any; /** @@ -17026,9 +17028,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: String, position?: number): any; /** @@ -17037,9 +17039,9 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: HTMLElement, position?: number): any; /** @@ -17048,13 +17050,13 @@ declare module dijit { * A convenience function provided in all _Widgets, providing a simple * shorthand mechanism to put an existing (or newly created) Widget * somewhere in the dom, and allow chaining. - * - * @param reference Widget, DOMNode, or id of widget or DOMNode - * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). + * + * @param reference Widget, DOMNode, or id of widget or DOMNode + * @param position OptionalIf reference is a widget (or id of widget), and that widget has an ".addChild" method,it will be called passing this widget instance into that method, supplying the optionalposition index passed. In this case position (if specified) should be an integer.If reference is a DOMNode (or id matching a DOMNode but not a widget),the position argument can be a numeric index or a string"first", "last", "before", or "after", same as dojo/dom-construct::place(). */ placeAt(reference: dijit._WidgetBase, position?: number): any; /** - * + * */ postCreate(): void; /** @@ -17062,82 +17064,82 @@ declare module dijit { * but before the widget template is instantiated. Especially * useful to set properties that are referenced in the widget * template. - * + * */ postMixInProperties(): void; /** * Removes the passed widget instance from this widget but does * not destroy it. You can also pass in an integer indicating * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget + * + * @param widget */ removeChild(widget: dijit._WidgetBase): void; /** * Removes the passed widget instance from this widget but does * not destroy it. You can also pass in an integer indicating * the index within the container to remove (ie, removeChild(5) removes the sixth widget). - * - * @param widget + * + * @param widget */ removeChild(widget: number): void; /** * Set a property on a widget * Sets named properties on a widget which may potentially be handled by a * setter in the widget. - * + * * For example, if the widget has properties foo and bar * and a method named _setFooAttr(), calling * myWidget.set("foo", "Howdy!") would be equivalent to calling * widget._setFooAttr("Howdy!") and myWidget.set("bar", 3) * would be equivalent to the statement widget.bar = 3; - * + * * set() may also be called with a hash of name/value pairs, ex: - * + * * myWidget.set({ * foo: "Howdy", * bar: 3 * }); * This is equivalent to calling set(foo, "Howdy") and set(bar, 3) - * - * @param name The property to set. - * @param value The value to set in the property. + * + * @param name The property to set. + * @param value The value to set in the property. */ set(name: any, value: any): any; /** * Deprecated. Use set() instead. - * - * @param attr - * @param value + * + * @param attr + * @param value */ setAttribute(attr: String, value: any): void; /** * Processing after the DOM fragment is added to the document * Called after a widget and its children have been created and added to the page, * and all related widgets have finished their create() cycle, up through postCreate(). - * + * * Note that startup() may be called while the widget is still hidden, for example if the widget is * inside a hidden dijit/Dialog or an unselected tab of a dijit/layout/TabContainer. * For widgets that need to do layout, it's best to put that layout code inside resize(), and then * extend dijit/layout/_LayoutWidget so that resize() is called when the widget is visible. - * + * */ startup(): void; /** - * + * */ startupKeyNavChildren(): void; /** * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. - * + * * Subscribes to the specified topic and calls the specified method * of this object and registers for unsubscribe() on widget destroy. - * + * * Provide widget-specific analog to dojo.subscribe, except with the * implicit use of this widget as the target object. - * - * @param t The topic - * @param method The callback + * + * @param t The topic + * @param method The callback */ subscribe(t: String, method: Function): any; /** @@ -17145,29 +17147,29 @@ declare module dijit { * When a widget is cast to a string, this method will be used to generate the * output. Currently, it does not implement any sort of reversible * serialization. - * + * */ toString(): string; /** * Deprecated. Override destroy() instead to implement custom widget tear-down * behavior. - * + * */ uninitialize(): boolean; /** * Deprecated, will be removed in 2.0, use handle.remove() instead. - * + * * Unsubscribes handle created by this.subscribe. * Also removes handle from this widget's list of subscriptions - * - * @param handle + * + * @param handle */ unsubscribe(handle: Object): void; /** * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. + * + * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched + * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. */ watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; /** @@ -17180,27 +17182,27 @@ declare module dijit { * focus moved to something outside of it, or the user * clicked somewhere outside of it, or the widget was * hidden. - * + * */ onBlur(): void; /** * Attach point for notification about when the user cancels the current menu * This is an internal mechanism used for Menus to signal to their parent to * close them. In general developers should not attach to or override this method. - * - * @param closeAll + * + * @param closeAll */ onCancel(closeAll: boolean): void; /** * Connect to this function to receive notifications of mouse click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onClick(event: any): void; /** * Connect to this function to receive notifications of mouse double click events. - * - * @param event mouse Event + * + * @param event mouse Event */ onDblClick(event: any): void; /** @@ -17208,114 +17210,114 @@ declare module dijit { * This is an internal mechanism used for Menus to signal to their parent to * close them, because they are about to execute the onClick handler. In * general developers should not attach to or override this method. - * + * */ onExecute(): void; /** * Called when the widget becomes "active" because * it or a widget inside of it either has focus, or has recently * been clicked. - * + * */ onFocus(): void; /** * Called when another widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onHide(): void; /** * Called when cursor is over a MenuItem. - * - * @param item + * + * @param item */ onItemHover(item: dijit.MenuItem): void; /** * Callback fires when mouse exits a MenuItem - * - * @param item + * + * @param item */ onItemUnhover(item: dijit.MenuItem): void; /** * Attach point for notification about when a menu item has been searched for * via the keyboard search mechanism. - * - * @param item - * @param evt - * @param searchString - * @param numMatches + * + * @param item + * @param evt + * @param searchString + * @param numMatches */ onKeyboardSearch(item: dijit.MenuItem, evt: Event, searchString: String, numMatches: number): void; /** * Connect to this function to receive notifications of keys being pressed down. - * - * @param event key Event + * + * @param event key Event */ onKeyDown(event: any): void; /** * Connect to this function to receive notifications of printable keys being typed. - * - * @param event key Event + * + * @param event key Event */ onKeyPress(event: any): void; /** * Connect to this function to receive notifications of keys being released. - * - * @param event key Event + * + * @param event key Event */ onKeyUp(event: any): void; /** * Connect to this function to receive notifications of when the mouse button is pressed down. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseDown(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseEnter(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseLeave(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseMove(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOut(event: any): void; /** * Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseOver(event: any): void; /** * Connect to this function to receive notifications of when the mouse button is released. - * - * @param event mouse Event + * + * @param event mouse Event */ onMouseUp(event: any): void; /** * Called when this widget becomes the selected pane in a * dijit/layout/TabContainer, dijit/layout/StackContainer, * dijit/layout/AccordionContainer, etc. - * + * * Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane. - * + * */ onShow(): void; } @@ -17330,15 +17332,15 @@ declare module dijit { * browsers, and clipboard operations may have different results, to name * a few limitations. Note: this widget should not be used with the HTML *