From f49b1ade2971b9f66654291b3121b662dc191a87 Mon Sep 17 00:00:00 2001 From: Jason Baker Date: Thu, 12 Mar 2020 17:32:50 -0400 Subject: [PATCH] Merge upstream typings. (#1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [@types/node] Add KeyObject and CipherKey to crypto's createHm… (#42604) Update the createHmac function definition to accept KeyObject in addition to BinaryLike for the 'key' argument. Update the createDecipheriv function definition to accept CipherKey instead of BinaryLike for the 'key' argument. * [mixpanel-browser] Fix typo in property name (#42591) * add new types for loadable/server 5.12 (#42590) * add types for loadable/server 5.12 * add types for loadable/server 5.12 * fix: change definition according to cr * fix: add test definitions * Update `webpack-dev-middleware` to 3.7 (#42573) * feat(webpack-dev-middleware): update to v3.7 - v2 created - update configuration options to v3.7 https://github.com/webpack/webpack-dev-middleware/tree/v3.7.2#options Thanks! * fix(webpack-serve): fix v1 tests errors - `The types of 'dev.logLevel' are incompatible between these types` - `Types of property 'dev' are incompatible` Required to pass test for `webpack-dev-middleware` changes * Fix js-cookie types (#42483) * Update js-cookie types Calls to set return a string or undefined, not void, as seen here: https://github.com/js-cookie/js-cookie/blob/master/src/api.mjs#L7 https://github.com/js-cookie/js-cookie/blob/master/src/api.mjs#L47 * Update js-cookie tests * feat: types for @rdfjs/dataset (#42607) * feat(karma-browserify): type definitions for v7.0 (#42599) - definition file - tests to cover options for Browserify and Watchify https://github.com/nikku/karma-browserify#readme Thanks! * Add parse-prefer-header definition (#42615) * add new type definition * add information comments * properly generate the files * address feedback * correct the package name * css-selector-tokenizer: add types and tests (#42561) * css-selector-tokenizer: add types and tests * correct lint errors apparently, the IDE's tslint extension does not report dtslint's output. my bad. * Correct typo in tests * Add types for simple-icons (#42541) * Create types for [simple-icons] * Add missing final newline * Update CODEOWNERS * Revert a53398139f1a05eba5acbc2c085ad8b5fce705f4 * Use `export =` instead of `export default` as suggested by @PranavSenthilnathan * fix lint errors * [Faker] Remove non-existent methods (#42506) * Update index.d.ts * fix tests * remove creditCardCVV method * add missing space * Update for evernote v2.0.5 (#42291) * Update for evernote v2.0.5 * Better types for evernote * Fix nodemailer tests on TS 3.4 and below (#42626) The tests use Array.include, which is not available in Typescript before 3.5. I rewrote them to use Array.indexOf instead. * Fixed bug (#42435) * add @types/stopword (#42588) * Add stopword type definitions Project: https://github.com/fergiemcdowall/stopword * add @types/stopword * Fix blank after '{' * Add type comments and fix rule's code * Fix lint's rule * Fix return value of removeStopword's function * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * [reactstrap]: Export Util.setGlobalCssModule (#42489) * [reactstrap]: Export Util.setGlobalCssModule * [reactstrap]: Rename utils file * Change return value type of grecaptcha.execute from Promise to PromiseLike (#42635) * workbox-sw/v3: increase minimum version of TS to 3.0 (#42628) Dependencies of workbox-sw v3 use types that are only defined in TS 3.0 and above. * Add Slider component to types and test (#42409) * Add Slider component to types and test * Use correct syntax for adding definition authors * react-flatpickr add underlying flatpickr instance property (#42620) * feat(svgo): added missing plugins definition (#42533) - `prefixIds` corrected - `sortDefsChildren` added - `convertEllipseToCircle` added - tests updated with plugins tests https://github.com/svg/svgo/releases/tag/v1.3.0 Thanks! * [amqp-connection-manager] add waitForConnect (#42639) * add waitForConnect * remove trailing whitespace * fix(rsocket-flowable): makes Single.error() generic (#42584) * fix(rsocket-flowable): makes Single.error() generic * use never instead * . * . * [react-native-app-intro-slider] - Use type ViewStyle for prope… (#42641) * Changes type of buttonStyle and paginationStyle to ViewStyle * Remove obsolete type import * Update definitions by section * feat(simpl-schema): Export additional interfaces (#42536) So that we can reuse them when declaring SimpleSchema arguments... * feat(@blazor/javascript-interop): type definition for Blazor i… (#42392) - type definition based on @microsoft/dotnet-js-interop - tests See: dotnet/aspnetcore#18902 /cc @ryanelian @mkArtakMSFT Thanks! * parse-prefer-header: More specific typings (#42642) * parse-prefer-header: Allow null or undefined input * parse-prefer-header: More explicit return value typing * parse-prefer-header: amend contributor list * parse-prefer-header: Support ReadonlyArray argument * parse-prefer-header: Add separate tests for Array and ReadonlyArray * [node-notifier]: add `timeout: false` option (#42303) * [newrelic] adds waitForIdle option to #shutdown (#42643) * [newrelic] adds waitForIdle option to #shutdown * add contributor note * [bull] fix: add missing low level methods (#42647) * fix: add multi and toKey methods * fix: return pipeline without promise * test: add test * style: fix lint * [office-js] [office-js-preview] Add documentation for Coercion… (#42658) * Pendo.io - make visitor.id optional in initialize() (#42653) * Added missing $filter overload Added missing $filter overload that allows multiple strings to translate and returns an object * Make visitor.id optional * Update tests * Doc typo * feat: add @commitlint/load (#42616) * feat: add @commitlint/load * fix: remove trailing comma in json * fix: allow optional const enum This const enum is not required for the definition to be useful. * carbone-1.2 typings (#42645) * feat(vue-feather-icons): Add vue-feather-icons type definition (#42644) * Add combinations definition (#42655) * [office-js] [office-js-preview] (Outlook) Mailbox.restUrl should incl... (#42661) * [office-js] [office-js-preview] (Outlook) Mailbox.restUrl should include link to SharedProperties.targetRestUrl for shared folders scenario * Update based on feedback * atom: improve support for v1.40 (#42660) * feat(find-cache-dir): update to v3.2 (#42550) - v2 for backward compatibility - migrate return type from `null` to `undefined` https://github.com/avajs/find-cache-dir#readme Thanks! * Added method definition for new method in SDK (#42476) * Added method definition for new method in SDK The method can be found in the official documentation under "Removing a Discount": https://shopify.github.io/js-buy-sdk/ * Removed "WIP" from header As requested here https://github.com/DefinitelyTyped/DefinitelyTyped/pull/42476#pullrequestreview-362867622 by @PranavSenthilnathan * Enabled dt-header as requested in PR * Corrected version number to comply 1.11.0 to 1.11 * Removed empty space to fix: ERROR: no-trailing-whitespace * Enable strictNullChecks 2/3 (#42650) * feat(xo): type definition for v0.26 (#42542) * feat(xo): type definition for v0.26 - definition file - tests https://github.com/xojs/xo/#config Thanks! * Correct export details as per PR comment /cc @sheetalkamat * Add missing `getFormatter` function as per PR comment - implementation - tests /cc @sheetalkamat * cache-manager: add store to Cache (#42554) * Add @types for ntlm-client (#42081) * Add @types/ntlm-client * Remove namespace * Replace import for reference types * Make cache-manager tests strictNullChecks safe (#42686) The new code in cache-manager wasn't strictNullChecks safe, which caused problems because a community member enabled strictNullChecks in most packages during the review period for that code. This change just fixes the tests, although the optional methods on Store are a bit suspicious. From skimming cache-manager's documentation, I couldn't figure out if having the methods be optional was accurate. * feat(react): exclude number from keyof JSX.IntrinsicElements (#42282) It's required to exclude `number` type from `keyof JSX.IntrinsicElements` because of the case when `JSX.IntrinsicElements` has some additional declarations with indexer type, for example ``` declare namespace JSX { interface IntrinsicElements extends JSX.IntrinsicElements { [name: string]: SomeJSXElementType; } } ``` * Improved meteor/universe:i18n typings. (#42664) * Improved meteor/universe:i18n typings. * Added meteor/universe:i18n tests. * Added meteor/universe:i18n author. * Ran prettier on meteor/universe:i18n. * Changed var to let in meteor/universe:i18n. * [yeoman-environment] Correct type for registerStub (#42636) The code takes a constructor of type `Generator`, rather than an instance: https://github.com/yeoman/environment/blob/36eb1a56a9205f6b524d8c554800de4d6d8d34fd/lib/environment.js#L343-L344 * feat(gremlin): Add `hasNext` and `[Symbol.asyncIterator]` to `… (#42672) * Declare `hasNext` on `Traversal` * Define `AsyncIterableIterator` for `Traversal` Enables `for-await-of` use for query result iteration. * [react-onsenui] Added AlertDialogButton (#42663) https://onsen.io/v2/api/react/AlertDialogButton.html * [amqp-connection-manager] Fix waitForConnect (#42677) * webpack: add electron-preload to valid config targets (#42671) Added in 4.33.0 (https://github.com/webpack/webpack/releases/tag/v4.33.0). See also: * https://github.com/webpack/webpack/pull/9188 * https://v4.webpack.js.org/configuration/target/#target * Enable strictNullChecks 3/3 (#42667) * [@types/recharts]: Added segment property to ReferenceLine com… (#42676) * @types/recharts: Added segment property to ReferenceLine * @types/recharts: SegmentItem Interface added, segment type changed to ReadonlyArray * @types/recharts: segment type changed to Readonly<[SegmentItem, SegmentItem]> * postman-collection: fixed types to reflect current SDK (#42582) * postman-collection: RequestDefinition fixes * postman-collection: CollectionDefinition fixes * postman-collection: Collection fix * postman-collection: Added missing field to Cookie * postman-collection: Improved RequestAuthDefinition * postman-collection: Adjusted tests * postman-collection: prettified * postman-collection: version bump * postman-collection: updated version to reflect current SDK * postman-collection: fixed version * feat(express-session): correct `unset` option and bump to 1.17 (#42560) - correct type of `unset` option as per documentation - test update Thanks! * [serverless] Add awsProvider.request method (#42681) * [serverless] Add awsProvider.request method * [serverless] add some tests for request method * [mongoose] propagate QueryHelpers through operations (#42477) * mongoose: propagate QueryHelpers though operations * chore: add test for helper * [cesium] CesiumJS Model and ModelGraphics types (#42670) * Model type updates * add logarithmicDepthBuffer * ModelGraphics updates * reviert Entity orientation change * fix build errors * CR comments * [ouibounce] add type definitions (#42680) * Add subscribeToTopic to react-native-push-notification (#42563) * Enable strictFunctionTypes (#42687) * feat(jquery-migrate): definitions for jquery-migrate plugin (#42689) - definition file - tests https://github.com/jquery/jquery-migrate#migrate-plugin-api Thanks! * Update ramda to use ts-toolbelt 6.3.3 or later (#42694) * [codemirror] Add addon display/autorefresh (#42669) * [codemirror] Add addon display/autorefresh * [codemirror] Fix library name in comment https://github.com/DefinitelyTyped/DefinitelyTyped/pull/42669#discussion_r385291863 * Create a new package: Matrix JS SDK (matrix-js-sdk) (#42673) * init matrix-js-sdk * make linter happy * pass the tsc testing * add create client * make linter happy * linting * linting * Added types for "react-final-form-listeners" (#42577) * Added types for react-final-form-listeners * feedback fixes * New typings: japan-postal-code (#42700) * clear to tests * Clear to tests * Failing tests fix * fix failing tests * fix failing tests * fix failing tests * [teslajs] add type definitions (#42699) * Update types for gulp-imagemin (v7.0) (#42698) * clear to tests * Clear to tests * feat(morgan): update morgan to v 1.9 (#42695) This is minor update: - version bump - `TokenCallbackFn` return type redefinition to allow returning `undefined`: https://github.com/expressjs/morgan/commit/03765069ec594f60cdaadac0fafb3473fe72074e - deprecate `buffer` option: https://github.com/expressjs/morgan/commit/dafb4cd0682f95ab069c7a266303709054a1f40d - reformat code Thanks! * add base_url property (#42665) * add base_url property add base_url property for interface Settings; https://www.tiny.cloud/docs/configure/integration-and-setup/#base_url * Update index.d.ts * add base_url property add base_url property for interface Settings; https://www.tiny.cloud/docs/configure/integration-and-setup/#base_url * fix: [@types/aws-lambda] add missing prop clientMetadata to Co… (#42707) * [@types/chrome] Added 'silent' option to the chrome package (c… (#42708) * node/tty - as of v10, readStream.setRawMode(mode) returns 'thi… (#41194) * node/tty - as of v10, readStream.setRawMode(mode) returns 'this' instead of 'void' * node/tty revert v11 changes * node/tty updated v12 for setRawMode * [@types/node] Fix subprocess.kill return type (#42709) * 🤖 CODEOWNERS has changed (#42720) * Made ComponentOverride generic (#42603) Fixes type issues such as https://stackoverflow.com/questions/60382399/why-is-type-sfcanchorprops-not-assignable-to-type-sfc. * feat: add types for @rollup/plugin-virtual (#42688) * feat: add types for @rollup/plugin-virtual * chore: rm 'node' from 'types' * chore: set typescript version to 2.9 * chore: set typescript version to 3.7 * chore: fix lint issues * added declarations for 'ip-subnet-calculator' (#42712) * added declarations for 'ip-subnet-calculator' * fixed lint for ip-subnet-calculator * removed string type from decoded, as it's only an object (#42718) * Add maintainer (#42722) I'd like to propose adding gargroh to the list of maintainers for the react-table types. He's been active, and and more importantly, useful, on both the react-table repo as well as this one and has offered to help with maintaining the react-table types. * [Simplebar] Add typing for v5 (#42654) * move old typings in v2 * add new typings * fix linter errors * move tests under v2 * add more classes * revert original comments in v2 * Create a new package: Matrix AppService Bridge (matrix-appservice-bridge) (#42702) * reinit * fix fixmes * make linter happy * [teslajs] fix wrong Vehicle interface (#42724) * [teslajs] fix wrong Vehicle interface * [teslajs] Fix async functions parameters * Fix MemoryCache `get` function type to correctly reflect nulla… (#42726) Returns null if no object present for given key; return type should reflect this. * chai: Tighten argument types of assert.throw methods. (#42719) * Refine argument types of assert.thorw methods. * Add author. * feat(mongodb): add connection TLS options (#42723) - TLS options - minor update to document to correct @default - version bump to 3.5 http://mongodb.github.io/node-mongodb-native/3.5/api/MongoClient.html Thanks! * weixin-app: add missing members (#42731) * add types jsreport-chrome-pdf * jsreport-chrome-pdf: add options * [jsreport-chrome-pdf]: add missing prop * wexin-app: add missing interface members * include version * jsdoc * add enum * [Slonik] Added UUID type to TypeNameIdentifierType (#42632) * Add types for @types/chart.js (tooltip model) (#42740) * Add new tooltip model types * Fix mistyping * Remove thislooksfun from list of selenium-webdriver maintainers (#42747) * Remove thislooksfun from list of Bluebird maintainers (#42746) * feat(watchify): update to version 3.11 (#42600) - refine `poll` configuration option type - add `close` method - add event supports - update configuration to recommended one - apply DT code format https://github.com/browserify/watchify#methods Thanks! * add missing option `transformKey` in `flat` (#42613) * transformKey + fix tests * update version * Fix libxmljs Document.find overloads (#42729) * Add Document.find overloads * Bump libxmljs version comment * Add libxmljs tests of Document.find * Revert "Bump libxmljs version comment" This reverts commit 252f14107c1d33f7a1000bb08d32ea81cfbb36c2. * matter-js: add render.options.wireframeBackground (#42754) * Enrich sqs event with x ray trace header (#42762) * [aws-lambda] New API Gateway Authorizer types, deprecating old… (#42420) * [aws-lambda] Deprecate CustomAuthorizer*, new APIGateway*Authorizer* Noticed this testing #42419. When integrating a custom authorizer, you actually have two options, creating a token or a request authorizer, which changes what payload you will get. You nearly certainly know which you will be called with! Just deprecating the old version as it's kinda broken in a way thats hard to fix without breaking someone, but we want to guide devs to the new version. It is possible to fix the existing type by adding a bunch of `foo?: never` fields to each alternative so existing accesses don't, error but this makes things more complex, and confusing for the common case. Other ideas welcome! * [aws-lambda] Add api-gateway authorizer parameters. Fixes #34069, #42418 Ended up a bit messy, might be a bit much. * [aws-lambda] Bump minimum typescript to 3.0 Required to fix failing $ExpectError in tests. Surely nobody is still using pre-3.0? * [aws-lambda] Enforcea API Gateway authorizer context narrowing And implement the changes that API gateway does on the proxy request context for it. Also rename TAuthorizer to TAuthorizerContext to be more clear that they should be the same type across both authorizer and proxy. Some cleanups and fixes for names. * feat: @rdfjs/fetch (#42763) * feat: @rdfjs/fetch * linted * fix: dataset() and quadStream() are async * add options.externalKey in koa-session (#42646) * [d3-brush] Added keymodifiers definition (#42649) * add types for @hapi/catbox-memcached (#42728) * urijs: Correct UMD typings, remove implicit global declaration (#42543) * urijs: Correct UMD typings, remove implicit global. * urijs: add case for testing implicit global var in a script * urijs: Add test to test UMD global in an ES module * urijs: Undo unnecessary reformatting * feat(karma-json-preprocessor): new type definition (#42738) - type definitions - tests https://github.com/mjeanroy/karma-json-preprocessor#configuration Thanks! * feat(karma-json-to-file-reporter): add type definition (#42735) - type definitions - tests https://www.npmjs.com/package/karma-json-to-file-reporter#config Thanks! * update(tar-stream): bump to v2 (#42734) - v1 for backward compatibility - change Pack.entry to be overloaded definition - amend tests to reflect changes and add new tests https://github.com/mafintosh/tar-stream/compare/v1.6.2...v2.1.0 Thanks! * feat(parameterize): add parameterize typings (#42721) * feat(parameterize): add parameterize typings * with declare module * Update parameterize-tests.ts * Update index.d.ts * Update parameterize-tests.ts * Update index.d.ts * Update parameterize-tests.ts * Update index.d.ts * Added type definitions for scrollbooster (#42745) * Added type definitions for scrollbooster * Added new lines for better readability * Added more info on the project * Extending the correct linter * Add declarations for 'cron-converter'. (#42744) * fix return type (#42770) * Add @types/human-date (#42736) * Add @types/human-date * Change tests filename * Delete human-date.ts * Update human-date-tests.ts * Update index.d.ts * Update index.d.ts * Add files via upload * Add files via upload * Add files via upload * feat(filing-cabinet): type definitions for v2.5 (#42753) - type definitions - tests https://github.com/dependents/node-filing-cabinet#usage Thanks! * feat(style-search): new type definition v0.1 (#42758) - type definition - tests https://github.com/davidtheclark/style-search#options https://github.com/davidtheclark/style-search#reporting-matches Thanks! * feat(file-entry-cache): type definition v5.0 (#42760) - new type definitions - tests coverage https://github.com/royriojas/file-entry-cache#usage Thanks! * fix public property opts (#42769) * fix public property opts * remove implicit publish * fix(lodash): No `strict` override (#42773) * Add type definitions for "scrambo" (#42776) * Add types for scrambo * Satisfy linter * Enable esModuleInterop * Get rid of esModuleInterop * newrelic adds distributed tracing Transaction handle method insertDistributedTraceHeaders (#42775) * NewRelic: Adds insertDistributedTraceHeaders * NewRelic: Adds insertDistributedTraceHeaders * NewRelic: Adds insertDistributedTraceHeaders * [office-js, office-js-preview, office-runtime] Changing codeowners (#42772) * Removing prompt verbage from selection binding options * Changing codeowners * react-table: add maintainer (#42774) Jason Clark has offered to help maintain this package and offered a good PR overlapping with the current open PR which he then closed. But it showed a good approach to the solution and demonstrated an understanding of the problem space. * [styled-system] Add missing margin and padding properties (#42766) * feat(decomment): type definition for v0.9 (#42779) - type definitions - tests https://github.com/vitaly-t/decomment#api Thanks! * feat(is-relative-path): type definition for v2 (#42780) - type definitions - tests https://github.com/mrjoelkemp/is-relative-path#usage Thanks! * @mdx-js/react exports mdx (alias for React.createElement) (#42657) * [@types/cesium] Add PropertyBag (#42782) * property Bag * add entity definition * [@types/parse] Added AuthProvider and user function definitions (#42651) * Added AuthProvider, user._isLinked, user._unlinkFrom, User.logInWith, User._registerAuthenticationProvider. Changed signature of user.linkWith to match the one in the Parse.User documentation * Added tests for changed and added types * Added changes to TS 3.7 as well * Removed deprecated _linkWith from TS 3.7 definitions * Fix typo (#42796) * [stripe-v3] fix: add missing subtype 'validation_error' to ErrorType (#42789) https://stripe.com/docs/api/errors * matter-js: add mouse events (#42794) * react-leaflet: fix GeoJSON data prop type + add test (#42800) * [Express] [Type Update] Use generics for Response (#42662) * use-generics-for-express-response-type: Use generics for Response in express * use-generics-for-express-response-type: fixing ghost-storage-base-tests * add color as mocha option (#42685) * add @mocha package declaration for mocha.loadFilesAsync() (#42684) * add declaration for Mocha.loadFilesAsync() * add test for mocha.loadFilesAsync() * [@types/rtp-parser] New Definition (#42784) * add type definitions for https://www.npmjs.com/package/rtp-parser * added test for payloadTypesHash * make a generic version of the parseRtpPayloadType * fixed some typos * add test for generic number payload types * feat(standard-engine): new type definition v12 (#42752) * feat(standard-engine): new type definition v12 - type definitions - tests coverage for day-to-day usage scenarios https://github.com/standard/standard-engine#readme https://github.com/standard/standard-engine#usage Thanks! * Prevent Linter class export as per PR comment Should be used only as export `linter` alias. /cc @gabritto * Update default export of Diva.js (#42805) * feat(gestalt): updated gestalt to newest types v1.10.0 (#42765) * refactor(gestalt): updated gestlat to newest types gestalt updated to now version v1.10.0 BREAKING CHANGE: Box, Mask, Touchable * added tests * removed licence * array error * Array<> error * array<> error fixed * void type error after test fixed * error on masonry fixed * [serverless] Add getAccountId method (#42692) * Enable noImplicitAny (#42693) * Update flatten typing under StyleSheet namespace. React-Native (#42790) * Update flatten typing under StyleSheet namespace. * Add test for stylesheet.flatten() * Fxjs (#42797) * add fxjs type * add fxjs type * add test * add project * add fxjs * add file * add * add map, filter, find, flat, flatMap, every, delay, log * add test * tsconfig modify * add fxjs-tests * Fix typings of express-mysql-session (#42668) * add corrected export and dependencie * Update express-mysql-session-tests.ts rewrite test for new version * rename class * fix linting * feat(git-branch-is): new type definition for v3.1 (#42811) - definition files - test coverage https://github.com/kevinoid/git-branch-is#api-usage Thanks! * [react-table]: V7 upgrade to support rc-16 (#42411) * [react-table]: V7 upgrade to support rc-16 Support the changes in https://github.com/tannerlinsley/react-table/blob/master/CHANGELOG.md Most of this in internal, by far the biggest user facing ripple is flatColumns -> allColumns. * add selectSubRows option * remove column.show - no longer supported * add className to TableCommonProps * fix missing import, doh * remove afters from ensurePluginOrder, it's effectively removed * Update Hook definitions as well as address review comments I've made a good effort to fix the types for the hooks, they look right, but right now I have no code that uses them so they are at best theoretical based on how they appear to be used in the code. * [react-native] Specify more detailed type of `hardwareBackPress` handler (#42828) * react-native: handleBackPress * react-native: remove void from hardwareBackPress * Added types for jest-sinon package (#42819) * Add types for markdown-table (#42824) * update to 15.3 (#42822) * fix bugs with types * fixed type errors * more type errors fixed * fixed errors and added missing type definitions * fix all typos and added all missing ones * change inappropriate names * Updated names to be more accurate. * adds EnumDWT_ConvertMode to make compatible with the old enum * update to 14.2 * add v13 * delete v13 for test not pass * remove base64 * fixed conflict * add back GetLicenseInfo * change header version to 14.2 * Added definitions for new APIs as well as APIs whose definitions were missing before. Also adding APIs for addons * remove unused file * adding types for barcode reader and changing the copyright year * comment change, TS to 3.2.2 * adds more definitions to dwt barcode reader * rollback * update * update index.d.ts * Update Dynamsoft.d.ts It's ok * Update index.d.ts 1. update 2017 -> 2019 2. update parameters * Update index.d.ts rollback * Update index.d.ts rollback * Update addon.pdf.ts rollback * Update index.d.ts rollback * Update index.d.ts rollback * Update index.d.ts rollback * Update index.d.ts rollback * Update index.d.ts no changes but whites * Update index.d.ts TypeScript Version can be 3.2 2017 => 2019 * Update index.d.ts rollback * update * Update index.d.ts start new request * Update index.d.ts delete this file * Update delete this file * a a * rollback * update * remove package.json * add current version to v13 * 1) update to version 14.3.1 2) change index.d.ts declare Dynamsoft * update comments * remove WebTWAIN.d.ts * change v13 tsconfig.json * change to v14.3.1 * change to v14.3.1 * change to version 14.3 * change to version 14.3 * update * update * Update index.d.ts * Update index.d.ts * Update tsconfig.json * Update tsconfig.json * update * update * aa * a * a * update * remove dwt.d.ts * remove v12 * update1 * update * update * a * a * a * a * a * a * a * a * d * a * a * b * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * change to v15 * add enums * remove enums * Updating to v15.0.2 * roll back to 1 previous version * add back v15 APIs * fix errors * fix errors attempt 2 * update to 15.1 * upgrade to v15.2 add tag image * fixed a few bugs * fix grammar errors * update a definition * Fixed bug 'missing whitespace' * update 15.3 * remove remove * remove blank line remove blank line Co-authored-by: Tom Kent Co-authored-by: Xiao Ling * [mongodb] Allow optional fields in $inc and $mul (#42821) * Add deprecation schedule (#42834) * Add deprecation schedule and explain tags a bit more fully * improved formatting * [cesium] add constructor and removeProperty to PropertyBag (#42803) * [cesium] add constructor definition for PropertyBag * Cesium - add removeProperty to PropertyBag * Add return type to removeProperty * Make constructor value optional * Don't make parameters on callback optional * Add just-map-values and just-safe-set types (#42739) * Add some just functions * Fix some tests * Fixes for code review * Fix tests * fix(jsdoc-to-markdown): correct module definition and update to v5 (#42732) * fix(jsdoc-to-markdown): correct module definition and update to v5 - update module definition fixing errors like: ```bash TSError: ⨯ Unable to compile TypeScript: index.ts:3:10 - error TS2339: Property 'render' does not exist on type 'typeof import("../node_modules/@types/jsdoc-to-markdown/index")'. 3 jsdoc2md.render({ files: 'src/*.js' }).then(...) ``` After this change the module is exported as regular CommonJS module - update version to v5 - create backward compatible v4 - rewrite tests to match CommonJS module exports https://github.com/jsdoc2md/jsdoc-to-markdown/blob/master/docs/API.md#jsdoc-to-markdown Thanks! * Fix v4 module definition as per PR comment - module exports correct also for v4 - tests corrected for v4 /cc @amcasey * [@types/marked] fixed type of `marked.MarkedOptions.highlight` in case of async highlighting (#42579) * [@types/marked] adjust `marked` function return types and callback being optional * [@types/marked] update marked.MarkedOptions.highlight to reflect possible callback return types * [@types/marked] add a test for the fixed edge case * [@types/marked] add overloads to `marked` type definition to indicate sync/async functionality & return types * [@marked/marked] update `marked.MarkedOptions.highlight` description to indicate sync/async functionality and intended return types * [@types/marked] fix failing tests -- combine two overloads of `marked` default export * [@types/marked] fix failing tests -- don't try to use a `void` return type * [@types/marked] add description to overload; remove `return` from descriptions for synchronous overloads * [react-native] update NativeEventEmitter constructor and removeAllListeners method (#42847) * update NativeEventEmitter constructor and removeAllListeners method * add NativeEventEmitter test * Add null to constructor args Co-Authored-By: Eloy Durán Co-authored-by: Eloy Durán * [plotly.js] - polar layout (#42832) * [@types/recharts]: LabelListProps: dataKey should be optional if valueAccessor is defined (#42816) * [@types/recharts]: LabelListProps: dataKey should be optional if valueAccessor is defined Signed-off-by: Fabien Caylus * Update types/recharts/index.d.ts Co-Authored-By: Konstantin Azizov Co-authored-by: Konstantin Azizov * Add description field for choices (#42809) https://github.com/terkelg/prompts#selectmessage-choices-initial-hint-warn * @testing-library__react: add debug options (#42837) * @testing-library__react: add debug options * Create package.json * iab-vpaid: Correct AdVideoMidPoint to AdVideoMidpoint (lowercase 'p'). (#42792) * [chance] add option definition for chance.cpf() (#42835) * chance: add option definition for chance.cpf() * chance: remove `?` in option definition for chance.cpf() Co-Authored-By: Colby M. White Co-authored-by: Colby M. White * [@types/frida-gum]: update: make `Java.Wrapper` more generic (#42826) * [@types/frida-gum]: update: make `Java.Wrapper` more generic * [@types/frida-gum]: update: bump version * [@types/frida-gum]: update: improved generic types 1. more generics, like `Java.cast`, `Java.Field`, etc. 2. `this` of `Java.MethodImplementation` is now strictly typed so it's no longer necessary to specify the generic type of implementations explicitly 3. rename `Properties` to `Members` 4. fix JSDoc of `Java.retain` and `Java.ClassFactory.retain` * Add type IdleState to chrome.idle (#42852) * Add type IdleState to chrome.idle The chrome.idle API should use an IdleState type (https://developer.chrome.com/apps/idle) and like it's already used in chrome-apps (types/chrome-apps/index.d.ts). * Remove trailing whitespace * pdfmake - update v0.1.65 (#42814) * add missing types and tests * lint * Remove enums from module * spaces not tabs * tslint indent rule * update pdfmake version * Remove minor version * plaid-link: Add linkCustomizationName to CreateConfig (#42725) Plaid Link now accepts a linkCustomizationName, user-defined on their dashboard, and passed in the CreateConfig. * update(mongodb): MongoError `hasErrorLabel` missing from 3.5 (#42844) This is minor change: - add missing `hasErrroLabel` method to the MongoError - mark `create` static method as deprecated - updates JSDoc for error classes to use 3.5 version Thanks! * [jasmine] Support custom async matchers (#42850) * Add types for custom async matchers * Add self to owners * feat(gravatar): missing 1.8 version features (#42843) - correct DT header and package version - `profile_url` method - `cdn` options property - `forceProtocol` aligned with documented `protocol` - adding new method resulted in module shape correction (export `url` and `profile_url` directly from the module - tests updated - update tslint config https://github.com/emerleite/node-gravatar#usage https://github.com/emerleite/node-gravatar#examples https://github.com/emerleite/node-gravatar/blob/dd76e570872ffb5cd215874aeb91c3c5eff06ff0/Changelog.md#180 Thanks! * [@type/react-infinite-calendar] Describe locale.locale in detail (#42703) * update: locale.locale * update: test case * Update locale types in more detail * added types for metric (#42730) * added types for metric * fixed lint * fix(d3-scale): add missing symlog scale (#42733) * add null as a valid return type of interceptors (#42842) * [plotly.js] opacity to PlotData (#42866) * Update Readme for Russian language (#42881) * make @wordpress/block-editor types stricter (#42898) Typescript@next is stricter about type parameters constrained to any; they are default to unknown instead of any during inference for consistency with other type parameters. This means that the easiest workaround is to give a type parameter constrained to `any` a default of `any` so that they once again default to `any`. That's what this PR does; it also has to give the subsequent type parameter a default as well. * Update CODEOWNERS (#42957) Co-authored-by: TypeScript Bot * Added 'pi-camera' type definition (#42857) * Added pi-camera type definition * Revised test file * office-js-preview Page-to-Dialog messaging APIs (#42873) * office-js-preview page to dialog messaging * review changes * feat(bearcat-es6) add type definition for bearcat-es6 0.6.1 (#42825) * feat(bearcat-es6) add type definition for bearcat-es6 0.6.1 * fix(bearcat-es6) fix tslint rules * fix(bearcat-es6) fix tslint rules * fix(bearcat-es6) supplement some interface and fix some tslint bug * fix(bearcat-es6) fix some tslint bug * fix(bearcat-es6) fix some tslint bug * fix(bearcat-es6) fix some tslint bug * fix(bearcat-es6) fix some tslint bug * fix(bearcat-es6) fix some tslint bug * fix(bearcat-es6) fix some tslint error, and restore tslint rule to default * Type definitions for FullCalendar-Vue (#42764) * Add types for fullcalendar vue * update dependencies * added dependency * update tests * update tests * updated type defs * fix linting errors * remove type and export interface Co-authored-by: Nader Al-Shamma * Using generic types in List Component (#42827) * Using generic types in List Component * Added a working example * Removed the space before type parameters * [node] move to 13.9 (#42778) * [node] move to 13.9 Added semver minor changes from 13.8/13.9 except crypto. * add tests, add getHeapSnapshot * fix lint * [clockpicker] Enable noImplicitThis (#42900) * matter-js: add Grid.bucketWidth, Grid.bucketHeight and update constraint render options (#42885) * matter-js: add Grid.bucketWidth and Grid.bucketHeight * matter-js: update constraint render options * Extend matrix-js-sdk types (#42861) * Extend matrix-js-sdk types * Remove ts@next broken reference to node types from dependency matrix-appservice-bridge doesn't need node types now * [titanium] update types for Titanium 9.0.0 (#42856) * update types for Titanium 9.0.0 * fix: re-apply changes from ffMathy * feat(figma): Type definitions for update 14 (#42749) * Add getTileUrl() method to TileLayer (#42859) * [leaflet] Enable noImplicitThis (#42919) * [jquery-knob] Enable noImplicitThis (#42913) * [mailcheck] Enable noImplicitThis (#42921) * [nestdb] Enable noImplicitThis (#42928) * [classnames] Remove myself as maintainer. (#42897) * [react-mdl] Enable noImplicitThis (#42938) * Update README.ko.md (#42958) * Added deprecation schedule to readme.es.md (#42963) * [flatbuffers] Enable noImplicitThis (#42908) * fix(bazinga-translator): correct definition to support UMD (#42629) - correct module definition - change test to verify CJ/ES6 and global /cc @anaelChardan Closes: #34552 * React countup upgrade definitions up to version 4.3.3 (#42748) * update react-countup to version 4.3.3 * lint fixes * update version Co-authored-by: Ezequiel Surijon * node-ssh: initial definition (#42964) * Add wordpress-hash-node (#42959) * Add node-phpass (#42894) * Add node-phpass * Add tests * Hubot: Adds some missing, new, types to bring up to date for v3 (#42756) * Hubot: build off existing types to match more closely with API Surface are of v3 * fix base tests * Fixes some unnecessary generics * fix some more style items * fix some generics * adding more robot tests * see if this fixes some * specify version * Despecify * move comments up a bit * up again * add some brain tests * Make robot properties readonly to help protect against silliness * set bug version * don't want a patch version apparently * drop the ts version * drop unnecessary unknowndata interface * 3.0 for unknown * Fix(sdp-transform) bandwidth should be array (#42890) https://github.com/clux/sdp-transform/blob/32da4469b85d1198c0524e3118827dd6085adc97/lib/grammar.js#L39 * [react-infinite-scroller] Enable noImplicitThis (#42936) * [react-select] Enable noImplicitThis (#42939) * [office-js] (Outlook) Removed restUrl link to SharedProperties (#42864) * [office-js] [office-js-preview] (Outlook) Removed restUrl link to SharedProperties * Keep link to object in preview * [@types/jest] Improve toContain matcher description. (#42965) * [ember-testing-helpers] Enable noImplicitThis (#42906) * [redux-promise] Enable noImplicitThis (#42945) * [through2] Enable noImplicitThis (#42953) * [styled-system] Allow null ResponsiveValue (#42961) * Remove unneeded cast in lyricist tests (#43017) * new types for package "overload-protection" (#42886) * types for overload-protection * prettier formatting * added parameter type for logging function Co-authored-by: Daniel Hirth * [mongoose] Define lean() result type (#42652) * [pino] add `levelKey` option, deprecate `changeLevelName` option (#42887) * [lingui__react]: Add i18nHash to withI18n (#42838) * Add locale types (#42968) * [react] Enable noImplicitThis (#42940) * add cloudevents-sdk/v03 types (#38067) * add cloudevents-sdk/v03 types ignore no-single-declare-module because cloudevents-sdk/v03 is the documented way to import the cloudevent builder add cloudevents-sdk header module warning ignore * move CloudEvent interface into module, use named export for event() * use default export with event() as a prop to fix 'no default export' TS warning * allowSyntheticImports for cloudevents-sdk * VS Code 1.43.0 Extension API (#43028) Co-authored-by: VSCode * [office-js, office-js-preview] Update with latest from CDN (#42848) * Removing prompt verbage from selection binding options * office-js * office-js-preview * feat(testing-library/dom): Add name option to byRole (#42892) * feat(testing-library/dom): Add name option to byRole * Bump version * Allow resolveTo/rejectWith with empty parameters (#42967) * [@types/urijs] Added properties and methods: duplicateQueryParameters, escapeQuerySpace, preventInvalidHostname (#43025) * added missing properties and methods: - duplicateQueryParameters - escapeQuerySpace - preventInvalidHostname * added author. * [naver-whale] Enable noImplicitThis (#42926) * [react-data-grid] Enable noImplicitThis (#42932) * [mongoose] Fix _id type of lean() result (#43039) * [emscripten] Fix addFunction arg type (#42974) * [wu] Enable noImplicitThis (#42955) * Update types for Redux-state-sync (#42979) * update types * update test case * add test case * update version * update header Co-authored-by: aohua * fix(cesium): missing objects added (#42960) * fix(cesium): missing objects added - `MapboxStyleImageryProvider` https://cesium.com/docs/cesiumjs-ref-doc/MapboxStyleImageryProvider.html - `MapboxImageryProvider` https://cesium.com/docs/cesiumjs-ref-doc/MapboxImageryProvider.html Fixes: #42880 Thansk! * Revert version bump as per PR comment /cc @jrafidi * Remove ambient module declaration in 'randomColor'. (#43033) * @types/react-native-video: Add type for onBuffer argument (#42891) * fix(autoprefixer): correct deprecated properties (#42981) - added deprecated options that are still in the api, but not documented as public option anymore - documentation for `overrideBrowserslist` updated https://github.com/postcss/autoprefixer/blob/master/lib/autoprefixer.js#L68-L93 Thanks! * Pg: Adds a boolean value for the parseInputDatesAsUTC ClientConfig option (#42849) Co-authored-by: Cédric Taschereau * [ngreact] Enable noImplicitThis (#42929) * fix username of unindented (#42972) * [mongoose] Use mongodb.FilterQuery type (#42617) * react-native: fix broken link for AppRegistry. (#43068) * [office-js-preview] (Outlook) Body.appendOnSendAsync (#42846) * [office-js-preview] (Outlook) Body.appendOnSend * Fix typo * Updates based on feedback * Tweaks * Removed cleanup tweaks based on feedback * Undo * Note how to clear call * Note append on send runs before ItemSend functionality * Remove unsupported tab control and visiblility flag (#42999) Co-authored-by: Sudhi * Add types for inline-critical (#43000) * Test plotly.js package publishing Remove "minimum TS" line since 2.3 has been deprecated. * [layui-layer] Add types for layui-layer (#42976) * layui-layer * Update index.d.ts * Jquery cropper (#42973) * commit jquery-croper type definitions commit jquery-croper type definitions * Update index.d.ts Update index.d.ts, correcting the version of the cropper and remove unnecessary comments. * update tsconfig Adding "strictFunctionTypes": true to tsconfig.json file. * Update index.d.ts & tslint.json Removing declare module "jquery-cropper" { }, and fixing the Project url * update "interface-name" property set "interface-name" property to false in tslint.json * update tslint * remove the patch version from index.d.ts * update rules in tslint.json * completely remove the patch digit * remove "v" from MAJOR.MINOR * Update tslint.json enabled interface-name property * adjust interface-name rule adjust interface-name rule to "interface-name": [true, "never-prefix"] * remove I from interface name remove I from interface name * added new line to last line added new line to last line * Add missing labelTextStyle - react-native-material-dropdown (#42771) * Add missing labelTextStyle * Update index.d.ts * feat(obsolete-web): new package definition (#42983) - definition files - tests for global/CommonJS usage https://github.com/ElemeFE/obsolete-webpack-plugin/tree/master/packages/obsolete-web Thanks! * [office-js] [office-js-preview] (Outlook) AttachmentDetails.contentType Read mode only (#43048) Co-authored-by: Stuart Kennedy <26479125+rav2040@users.noreply.github.com> Co-authored-by: Leona Kuse Co-authored-by: Juan Pablo Vargas Co-authored-by: Piotr Błażejewicz (Peter Blazejewicz) Co-authored-by: Tom B <5631509+track0x1@users.noreply.github.com> Co-authored-by: Tomasz Pluskiewicz Co-authored-by: Vincenzo Chianese Co-authored-by: Avi Vahl Co-authored-by: Eric Cornelissen Co-authored-by: Leonardo Testa Co-authored-by: Felipe Castillo <1280530+fcastilloec@users.noreply.github.com> Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Co-authored-by: Donatas Lučiūnas Co-authored-by: Rico Sandyca Novenza Co-authored-by: Kyle Tsang <6854874+kyletsang@users.noreply.github.com> Co-authored-by: Veniamin Krol <153412+vkrol@users.noreply.github.com> Co-authored-by: trumanshuck <59452077+trumanshuck@users.noreply.github.com> Co-authored-by: Justin Leider Co-authored-by: Igor Morozov Co-authored-by: David Hearnden Co-authored-by: Oliver Welter Co-authored-by: Baptist BENOIST <2091902+bbenoist@users.noreply.github.com> Co-authored-by: Marcell Toth Co-authored-by: Simen Bekkhus Co-authored-by: Dylan Smith Co-authored-by: Julian Hundeloh Co-authored-by: Elizabeth Samuel Co-authored-by: Aaron Beall Co-authored-by: Martin McWhorter Co-authored-by: Artur Nerkowski Co-authored-by: Takuma HANATANI Co-authored-by: Rafa Mel Co-authored-by: Glen M Co-authored-by: Juan Manuel Incaurgarat Co-authored-by: Jack Bates Co-authored-by: jwigley Co-authored-by: Manuel Borrajo Co-authored-by: Artur Kenzhaev Co-authored-by: Radosław Miernik Co-authored-by: Stuart Knightley Co-authored-by: Keith Kirton Co-authored-by: LBLZR_ Co-authored-by: Mark Lee Co-authored-by: Eric Kuznetsov Co-authored-by: Karol Maciaszek Co-authored-by: coyoteecd <47973420+coyoteecd@users.noreply.github.com> Co-authored-by: Jonathan Burke Co-authored-by: morgansierrasnyder Co-authored-by: Krzysztof Gutkowski Co-authored-by: Miklós András Danka Co-authored-by: Anders Hejlsberg Co-authored-by: mtgto Co-authored-by: Huan (李卓桓) Co-authored-by: Yuri Drabik Co-authored-by: TokugawaT_YD <41653501+TokugawaTakesi@users.noreply.github.com> Co-authored-by: Mzoro <32166698+MzoroHaHa@users.noreply.github.com> Co-authored-by: Menno Co-authored-by: Sebastiaan Pasma Co-authored-by: Chris Bajorin Co-authored-by: lsnch <20382674+lsnch@users.noreply.github.com> Co-authored-by: TypeScript Bot Co-authored-by: Sun Knudsen Co-authored-by: ed eustace Co-authored-by: SGT Co-authored-by: Ivan Sieder <35377072+ivansieder@users.noreply.github.com> Co-authored-by: Guy Gascoigne-Piggford Co-authored-by: Valikhan Akhmedov Co-authored-by: Oblarg Co-authored-by: Chen Co-authored-by: taoqf Co-authored-by: MrFragIT Co-authored-by: MarcoRu Co-authored-by: thislooksfun Co-authored-by: Oz Weiss Co-authored-by: Bill Sorensen Co-authored-by: slikts Co-authored-by: KozelAnatoliy Co-authored-by: Simon Buchan Co-authored-by: vvnab Co-authored-by: woutervh- Co-authored-by: Avery Fay Co-authored-by: Eduardo Turiño Co-authored-by: Chris Neven Co-authored-by: Douglas Antunes Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com> Co-authored-by: Christopher Mühl Co-authored-by: Kenneth Aasan Co-authored-by: Alex Jerabek <38896772+AlexJerabek@users.noreply.github.com> Co-authored-by: Jeffrey Cherewaty Co-authored-by: Tomas Carnecky Co-authored-by: Crocsx Co-authored-by: Kent Robin Co-authored-by: Jannic Beck Co-authored-by: Kohei Matsubara Co-authored-by: a-sync Co-authored-by: Puneet Arora Co-authored-by: Benjamin Pasero Co-authored-by: Sean Sellek Co-authored-by: Matthew Co-authored-by: Juliette Regimbal Co-authored-by: Hafiz Co-authored-by: Amir Hoseinian Co-authored-by: load28 Co-authored-by: Gabriela Araujo Britto Co-authored-by: Andrew Casey Co-authored-by: Eloy Durán Co-authored-by: Tom Kent Co-authored-by: Xiao Ling Co-authored-by: Konstantin Azizov Co-authored-by: Colby M. White Co-authored-by: Nikita Galkin Co-authored-by: TypeScript Bot Co-authored-by: Ata Berk Yılmaz Co-authored-by: Rick-Kirkham Co-authored-by: xinxinran0221010 Co-authored-by: Nader Al-Shamma <10171089+nadershamma@users.noreply.github.com> Co-authored-by: Nader Al-Shamma Co-authored-by: WhizSid Co-authored-by: Gerhard Stöbich <18708370+Flarna@users.noreply.github.com> Co-authored-by: André Vitor de Lima Matos Co-authored-by: Jan Vennemann Co-authored-by: Alex Guerrero Co-authored-by: Billy Newman Co-authored-by: Sean Kelley Co-authored-by: Kagami Sascha Rosylight Co-authored-by: Armando Aguirre Co-authored-by: Ezequiel Surijon Co-authored-by: Ezequiel Surijon Co-authored-by: Junxiao Shi Co-authored-by: Glenn Reyes Co-authored-by: Jon Phenow Co-authored-by: Jerry Hu <4749863+jerry2013@users.noreply.github.com> Co-authored-by: Pawel Co-authored-by: Jeffrey Cherewaty Co-authored-by: Daniel Hirth Co-authored-by: Daniel Hirth Co-authored-by: Valentin Agachi Co-authored-by: Andrew van Rooyen Co-authored-by: Robert Cooper Co-authored-by: Emily Marigold Klassen Co-authored-by: andy cunningham Co-authored-by: Pine Co-authored-by: VSCode Co-authored-by: Sebastian Silbermann Co-authored-by: chivesrs Co-authored-by: ahagelstein Co-authored-by: Bumsik Kim Co-authored-by: MU AOHUA Co-authored-by: aohua Co-authored-by: Daniel Rosenwasser Co-authored-by: Philip Frank Co-authored-by: Cédric Taschereau Co-authored-by: Cédric Taschereau Co-authored-by: Neal Mummau Co-authored-by: Romin Halltari Co-authored-by: Sudhi Ramamurthy Co-authored-by: Sudhi Co-authored-by: cherryblossom000 <31467609+cherryblossom000@users.noreply.github.com> Co-authored-by: 943297456 <943297456@users.noreply.github.com> Co-authored-by: Mustafa Salaheldin Co-authored-by: Nico Hernandez --- .github/CODEOWNERS | 761 +- README.es.md | 42 +- README.ko.md | 123 +- README.md | 42 +- README.ru.md | 22 +- notNeededPackages.json | 138 +- package.json | 3 +- types/absolute/tsconfig.json | 4 +- types/absolute/tslint.json | 80 +- types/acc-wizard/tsconfig.json | 4 +- types/acc-wizard/tslint.json | 70 +- types/accounting/tsconfig.json | 4 +- types/ace/tslint.json | 47 +- types/acl/tsconfig.json | 4 +- types/acorn/tsconfig.json | 4 +- types/acorn/tslint.json | 2 +- types/actioncable/tsconfig.json | 4 +- types/actioncable/tslint.json | 70 +- types/activestorage/tslint.json | 18 +- types/activex-access/tslint.json | 6 +- types/activex-adodb/tslint.json | 6 +- types/activex-adox/tslint.json | 4 +- types/activex-dao/tslint.json | 2 +- types/activex-excel/tslint.json | 6 +- types/activex-infopath/tslint.json | 2 +- types/activex-libreoffice/tslint.json | 1 - types/activex-msforms/tslint.json | 6 +- types/activex-mshtml/tslint.json | 6 +- types/activex-msxml2/tslint.json | 6 +- types/activex-office/tslint.json | 6 +- types/activex-outlook/tslint.json | 2 +- types/activex-powerpoint/tslint.json | 2 +- types/activex-stdole/tslint.json | 2 +- types/activex-vbide/tslint.json | 6 +- types/activex-wia/tslint.json | 4 +- types/activex-word/tslint.json | 2 +- types/add2home/tsconfig.json | 4 +- types/add2home/tslint.json | 71 +- types/adone/tslint.json | 15 +- types/aframe/tslint.json | 3 +- types/ag-channel/ag-channel-tests.ts | 39 + types/ag-channel/index.d.ts | 120 + types/{hapi__lab => ag-channel}/tsconfig.json | 10 +- types/{hapi__iron => ag-channel}/tslint.json | 0 .../ag-simple-broker-tests.ts | 28 + types/ag-simple-broker/index.d.ts | 148 + .../tsconfig.json | 11 +- .../tslint.json | 0 types/agenda/tsconfig.json | 4 +- types/agenda/tslint.json | 65 +- types/agora-rtc-sdk/index.d.ts | 1388 +- types/agora-rtc-sdk/tslint.json | 13 +- types/airbnb-prop-types/tslint.json | 2 +- types/ajv-async/tslint.json | 7 +- types/ajv-errors/tslint.json | 7 +- types/ajv-keywords/tslint.json | 7 +- types/ajv-merge-patch/tslint.json | 7 +- types/ajv-pack/tslint.json | 7 +- types/akamai-edgeworkers/index.d.ts | 50 +- types/akamai-edgeworkers/tsconfig.json | 2 +- types/akumina-core/tslint.json | 7 +- types/alertify/tsconfig.json | 4 +- types/alertify/tslint.json | 71 +- types/alex/alex-tests.ts | 22 + types/alex/index.d.ts | 49 + .../{jest-matcher-utils => alex}/package.json | 2 +- types/{jest-matchers => alex}/tsconfig.json | 6 +- types/{hapi__accept => alex}/tslint.json | 0 types/alexa-sdk/tsconfig.json | 4 +- types/alexa-sdk/tslint.json | 10 +- types/algoliasearch/index.d.ts | 7 +- types/algoliasearch/lite/index.d.ts | 11 +- types/algoliasearch/tsconfig.json | 4 +- types/algoliasearch/tslint.json | 103 +- types/ali-app/tslint.json | 10 +- types/ali-oss/tslint.json | 2 +- types/alks-node/tslint.json | 7 +- types/alt/tsconfig.json | 4 +- types/alt/tslint.json | 54 +- .../amap-js-api-transfer-tests.ts | 371 + types/amap-js-api-transfer/index.d.ts | 609 + types/amap-js-api-transfer/tsconfig.json | 24 + .../tslint.json | 0 types/amap-js-api/amap-js-api-tests.ts | 12 + types/amap-js-api/index.d.ts | 1 + types/amap-js-api/plugin.d.ts | 14 + types/amap-js-api/tsconfig.json | 2 +- types/amazon-connect-streams/index.d.ts | 2 +- types/amazon-product-api/tsconfig.json | 4 +- types/amazon-product-api/tslint.json | 63 +- types/amcharts/tslint.json | 4 - types/amplify-deferred/tsconfig.json | 6 +- types/amplify/tslint.json | 4 +- types/amplitude-js/amplitude-js-tests.ts | 299 +- types/amplitude-js/index.d.ts | 97 +- types/amplitude-js/tsconfig.json | 4 +- types/amplitude-js/tslint.json | 89 +- types/amplitude-js/v4/amplitude-js-tests.ts | 117 + types/amplitude-js/v4/index.d.ts | 150 + types/amplitude-js/v4/tsconfig.json | 26 + types/amplitude-js/v4/tslint.json | 21 + types/amqp-connection-manager/index.d.ts | 19 +- types/amqp-connection-manager/tslint.json | 12 +- types/amqp-rpc/tslint.json | 60 +- types/amqp/tslint.json | 4 +- types/amqplib/tslint.json | 3 +- types/analytics-node/tsconfig.json | 4 +- types/anchor-js/anchor-js-tests.ts | 9 + types/anchor-js/index.d.ts | 8 +- types/angular-agility/tsconfig.json | 4 +- types/angular-agility/tslint.json | 77 +- types/angular-animate/tsconfig.json | 4 +- types/angular-animate/tslint.json | 71 +- types/angular-aria/angular-aria-tests.ts | 21 + types/angular-aria/index.d.ts | 31 + types/angular-aria/tsconfig.json | 24 + types/angular-aria/tslint.json | 6 + .../angular-bootstrap-calendar/tsconfig.json | 4 +- types/angular-bootstrap-calendar/tslint.json | 65 +- .../angular-bootstrap-lightbox/tsconfig.json | 4 +- types/angular-bootstrap-lightbox/tslint.json | 78 +- types/angular-breadcrumb/tsconfig.json | 4 +- types/angular-breadcrumb/tslint.json | 69 +- types/angular-clipboard/tslint.json | 75 +- types/angular-cookie/tsconfig.json | 4 +- types/angular-cookie/tslint.json | 68 +- types/angular-cookies/tsconfig.json | 4 +- types/angular-cookies/tslint.json | 72 +- .../angular-deferred-bootstrap/tsconfig.json | 4 +- types/angular-deferred-bootstrap/tslint.json | 71 +- types/angular-dialog-service/tslint.json | 65 +- types/angular-environment/tslint.json | 71 +- types/angular-es/tsconfig.json | 4 +- types/angular-es/tslint.json | 67 +- types/angular-feature-flags/tsconfig.json | 4 +- types/angular-feature-flags/tslint.json | 70 +- types/angular-file-saver/tsconfig.json | 4 +- types/angular-file-saver/tslint.json | 71 +- types/angular-formly/tslint.json | 61 +- types/angular-fullscreen/tslint.json | 81 +- types/angular-gettext/tsconfig.json | 4 +- types/angular-gettext/tslint.json | 60 +- types/angular-google-analytics/tsconfig.json | 4 +- types/angular-google-analytics/tslint.json | 81 +- types/angular-growl-v2/tsconfig.json | 4 +- types/angular-growl-v2/tslint.json | 61 +- types/angular-hotkeys/tslint.json | 18 +- types/angular-http-auth/tsconfig.json | 4 +- types/angular-http-auth/tslint.json | 61 +- types/angular-httpi/tsconfig.json | 4 +- types/angular-httpi/tslint.json | 67 +- types/angular-idle/tsconfig.json | 4 +- types/angular-idle/tslint.json | 68 +- types/angular-jwt/tslint.json | 78 +- types/angular-load/tsconfig.json | 4 +- types/angular-load/tslint.json | 66 +- types/angular-loading-bar/tslint.json | 66 +- .../angular-local-storage-tests.ts | 115 +- types/angular-local-storage/index.d.ts | 76 +- types/angular-local-storage/tsconfig.json | 4 +- types/angular-local-storage/tslint.json | 89 +- types/angular-localforage/tslint.json | 56 +- types/angular-locker/tsconfig.json | 4 +- types/angular-locker/tslint.json | 59 +- types/angular-material/index.d.ts | 2 + types/angular-material/tslint.json | 5 +- types/angular-media-queries/tsconfig.json | 4 +- types/angular-media-queries/tslint.json | 62 +- types/angular-meteor/index.d.ts | 2 +- types/angular-meteor/tsconfig.json | 4 +- types/angular-meteor/tslint.json | 58 +- types/angular-mocks/tslint.json | 18 +- types/angular-modal/tslint.json | 58 +- types/angular-notifications/tsconfig.json | 4 +- types/angular-notifications/tslint.json | 69 +- types/angular-notify/tsconfig.json | 4 +- types/angular-notify/tslint.json | 56 +- types/angular-odata-resources/tslint.json | 59 +- types/angular-permission/tslint.json | 59 +- types/angular-promise-tracker/tslint.json | 69 +- types/angular-q-spread/tslint.json | 69 +- types/angular-resource/tslint.json | 11 +- types/angular-route/tslint.json | 59 +- types/angular-sanitize/tslint.json | 71 +- types/angular-scenario/tsconfig.json | 4 +- types/angular-scenario/tslint.json | 69 +- types/angular-scroll/tslint.json | 65 +- types/angular-signalr-hub/tslint.json | 63 +- types/angular-spinner/tsconfig.json | 4 +- types/angular-spinner/tslint.json | 70 +- types/angular-storage/tsconfig.json | 4 +- types/angular-storage/tslint.json | 62 +- types/angular-strap/tsconfig.json | 4 +- types/angular-strap/tslint.json | 12 +- types/angular-toastr/tslint.json | 77 +- types/angular-toasty/tsconfig.json | 4 +- types/angular-toasty/tslint.json | 57 +- types/angular-translate/tsconfig.json | 4 +- types/angular-translate/tslint.json | 58 +- types/angular-ui-bootstrap/tslint.json | 60 +- types/angular-ui-notification/tsconfig.json | 4 +- types/angular-ui-notification/tslint.json | 81 +- types/angular-ui-router/tslint.json | 50 +- types/angular-ui-scroll/tslint.json | 56 +- types/angular-ui-sortable/tslint.json | 58 +- types/angular-ui-tree/tslint.json | 72 +- types/angular-websocket/tslint.json | 2 +- types/angular-wizard/tslint.json | 60 +- types/angular-xeditable/tsconfig.json | 4 +- types/angular-xeditable/tslint.json | 69 +- types/angular.throttle/tsconfig.json | 4 +- types/angular.throttle/tslint.json | 63 +- types/angular/tslint.json | 22 +- types/angularfire/tsconfig.json | 4 +- types/angularfire/tslint.json | 64 +- types/angularlocalstorage/tsconfig.json | 4 +- types/angularlocalstorage/tslint.json | 66 +- types/angulartics/tslint.json | 64 +- types/animation-frame/tsconfig.json | 4 +- types/animation-frame/tslint.json | 71 +- types/ansi-styles/tsconfig.json | 4 +- types/ansi-styles/tslint.json | 66 +- types/ansicolors/tsconfig.json | 4 +- types/ansicolors/tslint.json | 80 +- types/any-db-transaction/tsconfig.json | 4 +- types/any-db-transaction/tslint.json | 69 +- types/any-db/tsconfig.json | 4 +- types/any-db/tslint.json | 66 +- types/anyproxy/anyproxy-tests.ts | 8 + types/anyproxy/index.d.ts | 7 +- types/apex.js/index.d.ts | 2 +- types/api-error-handler/tsconfig.json | 4 +- types/api-error-handler/tslint.json | 70 +- types/apigee-access/tsconfig.json | 4 +- types/apigee-access/tslint.json | 67 +- types/apostrophe/tslint.json | 4 +- types/app-root-path/tsconfig.json | 4 +- types/app-root-path/tslint.json | 70 +- types/appframework/tsconfig.json | 4 +- types/appframework/tslint.json | 64 +- types/apple-mapkit-js/tslint.json | 4 +- .../apple-signin-api-tests.ts | 42 + types/apple-signin-api/index.d.ts | 49 + .../tsconfig.json | 6 +- .../tslint.json | 0 types/applepayjs/tslint.json | 5 +- types/appletvjs/tslint.json | 61 +- types/applicationinsights-js/tslint.json | 3 +- types/arangodb/index.d.ts | 18 +- types/arbiter/tslint.json | 66 +- types/arcgis-js-api/tsconfig.json | 4 +- types/arcgis-js-api/tslint.json | 62 +- types/arcgis-js-api/v3/tsconfig.json | 4 +- types/arcgis-js-api/v3/tslint.json | 64 +- types/arcgis-to-geojson-utils/tslint.json | 2 +- types/archiver/archiver-tests.ts | 19 +- types/archiver/index.d.ts | 43 +- types/archiver/tsconfig.json | 4 +- types/archiver/tslint.json | 4 +- types/archy/tsconfig.json | 4 +- types/archy/tslint.json | 69 +- types/argparse/tsconfig.json | 2 +- types/argv/tsconfig.json | 4 +- types/argv/tslint.json | 70 +- types/array-foreach/tslint.json | 72 +- types/array-initial/array-initial-tests.ts | 3 + types/array-initial/index.d.ts | 8 + types/array-initial/tsconfig.json | 23 + .../tslint.json | 0 types/array-sort/tslint.json | 18 +- types/array.prototype.flat/index.d.ts | 1 + types/array.prototype.flatmap/index.d.ts | 1 + types/asana/index.d.ts | 27 +- types/asana/tslint.json | 61 +- types/asciify/tsconfig.json | 4 +- types/asciify/tslint.json | 63 +- types/asn1js/tslint.json | 62 +- types/aspnet-identity-pw/tslint.json | 68 +- types/assert-plus/tslint.json | 18 +- types/assert/assert-tests.ts | 10 +- types/assert/index.d.ts | 15 +- types/assert/package.json | 7 + types/assert/ts3.7/assert-tests.ts | 59 + types/assert/ts3.7/index.d.ts | 58 + types/assert/ts3.7/tsconfig.json | 19 + .../{hapi__hoek => assert/ts3.7}/tslint.json | 0 types/assert/tsconfig.json | 13 +- types/assert/tslint.json | 4 +- types/assertsharp/tsconfig.json | 4 +- types/assertsharp/tslint.json | 72 +- .../async-iterable-stream-tests.ts | 56 + types/async-iterable-stream/index.d.ts | 23 + types/async-iterable-stream/tsconfig.json | 24 + .../tslint.json | 0 types/async-lock/tsconfig.json | 4 +- types/async-polling/tslint.json | 68 +- .../async-stream-emitter-tests.ts | 34 + types/async-stream-emitter/index.d.ts | 33 + types/async-stream-emitter/tsconfig.json | 24 + types/async-stream-emitter/tslint.json | 3 + types/async-writer/tsconfig.json | 4 +- types/async-writer/tslint.json | 68 +- types/async/index.d.ts | 59 +- types/async/test/index.ts | 31 +- types/async/tslint.json | 8 +- types/asynciterator/index.d.ts | 20 +- types/asynciterator/tslint.json | 16 +- types/atmosphere.js/tslint.json | 63 +- types/atom/atom-tests.ts | 9 + types/atom/index.d.ts | 58 +- types/atpl/tslint.json | 69 +- types/auth0-angular/tslint.json | 68 +- types/auth0-js/auth0-js-tests.ts | 70 +- types/auth0-js/index.d.ts | 127 +- types/auth0-js/v7/tslint.json | 70 +- types/auth0-lock/tslint.json | 24 +- types/auth0.widget/tsconfig.json | 4 +- types/auth0.widget/tslint.json | 71 +- types/auth0/tslint.json | 57 +- types/autobahn/tslint.json | 61 +- types/autoprefixer-core/tslint.json | 69 +- types/autoprefixer/autoprefixer-tests.ts | 25 +- types/autoprefixer/index.d.ts | 42 +- types/autosuggest-highlight/tslint.json | 2 +- types/avoscloud-sdk/tsconfig.json | 4 +- types/avoscloud-sdk/tslint.json | 48 +- types/awesomplete/tslint.json | 2 +- types/aws-iot-device-sdk/tslint.json | 69 +- types/aws-lambda/README.md | 189 + types/aws-lambda/aws-lambda-tests.ts | 1404 +- types/aws-lambda/common/api-gateway.d.ts | 67 + types/aws-lambda/common/cloudfront.d.ts | 79 + types/aws-lambda/handler.d.ts | 171 + types/aws-lambda/index.d.ts | 1208 +- types/aws-lambda/test/alb-tests.ts | 30 + types/aws-lambda/test/api-gateway-tests.ts | 467 + types/aws-lambda/test/cloudformation-tests.ts | 74 + types/aws-lambda/test/cloudfront-tests.ts | 279 + types/aws-lambda/test/cloudwatch-tests.ts | 45 + types/aws-lambda/test/codepipeline-tests.ts | 77 + types/aws-lambda/test/cognito-tests.ts | 115 + types/aws-lambda/test/dynamodb-tests.ts | 98 + types/aws-lambda/test/kinesis-tests.ts | 50 + types/aws-lambda/test/lex-tests.ts | 122 + types/aws-lambda/test/s3-tests.ts | 102 + types/aws-lambda/test/sns-tests.ts | 29 + types/aws-lambda/test/sqs-tests.ts | 45 + types/aws-lambda/trigger/alb.d.ts | 32 + .../trigger/api-gateway-authorizer.d.ts | 149 + .../aws-lambda/trigger/api-gateway-proxy.d.ts | 73 + .../cloudformation-custom-resource.d.ts | 68 + .../trigger/cloudfront-request.d.ts | 20 + .../trigger/cloudfront-response.d.ts | 21 + .../aws-lambda/trigger/cloudwatch-events.d.ts | 19 + types/aws-lambda/trigger/cloudwatch-logs.d.ts | 33 + .../codepipeline-cloudwatch-action.d.ts | 31 + .../codepipeline-cloudwatch-pipeline.d.ts | 32 + .../codepipeline-cloudwatch-stage.d.ts | 23 + .../trigger/codepipeline-cloudwatch.d.ts | 11 + types/aws-lambda/trigger/codepipeline.d.ts | 55 + .../trigger/cognito-user-pool-trigger.d.ts | 100 + types/aws-lambda/trigger/dynamodb-stream.d.ts | 45 + .../kinesis-firehose-transformation.d.ts | 45 + types/aws-lambda/trigger/kinesis-stream.d.ts | 28 + types/aws-lambda/trigger/lex.d.ts | 103 + types/aws-lambda/trigger/s3-batch.d.ts | 41 + types/aws-lambda/trigger/s3.d.ts | 60 + types/aws-lambda/trigger/sns.d.ts | 38 + types/aws-lambda/trigger/sqs.d.ts | 43 + types/aws-lambda/tsconfig.json | 17 +- types/aws-lambda/tslint.json | 6 +- .../aws-serverless-express-tests.ts | 20 +- types/aws-serverless-express/index.d.ts | 8 +- types/aws-serverless-express/middleware.d.ts | 16 + types/aws-serverless-express/tsconfig.json | 4 +- types/aws4/tslint.json | 74 +- types/axe-webdriverjs/tslint.json | 18 +- types/axel/tsconfig.json | 4 +- types/axel/tslint.json | 67 +- types/azdata/azdata-tests.ts | 16 + types/azdata/index.d.ts | 5250 + types/azdata/tsconfig.json | 16 + types/azdata/tslint.json | 15 + types/azure-kusto-data/tslint.json | 7 +- .../azure-mobile-services-client/tslint.json | 57 +- types/azure-sb/tsconfig.json | 4 +- types/azure-sb/tslint.json | 62 +- types/azure/tslint.json | 62 +- types/babel-core/tsconfig.json | 4 +- types/babel-generator/tsconfig.json | 4 +- .../babel-plugin-macros-tests.ts | 4 +- types/babel-plugin-macros/index.d.ts | 34 +- types/babel-plugin-macros/tslint.json | 18 +- types/babel-plugin-syntax-jsx/tsconfig.json | 4 +- types/babel-template/tsconfig.json | 4 +- types/babel__core/babel__core-tests.ts | 24 + types/babel__core/index.d.ts | 31 +- types/babel__core/tslint.json | 7 +- types/babel__standalone/index.d.ts | 2 +- .../babel__traverse/babel__traverse-tests.ts | 49 + types/babel__traverse/index.d.ts | 8 +- types/babel__traverse/tslint.json | 7 +- types/babelify/tslint.json | 61 +- types/babylon-walk/tsconfig.json | 4 +- types/babylon/tsconfig.json | 4 +- types/babyparse/tslint.json | 51 +- types/backbone-associations/tsconfig.json | 4 +- types/backbone-associations/tslint.json | 68 +- types/backbone-fetch-cache/tsconfig.json | 6 +- types/backbone-fetch-cache/tslint.json | 69 +- types/backbone-relational/tsconfig.json | 4 +- types/backbone-relational/tslint.json | 9 +- types/backbone.layoutmanager/tsconfig.json | 4 +- types/backbone.layoutmanager/tslint.json | 65 +- types/backbone.localstorage/tsconfig.json | 4 +- types/backbone.localstorage/tslint.json | 74 +- types/backbone.marionette/tsconfig.json | 4 +- types/backbone.marionette/tslint.json | 3 +- types/backbone.paginator/tslint.json | 60 +- types/backbone.radio/tslint.json | 67 +- types/backbone/tslint.json | 9 +- types/backgrid/tsconfig.json | 4 +- types/backgrid/tslint.json | 65 +- types/backlog-js/tsconfig.json | 6 +- types/backlog-js/tslint.json | 69 +- types/backoff/tsconfig.json | 4 +- types/backstopjs/tslint.json | 18 +- types/bagpipes/tslint.json | 3 +- types/baidumap-web-sdk/tslint.json | 10 +- types/balanced-match/balanced-match-tests.ts | 10 +- types/balanced-match/index.d.ts | 26 +- types/balanced-match/tsconfig.json | 36 +- types/balanced-match/tslint.json | 4 +- types/barcode/tsconfig.json | 4 +- types/barcode/tslint.json | 68 +- types/bardjs/tsconfig.json | 4 +- types/bardjs/tslint.json | 67 +- types/base16/tsconfig.json | 4 +- types/base16/tslint.json | 73 +- types/base64-stream/base64-stream-tests.ts | 7 + types/base64-stream/index.d.ts | 14 + types/base64-stream/tsconfig.json | 23 + types/base64-stream/tslint.json | 1 + types/bases/tslint.json | 70 +- types/basic-auth/index.d.ts | 5 +- types/batch-stream/tsconfig.json | 4 +- types/batch-stream/tslint.json | 71 +- types/bazinga-translator/index.d.ts | 152 +- .../test/bazinga-translator-tests.commonjs.ts | 14 + .../bazinga-translator-tests.umd.ts} | 0 types/bazinga-translator/tsconfig.json | 7 +- types/bazinga-translator/tslint.json | 81 +- types/bcrypt-nodejs/bcrypt-nodejs-tests.ts | 53 +- types/bcrypt-nodejs/index.d.ts | 27 +- types/bcrypt-nodejs/tsconfig.json | 4 +- types/bcrypt-nodejs/tslint.json | 81 +- types/bcrypt/tslint.json | 69 +- types/bcryptjs/tsconfig.json | 4 +- types/bcryptjs/tslint.json | 72 +- types/bearcat-es6/bearcat-es6-tests.ts | 131 + types/bearcat-es6/index.d.ts | 1203 + .../tsconfig.json | 4 +- types/{hapi__topo => bearcat-es6}/tslint.json | 0 types/bech32/bech32-tests.ts | 2 +- types/bech32/index.d.ts | 8 +- types/bell/tslint.json | 4 +- types/benchmark/tslint.json | 60 +- types/bent/index.d.ts | 20 +- types/better-curry/tslint.json | 59 +- types/bezier-js/tslint.json | 59 +- types/bgiframe/tsconfig.json | 4 +- types/bgiframe/tslint.json | 76 +- types/big.js/tslint.json | 2 +- types/bigint/tslint.json | 69 +- types/bignum/tsconfig.json | 4 +- types/bignum/tslint.json | 70 +- types/bigscreen/tsconfig.json | 4 +- types/bigscreen/tslint.json | 72 +- types/binary-parser/binary-parser-tests.ts | 14 + types/binary-parser/index.d.ts | 16 +- types/bind-ponyfill/tslint.json | 72 +- types/bintrees/tsconfig.json | 4 +- types/bintrees/tslint.json | 63 +- types/bip21/tsconfig.json | 4 +- types/bip21/tslint.json | 66 +- types/bit-array/tsconfig.json | 4 +- types/bit-array/tslint.json | 71 +- types/bittorrent-protocol/tslint.json | 4 +- types/bl/tslint.json | 67 +- .../blazor__javascript-interop-tests.ts | 47 + types/blazor__javascript-interop/index.d.ts | 56 + .../tsconfig.json | 10 +- .../tslint.json | 0 types/blazy/tsconfig.json | 4 +- types/blazy/tslint.json | 66 +- types/bleno/tslint.json | 13 +- types/blessed/index.d.ts | 9 +- types/blessed/tslint.json | 81 +- types/blip-sdk/index.d.ts | 12 + types/blissfuljs/tslint.json | 49 +- types/blob-stream/tsconfig.json | 4 +- types/blob-stream/tslint.json | 69 +- types/blocks/tslint.json | 57 +- types/blue-tape/tslint.json | 70 +- types/bluebird-global/tslint.json | 7 +- types/bluebird-retry/tsconfig.json | 4 +- types/bluebird/bluebird-tests.ts | 2 +- types/bluebird/index.d.ts | 2 +- types/bluebird/tslint.json | 2 +- types/bluebird/v1/tsconfig.json | 4 +- types/bluebird/v1/tslint.json | 51 +- types/bluebird/v2/tsconfig.json | 4 +- types/bluebird/v2/tslint.json | 49 +- types/blueimp-md5/tsconfig.json | 4 +- types/blueimp-md5/tslint.json | 75 +- types/bn.js/tslint.json | 9 +- types/body-parser/body-parser-tests.ts | 42 +- types/body-parser/index.d.ts | 65 +- types/body-parser/tsconfig.json | 4 +- types/body-parser/tslint.json | 7 +- types/bonjour/index.d.ts | 4 +- types/bonjour/tslint.json | 2 +- types/bookshelf/tslint.json | 54 +- types/boolify-string/tsconfig.json | 4 +- types/boolify-string/tslint.json | 73 +- types/boom/v3/tsconfig.json | 4 +- types/boom/v3/tslint.json | 70 +- types/boom/v4/tslint.json | 68 +- types/bootbox/tsconfig.json | 4 +- types/bootbox/tslint.json | 62 +- types/bootpag/tsconfig.json | 4 +- types/bootpag/tslint.json | 72 +- types/bootstrap-colorpicker/tslint.json | 10 +- .../bootstrap-datepicker-tests.ts | 25 + types/bootstrap-datepicker/index.d.ts | 57 +- types/bootstrap-datepicker/tsconfig.json | 4 +- types/bootstrap-datepicker/tslint.json | 64 +- types/bootstrap-fileinput/tsconfig.json | 6 +- types/bootstrap-fileinput/tslint.json | 68 +- types/bootstrap-maxlength/tsconfig.json | 4 +- types/bootstrap-maxlength/tslint.json | 64 +- types/bootstrap-notify/tslint.json | 68 +- types/bootstrap-select/tslint.json | 70 +- types/bootstrap-switch/tsconfig.json | 4 +- types/bootstrap-switch/tslint.json | 69 +- types/bootstrap-touchspin/tsconfig.json | 4 +- types/bootstrap-touchspin/tslint.json | 71 +- types/bootstrap.paginator/tsconfig.json | 4 +- types/bootstrap.paginator/tslint.json | 76 +- types/bootstrap.timepicker/tsconfig.json | 4 +- types/bootstrap.timepicker/tslint.json | 75 +- types/bootstrap.v3.datetimepicker/tslint.json | 11 +- .../v3/tslint.json | 73 +- types/bounce.js/tsconfig.json | 4 +- types/bounce.js/tslint.json | 73 +- types/box-intersect/box-intersect-tests.ts | 36 + types/box-intersect/index.d.ts | 17 + types/box-intersect/tsconfig.json | 24 + types/box-intersect/tslint.json | 3 + types/box2d/tslint.json | 57 +- types/brainhubeu__react-carousel/index.d.ts | 2 +- types/braintree-web/tslint.json | 54 +- types/braintree/braintree-tests.ts | 83 +- types/braintree/index.d.ts | 171 +- types/braintree/tslint.json | 2 +- types/breeze/tslint.json | 44 +- types/bresenham/bresenham-tests.ts | 12 + types/bresenham/generator.d.ts | 11 + types/bresenham/index.d.ts | 22 + .../tsconfig.json | 6 +- .../{jest-docblock => bresenham}/tslint.json | 0 types/brorand/tsconfig.json | 4 +- types/brorand/tslint.json | 72 +- .../brotli-webpack-plugin-tests.ts | 22 + types/brotli-webpack-plugin/index.d.ts | 44 + types/brotli-webpack-plugin/tsconfig.json | 23 + .../tslint.json | 0 types/browser-bunyan/tsconfig.json | 4 +- types/browser-harness/tsconfig.json | 4 +- types/browser-harness/tslint.json | 61 +- .../browser-or-node/browser-or-node-tests.ts | 13 + types/browser-or-node/index.d.ts | 9 + types/browser-or-node/tsconfig.json | 24 + types/browser-or-node/tslint.json | 3 + types/browser-pack/tslint.json | 64 +- types/browser-report/tsconfig.json | 4 +- types/browser-report/tslint.json | 69 +- types/browser-resolve/tslint.json | 69 +- types/browser-sync/tsconfig.json | 4 +- types/browser-sync/tslint.json | 62 +- types/browserify/tsconfig.json | 4 +- types/browserify/tslint.json | 62 +- types/browserslist/browserslist-tests.ts | 36 +- types/browserslist/index.d.ts | 24 +- types/bson/tslint.json | 63 +- types/bucks/tslint.json | 64 +- types/buffer-compare/tsconfig.json | 4 +- types/buffer-compare/tslint.json | 71 +- types/buffer-equal/tslint.json | 71 +- types/buffer-split/buffer-split-tests.ts | 7 + types/buffer-split/index.d.ts | 10 + types/buffer-split/tsconfig.json | 23 + .../tslint.json | 0 types/buffers/tslint.json | 72 +- types/bufferstream/tsconfig.json | 4 +- types/bull-board/bull-board-tests.ts | 14 + types/bull-board/index.d.ts | 23 + types/bull-board/tsconfig.json | 24 + .../tslint.json | 0 types/bull/bull-tests.tsx | 10 + types/bull/index.d.ts | 18 +- types/bull/v2/tslint.json | 58 +- types/bulma-calendar/bulma-calendar-tests.ts | 92 + types/bulma-calendar/index.d.ts | 472 + types/bulma-calendar/tsconfig.json | 24 + .../tslint.json | 0 types/bunnymq/tsconfig.json | 4 +- types/bunnymq/tslint.json | 2 +- types/bunyan-blackhole/tsconfig.json | 4 +- types/bunyan-config/tsconfig.json | 4 +- types/bunyan-config/tslint.json | 68 +- types/bunyan-logentries/tsconfig.json | 4 +- types/bunyan-logentries/tslint.json | 72 +- types/bunyan-prettystream/tsconfig.json | 4 +- types/bunyan-prettystream/tslint.json | 71 +- types/bunyan/tsconfig.json | 4 +- types/bunyan/tslint.json | 13 +- types/busboy/tsconfig.json | 4 +- types/busboy/tslint.json | 67 +- types/business-rules-engine/tsconfig.json | 4 +- types/business-rules-engine/tslint.json | 62 +- types/bwip-js/tslint.json | 64 +- types/byline/tsconfig.json | 4 +- types/byline/tslint.json | 56 +- types/bytebuffer/tsconfig.json | 4 +- types/bytebuffer/tslint.json | 61 +- types/cache-manager/cache-manager-tests.ts | 24 + types/cache-manager/index.d.ts | 28 +- types/cache-manager/tsconfig.json | 4 +- types/cache-manager/tslint.json | 67 +- types/cal-heatmap/tslint.json | 64 +- types/callsite/tsconfig.json | 4 +- types/callsite/tslint.json | 69 +- types/calq/tsconfig.json | 4 +- types/calq/tslint.json | 66 +- types/camo/tslint.json | 65 +- .../camunda-external-task-client-js-tests.ts | 44 +- .../index.d.ts | 17 +- types/cannon/tslint.json | 60 +- .../canvas-confetti/canvas-confetti-tests.ts | 7 +- types/canvas-confetti/index.d.ts | 38 +- types/canvas-gauges/canvas-gauges-tests.ts | 38 +- types/canvas-gauges/index.d.ts | 18 +- types/canvas-gauges/tsconfig.json | 4 +- types/canvas-gauges/tslint.json | 66 +- types/canvasjs/tsconfig.json | 4 +- types/canvaskit-wasm/tslint.json | 18 +- types/capitalize/tslint.json | 9 +- .../carbon-components-react-tests.tsx | 220 + .../components/Accordion/AccordionItem.d.ts | 4 +- .../lib/components/DataTable/DataTable.d.ts | 4 +- .../lib/components/Dropdown/Dropdown.d.ts | 2 +- .../components/FileUploader/FileUploader.d.ts | 4 +- .../components/MultiSelect/MultiSelect.d.ts | 1 + .../components/NumberInput/NumberInput.d.ts | 7 +- .../lib/components/Slider/Slider.d.ts | 7 +- .../lib/components/Tab/Tab.d.ts | 1 + .../lib/components/TextArea/TextArea.d.ts | 5 +- .../TextInput/ControlledPasswordInput.d.ts | 2 +- .../components/TextInput/PasswordInput.d.ts | 2 +- .../lib/components/TextInput/props.d.ts | 5 +- .../lib/components/TileGroup/TileGroup.d.ts | 2 +- .../TooltipDefinition/TooltipDefinition.d.ts | 4 +- .../lib/components/UIShell/index.d.ts | 33 + types/carbon-components-react/tslint.json | 12 +- .../typings/shared.d.ts | 4 + types/carbone/carbone-tests.ts | 127 + types/carbone/index.d.ts | 93 + types/carbone/tsconfig.json | 23 + .../tslint.json | 0 types/cash/tsconfig.json | 4 +- types/cash/tslint.json | 68 +- types/casperjs/tsconfig.json | 4 +- types/casperjs/tslint.json | 9 +- types/cassanknex/tslint.json | 9 +- types/cavy/cavy-tests.tsx | 3 +- types/cavy/index.d.ts | 3 +- types/cesium/index.d.ts | 1196 +- types/cesium/test/cesium-global.test.ts | 11 + types/cesium/test/cesium-module.test.ts | 11 + types/cesium/tslint.json | 2 +- types/cfenv/cfenv-tests.ts | 34 + types/cfenv/index.d.ts | 41 + types/cfenv/tsconfig.json | 23 + .../tslint.json | 0 types/cfn-response/index.d.ts | 2 +- types/chai-as-promised/tslint.json | 65 +- types/chai-datetime/tsconfig.json | 4 +- types/chai-datetime/tslint.json | 73 +- types/chai-dom/tsconfig.json | 4 +- types/chai-dom/tslint.json | 69 +- types/chai-enzyme/tsconfig.json | 4 +- types/chai-enzyme/tslint.json | 67 +- types/chai-fuzzy/tsconfig.json | 4 +- types/chai-fuzzy/tslint.json | 71 +- types/chai-jquery/tsconfig.json | 4 +- types/chai-jquery/tslint.json | 64 +- types/chai-oequal/tslint.json | 2 +- types/chai-spies/tslint.json | 64 +- types/chai-string/tsconfig.json | 4 +- types/chai-string/tslint.json | 66 +- types/chai-style/chai-style-tests.ts | 13 + types/chai-style/index.d.ts | 18 + types/chai-style/tsconfig.json | 23 + types/chai-style/tslint.json | 1 + types/chai-subset/tsconfig.json | 4 +- types/chai-things/tsconfig.json | 4 +- types/chai-things/tslint.json | 68 +- types/chai/chai-tests.ts | 6 +- types/chai/index.d.ts | 60 +- types/chai/tsconfig.json | 4 +- types/chai/tslint.json | 5 +- types/chai/v2/tslint.json | 67 +- types/chance/chance-tests.ts | 3 + types/chance/index.d.ts | 2 +- types/chance/tsconfig.json | 4 +- types/chance/tslint.json | 4 +- types/change-emitter/tsconfig.json | 4 +- types/change-emitter/tslint.json | 68 +- types/charm/tslint.json | 2 +- types/chart.js/chart.js-tests.ts | 34 +- types/chart.js/index.d.ts | 31 +- .../package.json | 2 +- types/chart.js/tslint.json | 10 +- types/chartist/index.d.ts | 6 +- types/chartist/tslint.json | 59 +- types/check-sum/tslint.json | 2 +- types/checksum/tsconfig.json | 4 +- types/checksum/tslint.json | 71 +- types/cheerio/index.d.ts | 1 - types/cheerio/tslint.json | 66 +- types/chocolatechipjs/tsconfig.json | 4 +- types/chocolatechipjs/tslint.json | 12 +- types/chroma-js/chroma-js-tests.ts | 1 + types/chroma-js/index.d.ts | 4 +- types/chroma-js/tsconfig.json | 4 +- types/chroma-js/v0/tslint.json | 62 +- types/chrome-apps/tslint.json | 45 +- types/chrome/chrome-cast/index.d.ts | 19 + types/chrome/index.d.ts | 191 +- types/chrome/test/index.ts | 64 + types/chrome/tslint.json | 44 +- .../cast.framework.d.ts | 40 +- .../chromecast-caf-receiver-tests.ts | 3 + types/chromecast-caf-receiver/tsconfig.json | 4 +- types/chromecast-caf-sender/index.d.ts | 4 +- types/chui/tsconfig.json | 4 +- types/chui/tslint.json | 57 +- types/circular-json/tsconfig.json | 4 +- types/ckeditor/tslint.json | 4 +- types/ckeditor/v2/tslint.json | 2 +- types/ckeditor__ckeditor5-core/tslint.json | 12 +- types/ckeditor__ckeditor5-engine/tslint.json | 11 +- types/ckeditor__ckeditor5-utils/tslint.json | 12 +- types/clarinet/clarinet-tests.ts | 9 + types/clarinet/index.d.ts | 100 + types/clarinet/tsconfig.json | 24 + types/clarinet/tslint.json | 1 + types/classnames/index.d.ts | 1 - types/classnames/tslint.json | 9 +- types/cldrjs/tsconfig.json | 4 +- types/cldrjs/tslint.json | 63 +- types/clean-css/tsconfig.json | 4 +- types/clean-css/v3/tsconfig.json | 4 +- types/clean-css/v3/tslint.json | 61 +- types/clean-git-ref/clean-git-ref-tests.ts | 3 + types/clean-git-ref/index.d.ts | 6 + types/clean-git-ref/tsconfig.json | 23 + types/clean-git-ref/tslint.json | 1 + types/clearbladejs-node/tslint.json | 3 +- types/cleave.js/cleave.js-tests.tsx | 2 +- types/cli-color/art.d.ts | 5 + types/cli-color/bare.d.ts | 55 + types/cli-color/beep.d.ts | 2 + types/cli-color/cli-color-tests.ts | 106 +- types/cli-color/columns.d.ts | 29 + types/cli-color/erase.d.ts | 29 + types/cli-color/get-stripped-length.d.ts | 5 + types/cli-color/index.d.ts | 100 +- types/cli-color/move.d.ts | 56 + types/cli-color/reset.d.ts | 5 + types/cli-color/slice.d.ts | 5 + types/cli-color/strip.d.ts | 5 + types/cli-color/throbber.d.ts | 15 +- types/cli-color/trim.d.ts | 2 - types/cli-color/tslint.json | 66 +- types/cli-color/window-size.d.ts | 13 + types/cli-progress/cli-progress-tests.ts | 2 + types/cli-progress/index.d.ts | 2 +- types/cli/tslint.json | 58 +- types/cliff/tsconfig.json | 4 +- types/cliff/tslint.json | 73 +- types/clipboard-js/tslint.json | 73 +- types/clmtrackr/tslint.json | 18 +- types/clndr/tslint.json | 7 +- types/clockpicker/tsconfig.json | 6 +- types/clone/tsconfig.json | 4 +- types/clone/tslint.json | 70 +- types/closure-compiler/tslint.json | 73 +- types/cloud-env/tslint.json | 72 +- .../cloudevents-sdk/cloudevents-sdk-tests.ts | 14 + types/cloudevents-sdk/index.d.ts | 36 + types/cloudevents-sdk/tsconfig.json | 22 + types/cloudevents-sdk/tslint.json | 3 + types/clownface/clownface-tests.ts | 97 +- types/clownface/index.d.ts | 78 +- types/clownface/lib/Clownface.d.ts | 45 +- types/clownface/lib/Context.d.ts | 18 + types/cnpj/cnpj-tests.ts | 5 + types/cnpj/index.d.ts | 24 + types/cnpj/tsconfig.json | 23 + types/cnpj/tslint.json | 1 + types/co-body/tsconfig.json | 4 +- types/co-body/tslint.json | 66 +- types/co-views/tsconfig.json | 4 +- types/co-views/tslint.json | 2 +- types/codemirror/addon/comment/comment.d.ts | 2 +- .../codemirror/addon/display/autorefresh.d.ts | 16 + types/codemirror/addon/display/panel.d.ts | 2 +- .../codemirror/addon/edit/closebrackets.d.ts | 2 +- types/codemirror/addon/edit/closetag.d.ts | 2 +- .../codemirror/addon/edit/matchbrackets.d.ts | 2 +- types/codemirror/addon/edit/matchtags.d.ts | 2 +- types/codemirror/addon/hint/show-hint.d.ts | 11 +- types/codemirror/addon/runmode/runmode.d.ts | 2 +- .../addon/scroll/scrollpastend.d.ts | 2 +- .../addon/search/match-highlighter.d.ts | 2 +- .../codemirror/addon/search/searchcursor.d.ts | 2 +- .../addon/selection/active-line.d.ts | 2 +- types/codemirror/addon/tern/tern.d.ts | 2 +- types/codemirror/index.d.ts | 16 +- .../test/addon/display/autorefresh.ts | 6 + types/codemirror/tsconfig.json | 3 +- types/codemirror/tslint.json | 50 +- types/coffeeify/tsconfig.json | 4 +- types/coffeeify/tslint.json | 70 +- types/coinbase-commerce-node/tslint.json | 2 +- types/collections/tslint.json | 68 +- types/color-hash/color-hash-tests.ts | 31 + types/color-hash/index.d.ts | 58 + types/color-hash/tsconfig.json | 23 + types/color-hash/tslint.json | 1 + types/color/v0/tslint.json | 62 +- types/color/v1/tslint.json | 69 +- types/colorbrewer/tsconfig.json | 4 +- types/colorbrewer/tslint.json | 70 +- .../tsconfig.json | 4 +- .../tslint.json | 75 +- types/combinations/combinations-tests.ts | 6 + types/combinations/index.d.ts | 8 + types/combinations/tsconfig.json | 23 + types/combinations/tslint.json | 1 + types/combokeys/tslint.json | 70 +- types/command-line-args/tsconfig.json | 4 +- types/command-line-args/v4/tsconfig.json | 2 +- types/command-line-commands/tsconfig.json | 4 +- types/command-line-commands/tslint.json | 70 +- types/commangular/tsconfig.json | 4 +- types/commangular/tslint.json | 62 +- .../commitlint__load-tests.ts | 12 + types/commitlint__load/index.d.ts | 68 + types/commitlint__load/tsconfig.json | 26 + types/commitlint__load/tslint.json | 1 + types/common-tags/tsconfig.json | 4 +- types/compare-version/tsconfig.json | 4 +- types/compare-version/tslint.json | 68 +- types/component-emitter/tsconfig.json | 4 +- types/component-emitter/tslint.json | 68 +- types/compose-function/tsconfig.json | 4 +- types/compose-function/tslint.json | 71 +- types/compression/compression-tests.ts | 89 +- types/compression/index.d.ts | 103 +- types/compression/tsconfig.json | 4 +- types/compression/tslint.json | 81 +- types/concaveman/tsconfig.json | 4 +- types/concaveman/tslint.json | 68 +- types/concurrently/concurrently-tests.ts | 11 +- types/concurrently/index.d.ts | 22 +- types/concurrently/v4/concurrently-tests.ts | 20 + types/concurrently/v4/index.d.ts | 34 + types/concurrently/v4/tsconfig.json | 26 + types/concurrently/v4/tslint.json | 1 + types/conditional/conditional-tests.ts | 113 + types/conditional/index.d.ts | 76 + types/conditional/tsconfig.json | 23 + types/conditional/tslint.json | 1 + types/confidence/tsconfig.json | 4 +- types/confidence/tslint.json | 66 +- types/config/tsconfig.json | 4 +- types/config/tslint.json | 63 +- .../configs-overload-tests.ts | 8 + types/configs-overload/index.d.ts | 15 + types/configs-overload/tsconfig.json | 23 + types/configs-overload/tslint.json | 17 + types/confit/tslint.json | 58 +- types/connect-flash/tsconfig.json | 4 +- types/connect-flash/tslint.json | 64 +- types/connect-livereload/tsconfig.json | 4 +- types/connect-livereload/tslint.json | 68 +- types/connect-modrewrite/tsconfig.json | 4 +- types/connect-modrewrite/tslint.json | 71 +- types/connect-mongo/connect-mongo-tests.ts | 57 - types/connect-mongo/index.d.ts | 118 - types/connect-mongo/tsconfig.json | 23 - types/connect-mongo/tslint.json | 80 - types/connect-mongodb-session/tsconfig.json | 4 +- types/connect-mongodb-session/tslint.json | 61 +- types/connect-redis/tsconfig.json | 4 +- types/connect-redis/tslint.json | 69 +- types/connect-slashes/tsconfig.json | 4 +- types/connect-slashes/tslint.json | 68 +- types/connect-timeout/tsconfig.json | 4 +- types/connect-timeout/tslint.json | 68 +- types/connect/tsconfig.json | 4 +- types/connect/tslint.json | 68 +- types/console-stamp/tsconfig.json | 4 +- types/console-stamp/tslint.json | 64 +- types/consolidate/tsconfig.json | 4 +- types/consolidate/tslint.json | 69 +- types/consul/tslint.json | 68 +- .../consumable-stream-tests.ts | 56 + types/consumable-stream/index.d.ts | 23 + types/consumable-stream/tsconfig.json | 24 + types/consumable-stream/tslint.json | 3 + .../contentful-resolve-response/tsconfig.json | 4 +- types/contentful-resolve-response/tslint.json | 70 +- types/contentstack/contentstack-tests.ts | 201 + types/contentstack/index.d.ts | 111 + types/contentstack/tsconfig.json | 23 + types/contentstack/tslint.json | 1 + types/contextjs/tsconfig.json | 4 +- types/contextjs/tslint.json | 70 +- types/continuation-local-storage/tslint.json | 12 +- .../contract-proxy-kit-tests.ts | 110 + types/contract-proxy-kit/index.d.ts | 65 + types/contract-proxy-kit/package.json | 6 + types/contract-proxy-kit/tsconfig.json | 23 + types/contract-proxy-kit/tslint.json | 1 + .../OTHER_FILES.txt | 2 + ...onventional-changelog-config-spec-tests.ts | 35 + .../index.d.ts | 9 + .../tsconfig.json | 24 + .../tslint.json | 1 + .../versions/1.0.0/schema.json.d.ts | 131 + .../versions/2.0.0/schema.json.d.ts | 142 + .../versions/2.1.0/schema.json.d.ts | 150 + .../conventional-changelog-core-tests.ts | 25 + types/conventional-changelog-core/index.d.ts | 377 + .../conventional-changelog-core/tsconfig.json | 24 + types/conventional-changelog-core/tslint.json | 1 + ...ventional-changelog-preset-loader-tests.ts | 35 + .../index.d.ts | 56 + .../tsconfig.json | 24 + .../tslint.json | 1 + .../conventional-changelog-writer-tests.ts | 21 + .../conventional-changelog-writer/index.d.ts | 384 + .../tsconfig.json | 24 + .../conventional-changelog-writer/tslint.json | 1 + .../conventional-changelog-tests.ts | 26 + types/conventional-changelog/index.d.ts | 56 + types/conventional-changelog/tsconfig.json | 24 + types/conventional-changelog/tslint.json | 1 + .../conventional-commits-parser-tests.ts | 70 + types/conventional-commits-parser/index.d.ts | 305 + .../conventional-commits-parser/tsconfig.json | 24 + types/conventional-commits-parser/tslint.json | 1 + .../conventional-recommended-bump-tests.ts | 65 + .../conventional-recommended-bump/index.d.ts | 165 + .../tsconfig.json | 24 + .../conventional-recommended-bump/tslint.json | 1 + types/convert-layout/tsconfig.json | 4 +- types/convert-layout/tslint.json | 6 +- types/convict/tsconfig.json | 4 +- types/convict/tslint.json | 13 +- types/cookie-parser/tsconfig.json | 4 +- types/cookie-session/index.d.ts | 4 +- types/cookie-session/tslint.json | 63 +- types/cookie/tsconfig.json | 4 +- types/cookie_js/tslint.json | 68 +- types/copy-paste/tsconfig.json | 4 +- types/copy-paste/tslint.json | 69 +- types/copy-webpack-plugin/tslint.json | 67 +- types/cordova-ionic/tsconfig.json | 4 +- types/cordova-ionic/tslint.json | 70 +- types/cordova-plugin-app-version/tslint.json | 70 +- .../tsconfig.json | 4 +- .../tslint.json | 71 +- types/cordova-plugin-ble-central/tslint.json | 58 +- .../cordova-plugin-device-name/tsconfig.json | 4 +- types/cordova-plugin-device-name/tslint.json | 71 +- .../tsconfig.json | 4 +- .../cordova-plugin-email-composer/tslint.json | 69 +- types/cordova-plugin-ibeacon/tslint.json | 65 +- types/cordova-plugin-insomnia/tsconfig.json | 4 +- types/cordova-plugin-insomnia/tslint.json | 73 +- types/cordova-plugin-keyboard/tsconfig.json | 4 +- types/cordova-plugin-keyboard/tslint.json | 73 +- types/cordova-plugin-mapsforge/tsconfig.json | 4 +- types/cordova-plugin-mapsforge/tslint.json | 62 +- types/cordova-plugin-ms-adal/tsconfig.json | 4 +- types/cordova-plugin-ms-adal/tslint.json | 63 +- types/cordova-plugin-ouralabs/tslint.json | 68 +- types/cordova-plugin-qrscanner/tsconfig.json | 4 +- types/cordova-plugin-qrscanner/tslint.json | 65 +- types/cordova-plugin-spinner/tsconfig.json | 4 +- types/cordova-plugin-spinner/tslint.json | 71 +- types/cordova-plugin-websql/tsconfig.json | 6 +- types/cordova-plugin-websql/tslint.json | 69 +- types/cordova/tsconfig.json | 4 +- types/cordova/tslint.json | 59 +- types/cordova_app_version_plugin/tslint.json | 72 +- types/cordovarduino/tsconfig.json | 4 +- types/cordovarduino/tslint.json | 64 +- types/core-js/core-js-tests.ts | 11 +- types/core-js/index.d.ts | 10 + types/core-js/tslint.json | 2 +- types/cors/tslint.json | 72 +- types/cote/tslint.json | 16 +- types/couchbase/tslint.json | 50 +- types/countdown/tslint.json | 67 +- types/cradle/tsconfig.json | 4 +- types/cradle/tslint.json | 64 +- types/create-error/tslint.json | 65 +- types/create-react-class/tslint.json | 2 +- types/createjs-lib/tsconfig.json | 4 +- types/createjs-lib/tslint.json | 71 +- types/createjs/tsconfig.json | 4 +- types/createjs/tslint.json | 72 +- types/credential/tsconfig.json | 4 +- types/credential/tslint.json | 69 +- types/credit-card-type/tslint.json | 71 +- types/critters-webpack-plugin/tslint.json | 18 +- types/cron-converter/cron-converter-tests.ts | 30 + types/cron-converter/index.d.ts | 101 + types/cron-converter/package.json | 6 + types/cron-converter/tsconfig.json | 23 + types/cron-converter/tslint.json | 1 + types/cron/cron-tests.ts | 13 + types/cron/index.d.ts | 7 +- types/cron/tslint.json | 64 +- types/cross-storage/tsconfig.json | 4 +- types/cross-storage/tslint.json | 70 +- types/crossfilter/tslint.json | 57 +- types/crossroads/tslint.json | 54 +- types/crpc/tslint.json | 10 +- types/crypto-js/tsconfig.json | 4 +- types/crypto-js/tslint.json | 58 +- types/cryptojs/tslint.json | 55 +- types/cson/tsconfig.json | 4 +- types/cson/tslint.json | 70 +- .../css-font-loading-module-tests.ts | 13 +- types/css-font-loading-module/index.d.ts | 4 + types/css-font-loading-module/tslint.json | 6 +- types/css-modules-require-hook/tsconfig.json | 4 +- types/css-modules-require-hook/tslint.json | 70 +- types/css-modules/tsconfig.json | 4 +- .../css-selector-tokenizer-tests.ts | 1437 + types/css-selector-tokenizer/index.d.ts | 147 + types/css-selector-tokenizer/tsconfig.json | 23 + types/css-selector-tokenizer/tslint.json | 1 + types/css/tslint.json | 68 +- types/cssbeautify/tslint.json | 74 +- types/csurf/tsconfig.json | 4 +- types/csurf/tslint.json | 72 +- types/cucumber/cucumber-tests.ts | 33 +- types/cucumber/index.d.ts | 7 +- types/cucumber/v1/tslint.json | 5 +- types/cuid/tsconfig.json | 4 +- types/cuid/tslint.json | 71 +- types/cuss/ar-latn.d.ts | 3 + types/cuss/cuss-tests.ts | 18 + types/cuss/es.d.ts | 3 + types/cuss/fr.d.ts | 3 + types/cuss/index.d.ts | 23 + types/cuss/it.d.ts | 3 + types/cuss/pt-br.d.ts | 3 + types/cuss/tsconfig.json | 23 + types/cuss/tslint.json | 1 + types/custom-error-generator/tsconfig.json | 4 +- types/custom-error-generator/tslint.json | 69 +- types/custom-functions-runtime/tslint.json | 5 +- types/cwise-parser/tslint.json | 2 +- types/cwise/tslint.json | 8 +- types/cyberblast__config/tslint.json | 18 +- types/cybozulabs-md5/tsconfig.json | 4 +- types/cybozulabs-md5/tslint.json | 74 +- types/cypress-axe/tslint.json | 2 +- .../cypress-image-snapshot-tests.ts | 1 + types/cypress-image-snapshot/index.d.ts | 45 +- types/cypress-image-snapshot/tsconfig.json | 13 +- types/cytoscape/cytoscape-tests.ts | 10 + types/cytoscape/index.d.ts | 60 +- types/d3-array/tslint.json | 6 +- types/d3-array/v1/tslint.json | 6 +- types/d3-axis/tslint.json | 6 +- types/d3-box/tslint.json | 79 +- types/d3-brush/d3-brush-tests.ts | 6 + types/d3-brush/index.d.ts | 18 +- types/d3-brush/tslint.json | 6 +- types/d3-chord/tslint.json | 6 +- types/d3-cloud/tsconfig.json | 4 +- types/d3-cloud/tslint.json | 60 +- types/d3-collection/tslint.json | 6 +- types/d3-color/tslint.json | 2 +- types/d3-contour/tslint.json | 6 +- types/d3-dispatch/tslint.json | 6 +- types/d3-drag/tslint.json | 4 +- types/d3-dsv/v0/tslint.json | 4 +- types/d3-fetch/tslint.json | 3 +- types/d3-force/tslint.json | 7 +- types/d3-geo/tslint.json | 12 +- types/d3-hexbin/tslint.json | 2 +- types/d3-hierarchy/tslint.json | 2 +- types/d3-hsv/tslint.json | 2 +- types/d3-interpolate/tslint.json | 6 +- types/d3-quadtree/tslint.json | 7 +- types/d3-queue/tslint.json | 6 +- types/d3-request/tslint.json | 3 +- types/d3-require/d3-require-tests.ts | 8 + types/d3-require/index.d.ts | 45 + types/{gridstack => d3-require}/tsconfig.json | 4 +- types/d3-require/tslint.json | 3 + types/d3-sankey/tslint.json | 3 +- types/d3-scale/d3-scale-tests.ts | 27 + types/d3-scale/index.d.ts | 124 +- types/d3-scale/tslint.json | 6 +- types/d3-scale/v1/tslint.json | 6 +- types/d3-selection-multi/tslint.json | 3 +- types/d3-selection/d3-selection-tests.ts | 24 +- types/d3-selection/tslint.json | 7 +- types/d3-shape/tslint.json | 6 +- types/d3-tip/tslint.json | 67 +- types/d3-transition/d3-transition-tests.ts | 10 +- types/d3-transition/index.d.ts | 7 +- types/d3-transition/tslint.json | 7 +- types/d3-voronoi/tslint.json | 3 +- types/d3-zoom/tslint.json | 7 +- types/d3.slider/tslint.json | 65 +- types/d3/v3/tslint.json | 40 +- types/d3kit/v1/tslint.json | 53 +- types/d3pie/tslint.json | 69 +- types/dagre-d3/tsconfig.json | 4 +- types/dagre/tsconfig.json | 4 +- types/dat.gui/tslint.json | 58 +- types/data-driven/tsconfig.json | 4 +- types/data-driven/tslint.json | 68 +- types/datadog-winston/index.d.ts | 6 +- types/datastore-level/tslint.json | 18 +- types/datatables.net-buttons/tsconfig.json | 4 +- types/date-arithmetic/tsconfig.json | 4 +- types/date-arithmetic/tslint.json | 73 +- types/date.format.js/tsconfig.json | 4 +- types/date.format.js/tslint.json | 70 +- types/datejs/tsconfig.json | 4 +- types/datejs/tslint.json | 61 +- types/daterangepicker/tsconfig.json | 4 +- types/daterangepicker/tslint.json | 7 +- types/dayzed/tslint.json | 18 +- types/db-migrate-base/tsconfig.json | 4 +- types/db-migrate-base/tslint.json | 67 +- types/db-migrate-pg/tsconfig.json | 4 +- types/db-migrate-pg/tslint.json | 70 +- types/db.js/tslint.json | 61 +- types/dbus/tslint.json | 18 +- types/dc/tsconfig.json | 4 +- types/dc/tslint.json | 57 +- types/debounce/tsconfig.json | 4 +- types/debounce/tslint.json | 10 +- types/debug/tsconfig.json | 4 +- types/decomment/decomment-tests.ts | 11 + types/decomment/index.d.ts | 60 + types/decomment/tsconfig.json | 23 + types/decomment/tslint.json | 1 + types/decorum/tslint.json | 59 +- types/deep-freeze/tsconfig.json | 4 +- types/deep-freeze/tslint.json | 3 +- types/defaults/index.d.ts | 4 +- types/defaults/tsconfig.json | 4 +- types/defaults/tslint.json | 73 +- types/define-properties/index.d.ts | 1 + types/deku/tslint.json | 60 +- types/denodeify/tslint.json | 69 +- types/deoxxa-content-type/tsconfig.json | 4 +- types/deoxxa-content-type/tslint.json | 73 +- types/depd/tslint.json | 3 +- types/deployjava/tsconfig.json | 4 +- types/deployjava/tslint.json | 65 +- types/detect-emoji-support/tslint.json | 18 +- types/devexpress-web/tslint.json | 53 +- types/devexpress-web/v161/tslint.json | 50 +- types/devexpress-web/v162/tslint.json | 50 +- types/devexpress-web/v171/tslint.json | 49 +- types/devexpress-web/v172/tslint.json | 53 +- types/devexpress-web/v181/tslint.json | 53 +- types/devexpress-web/v182/tslint.json | 53 +- types/devexpress-web/v191/tslint.json | 52 +- types/df-visible/tsconfig.json | 6 +- types/df-visible/tslint.json | 65 +- types/dhtmlxgantt/tsconfig.json | 4 +- types/dhtmlxgantt/tslint.json | 66 +- types/dhtmlxscheduler/index.d.ts | 10 +- types/dhtmlxscheduler/tslint.json | 61 +- types/di-lite/tsconfig.json | 4 +- types/di-lite/tslint.json | 63 +- .../dialogflow-fulfillment-tests.ts | 8 + types/dialogflow-fulfillment/index.d.ts | 217 + types/dialogflow-fulfillment/package.json | 6 + types/dialogflow-fulfillment/tsconfig.json | 24 + types/dialogflow-fulfillment/tslint.json | 3 + types/diff-match-patch/tsconfig.json | 4 +- types/diff-match-patch/tslint.json | 17 +- types/diff/v3/tslint.json | 6 +- types/diff2html/tsconfig.json | 4 +- types/diff2html/tslint.json | 68 +- types/dinero.js/index.d.ts | 2 +- types/direction/direction-tests.ts | 5 + types/direction/index.d.ts | 21 + types/direction/tsconfig.json | 23 + types/direction/tslint.json | 1 + types/dirty-chai/tsconfig.json | 2 +- types/disposable-email-domains/tsconfig.json | 4 +- types/disposable-email-domains/tslint.json | 74 +- types/diva.js/index.d.ts | 9 +- types/dlv/dlv-tests.ts | 34 +- types/dlv/index.d.ts | 2 +- types/doccookies/tslint.json | 66 +- types/dock-spawn/tsconfig.json | 4 +- types/dock-spawn/tslint.json | 70 +- types/docker-events/docker-events-tests.ts | 13 + types/docker-events/index.d.ts | 24 + types/docker-events/tsconfig.json | 23 + types/docker-events/tslint.json | 1 + types/dockerode/dockerode-tests.ts | 18 + types/dockerode/index.d.ts | 21 +- types/dockerode/tslint.json | 3 +- types/docopt/tsconfig.json | 4 +- types/docopt/tslint.json | 70 +- types/doctrine/tslint.json | 71 +- types/documentdb-server/tslint.json | 52 +- types/documentdb/tslint.json | 2 +- types/docx-templates/docx-templates-tests.ts | 43 + types/docx-templates/index.d.ts | 40 + types/docx-templates/tsconfig.json | 20 + types/docx-templates/tslint.json | 1 + types/dogapi/index.d.ts | 12 + types/dojo/tsconfig.json | 4 +- types/dojo/tslint.json | 52 +- types/dom-clipboard-api/tsconfig.json | 2 +- types/dom-inputevent/tslint.json | 3 +- types/dom-mediacapture-record/index.d.ts | 15 + types/dom4/tslint.json | 71 +- types/domhandler/tslint.json | 18 +- types/domo/tsconfig.json | 4 +- types/domo/tslint.json | 69 +- types/dompurify/tslint.json | 69 +- types/domurl/tsconfig.json | 4 +- types/domurl/tslint.json | 69 +- types/donna/tslint.json | 68 +- types/dot-object/tsconfig.json | 4 +- types/dot-object/tslint.json | 65 +- types/dot/tsconfig.json | 4 +- types/dotdotdot/tslint.json | 68 +- .../dotenv-parse-variables-tests.ts | 9 + types/dotenv-parse-variables/index.d.ts | 23 + types/dotenv-parse-variables/tsconfig.json | 23 + types/dotenv-parse-variables/tslint.json | 1 + types/dotenv-safe/tslint.json | 15 +- types/doublearray/tsconfig.json | 4 +- types/doublearray/tslint.json | 68 +- types/doubleclick-gpt/tsconfig.json | 2 +- types/downscale/downscale-tests.ts | 19 + types/downscale/index.d.ts | 26 + types/downscale/tsconfig.json | 25 + types/downscale/tslint.json | 1 + types/dplayer/tsconfig.json | 2 +- types/draft-convert/tslint.json | 70 +- types/draft-js/tslint.json | 61 +- types/draggabilly/tslint.json | 18 +- types/dragselect/dragselect-tests.ts | 41 + types/dragselect/index.d.ts | 302 + types/dragselect/tsconfig.json | 24 + types/dragselect/tslint.json | 1 + types/dragula/dragula-tests.ts | 63 +- types/dragula/index.d.ts | 27 +- types/dragula/tsconfig.json | 4 +- types/dragula/tslint.json | 81 +- types/dragula/v2/dragula-tests.ts | 43 + types/dragula/v2/index.d.ts | 47 + types/dragula/v2/tsconfig.json | 29 + types/dragula/v2/tslint.json | 18 + types/dropboxjs/tsconfig.json | 4 +- types/dropboxjs/tslint.json | 63 +- types/dropzone/dropzone-tests.ts | 7 + types/dropzone/index.d.ts | 5 +- types/dropzone/tslint.json | 69 +- types/dropzone/v4/tslint.json | 56 +- types/dsv/tsconfig.json | 4 +- types/dsv/tslint.json | 64 +- types/dts-bundle/tsconfig.json | 4 +- types/dts-bundle/tslint.json | 70 +- types/dts-generator/index.d.ts | 2 +- types/dts-generator/tsconfig.json | 4 +- types/dts-generator/tslint.json | 7 +- types/du/du-tests.ts | 3 + types/du/index.d.ts | 15 + types/du/tsconfig.json | 23 + types/du/tslint.json | 1 + types/duo_web_sdk/duo_web_sdk-tests.ts | 21 + types/duo_web_sdk/index.d.ts | 30 + .../tsconfig.json | 4 +- types/duo_web_sdk/tslint.json | 1 + .../duosecurity__duo_web-tests.ts | 4 + types/duosecurity__duo_web/index.d.ts | 23 + types/duosecurity__duo_web/tsconfig.json | 26 + types/duosecurity__duo_web/tslint.json | 1 + types/duplexer2/tsconfig.json | 4 +- types/durandal/tsconfig.json | 4 +- types/durandal/tslint.json | 63 +- types/durandal/v1/tslint.json | 65 +- types/dustjs-linkedin/tsconfig.json | 4 +- types/dustjs-linkedin/tslint.json | 68 +- types/dv/tslint.json | 8 +- types/dvtng-jss/tsconfig.json | 4 +- types/dvtng-jss/tslint.json | 72 +- types/dw-bxslider-4/tsconfig.json | 4 +- types/dw-bxslider-4/tslint.json | 62 +- types/dwt/Dynamsoft.d.ts | 40 +- types/dwt/README.md | 2 +- types/dwt/addon.ocr.d.ts | 2 +- types/dwt/addon.ocrp.d.ts | 2 +- types/dwt/addon.pdf.d.ts | 2 +- types/dwt/addon.webcam.d.ts | 2 +- types/dwt/dbr.d.ts | 2 +- types/dwt/index.d.ts | 6 +- types/dwt/mbc.d.ts | 2 +- types/dwt/tsconfig.json | 4 +- types/dwt/tslint.json | 20 +- types/dwt/v12/tsconfig.json | 4 +- types/dwt/v12/tslint.json | 20 +- types/dwt/v13/tsconfig.json | 4 +- types/dwt/v13/tslint.json | 22 +- types/dwt/v14/tsconfig.json | 4 +- types/dwt/v14/tslint.json | 20 +- types/dygraphs/index.d.ts | 10 + types/dygraphs/tslint.json | 64 +- types/dymo-label-framework/tsconfig.json | 4 +- types/dymo-label-framework/tslint.json | 61 +- types/dynatable/tslint.json | 62 +- types/each/tslint.json | 65 +- types/easeljs/tslint.json | 53 +- types/easy-api-request/tsconfig.json | 4 +- types/easy-api-request/tslint.json | 62 +- types/easy-jsend/tslint.json | 59 +- types/easy-session/tslint.json | 60 +- types/easy-table/tslint.json | 64 +- types/easy-xapi-utils/tsconfig.json | 4 +- types/easy-xapi-utils/tslint.json | 69 +- types/easy-xapi/tsconfig.json | 4 +- types/easy-xapi/tslint.json | 64 +- types/echarts/options/tooltip.d.ts | 2 +- types/echarts/tslint.json | 58 +- types/ecore/index.d.ts | 1 + types/ed2curve/tslint.json | 7 +- types/egg-mock/tsconfig.json | 4 +- types/egg.js/tsconfig.json | 4 +- types/egg.js/tslint.json | 67 +- types/egjs__axes/tslint.json | 3 +- types/egjs__component/tsconfig.json | 4 +- types/ej.web.all/index.d.ts | 16 +- types/ej.web.all/tsconfig.json | 4 +- types/ej.web.all/tslint.json | 80 +- types/ejs-locals/tsconfig.json | 4 +- types/ejs-locals/tslint.json | 69 +- types/ejs/index.d.ts | 4 + types/ejs/test/ejs.cjs.test.ts | 1 + types/ejson/tslint.json | 66 +- types/elastic.js/tsconfig.json | 4 +- types/elastic.js/tslint.json | 67 +- types/elasticsearch/tslint.json | 16 +- .../electron-devtools-installer/tsconfig.json | 4 +- types/electron-devtools-installer/tslint.json | 70 +- types/electron-json-storage/tsconfig.json | 4 +- .../electron-load-devtool-tests.ts | 9 +- types/electron-load-devtool/index.d.ts | 7 +- types/electron-notifications/tsconfig.json | 6 +- types/electron-notifications/tslint.json | 66 +- types/electron-notify/tsconfig.json | 6 +- types/electron-notify/tslint.json | 72 +- types/electron-packager/tsconfig.json | 6 +- types/electron-settings/v2/tslint.json | 7 +- types/electron-window-state/tslint.json | 70 +- types/element-resize-event/tslint.json | 71 +- types/elliptic/elliptic-tests.ts | 13 + types/elliptic/index.d.ts | 15 +- types/elm/tsconfig.json | 4 +- types/elm/tslint.json | 69 +- types/email-templates/tsconfig.json | 4 +- types/ember-data/test/store.ts | 6 +- types/ember-data/tsconfig.json | 7 +- types/ember-data/tslint.json | 18 +- types/ember-data/v2/tslint.json | 17 +- types/ember-data__adapter/OTHER_FILES.txt | 3 + types/ember-data__adapter/error.d.ts | 14 + types/ember-data__adapter/index.d.ts | 14 + types/ember-data__adapter/json-api.d.ts | 2 + types/ember-data__adapter/rest.d.ts | 2 + types/ember-data__adapter/test/error.ts | 26 + types/ember-data__adapter/test/index.ts | 49 + types/ember-data__adapter/test/json-api.ts | 59 + types/ember-data__adapter/test/lib/assert.ts | 2 + types/ember-data__adapter/test/rest.ts | 8 + types/ember-data__adapter/tsconfig.json | 63 + types/ember-data__adapter/tslint.json | 13 + types/ember-data__model/index.d.ts | 15 + types/ember-data__model/test/lib/assert.ts | 2 + types/ember-data__model/test/model.ts | 80 + types/ember-data__model/tsconfig.json | 56 + types/ember-data__model/tslint.json | 12 + types/ember-data__serializer/OTHER_FILES.txt | 4 + types/ember-data__serializer/index.d.ts | 11 + types/ember-data__serializer/json-api.d.ts | 3 + types/ember-data__serializer/json.d.ts | 2 + types/ember-data__serializer/rest.d.ts | 4 + types/ember-data__serializer/test/index.ts | 22 + types/ember-data__serializer/test/json-api.ts | 8 + types/ember-data__serializer/test/json.ts | 8 + types/ember-data__serializer/test/rest.ts | 18 + .../ember-data__serializer/test/transform.ts | 8 + types/ember-data__serializer/transform.d.ts | 2 + types/ember-data__serializer/tsconfig.json | 61 + types/ember-data__serializer/tslint.json | 11 + .../ember-data__store-tests.ts | 31 + types/ember-data__store/index.d.ts | 14 + types/ember-data__store/tsconfig.json | 57 + types/ember-data__store/tslint.json | 11 + types/ember-feature-flags/tsconfig.json | 4 +- types/ember-mocha/tsconfig.json | 2 +- types/ember-mocha/tslint.json | 16 +- types/ember-modal-dialog/tsconfig.json | 2 +- types/ember-modal-dialog/tslint.json | 5 +- types/ember-modal-dialog/v2/tslint.json | 6 +- types/ember-qunit/tsconfig.json | 2 +- types/ember-qunit/tslint.json | 8 +- types/ember-qunit/v2/tslint.json | 7 +- types/ember-test-helpers/tsconfig.json | 2 +- types/ember-test-helpers/tslint.json | 2 - types/ember-testing-helpers/tsconfig.json | 4 +- types/ember-testing-helpers/tslint.json | 73 +- types/ember/tslint.json | 1 - types/ember/v1/tslint.json | 49 +- types/ember/v2/tslint.json | 23 +- types/ember__object/computed.d.ts | 26 + types/ember__object/test/computed.ts | 13 +- types/ember__object/test/octane.ts | 5 + types/ember__ordered-set/tslint.json | 9 +- types/ember__routing/index.d.ts | 3 + types/ember__routing/route.d.ts | 231 +- types/ember__routing/router-service.d.ts | 35 +- types/ember__routing/test/route.ts | 43 + types/ember__routing/test/router-service.ts | 24 + types/ember__routing/tsconfig.json | 5 +- types/ember__test-helpers/tsconfig.json | 2 +- types/ember__test-helpers/tslint.json | 2 +- types/ember__utils/tslint.json | 28 +- types/emissary/tsconfig.json | 4 +- types/emissary/tslint.json | 64 +- types/emoji-js/tslint.json | 18 +- types/emoji-mart/dist-es/index.d.ts | 2 + types/emoji-mart/dist-es/utils/index.d.ts | 7 + .../dist-es/utils/shared-props.d.ts | 3 +- types/emoji-mart/index.d.ts | 1 + types/empower/tsconfig.json | 4 +- types/empower/tslint.json | 68 +- types/emscripten/emscripten-tests.ts | 31 +- types/emscripten/index.d.ts | 111 +- types/emscripten/tsconfig.json | 4 +- types/emscripten/tslint.json | 6 +- types/encoding-down/tslint.json | 18 +- types/encoding-japanese/tsconfig.json | 4 +- types/encoding-japanese/tslint.json | 70 +- types/enhanced-resolve/tslint.json | 63 +- types/enigma.js/tslint.json | 20 +- types/ent/tsconfig.json | 4 +- types/ent/tslint.json | 73 +- types/envify/tsconfig.json | 4 +- types/envify/tslint.json | 68 +- types/enzyme-adapter-react-15.4/index.d.ts | 1 + types/enzyme-adapter-react-15/index.d.ts | 1 + types/enzyme-adapter-react-16/index.d.ts | 1 + types/enzyme/index.d.ts | 1 + types/enzyme/tslint.json | 4 +- .../tsconfig.json | 4 +- .../tslint.json | 65 +- types/epiceditor/tslint.json | 64 +- types/epilogue/tsconfig.json | 4 +- types/epub/tsconfig.json | 4 +- types/epub/tslint.json | 65 +- types/eq.js/tslint.json | 67 +- types/errorhandler/errorhandler-tests.ts | 35 +- types/errorhandler/index.d.ts | 15 +- types/errorhandler/tsconfig.json | 4 +- types/errorhandler/tslint.json | 81 +- .../es-module-lexer/es-module-lexer-tests.ts | 21 + types/es-module-lexer/index.d.ts | 54 + types/es-module-lexer/tsconfig.json | 21 + types/es-module-lexer/tslint.json | 1 + types/es6-collections/tslint.json | 65 +- .../es6-set-proptypes-tests.ts | 10 + types/es6-set-proptypes/index.d.ts | 9 + types/es6-set-proptypes/tsconfig.json | 23 + types/es6-set-proptypes/tslint.json | 1 + types/es6-shim/ts3.1/tslint.json | 3 +- types/es6-shim/tslint.json | 61 +- types/escape-html/tsconfig.json | 4 +- types/escape-html/tslint.json | 73 +- types/escape-latex/tsconfig.json | 4 +- types/escape-latex/tslint.json | 72 +- types/escodegen/tsconfig.json | 4 +- types/escodegen/tslint.json | 71 +- types/eslint/eslint-tests.ts | 31 + types/eslint/index.d.ts | 17 +- types/eslint/ts3.1/eslint-tests.ts | 31 + types/eslint/ts3.1/index.d.ts | 17 +- types/esm/esm-tests.ts | 2 +- types/esprima-walk/tslint.json | 63 +- types/esprima/v2/tslint.json | 62 +- types/espruino/tslint.json | 14 +- types/esri-leaflet-geocoder/tslint.json | 12 +- types/esri-leaflet/tslint.json | 10 +- types/estraverse/tslint.json | 70 +- types/estree-jsx/tslint.json | 5 +- types/estree/estree-tests.ts | 6 +- types/estree/index.d.ts | 2 +- types/estree/tslint.json | 67 +- types/eureka-js-client/tsconfig.json | 4 +- types/event-loop-lag/tsconfig.json | 4 +- types/event-loop-lag/tslint.json | 71 +- types/event-stream/tsconfig.json | 4 +- types/event-stream/tslint.json | 69 +- types/event-to-promise/tsconfig.json | 4 +- types/event-to-promise/tslint.json | 72 +- types/events/tslint.json | 18 +- types/evernote/evernote-tests.ts | 10 +- types/evernote/index.d.ts | 7996 +- types/evernote/tsconfig.json | 4 +- types/evernote/tslint.json | 81 +- types/exit/tsconfig.json | 4 +- types/exit/tslint.json | 73 +- types/exorcist/tslint.json | 67 +- types/expand-tilde/tslint.json | 4 +- .../expect-puppeteer-tests.ts | 20 +- types/expect-puppeteer/index.d.ts | 28 +- types/expect.js/tsconfig.json | 4 +- types/expect.js/tslint.json | 58 +- types/expectations/tslint.json | 64 +- types/express-brute-memcached/tsconfig.json | 4 +- types/express-brute-memcached/tslint.json | 80 +- types/express-brute-mongo/tsconfig.json | 4 +- types/express-brute-mongo/tslint.json | 4 +- types/express-brute/tsconfig.json | 4 +- types/express-brute/tslint.json | 69 +- types/express-debug/tsconfig.json | 4 +- types/express-debug/tslint.json | 68 +- types/express-domain-middleware/tsconfig.json | 4 +- types/express-domain-middleware/tslint.json | 73 +- .../express-fileupload-tests.ts | 31 +- types/express-fileupload/index.d.ts | 84 +- types/express-flash/express-flash-tests.ts | 23 +- types/express-flash/index.d.ts | 15 +- types/express-handlebars/tslint.json | 69 +- types/express-jwt/tsconfig.json | 4 +- types/express-jwt/tslint.json | 68 +- types/express-less/tsconfig.json | 4 +- types/express-less/tslint.json | 70 +- types/express-minify/tsconfig.json | 2 +- types/express-minify/tslint.json | 64 +- types/express-myconnection/tslint.json | 63 +- .../express-mysql-session-tests.ts | 7 +- types/express-mysql-session/index.d.ts | 10 +- types/express-partials/tsconfig.json | 4 +- types/express-partials/tslint.json | 70 +- .../express-rate-limit-tests.ts | 75 +- types/express-rate-limit/index.d.ts | 47 +- .../v2/express-rate-limit-tests.ts | 42 +- types/express-rate-limit/v2/index.d.ts | 2 +- .../v3/express-rate-limit-tests.ts | 50 + types/express-rate-limit/v3/index.d.ts | 111 + types/express-rate-limit/v3/tsconfig.json | 26 + types/express-rate-limit/v3/tslint.json | 1 + types/express-route-fs/tsconfig.json | 4 +- types/express-route-fs/tslint.json | 69 +- .../express-serve-static-core-tests.ts | 6 + types/express-serve-static-core/index.d.ts | 3 +- types/express-serve-static-core/tslint.json | 4 +- .../express-session/express-session-tests.ts | 9 +- types/express-session/index.d.ts | 11 +- types/express-session/tslint.json | 7 +- .../express-slow-down-tests.ts | 11 +- types/express-slow-down/index.d.ts | 12 +- types/express-unless/tsconfig.json | 4 +- types/express-unless/tslint.json | 70 +- types/express-useragent/v0/tslint.json | 67 +- types/express-version-request/tslint.json | 18 +- types/express-version-route/tslint.json | 18 +- types/express/express-tests.ts | 12 + types/express/index.d.ts | 3 +- types/express/tsconfig.json | 4 +- types/express/tslint.json | 1 - types/extend/tsconfig.json | 4 +- types/extjs/tslint.json | 55 +- types/eyes/tsconfig.json | 4 +- types/eyes/tslint.json | 68 +- types/fabric/fabric-impl.d.ts | 28 +- types/fabric/index.d.ts | 3 +- types/fabric/test/index.ts | 3 + types/fabric/tslint.json | 6 +- types/facebook-js-sdk/tslint.json | 72 +- types/facebook-pixel/tsconfig.json | 4 +- types/facebook-pixel/tslint.json | 65 +- types/faker/faker-tests.ts | 23 +- types/faker/index.d.ts | 16 +- types/faker/tslint.json | 73 +- types/faker/v3/tslint.json | 63 +- types/falcor-express/tsconfig.json | 4 +- types/falcor-express/tslint.json | 66 +- types/falcor-http-datasource/tsconfig.json | 4 +- types/falcor-http-datasource/tslint.json | 79 +- types/falcor-json-graph/tsconfig.json | 4 +- types/falcor-json-graph/tslint.json | 64 +- types/falcor-router/tsconfig.json | 4 +- types/falcor-router/tslint.json | 66 +- types/falcor/tslint.json | 17 +- types/famous/tslint.json | 59 +- types/fancybox/tsconfig.json | 6 +- types/farbtastic/tsconfig.json | 4 +- types/farbtastic/tslint.json | 71 +- types/fast-levenshtein/tsconfig.json | 4 +- types/fast-levenshtein/tslint.json | 74 +- types/fast-list/tslint.json | 2 +- types/fast-stats/tsconfig.json | 4 +- types/fast-stats/tslint.json | 68 +- types/fastclick/tslint.json | 68 +- types/favico.js/tslint.json | 71 +- types/favicons/tsconfig.json | 2 +- types/fb/fb-tests.ts | 43 - types/fb/index.d.ts | 254 - types/fb/tslint.json | 80 - types/fbemitter/tsconfig.json | 4 +- types/fbemitter/tslint.json | 62 +- types/feather-icons/tslint.json | 18 +- types/feather-route-matcher/tslint.json | 12 +- types/featherlight/tslint.json | 70 +- .../tslint.json | 16 +- .../tslint.json | 18 +- .../tslint.json | 18 +- .../tslint.json | 18 +- .../tslint.json | 18 +- types/feathersjs__authentication/tslint.json | 18 +- types/feathersjs__configuration/tslint.json | 18 +- types/feathersjs__express/tslint.json | 18 +- types/feathersjs__primus-client/tslint.json | 18 +- types/feathersjs__primus/tslint.json | 18 +- types/feathersjs__rest-client/tslint.json | 18 +- types/feathersjs__socket-commons/tslint.json | 18 +- types/feathersjs__socketio-client/tslint.json | 18 +- types/feedme/tsconfig.json | 4 +- types/feedparser/tslint.json | 11 +- types/fetch-mock/v6/tsconfig.json | 2 +- types/ffi-napi/tslint.json | 13 +- types/ffi/tslint.json | 6 +- types/ffmpeg-static/ffmpeg-static-tests.ts | 4 +- types/ffmpeg-static/index.d.ts | 5 +- types/ffmpeg.js/ffmpeg-mp4/index.d.ts | 1 + types/ffmpeg.js/ffmpeg-webm/index.d.ts | 1 + .../ffmpeg.js/test/ffmpeg.js-direct-tests.ts | 11 +- types/ffmpeg.js/test/ffmpeg.js-tests.ts | 10 + types/ffprobe-static/ffprobe-static-tests.ts | 2 +- types/fhir-kit-client/tslint.json | 2 +- types/fhir/tsconfig.json | 4 +- types/fhir/tslint.json | 67 +- types/fibers/tslint.json | 2 +- types/fibjs/tsconfig.json | 2 +- types/fibjs/tslint.json | 7 +- types/field/tsconfig.json | 4 +- types/field/tslint.json | 70 +- types/figma/index.d.ts | 1659 +- types/figma/tslint.json | 4 +- .../file-entry-cache-tests.ts | 23 + types/file-entry-cache/index.d.ts | 83 + types/file-entry-cache/tsconfig.json | 23 + types/file-entry-cache/tslint.json | 1 + types/file-saver/tslint.json | 2 +- types/file-size/file-size-tests.ts | 10 + types/file-size/index.d.ts | 39 + types/file-size/tsconfig.json | 23 + types/file-size/tslint.json | 1 + types/filesystem/tslint.json | 64 +- types/filewriter/tsconfig.json | 4 +- types/filewriter/tslint.json | 64 +- types/filing-cabinet/filing-cabinet-tests.ts | 19 + types/filing-cabinet/index.d.ts | 59 + types/filing-cabinet/tsconfig.json | 23 + types/filing-cabinet/tslint.json | 1 + types/fill-pdf/tsconfig.json | 4 +- types/fill-pdf/tslint.json | 68 +- types/finch/tslint.json | 57 +- types/find-cache-dir/find-cache-dir-tests.ts | 14 +- types/find-cache-dir/index.d.ts | 17 +- .../find-cache-dir/v2/find-cache-dir-tests.ts | 19 + types/find-cache-dir/v2/index.d.ts | 57 + types/find-cache-dir/v2/tsconfig.json | 28 + types/find-cache-dir/v2/tslint.json | 1 + .../find-unused-sass-variables-tests.ts | 11 + types/find-unused-sass-variables/index.d.ts | 21 + .../find-unused-sass-variables/tsconfig.json | 23 + types/find-unused-sass-variables/tslint.json | 1 + types/findup-sync/v0/tsconfig.json | 2 +- types/findup-sync/v0/tslint.json | 72 +- types/fingerprintjs/tsconfig.json | 4 +- types/fingerprintjs/tslint.json | 69 +- types/firebase-client/tslint.json | 58 +- types/firebase-token-generator/tsconfig.json | 4 +- types/firebase-token-generator/tslint.json | 66 +- types/firebird/tslint.json | 3 +- types/firefox-webext-browser/tslint.json | 6 +- types/firefox/tsconfig.json | 4 +- types/firefox/tslint.json | 66 +- types/firmata/tslint.json | 2 +- types/fixed-data-table/tslint.json | 67 +- types/flake-idgen/tsconfig.json | 4 +- types/flake-idgen/tslint.json | 71 +- types/flat/flat-tests.ts | 42 +- types/flat/index.d.ts | 7 +- types/flat/tslint.json | 69 +- types/flatbuffers/tsconfig.json | 4 +- types/flatbuffers/tslint.json | 9 +- types/flexmonster/index.d.ts | 1 + types/flexslider/tsconfig.json | 4 +- types/flexslider/tslint.json | 63 +- types/flickity/tslint.json | 9 +- types/flight/tsconfig.json | 4 +- types/flight/tslint.json | 67 +- types/flightplan/tsconfig.json | 4 +- types/flightplan/tslint.json | 62 +- types/flipsnap/tsconfig.json | 4 +- types/flipsnap/tslint.json | 70 +- types/flot/tsconfig.json | 4 +- types/flot/tslint.json | 66 +- types/flowdoc/tslint.json | 2 +- types/flowjs/ts3.1/index.d.ts | 10 +- types/flowjs/tslint.json | 67 +- types/fluent-ffmpeg/index.d.ts | 20 +- types/fluent-ffmpeg/tsconfig.json | 4 +- types/fluent-ffmpeg/tslint.json | 3 +- types/fluxxor/tslint.json | 65 +- types/fontfaceobserver/tsconfig.json | 4 +- types/fontfaceobserver/tslint.json | 68 +- types/fontoxml/tsconfig.json | 4 +- types/fontoxml/tslint.json | 63 +- types/force-graph/force-graph-tests.ts | 6 + types/force-graph/index.d.ts | 2 + types/forge-apis/index.d.ts | 66 +- types/forge-viewer/index.d.ts | 1 + types/form-serializer/tsconfig.json | 4 +- types/form-serializer/tslint.json | 68 +- types/format-unicorn/tsconfig.json | 4 +- types/format-util/index.d.ts | 2 +- types/formidable/tslint.json | 61 +- types/fossil-delta/tslint.json | 68 +- types/foundation/tsconfig.json | 4 +- types/foundation/tslint.json | 65 +- types/fpsmeter/tsconfig.json | 4 +- types/fpsmeter/tslint.json | 71 +- types/franc/index.d.ts | 1 + types/frappe-gantt/frappe-gantt-tests.ts | 36 + types/frappe-gantt/index.d.ts | 45 + types/frappe-gantt/tsconfig.json | 24 + types/frappe-gantt/tslint.json | 1 + types/frctl__fractal/tslint.json | 18 +- types/frecency/tslint.json | 18 +- types/freedom/tslint.json | 61 +- types/frida-gum/frida-gum-tests.ts | 35 +- types/frida-gum/index.d.ts | 65 +- types/frisby/v0/tsconfig.json | 2 +- types/frisby/v0/tslint.json | 69 +- types/from/tsconfig.json | 4 +- types/from/tslint.json | 70 +- types/from2/tslint.json | 2 +- types/fromjs/tsconfig.json | 4 +- types/fromjs/tslint.json | 76 +- types/fs-ext/tslint.json | 72 +- types/fs-extra/fs-extra-tests.ts | 4 + types/fs-extra/index.d.ts | 7 +- types/fs-finder/tsconfig.json | 4 +- types/fs-finder/tslint.json | 68 +- types/fs-mock/tsconfig.json | 4 +- types/fs-mock/tslint.json | 68 +- types/ftdomdelegate/tsconfig.json | 4 +- types/ftdomdelegate/tslint.json | 64 +- types/ftp/ftp-tests.ts | 9 +- types/ftp/index.d.ts | 46 +- types/ftp/tsconfig.json | 4 +- types/ftp/tslint.json | 68 +- types/ftpd/tslint.json | 65 +- .../fullcalendar__vue-tests.ts | 21 + types/fullcalendar__vue/index.d.ts | 20 + types/fullcalendar__vue/options.d.ts | 234 + types/fullcalendar__vue/package.json | 6 + types/fullcalendar__vue/tsconfig.json | 16 + types/fullcalendar__vue/tslint.json | 3 + types/fullname/tsconfig.json | 4 +- types/fullname/tslint.json | 72 +- types/fullpage.js/tsconfig.json | 4 +- types/fullpage.js/tslint.json | 62 +- types/function-bind/index.d.ts | 1 + types/fuzzaldrin-plus/tslint.json | 72 +- types/fxjs/fxjs-tests.ts | 12 + types/fxjs/index.d.ts | 19 + types/fxjs/tsconfig.json | 23 + types/fxjs/tslint.json | 12 + types/fxn/tsconfig.json | 2 +- types/fxn/tslint.json | 72 +- types/gae.channel.api/tsconfig.json | 4 +- types/gae.channel.api/tslint.json | 64 +- types/gamedig/tslint.json | 18 +- types/gamequery/tslint.json | 60 +- types/gandi-livedns/tsconfig.json | 4 +- types/gandi-livedns/tslint.json | 72 +- types/gapi.analytics/tslint.json | 70 +- types/gapi.auth2/tslint.json | 21 +- types/gapi.calendar/tslint.json | 64 +- .../tslint.json | 6 +- types/gapi.client.adexchangebuyer/tslint.json | 6 +- .../gapi.client.adexchangeseller/tslint.json | 6 +- .../tslint.json | 6 +- types/gapi.client.admin/tslint.json | 6 +- types/gapi.client.adsense/tslint.json | 6 +- types/gapi.client.adsensehost/tslint.json | 6 +- types/gapi.client.analytics/tslint.json | 6 +- .../tslint.json | 6 +- .../tslint.json | 6 +- .../gapi.client.androidenterprise/tslint.json | 6 +- .../gapi.client.androidmanagement/tslint.json | 6 +- .../gapi.client.androidpublisher/tslint.json | 6 +- types/gapi.client.appengine/tslint.json | 6 +- types/gapi.client.appsactivity/tslint.json | 6 +- types/gapi.client.appstate/tslint.json | 6 +- types/gapi.client.bigquery/tslint.json | 6 +- types/gapi.client.blogger/tslint.json | 6 +- types/gapi.client.books/tslint.json | 6 +- types/gapi.client.calendar/tslint.json | 6 +- types/gapi.client.civicinfo/tslint.json | 6 +- .../gapi.client.classroom-tests.ts | 14797 +- types/gapi.client.classroom/index.d.ts | 1510 +- types/gapi.client.classroom/readme.md | 37 +- types/gapi.client.classroom/tsconfig.json | 2 +- types/gapi.client.classroom/tslint.json | 6 +- types/gapi.client.cloudbilling/tslint.json | 6 +- types/gapi.client.cloudbuild/tslint.json | 6 +- .../tslint.json | 6 +- types/gapi.client.cloudfunctions/tslint.json | 6 +- types/gapi.client.cloudmonitoring/tslint.json | 6 +- .../tslint.json | 6 +- .../gapi.client.clouduseraccounts/tslint.json | 6 +- types/gapi.client.compute/tslint.json | 6 +- types/gapi.client.consumersurveys/tslint.json | 6 +- types/gapi.client.container/tslint.json | 6 +- types/gapi.client.content/tslint.json | 6 +- types/gapi.client.customsearch/tslint.json | 6 +- types/gapi.client.dataflow/tslint.json | 6 +- types/gapi.client.datastore/tslint.json | 6 +- .../gapi.client.deploymentmanager/tslint.json | 6 +- types/gapi.client.dfareporting/tslint.json | 6 +- types/gapi.client.discovery/tslint.json | 6 +- types/gapi.client.dlp/tslint.json | 6 +- types/gapi.client.dns/tslint.json | 6 +- .../tslint.json | 6 +- .../gapi.client.doubleclicksearch/tslint.json | 6 +- types/gapi.client.drive/index.d.ts | 6 + types/gapi.client.drive/tslint.json | 6 +- .../tslint.json | 7 +- .../tslint.json | 6 +- types/gapi.client.firebaserules/tslint.json | 6 +- types/gapi.client.fusiontables/tslint.json | 6 +- types/gapi.client.games/tslint.json | 6 +- .../tslint.json | 6 +- types/gapi.client.gamesmanagement/tslint.json | 6 +- types/gapi.client.genomics/tslint.json | 6 +- types/gapi.client.gmail/tslint.json | 6 +- types/gapi.client.groupsmigration/tslint.json | 6 +- types/gapi.client.groupssettings/tslint.json | 6 +- types/gapi.client.iam/tslint.json | 6 +- types/gapi.client.identitytoolkit/tslint.json | 6 +- types/gapi.client.kgsearch/tslint.json | 6 +- types/gapi.client.language/tslint.json | 6 +- types/gapi.client.licensing/tslint.json | 6 +- types/gapi.client.logging/tslint.json | 6 +- types/gapi.client.mirror/tslint.json | 6 +- types/gapi.client.ml/tslint.json | 6 +- types/gapi.client.oauth2/tslint.json | 6 +- types/gapi.client.oslogin/tslint.json | 6 +- types/gapi.client.pagespeedonline/tslint.json | 6 +- types/gapi.client.partners/tslint.json | 6 +- types/gapi.client.people/tslint.json | 6 +- types/gapi.client.photoslibrary/tslint.json | 6 +- types/gapi.client.plus/tslint.json | 6 +- types/gapi.client.plusdomains/tslint.json | 6 +- types/gapi.client.prediction/tslint.json | 6 +- types/gapi.client.proximitybeacon/tslint.json | 6 +- types/gapi.client.qpxexpress/tslint.json | 6 +- types/gapi.client.reseller/tslint.json | 6 +- types/gapi.client.resourceviews/tslint.json | 6 +- types/gapi.client.runtimeconfig/tslint.json | 6 +- types/gapi.client.safebrowsing/tslint.json | 6 +- types/gapi.client.script/tslint.json | 6 +- types/gapi.client.servicecontrol/tslint.json | 6 +- .../gapi.client.servicemanagement/tslint.json | 6 +- types/gapi.client.serviceuser/tslint.json | 6 +- types/gapi.client.sheets/tslint.json | 6 +- .../gapi.client.siteverification/tslint.json | 6 +- types/gapi.client.slides/tslint.json | 6 +- types/gapi.client.spectrum/tslint.json | 6 +- types/gapi.client.speech/tslint.json | 6 +- types/gapi.client.sqladmin/tslint.json | 6 +- types/gapi.client.storage/tslint.json | 7 +- types/gapi.client.storagetransfer/tslint.json | 6 +- .../gapi.client.streetviewpublish/tslint.json | 6 +- types/gapi.client.surveys/tslint.json | 6 +- types/gapi.client.tagmanager/tslint.json | 6 +- types/gapi.client.taskqueue/tslint.json | 6 +- .../gapi.client.tasks-tests.ts | 185 +- types/gapi.client.tasks/index.d.ts | 257 +- types/gapi.client.tasks/readme.md | 8 +- types/gapi.client.tasks/tsconfig.json | 2 +- types/gapi.client.tasks/tslint.json | 6 +- types/gapi.client.testing/tslint.json | 6 +- types/gapi.client.toolresults/tslint.json | 6 +- types/gapi.client.translate/tslint.json | 6 +- types/gapi.client.urlshortener/tslint.json | 6 +- types/gapi.client.vault/tslint.json | 6 +- .../gapi.client.videointelligence/tslint.json | 6 +- types/gapi.client.vision/tslint.json | 7 +- types/gapi.client.webfonts/tslint.json | 6 +- types/gapi.client.webmasters/tslint.json | 6 +- types/gapi.client.youtube/tslint.json | 7 +- .../gapi.client.youtubeanalytics/tslint.json | 6 +- .../gapi.client.youtubereporting/tslint.json | 6 +- types/gapi.client/tsconfig.json | 4 +- types/gapi.client/tslint.json | 5 +- types/gapi.drive/tslint.json | 64 +- types/gapi.pagespeedonline/tsconfig.json | 4 +- types/gapi.pagespeedonline/tslint.json | 70 +- types/gapi.people/tslint.json | 67 +- types/gapi.plus/tslint.json | 66 +- types/gapi.translate/tsconfig.json | 4 +- types/gapi.translate/tslint.json | 71 +- types/gapi.urlshortener/tsconfig.json | 4 +- types/gapi.urlshortener/tslint.json | 73 +- types/gapi.youtube/tsconfig.json | 4 +- types/gapi.youtube/tslint.json | 70 +- types/gapi.youtubeanalytics/tsconfig.json | 4 +- types/gapi.youtubeanalytics/tslint.json | 72 +- types/gapi/tslint.json | 58 +- types/generic-functions/tsconfig.json | 4 +- types/generic-functions/tslint.json | 70 +- types/gently/tsconfig.json | 4 +- types/gently/tslint.json | 71 +- types/geoip-lite/index.d.ts | 2 +- types/geoip-lite/tsconfig.json | 4 +- types/geoip-lite/tslint.json | 69 +- types/geojson2osm/tsconfig.json | 4 +- types/geojson2osm/tslint.json | 74 +- types/geometry-dom/tsconfig.json | 4 +- types/geometry-dom/tslint.json | 65 +- types/gestalt/gestalt-tests.tsx | 105 +- types/gestalt/index.d.ts | 905 +- .../ghost-storage-base-tests.ts | 2 +- types/gijgo/tsconfig.json | 4 +- types/gijgo/tslint.json | 65 +- types/giraffe/tsconfig.json | 4 +- types/giraffe/tslint.json | 60 +- types/git-branch-is/git-branch-is-tests.ts | 39 + types/git-branch-is/index.d.ts | 55 + types/git-branch-is/tsconfig.json | 23 + types/git-branch-is/tslint.json | 1 + types/git-config/tsconfig.json | 4 +- types/git-config/tslint.json | 82 +- .../git-raw-commits/git-raw-commits-tests.ts | 18 + types/git-raw-commits/index.d.ts | 84 + types/git-raw-commits/tsconfig.json | 24 + types/git-raw-commits/tslint.json | 1 + types/git-rev/tslint.json | 3 +- types/git/tslint.json | 61 +- types/gl-fbo/gl-fbo-tests.ts | 32 + types/gl-fbo/index.d.ts | 35 + types/gl-fbo/tsconfig.json | 25 + types/gl-fbo/tslint.json | 1 + types/gl-matrix/tslint.json | 54 +- types/gldatepicker/tsconfig.json | 4 +- types/gldatepicker/tslint.json | 72 +- types/glidejs/tsconfig.json | 4 +- types/glidejs/tslint.json | 68 +- types/glob-expand/tsconfig.json | 4 +- types/glob-expand/tslint.json | 72 +- types/glob-stream/tsconfig.json | 4 +- types/glob-stream/tslint.json | 70 +- types/glob/tsconfig.json | 4 +- types/glob/tslint.json | 2 +- types/glob/v5/tsconfig.json | 2 +- types/glob/v5/tslint.json | 2 +- types/global-agent/global-agent-tests.ts | 9 + types/global-agent/index.d.ts | 21 + types/global-agent/tsconfig.json | 23 + types/global-agent/tslint.json | 1 + types/global-npm/global-npm-tests.ts | 18 + types/global-npm/index.d.ts | 14 + types/global-npm/tsconfig.json | 23 + types/global-npm/tslint.json | 1 + types/globalize-compiler/tslint.json | 72 +- types/globalize/OTHER_FILES.txt | 1 + types/globalize/dist/globalize-runtime.d.ts | 4 + types/globalize/tsconfig.json | 4 +- types/globalize/tslint.json | 66 +- types/gm/tsconfig.json | 4 +- types/go/tsconfig.json | 4 +- types/go/tslint.json | 60 +- .../google-apps-script/apis/directory_v1.d.ts | 1 + .../google-apps-script.data-studio.d.ts | 22 +- types/google-apps-script/tslint.json | 2 +- types/google-closure-compiler/tsconfig.json | 4 +- types/google-closure-compiler/tslint.json | 82 +- types/google-drive-realtime-api/tslint.json | 50 +- types/google-earth/tsconfig.json | 4 +- types/google-earth/tslint.json | 61 +- types/google-libphonenumber/tsconfig.json | 4 +- types/google-libphonenumber/tslint.json | 62 +- types/google-map-react/OTHER_FILES.txt | 1 + .../google-map-react-tests.tsx | 2 +- types/google-map-react/index.d.ts | 2 +- types/google-map-react/utils.d.ts | 22 + .../google-maps-react-tests.tsx | 8 +- types/google-maps-react/index.d.ts | 12 +- types/google-maps/index.d.ts | 2 +- types/google-maps/tslint.json | 63 +- types/google-protobuf/tslint.json | 9 +- types/google.analytics/tslint.json | 7 +- types/google.feeds/tsconfig.json | 4 +- types/google.feeds/tslint.json | 73 +- types/google.fonts/tsconfig.json | 4 +- types/google.geolocation/tsconfig.json | 4 +- types/google.geolocation/tslint.json | 69 +- types/google.picker/tsconfig.json | 4 +- types/google.picker/tslint.json | 64 +- types/google.visualization/tslint.json | 57 +- types/google__maps/index.d.ts | 2 +- .../google__markerclustererplus-tests.ts} | 0 .../index.d.ts | 0 .../tsconfig.json | 4 +- types/google__markerclustererplus/tslint.json | 1 + types/googlemaps.infobubble/index.d.ts | 1 + types/googlemaps.infobubble/tslint.json | 70 +- types/googlemaps/googlemaps-tests.ts | 11 + types/googlemaps/index.d.ts | 14 + types/googlemaps/tslint.json | 2 +- types/got/tslint.json | 2 +- types/got/v8/tslint.json | 2 +- types/graham_scan/tsconfig.json | 4 +- types/graham_scan/tslint.json | 71 +- types/graphite/graphite-tests.ts | 75 + types/graphite/index.d.ts | 24 + types/graphite/tsconfig.json | 23 + types/graphite/tslint.json | 1 + types/graphlib/tsconfig.json | 4 +- types/graphlib/tslint.json | 65 +- types/graphql-relay/tslint.json | 2 +- types/graphviz/tsconfig.json | 4 +- types/graphviz/tslint.json | 67 +- types/gravatar/gravatar-tests.ts | 33 +- types/gravatar/index.d.ts | 48 +- types/gravatar/tsconfig.json | 4 +- types/gravatar/tslint.json | 79 +- types/greasemonkey/v3/tslint.json | 63 +- types/grecaptcha/grecaptcha-tests.ts | 3 + types/grecaptcha/index.d.ts | 5 +- types/grecaptcha/tslint.json | 7 +- types/grecaptcha/v0/tsconfig.json | 4 +- types/grecaptcha/v0/tslint.json | 70 +- types/gregorian-calendar/tsconfig.json | 4 +- types/gregorian-calendar/tslint.json | 66 +- types/gremlin/gremlin-tests.ts | 67 + types/gremlin/index.d.ts | 485 +- types/gremlin/tsconfig.json | 3 +- types/gremlin/tslint.json | 10 +- types/gridfs-stream/tsconfig.json | 4 +- types/gridfs-stream/tslint.json | 59 +- types/gridstack/gridstack-tests.ts | 21 - types/gridstack/index.d.ts | 481 - types/gridstack/tslint.json | 80 - types/group-array/group-array-tests.ts | 12 + types/group-array/index.d.ts | 9 + types/group-array/tsconfig.json | 23 + types/group-array/tslint.json | 1 + types/grunt/tslint.json | 53 +- types/gsap/tslint.json | 12 +- types/gtag.js/tsconfig.json | 4 +- types/gtag.js/tslint.json | 10 +- .../gulp-angular-templatecache/tsconfig.json | 4 +- types/gulp-angular-templatecache/tslint.json | 68 +- types/gulp-autoprefixer/tsconfig.json | 4 +- types/gulp-autoprefixer/tslint.json | 74 +- types/gulp-babel/tsconfig.json | 4 +- types/gulp-babel/tslint.json | 71 +- types/gulp-cache/tslint.json | 64 +- types/gulp-cached/tsconfig.json | 4 +- types/gulp-cached/tslint.json | 73 +- types/gulp-changed/tsconfig.json | 4 +- types/gulp-changed/tslint.json | 71 +- types/gulp-cheerio/tslint.json | 65 +- types/gulp-coffeeify/tsconfig.json | 4 +- types/gulp-coffeeify/tslint.json | 67 +- types/gulp-coffeelint/tsconfig.json | 4 +- types/gulp-coffeelint/tslint.json | 67 +- types/gulp-concat/tsconfig.json | 4 +- types/gulp-concat/tslint.json | 73 +- types/gulp-connect/tsconfig.json | 4 +- types/gulp-copy/tslint.json | 73 +- types/gulp-csso/tsconfig.json | 4 +- types/gulp-csso/tslint.json | 74 +- types/gulp-debug/tsconfig.json | 4 +- types/gulp-debug/tslint.json | 73 +- types/gulp-dtsm/tsconfig.json | 4 +- types/gulp-dtsm/tslint.json | 73 +- types/gulp-espower/tsconfig.json | 4 +- types/gulp-espower/tslint.json | 74 +- types/gulp-file-include/tslint.json | 69 +- types/gulp-filter/tsconfig.json | 2 +- types/gulp-filter/tslint.json | 74 +- types/gulp-flatten/tsconfig.json | 4 +- types/gulp-flatten/tslint.json | 73 +- types/gulp-gh-pages/tsconfig.json | 4 +- types/gulp-gh-pages/tslint.json | 74 +- types/gulp-gzip/tsconfig.json | 4 +- types/gulp-gzip/tslint.json | 73 +- types/gulp-help-doc/tsconfig.json | 4 +- types/gulp-help-doc/tslint.json | 65 +- types/gulp-help/tslint.json | 65 +- types/gulp-html-replace/tslint.json | 74 +- types/gulp-htmlmin/tsconfig.json | 4 +- types/gulp-htmlmin/tslint.json | 73 +- types/gulp-if/tsconfig.json | 4 +- types/gulp-if/tslint.json | 71 +- types/gulp-imagemin/gulp-imagemin-tests.ts | 2 +- types/gulp-imagemin/index.d.ts | 6 +- types/gulp-inject/tslint.json | 71 +- types/gulp-insert/tsconfig.json | 4 +- types/gulp-insert/tslint.json | 62 +- types/gulp-install/tsconfig.json | 4 +- types/gulp-install/tslint.json | 73 +- types/gulp-istanbul/tslint.json | 70 +- types/gulp-jade/tsconfig.json | 4 +- types/gulp-jade/tslint.json | 71 +- types/gulp-jasmine-browser/tsconfig.json | 4 +- types/gulp-jasmine-browser/tslint.json | 73 +- types/gulp-json-editor/tsconfig.json | 4 +- types/gulp-json-editor/tslint.json | 70 +- types/gulp-jspm/tsconfig.json | 4 +- types/gulp-jspm/tslint.json | 72 +- types/gulp-less/tsconfig.json | 4 +- types/gulp-less/tslint.json | 73 +- types/gulp-load-plugins/tsconfig.json | 4 +- types/gulp-load-plugins/tslint.json | 67 +- types/gulp-minify-css/tsconfig.json | 4 +- types/gulp-minify-css/tslint.json | 75 +- types/gulp-minify-html/tsconfig.json | 4 +- types/gulp-minify-html/tslint.json | 72 +- types/gulp-mocha/tsconfig.json | 4 +- types/gulp-mocha/tslint.json | 72 +- types/gulp-msbuild/tslint.json | 3 +- types/gulp-mustache/tslint.json | 10 +- types/gulp-newer/tsconfig.json | 4 +- types/gulp-newer/tslint.json | 72 +- types/gulp-ng-annotate/tsconfig.json | 4 +- types/gulp-ng-annotate/tslint.json | 71 +- types/gulp-nodemon/tsconfig.json | 4 +- types/gulp-nodemon/tslint.json | 64 +- types/gulp-nunit-runner/tslint.json | 4 +- types/gulp-plumber/tsconfig.json | 4 +- types/gulp-plumber/tslint.json | 71 +- types/gulp-protractor/tsconfig.json | 4 +- types/gulp-protractor/tslint.json | 71 +- types/gulp-remember/tsconfig.json | 4 +- types/gulp-remember/tslint.json | 72 +- types/gulp-rename/tsconfig.json | 4 +- types/gulp-rename/tslint.json | 73 +- types/gulp-replace/tsconfig.json | 4 +- types/gulp-replace/tslint.json | 70 +- types/gulp-rev-replace/tsconfig.json | 2 +- types/gulp-rev-replace/tslint.json | 67 +- types/gulp-rev/tsconfig.json | 4 +- types/gulp-rev/tslint.json | 72 +- types/gulp-ruby-sass/tsconfig.json | 4 +- types/gulp-ruby-sass/tslint.json | 71 +- types/gulp-sass/tsconfig.json | 4 +- types/gulp-sass/tslint.json | 71 +- types/gulp-sort/tsconfig.json | 4 +- types/gulp-sort/tslint.json | 70 +- types/gulp-sourcemaps/tslint.json | 67 +- types/gulp-strip-debug/tsconfig.json | 4 +- types/gulp-strip-debug/tslint.json | 71 +- types/gulp-svg-sprite/tslint.json | 73 +- types/gulp-task-listing/tslint.json | 71 +- types/gulp-tsd/tsconfig.json | 4 +- types/gulp-tsd/tslint.json | 73 +- types/gulp-useref/tsconfig.json | 2 +- types/gulp-useref/tslint.json | 64 +- types/gulp-util/tsconfig.json | 4 +- types/gulp-util/tslint.json | 6 +- types/gulp-watch/tsconfig.json | 4 +- types/gulp-watch/tslint.json | 69 +- types/gulp/tslint.json | 4 +- types/gulp/v3/tslint.json | 64 +- types/gun/tslint.json | 7 +- types/h2o2/tslint.json | 69 +- types/halfred/tsconfig.json | 4 +- types/halfred/tslint.json | 65 +- types/hammerjs/tslint.json | 56 +- types/hammerjs/v1/tslint.json | 64 +- types/handlebars-helpers/tsconfig.json | 2 +- types/hapi-auth-basic/tslint.json | 72 +- types/hapi-decorators/tsconfig.json | 2 +- types/hapi-decorators/tslint.json | 72 +- types/hapi-pino/hapi-pino-tests.ts | 12 + types/hapi-pino/index.d.ts | 5 +- .../hapi-server-session-tests.ts | 20 + types/hapi-server-session/index.d.ts | 28 + types/hapi-server-session/tsconfig.json | 24 + types/hapi-server-session/tslint.json | 1 + types/hapi/tsconfig.json | 2 +- types/hapi/v12/tsconfig.json | 6 +- types/hapi/v12/tslint.json | 49 +- types/hapi/v15/tsconfig.json | 6 +- types/hapi/v15/tslint.json | 66 +- types/hapi/v16/tslint.json | 42 +- types/hapi/v17/tsconfig.json | 2 +- types/hapi/v8/tsconfig.json | 6 +- types/hapi/v8/tslint.json | 50 +- types/hapi__accept/hapi__accept-tests.ts | 31 - types/hapi__accept/index.d.ts | 23 - types/hapi__b64/hapi__b64-tests.ts | 17 + types/hapi__b64/index.d.ts | 19 + types/{hapi__topo => hapi__b64}/tsconfig.json | 8 +- types/hapi__b64/tslint.json | 1 + types/hapi__basic/tslint.json | 73 +- types/hapi__bell/tslint.json | 4 +- types/hapi__boom/hapi__boom-tests.ts | 210 - types/hapi__boom/index.d.ts | 372 - .../hapi__catbox-memcached-tests.ts | 21 + types/hapi__catbox-memcached/index.d.ts | 25 + types/hapi__catbox-memcached/tsconfig.json | 25 + types/hapi__catbox-memcached/tslint.json | 1 + types/hapi__code/hapi__code-tests.ts | 170 - types/hapi__code/index.d.ts | 195 - .../hapi__cryptiles/hapi__cryptiles-tests.ts | 5 - types/hapi__cryptiles/index.d.ts | 22 - types/hapi__glue/hapi__glue-tests.ts | 6 + types/hapi__glue/index.d.ts | 12 +- types/hapi__h2o2/index.d.ts | 8 +- types/hapi__h2o2/package.json | 7 + types/hapi__h2o2/tslint.json | 69 +- types/hapi__hapi/index.d.ts | 191 +- types/hapi__hapi/package.json | 7 + types/hapi__hapi/test/route/settings.ts | 3 +- .../test/server/server-decorations.ts | 4 +- types/hapi__hapi/test/server/server-load.ts | 1 - types/hapi__hapi/tsconfig.json | 2 +- types/hapi__hawk/OTHER_FILES.txt | 1 + types/hapi__hawk/hapi__hawk-tests.ts | 48 + types/hapi__hawk/index.d.ts | 22 + types/hapi__hawk/lib/browser.d.ts | 62 + types/hapi__hawk/lib/client.d.ts | 88 + types/hapi__hawk/lib/crypto.d.ts | 38 + types/hapi__hawk/lib/plugin.d.ts | 7 + types/hapi__hawk/lib/server.d.ts | 131 + types/hapi__hawk/lib/utils.d.ts | 51 + types/hapi__hawk/package.json | 6 + types/hapi__hawk/tsconfig.json | 59 + types/hapi__hawk/tslint.json | 1 + types/hapi__hoek/hapi__hoek-tests.ts | 291 - types/hapi__hoek/index.d.ts | 213 - types/hapi__iron/hapi__iron-tests.ts | 78 - types/hapi__iron/index.d.ts | 100 - types/hapi__joi/hapi__joi-tests.ts | 40 +- types/hapi__joi/index.d.ts | 74 +- types/hapi__lab/hapi__lab-tests.ts | 169 - types/hapi__lab/index.d.ts | 188 - types/hapi__lab/tslint.json | 80 - types/hapi__mimos/tslint.json | 87 +- types/hapi__nes/tslint.json | 58 +- types/hapi__podium/tslint.json | 64 +- types/hapi__topo/hapi__topo-tests.ts | 15 - types/hapi__topo/index.d.ts | 49 - types/hapi__wreck/hapi__wreck-tests.ts | 46 - types/hapi__wreck/index.d.ts | 86 - types/hapi__wreck/tsconfig.json | 31 - types/hapi__wreck/tslint.json | 80 - types/harmon/harmon-tests.ts | 7 + types/harmon/index.d.ts | 11 + types/harmon/tsconfig.json | 23 + types/harmon/tslint.json | 17 + types/harmony-proxy/tsconfig.json | 4 +- types/harmony-proxy/tslint.json | 66 +- types/hasher/tsconfig.json | 4 +- types/hasher/tslint.json | 69 +- types/hashids/tsconfig.json | 4 +- types/hashids/tslint.json | 76 +- types/hashmap/tsconfig.json | 4 +- types/hashmap/v1/tslint.json | 69 +- types/hashset/tsconfig.json | 4 +- types/hashset/tslint.json | 65 +- types/hashtable/tsconfig.json | 4 +- types/hashtable/tslint.json | 64 +- types/hast-format/hast-format-tests.ts | 95 - types/hast/hast-tests.ts | 86 + types/{hast-format => hast}/index.d.ts | 17 +- types/{hast-format => hast}/tsconfig.json | 2 +- types/hast/tslint.json | 6 + types/he/tsconfig.json | 4 +- types/he/tslint.json | 71 +- types/headroom/tslint.json | 73 +- types/heap/tsconfig.json | 4 +- types/heap/tslint.json | 70 +- types/hellojs/tslint.json | 2 +- types/hellosign-embedded/tslint.json | 70 +- types/helmet/tsconfig.json | 4 +- types/helmet/tslint.json | 62 +- types/heredatalens/tslint.json | 2 +- types/heremaps/heremaps-tests.ts | 7 +- types/heremaps/index.d.ts | 1236 +- types/heremaps/tslint.json | 7 +- types/hexo-log/tslint.json | 2 +- types/hexo/index.d.ts | 2 +- types/hexo/tslint.json | 4 +- types/highcharts-ng/tsconfig.json | 4 +- types/highcharts-ng/tslint.json | 71 +- types/highland/highland-tests.ts | 226 +- types/highland/index.d.ts | 461 +- types/highland/tslint.json | 60 +- types/highlight.js/tsconfig.json | 4 +- types/highlight.js/tslint.json | 65 +- types/highlight.js/v7/tslint.json | 66 +- types/history.js/tslint.json | 63 +- types/history/PathUtils.d.ts | 2 +- types/history/history-tests.ts | 11 +- types/history/index.d.ts | 5 +- types/history/tsconfig.json | 2 +- types/history/tslint.json | 66 +- types/history/v2/tsconfig.json | 4 +- types/history/v2/tslint.json | 63 +- types/history/v3/tsconfig.json | 4 +- types/history/v3/tslint.json | 74 +- types/hls-parser/hls-parser-tests.ts | 7 +- types/hls-parser/index.d.ts | 56 +- types/hooker/tsconfig.json | 4 +- types/hooker/tslint.json | 64 +- types/hopscotch/tsconfig.json | 4 +- types/hopscotch/tslint.json | 65 +- types/hosted-git-info/index.d.ts | 99 +- types/howler/tsconfig.json | 4 +- types/howler/tslint.json | 62 +- types/html-entities/tsconfig.json | 4 +- types/html-entities/tslint.json | 71 +- .../html-minifier-terser-tests.ts | 43 + types/html-minifier-terser/index.d.ts | 206 + types/html-minifier-terser/tsconfig.json | 23 + types/html-minifier-terser/tslint.json | 1 + types/html-minifier/tsconfig.json | 4 +- types/html-minifier/v1/tsconfig.json | 2 +- types/html-minifier/v1/tslint.json | 68 +- types/html-pdf/tsconfig.json | 4 +- types/html-pdf/tslint.json | 68 +- types/html-to-text/tsconfig.json | 4 +- types/html-to-text/tslint.json | 67 +- .../html-webpack-plugin-tests.ts | 14 +- types/html-webpack-plugin/index.d.ts | 10 +- types/html2canvas/tslint.json | 66 +- types/html5plus/tsconfig.json | 4 +- types/htmlescape/tslint.json | 14 +- types/htmlhint/tslint.json | 75 +- types/htmlparser2/tsconfig.json | 4 +- types/htmlparser2/tslint.json | 63 +- types/htmltojsx/tsconfig.json | 4 +- types/htmltojsx/tslint.json | 72 +- types/http-build-query/tslint.json | 18 +- types/http-link-header/tslint.json | 10 +- types/http-proxy/http-proxy-tests.ts | 23 +- types/http-proxy/index.d.ts | 20 +- types/http-proxy/tsconfig.json | 4 +- types/http-string-parser/tsconfig.json | 4 +- types/http-string-parser/tslint.json | 70 +- types/httperr/tsconfig.json | 4 +- types/httperr/tslint.json | 67 +- types/hubot/hubot-tests.ts | 89 +- types/hubot/index.d.ts | 216 +- types/hubspot-pace/tsconfig.json | 4 +- types/hubspot-pace/tslint.json | 67 +- types/human-date/human-date-tests.ts | 29 + types/human-date/index.d.ts | 47 + types/human-date/tsconfig.json | 23 + types/human-date/tslint.json | 3 + types/humanparser/tslint.json | 72 +- types/humps/humps-tests.ts | 47 +- types/humps/index.d.ts | 53 +- types/humps/tsconfig.json | 15 +- types/humps/tslint.json | 79 +- types/hyperscript/tsconfig.json | 4 +- types/hyperscript/tslint.json | 63 +- .../tsconfig.json | 4 +- .../tslint.json | 70 +- types/hystrixjs/tsconfig.json | 4 +- types/hystrixjs/tslint.json | 3 +- types/i18n/tsconfig.json | 4 +- types/i18n/tslint.json | 11 +- types/i18next-node-fs-backend/tsconfig.json | 4 +- types/i18next-node-fs-backend/tslint.json | 69 +- .../tsconfig.json | 4 +- .../i18next-sprintf-postprocessor/tslint.json | 72 +- types/i2c-bus/i2c-bus-tests.ts | 165 +- types/i2c-bus/index.d.ts | 336 +- types/i2c-bus/tslint.json | 69 +- types/iab-vpaid/iab-vpaid-tests.ts | 3 + types/iab-vpaid/index.d.ts | 2 +- types/iban/tsconfig.json | 4 +- types/iban/tslint.json | 68 +- types/ibm-mobilefirst/tslint.json | 58 +- types/ibm_db/tslint.json | 18 +- types/icheck/tsconfig.json | 4 +- types/icheck/tslint.json | 71 +- types/iconv/tsconfig.json | 4 +- types/iconv/tslint.json | 69 +- types/identicon.js/tslint.json | 18 +- types/ignite-ui/index.d.ts | 952 +- types/ignite-ui/tsconfig.json | 4 +- types/ignite-ui/tslint.json | 10 +- types/imagemagick-native/tsconfig.json | 4 +- types/imagemagick-native/tslint.json | 68 +- types/imagemagick/tslint.json | 68 +- types/imagemapster/tsconfig.json | 4 +- types/imagemapster/tslint.json | 73 +- types/images/tsconfig.json | 4 +- types/imagesloaded/tslint.json | 67 +- types/imap-simple/imap-simple-tests.ts | 2 +- types/imap-simple/tslint.json | 63 +- types/imap/tsconfig.json | 4 +- types/imap/tslint.json | 57 +- types/imgur-rest-api/tslint.json | 64 +- types/impress/tsconfig.json | 4 +- types/impress/tslint.json | 71 +- .../in-app-purchase/in-app-purchase-tests.ts | 24 +- types/in-app-purchase/index.d.ts | 39 +- types/inboxsdk/tslint.json | 10 +- types/incremental-dom/tslint.json | 65 +- types/inert/v4/tslint.json | 59 +- types/inflected/tsconfig.json | 4 +- types/inflected/tslint.json | 71 +- types/inflection/tsconfig.json | 4 +- types/inflection/tslint.json | 73 +- types/inherits/tsconfig.json | 4 +- types/inherits/tslint.json | 72 +- types/ini/tsconfig.json | 4 +- types/ini/tslint.json | 70 +- types/iniparser/tslint.json | 68 +- types/ink-spinner/index.d.ts | 32 +- types/ink-spinner/ink-spinner-tests.tsx | 2 +- types/ink-spinner/package.json | 8 - types/inline-critical/index.d.ts | 73 + .../inline-critical/inline-critical-tests.ts | 22 + types/inline-critical/tsconfig.json | 24 + types/inline-critical/tslint.json | 1 + types/inline-css/tslint.json | 67 +- types/input-moment/tslint.json | 7 +- types/inquirer/tsconfig.json | 2 +- types/insert-css/tslint.json | 18 +- types/insight/tsconfig.json | 4 +- types/insight/tslint.json | 65 +- types/intercom-client/index.d.ts | 4 +- types/intercom-client/tslint.json | 3 +- types/intercomjs/tsconfig.json | 4 +- types/intercomjs/tslint.json | 65 +- types/internal-slot/index.d.ts | 1 + types/intersperse/index.d.ts | 2 +- types/intersperse/intersperse-tests.ts | 4 +- types/intl-tel-input/tslint.json | 2 +- types/intl-tel-input/v13/tsconfig.json | 2 +- types/intl-tel-input/v13/tslint.json | 68 +- types/intro.js/index.d.ts | 39 +- types/intro.js/intro.js-tests.ts | 95 +- types/intro.js/tsconfig.json | 4 +- types/intro.js/tslint.json | 72 +- types/invariant/tsconfig.json | 4 +- types/invariant/tslint.json | 67 +- types/inversify-devtools/tsconfig.json | 4 +- types/inversify-devtools/tslint.json | 73 +- types/iobroker/index.d.ts | 29 +- types/iobroker/iobroker-tests.ts | 11 +- types/iobroker/tslint.json | 4 +- types/ion-rangeslider/tslint.json | 2 +- types/ion-rangeslider/v1/tslint.json | 70 +- types/ioredis/index.d.ts | 583 +- types/ioredis/ioredis-tests.ts | 4 + types/ioredis/tsconfig.json | 4 +- types/ioredis/v3/tsconfig.json | 2 +- types/ip-address/tsconfig.json | 2 +- types/ip-subnet-calculator/index.d.ts | 29 + .../ip-subnet-calculator-tests.ts | 11 + types/ip-subnet-calculator/tsconfig.json | 23 + types/ip-subnet-calculator/tslint.json | 1 + types/ipcheck/tslint.json | 2 +- types/irc/tsconfig.json | 4 +- types/irc/tslint.json | 63 +- types/is-date-object/index.d.ts | 1 + types/is-empty-object/index.d.ts | 9 + .../is-empty-object/is-empty-object-tests.ts | 3 + types/is-empty-object/tsconfig.json | 23 + types/is-empty-object/tslint.json | 1 + types/is-generator-function/index.d.ts | 10 + .../is-generator-function-tests.ts | 3 + types/is-generator-function/tsconfig.json | 23 + types/is-generator-function/tslint.json | 1 + types/is-generator/index.d.ts | 13 + types/is-generator/is-generator-tests.ts | 4 + types/is-generator/tsconfig.json | 23 + types/is-generator/tslint.json | 1 + types/is-my-json-valid/tsconfig.json | 4 +- types/is-my-json-valid/tslint.json | 72 +- types/is-object/index.d.ts | 1 + types/is-relative-path/index.d.ts | 11 + .../is-relative-path-tests.ts | 3 + types/is-relative-path/tsconfig.json | 23 + types/is-relative-path/tslint.json | 1 + types/is-running/tsconfig.json | 2 +- types/is-url/tslint.json | 70 +- types/is/tsconfig.json | 4 +- types/is/tslint.json | 65 +- types/iscroll/tslint.json | 65 +- types/iscroll/v4/tslint.json | 64 +- types/iso-3166-2/index.d.ts | 10 +- types/iso-3166-2/iso-3166-2-tests.ts | 47 +- types/iso8601-localizer/tsconfig.json | 4 +- types/iso8601-localizer/tslint.json | 69 +- types/isomorphic-fetch/tsconfig.json | 4 +- types/isotope-layout/tslint.json | 3 +- types/istanbul-lib-report/index.d.ts | 205 +- .../istanbul-lib-report-tests.ts | 56 +- types/istanbul-middleware/tsconfig.json | 4 +- types/istanbul-middleware/tslint.json | 67 +- types/istanbul/tsconfig.json | 4 +- types/istanbul/tslint.json | 63 +- types/ix.js/tslint.json | 57 +- types/jackrabbit/tslint.json | 18 +- types/jade/tsconfig.json | 4 +- types/jade/tslint.json | 74 +- types/jake/tsconfig.json | 4 +- types/jake/tslint.json | 49 +- types/japan-postal-code/index.d.ts | 31 + .../japan-postal-code-tests.ts | 8 + types/japan-postal-code/tsconfig.json | 25 + types/japan-postal-code/tslint.json | 1 + types/jasmine-ajax/tslint.json | 2 +- types/jasmine-data_driven_tests/tsconfig.json | 4 +- types/jasmine-enzyme/tsconfig.json | 4 +- .../tsconfig.json | 4 +- .../jasmine-es6-promise-matchers/tslint.json | 63 +- types/jasmine-fixture/tsconfig.json | 4 +- types/jasmine-jquery/tsconfig.json | 4 +- types/jasmine-jquery/tslint.json | 66 +- types/jasmine-matchers/tslint.json | 61 +- types/jasmine-node/tsconfig.json | 4 +- types/jasmine-node/tslint.json | 70 +- types/jasmine-promise-matchers/tsconfig.json | 4 +- types/jasmine-promise-matchers/tslint.json | 68 +- types/jasmine/index.d.ts | 33 +- types/jasmine/jasmine-tests.ts | 177 + types/jasmine/ts3.1/index.d.ts | 42 +- types/jasmine/ts3.1/jasmine-tests.ts | 146 + types/jasmine/ts3.1/tslint.json | 3 +- types/jasmine/tslint.json | 6 +- types/jasmine/v1/tsconfig.json | 4 +- types/jasmine/v1/tslint.json | 66 +- types/jasmine/v2/tslint.json | 49 +- types/jasminewd2/tslint.json | 2 +- types/java-applet/tslint.json | 68 +- types/java/tsconfig.json | 6 +- types/java/tslint.json | 65 +- types/javascript-astar/tsconfig.json | 4 +- types/javascript-astar/tslint.json | 70 +- types/javascript-bignum/tsconfig.json | 4 +- types/javascript-bignum/tslint.json | 73 +- types/javascript-state-machine/tsconfig.json | 4 +- types/javascript-time-ago/OTHER_FILES.txt | 2 +- .../gradation/canonical.d.ts | 5 + .../gradation/convenient.d.ts | 5 + .../gradation/helpers.d.ts | 9 + .../javascript-time-ago/gradation/index.d.ts | 20 + types/javascript-time-ago/index.d.ts | 14 +- types/javascript-time-ago/style/default.d.ts | 3 + types/javascript-time-ago/style/index.d.ts | 26 + types/javascript-time-ago/style/time.d.ts | 3 + types/javascript-time-ago/style/twitter.d.ts | 3 + types/jbinary/tsconfig.json | 4 +- types/jbinary/tslint.json | 64 +- types/jcanvas/tsconfig.json | 4 +- types/jcanvas/tslint.json | 71 +- types/jdataview/tsconfig.json | 4 +- types/jdataview/tslint.json | 66 +- types/jee-jsf/tsconfig.json | 4 +- types/jee-jsf/tslint.json | 68 +- types/jenkins/tslint.json | 10 +- types/jest-axe/tslint.json | 3 +- types/jest-docblock/index.d.ts | 14 - types/jest-docblock/jest-docblock-tests.ts | 8 - types/jest-expect-message/tsconfig.json | 2 +- types/jest-json-schema/tslint.json | 7 +- types/jest-matcher-utils/index.d.ts | 45 - .../jest-matcher-utils-tests.ts | 57 - types/jest-matchers/index.d.ts | 8 - types/jest-matchers/jest-matchers-tests.ts | 3 - types/jest-sinon/index.d.ts | 93 + types/jest-sinon/jest-sinon-tests.ts | 93 + types/jest-sinon/tsconfig.json | 23 + types/jest-sinon/tslint.json | 1 + types/jest-validate/index.d.ts | 95 - types/jest-validate/jest-validate-tests.ts | 13 - types/jest/index.d.ts | 597 +- types/jest/jest-tests.ts | 223 +- types/jest/package.json | 3 +- types/jest/tslint.json | 4 +- types/jest/v16/tslint.json | 57 +- types/jfp/tsconfig.json | 4 +- types/jfp/tslint.json | 63 +- types/jfs/tslint.json | 2 +- types/jjv/tsconfig.json | 4 +- types/jjv/tslint.json | 69 +- types/jjve/tslint.json | 71 +- types/johnny-five/tsconfig.json | 4 +- types/johnny-five/tslint.json | 52 +- types/joi/tslint.json | 3 +- types/joi/v10/tsconfig.json | 4 +- types/joi/v10/tslint.json | 3 +- types/joi/v13/tslint.json | 4 +- types/joi/v6/tslint.json | 3 +- types/jpm/tslint.json | 57 +- types/jqgrid/tslint.json | 69 +- types/jqrangeslider/tslint.json | 58 +- types/jquery-ajax-chain/tslint.json | 65 +- types/jquery-alertable/tsconfig.json | 4 +- types/jquery-alertable/tslint.json | 73 +- types/jquery-backstretch/tsconfig.json | 4 +- types/jquery-backstretch/tslint.json | 69 +- types/jquery-cropbox/tsconfig.json | 4 +- types/jquery-cropbox/tslint.json | 65 +- types/jquery-cropper/index.d.ts | 54 + types/jquery-cropper/tsconfig.json | 23 + .../tslint.json | 2 +- types/jquery-deferred/index.d.ts | 8 + .../jquery-deferred/jquery-deferred-tests.ts | 26 + types/jquery-deferred/lib/index.d.ts | 55 + types/jquery-deferred/tsconfig.json | 23 + types/jquery-deferred/tslint.json | 1 + types/jquery-deparam/tslint.json | 76 +- types/jquery-easy-loading/tsconfig.json | 4 +- types/jquery-easy-loading/tslint.json | 69 +- types/jquery-formatdatetime/tslint.json | 18 +- types/jquery-fullscreen/tsconfig.json | 4 +- types/jquery-fullscreen/tslint.json | 69 +- types/jquery-galleria/tslint.json | 70 +- types/jquery-handsontable/tsconfig.json | 4 +- types/jquery-handsontable/tslint.json | 69 +- types/jquery-jsonrpcclient/tsconfig.json | 4 +- types/jquery-jsonrpcclient/tslint.json | 62 +- types/jquery-knob/tsconfig.json | 6 +- types/jquery-knob/tslint.json | 70 +- types/jquery-mask-plugin/tslint.json | 4 +- types/jquery-migrate/index.d.ts | 42 + types/jquery-migrate/jquery-migrate-tests.ts | 9 + types/jquery-migrate/tsconfig.json | 24 + types/jquery-migrate/tslint.json | 1 + types/jquery-mockjax/tslint.json | 71 +- types/jquery-mousewheel/tsconfig.json | 4 +- types/jquery-mousewheel/tslint.json | 74 +- types/jquery-param/tslint.json | 75 +- .../index.d.ts | 2 +- .../jquery-slimscroll-tests.ts} | 0 .../tsconfig.json | 6 +- types/jquery-slimscroll/tslint.json | 19 + types/jquery-sortable/tslint.json | 57 +- types/jquery-steps/tsconfig.json | 4 +- types/jquery-steps/tslint.json | 64 +- types/jquery-timeentry/tsconfig.json | 4 +- types/jquery-timeentry/tslint.json | 70 +- types/jquery-truncate-html/tsconfig.json | 4 +- types/jquery-truncate-html/tslint.json | 73 +- types/jquery-urlparam/tsconfig.json | 4 +- types/jquery-urlparam/tslint.json | 76 +- .../jquery-validation-unobtrusive/tslint.json | 67 +- types/jquery.address/tsconfig.json | 4 +- types/jquery.address/tslint.json | 73 +- types/jquery.are-you-sure/tsconfig.json | 4 +- types/jquery.are-you-sure/tslint.json | 61 +- types/jquery.autosize/tslint.json | 72 +- types/jquery.base64/tsconfig.json | 4 +- types/jquery.base64/tslint.json | 75 +- types/jquery.bbq/tslint.json | 58 +- types/jquery.blockui/tslint.json | 70 +- types/jquery.bootstrap.wizard/tsconfig.json | 4 +- types/jquery.bootstrap.wizard/tslint.json | 76 +- types/jquery.cleditor/tsconfig.json | 4 +- types/jquery.cleditor/tslint.json | 67 +- types/jquery.clientsidelogging/tsconfig.json | 4 +- types/jquery.clientsidelogging/tslint.json | 72 +- types/jquery.color/tsconfig.json | 4 +- types/jquery.color/tslint.json | 74 +- types/jquery.colorbox/tsconfig.json | 4 +- types/jquery.colorbox/tslint.json | 64 +- types/jquery.colorpicker/tslint.json | 66 +- types/jquery.contextmenu/tsconfig.json | 4 +- types/jquery.contextmenu/tslint.json | 73 +- types/jquery.cookie/tsconfig.json | 4 +- types/jquery.cookie/tslint.json | 66 +- types/jquery.customselect/tsconfig.json | 4 +- types/jquery.customselect/tslint.json | 70 +- types/jquery.cycle/tsconfig.json | 6 +- types/jquery.cycle/tslint.json | 62 +- types/jquery.cycle2/tsconfig.json | 4 +- types/jquery.cycle2/tslint.json | 66 +- types/jquery.dropotron/tslint.json | 72 +- types/jquery.dynatree/tsconfig.json | 4 +- types/jquery.dynatree/tslint.json | 64 +- types/jquery.elang/tsconfig.json | 4 +- types/jquery.elang/tslint.json | 73 +- types/jquery.fancytree/tsconfig.json | 4 +- types/jquery.fancytree/tslint.json | 59 +- types/jquery.fileupload/tsconfig.json | 4 +- types/jquery.fileupload/tslint.json | 61 +- types/jquery.filtertable/tslint.json | 67 +- types/jquery.finger/tslint.json | 68 +- types/jquery.flagstrap/tsconfig.json | 4 +- types/jquery.flagstrap/tslint.json | 61 +- types/jquery.form/tslint.json | 63 +- types/jquery.fullscreen/tsconfig.json | 4 +- types/jquery.fullscreen/tslint.json | 71 +- types/jquery.gridster/tsconfig.json | 4 +- types/jquery.gridster/tslint.json | 65 +- types/jquery.highlight-bartaz/tsconfig.json | 4 +- types/jquery.highlight-bartaz/tslint.json | 73 +- types/jquery.jnotify/tsconfig.json | 4 +- types/jquery.jnotify/tslint.json | 73 +- types/jquery.joyride/tslint.json | 68 +- types/jquery.jsignature/tsconfig.json | 4 +- types/jquery.jsignature/tslint.json | 69 +- types/jquery.leanmodal/tsconfig.json | 4 +- types/jquery.leanmodal/tslint.json | 71 +- types/jquery.livestampjs/tsconfig.json | 4 +- types/jquery.livestampjs/tslint.json | 68 +- types/jquery.menuaim/tsconfig.json | 4 +- types/jquery.menuaim/tslint.json | 69 +- types/jquery.mmenu/tsconfig.json | 4 +- types/jquery.mmenu/tslint.json | 67 +- types/jquery.notify/tslint.json | 2 +- types/jquery.notifybar/tsconfig.json | 4 +- types/jquery.notifybar/tslint.json | 70 +- types/jquery.noty/tsconfig.json | 4 +- types/jquery.noty/tslint.json | 74 +- types/jquery.payment/tsconfig.json | 4 +- types/jquery.payment/tslint.json | 70 +- types/jquery.pjax/tslint.json | 73 +- types/jquery.placeholder/tsconfig.json | 4 +- types/jquery.placeholder/tslint.json | 71 +- types/jquery.pnotify/tsconfig.json | 4 +- types/jquery.pnotify/tslint.json | 69 +- types/jquery.postmessage/tsconfig.json | 4 +- types/jquery.postmessage/tslint.json | 70 +- types/jquery.prettyphoto/tsconfig.json | 4 +- types/jquery.prettyphoto/tslint.json | 71 +- types/jquery.qrcode/tslint.json | 70 +- types/jquery.rateit/tslint.json | 66 +- types/jquery.rowgrid/tsconfig.json | 4 +- types/jquery.rowgrid/tslint.json | 74 +- types/jquery.scrollto/tslint.json | 66 +- types/jquery.simplemodal/tsconfig.json | 4 +- types/jquery.simplemodal/tslint.json | 64 +- types/jquery.simplepagination/tsconfig.json | 4 +- types/jquery.simplepagination/tslint.json | 70 +- types/jquery.simulate/tsconfig.json | 4 +- types/jquery.simulate/tslint.json | 74 +- types/jquery.slimscroll/tslint.json | 80 - types/jquery.soap/tsconfig.json | 4 +- types/jquery.soap/tslint.json | 62 +- types/jquery.sortelements/tsconfig.json | 4 +- types/jquery.sortelements/tslint.json | 71 +- types/jquery.superlink/tsconfig.json | 4 +- types/jquery.superlink/tslint.json | 76 +- types/jquery.tagsmanager/tslint.json | 72 +- types/jquery.tile/tsconfig.json | 4 +- types/jquery.tile/tslint.json | 76 +- types/jquery.timeago/tslint.json | 68 +- types/jquery.timepicker/tsconfig.json | 4 +- types/jquery.timepicker/tslint.json | 70 +- types/jquery.timer/tsconfig.json | 4 +- types/jquery.timer/tslint.json | 69 +- types/jquery.tinycarousel/tsconfig.json | 4 +- types/jquery.tinycarousel/tslint.json | 67 +- types/jquery.tinyscrollbar/tsconfig.json | 4 +- types/jquery.tinyscrollbar/tslint.json | 69 +- types/jquery.tipsy/tsconfig.json | 4 +- types/jquery.tipsy/tslint.json | 72 +- types/jquery.tools/tslint.json | 7 +- types/jquery.total-storage/tsconfig.json | 4 +- types/jquery.total-storage/tslint.json | 66 +- types/jquery.transit/tslint.json | 64 +- types/jquery.ui.datetimepicker/tsconfig.json | 4 +- types/jquery.ui.datetimepicker/tslint.json | 68 +- types/jquery.ui.layout/tsconfig.json | 4 +- types/jquery.ui.layout/tslint.json | 67 +- types/jquery.uniform/tsconfig.json | 4 +- types/jquery.uniform/tslint.json | 72 +- types/jquery.validation/tsconfig.json | 4 +- types/jquery.validation/tslint.json | 2 +- types/jquery.watermark/tsconfig.json | 6 +- types/jquery.watermark/tslint.json | 74 +- types/jquery.window/tsconfig.json | 4 +- types/jquery.window/tslint.json | 67 +- types/jquery/JQueryStatic.d.ts | 4 +- types/jquery/jquery-tests.ts | 4 + types/jquery/misc.d.ts | 10 + types/jquery/v1/tslint.json | 41 +- types/jquery/v2/tslint.json | 42 +- types/jquerymobile/tsconfig.json | 4 +- types/jquerymobile/tslint.json | 66 +- types/jqueryui/tslint.json | 51 +- types/js-beautify/tsconfig.json | 4 +- types/js-beautify/tslint.json | 71 +- types/js-clipper/tsconfig.json | 4 +- types/js-clipper/tslint.json | 62 +- types/js-combinatorics/tsconfig.json | 4 +- types/js-combinatorics/tslint.json | 63 +- types/js-cookie/index.d.ts | 2 +- types/js-cookie/js-cookie-tests.ts | 1 + types/js-data-angular/tsconfig.json | 6 +- types/js-data-angular/tslint.json | 59 +- types/js-fixtures/tsconfig.json | 4 +- types/js-fixtures/tslint.json | 72 +- types/js-git/tslint.json | 65 +- types/js-money/tslint.json | 4 +- types/js-priority-queue/tsconfig.json | 4 +- types/js-priority-queue/tslint.json | 65 +- types/js-schema/tsconfig.json | 4 +- types/js-schema/tslint.json | 62 +- types/js-search/tslint.json | 57 +- types/js-to-java/tslint.json | 2 +- types/js-url/tsconfig.json | 4 +- types/js-url/tslint.json | 73 +- types/js-yaml/index.d.ts | 21 +- types/js-yaml/js-yaml-tests.ts | 80 +- types/js-yaml/tsconfig.json | 40 +- types/jsbn/tsconfig.json | 4 +- types/jsbn/tslint.json | 70 +- types/jscodeshift/tslint.json | 7 +- types/jscrollpane/tsconfig.json | 4 +- types/jscrollpane/tslint.json | 72 +- types/jsdeferred/tslint.json | 58 +- types/jsdoc-to-markdown/index.d.ts | 103 +- .../jsdoc-to-markdown-tests.ts | 42 +- types/jsdoc-to-markdown/v4/index.d.ts | 135 + .../v4/jsdoc-to-markdown-tests.ts | 22 + types/jsdoc-to-markdown/v4/tsconfig.json | 30 + types/jsdoc-to-markdown/v4/tslint.json | 3 + types/jsdom-global/tsconfig.json | 4 +- types/jsdom/index.d.ts | 724 +- types/jsdom/jsdom-tests.ts | 232 +- types/jsdom/package.json | 20 +- types/jsdom/ts3.1/index.d.ts | 328 +- types/jsdom/ts3.1/jsdom-tests.ts | 194 +- types/jsdom/ts3.1/tsconfig.json | 34 +- types/jsdom/ts3.1/tslint.json | 9 +- types/jsdom/ts3.4/index.d.ts | 8 + types/jsdom/ts3.4/jsdom-tests.ts | 9 + types/jsdom/ts3.4/tsconfig.json | 19 + types/jsdom/ts3.4/tslint.json | 1 + types/jsdom/ts3.5/index.d.ts | 13 + types/jsdom/ts3.5/jsdom-tests.ts | 16 + types/jsdom/ts3.5/tsconfig.json | 19 + types/jsdom/ts3.5/tslint.json | 1 + types/jsdom/ts3.6/index.d.ts | 9 + types/jsdom/ts3.6/jsdom-tests.ts | 16 + types/jsdom/ts3.6/tsconfig.json | 19 + types/jsdom/ts3.6/tslint.json | 1 + types/jsdom/tsconfig.json | 42 +- types/jsdom/tslint.json | 9 +- types/jsdom/v2/tslint.json | 62 +- types/jsen/tsconfig.json | 4 +- types/jsen/tslint.json | 65 +- types/jsend/tsconfig.json | 4 +- types/jsend/tslint.json | 63 +- types/jsesc/tslint.json | 69 +- types/jsfl/tsconfig.json | 4 +- types/jsfl/tslint.json | 62 +- types/jsforce/tslint.json | 5 +- types/jsgraph/tsconfig.json | 2 +- types/jsgraph/tslint.json | 62 +- types/jshamcrest/tslint.json | 58 +- types/jsmockito/tslint.json | 59 +- types/jsnox/tsconfig.json | 4 +- types/jsnox/tslint.json | 2 +- types/json-editor/tslint.json | 59 +- types/json-file-plus/index.d.ts | 10 +- types/json-form-data/index.d.ts | 13 +- types/json-form-data/json-form-data-tests.ts | 12 +- types/json-merge-patch/tslint.json | 62 +- types/json-patch/tsconfig.json | 4 +- types/json-patch/tslint.json | 73 +- types/json-pointer/tslint.json | 66 +- types/json-rpc-ws/tslint.json | 3 +- types/json-schema-traverse/index.d.ts | 111 + .../json-schema-traverse-tests.ts | 60 + types/json-schema-traverse/tsconfig.json | 23 + types/json-schema-traverse/tslint.json | 1 + types/json-schema/tslint.json | 6 +- types/json-socket/tsconfig.json | 4 +- types/json-socket/tslint.json | 70 +- types/json-stable-stringify/tsconfig.json | 4 +- types/json2csv/tslint.json | 3 +- types/json5/tsconfig.json | 4 +- types/json5/tslint.json | 67 +- types/jsoneditor-for-react/tslint.json | 7 +- types/jsoneditor/tslint.json | 67 +- types/jsoneditoronline/tslint.json | 68 +- types/jsonld/index.d.ts | 46 +- types/jsonld/jsonld-spec.d.ts | 11 +- types/jsonld/jsonld-tests.ts | 13 +- types/jsonminify/tslint.json | 75 +- types/jsonnet/tsconfig.json | 4 +- types/jsonnet/tslint.json | 71 +- types/jsonpath/tsconfig.json | 4 +- types/jsonpath/tslint.json | 68 +- types/jsonquery/tslint.json | 6 +- types/jsonstream/tslint.json | 69 +- types/jsonwebtoken-promisified/tsconfig.json | 4 +- types/jsonwebtoken/index.d.ts | 24 +- types/jsonwebtoken/jsonwebtoken-tests.ts | 6 + types/jsonwebtoken/tsconfig.json | 4 +- types/jspdf/tslint.json | 54 +- types/jsprintmanager/tslint.json | 6 +- types/jsqubits/index.d.ts | 4 +- types/jstimezonedetect/tslint.json | 75 +- types/jstorage/tsconfig.json | 4 +- types/jstorage/tslint.json | 67 +- types/jstree/tslint.json | 3 +- types/jsts/index.d.ts | 342 + types/jsts/jsts-tests.ts | 107 +- types/jsts/tslint.json | 57 +- types/jsuite/tsconfig.json | 4 +- types/jsuite/tslint.json | 74 +- types/jsuri/tsconfig.json | 4 +- types/jsuri/tslint.json | 68 +- types/jsurl/tsconfig.json | 4 +- types/jsurl/tslint.json | 68 +- types/jsx-chai/tsconfig.json | 4 +- types/jsx-chai/tslint.json | 75 +- types/jszip/index.d.ts | 7 +- types/jszip/jszip-tests.ts | 4 + types/jszip/tslint.json | 2 +- types/jug/tsconfig.json | 4 +- types/jug/tslint.json | 64 +- types/jui-grid/tslint.json | 2 +- types/jui/tslint.json | 3 +- types/jump.js/tslint.json | 10 +- types/just-debounce-it/tslint.json | 10 +- types/just-map-values/index.d.ts | 8 + .../just-map-values/just-map-values-tests.ts | 11 + types/just-map-values/tsconfig.json | 23 + types/just-map-values/tslint.json | 1 + types/just-safe-set/index.d.ts | 8 + types/just-safe-set/just-safe-set-tests.ts | 22 + types/just-safe-set/tsconfig.json | 23 + types/just-safe-set/tslint.json | 1 + types/jwplayer/index.d.ts | 2 + types/jwt-client/tsconfig.json | 4 +- types/jwt-client/tslint.json | 64 +- types/jwt-decode/tslint.json | 2 +- types/jwt-decode/v1/tslint.json | 2 +- types/jwt-simple/tsconfig.json | 4 +- types/jwt-simple/tslint.json | 64 +- types/k6/tslint.json | 5 +- types/kap-plugin/index.d.ts | 125 + types/kap-plugin/kap-plugin-tests.ts | 35 + types/kap-plugin/package.json | 6 + types/kap-plugin/tsconfig.json | 23 + types/kap-plugin/tslint.json | 6 + types/karma-browserify/index.d.ts | 36 + .../karma-browserify-tests.ts | 32 + types/karma-browserify/tsconfig.json | 23 + types/karma-browserify/tslint.json | 1 + types/karma-browserstack-launcher/index.d.ts | 85 + .../karma-browserstack-launcher-tests.ts | 58 + .../karma-browserstack-launcher/tsconfig.json | 23 + types/karma-browserstack-launcher/tslint.json | 1 + types/karma-chai-sinon/tsconfig.json | 4 +- types/karma-chai-sinon/tslint.json | 75 +- types/karma-chrome-launcher/index.d.ts | 19 + .../karma-chrome-launcher-tests.ts | 20 + types/karma-chrome-launcher/tsconfig.json | 23 + types/karma-chrome-launcher/tslint.json | 1 + types/karma-coverage/index.d.ts | 50 +- types/karma-coverage/karma-coverage-tests.ts | 9 +- types/karma-coverage/tsconfig.json | 4 +- types/karma-coverage/tslint.json | 69 +- types/karma-detect-browsers/index.d.ts | 30 + .../karma-detect-browsers-tests.ts | 95 + types/karma-detect-browsers/tsconfig.json | 23 + types/karma-detect-browsers/tslint.json | 1 + types/karma-env-preprocessor/index.d.ts | 16 + .../karma-env-preprocessor-tests.ts | 12 + types/karma-env-preprocessor/tsconfig.json | 23 + types/karma-env-preprocessor/tslint.json | 1 + types/karma-firefox-launcher/index.d.ts | 21 + .../karma-firefox-launcher-tests.ts | 21 + types/karma-firefox-launcher/tsconfig.json | 23 + types/karma-firefox-launcher/tslint.json | 1 + types/karma-fixture/tsconfig.json | 4 +- types/karma-ie-launcher/index.d.ts | 13 + .../karma-ie-launcher-tests.ts | 30 + types/karma-ie-launcher/tsconfig.json | 23 + types/karma-ie-launcher/tslint.json | 1 + types/karma-jasmine-html-reporter/index.d.ts | 22 + .../karma-jasmine-html-reporter-tests.ts | 13 + .../karma-jasmine-html-reporter/tsconfig.json | 23 + types/karma-jasmine-html-reporter/tslint.json | 1 + types/karma-jasmine/index.d.ts | 35 +- types/karma-jasmine/karma-jasmine-tests.ts | 29 +- types/karma-jasmine/tsconfig.json | 4 +- types/karma-jasmine/tslint.json | 81 +- types/karma-json-preprocessor/index.d.ts | 31 + .../karma-json-preprocessor-tests.ts | 20 + types/karma-json-preprocessor/tsconfig.json | 23 + types/karma-json-preprocessor/tslint.json | 1 + types/karma-json-to-file-reporter/index.d.ts | 42 + .../karma-json-to-file-reporter-tests.ts | 16 + .../karma-json-to-file-reporter/tsconfig.json | 23 + types/karma-json-to-file-reporter/tslint.json | 1 + types/karma-junit-reporter/index.d.ts | 34 + .../karma-junit-reporter-tests.ts | 36 + types/karma-junit-reporter/tsconfig.json | 23 + types/karma-junit-reporter/tslint.json | 1 + types/karma-mocha-reporter/index.d.ts | 87 + .../karma-mocha-reporter-tests.ts | 48 + types/karma-mocha-reporter/tsconfig.json | 23 + types/karma-mocha-reporter/tslint.json | 1 + types/karma-mocha/index.d.ts | 22 + types/karma-mocha/karma-mocha-tests.ts | 41 + types/karma-mocha/tsconfig.json | 23 + types/karma-mocha/tslint.json | 1 + types/karma-remap-coverage/index.d.ts | 31 + .../karma-remap-coverage-tests.ts | 28 + types/karma-remap-coverage/tsconfig.json | 23 + types/karma-remap-coverage/tslint.json | 1 + types/karma-spec-reporter/index.d.ts | 33 + .../karma-spec-reporter-tests.ts | 17 + types/karma-spec-reporter/tsconfig.json | 23 + types/karma-spec-reporter/tslint.json | 1 + types/karma/index.d.ts | 251 +- types/karma/karma-tests.ts | 241 +- types/karma/tsconfig.json | 4 +- types/karma/tslint.json | 4 +- types/karma/v1/tsconfig.json | 4 +- types/karma/v1/tslint.json | 63 +- types/karma/v3/index.d.ts | 499 + types/karma/v3/karma-tests.ts | 131 + .../ts3.7 => karma/v3}/tsconfig.json | 7 +- types/karma/v3/tslint.json | 3 + types/katex/tsconfig.json | 4 +- types/katex/tslint.json | 67 +- types/kd-tree-javascript/index.d.ts | 30 + .../kd-tree-javascript-tests.ts | 32 + types/kd-tree-javascript/tsconfig.json | 23 + types/kd-tree-javascript/tslint.json | 1 + types/kdbush/v1/tslint.json | 11 +- types/keen-tracking/tslint.json | 18 +- types/kefir/tslint.json | 59 +- types/kendo-ui/index.d.ts | 401 +- types/kendo-ui/tsconfig.json | 4 +- types/kendo-ui/tslint.json | 56 +- types/keyboardjs/tsconfig.json | 4 +- types/keyboardjs/tslint.json | 69 +- types/keycloak-connect/index.d.ts | 2 + .../keycloak-connect-tests.ts | 1 + types/keymaster/tsconfig.json | 4 +- types/keymaster/tslint.json | 62 +- types/keymirror/tslint.json | 75 +- types/keypress.js/tsconfig.json | 4 +- types/keypress.js/tslint.json | 3 +- types/kii-cloud-sdk/tsconfig.json | 4 +- types/kii-cloud-sdk/tslint.json | 4 +- types/kik-browser/tslint.json | 69 +- types/kineticjs/tsconfig.json | 4 +- types/kineticjs/tslint.json | 63 +- types/klaw-sync/tslint.json | 13 +- types/klaw/tsconfig.json | 4 +- types/klaw/tslint.json | 64 +- types/klaw/v1/tsconfig.json | 4 +- types/klaw/v1/tslint.json | 3 +- types/knex-db-manager/index.d.ts | 33 + .../knex-db-manager/knex-db-manager-tests.ts | 3 + types/knex-db-manager/package.json | 6 + types/knex-db-manager/tsconfig.json | 16 + types/knex-db-manager/tslint.json | 1 + types/knockback/tsconfig.json | 4 +- types/knockback/tslint.json | 62 +- types/knockout-amd-helpers/tsconfig.json | 4 +- types/knockout-amd-helpers/tslint.json | 65 +- types/knockout-postbox/tsconfig.json | 4 +- types/knockout-postbox/tslint.json | 74 +- types/knockout-secure-binding/tsconfig.json | 4 +- types/knockout-secure-binding/tslint.json | 67 +- types/knockout-transformations/tsconfig.json | 4 +- types/knockout-transformations/tslint.json | 67 +- types/knockout.deferred.updates/tslint.json | 66 +- types/knockout.editables/tsconfig.json | 4 +- types/knockout.editables/tslint.json | 76 +- types/knockout.es5/tslint.json | 62 +- types/knockout.kogrid/tslint.json | 64 +- types/knockout.mapper/tsconfig.json | 4 +- types/knockout.mapper/tslint.json | 75 +- types/knockout.mapping/tslint.json | 65 +- types/knockout.projections/tsconfig.json | 4 +- types/knockout.projections/tslint.json | 71 +- types/knockout.punches/tsconfig.json | 4 +- types/knockout.punches/tslint.json | 72 +- types/knockout.rx/tslint.json | 74 +- types/knockout.validation/tsconfig.json | 4 +- types/knockout.validation/tslint.json | 69 +- types/knockout.viewmodel/tsconfig.json | 4 +- types/knockout.viewmodel/tslint.json | 74 +- types/knockout/index.d.ts | 14 +- types/knockout/tslint.json | 41 +- types/knockstrap/tslint.json | 68 +- types/knuddels-userapps-api/tslint.json | 16 +- types/ko.plus/tslint.json | 60 +- types/koa-bodyparser/tsconfig.json | 4 +- types/koa-bouncer/tsconfig.json | 4 +- types/koa-bouncer/tslint.json | 70 +- types/koa-bunyan-logger/index.d.ts | 6 + .../koa-bunyan-logger-tests.ts | 14 + types/koa-compose/tsconfig.json | 4 +- types/koa-compose/tslint.json | 11 +- types/koa-compress/tsconfig.json | 4 +- types/koa-compress/tslint.json | 71 +- types/koa-cookie/index.d.ts | 27 + types/koa-cookie/koa-cookie-tests.ts | 13 + types/koa-cookie/tsconfig.json | 19 + types/koa-cookie/tslint.json | 3 + types/koa-ejs/index.d.ts | 7 + types/koa-favicon/tsconfig.json | 4 +- types/koa-favicon/tslint.json | 71 +- types/koa-graphql/tslint.json | 18 +- types/koa-hbs/tsconfig.json | 4 +- types/koa-hbs/tslint.json | 69 +- types/koa-json-error/tsconfig.json | 4 +- types/koa-json/tsconfig.json | 4 +- types/koa-json/tslint.json | 71 +- types/koa-log4/tsconfig.json | 2 +- types/koa-logger/tsconfig.json | 4 +- types/koa-morgan/tslint.json | 7 +- types/koa-mount/tsconfig.json | 4 +- types/koa-ratelimit/index.d.ts | 10 +- types/koa-ratelimit/koa-ratelimit-tests.ts | 6 + types/koa-router/index.d.ts | 2 +- types/koa-router/tsconfig.json | 4 +- types/koa-router/tslint.json | 63 +- types/koa-send/tsconfig.json | 4 +- types/koa-session-minimal/tslint.json | 71 +- types/koa-session/index.d.ts | 18 + types/koa-static-server/tsconfig.json | 4 +- types/koa-static/tsconfig.json | 4 +- types/koa/index.d.ts | 20 +- types/koa/tsconfig.json | 2 +- types/koa/tslint.json | 66 +- types/koa__cors/index.d.ts | 41 + types/koa__router/tsconfig.json | 2 +- types/kolite/tslint.json | 64 +- types/konami.js/tsconfig.json | 4 +- types/konami.js/tslint.json | 72 +- types/kramed/tslint.json | 18 +- types/kue/tslint.json | 64 +- types/kurento-client/index.d.ts | 132 + types/kurento-client/kurento-client-tests.ts | 28 + types/kurento-client/tsconfig.json | 25 + types/kurento-client/tslint.json | 1 + types/lab/tslint.json | 70 +- types/lambda-wrapper/index.d.ts | 28 + types/lambda-wrapper/lambda-wrapper-tests.ts | 32 + types/lambda-wrapper/tsconfig.json | 23 + types/lambda-wrapper/tslint.json | 1 + types/lasso/tslint.json | 2 +- types/later/index.d.ts | 8 +- types/later/later-tests.ts | 4 +- types/later/tslint.json | 3 +- types/latinize/tsconfig.json | 4 +- types/latinize/tslint.json | 72 +- types/launchpad/tslint.json | 71 +- types/layui-layer/index.d.ts | 540 + types/layui-layer/layui-layer-tests.ts | 357 + types/layui-layer/tsconfig.json | 24 + types/layui-layer/tslint.json | 1 + types/lazy-brush/index.d.ts | 145 + types/lazy-brush/lazy-brush-tests.ts | 47 + types/lazy-brush/tsconfig.json | 23 + types/lazy-brush/tslint.json | 1 + types/lazy.js/tslint.json | 61 +- types/lazypipe/tsconfig.json | 4 +- types/lazypipe/tslint.json | 72 +- types/ldapjs/index.d.ts | 11 +- types/ldapjs/tslint.json | 61 +- types/leadfoot/tslint.json | 62 +- types/leaflet-areaselect/tsconfig.json | 4 +- types/leaflet-curve/tsconfig.json | 4 +- types/leaflet-draw/index.d.ts | 5 + types/leaflet-editable/tsconfig.json | 4 +- types/leaflet-geocoder-mapzen/tsconfig.json | 4 +- types/leaflet-label/tsconfig.json | 4 +- types/leaflet.awesome-markers/tsconfig.json | 4 +- types/leaflet.awesome-markers/v0/tslint.json | 68 +- types/leaflet.fullscreen/tsconfig.json | 4 +- .../leaflet.gridlayer.googlemutant/index.d.ts | 22 +- .../leaflet.gridlayer.googlemutant-tests.ts | 28 +- types/leaflet.polylinemeasure/tsconfig.json | 4 +- types/leaflet/index.d.ts | 3 + types/leaflet/leaflet-tests.ts | 10 + types/leaflet/tsconfig.json | 4 +- types/leaflet/tslint.json | 6 +- types/leaflet/v0/tsconfig.json | 4 +- types/leaflet/v0/tslint.json | 48 +- types/leapmotionts/tsconfig.json | 4 +- types/leapmotionts/tslint.json | 58 +- types/lerna-alias/index.d.ts | 54 + types/lerna-alias/lerna-alias-tests.ts | 16 + types/lerna-alias/tsconfig.json | 23 + types/lerna-alias/tslint.json | 1 + types/less-middleware/tslint.json | 66 +- types/less/tslint.json | 66 +- types/lestate/tsconfig.json | 4 +- types/lestate/tslint.json | 3 +- types/level-codec/tslint.json | 18 +- types/level-sublevel/tsconfig.json | 2 +- types/level-sublevel/tslint.json | 65 +- types/leveldown/tslint.json | 18 +- types/levelup/tslint.json | 18 +- types/levelup/v1/tsconfig.json | 2 +- types/levelup/v1/tslint.json | 62 +- types/levenshtein/tslint.json | 73 +- types/libpq/tslint.json | 3 +- types/librato-node/index.d.ts | 1 + types/librato-node/librato-node-tests.ts | 1 + types/libxmljs/index.d.ts | 3 +- types/libxmljs/libxmljs-tests.ts | 26 + types/libxslt/tsconfig.json | 4 +- types/light-sdk/tslint.json | 18 +- types/lightpick/tslint.json | 7 +- types/lime-js/tsconfig.json | 4 +- types/lime-js/tslint.json | 64 +- types/line-by-line/index.d.ts | 12 +- types/line-by-line/tsconfig.json | 4 +- types/line-reader/tslint.json | 65 +- types/lingui__react/withI18n.d.ts | 1 + types/linkify-it/tslint.json | 10 +- types/list.js/index.d.ts | 1 + types/list.js/list.js-tests.ts | 1 + types/lls/tsconfig.json | 4 +- types/lls/tslint.json | 61 +- types/loadable__server/index.d.ts | 21 +- .../loadable__server-tests.tsx | 35 +- types/loadable__webpack-plugin/tslint.json | 18 +- types/loader-runner/tslint.json | 69 +- types/lobibox/tsconfig.json | 4 +- types/lobibox/tslint.json | 55 +- types/locale/index.d.ts | 106 + types/locale/locale-tests.ts | 76 + types/locale/tsconfig.json | 23 + types/locale/tslint.json | 1 + types/localtunnel/index.d.ts | 44 +- types/localtunnel/localtunnel-tests.ts | 52 +- types/lockfile/v0/tsconfig.json | 4 +- types/lockr/tsconfig.json | 4 +- types/lockr/tslint.json | 66 +- types/locks/index.d.ts | 11 +- types/locks/locks-tests.ts | 5 + types/locutus/tsconfig.json | 4 +- types/locutus/tslint.json | 67 +- types/lodash/scripts/generate-all.sh | 2 +- types/lodash/scripts/generate-modules.ts | 2 +- types/lodash/scripts/tsconfig.json | 1 - types/lodash/ts3.1/scripts/tsconfig.json | 3 +- types/lodash/ts3.1/tslint.json | 7 +- types/lodash/tslint.json | 7 +- types/lodash/v3/tslint.json | 41 +- types/logat/tsconfig.json | 4 +- types/logg/tsconfig.json | 4 +- types/logg/tslint.json | 62 +- types/loggly/tsconfig.json | 4 +- types/loggly/tslint.json | 69 +- types/logrotate-stream/tsconfig.json | 4 +- types/logrotate-stream/tslint.json | 69 +- types/lokijs/index.d.ts | 2 +- types/lokijs/tslint.json | 50 +- types/lolex/tsconfig.json | 4 +- types/lolex/tslint.json | 70 +- types/long/index.d.ts | 754 +- types/long/long-tests.ts | 20 + types/long/tsconfig.json | 4 +- types/long/tslint.json | 64 +- types/loopback-boot/tslint.json | 2 +- types/loopback/tslint.json | 3 +- types/lory.js/tslint.json | 67 +- types/lovefield/tslint.json | 22 +- types/lowdb/tslint.json | 8 +- types/lowlight/tslint.json | 68 +- types/lru-cache/v4/tslint.json | 2 +- types/lscache/tsconfig.json | 4 +- types/lscache/tslint.json | 63 +- types/ltx/tslint.json | 18 +- types/luaparse/tsconfig.json | 4 +- types/lunr/v0/tsconfig.json | 4 +- types/lunr/v0/tslint.json | 12 +- types/lwip/tsconfig.json | 4 +- types/lwip/tslint.json | 62 +- types/lyricist/lyricist-tests.ts | 2 +- types/lz-string/tsconfig.json | 4 +- types/macaca-circular-json/tsconfig.json | 2 +- types/magic-number/tsconfig.json | 4 +- types/magic-number/tslint.json | 82 +- types/magicsuggest/tsconfig.json | 4 +- types/magicsuggest/tslint.json | 65 +- types/mailcheck/tsconfig.json | 6 +- types/mailcheck/tslint.json | 61 +- types/maildev/tsconfig.json | 4 +- types/maildev/tslint.json | 67 +- types/mailgen/index.d.ts | 2 +- types/mailgun-js/index.d.ts | 1 + types/mailgun-js/tsconfig.json | 2 +- types/mailparser/tsconfig.json | 4 +- types/mailparser/tslint.json | 67 +- types/main-bower-files/tsconfig.json | 4 +- types/main-bower-files/tslint.json | 69 +- types/mainloop.js/tsconfig.json | 4 +- types/mainloop.js/tslint.json | 71 +- types/maker.js/tslint.json | 54 +- types/mandrill-api/tsconfig.json | 4 +- types/mandrill-api/tslint.json | 61 +- types/mangopay2-nodejs-sdk/index.d.ts | 2 +- types/mangopay2-nodejs-sdk/tslint.json | 5 +- types/mapbox-gl/index.d.ts | 19 +- types/mapbox-gl/mapbox-gl-tests.ts | 23 +- types/mapbox-gl/tslint.json | 49 +- types/mapsjs/tsconfig.json | 4 +- types/mapsjs/tslint.json | 61 +- types/mariasql/tsconfig.json | 4 +- types/mariasql/tslint.json | 58 +- types/markdown-it/tsconfig.json | 4 +- types/markdown-it/tslint.json | 63 +- types/markdown-magic/index.d.ts | 58 + types/markdown-magic/markdown-magic-tests.ts | 60 + types/markdown-magic/tsconfig.json | 23 + types/markdown-magic/tslint.json | 1 + types/markdown-table/index.d.ts | 187 + types/markdown-table/markdown-table-tests.ts | 20 + types/markdown-table/tsconfig.json | 24 + types/markdown-table/tslint.json | 1 + types/markdown-to-jsx/index.d.ts | 22 +- .../markdown-to-jsx/markdown-to-jsx-tests.tsx | 110 +- types/marked/index.d.ts | 27 +- types/marked/marked-tests.ts | 15 +- types/marked/tsconfig.json | 4 +- types/marked/tslint.json | 2 +- types/marker-animate-unobtrusive/index.d.ts | 1 + types/marker-animate-unobtrusive/tslint.json | 68 +- types/markitup/tslint.json | 73 +- types/maskedinput/tsconfig.json | 4 +- types/maskedinput/tslint.json | 73 +- types/masonry-layout/tsconfig.json | 4 +- types/massive/tslint.json | 3 +- types/massive/v4/tslint.json | 3 +- types/match-media-mock/tsconfig.json | 4 +- types/match-media-mock/tslint.json | 70 +- types/material-design-lite/tslint.json | 65 +- types/material-ui-pagination/tslint.json | 16 +- types/material-ui/tslint.json | 4 +- types/materialize-css/v0/tsconfig.json | 4 +- types/materialize-css/v0/tslint.json | 12 +- types/math-random/index.d.ts | 11 + types/math-random/math-random-tests.ts | 4 + types/math-random/tsconfig.json | 23 + types/math-random/tslint.json | 1 + types/math3d/tsconfig.json | 4 +- types/mathjax/tslint.json | 66 +- types/mathjs/index.d.ts | 183 +- types/mathjs/mathjs-tests.ts | 1 + types/mathjs/tslint.json | 2 +- types/matrix-appservice-bridge/index.d.ts | 423 + .../matrix-appservice-bridge-tests.ts | 32 + types/matrix-appservice-bridge/tsconfig.json | 24 + types/matrix-appservice-bridge/tslint.json | 3 + types/matrix-js-sdk/index.d.ts | 761 + types/matrix-js-sdk/matrix-js-sdk-tests.ts | 18 + types/matrix-js-sdk/tsconfig.json | 24 + types/matrix-js-sdk/tslint.json | 3 + types/matter-js/index.d.ts | 76 +- types/matter-js/matter-js-tests.ts | 13 +- types/matter-js/tsconfig.json | 4 +- types/matter-js/tslint.json | 49 +- types/mcustomscrollbar/tsconfig.json | 4 +- types/mcustomscrollbar/tslint.json | 67 +- types/md5/tsconfig.json | 4 +- types/md5/tslint.json | 72 +- types/mdns/tsconfig.json | 4 +- types/mdns/tslint.json | 54 +- types/mdx-js__react/index.d.ts | 5 +- types/medium-editor/tsconfig.json | 4 +- types/medium-editor/tslint.json | 72 +- types/megajs/tslint.json | 18 +- types/memdown/tslint.json | 18 +- types/memoizee/tslint.json | 11 +- types/memory-cache/index.d.ts | 2 +- types/memory-fs/tslint.json | 67 +- types/memwatch-next/tsconfig.json | 4 +- types/memwatch-next/tslint.json | 63 +- types/merge-descriptors/tslint.json | 2 +- types/merge-objects/index.d.ts | 8 + types/merge-objects/merge-objects-tests.ts | 3 + types/merge-objects/tsconfig.json | 23 + types/merge-objects/tslint.json | 1 + types/merge2/tsconfig.json | 4 +- types/mermaid/tslint.json | 18 +- types/meshblu/tsconfig.json | 4 +- types/meshblu/tslint.json | 59 +- types/mess/tsconfig.json | 4 +- types/mess/tslint.json | 72 +- types/messenger/tsconfig.json | 4 +- types/messenger/tslint.json | 73 +- types/metalsmith/tslint.json | 4 +- types/meteor-accounts-phone/tsconfig.json | 4 +- types/meteor-accounts-phone/tslint.json | 71 +- types/meteor-astronomy/index.d.ts | 2 +- types/meteor-astronomy/tsconfig.json | 2 +- types/meteor-collection-hooks/tslint.json | 3 +- types/meteor-jboulhous-dev/index.d.ts | 2 +- types/meteor-jboulhous-dev/tsconfig.json | 4 +- types/meteor-jboulhous-dev/tslint.json | 72 +- types/meteor-persistent-session/index.d.ts | 2 +- types/meteor-persistent-session/tsconfig.json | 4 +- types/meteor-persistent-session/tslint.json | 70 +- .../meteor-prime8consulting-oauth2/index.d.ts | 2 +- .../tsconfig.json | 4 +- .../tslint.json | 71 +- types/meteor-publish-composite/index.d.ts | 2 +- types/meteor-publish-composite/tsconfig.json | 4 +- types/meteor-publish-composite/tslint.json | 65 +- types/meteor-roles/index.d.ts | 2 +- types/meteor-roles/tslint.json | 60 +- types/meteor-universe-i18n/index.d.ts | 44 +- .../meteor-universe-i18n-tests.ts | 12 +- types/meteor/check.d.ts | 47 +- types/meteor/globals/check.d.ts | 47 +- types/meteor/globals/mongo.d.ts | 2 +- types/meteor/index.d.ts | 3 +- types/meteor/mongo.d.ts | 2 +- types/meteor/test/globals/meteor-tests.ts | 30 +- types/meteor/test/meteor-tests.ts | 33 +- types/meteor/tslint.json | 39 +- types/method-override/tsconfig.json | 4 +- types/method-override/tslint.json | 69 +- types/metric-suffix/tslint.json | 72 +- types/meyda/index.d.ts | 108 + types/meyda/meyda-tests.ts | 20 + types/meyda/tsconfig.json | 24 + types/meyda/tslint.json | 1 + types/mfiles/tslint.json | 14 +- types/micro/tslint.json | 16 +- types/micromatch/index.d.ts | 58 +- types/micromatch/micromatch-tests.ts | 9 + types/micromatch/v2/tsconfig.json | 4 +- types/micromatch/v2/tslint.json | 68 +- types/microsoft-ajax/tslint.json | 48 +- types/microsoft-live-connect/tslint.json | 54 +- types/microsoft-sdk-soap/tsconfig.json | 4 +- types/microsoft-sdk-soap/tslint.json | 53 +- types/microsoftteams/tslint.json | 2 +- types/migrate-mongo/index.d.ts | 101 + types/migrate-mongo/migrate-mongo-tests.ts | 34 + types/migrate-mongo/tsconfig.json | 23 + types/migrate-mongo/tslint.json | 1 + types/milkcocoa/tslint.json | 71 +- types/milliseconds/tsconfig.json | 4 +- types/milliseconds/tslint.json | 70 +- types/mimos/tslint.json | 87 +- types/minapp-env/tsconfig.json | 2 +- types/mini-css-extract-plugin/index.d.ts | 10 +- .../mini-css-extract-plugin-tests.ts | 24 +- types/mini-html-webpack-plugin/index.d.ts | 66 + .../mini-html-webpack-plugin-tests.ts | 105 + types/mini-html-webpack-plugin/tsconfig.json | 23 + types/mini-html-webpack-plugin/tslint.json | 1 + types/minilog/tsconfig.json | 4 +- types/minilog/tslint.json | 61 +- types/minimatch/tsconfig.json | 4 +- types/minimatch/tslint.json | 5 +- types/minimist/tslint.json | 65 +- types/mithril-global/tslint.json | 24 +- types/mithril/tslint.json | 6 +- types/mitm/tsconfig.json | 4 +- types/mitm/tslint.json | 71 +- types/mixpanel-browser/index.d.ts | 10 +- .../mixpanel-browser-tests.ts | 1 + types/mixpanel/tsconfig.json | 4 +- types/mixto/tsconfig.json | 4 +- types/mixto/tslint.json | 65 +- types/mjml-react/extensions/index.d.ts | 6 + types/mjml-react/index.d.ts | 19 +- types/mjml-react/mjml-react-tests.tsx | 16 + types/mjml-react/utils/index.d.ts | 8 + types/mjml/index.d.ts | 10 +- types/mjml/mjml-tests.ts | 5 +- types/mkdirp-promise/index.d.ts | 13 - types/mkdirp-promise/mkdirp-promise-tests.ts | 6 - types/mkdirp/index.d.ts | 70 +- types/mkdirp/mkdirp-tests.ts | 16 +- types/mkpath/tsconfig.json | 4 +- types/mkpath/tslint.json | 71 +- types/mmmagic/tsconfig.json | 4 +- types/mmmagic/tslint.json | 67 +- types/mocha-each/index.d.ts | 53 +- types/mocha-each/mocha-each-tests.ts | 42 +- types/mocha-phantomjs/tsconfig.json | 4 +- types/mocha-phantomjs/tslint.json | 64 +- types/mocha-sugar-free/index.d.ts | 486 + .../mocha-sugar-free-tests.ts | 35 + types/mocha-sugar-free/tsconfig.json | 19 + types/mocha-sugar-free/tslint.json | 1 + types/mocha/index.d.ts | 62 +- types/mocha/mocha-tests.ts | 123 + types/mocha/tslint.json | 9 +- types/mockery/tsconfig.json | 4 +- types/mockery/tslint.json | 69 +- types/mockjs/tsconfig.json | 4 +- types/mockjs/tslint.json | 12 +- types/modernizr/tslint.json | 7 +- types/modesl/tslint.json | 11 +- types/modular-scale/tslint.json | 18 +- types/moment-business-time/index.d.ts | 2 +- types/moment-business-time/tslint.json | 7 +- types/moment-business/tsconfig.json | 4 +- types/moment-business/tslint.json | 1 + types/moment-duration-format/tslint.json | 7 +- types/moment-hijri/tslint.json | 7 +- types/moment-holiday/tslint.json | 7 +- types/moment-jalaali/tsconfig.json | 4 +- types/moment-jalaali/tslint.json | 75 +- types/moment-precise-range-plugin/tslint.json | 1 + types/moment-round/tslint.json | 7 +- types/moment-shortformat/tslint.json | 7 +- types/moment-strftime2/tslint.json | 7 +- types/moment-timezone/tslint.json | 4 +- types/mongodb/index.d.ts | 92 +- types/mongodb/test/collection/updateX.ts | 7 + types/mongodb/test/index.ts | 16 +- types/mongodb/tslint.json | 38 +- types/mongodb/v1/tslint.json | 59 +- types/mongodb/v2/tslint.json | 51 +- types/mongoose-auto-increment/tsconfig.json | 4 +- types/mongoose-auto-increment/tslint.json | 70 +- types/mongoose-autopopulate/index.d.ts | 11 + .../mongoose-autopopulate-tests.ts | 8 + types/mongoose-autopopulate/tsconfig.json | 23 + types/mongoose-autopopulate/tslint.json | 17 + types/mongoose-deep-populate/tsconfig.json | 4 +- types/mongoose-deep-populate/tslint.json | 70 +- types/mongoose-lean-virtuals/index.d.ts | 14 + .../mongoose-lean-virtuals-tests.ts | 8 + types/mongoose-lean-virtuals/tsconfig.json | 23 + types/mongoose-lean-virtuals/tslint.json | 3 + types/mongoose-mock/tsconfig.json | 4 +- types/mongoose-mock/tslint.json | 74 +- types/mongoose-paginate-v2/tsconfig.json | 2 +- types/mongoose-paginate/tsconfig.json | 4 +- types/mongoose-paginate/tslint.json | 60 +- types/mongoose-promise/tslint.json | 66 +- types/mongoose-seeder/tsconfig.json | 4 +- types/mongoose-seeder/tslint.json | 73 +- types/mongoose-sequence/index.d.ts | 2 +- types/mongoose-sequence/tsconfig.json | 4 +- types/mongoose-sequence/tslint.json | 67 +- types/mongoose-simple-random/tslint.json | 1 - types/mongoose/index.d.ts | 261 +- types/mongoose/mongoose-tests.ts | 213 +- types/mongoose/tslint.json | 35 +- types/mongoose/v3/tslint.json | 47 +- types/mongoose/v4/index.d.ts | 5 + types/mongoose/v4/mongoose-tests.ts | 2 +- types/mongoose/v4/tslint.json | 42 +- types/moo/index.d.ts | 2 +- types/moo/moo-tests.ts | 2 + types/moonjs/tslint.json | 2 +- types/morgan/index.d.ts | 11 +- types/morgan/morgan-tests.ts | 101 +- types/morgan/tslint.json | 2 +- types/morris.js/tsconfig.json | 4 +- types/morris.js/tslint.json | 69 +- types/motor-hat/tslint.json | 18 +- types/mousetrap/tslint.json | 66 +- types/moviedb/tsconfig.json | 4 +- types/moviedb/tslint.json | 71 +- .../mozilla-readability-tests.ts | 7 +- types/mozilla-readability/tsconfig.json | 7 +- types/mpromise/tslint.json | 62 +- types/mri/tsconfig.json | 4 +- types/ms/tsconfig.json | 4 +- types/ms/tslint.json | 69 +- types/msgpack-lite/tslint.json | 2 +- types/msgpack/tsconfig.json | 4 +- types/msgpack/tslint.json | 74 +- types/msgpack5/tslint.json | 73 +- types/msnodesql/tslint.json | 59 +- types/mssql/tslint.json | 56 +- types/mu2/tsconfig.json | 4 +- types/mu2/tslint.json | 67 +- types/muicss/tslint.json | 2 +- types/multer/index.d.ts | 361 +- types/multer/multer-tests.ts | 10 +- types/multer/tsconfig.json | 2 +- types/multer/tslint.json | 9 +- types/multicodec/constants.d.ts | 428 + types/multicodec/index.d.ts | 58 + types/multicodec/multicodec-tests.ts | 56 + types/multicodec/tsconfig.json | 24 + types/multicodec/tslint.json | 1 + types/multiparty/tsconfig.json | 4 +- types/multiparty/tslint.json | 67 +- types/multiplexjs/tslint.json | 49 +- types/murmurhash-js/tsconfig.json | 4 +- types/murmurhash-js/tslint.json | 72 +- types/murmurhash3js/tsconfig.json | 4 +- types/murmurhash3js/tslint.json | 69 +- types/musicmetadata/tsconfig.json | 4 +- types/musicmetadata/tslint.json | 69 +- types/mustache/index.d.ts | 214 +- types/mustache/mustache-tests.ts | 17 +- types/mustache/tslint.json | 59 +- types/mysql-import/tslint.json | 18 +- types/mysql/index.d.ts | 9 +- types/mysql/tslint.json | 2 +- types/n3/index.d.ts | 12 +- types/n3/n3-tests.ts | 16 + types/n3/tslint.json | 10 +- types/nanoajax/tsconfig.json | 4 +- types/nanoajax/tslint.json | 69 +- types/nanotimer/index.d.ts | 65 + types/nanotimer/nanotimer-tests.ts | 10 + types/nanotimer/tsconfig.json | 19 + types/nanotimer/tslint.json | 1 + types/nanp/tsconfig.json | 4 +- types/nanp/tslint.json | 69 +- types/natural-sort/tsconfig.json | 4 +- types/natural-sort/tslint.json | 73 +- types/natural/tslint.json | 61 +- types/naver-whale/tsconfig.json | 2 +- types/naver-whale/tslint.json | 71 +- types/ncom/index.d.ts | 134 + types/ncom/ncom-tests.ts | 13 + types/ncom/tsconfig.json | 23 + types/ncom/tslint.json | 3 + types/nconf/tslint.json | 65 +- types/nedb/tsconfig.json | 4 +- types/nedb/tslint.json | 2 +- types/needle/tslint.json | 3 +- types/needle/v0/tslint.json | 65 +- types/needle/v1/tslint.json | 63 +- types/neo4j/tslint.json | 69 +- types/nes/tslint.json | 57 +- types/nestdb/tsconfig.json | 6 +- types/nestdb/tslint.json | 2 +- types/net-keepalive/tslint.json | 8 +- types/netmask/tsconfig.json | 4 +- types/netmask/tslint.json | 68 +- types/newman/index.d.ts | 25 +- types/newman/newman-tests.ts | 10 +- types/newrelic/index.d.ts | 80 +- types/newrelic/newrelic-tests.ts | 10 + types/nexpect/tsconfig.json | 4 +- types/nexpect/tslint.json | 68 +- types/nextgen-events/tsconfig.json | 2 +- types/ng-command/tsconfig.json | 4 +- types/ng-command/tslint.json | 68 +- types/ng-cordova/tsconfig.json | 4 +- types/ng-cordova/tslint.json | 51 +- types/ng-dialog/tsconfig.json | 4 +- types/ng-dialog/tslint.json | 72 +- types/ng-facebook/index.d.ts | 27 +- types/ng-facebook/ng-facebook-tests.ts | 2 +- types/ng-facebook/tslint.json | 64 +- types/ng-file-upload/tsconfig.json | 4 +- types/ng-file-upload/tslint.json | 64 +- types/ng-flow/tslint.json | 70 +- types/ng-grid/tsconfig.json | 4 +- types/ng-grid/tslint.json | 60 +- types/ng-i18next/tslint.json | 71 +- types/ng-notify/tsconfig.json | 4 +- types/ng-notify/tslint.json | 64 +- types/ng-stomp/tsconfig.json | 4 +- types/ng-stomp/tslint.json | 10 +- types/ngbootbox/tsconfig.json | 4 +- types/ngbootbox/tslint.json | 68 +- types/ngeohash/tsconfig.json | 4 +- types/ngeohash/tslint.json | 70 +- types/ngkookies/tsconfig.json | 4 +- types/ngkookies/tslint.json | 59 +- types/ngmap/index.d.ts | 2 +- types/ngmap/tsconfig.json | 4 +- types/ngmap/tslint.json | 64 +- types/ngprogress-lite/tsconfig.json | 4 +- types/ngprogress-lite/tslint.json | 69 +- types/ngprogress/tsconfig.json | 4 +- types/ngprogress/tslint.json | 69 +- types/ngreact/tsconfig.json | 6 +- types/ngreact/tslint.json | 70 +- types/ngstorage/tslint.json | 2 +- types/ngtoaster/tslint.json | 2 +- types/ngwysiwyg/tsconfig.json | 4 +- types/nice-try/index.d.ts | 9 + types/nice-try/nice-try-tests.ts | 6 + types/nice-try/tsconfig.json | 23 + types/nice-try/tslint.json | 1 + types/nightmare/tslint.json | 51 +- types/nise/tslint.json | 2 +- types/noble-mac/tslint.json | 12 +- types/noble/tsconfig.json | 4 +- types/noble/tslint.json | 63 +- types/nodal/tslint.json | 61 +- types/node-7z/tsconfig.json | 4 +- types/node-7z/tslint.json | 67 +- types/node-array-ext/tsconfig.json | 4 +- types/node-array-ext/tslint.json | 61 +- types/node-calendar/tsconfig.json | 4 +- types/node-calendar/tslint.json | 70 +- types/node-config-manager/tsconfig.json | 4 +- types/node-config-manager/tslint.json | 71 +- types/node-cron/index.d.ts | 2 + types/node-cron/node-cron-tests.ts | 16 +- types/node-dir/tsconfig.json | 4 +- types/node-dir/tslint.json | 66 +- types/node-dogstatsd/tsconfig.json | 4 +- types/node-dogstatsd/tslint.json | 68 +- types/node-fetch/index.d.ts | 5 +- types/node-fetch/package.json | 6 + types/node-fibers/tsconfig.json | 4 +- types/node-fibers/tslint.json | 59 +- types/node-forge/index.d.ts | 36 + types/node-forge/node-forge-tests.ts | 21 + types/node-forge/tslint.json | 53 +- types/node-gcm/tsconfig.json | 4 +- types/node-gcm/tslint.json | 62 +- types/node-getopt/tsconfig.json | 4 +- types/node-getopt/tslint.json | 68 +- types/node-hid/index.d.ts | 6 +- types/node-hid/node-hid-tests.ts | 16 +- types/node-hue-api/tsconfig.json | 4 +- types/node-hue-api/tslint.json | 62 +- types/node-int64/tsconfig.json | 4 +- types/node-int64/tslint.json | 66 +- types/node-jose/index.d.ts | 6 +- types/node-jsfl-runner/tsconfig.json | 4 +- types/node-jsfl-runner/tslint.json | 69 +- types/node-mailjet/index.d.ts | 38 +- types/node-mailjet/node-mailjet-tests.ts | 342 +- types/node-mysql-wrapper/tsconfig.json | 4 +- types/node-mysql-wrapper/tslint.json | 46 +- types/node-notifier/index.d.ts | 4 +- types/node-notifier/node-notifier-tests.ts | 4 + types/node-notifier/tsconfig.json | 4 +- types/node-notifier/tslint.json | 64 +- types/node-os-utils/index.d.ts | 2 +- types/node-os-utils/lib/exec.d.ts | 2 + types/node-os-utils/lib/index.d.ts | 4 +- types/node-phpass/index.d.ts | 13 + types/node-phpass/node-phpass-tests.ts | 11 + types/node-phpass/tsconfig.json | 23 + types/node-phpass/tslint.json | 1 + types/node-polyglot/tslint.json | 72 +- types/node-powershell/index.d.ts | 15 + types/node-powershell/tslint.json | 66 +- types/node-ral/tslint.json | 7 +- types/node-red/tsconfig.json | 4 +- types/node-redmine/tslint.json | 18 +- types/node-rsa/tslint.json | 2 +- types/node-sass-middleware/tsconfig.json | 4 +- types/node-sass-middleware/tslint.json | 71 +- types/node-sass/tslint.json | 5 +- types/node-slack/tsconfig.json | 4 +- types/node-slack/tslint.json | 66 +- types/node-snap7/tsconfig.json | 4 +- types/node-snap7/tslint.json | 62 +- types/node-ssh/index.d.ts | 87 + types/node-ssh/node-ssh-tests.ts | 32 + types/node-ssh/tsconfig.json | 23 + types/node-ssh/tslint.json | 1 + types/node-telegram-bot-api/index.d.ts | 2 +- types/node-uuid/tslint.json | 79 +- types/node-validator/tsconfig.json | 4 +- types/node-validator/tslint.json | 67 +- types/node-vault/index.d.ts | 2 +- types/node-wit/tslint.json | 11 +- types/node-xlsx/index.d.ts | 5 +- types/node-xlsx/node-xlsx-tests.ts | 7 +- types/node/assert.d.ts | 3 + types/node/async_hooks.d.ts | 14 + types/node/child_process.d.ts | 2 +- types/node/crypto.d.ts | 10 +- types/node/events.d.ts | 52 +- types/node/fs.d.ts | 24 +- types/node/globals.d.ts | 29 +- types/node/http.d.ts | 35 +- types/node/http2.d.ts | 1 + types/node/https.d.ts | 18 +- types/node/index.d.ts | 14 +- types/node/module.d.ts | 44 +- types/node/node-tests.ts | 30 +- types/node/package.json | 5 + types/node/perf_hooks.d.ts | 37 +- types/node/readline.d.ts | 14 + types/node/repl.d.ts | 5 + types/node/stream.d.ts | 12 +- types/node/test/assert.ts | 15 +- types/node/test/async_hooks.ts | 1 + types/node/test/events.ts | 6 + types/node/test/fs.ts | 10 +- types/node/test/global.ts | 13 +- types/node/test/http.ts | 1 + types/node/test/http2.ts | 1 + types/node/test/module.ts | 14 + types/node/test/perf_hooks.ts | 25 +- types/node/test/process.ts | 12 +- types/node/test/readline.ts | 11 + types/node/test/repl.ts | 4 +- types/node/test/stream.ts | 6 +- types/node/test/tls.ts | 17 +- types/node/test/tty.ts | 8 +- types/node/test/util.ts | 4 + types/node/test/worker_threads.ts | 5 + types/node/tls.d.ts | 57 + types/node/ts3.5/index.d.ts | 14 + types/node/ts3.5/node-tests.ts | 46 + types/node/ts3.5/tsconfig.json | 25 + types/node/ts3.5/tslint.json | 6 + types/node/ts3.5/wasi.d.ts | 45 + types/node/tsconfig.json | 2 +- types/node/tslint.json | 19 +- types/node/tty.d.ts | 2 +- types/node/util.d.ts | 28 +- types/node/v0/tslint.json | 79 +- types/node/v10/globals.d.ts | 6 + types/node/v10/index.d.ts | 1 + types/node/v10/node-tests.ts | 2 +- types/node/v10/readline.d.ts | 1 + types/node/v10/ts3.2/tslint.json | 14 +- types/node/v10/tslint.json | 18 +- types/node/v10/tty.d.ts | 2 +- types/node/v10/vm.d.ts | 2 +- types/node/v11/globals.d.ts | 6 + types/node/v11/index.d.ts | 1 + types/node/v11/readline.d.ts | 1 + types/node/v11/ts3.2/tslint.json | 14 +- types/node/v11/tslint.json | 18 +- types/node/v11/vm.d.ts | 2 +- types/node/v12/fs.d.ts | 1 + types/node/v12/globals.d.ts | 6 + types/node/v12/index.d.ts | 1 + types/node/v12/readline.d.ts | 1 + types/node/v12/test/tty.ts | 2 +- types/node/v12/ts3.2/tslint.json | 14 +- types/node/v12/tslint.json | 17 +- types/node/v12/tty.d.ts | 2 +- types/node/v12/vm.d.ts | 2 +- types/node/v4/tslint.json | 79 +- types/node/v6/ts3.2/tslint.json | 14 +- types/node/v6/tslint.json | 84 +- types/node/v7/ts3.2/tslint.json | 14 +- types/node/v7/tslint.json | 83 +- types/node/v8/ts3.2/tslint.json | 15 +- types/node/v8/tslint.json | 43 +- types/node/v9/ts3.2/tslint.json | 15 +- types/node/v9/tslint.json | 43 +- types/node/vm.d.ts | 2 +- types/node/worker_threads.d.ts | 17 + types/node_redis/tsconfig.json | 4 +- types/node_redis/tslint.json | 74 +- types/nodegit/repository.d.ts | 2 +- types/nodegit/tsconfig.json | 4 +- types/nodegit/tslint.json | 3 +- types/nodemailer-direct-transport/tslint.json | 69 +- types/nodemailer-pickup-transport/tslint.json | 71 +- types/nodemailer-smtp-pool/tslint.json | 69 +- types/nodemailer-smtp-transport/tslint.json | 70 +- types/nodemailer-stub-transport/tslint.json | 72 +- types/nodemailer/nodemailer-tests.ts | 4 +- types/nodemailer/tslint.json | 5 +- types/nodemailer/v3/tslint.json | 66 +- types/nodeunit/tslint.json | 59 +- types/noisejs/tsconfig.json | 4 +- types/noisejs/tslint.json | 72 +- types/nomnom/tslint.json | 65 +- types/nopt/tsconfig.json | 4 +- types/nopt/tslint.json | 68 +- types/nosleep.js/index.d.ts | 26 + types/nosleep.js/nosleep.js-tests.ts | 6 + types/nosleep.js/tsconfig.json | 23 + types/nosleep.js/tslint.json | 1 + types/notie/tsconfig.json | 4 +- types/notie/tslint.json | 73 +- types/notify/tslint.json | 70 +- types/notifyjs-browser/tsconfig.json | 4 +- types/notifyjs-browser/tslint.json | 72 +- types/notifyjs/index.d.ts | 8 +- types/notifyjs/notifyjs-tests.ts | 1 + types/notifyjs/tsconfig.json | 4 +- types/notifyjs/tslint.json | 68 +- types/nouislider/nouislider-tests.ts | 1 + types/nouislider/tslint.json | 56 +- types/nouislider/v7/nouislider-tests.ts | 2 + types/nouislider/v7/tsconfig.json | 4 +- types/nouislider/v7/tslint.json | 59 +- types/nouislider/v8/nouislider-tests.ts | 1 + types/nouislider/v8/tslint.json | 58 +- types/novnc-core/tslint.json | 2 +- types/npm/tsconfig.json | 4 +- types/npm/tslint.json | 64 +- types/ntlm-client/index.d.ts | 29 + types/ntlm-client/ntlm-client-tests.ts | 28 + types/ntlm-client/tsconfig.json | 24 + types/ntlm-client/tslint.json | 3 + types/numeral/tsconfig.json | 4 +- types/numeral/tslint.json | 63 +- types/numeric/tsconfig.json | 2 +- types/numjs/tslint.json | 2 +- types/nunjucks-date/tsconfig.json | 4 +- types/nunjucks-date/tslint.json | 81 +- types/nunjucks/tslint.json | 5 +- types/nuxtjs__auth/tslint.json | 18 +- types/nvd3/index.d.ts | 6 +- types/nvd3/test/sparkLine.ts | 1 + types/nvd3/tslint.json | 50 +- types/nw.gui/tslint.json | 61 +- types/nw.js/tslint.json | 56 +- types/nyaapi/index.d.ts | 284 + types/nyaapi/nyaapi-tests.ts | 13 + types/nyaapi/tsconfig.json | 23 + types/nyaapi/tslint.json | 1 + types/oauth.js/tsconfig.json | 4 +- types/oauth.js/tslint.json | 68 +- types/oauth2-server/tsconfig.json | 4 +- types/oauth2-server/tslint.json | 3 +- types/oauth2orize/tslint.json | 15 +- types/obelisk.js/tslint.json | 67 +- types/object-assign/tsconfig.json | 4 +- types/object-assign/tslint.json | 72 +- types/object-diff/tslint.json | 73 +- types/object-fit-images/index.d.ts | 13 + .../object-fit-images-tests.ts | 6 + types/object-fit-images/tsconfig.json | 24 + types/object-fit-images/tslint.json | 1 + types/object-hash/index.d.ts | 11 +- types/object-hash/object-hash-tests.ts | 2 + types/object-hash/tsconfig.json | 4 +- types/object-hash/tslint.json | 70 +- types/object-inspect/index.d.ts | 1 + types/object-keys/index.d.ts | 1 + types/object-mapper/index.d.ts | 7 + types/object-mapper/object-mapper-tests.ts | 45 + types/object-mapper/tsconfig.json | 23 + types/object-mapper/tslint.json | 1 + types/object-refs/tsconfig.json | 4 +- types/object-refs/tslint.json | 69 +- .../implementation.d.ts | 13 + .../index.d.ts | 25 +- .../object.getownpropertydescriptors-tests.ts | 53 +- .../polyfill.d.ts | 4 + .../shim.d.ts | 4 + .../tsconfig.json | 38 +- types/oblo-util/tsconfig.json | 4 +- types/oblo-util/tslint.json | 69 +- types/oboe/tsconfig.json | 4 +- types/oboe/tslint.json | 61 +- types/observe-js/tsconfig.json | 4 +- types/observe-js/tslint.json | 59 +- types/obsolete-web/index.d.ts | 44 + .../test/obsolete-web-commonjs.tests.ts | 16 + .../test/obsolete-web-global.tests.ts | 13 + types/obsolete-web/tsconfig.json | 24 + types/obsolete-web/tslint.json | 1 + types/oclazyload/tsconfig.json | 4 +- types/oclazyload/tslint.json | 76 +- types/office-js-preview/index.d.ts | 7999 +- .../office-js-preview-tests.ts | 605 +- types/office-js-preview/tslint.json | 46 +- types/office-js/index.d.ts | 6403 +- types/office-js/tslint.json | 46 +- types/office-runtime/index.d.ts | 126 +- types/office-runtime/tsconfig.json | 2 +- types/offline-js/tsconfig.json | 4 +- types/offline-js/tslint.json | 71 +- types/oidc-token-manager/tsconfig.json | 4 +- types/oidc-token-manager/tslint.json | 66 +- types/ol/tslint.json | 2 - types/ol/v5/tslint.json | 2 - types/omit-empty/tslint.json | 18 +- types/onesignal-cordova-plugin/tslint.json | 2 +- types/ontime/tslint.json | 18 +- types/openfin/OTHER_FILES.txt | 8 +- .../_v2/api/application/application.d.ts | 17 +- .../api/application/applicationOption.d.ts | 1 + types/openfin/_v2/api/events/application.d.ts | 8 +- types/openfin/_v2/api/events/system.d.ts | 3 +- types/openfin/_v2/api/events/view.d.ts | 32 + types/openfin/_v2/api/events/webcontents.d.ts | 17 + types/openfin/_v2/api/events/window.d.ts | 12 +- .../api/external-window/external-window.d.ts | 6 +- types/openfin/_v2/api/fin.d.ts | 9 +- types/openfin/_v2/api/frame/frame.d.ts | 2 +- .../openfin/_v2/api/global-hotkey/index.d.ts | 4 + .../_v2/api/interappbus/channel/channel.d.ts | 12 +- .../_v2/api/interappbus/channel/client.d.ts | 3 +- .../_v2/api/interappbus/channel/provider.d.ts | 1 + .../_v2/api/notification/notification.d.ts | 2 +- types/openfin/_v2/api/platform/platform.d.ts | 192 + .../_v2/api/system/external-process.d.ts | 2 + .../openfin/_v2/api/system/runtime-info.d.ts | 3 + types/openfin/_v2/api/system/system.d.ts | 69 +- types/openfin/_v2/api/view/view.d.ts | 195 + .../_v2/api/webcontents/webcontents.d.ts | 5 + types/openfin/_v2/api/window/window.d.ts | 149 +- .../openfin/_v2/api/window/windowOption.d.ts | 4 +- .../openfin/_v2/environment/environment.d.ts | 2 + types/openfin/_v2/environment/node-env.d.ts | 2 + .../openfin/_v2/environment/openfin-env.d.ts | 2 + .../_v2/environment/openfin-renderer-api.d.ts | 2 + types/openfin/_v2/identity.d.ts | 1 + types/openfin/_v2/main.d.ts | 5 +- types/openfin/_v2/shapes.d.ts | 3 +- types/openfin/_v2/transport/transport.d.ts | 7 +- types/openfin/_v2/util/entity-type.d.ts | 13 + types/openfin/index.d.ts | 337 +- types/openfin/openfin-tests.ts | 67 + types/openfin/tslint.json | 15 +- types/openfin/v15/tslint.json | 3 +- types/openfin/v16/tslint.json | 3 +- types/openfin/v34/tslint.json | 16 +- types/openfin/v37/tslint.json | 16 +- types/openfin/v39/tslint.json | 16 +- types/openfin/v41/tslint.json | 16 +- types/openfin/v43/tslint.json | 16 +- types/openfin/v45/OTHER_FILES.txt | 75 + .../v45/_v2/api/application/application.d.ts | 439 + .../api/application/applicationOption.d.ts | 14 + types/openfin/v45/_v2/api/base.d.ts | 45 + .../_v2/api/browserview/browserview.d.ts | 0 .../v45/_v2/api/clipboard/clipboard.d.ts | 70 + .../v45/_v2/api/clipboard/write-request.d.ts | 12 + .../v45/_v2/api/events/application.d.ts | 60 + types/openfin/v45/_v2/api/events/base.d.ts | 18 + .../{ => v45}/_v2/api/events/browserview.d.ts | 0 types/openfin/v45/_v2/api/events/channel.d.ts | 10 + .../v45/_v2/api/events/emitterMap.d.ts | 16 + .../v45/_v2/api/events/eventAggregator.d.ts | 5 + .../_v2/api/events/externalApplication.d.ts | 5 + .../v45/_v2/api/events/externalWindow.d.ts | 7 + types/openfin/v45/_v2/api/events/frame.d.ts | 9 + .../v45/_v2/api/events/globalHotkey.d.ts | 11 + .../v45/_v2/api/events/notifications.d.ts | 8 + types/openfin/v45/_v2/api/events/system.d.ts | 26 + .../v45/_v2/api/events/webcontents.d.ts | 21 + types/openfin/v45/_v2/api/events/window.d.ts | 190 + .../external-application.d.ts | 131 + .../api/external-window/external-window.d.ts | 257 + types/openfin/v45/_v2/api/fin.d.ts | 31 + types/openfin/v45/_v2/api/frame/frame.d.ts | 164 + .../v45/_v2/api/global-hotkey/index.d.ts | 38 + .../_v2/api/interappbus/channel/channel.d.ts | 33 + .../_v2/api/interappbus/channel/client.d.ts | 11 + .../_v2/api/interappbus/channel/index.d.ts | 33 + .../_v2/api/interappbus/channel/provider.d.ts | 17 + .../v45/_v2/api/interappbus/interappbus.d.ts | 80 + .../_v2/api/notification/notification.d.ts | 81 + .../v45/_v2/api/system/application.d.ts | 5 + .../v45/_v2/api/system/clearCacheOption.d.ts | 6 + types/openfin/v45/_v2/api/system/cookie.d.ts | 8 + .../_v2/api/system/crashReporterOption.d.ts | 4 + .../v45/_v2/api/system/download-asset.d.ts | 18 + .../v45/_v2/api/system/download-preload.d.ts | 8 + types/openfin/v45/_v2/api/system/entity.d.ts | 11 + .../v45/_v2/api/system/external-process.d.ts | 39 + .../v45/_v2/api/system/host-specs.d.ts | 24 + types/openfin/v45/_v2/api/system/log.d.ts | 11 + types/openfin/v45/_v2/api/system/monitor.d.ts | 39 + types/openfin/v45/_v2/api/system/point.d.ts | 8 + types/openfin/v45/_v2/api/system/process.d.ts | 15 + types/openfin/v45/_v2/api/system/proxy.d.ts | 15 + .../v45/_v2/api/system/registry-info.d.ts | 7 + .../v45/_v2/api/system/runtime-info.d.ts | 8 + types/openfin/v45/_v2/api/system/rvm.d.ts | 8 + types/openfin/v45/_v2/api/system/system.d.ts | 820 + types/openfin/v45/_v2/api/system/window.d.ts | 16 + .../v45/_v2/api/webcontents/webcontents.d.ts | 16 + .../v45/_v2/api/window/bounds-changed.d.ts | 14 + types/openfin/v45/_v2/api/window/window.d.ts | 824 + .../v45/_v2/api/window/windowOption.d.ts | 86 + .../v45/_v2/environment/environment.d.ts | 13 + .../openfin/v45/_v2/environment/node-env.d.ts | 14 + .../v45/_v2/environment/openfin-env.d.ts | 14 + .../_v2/environment/openfin-renderer-api.d.ts | 6 + types/openfin/v45/_v2/identity.d.ts | 17 + types/openfin/v45/_v2/launcher/launcher.d.ts | 15 + .../openfin/v45/_v2/launcher/nix-launch.d.ts | 14 + types/openfin/v45/_v2/launcher/util.d.ts | 6 + .../openfin/v45/_v2/launcher/win-launch.d.ts | 4 + types/openfin/v45/_v2/main.d.ts | 11 + types/openfin/v45/_v2/of-main.d.ts | 1 + types/openfin/v45/_v2/shapes.d.ts | 43 + types/openfin/v45/_v2/transport/elipc.d.ts | 13 + .../v45/_v2/transport/port-discovery.d.ts | 17 + .../v45/_v2/transport/transport-errors.d.ts | 17 + .../openfin/v45/_v2/transport/transport.d.ts | 66 + .../openfin/v45/_v2/transport/websocket.d.ts | 14 + types/openfin/v45/_v2/transport/wire.d.ts | 76 + .../v45/_v2/util/normalize-config.d.ts | 3 + types/openfin/v45/_v2/util/promises.d.ts | 5 + types/openfin/v45/_v2/util/ref-counter.d.ts | 7 + types/openfin/v45/index.d.ts | 1701 + types/openfin/v45/openfin-tests.ts | 934 + .../{hapi__hoek => openfin/v45}/tsconfig.json | 14 +- types/openfin/v45/tslint.json | 16 + types/openjscad/tslint.json | 55 +- types/openlayers/v2/tsconfig.json | 4 +- types/openlayers/v2/tslint.json | 63 +- types/openlayers/v3/tslint.json | 46 +- types/openpgp/ts3.2/tslint.json | 7 +- types/openpgp/tslint.json | 24 +- types/opentok/tslint.json | 66 +- types/openui5/tslint.json | 53 +- types/optimist/tslint.json | 69 +- types/oracledb/index.d.ts | 21 +- types/oracledb/oracledb-tests.ts | 15 +- types/oracledb/tslint.json | 64 +- types/oracledb/v3/oracledb-tests.ts | 4 +- types/oracledb/v3/tslint.json | 67 +- types/orchestrator/tslint.json | 71 +- types/orientjs/tslint.json | 3 +- types/original/tsconfig.json | 2 +- types/os-service/index.d.ts | 107 + types/os-service/os-service-tests.ts | 20 + types/os-service/tsconfig.json | 23 + types/os-service/tslint.json | 3 + types/osmtogeojson/tsconfig.json | 4 +- types/osmtogeojson/tslint.json | 62 +- types/osrs-json-api/index.d.ts | 150 + types/osrs-json-api/osrs-json-api-tests.ts | 16 + types/osrs-json-api/tsconfig.json | 23 + types/osrs-json-api/tslint.json | 1 + types/ouibounce/index.d.ts | 104 + types/ouibounce/ouibounce-tests.ts | 28 + types/ouibounce/tsconfig.json | 24 + types/ouibounce/tslint.json | 1 + types/overload-protection/index.d.ts | 51 + .../overload-protection-tests.ts | 40 + .../tsconfig.json | 6 +- types/overload-protection/tslint.json | 1 + types/owlcarousel/tsconfig.json | 4 +- types/owlcarousel/tslint.json | 74 +- types/p2/tsconfig.json | 4 +- types/p2/tslint.json | 58 +- types/p5/tslint.json | 2 +- types/packery/tslint.json | 64 +- types/pad-left/index.d.ts | 8 + types/pad-left/pad-left-tests.ts | 3 + types/pad-left/tsconfig.json | 23 + types/pad-left/tslint.json | 1 + types/page-icon/tslint.json | 71 +- types/page/tslint.json | 72 +- types/pako/tslint.json | 2 +- types/papaparse/tslint.json | 61 +- types/paralleljs/tsconfig.json | 4 +- types/paralleljs/tslint.json | 60 +- types/parameterize/index.d.ts | 7 + types/parameterize/parameterize-tests.ts | 5 + types/parameterize/tsconfig.json | 23 + types/parameterize/tslint.json | 1 + types/parcel-env/tsconfig.json | 2 +- types/parcel-env/tslint.json | 60 +- types/parse-glob/tsconfig.json | 4 +- types/parse-glob/tslint.json | 71 +- types/parse-mockdb/tsconfig.json | 4 +- types/parse-mockdb/tslint.json | 73 +- types/parse-prefer-header/index.d.ts | 8 + .../parse-prefer-header-tests.ts | 11 + types/parse-prefer-header/tsconfig.json | 23 + types/parse-prefer-header/tslint.json | 1 + types/parse-torrent/tsconfig.json | 4 +- types/parse/index.d.ts | 176 +- types/parse/package.json | 7 + types/parse/parse-tests.ts | 310 +- types/parse/ts3.7/index.d.ts | 1401 + types/parse/ts3.7/node.d.ts | 3 + types/parse/ts3.7/parse-tests.ts | 1713 + types/parse/ts3.7/react-native.d.ts | 3 + types/parse/ts3.7/tsconfig.json | 24 + types/parse/ts3.7/tslint.json | 9 + types/parse/tslint.json | 5 +- types/parse/v1/tslint.json | 45 +- types/parse5/v4/tslint.json | 16 +- types/parsimmon/index.d.ts | 13 +- types/parsimmon/parsimmon-tests.ts | 14 + types/parsimmon/tslint.json | 7 +- types/passport-auth0/index.d.ts | 119 +- types/passport-auth0/passport-auth0-tests.ts | 98 +- types/passport-azure-ad/oidc-strategy.d.ts | 1 + types/passport-azure-ad/tslint.json | 3 +- types/passport-beam/tslint.json | 62 +- types/passport-cognito/tsconfig.json | 2 +- types/passport-google-oauth/tslint.json | 67 +- types/passport-google-oauth2/tslint.json | 18 +- types/passport-http-bearer/tslint.json | 65 +- types/passport-jwt/tsconfig.json | 4 +- types/passport-jwt/tslint.json | 62 +- types/passport-local-mongoose/tsconfig.json | 4 +- types/passport-local-mongoose/tslint.json | 59 +- types/passport-local/tslint.json | 61 +- types/passport-microsoft/index.d.ts | 22 + .../passport-microsoft-tests.ts | 26 + types/passport-microsoft/tsconfig.json | 23 + types/passport-microsoft/tslint.json | 1 + .../tslint.json | 66 +- types/passport-saml/tsconfig.json | 4 +- types/passport-strategy/tslint.json | 66 +- types/passport-twitter/tslint.json | 60 +- types/passport.socketio/package.json | 6 + types/passport/index.d.ts | 2 +- types/password-hash/tsconfig.json | 4 +- types/password-hash/tslint.json | 71 +- types/path-parse/tsconfig.json | 4 +- types/path-parse/tslint.json | 73 +- types/pathfinding/tsconfig.json | 4 +- types/pathfinding/tslint.json | 63 +- types/pathjs/tsconfig.json | 4 +- types/pathjs/tslint.json | 63 +- types/pathval/tsconfig.json | 2 +- types/paypal-cordova-plugin/tslint.json | 69 +- types/paystack/index.d.ts | 116 + types/paystack/paystack-tests.ts | 40 + types/paystack/tsconfig.json | 23 + types/paystack/tslint.json | 1 + types/pdf-image/index.d.ts | 300 + types/pdf-image/pdf-image-tests.ts | 21 + types/pdf-image/tsconfig.json | 23 + types/pdf-image/tslint.json | 1 + types/pdfjs-dist/tslint.json | 57 +- types/pdfkit/tsconfig.json | 4 +- types/pdfkit/tslint.json | 60 +- types/pdfmake/index.d.ts | 135 +- types/pdfmake/pdfmake-tests.ts | 147 +- types/pdfmake/tsconfig.json | 1 - types/pdfmake/tslint.json | 9 +- types/pdfobject/tsconfig.json | 4 +- types/pdfobject/tslint.json | 65 +- types/pebblekitjs/tslint.json | 67 +- types/pegjs/tslint.json | 63 +- types/pem/tsconfig.json | 4 +- types/pendo-io-browser/index.d.ts | 13 +- .../pendo-io-browser-tests.ts | 4 + types/persona/tsconfig.json | 4 +- types/persona/tslint.json | 63 +- types/petit-dom/tsconfig.json | 2 +- types/pg-pool/index.d.ts | 2 +- types/pg-pool/tsconfig.json | 4 +- types/pg/index.d.ts | 1 + types/pg/v6/tsconfig.json | 4 +- types/pg/v6/tslint.json | 63 +- types/pgwmodal/tsconfig.json | 4 +- types/pgwmodal/tslint.json | 70 +- types/phantom/tslint.json | 58 +- types/phantomcss/tslint.json | 59 +- types/phantomjs/tsconfig.json | 4 +- types/phantomjs/tslint.json | 71 +- types/phoenix/tsconfig.json | 4 +- types/phone-formatter/tsconfig.json | 4 +- types/phone-formatter/tslint.json | 71 +- types/phone/tsconfig.json | 4 +- types/phone/tslint.json | 74 +- types/phonegap-facebook-plugin/tsconfig.json | 4 +- types/phonegap-facebook-plugin/tslint.json | 68 +- types/phonegap-nfc/tslint.json | 63 +- .../tsconfig.json | 4 +- .../tslint.json | 67 +- types/phonegap/tslint.json | 54 +- types/photonui/tslint.json | 60 +- types/photoswipe/index.d.ts | 13 +- types/photoswipe/photoswipe-tests.ts | 5 +- types/photoswipe/tslint.json | 61 +- types/physijs/tslint.json | 53 +- types/pi-camera/index.d.ts | 43 + types/pi-camera/pi-camera-tests.ts | 40 + types/pi-camera/tsconfig.json | 25 + types/pi-camera/tslint.json | 3 + types/pi-spi/tsconfig.json | 4 +- types/pi-spi/tslint.json | 63 +- types/pickadate/tsconfig.json | 4 +- types/pickadate/tslint.json | 62 +- types/pify/tsconfig.json | 4 +- types/pify/tslint.json | 72 +- types/pigpio/tslint.json | 13 +- types/pikaday-time/tslint.json | 5 +- types/pikaday/tslint.json | 5 +- types/pinkyswear/tsconfig.json | 4 +- types/pinkyswear/tslint.json | 65 +- types/pino/index.d.ts | 50 +- types/pino/pino-tests.ts | 21 +- types/pinterest-sdk/tsconfig.json | 4 +- types/pinterest-sdk/tslint.json | 69 +- types/piwik-tracker/tsconfig.json | 4 +- types/piwik-tracker/tslint.json | 68 +- types/pkijs/tslint.json | 60 +- types/plaid-link/index.d.ts | 2 + types/platform/tslint.json | 63 +- types/playerframework/tsconfig.json | 4 +- types/playerframework/tslint.json | 60 +- types/pleasejs/tsconfig.json | 4 +- types/pleasejs/tslint.json | 71 +- types/plotly.js/index.d.ts | 104 +- types/plotly.js/tslint.json | 19 +- types/plugapi/tsconfig.json | 4 +- types/plupload/index.d.ts | 4 + types/plupload/tslint.json | 62 +- types/pluralize/tsconfig.json | 4 +- types/pluralize/tslint.json | 71 +- types/pngjs/index.d.ts | 4 +- types/pngjs/pngjs-tests.ts | 11 + types/pngjs2/tsconfig.json | 4 +- types/pngjs2/tslint.json | 67 +- types/podcast/tsconfig.json | 2 +- types/podium/tslint.json | 64 +- types/point-in-polygon/tsconfig.json | 4 +- types/poker-evaluator/index.d.ts | 59 +- .../poker-evaluator/poker-evaluator-tests.ts | 4 +- types/pollyjs__adapter-fetch/tslint.json | 18 +- types/pollyjs__adapter-node-http/tslint.json | 18 +- types/pollyjs__adapter-puppeteer/index.d.ts | 11 + .../pollyjs__adapter-puppeteer-tests.ts | 8 + .../pollyjs__adapter-puppeteer/tsconfig.json | 41 + types/pollyjs__adapter-puppeteer/tslint.json | 1 + types/pollyjs__adapter/tslint.json | 18 +- types/pollyjs__core/index.d.ts | 44 +- types/pollyjs__core/pollyjs__core-tests.ts | 48 +- types/pollyjs__persister-fs/tslint.json | 18 +- .../index.d.ts | 11 + .../pollyjs__persister-local-storage-tests.ts | 8 + .../tsconfig.json | 42 + .../tslint.json | 1 + types/pollyjs__persister-rest/index.d.ts | 11 + .../pollyjs__persister-rest-tests.ts | 8 + types/pollyjs__persister-rest/tsconfig.json | 42 + types/pollyjs__persister-rest/tslint.json | 1 + types/pollyjs__persister/tslint.json | 18 +- types/polylabel/tsconfig.json | 4 +- types/polylabel/tslint.json | 16 +- types/polyline/tsconfig.json | 4 +- types/polyline/tslint.json | 69 +- types/polymer-ts/tsconfig.json | 4 +- types/polymer-ts/tslint.json | 65 +- types/polymer/tsconfig.json | 4 +- types/polymer/tslint.json | 59 +- types/popcorn/tsconfig.json | 4 +- types/popcorn/tslint.json | 68 +- types/portscanner/tslint.json | 3 +- types/postal/tsconfig.json | 4 +- types/postal/tslint.json | 60 +- types/postal/v0/tslint.json | 61 +- types/postman-collection/index.d.ts | 188 +- .../postman-collection-tests.ts | 294 +- types/pouch-redux-middleware/tslint.json | 18 +- .../tsconfig.json | 2 +- .../tslint.json | 8 +- types/pouchdb-adapter-fruitdown/tsconfig.json | 4 +- types/pouchdb-adapter-fruitdown/tslint.json | 8 +- types/pouchdb-adapter-http/tsconfig.json | 4 +- types/pouchdb-adapter-http/tslint.json | 8 +- types/pouchdb-adapter-idb/tsconfig.json | 4 +- types/pouchdb-adapter-idb/tslint.json | 8 +- types/pouchdb-adapter-leveldb/tsconfig.json | 4 +- types/pouchdb-adapter-leveldb/tslint.json | 8 +- .../tsconfig.json | 4 +- .../pouchdb-adapter-localstorage/tslint.json | 8 +- types/pouchdb-adapter-memory/tsconfig.json | 4 +- types/pouchdb-adapter-memory/tslint.json | 8 +- types/pouchdb-adapter-websql/tslint.json | 8 +- types/pouchdb-browser/tsconfig.json | 4 +- types/pouchdb-core/tslint.json | 12 +- types/pouchdb-find/index.d.ts | 1 + types/pouchdb-find/tslint.json | 6 +- types/pouchdb-http/tsconfig.json | 4 +- types/pouchdb-live-find/tslint.json | 5 +- types/pouchdb-mapreduce/tsconfig.json | 4 +- types/pouchdb-mapreduce/tslint.json | 4 +- types/pouchdb-node/tsconfig.json | 4 +- types/pouchdb-node/tslint.json | 4 +- types/pouchdb-replication/tsconfig.json | 4 +- types/pouchdb-replication/tslint.json | 4 +- types/pouchdb-upsert/tslint.json | 8 +- types/pouchdb/tsconfig.json | 4 +- types/power-assert-formatter/tsconfig.json | 4 +- types/power-assert-formatter/tslint.json | 67 +- types/power-assert/index.d.ts | 2 +- types/power-assert/package.json | 11 - types/power-assert/power-assert-tests.ts | 5 + types/power-assert/ts3.7/index.d.ts | 61 - types/power-assert/ts3.7/tslint.json | 80 - types/power-assert/tslint.json | 64 +- types/powerbi-visuals-tools/tslint.json | 7 +- types/preact-i18n/tslint.json | 18 +- types/precise/tsconfig.json | 4 +- types/precise/tslint.json | 67 +- types/precond/tsconfig.json | 4 +- types/precond/tslint.json | 71 +- types/preloadjs/tsconfig.json | 4 +- types/preloadjs/tslint.json | 69 +- types/prelude-ls/tslint.json | 58 +- types/prettier/tslint.json | 18 +- types/prettyjson/tsconfig.json | 4 +- types/prettyjson/tslint.json | 67 +- types/priorityqueuejs/tsconfig.json | 4 +- types/priorityqueuejs/tslint.json | 71 +- types/proclaim/tslint.json | 18 +- types/progress/tsconfig.json | 4 +- types/progress/tslint.json | 67 +- types/progressjs/tsconfig.json | 4 +- types/progressjs/tslint.json | 70 +- types/project-oxford/tslint.json | 56 +- types/promise-fs/promise-fs-tests.ts | 2 +- types/promise-inflight/index.d.ts | 27 + .../promise-inflight-tests.ts | 20 + types/promise-inflight/tsconfig.json | 23 + types/promise-inflight/tslint.json | 1 + types/promise-pg/tsconfig.json | 4 +- types/promise-pg/tslint.json | 61 +- types/promise-pool/tsconfig.json | 4 +- types/promise-pool/tslint.json | 62 +- types/promise.allsettled/index.d.ts | 1 + types/promise.prototype.finally/index.d.ts | 1 + types/promise.prototype.finally/tsconfig.json | 4 +- types/promised-temp/tsconfig.json | 4 +- types/promisify-node/tslint.json | 71 +- types/promisify-supertest/tsconfig.json | 4 +- types/promisify-supertest/tslint.json | 69 +- types/prompt-sync-history/tslint.json | 71 +- types/prompt-sync/tslint.json | 61 +- types/promptly/tsconfig.json | 4 +- types/promptly/tslint.json | 68 +- types/prompts/index.d.ts | 3 +- types/proper-lockfile/tslint.json | 18 +- types/properties-reader/index.d.ts | 3 + .../properties-reader-tests.ts | 2 + types/prosemirror-inputrules/tslint.json | 3 +- types/prosemirror-state/tslint.json | 6 +- types/protractor-browser-logs/package.json | 2 +- types/protractor-browser-logs/tsconfig.json | 4 +- types/protractor-helpers/tsconfig.json | 4 +- types/protractor-helpers/tslint.json | 58 +- types/protractor-http-mock/tsconfig.json | 4 +- types/protractor-http-mock/tslint.json | 73 +- types/proxy-from-env/index.d.ts | 7 +- types/proxy-from-env/proxy-from-env-tests.ts | 4 + types/proxyquire/tsconfig.json | 4 +- types/proxyquire/tslint.json | 69 +- types/pty.js/tsconfig.json | 4 +- types/pty.js/tslint.json | 66 +- types/pubnub/index.d.ts | 64 +- types/pubnub/pubnub-tests.ts | 6 + types/pubsub-js/tsconfig.json | 4 +- types/pubsub-js/tslint.json | 61 +- types/pug/tslint.json | 66 +- types/pulltorefreshjs/index.d.ts | 25 +- .../pulltorefreshjs/pulltorefreshjs-tests.ts | 48 +- types/pulsar-client/index.d.ts | 454 + types/pulsar-client/pulsar-client-tests.ts | 75 + types/pulsar-client/tsconfig.json | 24 + types/pulsar-client/tslint.json | 3 + types/puppeteer/index.d.ts | 2 +- types/puppeteer/puppeteer-tests.ts | 5 +- types/puppeteer/v1/index.d.ts | 2 +- types/puppeteer/v1/puppeteer-tests.ts | 5 +- types/pure-render-decorator/tsconfig.json | 4 +- types/pure-render-decorator/tslint.json | 74 +- types/purl/tsconfig.json | 4 +- types/purl/tslint.json | 73 +- types/pusher-js/tslint.json | 2 +- types/pusher__chatkit-client/currentuser.d.ts | 6 +- types/pusher__chatkit-client/message.d.ts | 14 +- .../pusher__chatkit-client-tests.ts | 24 +- types/pusher__chatkit-client/tslint.json | 2 +- types/pvutils/tslint.json | 69 +- types/python-shell/tslint.json | 17 +- types/q-io/tslint.json | 61 +- types/q-retry/tsconfig.json | 4 +- types/q-retry/tslint.json | 68 +- types/q/tslint.json | 21 +- types/q/v0/tslint.json | 49 +- types/qlik-engineapi/tslint.json | 16 +- .../qlik-visualizationextensions/tslint.json | 12 +- types/qr-image/tslint.json | 8 +- types/qrcode/tslint.json | 2 +- types/qs/index.d.ts | 1 + types/qs/tslint.json | 62 +- types/qtip2/tslint.json | 63 +- types/quill/tslint.json | 6 +- types/quixote/tsconfig.json | 4 +- types/quixote/tslint.json | 65 +- types/qunit/tsconfig.json | 4 +- types/qunit/tslint.json | 54 +- types/qunit/v1/tslint.json | 54 +- types/quoted-printable/tslint.json | 75 +- types/qwest/tsconfig.json | 4 +- types/qwest/tslint.json | 64 +- types/rabbit.js/tsconfig.json | 4 +- types/rabbit.js/tslint.json | 63 +- types/radium/tsconfig.json | 4 +- types/radium/tslint.json | 67 +- types/radius/tsconfig.json | 4 +- types/radius/tslint.json | 65 +- types/ramda/index.d.ts | 10 +- types/ramda/package.json | 2 +- types/ramda/ramda-tests.ts | 12 - types/ramda/test/evolve-tests.ts | 27 + types/ramda/test/propEq-tests.ts | 20 + types/ramda/tools.d.ts | 10 +- types/ramda/tsconfig.json | 5 +- types/ramda/tslint.json | 14 +- types/random-seed/tsconfig.json | 4 +- types/random-seed/tslint.json | 18 +- types/random-string/tsconfig.json | 4 +- types/random-string/tslint.json | 72 +- types/random/index.d.ts | 140 +- types/random/random-tests.ts | 64 +- types/randomcolor/index.d.ts | 5 +- types/randomcolor/tsconfig.json | 4 +- types/randomcolor/tslint.json | 73 +- types/randomstring/tsconfig.json | 4 +- types/randomstring/tslint.json | 73 +- types/rangy/tsconfig.json | 4 +- types/rangy/tslint.json | 62 +- types/rangyinputs/tslint.json | 72 +- types/raphael/tslint.json | 58 +- types/rate-limit-redis/index.d.ts | 5 +- .../rate-limit-redis-tests.ts | 10 +- types/ratelimiter/tsconfig.json | 4 +- types/ratelimiter/tslint.json | 72 +- types/raty/tsconfig.json | 4 +- types/raty/tslint.json | 73 +- types/rbush/v2/tslint.json | 74 +- types/rc-select/tsconfig.json | 4 +- types/rc-select/tslint.json | 68 +- types/rc-slider/tslint.json | 3 +- types/rc-time-picker/tslint.json | 7 +- types/rc-tooltip/tslint.json | 69 +- types/rcloader/tsconfig.json | 4 +- types/rcloader/tslint.json | 73 +- types/rdf-dataset-indexed/index.d.ts | 10 + .../rdf-dataset-indexed-tests.ts | 21 + types/rdf-dataset-indexed/tsconfig.json | 23 + types/rdf-dataset-indexed/tslint.json | 1 + types/rdf-ext/index.d.ts | 13 +- types/rdf-ext/lib/DataFactory.d.ts | 12 +- types/rdf-ext/lib/Dataset.d.ts | 8 +- types/rdf-ext/rdf-ext-tests.ts | 71 +- types/rdf-js/index.d.ts | 65 +- types/rdf-js/rdf-js-tests.ts | 54 +- types/rdf-transform-triple-to-quad/index.d.ts | 19 + .../rdf-transform-triple-to-quad-tests.ts | 14 + .../tsconfig.json | 23 + .../rdf-transform-triple-to-quad/tslint.json | 1 + types/rdfjs__dataset/DatasetCore.d.ts | 13 + types/rdfjs__dataset/index.d.ts | 16 + types/rdfjs__dataset/rdfjs__dataset-tests.ts | 12 + types/rdfjs__dataset/tsconfig.json | 28 + types/rdfjs__dataset/tslint.json | 1 + types/rdfjs__fetch-lite/index.d.ts | 33 + .../rdfjs__fetch-lite-tests.ts | 37 + types/rdfjs__fetch-lite/tsconfig.json | 35 + types/rdfjs__fetch-lite/tslint.json | 1 + types/rdfjs__fetch/index.d.ts | 14 + types/rdfjs__fetch/rdfjs__fetch-tests.ts | 37 + types/rdfjs__fetch/tsconfig.json | 38 + types/rdfjs__fetch/tslint.json | 1 + types/rdfjs__formats-common/index.d.ts | 15 + .../rdfjs__formats-common-tests.ts | 7 + types/rdfjs__formats-common/tsconfig.json | 31 + types/rdfjs__formats-common/tslint.json | 1 + types/rdfjs__parser-jsonld/index.d.ts | 5 +- .../rdfjs__parser-jsonld-tests.ts | 3 +- types/rdfjs__parser-n3/index.d.ts | 5 +- .../rdfjs__parser-n3-tests.ts | 3 +- types/rdfjs__serializer-jsonld-ext/index.d.ts | 2 +- .../rdfjs__serializer-jsonld-ext-tests.ts | 4 +- types/rdfjs__serializer-jsonld/index.d.ts | 2 +- .../rdfjs__serializer-jsonld-tests.ts | 2 +- types/rdfjs__sink-map/index.d.ts | 19 + .../rdfjs__sink-map/rdfjs__sink-map-tests.ts | 20 + types/rdfjs__sink-map/tsconfig.json | 28 + types/rdfjs__sink-map/tslint.json | 1 + types/rdfjs__to-ntriples/OTHER_FILES.txt | 5 + types/rdfjs__to-ntriples/index.d.ts | 15 + types/rdfjs__to-ntriples/lib/blankNode.d.ts | 5 + .../rdfjs__to-ntriples/lib/defaultGraph.d.ts | 5 + types/rdfjs__to-ntriples/lib/literal.d.ts | 5 + types/rdfjs__to-ntriples/lib/namedNode.d.ts | 5 + types/rdfjs__to-ntriples/lib/quad.d.ts | 5 + types/rdfjs__to-ntriples/lib/term.d.ts | 6 + types/rdfjs__to-ntriples/lib/variable.d.ts | 5 + .../rdfjs__to-ntriples-tests.ts | 27 + types/rdfjs__to-ntriples/tsconfig.json | 31 + types/rdfjs__to-ntriples/tslint.json | 1 + types/rdflib/index.d.ts | 1400 + types/rdflib/rdflib-tests.ts | 33 + types/rdflib/tsconfig.json | 24 + types/rdflib/tslint.json | 1 + types/reach__router/index.d.ts | 11 +- .../tsconfig.json | 4 +- .../react-addons-create-fragment/tslint.json | 75 +- .../tsconfig.json | 4 +- .../tslint.json | 74 +- .../tsconfig.json | 4 +- .../tslint.json | 73 +- types/react-addons-perf/tsconfig.json | 4 +- types/react-addons-perf/tslint.json | 73 +- .../tsconfig.json | 4 +- .../tslint.json | 75 +- .../tsconfig.json | 4 +- .../react-addons-shallow-compare/tslint.json | 75 +- types/react-addons-test-utils/tsconfig.json | 4 +- types/react-addons-test-utils/tslint.json | 72 +- .../tsconfig.json | 4 +- .../react-addons-transition-group/tslint.json | 74 +- types/react-addons-update/tsconfig.json | 4 +- types/react-addons-update/tslint.json | 72 +- types/react-aria-menubutton/index.d.ts | 3 +- .../react-aria-menubutton-tests.tsx | 23 +- types/react-aria-modal/index.d.ts | 3 +- .../react-aria-modal-tests.tsx | 15 + types/react-beautiful-dnd/index.d.ts | 624 +- types/react-beautiful-dnd/package.json | 3 + .../react-beautiful-dnd-tests.tsx | 174 +- types/react-beautiful-dnd/tsconfig.json | 3 +- types/react-beautiful-dnd/v11/index.d.ts | 218 + .../v11/react-beautiful-dnd-tests.tsx | 134 + types/react-beautiful-dnd/v11/tsconfig.json | 28 + types/react-beautiful-dnd/v11/tslint.json | 3 + types/react-big-calendar/index.d.ts | 22 +- .../react-big-calendar-tests.tsx | 42 +- types/react-big-scheduler/tslint.json | 7 +- types/react-blessed/tslint.json | 18 +- .../tsconfig.json | 4 +- .../tslint.json | 70 +- types/react-bootstrap-table/v2/tsconfig.json | 4 +- types/react-bootstrap-table/v2/tslint.json | 10 +- types/react-bootstrap/tsconfig.json | 4 +- types/react-bootstrap/tslint.json | 39 +- types/react-breadcrumbs/tsconfig.json | 2 +- types/react-breadcrumbs/tslint.json | 74 +- types/react-broadcast/tsconfig.json | 4 +- types/react-bytesize-icons/tslint.json | 71 +- types/react-calendar-timeline/tslint.json | 69 +- types/react-canvas-draw/index.d.ts | 50 + .../react-canvas-draw-tests.tsx | 41 + types/react-canvas-draw/tsconfig.json | 24 + types/react-canvas-draw/tslint.json | 1 + types/react-chat-widget/index.d.ts | 37 + .../react-chat-widget-tests.ts | 21 + types/react-chat-widget/tsconfig.json | 16 + types/react-chat-widget/tslint.json | 1 + types/react-codemirror/tsconfig.json | 4 +- types/react-codemirror/tslint.json | 72 +- types/react-color/tslint.json | 11 +- types/react-countup/index.d.ts | 118 +- types/react-css-collapse/tslint.json | 6 +- types/react-css-modules/tslint.json | 66 +- .../react-css-transition-replace/tslint.json | 75 +- types/react-custom-scrollbars/tslint.json | 75 +- types/react-custom-scrollbars/v3/tslint.json | 74 +- types/react-d3-graph/index.d.ts | 33 + types/react-d3-graph/react-d3-graph-tests.tsx | 14 + types/react-d3-graph/tsconfig.json | 24 + types/react-d3-graph/tslint.json | 1 + types/react-data-grid/tsconfig.json | 4 +- types/react-data-grid/tslint.json | 55 +- types/react-data-grid/v1/tsconfig.json | 4 +- types/react-data-grid/v1/tslint.json | 58 +- types/react-data-grid/v2/tsconfig.json | 2 +- types/react-data-grid/v2/tslint.json | 57 +- types/react-datagrid/tsconfig.json | 4 +- types/react-datagrid/tslint.json | 62 +- types/react-date-range/tslint.json | 1 + types/react-datepicker/index.d.ts | 6 +- .../react-datepicker-tests.tsx | 4 + types/react-daterange-picker/index.d.ts | 24 +- types/react-daterange-picker/tsconfig.json | 4 +- types/react-daterange-picker/tslint.json | 4 +- types/react-dates/index.d.ts | 8 +- types/react-dates/tslint.json | 63 +- .../InlineChunkHtmlPlugin.d.ts | 2 +- .../InterpolateHtmlPlugin.d.ts | 2 +- .../WebpackDevServerUtils.d.ts | 1 + types/react-dev-utils/getPublicUrlOrPath.d.ts | 13 + .../noopServiceWorkerMiddleware.d.ts | 7 +- .../redirectServedPathMiddleware.d.ts | 10 + .../test/getPublicUrlOrPath.ts | 10 + .../test/noopServiceWorkerMiddleware.ts | 2 +- .../test/redirectServedPathMiddleware.ts | 6 + types/react-dev-utils/test/webpack-utils.ts | 2 +- types/react-dev-utils/tsconfig.json | 2 + .../{lib => dist}/HTML5toTouch.d.ts | 0 .../dist/cjs/HTML5toTouch.d.ts | 1 + .../dist/esm/HTML5toTouch.d.ts | 1 + types/react-dnd-multi-backend/index.d.ts | 2 +- types/react-dnd-multi-backend/package.json | 4 +- .../react-dnd-multi-backend-tests.tsx | 12 +- types/react-dom/test-utils/index.d.ts | 2 +- types/react-dom/test/react-dom-tests.tsx | 39 +- types/react-dom/tslint.json | 7 +- types/react-dom/v15/tsconfig.json | 6 +- types/react-dom/v15/tslint.json | 1 - types/react-easy-chart/tsconfig.json | 4 +- types/react-easy-chart/tslint.json | 67 +- types/react-editext/tslint.json | 18 +- types/react-fa/tsconfig.json | 4 +- types/react-facebook-login/index.d.ts | 8 + types/react-file-input/tsconfig.json | 4 +- types/react-file-input/tslint.json | 72 +- types/react-file-reader-input/tsconfig.json | 4 +- types/react-final-form-listeners/index.d.ts | 35 + .../react-final-form-listeners-tests.tsx | 18 + .../react-final-form-listeners/tsconfig.json | 26 + types/react-final-form-listeners/tslint.json | 3 + types/react-flatpickr/index.d.ts | 5 +- types/react-flex/tsconfig.json | 4 +- types/react-flex/tslint.json | 73 +- types/react-flexr/tsconfig.json | 4 +- types/react-flexr/tslint.json | 68 +- types/react-fontawesome/tsconfig.json | 4 +- types/react-foundation/tslint.json | 24 +- types/react-frontload/tsconfig.json | 2 +- types/react-helmet-with-visor/index.d.ts | 93 + .../react-helmet-with-visor-tests.tsx | 177 + types/react-helmet-with-visor/tsconfig.json | 25 + types/react-helmet-with-visor/tslint.json | 3 + types/react-helmet/tsconfig.json | 4 +- types/react-helmet/tslint.json | 72 +- types/react-helmet/v4/tsconfig.json | 4 +- types/react-helmet/v4/tslint.json | 70 +- types/react-highlight-words/index.d.ts | 4 +- .../react-highlight-words-tests.tsx | 1 + types/react-highlight-words/tslint.json | 18 +- types/react-highlight.js/tslint.json | 18 +- types/react-highlighter/tsconfig.json | 4 +- types/react-holder/tsconfig.json | 4 +- types/react-holder/tslint.json | 70 +- types/react-howler/tsconfig.json | 2 +- types/react-imageloader/tsconfig.json | 4 +- types/react-imageloader/tslint.json | 72 +- types/react-imgix/index.d.ts | 4 +- types/react-imgix/react-imgix-tests.tsx | 1 + types/react-infinite-calendar/index.d.ts | 4 + .../react-infinite-calendar-tests.tsx | 4 + types/react-infinite-scroller/tsconfig.json | 6 +- types/react-infinite/tsconfig.json | 4 +- types/react-infinite/tslint.json | 66 +- types/react-input-autosize/index.d.ts | 1 + types/react-input-calendar/tsconfig.json | 4 +- types/react-input-calendar/tslint.json | 69 +- types/react-interactive/tsconfig.json | 2 +- types/react-interactive/tslint.json | 2 +- types/react-intl-redux/tslint.json | 70 +- types/react-is-deprecated/tslint.json | 71 +- types/react-is/tsconfig.json | 2 +- types/react-json-tree/tslint.json | 72 +- types/react-jsonschema-form/index.d.ts | 167 +- .../react-jsonschema-form-tests.tsx | 218 +- types/react-jsonschema-form/tslint.json | 65 +- types/react-leaflet-sidebarv2/index.d.ts | 4 +- types/react-leaflet/index.d.ts | 2 +- types/react-leaflet/react-leaflet-tests.tsx | 52 + types/react-leaflet/tslint.json | 11 +- types/react-leaflet/v1/tslint.json | 11 +- types/react-loadable/tslint.json | 2 +- types/react-map-gl/index.d.ts | 61 +- types/react-map-gl/react-map-gl-tests.tsx | 65 +- types/react-mdl/tsconfig.json | 6 +- types/react-mdl/tslint.json | 68 +- types/react-measure/index.d.ts | 2 +- types/react-measure/react-measure-tests.tsx | 5 + types/react-measure/tsconfig.json | 2 +- types/react-measure/tslint.json | 2 +- types/react-messenger-checkbox/index.d.ts | 33 + .../react-messenger-checkbox-tests.tsx | 13 + types/react-messenger-checkbox/tsconfig.json | 18 + types/react-messenger-checkbox/tslint.json | 3 + types/react-mic/index.d.ts | 16 +- types/react-mixin/tslint.json | 65 +- types/react-modal/index.d.ts | 36 +- types/react-modal/react-modal-tests.tsx | 21 +- types/react-motion-loop/tslint.json | 2 +- types/react-motion-slider/tslint.json | 71 +- types/react-motion/react-motion-tests.tsx | 4 +- types/react-motion/tsconfig.json | 4 +- types/react-motion/tslint.json | 67 +- .../react-native-app-intro-slider/index.d.ts | 7 +- types/react-native-appsflyer/index.d.ts | 96 + .../react-native-appsflyer-tests.ts | 64 + types/react-native-appsflyer/tsconfig.json | 23 + types/react-native-appsflyer/tslint.json | 1 + .../index.d.ts | 98 + ...act-native-background-downloader-tests.tsx | 57 + .../tsconfig.json | 17 + .../tslint.json | 1 + types/react-native-charts-wrapper/index.d.ts | 601 + .../react-native-charts-wrapper-tests.tsx | 830 + .../react-native-charts-wrapper/tsconfig.json | 24 + types/react-native-charts-wrapper/tslint.json | 1 + types/react-native-check-box/index.d.ts | 29 + .../react-native-check-box-tests.tsx | 23 + types/react-native-check-box/tsconfig.json | 17 + types/react-native-check-box/tslint.json | 1 + types/react-native-datepicker/tslint.json | 7 +- types/react-native-drawer/index.d.ts | 9 +- .../react-native-drawer-tests.tsx | 17 +- types/react-native-fetch-blob/tslint.json | 3 +- types/react-native-indicators/index.d.ts | 27 +- types/react-native-maps/tsconfig.json | 2 +- types/react-native-maps/tslint.json | 23 +- .../react-native-material-dropdown/index.d.ts | 2 + types/react-native-material-menu/index.d.ts | 34 + .../react-native-material-menu-tests.tsx | 32 + .../react-native-material-menu/tsconfig.json | 24 + types/react-native-material-menu/tslint.json | 1 + types/react-native-orientation/tslint.json | 71 +- .../react-native-popup-dialog-tests.tsx | 2 +- .../react-native-push-notification/index.d.ts | 1 + .../react-native-push-notification-tests.ts | 1 + types/react-native-sensor-manager/tslint.json | 11 +- types/react-native-share/index.d.ts | 45 +- .../react-native-share-tests.ts | 9 +- types/react-native-share/v1/Button.d.ts | 14 + types/react-native-share/v1/Overlay.d.ts | 20 + types/react-native-share/v1/Sheet.d.ts | 18 + types/react-native-share/v1/index.d.ts | 78 + .../v1/react-native-share-tests.ts | 53 + types/react-native-share/v1/tsconfig.json | 19 + types/react-native-share/v1/tslint.json | 1 + .../tslint.json | 18 +- .../react-native-snap-carousel/tsconfig.json | 4 +- types/react-native-snap-carousel/tslint.json | 3 +- types/react-native-svg-charts/tslint.json | 12 +- types/react-native-touch-id/tslint.json | 70 +- types/react-native-version-check/index.d.ts | 160 +- .../react-native-version-check-tests.ts | 4 +- types/react-native-video-player/index.d.ts | 102 + .../react-native-video-player-tests.tsx | 10 + types/react-native-video-player/tsconfig.json | 21 + types/react-native-video-player/tslint.json | 1 + types/react-native-video/index.d.ts | 279 +- .../react-native-video-tests.tsx | 9 +- types/react-native/globals.d.ts | 42 + types/react-native/index.d.ts | 544 +- types/react-native/test/animated.tsx | 2 +- types/react-native/test/index.tsx | 44 +- .../react-native/test/stylesheet-flatten.tsx | 22 + types/react-native/tsconfig.json | 5 +- types/react-native/tslint.json | 19 +- types/react-notification-system/tslint.json | 71 +- types/react-onclickoutside/tslint.json | 11 +- types/react-onsenui/index.d.ts | 13 +- types/react-onsenui/react-onsenui-tests.tsx | 25 + types/react-onsenui/tslint.json | 12 +- types/react-overlays/tslint.json | 3 +- types/react-phone-number-input/index.d.ts | 185 + .../react-phone-number-input-tests.tsx | 40 + types/react-phone-number-input/tsconfig.json | 25 + types/react-phone-number-input/tslint.json | 1 + types/react-plaid-link/index.d.ts | 4 +- .../react-plaid-link-tests.tsx | 3 +- types/react-props-decorators/tsconfig.json | 4 +- types/react-props-decorators/tslint.json | 70 +- types/react-query/index.d.ts | 13 +- types/react-query/react-query-tests.ts | 5 +- types/react-recaptcha-v3/index.d.ts | 26 + .../react-recaptcha-v3-tests.tsx | 11 + types/react-recaptcha-v3/tsconfig.json | 25 + types/react-recaptcha-v3/tslint.json | 1 + types/react-redux-i18n/tslint.json | 60 +- types/react-redux-toastr/tsconfig.json | 4 +- types/react-redux-toastr/tslint.json | 68 +- types/react-redux/index.d.ts | 49 +- types/react-redux/react-redux-tests.tsx | 6 +- types/react-redux/v5/tslint.json | 54 +- types/react-resizable/tslint.json | 18 +- types/react-responsive/v1/tsconfig.json | 4 +- types/react-router-bootstrap/tsconfig.json | 4 +- types/react-router-bootstrap/tslint.json | 70 +- types/react-router-native/tslint.json | 11 +- .../react-router-navigation-core/tslint.json | 5 +- types/react-router-redux/v3/tslint.json | 5 +- types/react-router-tabs/index.d.ts | 30 + .../react-router-tabs-tests.tsx | 23 + types/react-router-tabs/tsconfig.json | 17 + types/react-router-tabs/tslint.json | 1 + .../Auth.tsx | 5 +- .../ModalGallery.tsx | 7 +- .../NoMatch.tsx | 6 +- types/react-router/tslint.json | 2 +- types/react-router/v2/tsconfig.json | 4 +- types/react-router/v2/tslint.json | 4 +- types/react-router/v3/tsconfig.json | 6 +- types/react-router/v3/tslint.json | 6 +- types/react-scrollbar/tslint.json | 72 +- types/react-select/index.d.ts | 2 + types/react-select/src/NonceProvider.d.ts | 7 + types/react-select/src/types.d.ts | 1 + types/react-select/v1/tsconfig.json | 4 +- types/react-sidebar/tslint.json | 18 +- types/react-signature-canvas/index.d.ts | 38 + .../react-signature-canvas-tests.tsx | 52 + types/react-signature-canvas/tsconfig.json | 25 + types/react-signature-canvas/tslint.json | 1 + types/react-simple-maps/index.d.ts | 4 +- types/react-spinkit/tsconfig.json | 4 +- types/react-spinkit/tslint.json | 73 +- types/react-spinkit/v1/tsconfig.json | 4 +- types/react-spinkit/v1/tslint.json | 73 +- types/react-sticky/tslint.json | 9 +- types/react-stripe-elements/index.d.ts | 36 +- .../react-stripe-elements-tests.tsx | 62 +- types/react-svg-pan-zoom/tslint.json | 2 +- types/react-swf/tsconfig.json | 4 +- types/react-swf/tslint.json | 61 +- types/react-swipeable-views-utils/index.d.ts | 37 +- .../react-swipeable-views-utils-tests.tsx | 31 +- types/react-swipeable-views/tsconfig.json | 4 +- types/react-syntax-highlighter/tslint.json | 72 +- types/react-table-filter/tslint.json | 12 +- types/react-table/Readme.md | 1 - types/react-table/index.d.ts | 115 +- types/react-table/react-table-tests.tsx | 10 +- types/react-table/v6/index.d.ts | 4 +- types/react-tabs/tslint.json | 9 +- types/react-tag-autocomplete/index.d.ts | 22 +- .../react-tag-autocomplete-tests.tsx | 52 +- types/react-tag-autocomplete/tslint.json | 18 +- types/react-tagcloud/tsconfig.json | 4 +- types/react-tagcloud/tslint.json | 63 +- types/react-tap-event-plugin/tsconfig.json | 4 +- types/react-tap-event-plugin/tslint.json | 71 +- types/react-test-renderer/index.d.ts | 18 +- types/react-test-renderer/tslint.json | 4 +- types/react-textarea-autosize/tsconfig.json | 4 +- types/react-textarea-autosize/tslint.json | 69 +- types/react-toggle/tslint.json | 10 +- types/react-tracking/tslint.json | 2 +- .../react-transition-group/CSSTransition.d.ts | 4 +- types/react-transition-group/Transition.d.ts | 106 +- .../react-transition-group-tests.tsx | 2 + types/react-typing-animation/index.d.ts | 52 + .../react-typing-animation-tests.tsx | 42 + types/react-typing-animation/tsconfig.json | 25 + types/react-typing-animation/tslint.json | 1 + types/react-typist/tslint.json | 18 +- types/react-user-tour/tsconfig.json | 4 +- types/react-user-tour/tslint.json | 63 +- .../react-virtualized-auto-sizer/tslint.json | 15 +- .../dist/es/CellMeasurer.d.ts | 7 +- types/react-virtualized/tslint.json | 13 +- types/react-wait/index.d.ts | 30 +- types/react-wait/react-wait-tests.tsx | 22 + types/react-widgets-moment/tslint.json | 7 +- types/react-widgets/tslint.json | 4 +- types/react/index.d.ts | 38 +- types/react/test/index.ts | 24 +- types/react/test/tsx.tsx | 9 + types/react/tsconfig.json | 4 +- types/react/tslint.json | 24 +- types/react/v15/tslint.json | 3 +- types/reactcss/tsconfig.json | 4 +- types/reactcss/tslint.json | 70 +- types/reactstrap/index.d.ts | 4 +- types/reactstrap/lib/Carousel.d.ts | 2 + types/reactstrap/lib/Popover.d.ts | 4 +- types/reactstrap/lib/Tooltip.d.ts | 4 +- types/reactstrap/lib/utils.d.ts | 3 + types/reactstrap/reactstrap-tests.tsx | 75 + types/read/tsconfig.json | 4 +- types/read/tslint.json | 70 +- types/readable-stream/tslint.json | 7 +- types/readdir-stream/tsconfig.json | 4 +- types/readdir-stream/tslint.json | 73 +- types/rebass/index.d.ts | 59 +- types/rebass/rebass-tests.tsx | 51 +- types/rebass/styled-components.d.ts | 1 + types/rebass/tsconfig.json | 2 +- types/rebass__forms/index.d.ts | 7 + types/rebass__forms/rebass__forms-tests.tsx | 5 +- types/rebass__forms/tsconfig.json | 2 +- types/recase/tslint.json | 18 +- types/recharts-scale/tslint.json | 1 - types/recharts/index.d.ts | 16 +- types/recharts/recharts-tests.tsx | 4 +- types/recompose/tsconfig.json | 6 +- types/recompose/tslint.json | 55 +- types/recursive-readdir/v1/tsconfig.json | 4 +- types/recursive-readdir/v1/tslint.json | 70 +- types/redis-info/index.d.ts | 242 + types/redis-info/redis-info-tests.ts | 33 + .../tsconfig.json | 4 +- types/redis-info/tslint.json | 1 + types/redis-rate-limiter/tslint.json | 65 +- types/redis-scripto/tslint.json | 69 +- types/redis/index.d.ts | 8 +- types/redis/redis-tests.ts | 2 +- types/redis/ts3.1/index.d.ts | 2 +- types/redlock/v2/tslint.json | 4 +- types/redlock/v3/tslint.json | 11 +- types/redux-action-utils/tsconfig.json | 4 +- types/redux-action-utils/tslint.json | 67 +- types/redux-action/tslint.json | 3 +- types/redux-auth-wrapper/tslint.json | 3 +- types/redux-auth-wrapper/v1/tslint.json | 3 +- types/redux-debounced/tsconfig.json | 4 +- types/redux-debounced/tslint.json | 75 +- .../redux-devtools-dock-monitor/tsconfig.json | 4 +- types/redux-devtools-dock-monitor/tslint.json | 70 +- .../redux-devtools-log-monitor/tsconfig.json | 4 +- types/redux-devtools-log-monitor/tslint.json | 71 +- types/redux-devtools/tsconfig.json | 4 +- types/redux-devtools/tslint.json | 71 +- types/redux-doghouse/tslint.json | 2 +- types/redux-first-router/index.d.ts | 3 + types/redux-first-router/tslint.json | 3 +- types/redux-form/index.d.ts | 1 - types/redux-form/lib/reduxForm.d.ts | 2 + types/redux-form/redux-form-tests.tsx | 11 +- types/redux-form/tslint.json | 2 +- types/redux-form/v4/tslint.json | 4 +- types/redux-form/v5/tsconfig.json | 2 +- types/redux-form/v5/tslint.json | 4 +- types/redux-form/v6/tslint.json | 4 +- types/redux-form/v7/tslint.json | 2 +- .../tsconfig.json | 4 +- types/redux-immutable/tsconfig.json | 4 +- types/redux-immutable/tslint.json | 66 +- types/redux-immutable/v3/tsconfig.json | 4 +- types/redux-immutable/v3/tslint.json | 68 +- types/redux-localstorage/tslint.json | 2 +- types/redux-logger/tsconfig.json | 4 +- types/redux-mock-store/index.d.ts | 4 +- types/redux-mock-store/package.json | 2 +- types/redux-mock-store/tsconfig.json | 4 +- types/redux-mock-store/tslint.json | 12 +- types/redux-mock-store/v0/tsconfig.json | 4 +- types/redux-mock-store/v0/tslint.json | 11 +- types/redux-optimistic-ui/tsconfig.json | 4 +- types/redux-optimistic-ui/tslint.json | 69 +- .../tslint.json | 2 +- .../tslint.json | 2 +- types/redux-promise/tsconfig.json | 6 +- types/redux-promise/tslint.json | 69 +- types/redux-recycle/tslint.json | 73 +- types/redux-router/tslint.json | 67 +- types/redux-state-sync/index.d.ts | 8 +- .../redux-state-sync-tests.ts | 18 +- .../redux-storage-engine-jsurl/tsconfig.json | 4 +- types/redux-storage/tslint.json | 65 +- types/redux-ui/tsconfig.json | 4 +- types/redux-ui/tslint.json | 2 +- types/ref-array-di/tsconfig.json | 4 +- types/ref-array-di/tslint.json | 74 +- types/ref-array/tsconfig.json | 4 +- types/ref-array/tslint.json | 73 +- types/ref-napi/tsconfig.json | 4 +- types/ref-napi/tslint.json | 71 +- types/ref-struct-di/tsconfig.json | 2 +- types/ref-struct-di/tslint.json | 73 +- types/ref-struct/tsconfig.json | 4 +- types/ref-struct/tslint.json | 72 +- types/ref-union-di/tsconfig.json | 4 +- types/ref-union-di/tslint.json | 73 +- types/ref-union/tsconfig.json | 4 +- types/ref-union/tslint.json | 72 +- types/ref/tsconfig.json | 4 +- types/ref/tslint.json | 70 +- types/reflux/tslint.json | 2 +- types/reflux/v0/tsconfig.json | 4 +- types/reflux/v0/tslint.json | 2 +- types/refresh-fetch/index.d.ts | 19 + types/refresh-fetch/refresh-fetch-tests.ts | 22 + types/refresh-fetch/tsconfig.json | 24 + types/refresh-fetch/tslint.json | 3 + types/regression/tsconfig.json | 2 +- types/rehype-react/index.d.ts | 5 +- types/rehype-react/rehype-react-tests.tsx | 1 + types/relateurl/tsconfig.json | 4 +- types/relateurl/tslint.json | 69 +- types/relay-compiler/index.d.ts | 26 +- types/relay-compiler/lib/core/ASTConvert.d.ts | 2 +- .../lib/core/CompilerContext.d.ts | 34 + .../lib/core/GraphQLCompilerContext.d.ts | 38 - .../lib/core/GraphQLIRPrinter.d.ts | 2 - .../lib/core/{GraphQLIR.d.ts => IR.d.ts} | 92 +- types/relay-compiler/lib/core/IRPrinter.d.ts | 2 + .../{GraphQLIRVisitor.d.ts => IRVisitor.d.ts} | 10 +- .../lib/core/RelayCompilerError.d.ts | 2 +- .../lib/core/RelayIRTransforms.d.ts | 2 +- .../relay-compiler/lib/core/RelayParser.d.ts | 9 +- types/relay-compiler/lib/core/Schema.d.ts | 102 + .../RelayLanguagePluginInterface.d.ts | 4 +- ...soleReporter.d.ts => ConsoleReporter.d.ts} | 6 +- ...LMultiReporter.d.ts => MultiReporter.d.ts} | 6 +- .../{GraphQLReporter.d.ts => Reporter.d.ts} | 2 +- .../ApplyFragmentArgumentTransform.d.ts | 10 +- .../transforms/ConnectionFieldTransform.d.ts | 9 - .../lib/transforms/ConnectionTransform.d.ts | 9 + .../lib/transforms/FlattenTransform.d.ts | 6 +- .../transforms/InlineFragmentsTransform.d.ts | 6 +- .../lib/transforms/MaskTransform.d.ts | 4 +- .../lib/transforms/MatchTransform.d.ts | 4 +- .../RefetchableFragmentTransform.d.ts | 4 +- .../transforms/RelayDirectiveTransform.d.ts | 4 +- .../SkipRedundantNodesTransform.d.ts | 10 +- types/relay-compiler/relay-compiler-tests.ts | 36 +- types/relay-compiler/tslint.json | 7 +- types/relay-config/index.d.ts | 2 +- types/relay-config/tslint.json | 7 +- types/relay-runtime/index.d.ts | 13 +- .../RelayNetworkLoggerTransaction.d.ts | 31 - .../lib/network/createRelayNetworkLogger.d.ts | 14 - types/relay-runtime/lib/store/ClientID.d.ts | 11 + .../lib/store/RelayModernEnvironment.d.ts | 14 +- .../lib/store/RelayModernStore.d.ts | 14 +- .../lib/store/RelayStoreTypes.d.ts | 120 +- .../lib/util/RelayRuntimeTypes.d.ts | 1 + types/relay-runtime/relay-runtime-tests.tsx | 32 +- types/relay-runtime/tslint.json | 5 +- types/remote-redux-devtools/index.d.ts | 1 + .../remote-redux-devtools-tests.ts | 10 +- types/replace-ext/tsconfig.json | 4 +- types/replace-ext/tslint.json | 70 +- types/request-ip/index.d.ts | 2 +- types/request-ip/tsconfig.json | 4 +- types/request-ip/tslint.json | 66 +- types/request-promise/tslint.json | 3 +- types/requestretry/index.d.ts | 3 + types/requestretry/requestretry-tests.ts | 17 + types/require-directory/tslint.json | 11 +- types/requirejs-domready/tsconfig.json | 4 +- types/requirejs-domready/tslint.json | 73 +- types/requirejs/tsconfig.json | 4 +- types/requirejs/tslint.json | 61 +- types/resemblejs/tsconfig.json | 4 +- types/resemblejs/tslint.json | 69 +- types/resolve/tslint.json | 67 +- types/response-time/tsconfig.json | 4 +- types/response-time/tslint.json | 66 +- types/rest/tslint.json | 61 +- types/restangular/tsconfig.json | 4 +- types/restangular/tslint.json | 58 +- types/restful.js/tslint.json | 64 +- types/restify-cookies/index.d.ts | 2 + types/restify/v4/tslint.json | 13 +- types/restler/tsconfig.json | 4 +- types/restler/tslint.json | 65 +- types/rethinkdb/tsconfig.json | 4 +- types/rethinkdb/tslint.json | 61 +- types/revalidate/tslint.json | 2 +- types/revalidator/tslint.json | 59 +- types/reveal/tsconfig.json | 4 +- types/reveal/tslint.json | 67 +- types/rewire/tsconfig.json | 4 +- types/rewire/tslint.json | 2 +- types/rickshaw/tsconfig.json | 4 +- types/rickshaw/tslint.json | 74 +- types/rimraf/tsconfig.json | 4 +- types/riot-api-nodejs/tsconfig.json | 4 +- types/riot-api-nodejs/tslint.json | 69 +- types/riot-games-api/tsconfig.json | 4 +- types/riot-games-api/tslint.json | 70 +- types/riotcontrol/tslint.json | 68 +- types/riotjs/tsconfig.json | 4 +- types/riotjs/tslint.json | 59 +- types/rison/tsconfig.json | 4 +- types/rison/tslint.json | 71 +- types/rmc-drawer/tslint.json | 7 +- types/roads-server/index.d.ts | 42 - types/roads-server/roads-server-tests.ts | 25 - types/roads/index.d.ts | 261 - types/roads/roads-tests.ts | 75 - types/rocksdb/tslint.json | 18 +- types/rollup-plugin-node-globals/tslint.json | 18 +- types/rollup-plugin-postcss/tslint.json | 18 +- types/rollup-plugin-progress/tslint.json | 18 +- types/rollup-plugin-url/tslint.json | 18 +- types/rollup__plugin-virtual/index.d.ts | 21 + types/rollup__plugin-virtual/package.json | 6 + .../rollup__plugin-virtual-tests.ts | 6 + types/rollup__plugin-virtual/tsconfig.json | 26 + types/rollup__plugin-virtual/tslint.json | 1 + types/ronomon__crypto-async/tslint.json | 2 +- types/rosie/tsconfig.json | 4 +- types/rosie/tslint.json | 56 +- types/roslib/tsconfig.json | 4 +- types/roslib/tslint.json | 57 +- types/route-parser/tsconfig.json | 4 +- types/routie/tsconfig.json | 4 +- types/routie/tslint.json | 67 +- types/royalslider/tsconfig.json | 4 +- types/royalslider/tslint.json | 66 +- types/rpio/index.d.ts | 8 + types/rpio/tsconfig.json | 4 +- types/rpio/tslint.json | 66 +- types/rrc/tslint.json | 2 +- types/rsmq-worker/tslint.json | 65 +- types/rsocket-core/RSocketFrame.d.ts | 19 +- types/rsocket-core/index.d.ts | 1 + types/rsocket-flowable/Single.d.ts | 2 +- types/rsocket-flowable/tslint.json | 3 +- types/rsocket-types/tslint.json | 2 +- types/rss/tsconfig.json | 4 +- types/rss/tslint.json | 65 +- types/rsvp/tslint.json | 66 +- types/rsync/tsconfig.json | 4 +- types/rsync/tslint.json | 66 +- types/rtp-parser/index.d.ts | 212 + types/rtp-parser/rtp-parser-tests.ts | 151 + types/rtp-parser/tsconfig.json | 23 + types/rtp-parser/tslint.json | 1 + types/rtree/tsconfig.json | 4 +- types/rtree/tslint.json | 72 +- types/run-sequence/tsconfig.json | 4 +- types/run-sequence/tslint.json | 71 +- types/rwlock/tslint.json | 9 +- types/rx-angular/tsconfig.json | 4 +- types/rx-angular/tslint.json | 67 +- types/rx-core-binding/tslint.json | 7 +- types/rx-core/tslint.json | 11 +- types/rx-dom/tsconfig.json | 4 +- types/rx-dom/tslint.json | 10 +- types/rx-jquery/tsconfig.json | 4 +- types/rx-jquery/tslint.json | 71 +- types/rx-lite-aggregates/tslint.json | 8 +- types/rx-lite-async/tslint.json | 3 +- types/rx-lite-backpressure/tslint.json | 2 +- types/rx-lite-coincidence/tslint.json | 5 +- types/rx-lite-experimental/tslint.json | 6 +- types/rx-lite-joinpatterns/tslint.json | 3 +- types/rx-lite-testing/tslint.json | 2 +- types/rx-lite-time/tslint.json | 8 +- types/rx-lite-virtualtime/tslint.json | 6 +- types/rx-lite/tslint.json | 16 +- types/rx-node/tsconfig.json | 4 +- types/rx-node/tslint.json | 64 +- types/rx.wamp/tslint.json | 61 +- types/rx/tslint.json | 4 +- types/s3-uploader/tsconfig.json | 4 +- types/s3-uploader/tslint.json | 65 +- types/s3rver/tsconfig.json | 4 +- types/s3rver/tslint.json | 70 +- types/safari-extension-content/tslint.json | 65 +- types/safari-extension/tslint.json | 59 +- types/sails.io.js/tslint.json | 65 +- types/saml2-js/tsconfig.json | 4 +- types/saml2-js/tslint.json | 65 +- types/samlp/tsconfig.json | 6 +- types/samlp/tslint.json | 62 +- types/sammy/tslint.json | 53 +- types/sanctuary/tsconfig.json | 4 +- types/sanctuary/tslint.json | 12 +- types/sandboxed-module/tsconfig.json | 4 +- types/sandboxed-module/tslint.json | 66 +- types/sanitize-html/tsconfig.json | 4 +- types/sanitize-html/tslint.json | 65 +- types/sanitizer/tsconfig.json | 4 +- types/sanitizer/tslint.json | 62 +- types/sass-graph/tslint.json | 69 +- types/sat/tslint.json | 60 +- types/satnav/tsconfig.json | 4 +- types/satnav/tslint.json | 66 +- types/sax-stream/index.d.ts | 54 + types/sax-stream/sax-stream-tests.ts | 23 + types/sax-stream/tsconfig.json | 23 + types/sax-stream/tslint.json | 1 + types/sax/index.d.ts | 3 +- types/sax/sax-tests.ts | 4 +- types/sax/tsconfig.json | 4 +- types/saywhen/tslint.json | 3 +- types/sc-broker-cluster/index.d.ts | 74 +- .../sc-broker-cluster-tests.ts | 91 +- types/sc-broker-cluster/tsconfig.json | 10 +- types/sc-broker-cluster/v6/OTHER_FILES.txt | 1 + types/sc-broker-cluster/v6/clientcluster.d.ts | 10 + types/sc-broker-cluster/v6/index.d.ts | 159 + .../v6/sc-broker-cluster-tests.ts | 95 + types/sc-broker-cluster/v6/scbroker.d.ts | 3 + types/sc-broker-cluster/v6/tsconfig.json | 37 + types/sc-broker-cluster/v6/tslint.json | 3 + types/sc-broker/index.d.ts | 97 +- types/sc-broker/sc-broker-tests.ts | 128 +- types/sc-broker/scbroker.d.ts | 47 +- types/sc-broker/tsconfig.json | 10 +- types/sc-channel/index.d.ts | 67 +- types/sc-channel/sc-channel-tests.ts | 33 - types/sc-channel/tsconfig.json | 6 +- types/sc-channel/v1/index.d.ts | 63 + types/sc-channel/v1/tsconfig.json | 30 + types/sc-channel/v1/tslint.json | 3 + types/sc-errors/sc-errors-tests.ts | 72 +- types/sc-framework-health-check/tsconfig.json | 11 + types/sc-hot-reboot/tsconfig.json | 11 + types/scalike/tslint.json | 67 +- types/scc-broker-client/client-pool.d.ts | 51 +- .../cluster-broker-client.d.ts | 60 +- types/scc-broker-client/hasher.d.ts | 2 +- types/scc-broker-client/index.d.ts | 13 +- .../scc-broker-client-tests.ts | 132 +- types/scc-broker-client/tsconfig.json | 10 +- types/scrambo/index.d.ts | 51 + types/scrambo/scrambo-tests.ts | 11 + types/scrambo/tsconfig.json | 23 + types/scrambo/tslint.json | 1 + types/screeps/tslint.json | 12 +- types/scriptjs/tsconfig.json | 4 +- types/scriptjs/tslint.json | 68 +- types/scroll-into-view/tslint.json | 63 +- types/scrollbooster/index.d.ts | 55 + types/scrollbooster/scrollbooster-tests.ts | 47 + types/scrollbooster/tsconfig.json | 24 + types/scrollbooster/tslint.json | 3 + types/scrollreveal/index.d.ts | 68 +- types/scrollreveal/scrollreveal-tests.ts | 76 +- types/scrollreveal/tslint.json | 67 +- types/scrolltofixed/tslint.json | 65 +- types/scrypt-async/tsconfig.json | 4 +- types/scrypt-async/tslint.json | 70 +- types/scrypt-js/index.d.ts | 1 + types/scrypt-js/scrypt-js-tests.ts | 2 - types/sdp-transform/index.d.ts | 12 +- types/sdp-transform/sdp-transform-tests.ts | 2 + types/seamless-immutable/tslint.json | 2 +- types/seamless/tslint.json | 62 +- types/secp256k1/index.d.ts | 63 +- types/secp256k1/secp256k1-tests.ts | 4 +- types/seedrandom/tsconfig.json | 4 +- types/seedrandom/tslint.json | 67 +- types/segment-analytics/tslint.json | 64 +- types/select2/tslint.json | 23 +- types/select2/v3/tslint.json | 2 +- types/selectize/tslint.json | 63 +- types/selenium-webdriver/index.d.ts | 380 +- types/selenium-webdriver/lib/logging.d.ts | 359 + types/selenium-webdriver/test/index.ts | 53 +- types/selenium-webdriver/test/logging.ts | 51 + types/selenium-webdriver/tsconfig.json | 7 +- types/selenium-webdriver/tslint.json | 10 +- types/selenium-webdriver/v2/index.d.ts | 10 +- types/selenium-webdriver/v2/test/index.ts | 4 +- types/selenium-webdriver/v2/tsconfig.json | 6 +- types/selenium-webdriver/v2/tslint.json | 8 +- types/selenium-webdriver/v3/index.d.ts | 6 +- types/selenium-webdriver/v3/test/index.ts | 2 +- types/selenium-webdriver/v3/tsconfig.json | 6 +- types/selenium-webdriver/v3/tslint.json | 7 +- types/semantic-ui-accordion/tslint.json | 3 +- types/semantic-ui-api/tslint.json | 3 +- types/semantic-ui-checkbox/tslint.json | 3 +- types/semantic-ui-dimmer/tslint.json | 3 +- types/semantic-ui-dropdown/tslint.json | 3 +- types/semantic-ui-embed/tslint.json | 3 +- types/semantic-ui-form/tslint.json | 3 +- types/semantic-ui-modal/tslint.json | 3 +- types/semantic-ui-nag/tslint.json | 3 +- types/semantic-ui-popup/tslint.json | 3 +- types/semantic-ui-progress/tslint.json | 3 +- types/semantic-ui-rating/tslint.json | 3 +- types/semantic-ui-search/tslint.json | 3 +- types/semantic-ui-shape/tslint.json | 3 +- types/semantic-ui-sidebar/tslint.json | 3 +- types/semantic-ui-sticky/tslint.json | 3 +- types/semantic-ui-tab/tslint.json | 3 +- types/semantic-ui-transition/tslint.json | 3 +- types/semantic-ui-visibility/tslint.json | 3 +- types/semaphore/tsconfig.json | 4 +- types/semaphore/tslint.json | 72 +- types/semver-stable/index.d.ts | 8 + types/semver-stable/semver-stable-tests.ts | 5 + types/semver-stable/tsconfig.json | 23 + types/semver-stable/tslint.json | 1 + types/semver-utils/index.d.ts | 20 + types/semver-utils/semver-utils-tests.ts | 10 + types/semver-utils/tsconfig.json | 23 + types/semver-utils/tslint.json | 1 + types/semver/classes/comparator.d.ts | 17 + types/semver/classes/range.d.ts | 21 + types/semver/classes/semver.d.ts | 62 + types/semver/functions/clean.d.ts | 8 + types/semver/functions/cmp.d.ts | 16 + types/semver/functions/coerce.d.ts | 12 + types/semver/functions/compare-build.d.ts | 16 + types/semver/functions/compare-loose.d.ts | 5 + types/semver/functions/compare.d.ts | 20 + types/semver/functions/diff.d.ts | 13 + types/semver/functions/eq.d.ts | 9 + types/semver/functions/gt.d.ts | 9 + types/semver/functions/gte.d.ts | 9 + types/semver/functions/inc.d.ts | 15 + types/semver/functions/lt.d.ts | 9 + types/semver/functions/lte.d.ts | 8 + types/semver/functions/major.d.ts | 9 + types/semver/functions/minor.d.ts | 9 + types/semver/functions/neq.d.ts | 9 + types/semver/functions/parse.d.ts | 12 + types/semver/functions/patch.d.ts | 9 + types/semver/functions/prerelease.d.ts | 12 + types/semver/functions/rcompare.d.ts | 15 + types/semver/functions/rsort.d.ts | 9 + types/semver/functions/satisfies.d.ts | 14 + types/semver/functions/sort.d.ts | 9 + types/semver/functions/valid.d.ts | 11 + types/semver/index.d.ts | 371 +- types/semver/internals/identifiers.d.ts | 13 + types/semver/preload.d.ts | 2 + types/semver/ranges/gtr.d.ts | 14 + types/semver/ranges/intersects.d.ts | 13 + types/semver/ranges/ltr.d.ts | 14 + types/semver/ranges/max-satisfying.d.ts | 14 + types/semver/ranges/min-satisfying.d.ts | 14 + types/semver/ranges/min-version.d.ts | 10 + types/semver/ranges/outside.d.ts | 15 + types/semver/ranges/to-comparators.d.ts | 9 + types/semver/ranges/valid.d.ts | 12 + types/semver/semver-tests.ts | 130 +- types/semver/tsconfig.json | 2 +- types/semver/v6/index.d.ts | 299 + types/semver/v6/semver-tests.ts | 151 + types/semver/v6/tsconfig.json | 27 + types/semver/v6/tslint.json | 1 + types/sencha_touch/tsconfig.json | 4 +- types/sencha_touch/tslint.json | 56 +- types/send/tslint.json | 72 +- types/seneca/tslint.json | 58 +- types/sequelize-fixtures/tslint.json | 69 +- types/sequelize/tslint.json | 48 +- types/sequelize/v3/tslint.json | 50 +- types/sequester/tslint.json | 73 +- types/serialport/index.d.ts | 8 +- types/serialport/serialport-tests.ts | 4 - types/serialport/v7/index.d.ts | 137 + types/serialport/v7/serialport-tests.ts | 145 + .../v7}/tsconfig.json | 10 +- types/serialport/v7/tslint.json | 6 + types/serve-favicon/tsconfig.json | 4 +- types/serve-favicon/tslint.json | 70 +- types/serve-index/tslint.json | 64 +- types/serve-static/tsconfig.json | 4 +- types/serve-static/tslint.json | 71 +- types/serverless-jest-plugin/index.d.ts | 23 + .../serverless-jest-plugin-tests.ts | 8 + types/serverless-jest-plugin/tsconfig.json | 23 + types/serverless-jest-plugin/tslint.json | 1 + .../plugins/aws/provider/awsProvider.d.ts | 7 + types/serverless/serverless-tests.ts | 13 + types/servicenow/tslint.json | 3 +- types/serviceworker-webpack-plugin/index.d.ts | 76 + .../lib/runtime.d.ts | 13 + .../serviceworker-webpack-plugin-tests.ts | 57 + .../tsconfig.json | 24 + .../serviceworker-webpack-plugin/tslint.json | 1 + types/set-cookie-parser/tslint.json | 66 +- .../setup-polly-jest-tests.ts | 2 +- types/shapefile/tsconfig.json | 2 +- types/sharedb/index.d.ts | 5 +- types/sharedb/lib/client.d.ts | 6 + types/sharedb/sharedb-tests.ts | 5 + types/sharedworker/tsconfig.json | 4 +- types/sharedworker/tslint.json | 82 +- types/sharepoint/index.d.ts | 1123 +- types/sharepoint/sharepoint-tests.ts | 4 +- types/sharepoint/tsconfig.json | 4 +- types/sharepoint/tslint.json | 12 +- types/sharp/index.d.ts | 24 +- types/sheetify/tslint.json | 11 +- types/shell-quote/tsconfig.json | 4 +- types/shelljs/tsconfig.json | 4 +- types/shelljs/tslint.json | 25 +- types/shevyjs/constants/index.d.ts | 7 + types/shevyjs/index.d.ts | 35 + types/shevyjs/shevyjs-tests.ts | 50 + types/shevyjs/tsconfig.json | 23 + types/shevyjs/tslint.json | 1 + types/shevyjs/types.d.ts | 28 + types/shevyjs/utils/index.d.ts | 17 + types/shopify-buy/index.d.ts | 9 +- types/shopify-buy/tslint.json | 55 +- types/shortid/tsconfig.json | 4 +- types/shortid/tslint.json | 71 +- types/showdown/tsconfig.json | 4 +- types/showdown/tslint.json | 53 +- types/shuffle-array/tsconfig.json | 4 +- types/shuffle-array/tslint.json | 69 +- types/siesta/tsconfig.json | 4 +- types/siesta/tslint.json | 60 +- types/sigmajs/tsconfig.json | 4 +- types/sigmajs/tslint.json | 64 +- types/signalr/index.d.ts | 8 +- types/signalr/signalr-tests.ts | 2 + types/signalr/tsconfig.json | 4 +- types/signalr/tslint.json | 55 +- types/signalr/v1/tslint.json | 60 +- types/signals/tsconfig.json | 4 +- types/signals/tslint.json | 3 +- types/signature_pad/tslint.json | 73 +- types/simpl-schema/index.d.ts | 16 +- types/simpl-schema/simpl-schema-tests.ts | 8 +- types/simpl-schema/tslint.json | 10 +- types/simple-assign/tsconfig.json | 4 +- types/simple-assign/tslint.json | 72 +- types/simple-cw-node/tsconfig.json | 4 +- types/simple-cw-node/tslint.json | 64 +- types/simple-icons/index.d.ts | 15 + types/simple-icons/simple-icons-tests.ts | 9 + types/simple-icons/tsconfig.json | 24 + types/simple-icons/tslint.json | 1 + types/simple-mock/tslint.json | 57 +- types/simple-url-cache/tsconfig.json | 4 +- types/simple-url-cache/tslint.json | 73 +- types/simplebar/index.d.ts | 31 +- types/simplebar/simplebar-tests.ts | 48 +- types/simplebar/v1/tsconfig.json | 4 +- types/simplebar/v1/tslint.json | 73 +- types/simplebar/v2/index.d.ts | 34 + types/simplebar/v2/simplebar-tests.ts | 51 + types/simplebar/v2/test/module-tests.ts | 4 + types/simplebar/v2/tsconfig.json | 30 + types/simplebar/v2/tslint.json | 3 + types/simplemde/tslint.json | 66 +- types/simplesmtp/tslint.json | 70 +- types/simplestorage.js/tsconfig.json | 4 +- types/simplestorage.js/tslint.json | 68 +- types/simulant/index.d.ts | 14 + types/simulant/simulant-tests.ts | 16 + types/simulant/tsconfig.json | 24 + types/simulant/tslint.json | 1 + types/single-line-log/tslint.json | 18 +- types/sinon-as-promised/tsconfig.json | 4 +- types/sinon-as-promised/tslint.json | 74 +- types/sinon-chai/tsconfig.json | 4 +- types/sinon-chai/tslint.json | 70 +- types/sinon-chai/v2/tsconfig.json | 2 +- types/sinon-chai/v2/tslint.json | 69 +- types/sinon-chrome/tsconfig.json | 4 +- types/sinon-chrome/tslint.json | 63 +- types/sinon-mongoose/tslint.json | 73 +- types/sinon-stub-promise/tsconfig.json | 4 +- types/sinon-stub-promise/tslint.json | 75 +- types/sinon/index.d.ts | 6 + types/sinon/sinon-tests.ts | 1 + types/sinon/ts3.1/index.d.ts | 9 + types/sinon/ts3.1/sinon-tests.ts | 1 + types/sinon/ts3.1/tslint.json | 2 +- types/sinon/tslint.json | 2 +- types/sinonjs__fake-timers/index.d.ts | 375 + .../sinonjs__fake-timers-tests.ts | 155 + types/sinonjs__fake-timers/tsconfig.json | 24 + types/sinonjs__fake-timers/tslint.json | 1 + types/sipml/tslint.json | 59 +- types/sitemap2/tslint.json | 2 +- types/sizeof/index.d.ts | 8 + types/sizeof/sizeof-tests.ts | 14 + types/{roads => sizeof}/tsconfig.json | 4 +- types/sizeof/tslint.json | 1 + types/sjcl/index.d.ts | 319 +- types/sjcl/sjcl-tests.ts | 254 +- types/sjcl/tslint.json | 69 +- types/skatejs/tsconfig.json | 4 +- types/skatejs/tslint.json | 1 - types/sketchapp/index.d.ts | 7 + types/sketchapp/tsconfig.json | 2 +- types/ski/tsconfig.json | 4 +- types/ski/tslint.json | 68 +- types/skyway/tsconfig.json | 4 +- types/skyway/tslint.json | 70 +- types/slack-node/tslint.json | 68 +- types/slackify-html/tsconfig.json | 4 +- types/slackify-html/tslint.json | 70 +- types/slate-irc/tslint.json | 70 +- types/sleep/tsconfig.json | 4 +- types/sleep/tslint.json | 71 +- types/slick-carousel/tslint.json | 61 +- types/slickgrid/tslint.json | 48 +- types/slideout/tslint.json | 67 +- types/slimerjs/tsconfig.json | 4 +- types/slocket/tslint.json | 3 +- types/slonik/index.d.ts | 15 +- types/sm-crypto/index.d.ts | 48 + types/sm-crypto/sm-crypto-tests.ts | 66 + types/sm-crypto/tsconfig.json | 23 + types/sm-crypto/tslint.json | 1 + types/smart-fox-server/tsconfig.json | 4 +- types/smart-fox-server/tslint.json | 59 +- types/smart-truncate/tsconfig.json | 4 +- types/smart-truncate/tslint.json | 18 +- types/smshelper/index.d.ts | 10 + types/smshelper/smshelper-tests.ts | 7 + types/smshelper/tsconfig.json | 23 + types/smshelper/tslint.json | 1 + types/smtp-server/v1/tslint.json | 64 +- types/smtpapi/tsconfig.json | 4 +- types/smtpapi/tslint.json | 65 +- types/snapsvg/tslint.json | 48 +- types/socket.io-client/tsconfig.json | 4 +- types/socket.io-client/tslint.json | 58 +- types/socket.io-parser/tsconfig.json | 4 +- types/socket.io-redis/tsconfig.json | 4 +- types/socket.io-redis/tslint.json | 67 +- types/socket.io.users/tsconfig.json | 4 +- types/socket.io.users/tslint.json | 62 +- types/socket.io/tsconfig.json | 4 +- types/socket.io/tslint.json | 60 +- types/socket.io/v1/tsconfig.json | 2 +- types/socket.io/v1/tslint.json | 57 +- types/socketcluster-client/index.d.ts | 18 +- types/socketcluster-client/lib/auth.d.ts | 13 + .../lib/clientsocket.d.ts | 450 + types/socketcluster-client/lib/factory.d.ts | 3 + .../lib/scclientsocket.d.ts | 294 - types/socketcluster-client/lib/transport.d.ts | 142 + .../socketcluster-client-tests.ts | 192 +- types/socketcluster-client/tsconfig.json | 10 +- types/socketcluster-server/index.d.ts | 13 +- types/socketcluster-server/server.d.ts | 285 + types/socketcluster-server/serversocket.d.ts | 265 + .../socketcluster-server-tests.ts | 151 +- types/socketcluster-server/tsconfig.json | 10 +- types/socketcluster-server/v14/index.d.ts | 15 + .../{ => v14}/scserver.d.ts | 0 .../{ => v14}/scserversocket.d.ts | 0 .../v14/socketcluster-server-tests.ts | 120 + types/socketcluster-server/v14/tsconfig.json | 37 + types/socketcluster-server/v14/tslint.json | 3 + types/socketcluster/tsconfig.json | 13 +- types/socketio-wildcard/index.d.ts | 4 +- types/socketty/tsconfig.json | 4 +- types/socketty/tslint.json | 72 +- types/sockjs-client/tsconfig.json | 4 +- types/sockjs/tslint.json | 10 +- types/sodium-native/index.d.ts | 5 + types/sodium-native/sodium-native-tests.ts | 8 + types/solid-auth-client/index.d.ts | 5 +- .../solid-auth-client-tests.ts | 7 + .../solution-center-communicator/tslint.json | 70 +- types/sortablejs/tslint.json | 60 +- types/sorted-object/index.d.ts | 8 + types/sorted-object/sorted-object-tests.ts | 3 + types/sorted-object/tsconfig.json | 23 + types/sorted-object/tslint.json | 1 + types/soundjs/tsconfig.json | 4 +- types/soundjs/tslint.json | 60 +- types/source-list-map/tslint.json | 71 +- types/source-map-support/register.d.ts | 7 + .../source-map-support-tests.ts | 39 +- types/space-pen/tsconfig.json | 4 +- types/space-pen/tslint.json | 64 +- types/sparkpost/v1/tsconfig.json | 4 +- types/sparkpost/v1/tslint.json | 66 +- types/sparql-http-client/index.d.ts | 8 +- .../sparql-http-client-tests.ts | 2 +- types/spdy/tsconfig.json | 4 +- types/spectrum/tsconfig.json | 4 +- types/spectrum/tslint.json | 66 +- types/split/tsconfig.json | 4 +- types/split/tslint.json | 68 +- types/split2/tsconfig.json | 4 +- types/split2/tslint.json | 68 +- types/spotify-api/tslint.json | 66 +- types/sprintf/tslint.json | 18 +- types/sql-bricks/tslint.json | 10 +- types/sql.js/tslint.json | 70 +- types/sqlanywhere/tsconfig.json | 4 +- types/sqlite3-promise/tsconfig.json | 2 +- types/sqlite3/tsconfig.json | 4 +- types/sqs-producer/tslint.json | 8 +- types/square-connect/tslint.json | 7 +- types/squirejs/tsconfig.json | 4 +- types/squirejs/tslint.json | 68 +- types/srp/tsconfig.json | 4 +- types/srp/tslint.json | 65 +- types/ssh2-sftp-client/index.d.ts | 23 +- types/ssh2-streams/tsconfig.json | 4 +- types/ssh2-streams/tslint.json | 67 +- types/ssh2/index.d.ts | 70 +- types/ssh2/tsconfig.json | 4 +- types/ssh2/tslint.json | 66 +- types/sshpk/tslint.json | 11 +- types/stack-mapper/tsconfig.json | 4 +- types/stack-mapper/tslint.json | 68 +- types/stack-trace/tsconfig.json | 4 +- types/stack-trace/tslint.json | 70 +- types/stack-utils/tslint.json | 3 +- types/stampit/tsconfig.json | 2 +- types/stampit/tslint.json | 18 +- types/stampit/v2/tsconfig.json | 4 +- types/stampit/v2/tslint.json | 55 +- types/stampit/v3/tsconfig.json | 2 +- types/stamplay-js-sdk/tsconfig.json | 4 +- types/stamplay-js-sdk/tslint.json | 2 +- types/standard-engine/index.d.ts | 158 + .../standard-engine/standard-engine-tests.ts | 109 + types/standard-engine/tsconfig.json | 23 + types/standard-engine/tslint.json | 1 + types/standard-version/index.d.ts | 224 + .../standard-version-tests.ts | 14 + types/standard-version/tsconfig.json | 25 + types/standard-version/tslint.json | 1 + types/static-eval/tsconfig.json | 4 +- types/static-eval/tslint.json | 63 +- types/staticmaps/tslint.json | 18 +- types/stats.js/tsconfig.json | 4 +- types/stats.js/tslint.json | 71 +- types/statsd-client/tsconfig.json | 4 +- types/statsd-client/tslint.json | 69 +- types/steam/tsconfig.json | 4 +- types/steam/tslint.json | 66 +- types/steed/tslint.json | 7 +- types/stompjs/tslint.json | 72 +- types/stopword/index.d.ts | 50 + types/stopword/stopword-tests.ts | 7 + types/stopword/tsconfig.json | 23 + types/stopword/tslint.json | 3 + types/store/tslint.json | 63 +- types/store/v1/tslint.json | 65 +- .../index.d.ts | 28 - ...ybook__addon-storyshots-puppeteer-tests.ts | 23 - .../tsconfig.json | 28 - types/storybook__addon-storyshots/index.d.ts | 70 - .../storybook__addon-storyshots-tests.ts | 96 - .../demuxed-consumable-stream.d.ts | 13 + types/stream-demux/index.d.ts | 38 + types/stream-demux/stream-demux-tests.ts | 85 + types/stream-demux/tsconfig.json | 24 + types/stream-demux/tslint.json | 3 + types/stream-meter/tsconfig.json | 4 +- types/stream-meter/tslint.json | 67 +- types/stream-series/tsconfig.json | 4 +- types/stream-series/tslint.json | 70 +- types/streamjs/tslint.json | 73 +- types/strftime/tsconfig.json | 4 +- types/strftime/tslint.json | 65 +- types/string-hash/tslint.json | 75 +- types/string-placeholder/tslint.json | 2 +- .../tsconfig.json | 2 +- types/string-template/tslint.json | 67 +- types/string/tslint.json | 66 +- types/string_score/tsconfig.json | 4 +- types/string_score/tslint.json | 68 +- types/stripe-checkout/tsconfig.json | 4 +- types/stripe-v2/tslint.json | 13 +- types/stripe-v3/index.d.ts | 36 +- types/stripe-v3/stripe-v3-tests.ts | 49 +- types/stripe-v3/tslint.json | 15 +- types/stripe/index.d.ts | 44 +- types/stripe/tslint.json | 5 +- types/stripejs/tslint.json | 11 +- types/strophe.js/tslint.json | 14 +- types/strophe/tslint.json | 60 +- types/style-search/index.d.ts | 78 + types/style-search/style-search-tests.ts | 24 + types/style-search/tsconfig.json | 23 + types/style-search/tslint.json | 1 + types/styled-components/index.d.ts | 64 +- types/styled-components/native.d.ts | 10 + types/styled-components/test/index.tsx | 2 +- types/styled-components/ts3.7/index.d.ts | 61 +- types/styled-components/ts3.7/native.d.ts | 2 + types/styled-components/ts3.7/test/index.tsx | 2 +- types/styled-jsx/tslint.json | 3 +- types/styled-system/index.d.ts | 793 +- types/styled-system/package.json | 2 +- types/styled-system/styled-system-tests.tsx | 3 + types/styled-system__css/index.d.ts | 15 +- .../styled-system__css-tests.ts | 8 + types/stylus/tsconfig.json | 4 +- types/stylus/tslint.json | 2 +- types/succinct/tsconfig.json | 4 +- types/succinct/tslint.json | 73 +- types/suitescript/tsconfig.json | 4 +- types/suitescript/tslint.json | 61 +- types/summernote/tslint.json | 10 +- types/sumo-logger/tslint.json | 2 +- types/superagent-proxy/index.d.ts | 17 + .../superagent-proxy-tests.ts | 14 + types/superagent-proxy/tsconfig.json | 23 + types/superagent-proxy/tslint.json | 1 + types/superagent/index.d.ts | 9 +- types/supercluster/index.d.ts | 2 +- types/supertest-as-promised/tsconfig.json | 4 +- types/supertest-as-promised/tslint.json | 3 +- types/supertest/tsconfig.json | 4 +- types/supertest/tslint.json | 69 +- types/supports-color/tsconfig.json | 4 +- types/supports-color/v3/tsconfig.json | 4 +- types/svg-injector/tslint.json | 70 +- types/svg-sprite/tslint.json | 63 +- types/svgjs.draggable/tsconfig.json | 4 +- types/svgjs.draggable/tslint.json | 69 +- types/svgjs.resize/tsconfig.json | 4 +- types/svgjs.resize/tslint.json | 71 +- types/svgo/index.d.ts | 16 +- types/svgo/svgo-tests.ts | 112 + types/swag/tsconfig.json | 4 +- types/swag/tslint.json | 73 +- .../swagger-express-middleware/tsconfig.json | 4 +- types/swagger-express-middleware/tslint.json | 56 +- types/swagger-jsdoc/tsconfig.json | 4 +- types/swagger-jsdoc/tslint.json | 75 +- types/swagger-schema-official/tslint.json | 6 +- types/swagger-stats/index.d.ts | 326 + types/swagger-stats/package.json | 7 + types/swagger-stats/swagger-stats-tests.ts | 92 + types/swagger-stats/tsconfig.json | 49 + types/swagger-stats/tslint.json | 1 + types/swagger-ui-react/index.d.ts | 9 +- .../swagger-ui-react-tests.tsx | 8 + types/swaggerize-express/tsconfig.json | 4 +- types/swaggerize-express/tslint.json | 62 +- types/swfobject/tsconfig.json | 4 +- types/swfobject/tslint.json | 69 +- types/swiftclick/tsconfig.json | 4 +- types/swiftclick/tslint.json | 69 +- types/swig-email-templates/tsconfig.json | 4 +- types/swig/tslint.json | 58 +- types/swipe/tslint.json | 73 +- types/swiper/index.d.ts | 1 + types/swiper/v2/tsconfig.json | 4 +- types/swiper/v2/tslint.json | 8 +- types/swiper/v3/tslint.json | 4 +- types/swipeview/tslint.json | 61 +- types/switchery/tslint.json | 65 +- types/swiz/tslint.json | 64 +- types/sylvester/tslint.json | 65 +- types/symbol-tree/index.d.ts | 7 + types/symbol-tree/lib/SymbolTree.d.ts | 325 + types/symbol-tree/lib/TreeIterator.d.ts | 44 + types/symbol-tree/lib/TreePosition.d.ts | 6 + types/symbol-tree/test/symbol-tree.test.ts | 44 + types/symbol-tree/tsconfig.json | 19 + types/symbol-tree/tslint.json | 1 + types/synaptic/tslint.json | 66 +- types/systemjs/v0/tsconfig.json | 4 +- types/tabbable/tsconfig.json | 2 +- types/tablesorter/test/Methods.ts | 4 +- types/tabtab/index.d.ts | 125 +- types/tabtab/tabtab-tests.ts | 67 +- types/tabtab/tsconfig.json | 16 +- types/tabtab/tslint.json | 81 +- types/tapable/index.d.ts | 7 +- types/tapable/tapable-tests.ts | 25 +- types/tapable/tslint.json | 63 +- types/tapable/v0/tslint.json | 66 +- types/tape/index.d.ts | 1 + types/tape/tslint.json | 66 +- types/tar-fs/index.d.ts | 10 +- types/tar-fs/tar-fs-tests.ts | 7 +- types/tar-stream/index.d.ts | 28 +- types/tar-stream/tar-stream-tests.ts | 67 +- types/tar-stream/v1/index.d.ts | 43 + types/tar-stream/v1/tar-stream-tests.ts | 44 + .../v1}/tsconfig.json | 10 +- types/tar-stream/v1/tslint.json | 1 + types/tar/tsconfig.json | 4 +- types/task-worklet/index.d.ts | 2 +- types/task-worklet/task-worklet-tests.ts | 4 +- types/task-worklet/ts3.1/index.d.ts | 2 +- .../task-worklet/ts3.1/task-worklet-tests.ts | 4 +- types/tea-merge/tsconfig.json | 4 +- types/tea-merge/tslint.json | 72 +- types/tedious/tslint.json | 59 +- types/teechart/tsconfig.json | 4 +- types/teechart/tslint.json | 70 +- types/telebot/tslint.json | 3 +- types/temp-fs/tsconfig.json | 4 +- types/temp-fs/tslint.json | 64 +- types/temp/tsconfig.json | 4 +- types/temp/tslint.json | 2 +- types/terminal-kit/tsconfig.json | 2 +- types/terminal-menu/tsconfig.json | 4 +- types/terminal-menu/tslint.json | 61 +- types/teslajs/index.d.ts | 178 + types/teslajs/teslajs-tests.ts | 15 + types/teslajs/tsconfig.json | 23 + types/teslajs/tslint.json | 1 + types/tesseract.js/tslint.json | 68 +- .../testing-library__cypress/OTHER_FILES.txt | 1 + .../add-commands.d.ts | 2 + types/testing-library__cypress/package.json | 2 +- .../testing-library__cypress-tests.ts | 1 + types/testing-library__dom/events.d.ts | 7 +- types/testing-library__dom/index.d.ts | 2 +- types/testing-library__dom/queries.d.ts | 9 + types/testing-library__dom/screen.d.ts | 13 +- .../testing-library__dom-tests.ts | 36 +- types/testing-library__jest-dom/index.d.ts | 36 + .../testing-library__jest-dom-global-tests.ts | 66 + .../tsconfig.json | 17 +- types/testing-library__jest-dom/tslint.json | 3 + types/testing-library__react/index.d.ts | 7 +- types/testing-library__react/package.json | 6 + types/tether-drop/tslint.json | 70 +- types/tether-shepherd/tsconfig.json | 4 +- types/tether-shepherd/tslint.json | 66 +- types/tether/tsconfig.json | 4 +- types/tether/tslint.json | 68 +- types/text-encoding/tsconfig.json | 2 +- types/text-encoding/tslint.json | 70 +- types/theme-ui/index.d.ts | 42 +- types/theme-ui/package.json | 11 +- types/theme-ui/theme-ui-tests.tsx | 28 +- types/theme-ui/tsconfig.json | 3 +- types/theme-ui__components/index.d.ts | 8 +- types/theo/tslint.json | 2 +- types/through/index.d.ts | 10 +- types/through/through-tests.ts | 14 +- types/through/tsconfig.json | 4 +- types/through/tslint.json | 73 +- types/through2/tsconfig.json | 6 +- types/through2/tslint.json | 70 +- types/through2/v0/tslint.json | 68 +- types/tile-reduce/tslint.json | 67 +- types/tilebelt/tsconfig.json | 4 +- types/tilebelt/tslint.json | 69 +- types/timelinejs/tsconfig.json | 4 +- types/timelinejs/tslint.json | 66 +- types/timelinejs3/tslint.json | 63 +- types/timezone-js/tslint.json | 64 +- types/tinder/tsconfig.json | 4 +- types/tinder/tslint.json | 58 +- types/tinycolor2/tsconfig.json | 4 +- types/tinycopy/tslint.json | 70 +- types/tinymce/index.d.ts | 2 + types/tinymce/tslint.json | 3 +- types/titanium/index.d.ts | 108019 +++++++++------ types/titanium/titanium-tests.ts | 59 +- types/titanium/tsconfig.json | 3 +- types/titanium/tslint.json | 6 +- types/title/tsconfig.json | 4 +- types/title/tslint.json | 69 +- types/tldjs/tsconfig.json | 4 +- types/tldjs/tslint.json | 73 +- types/tmp/tsconfig.json | 4 +- types/to-space-case/index.d.ts | 8 + types/to-space-case/to-space-case-tests.ts | 3 + types/to-space-case/tsconfig.json | 23 + types/to-space-case/tslint.json | 1 + types/to-title-case-gouch/tsconfig.json | 4 +- types/to-title-case-gouch/tslint.json | 76 +- types/to-title-case/index.d.ts | 8 + types/to-title-case/to-title-case-tests.ts | 3 + types/to-title-case/tsconfig.json | 23 + types/to-title-case/tslint.json | 1 + types/toastr/tslint.json | 63 +- types/tokenizr/tslint.json | 18 +- types/tooltipster/tslint.json | 57 +- types/toposort/tsconfig.json | 2 +- types/torrent-stream/tsconfig.json | 4 +- types/torrent-stream/tslint.json | 66 +- types/touch-events/tslint.json | 72 +- types/touch/tsconfig.json | 4 +- types/traceback/tsconfig.json | 4 +- types/traceback/tslint.json | 68 +- types/tracking/tslint.json | 70 +- types/transducers-js/tslint.json | 4 +- types/traverse/tsconfig.json | 4 +- types/traverse/tslint.json | 64 +- types/traverson/tslint.json | 67 +- types/trayballoon/tsconfig.json | 4 +- types/trayballoon/tslint.json | 63 +- types/tress/tslint.json | 10 +- types/trim/tslint.json | 73 +- types/trunk8/tsconfig.json | 4 +- types/trunk8/tslint.json | 73 +- types/tryghost__content-api/index.d.ts | 2 +- types/tryghost__content-api/tslint.json | 12 +- types/ts-nameof/index.d.ts | 4 +- types/tspromise/tsconfig.json | 4 +- types/tspromise/tslint.json | 65 +- types/tv4/tslint.json | 56 +- types/tween.js/index.d.ts | 13 +- types/tween.js/tsconfig.json | 4 +- types/tween.js/tslint.json | 71 +- types/tweenjs/tsconfig.json | 4 +- types/tweenjs/tslint.json | 61 +- types/twig/index.d.ts | 2 + types/twig/tsconfig.json | 4 +- types/twig/twig-tests.ts | 11 + types/twilio-common/tslint.json | 2 +- types/twilio/tslint.json | 57 +- types/twit/tsconfig.json | 4 +- types/twit/tslint.json | 65 +- types/twitter-for-web/tslint.json | 72 +- types/twitter-stream-channels/tsconfig.json | 4 +- types/twitter-stream-channels/tslint.json | 64 +- types/twitter-text/tsconfig.json | 4 +- types/twitter-text/tslint.json | 72 +- types/twix/tslint.json | 75 +- types/type-check/tsconfig.json | 4 +- types/type-check/tslint.json | 56 +- types/type-detect/tsconfig.json | 4 +- types/type-detect/tslint.json | 73 +- types/type-detect/v0/tsconfig.json | 4 +- types/type-detect/v0/tslint.json | 68 +- types/type-name/tsconfig.json | 4 +- types/type-name/tslint.json | 71 +- types/typeahead/tslint.json | 63 +- types/typedarray-pool/tsconfig.json | 4 +- types/typedarray-pool/tslint.json | 66 +- types/typescript-deferred/tsconfig.json | 4 +- types/typescript-deferred/tslint.json | 66 +- types/typography/tslint.json | 18 +- types/tz-format/tsconfig.json | 4 +- types/tz-format/tslint.json | 74 +- types/tz-lookup/index.d.ts | 7 + types/tz-lookup/tsconfig.json | 23 + types/tz-lookup/tslint.json | 1 + types/tz-lookup/tz-lookup-tests.ts | 3 + types/ua-parser-js/tsconfig.json | 4 +- types/ua-parser-js/tslint.json | 78 +- types/uglify-js/v2/tslint.json | 59 +- types/uglifycss/tsconfig.json | 4 +- types/uglifycss/tslint.json | 67 +- types/ui-grid/tslint.json | 58 +- types/ui-router-extras/tslint.json | 12 +- types/ui-select/tslint.json | 81 +- types/uid-safe/tsconfig.json | 4 +- types/uid-safe/tslint.json | 68 +- types/uikit/README.md | 89 +- types/uikit/index.d.ts | 1899 +- types/uikit/tsconfig.json | 44 +- types/uikit/uikit-tests.ts | 185 +- types/uikit/v2/README.md | 88 + types/uikit/v2/index.d.ts | 1441 + types/uikit/v2/tsconfig.json | 32 + types/uikit/v2/tslint.json | 1 + types/uikit/v2/uikit-tests.ts | 186 + types/umbraco/tslint.json | 60 +- types/umd/tslint.json | 70 +- types/umzug/index.d.ts | 8 +- types/umzug/tsconfig.json | 4 +- types/umzug/tslint.json | 65 +- types/underscore-ko/tsconfig.json | 4 +- types/underscore-ko/tslint.json | 73 +- types/underscore.string/tsconfig.json | 4 +- types/underscore.string/tslint.json | 72 +- types/underscore/tslint.json | 2 +- types/undertaker-registry/tslint.json | 2 +- types/undertaker/tslint.json | 3 +- types/uniq/tsconfig.json | 4 +- types/uniq/tslint.json | 62 +- types/unity-webapi/tsconfig.json | 4 +- types/unity-webapi/tslint.json | 69 +- types/universalify/index.d.ts | 7 + types/universalify/tsconfig.json | 23 + types/universalify/tslint.json | 1 + types/universalify/universalify-tests.ts | 4 + types/unorm/tsconfig.json | 4 +- types/unorm/tslint.json | 72 +- types/unzipper/index.d.ts | 2 +- types/update-notifier/index.d.ts | 46 +- types/update-notifier/tsconfig.json | 4 +- .../update-notifier/update-notifier-tests.ts | 33 +- types/update-notifier/v1/tsconfig.json | 4 +- types/update-notifier/v2/index.d.ts | 60 + types/update-notifier/v2/tsconfig.json | 29 + types/update-notifier/v2/tslint.json | 1 + .../v2/update-notifier-tests.ts | 48 + types/urbanairship-cordova/tsconfig.json | 4 +- types/urbanairship-cordova/tslint.json | 65 +- types/uri-templates/tslint.json | 73 +- types/urijs/index.d.ts | 459 +- types/urijs/src/URITemplate.d.ts | 44 + types/urijs/test/urijs-dom.test.ts | 6 +- types/urijs/test/urijs-global-module.test.ts | 5 + types/urijs/test/urijs-global-script.test.ts | 5 + types/urijs/test/urijs-nodejs.test.ts | 8 +- types/urijs/tsconfig.json | 4 +- types/uritemplate/tslint.json | 2 +- types/url-template/tsconfig.json | 4 +- types/url-template/tslint.json | 70 +- types/urlrouter/tslint.json | 69 +- types/urlsafe-base64/tsconfig.json | 4 +- types/urlsafe-base64/tslint.json | 69 +- types/usage/tsconfig.json | 4 +- types/usage/tslint.json | 66 +- types/use-persisted-state/tslint.json | 18 +- types/use-resize-observer/index.d.ts | 83 +- types/use-resize-observer/polyfilled.d.ts | 3 + .../use-resize-observer-tests.ts | 73 +- types/useragent/tslint.json | 70 +- types/username/tsconfig.json | 4 +- types/username/tslint.json | 73 +- types/uslug/tsconfig.json | 4 +- types/utf8/tsconfig.json | 4 +- types/utf8/tslint.json | 72 +- types/util.promisify/auto.d.ts | 14 +- types/util.promisify/implementation.d.ts | 59 + types/util.promisify/index.d.ts | 76 +- types/util.promisify/polyfill.d.ts | 30 +- types/util.promisify/shim.d.ts | 5 +- types/util.promisify/tsconfig.json | 40 +- types/util.promisify/util.promisify-tests.ts | 36 +- types/utils-merge/tsconfig.json | 4 +- types/utils-merge/tslint.json | 77 +- types/uuid-1345/tsconfig.json | 4 +- types/uuid-1345/tslint.json | 79 +- types/uuid-apikey/index.d.ts | 33 + types/uuid-apikey/tsconfig.json | 23 + types/uuid-apikey/tslint.json | 1 + types/uuid-apikey/uuid-apikey-tests.ts | 5 + types/uuid/index.d.ts | 18 +- types/uuid/interfaces.d.ts | 38 +- types/uuid/uuid-tests.ts | 89 +- types/uuid/v2/tsconfig.json | 4 +- types/uuid/v2/tslint.json | 72 +- types/uuid/v3/index.d.ts | 23 + types/uuid/v3/interfaces.d.ts | 24 + types/uuid/v3/tsconfig.json | 31 + types/uuid/v3/tslint.json | 6 + types/uuid/v3/uuid-tests.ts | 63 + types/uuid/{ => v3}/v1.d.ts | 0 types/uuid/{ => v3}/v4.d.ts | 0 types/uuid/{ => v3}/v5.d.ts | 0 types/uws/tsconfig.json | 4 +- types/uws/tslint.json | 66 +- types/v8-profiler/tsconfig.json | 4 +- types/v8-profiler/tslint.json | 64 +- types/valdr-message/tslint.json | 67 +- types/valdr/tslint.json | 65 +- types/valerie/tslint.json | 52 +- types/valid-url/tslint.json | 71 +- types/validatorjs/tslint.json | 73 +- types/vast-client/index.d.ts | 14 + types/vast-client/tslint.json | 6 +- types/vast-client/vast-client-tests.ts | 9 + types/vcards-js/index.d.ts | 257 + types/vcards-js/tsconfig.json | 24 + types/vcards-js/tslint.json | 1 + types/vcards-js/vcards-js-tests.ts | 10 + types/vec3/tsconfig.json | 4 +- types/vec3/tslint.json | 82 +- types/vectorious/tslint.json | 64 +- types/venn/tslint.json | 8 +- types/vex-js/tsconfig.json | 4 +- types/vex-js/tslint.json | 70 +- types/vexflow/tslint.json | 59 +- types/victor/tsconfig.json | 4 +- types/victor/tslint.json | 65 +- types/victory/index.d.ts | 91 +- types/victory/tslint.json | 8 +- types/victory/victory-tests.tsx | 25 + types/video.js/tslint.json | 18 +- types/viewporter/index.d.ts | 2 +- types/viewporter/tslint.json | 64 +- types/vimeo/tsconfig.json | 4 +- types/vimeo/tslint.json | 70 +- types/vimeo__player/tslint.json | 8 +- types/vinyl-buffer/tsconfig.json | 4 +- types/vinyl-fs/v0/tsconfig.json | 4 +- types/vinyl-fs/v1/tsconfig.json | 4 +- types/vinyl-paths/tsconfig.json | 4 +- types/vinyl-paths/tslint.json | 68 +- types/vinyl-source-stream/tsconfig.json | 4 +- types/vinyl-source-stream/tslint.json | 73 +- types/vinyl/tslint.json | 2 +- types/vinyl/v0/tslint.json | 64 +- types/virtual-dom/tsconfig.json | 4 +- types/virtual-dom/tslint.json | 69 +- types/virtual-keyboard/tslint.json | 18 +- types/vis/tslint.json | 6 +- types/vision/v4/tslint.json | 65 +- types/vitalsigns/tslint.json | 65 +- types/vivus/index.d.ts | 7 +- types/vivus/tslint.json | 68 +- types/vkbeautify/tsconfig.json | 4 +- types/vndb/index.d.ts | 43 + types/vndb/tsconfig.json | 16 + types/vndb/tslint.json | 1 + types/vndb/vndb-tests.ts | 14 + types/voronoi-diagram/tslint.json | 71 +- types/vortex-web-client/tsconfig.json | 4 +- types/vortex-web-client/tslint.json | 62 +- types/voximplant-websdk/tsconfig.json | 4 +- types/voximplant-websdk/tslint.json | 54 +- types/vscode/index.d.ts | 502 +- types/vscode/tslint.json | 59 +- types/vue-chartkick/tslint.json | 7 +- types/vue-feather-icons/index.d.ts | 300 + types/vue-feather-icons/package.json | 6 + types/vue-feather-icons/tsconfig.json | 25 + types/vue-feather-icons/tslint.json | 1 + .../vue-feather-icons-tests.ts | 6 + types/vue-moment/tslint.json | 7 +- types/vuelidate/tslint.json | 2 +- types/vuelidate/vue.d.ts | 2 +- types/w2ui/tsconfig.json | 4 +- types/w2ui/tslint.json | 65 +- types/w3c-gamepad/tsconfig.json | 2 +- types/w3c-gamepad/tslint.json | 59 +- .../ts3.2/tsconfig.json | 2 +- types/w3c-screen-orientation/tsconfig.json | 4 +- types/wait-on/index.d.ts | 13 +- types/wait-on/wait-on-tests.ts | 2 + types/waitme/tslint.json | 74 +- types/wake_on_lan/tsconfig.json | 4 +- types/wake_on_lan/tslint.json | 61 +- types/wallabyjs/tslint.json | 64 +- types/wampy/tslint.json | 63 +- types/warning/tsconfig.json | 4 +- types/warning/tslint.json | 72 +- types/watch/tsconfig.json | 4 +- types/watchify/index.d.ts | 75 +- types/watchify/tsconfig.json | 4 +- types/watchify/tslint.json | 81 +- types/watchify/watchify-tests.ts | 75 +- types/waterline/tslint.json | 65 +- types/weapp-api/tsconfig.json | 2 +- types/weapp-api/tslint.json | 49 +- types/web-bluetooth/tslint.json | 72 +- types/webassembly-web-api/tslint.json | 6 +- types/webcl/tslint.json | 56 +- types/webcomponents.js/tslint.json | 2 +- types/webcrypto/tsconfig.json | 4 +- types/webcrypto/tslint.json | 74 +- types/webfontloader/tsconfig.json | 4 +- types/webfontloader/tslint.json | 59 +- types/webgl-ext/tslint.json | 70 +- types/webgl2/tslint.json | 12 +- types/webicon/tslint.json | 16 +- types/webmidi/index.d.ts | 417 +- types/webmidi/tsconfig.json | 4 +- types/webmidi/webmidi-tests.ts | 45 +- types/webpack-concat-plugin/index.d.ts | 60 + types/webpack-concat-plugin/tsconfig.json | 23 + types/webpack-concat-plugin/tslint.json | 1 + .../webpack-concat-plugin-tests.ts | 58 + types/webpack-dev-middleware/index.d.ts | 128 +- types/webpack-dev-middleware/v2/index.d.ts | 55 + types/webpack-dev-middleware/v2/tsconfig.json | 28 + types/webpack-dev-middleware/v2/tslint.json | 1 + .../v2/webpack-dev-middleware-tests.ts | 50 + .../webpack-dev-middleware-tests.ts | 56 +- types/webpack-dev-server/index.d.ts | 9 +- types/webpack-dev-server/tsconfig.json | 4 +- .../webpack-dev-server-tests.ts | 1 + types/webpack-env/index.d.ts | 7 + types/webpack-env/tsconfig.json | 4 +- types/webpack-env/tslint.json | 58 +- types/webpack-error-notification/index.d.ts | 30 + .../webpack-error-notification/tsconfig.json | 23 + types/webpack-error-notification/tslint.json | 1 + .../webpack-error-notification-tests.ts | 43 + types/webpack-fail-plugin/tsconfig.json | 4 +- types/webpack-fail-plugin/tslint.json | 70 +- types/webpack-hot-client/index.d.ts | 94 +- .../webpack-hot-client-tests.ts | 9 +- types/webpack-merge/v0/tsconfig.json | 4 +- types/webpack-merge/v0/tslint.json | 71 +- types/webpack-node-externals/index.d.ts | 6 +- .../webpack-node-externals-tests.ts | 35 +- types/webpack-serve/v1/webpack-serve-tests.ts | 2 +- types/webpack-sources/index.d.ts | 3 +- types/webpack-sources/tslint.json | 2 +- .../webpack-sources/webpack-sources-tests.ts | 1 + types/webpack-validator/tsconfig.json | 4 +- types/webpack-validator/tslint.json | 70 +- types/webpack/OTHER_FILES.txt | 1 + types/webpack/index.d.ts | 69 +- types/webpack/next.d.ts | 49 + .../{webpack-tests.ts => test/index.ts} | 44 +- types/webpack/test/next.ts | 18 + types/webpack/tsconfig.json | 3 +- types/webrtc/RTCPeerConnection.d.ts | 2 +- types/webrtc/tslint.json | 5 +- .../tslint.json | 18 +- types/website-scraper/tslint.json | 71 +- types/websocket/tslint.json | 2 +- types/websql/tslint.json | 54 +- types/webvr-api/tslint.json | 66 +- types/weighted/tsconfig.json | 4 +- types/weighted/tslint.json | 67 +- types/weixin-app/index.d.ts | 16 +- types/weixin-app/tslint.json | 12 +- types/wellknown/index.d.ts | 34 +- types/wellknown/tslint.json | 18 +- types/wellknown/wellknown-tests.ts | 9 +- types/when/tslint.json | 54 +- types/which/tslint.json | 65 +- types/why-did-you-update/tsconfig.json | 4 +- types/why-did-you-update/tslint.json | 71 +- types/wiiu/tslint.json | 65 +- types/window-size/tsconfig.json | 4 +- types/window-size/tslint.json | 70 +- types/windows-1251/tsconfig.json | 4 +- types/windows-1251/tslint.json | 64 +- types/windows-service/tslint.json | 70 +- types/winjs/tsconfig.json | 4 +- types/winjs/tslint.json | 54 +- types/winjs/v1/tslint.json | 57 +- types/winjs/v2/tslint.json | 56 +- types/winreg/tsconfig.json | 4 +- types/winreg/tslint.json | 57 +- types/winrt-uwp/tsconfig.json | 4 +- types/winrt-uwp/tslint.json | 58 +- types/winrt/tsconfig.json | 4 +- types/winrt/tslint.json | 61 +- types/winston-dynamodb/tslint.json | 64 +- types/winston-loggly-bulk/index.d.ts | 55 + types/winston-loggly-bulk/package.json | 6 + types/winston-loggly-bulk/tsconfig.json | 17 + types/winston-loggly-bulk/tslint.json | 3 + .../winston-loggly-bulk-tests.ts | 25 + types/winston-syslog/tslint.json | 4 +- types/winston-syslog/v1/tsconfig.json | 2 +- types/wiredep/tsconfig.json | 4 +- types/wiredep/tslint.json | 64 +- types/wiring-pi/tsconfig.json | 4 +- types/wiring-pi/tslint.json | 69 +- types/wnumb/index.d.ts | 137 +- types/wnumb/tsconfig.json | 4 +- types/wnumb/tslint.json | 18 +- types/wnumb/wnumb-tests.ts | 12 +- types/wonder.js/tslint.json | 62 +- types/wordcloud/tsconfig.json | 4 +- types/wordcloud/tslint.json | 3 +- types/wordpress-hash-node/index.d.ts | 7 + types/wordpress-hash-node/tsconfig.json | 23 + types/wordpress-hash-node/tslint.json | 1 + .../wordpress-hash-node-tests.ts | 4 + .../color-palette/with-color-context.d.ts | 4 +- .../card/body/index.d.ts | 27 + .../card/divider/index.d.ts | 25 + .../card/footer/index.d.ts | 32 + .../card/header/index.d.ts | 32 + types/wordpress__components/card/index.d.ts | 36 + .../card/media/index.d.ts | 18 + types/wordpress__components/index.d.ts | 8 +- types/wordpress__components/modal/index.d.ts | 7 + .../wordpress__components-tests.tsx | 42 +- types/wordpress__data/index.d.ts | 21 +- types/wordpress__data/tslint.json | 2 +- .../wordpress__data/wordpress__data-tests.tsx | 3 + types/wordpress__date/tslint.json | 7 +- types/workbox-build/_types.d.ts | 150 + types/workbox-build/generate-sw.d.ts | 266 + types/workbox-build/get-manifest.d.ts | 116 + types/workbox-build/index.d.ts | 11 + types/workbox-build/inject-manifest.d.ts | 138 + .../lib/copy-workbox-libraries.d.ts | 1 + types/workbox-build/lib/get-module-url.d.ts | 1 + types/workbox-build/tsconfig.json | 24 + types/workbox-build/tslint.json | 1 + types/workbox-build/workbox-build-tests.ts | 73 + types/workbox-sw/tslint.json | 16 +- types/workbox-sw/v3/index.d.ts | 2 +- types/workbox-sw/v3/tslint.json | 7 +- types/workbox-webpack-plugin/index.d.ts | 32 +- .../workbox-webpack-plugin-tests.ts | 6 +- types/wrap-ansi/tsconfig.json | 4 +- types/wrap-ansi/tslint.json | 72 +- types/wrap-ansi/v2/tsconfig.json | 2 +- types/wrap-ansi/v2/tslint.json | 71 +- types/wreck/tslint.json | 65 +- types/wreck/v7/tsconfig.json | 4 +- types/wreck/v7/tslint.json | 67 +- types/wrench/tslint.json | 70 +- .../writable-consumable-stream/consumer.d.ts | 43 + types/writable-consumable-stream/index.d.ts | 36 + .../writable-consumable-stream/tsconfig.json | 24 + types/writable-consumable-stream/tslint.json | 3 + .../writable-consumable-stream-tests.ts | 49 + types/ws/index.d.ts | 26 +- types/ws/tsconfig.json | 4 +- types/ws/ws-tests.ts | 12 + types/wu/index.d.ts | 5 + types/wu/tsconfig.json | 4 +- types/x-editable/tsconfig.json | 4 +- types/x-editable/tslint.json | 65 +- types/x509.js/index.d.ts | 28 + types/x509.js/tsconfig.json | 23 + types/x509.js/tslint.json | 1 + types/x509.js/x509.js-tests.ts | 5 + types/xdate/tsconfig.json | 4 +- types/xdate/tslint.json | 53 +- types/xdomain/tsconfig.json | 4 +- types/xdomain/tslint.json | 67 +- types/xml-parser/tsconfig.json | 4 +- types/xml-parser/tslint.json | 71 +- types/xml2js/tslint.json | 3 +- types/xmldom/tsconfig.json | 4 +- types/xmldom/tslint.json | 58 +- types/xmlpoke/tsconfig.json | 4 +- types/xmlpoke/tslint.json | 70 +- types/xmlrpc/tslint.json | 67 +- types/xmltojson/tsconfig.json | 4 +- types/xmltojson/tslint.json | 66 +- types/xmpp__jid/tslint.json | 2 +- types/xo/index.d.ts | 66 + types/xo/tsconfig.json | 23 + types/xo/tslint.json | 1 + types/xo/xo-tests.ts | 65 + types/xregexp/tslint.json | 68 +- types/xrm/index.d.ts | 55 +- types/xrm/tslint.json | 15 +- types/xrm/v6/tslint.json | 64 +- types/xrm/v7/tslint.json | 65 +- types/xrm/v8/tslint.json | 12 +- types/xsd-schema-validator/tslint.json | 18 +- types/xsockets/tsconfig.json | 4 +- types/xsockets/tslint.json | 64 +- types/xss-filters/tsconfig.json | 4 +- types/xss-filters/tslint.json | 65 +- types/xtend/tslint.json | 72 +- types/xumm-api/index.d.ts | 181 + types/xumm-api/tsconfig.json | 23 + types/xumm-api/tslint.json | 3 + types/xumm-api/xumm-api-tests.ts | 255 + types/yadda/tslint.json | 2 +- types/yallist/tslint.json | 2 +- types/yamljs/tsconfig.json | 4 +- types/yamljs/tslint.json | 68 +- types/yandex-maps/index.d.ts | 2 +- types/yandex-maps/tslint.json | 9 +- types/yandex-money-sdk/tslint.json | 68 +- types/yargs-parser/index.d.ts | 4 +- types/yargs/index.d.ts | 28 +- types/yargs/tslint.json | 8 +- types/yargs/v10/index.d.ts | 3 +- types/yargs/v10/tslint.json | 2 +- types/yargs/v10/yargs-tests.ts | 14 +- types/yargs/v11/index.d.ts | 3 +- types/yargs/v11/tslint.json | 2 +- types/yargs/v11/yargs-tests.ts | 14 +- types/yargs/v12/index.d.ts | 4 +- types/yargs/v12/tslint.json | 2 +- types/yargs/v12/yargs-tests.ts | 19 +- types/yargs/v13/.editorconfig | 5 + types/yargs/v13/index.d.ts | 777 + types/{hapi__boom => yargs/v13}/tsconfig.json | 16 +- types/yargs/v13/tslint.json | 6 + types/yargs/v13/yargs-tests.ts | 1183 + types/yargs/v13/yargs.d.ts | 9 + types/yargs/v8/index.d.ts | 2 +- types/yargs/v8/tslint.json | 2 +- types/yargs/v8/yargs-tests.ts | 3 +- types/yargs/yargs-tests.ts | 66 +- types/yarnpkg__lockfile/tslint.json | 18 +- types/yawn-yaml/cjs/index.d.ts | 7 + types/yawn-yaml/index.d.ts | 11 + types/yawn-yaml/tsconfig.json | 23 + types/yawn-yaml/tslint.json | 1 + types/yawn-yaml/yawn-yaml-tests.ts | 7 + types/yayson/tslint.json | 70 +- types/ydn-db/tslint.json | 57 +- types/yeoman-environment/index.d.ts | 2 +- .../yeoman-environment-tests.ts | 6 +- types/yog-log/tslint.json | 9 +- types/yog2-kernel/tslint.json | 1 - types/yosay/tsconfig.json | 4 +- types/yosay/tslint.json | 74 +- types/youtube-player/dist/types.d.ts | 2 +- types/youtube/tsconfig.json | 4 +- types/youtube/tslint.json | 69 +- types/yui/tsconfig.json | 4 +- types/yui/tslint.json | 68 +- types/yup/index.d.ts | 25 +- types/yup/yup-tests.ts | 56 +- types/zen-observable/tslint.json | 11 +- types/zepto/tsconfig.json | 4 +- types/zepto/tslint.json | 53 +- types/zeroclipboard/tslint.json | 51 +- types/zeroclipboard/v1/tslint.json | 66 +- types/zingchart/index.d.ts | 18077 +++ types/zingchart/tsconfig.json | 23 + types/zingchart/tslint.json | 3 + types/zingchart/zingchart-tests.ts | 11 + types/zip.js/tsconfig.json | 4 +- types/zip.js/tslint.json | 67 +- types/zmq/tsconfig.json | 4 +- types/zmq/tslint.json | 65 +- types/zrender/tslint.json | 6 +- types/zui/tslint.json | 3 +- 6523 files changed, 221198 insertions(+), 196094 deletions(-) create mode 100644 types/ag-channel/ag-channel-tests.ts create mode 100644 types/ag-channel/index.d.ts rename types/{hapi__lab => ag-channel}/tsconfig.json (80%) rename types/{hapi__iron => ag-channel}/tslint.json (100%) create mode 100644 types/ag-simple-broker/ag-simple-broker-tests.ts create mode 100644 types/ag-simple-broker/index.d.ts rename types/{hapi__cryptiles => ag-simple-broker}/tsconfig.json (76%) rename types/{jest-matcher-utils => ag-simple-broker}/tslint.json (100%) create mode 100644 types/alex/alex-tests.ts create mode 100644 types/alex/index.d.ts rename types/{jest-matcher-utils => alex}/package.json (67%) rename types/{jest-matchers => alex}/tsconfig.json (93%) rename types/{hapi__accept => alex}/tslint.json (100%) create mode 100644 types/amap-js-api-transfer/amap-js-api-transfer-tests.ts create mode 100644 types/amap-js-api-transfer/index.d.ts create mode 100644 types/amap-js-api-transfer/tsconfig.json rename types/{roads-server => amap-js-api-transfer}/tslint.json (100%) create mode 100644 types/amap-js-api/plugin.d.ts create mode 100644 types/amplitude-js/v4/amplitude-js-tests.ts create mode 100644 types/amplitude-js/v4/index.d.ts create mode 100644 types/amplitude-js/v4/tsconfig.json create mode 100644 types/amplitude-js/v4/tslint.json create mode 100644 types/angular-aria/angular-aria-tests.ts create mode 100644 types/angular-aria/index.d.ts create mode 100644 types/angular-aria/tsconfig.json create mode 100644 types/angular-aria/tslint.json create mode 100644 types/apple-signin-api/apple-signin-api-tests.ts create mode 100644 types/apple-signin-api/index.d.ts rename types/{jest-matcher-utils => apple-signin-api}/tsconfig.json (92%) rename types/{hapi__code => apple-signin-api}/tslint.json (100%) create mode 100644 types/array-initial/array-initial-tests.ts create mode 100644 types/array-initial/index.d.ts create mode 100644 types/array-initial/tsconfig.json rename types/{hapi__cryptiles => array-initial}/tslint.json (100%) create mode 100644 types/assert/package.json create mode 100644 types/assert/ts3.7/assert-tests.ts create mode 100644 types/assert/ts3.7/index.d.ts create mode 100644 types/assert/ts3.7/tsconfig.json rename types/{hapi__hoek => assert/ts3.7}/tslint.json (100%) create mode 100644 types/async-iterable-stream/async-iterable-stream-tests.ts create mode 100644 types/async-iterable-stream/index.d.ts create mode 100644 types/async-iterable-stream/tsconfig.json rename types/{roads => async-iterable-stream}/tslint.json (100%) create mode 100644 types/async-stream-emitter/async-stream-emitter-tests.ts create mode 100644 types/async-stream-emitter/index.d.ts create mode 100644 types/async-stream-emitter/tsconfig.json create mode 100644 types/async-stream-emitter/tslint.json create mode 100644 types/aws-lambda/README.md create mode 100644 types/aws-lambda/common/api-gateway.d.ts create mode 100644 types/aws-lambda/common/cloudfront.d.ts create mode 100644 types/aws-lambda/handler.d.ts create mode 100644 types/aws-lambda/test/alb-tests.ts create mode 100644 types/aws-lambda/test/api-gateway-tests.ts create mode 100644 types/aws-lambda/test/cloudformation-tests.ts create mode 100644 types/aws-lambda/test/cloudfront-tests.ts create mode 100644 types/aws-lambda/test/cloudwatch-tests.ts create mode 100644 types/aws-lambda/test/codepipeline-tests.ts create mode 100644 types/aws-lambda/test/cognito-tests.ts create mode 100644 types/aws-lambda/test/dynamodb-tests.ts create mode 100644 types/aws-lambda/test/kinesis-tests.ts create mode 100644 types/aws-lambda/test/lex-tests.ts create mode 100644 types/aws-lambda/test/s3-tests.ts create mode 100644 types/aws-lambda/test/sns-tests.ts create mode 100644 types/aws-lambda/test/sqs-tests.ts create mode 100644 types/aws-lambda/trigger/alb.d.ts create mode 100644 types/aws-lambda/trigger/api-gateway-authorizer.d.ts create mode 100644 types/aws-lambda/trigger/api-gateway-proxy.d.ts create mode 100644 types/aws-lambda/trigger/cloudformation-custom-resource.d.ts create mode 100644 types/aws-lambda/trigger/cloudfront-request.d.ts create mode 100644 types/aws-lambda/trigger/cloudfront-response.d.ts create mode 100644 types/aws-lambda/trigger/cloudwatch-events.d.ts create mode 100644 types/aws-lambda/trigger/cloudwatch-logs.d.ts create mode 100644 types/aws-lambda/trigger/codepipeline-cloudwatch-action.d.ts create mode 100644 types/aws-lambda/trigger/codepipeline-cloudwatch-pipeline.d.ts create mode 100644 types/aws-lambda/trigger/codepipeline-cloudwatch-stage.d.ts create mode 100644 types/aws-lambda/trigger/codepipeline-cloudwatch.d.ts create mode 100644 types/aws-lambda/trigger/codepipeline.d.ts create mode 100644 types/aws-lambda/trigger/cognito-user-pool-trigger.d.ts create mode 100644 types/aws-lambda/trigger/dynamodb-stream.d.ts create mode 100644 types/aws-lambda/trigger/kinesis-firehose-transformation.d.ts create mode 100644 types/aws-lambda/trigger/kinesis-stream.d.ts create mode 100644 types/aws-lambda/trigger/lex.d.ts create mode 100644 types/aws-lambda/trigger/s3-batch.d.ts create mode 100644 types/aws-lambda/trigger/s3.d.ts create mode 100644 types/aws-lambda/trigger/sns.d.ts create mode 100644 types/aws-lambda/trigger/sqs.d.ts create mode 100644 types/azdata/azdata-tests.ts create mode 100644 types/azdata/index.d.ts create mode 100644 types/azdata/tsconfig.json create mode 100644 types/azdata/tslint.json create mode 100644 types/base64-stream/base64-stream-tests.ts create mode 100644 types/base64-stream/index.d.ts create mode 100644 types/base64-stream/tsconfig.json create mode 100644 types/base64-stream/tslint.json create mode 100644 types/bazinga-translator/test/bazinga-translator-tests.commonjs.ts rename types/bazinga-translator/{bazinga-translator-tests.ts => test/bazinga-translator-tests.umd.ts} (100%) create mode 100644 types/bearcat-es6/bearcat-es6-tests.ts create mode 100644 types/bearcat-es6/index.d.ts rename types/{jest-docblock => bearcat-es6}/tsconfig.json (93%) rename types/{hapi__topo => bearcat-es6}/tslint.json (100%) create mode 100644 types/blazor__javascript-interop/blazor__javascript-interop-tests.ts create mode 100644 types/blazor__javascript-interop/index.d.ts rename types/{hapi__accept => blazor__javascript-interop}/tsconfig.json (77%) rename types/{hast-format => blazor__javascript-interop}/tslint.json (100%) create mode 100644 types/box-intersect/box-intersect-tests.ts create mode 100644 types/box-intersect/index.d.ts create mode 100644 types/box-intersect/tsconfig.json create mode 100644 types/box-intersect/tslint.json create mode 100644 types/bresenham/bresenham-tests.ts create mode 100644 types/bresenham/generator.d.ts create mode 100644 types/bresenham/index.d.ts rename types/{jest-validate => bresenham}/tsconfig.json (93%) rename types/{jest-docblock => bresenham}/tslint.json (100%) create mode 100644 types/brotli-webpack-plugin/brotli-webpack-plugin-tests.ts create mode 100644 types/brotli-webpack-plugin/index.d.ts create mode 100644 types/brotli-webpack-plugin/tsconfig.json rename types/{jest-matchers => brotli-webpack-plugin}/tslint.json (100%) create mode 100644 types/browser-or-node/browser-or-node-tests.ts create mode 100644 types/browser-or-node/index.d.ts create mode 100644 types/browser-or-node/tsconfig.json create mode 100644 types/browser-or-node/tslint.json create mode 100644 types/buffer-split/buffer-split-tests.ts create mode 100644 types/buffer-split/index.d.ts create mode 100644 types/buffer-split/tsconfig.json rename types/{jest-validate => buffer-split}/tslint.json (100%) create mode 100644 types/bull-board/bull-board-tests.ts create mode 100644 types/bull-board/index.d.ts create mode 100644 types/bull-board/tsconfig.json rename types/{markerclustererplus => bull-board}/tslint.json (100%) create mode 100644 types/bulma-calendar/bulma-calendar-tests.ts create mode 100644 types/bulma-calendar/index.d.ts create mode 100644 types/bulma-calendar/tsconfig.json rename types/{mkdirp-promise => bulma-calendar}/tslint.json (100%) create mode 100644 types/carbone/carbone-tests.ts create mode 100644 types/carbone/index.d.ts create mode 100644 types/carbone/tsconfig.json rename types/{storybook__addon-storyshots-puppeteer => carbone}/tslint.json (100%) create mode 100644 types/cfenv/cfenv-tests.ts create mode 100644 types/cfenv/index.d.ts create mode 100644 types/cfenv/tsconfig.json rename types/{storybook__addon-storyshots => cfenv}/tslint.json (100%) create mode 100644 types/chai-style/chai-style-tests.ts create mode 100644 types/chai-style/index.d.ts create mode 100644 types/chai-style/tsconfig.json create mode 100644 types/chai-style/tslint.json rename types/{storybook__addon-storyshots => chart.js}/package.json (58%) create mode 100644 types/clarinet/clarinet-tests.ts create mode 100644 types/clarinet/index.d.ts create mode 100644 types/clarinet/tsconfig.json create mode 100644 types/clarinet/tslint.json create mode 100644 types/clean-git-ref/clean-git-ref-tests.ts create mode 100644 types/clean-git-ref/index.d.ts create mode 100644 types/clean-git-ref/tsconfig.json create mode 100644 types/clean-git-ref/tslint.json create mode 100644 types/cli-color/art.d.ts create mode 100644 types/cli-color/bare.d.ts create mode 100644 types/cli-color/beep.d.ts create mode 100644 types/cli-color/columns.d.ts create mode 100644 types/cli-color/erase.d.ts create mode 100644 types/cli-color/get-stripped-length.d.ts create mode 100644 types/cli-color/move.d.ts create mode 100644 types/cli-color/reset.d.ts create mode 100644 types/cli-color/slice.d.ts create mode 100644 types/cli-color/strip.d.ts delete mode 100644 types/cli-color/trim.d.ts create mode 100644 types/cli-color/window-size.d.ts create mode 100644 types/cloudevents-sdk/cloudevents-sdk-tests.ts create mode 100644 types/cloudevents-sdk/index.d.ts create mode 100644 types/cloudevents-sdk/tsconfig.json create mode 100644 types/cloudevents-sdk/tslint.json create mode 100644 types/clownface/lib/Context.d.ts create mode 100644 types/cnpj/cnpj-tests.ts create mode 100644 types/cnpj/index.d.ts create mode 100644 types/cnpj/tsconfig.json create mode 100644 types/cnpj/tslint.json create mode 100644 types/codemirror/addon/display/autorefresh.d.ts create mode 100644 types/codemirror/test/addon/display/autorefresh.ts create mode 100644 types/color-hash/color-hash-tests.ts create mode 100644 types/color-hash/index.d.ts create mode 100644 types/color-hash/tsconfig.json create mode 100644 types/color-hash/tslint.json create mode 100644 types/combinations/combinations-tests.ts create mode 100644 types/combinations/index.d.ts create mode 100644 types/combinations/tsconfig.json create mode 100644 types/combinations/tslint.json create mode 100644 types/commitlint__load/commitlint__load-tests.ts create mode 100644 types/commitlint__load/index.d.ts create mode 100644 types/commitlint__load/tsconfig.json create mode 100644 types/commitlint__load/tslint.json create mode 100644 types/concurrently/v4/concurrently-tests.ts create mode 100644 types/concurrently/v4/index.d.ts create mode 100644 types/concurrently/v4/tsconfig.json create mode 100644 types/concurrently/v4/tslint.json create mode 100644 types/conditional/conditional-tests.ts create mode 100644 types/conditional/index.d.ts create mode 100644 types/conditional/tsconfig.json create mode 100644 types/conditional/tslint.json create mode 100644 types/configs-overload/configs-overload-tests.ts create mode 100644 types/configs-overload/index.d.ts create mode 100644 types/configs-overload/tsconfig.json create mode 100644 types/configs-overload/tslint.json delete mode 100644 types/connect-mongo/connect-mongo-tests.ts delete mode 100644 types/connect-mongo/index.d.ts delete mode 100644 types/connect-mongo/tsconfig.json delete mode 100644 types/connect-mongo/tslint.json create mode 100644 types/consumable-stream/consumable-stream-tests.ts create mode 100644 types/consumable-stream/index.d.ts create mode 100644 types/consumable-stream/tsconfig.json create mode 100644 types/consumable-stream/tslint.json create mode 100644 types/contentstack/contentstack-tests.ts create mode 100644 types/contentstack/index.d.ts create mode 100644 types/contentstack/tsconfig.json create mode 100644 types/contentstack/tslint.json create mode 100644 types/contract-proxy-kit/contract-proxy-kit-tests.ts create mode 100644 types/contract-proxy-kit/index.d.ts create mode 100644 types/contract-proxy-kit/package.json create mode 100644 types/contract-proxy-kit/tsconfig.json create mode 100644 types/contract-proxy-kit/tslint.json create mode 100644 types/conventional-changelog-config-spec/OTHER_FILES.txt create mode 100644 types/conventional-changelog-config-spec/conventional-changelog-config-spec-tests.ts create mode 100644 types/conventional-changelog-config-spec/index.d.ts create mode 100644 types/conventional-changelog-config-spec/tsconfig.json create mode 100644 types/conventional-changelog-config-spec/tslint.json create mode 100644 types/conventional-changelog-config-spec/versions/1.0.0/schema.json.d.ts create mode 100644 types/conventional-changelog-config-spec/versions/2.0.0/schema.json.d.ts create mode 100644 types/conventional-changelog-config-spec/versions/2.1.0/schema.json.d.ts create mode 100644 types/conventional-changelog-core/conventional-changelog-core-tests.ts create mode 100644 types/conventional-changelog-core/index.d.ts create mode 100644 types/conventional-changelog-core/tsconfig.json create mode 100644 types/conventional-changelog-core/tslint.json create mode 100644 types/conventional-changelog-preset-loader/conventional-changelog-preset-loader-tests.ts create mode 100644 types/conventional-changelog-preset-loader/index.d.ts create mode 100644 types/conventional-changelog-preset-loader/tsconfig.json create mode 100644 types/conventional-changelog-preset-loader/tslint.json create mode 100644 types/conventional-changelog-writer/conventional-changelog-writer-tests.ts create mode 100644 types/conventional-changelog-writer/index.d.ts create mode 100644 types/conventional-changelog-writer/tsconfig.json create mode 100644 types/conventional-changelog-writer/tslint.json create mode 100644 types/conventional-changelog/conventional-changelog-tests.ts create mode 100644 types/conventional-changelog/index.d.ts create mode 100644 types/conventional-changelog/tsconfig.json create mode 100644 types/conventional-changelog/tslint.json create mode 100644 types/conventional-commits-parser/conventional-commits-parser-tests.ts create mode 100644 types/conventional-commits-parser/index.d.ts create mode 100644 types/conventional-commits-parser/tsconfig.json create mode 100644 types/conventional-commits-parser/tslint.json create mode 100644 types/conventional-recommended-bump/conventional-recommended-bump-tests.ts create mode 100644 types/conventional-recommended-bump/index.d.ts create mode 100644 types/conventional-recommended-bump/tsconfig.json create mode 100644 types/conventional-recommended-bump/tslint.json create mode 100644 types/cron-converter/cron-converter-tests.ts create mode 100644 types/cron-converter/index.d.ts create mode 100644 types/cron-converter/package.json create mode 100644 types/cron-converter/tsconfig.json create mode 100644 types/cron-converter/tslint.json create mode 100644 types/css-selector-tokenizer/css-selector-tokenizer-tests.ts create mode 100644 types/css-selector-tokenizer/index.d.ts create mode 100644 types/css-selector-tokenizer/tsconfig.json create mode 100644 types/css-selector-tokenizer/tslint.json create mode 100644 types/cuss/ar-latn.d.ts create mode 100644 types/cuss/cuss-tests.ts create mode 100644 types/cuss/es.d.ts create mode 100644 types/cuss/fr.d.ts create mode 100644 types/cuss/index.d.ts create mode 100644 types/cuss/it.d.ts create mode 100644 types/cuss/pt-br.d.ts create mode 100644 types/cuss/tsconfig.json create mode 100644 types/cuss/tslint.json create mode 100644 types/d3-require/d3-require-tests.ts create mode 100644 types/d3-require/index.d.ts rename types/{gridstack => d3-require}/tsconfig.json (87%) create mode 100644 types/d3-require/tslint.json create mode 100644 types/decomment/decomment-tests.ts create mode 100644 types/decomment/index.d.ts create mode 100644 types/decomment/tsconfig.json create mode 100644 types/decomment/tslint.json create mode 100644 types/dialogflow-fulfillment/dialogflow-fulfillment-tests.ts create mode 100644 types/dialogflow-fulfillment/index.d.ts create mode 100644 types/dialogflow-fulfillment/package.json create mode 100644 types/dialogflow-fulfillment/tsconfig.json create mode 100644 types/dialogflow-fulfillment/tslint.json create mode 100644 types/direction/direction-tests.ts create mode 100644 types/direction/index.d.ts create mode 100644 types/direction/tsconfig.json create mode 100644 types/direction/tslint.json create mode 100644 types/docker-events/docker-events-tests.ts create mode 100644 types/docker-events/index.d.ts create mode 100644 types/docker-events/tsconfig.json create mode 100644 types/docker-events/tslint.json create mode 100644 types/docx-templates/docx-templates-tests.ts create mode 100644 types/docx-templates/index.d.ts create mode 100644 types/docx-templates/tsconfig.json create mode 100644 types/docx-templates/tslint.json create mode 100644 types/dotenv-parse-variables/dotenv-parse-variables-tests.ts create mode 100644 types/dotenv-parse-variables/index.d.ts create mode 100644 types/dotenv-parse-variables/tsconfig.json create mode 100644 types/dotenv-parse-variables/tslint.json create mode 100644 types/downscale/downscale-tests.ts create mode 100644 types/downscale/index.d.ts create mode 100644 types/downscale/tsconfig.json create mode 100644 types/downscale/tslint.json create mode 100644 types/dragselect/dragselect-tests.ts create mode 100644 types/dragselect/index.d.ts create mode 100644 types/dragselect/tsconfig.json create mode 100644 types/dragselect/tslint.json create mode 100644 types/dragula/v2/dragula-tests.ts create mode 100644 types/dragula/v2/index.d.ts create mode 100644 types/dragula/v2/tsconfig.json create mode 100644 types/dragula/v2/tslint.json create mode 100644 types/du/du-tests.ts create mode 100644 types/du/index.d.ts create mode 100644 types/du/tsconfig.json create mode 100644 types/du/tslint.json create mode 100644 types/duo_web_sdk/duo_web_sdk-tests.ts create mode 100644 types/duo_web_sdk/index.d.ts rename types/{roads-server => duo_web_sdk}/tsconfig.json (93%) create mode 100644 types/duo_web_sdk/tslint.json create mode 100644 types/duosecurity__duo_web/duosecurity__duo_web-tests.ts create mode 100644 types/duosecurity__duo_web/index.d.ts create mode 100644 types/duosecurity__duo_web/tsconfig.json create mode 100644 types/duosecurity__duo_web/tslint.json create mode 100644 types/ember-data__adapter/OTHER_FILES.txt create mode 100644 types/ember-data__adapter/error.d.ts create mode 100644 types/ember-data__adapter/index.d.ts create mode 100644 types/ember-data__adapter/json-api.d.ts create mode 100644 types/ember-data__adapter/rest.d.ts create mode 100644 types/ember-data__adapter/test/error.ts create mode 100644 types/ember-data__adapter/test/index.ts create mode 100644 types/ember-data__adapter/test/json-api.ts create mode 100644 types/ember-data__adapter/test/lib/assert.ts create mode 100644 types/ember-data__adapter/test/rest.ts create mode 100644 types/ember-data__adapter/tsconfig.json create mode 100644 types/ember-data__adapter/tslint.json create mode 100644 types/ember-data__model/index.d.ts create mode 100644 types/ember-data__model/test/lib/assert.ts create mode 100644 types/ember-data__model/test/model.ts create mode 100644 types/ember-data__model/tsconfig.json create mode 100644 types/ember-data__model/tslint.json create mode 100644 types/ember-data__serializer/OTHER_FILES.txt create mode 100644 types/ember-data__serializer/index.d.ts create mode 100644 types/ember-data__serializer/json-api.d.ts create mode 100644 types/ember-data__serializer/json.d.ts create mode 100644 types/ember-data__serializer/rest.d.ts create mode 100644 types/ember-data__serializer/test/index.ts create mode 100644 types/ember-data__serializer/test/json-api.ts create mode 100644 types/ember-data__serializer/test/json.ts create mode 100644 types/ember-data__serializer/test/rest.ts create mode 100644 types/ember-data__serializer/test/transform.ts create mode 100644 types/ember-data__serializer/transform.d.ts create mode 100644 types/ember-data__serializer/tsconfig.json create mode 100644 types/ember-data__serializer/tslint.json create mode 100644 types/ember-data__store/ember-data__store-tests.ts create mode 100644 types/ember-data__store/index.d.ts create mode 100644 types/ember-data__store/tsconfig.json create mode 100644 types/ember-data__store/tslint.json create mode 100644 types/ember__routing/test/router-service.ts create mode 100644 types/emoji-mart/dist-es/utils/index.d.ts create mode 100644 types/es-module-lexer/es-module-lexer-tests.ts create mode 100644 types/es-module-lexer/index.d.ts create mode 100644 types/es-module-lexer/tsconfig.json create mode 100644 types/es-module-lexer/tslint.json create mode 100644 types/es6-set-proptypes/es6-set-proptypes-tests.ts create mode 100644 types/es6-set-proptypes/index.d.ts create mode 100644 types/es6-set-proptypes/tsconfig.json create mode 100644 types/es6-set-proptypes/tslint.json create mode 100644 types/express-rate-limit/v3/express-rate-limit-tests.ts create mode 100644 types/express-rate-limit/v3/index.d.ts create mode 100644 types/express-rate-limit/v3/tsconfig.json create mode 100644 types/express-rate-limit/v3/tslint.json delete mode 100644 types/fb/fb-tests.ts delete mode 100644 types/fb/index.d.ts delete mode 100644 types/fb/tslint.json create mode 100644 types/file-entry-cache/file-entry-cache-tests.ts create mode 100644 types/file-entry-cache/index.d.ts create mode 100644 types/file-entry-cache/tsconfig.json create mode 100644 types/file-entry-cache/tslint.json create mode 100644 types/file-size/file-size-tests.ts create mode 100644 types/file-size/index.d.ts create mode 100644 types/file-size/tsconfig.json create mode 100644 types/file-size/tslint.json create mode 100644 types/filing-cabinet/filing-cabinet-tests.ts create mode 100644 types/filing-cabinet/index.d.ts create mode 100644 types/filing-cabinet/tsconfig.json create mode 100644 types/filing-cabinet/tslint.json create mode 100644 types/find-cache-dir/v2/find-cache-dir-tests.ts create mode 100644 types/find-cache-dir/v2/index.d.ts create mode 100644 types/find-cache-dir/v2/tsconfig.json create mode 100644 types/find-cache-dir/v2/tslint.json create mode 100644 types/find-unused-sass-variables/find-unused-sass-variables-tests.ts create mode 100644 types/find-unused-sass-variables/index.d.ts create mode 100644 types/find-unused-sass-variables/tsconfig.json create mode 100644 types/find-unused-sass-variables/tslint.json create mode 100644 types/frappe-gantt/frappe-gantt-tests.ts create mode 100644 types/frappe-gantt/index.d.ts create mode 100644 types/frappe-gantt/tsconfig.json create mode 100644 types/frappe-gantt/tslint.json create mode 100644 types/fullcalendar__vue/fullcalendar__vue-tests.ts create mode 100644 types/fullcalendar__vue/index.d.ts create mode 100644 types/fullcalendar__vue/options.d.ts create mode 100644 types/fullcalendar__vue/package.json create mode 100644 types/fullcalendar__vue/tsconfig.json create mode 100644 types/fullcalendar__vue/tslint.json create mode 100644 types/fxjs/fxjs-tests.ts create mode 100644 types/fxjs/index.d.ts create mode 100644 types/fxjs/tsconfig.json create mode 100644 types/fxjs/tslint.json create mode 100644 types/git-branch-is/git-branch-is-tests.ts create mode 100644 types/git-branch-is/index.d.ts create mode 100644 types/git-branch-is/tsconfig.json create mode 100644 types/git-branch-is/tslint.json create mode 100644 types/git-raw-commits/git-raw-commits-tests.ts create mode 100644 types/git-raw-commits/index.d.ts create mode 100644 types/git-raw-commits/tsconfig.json create mode 100644 types/git-raw-commits/tslint.json create mode 100644 types/gl-fbo/gl-fbo-tests.ts create mode 100644 types/gl-fbo/index.d.ts create mode 100644 types/gl-fbo/tsconfig.json create mode 100644 types/gl-fbo/tslint.json create mode 100644 types/global-agent/global-agent-tests.ts create mode 100644 types/global-agent/index.d.ts create mode 100644 types/global-agent/tsconfig.json create mode 100644 types/global-agent/tslint.json create mode 100644 types/global-npm/global-npm-tests.ts create mode 100644 types/global-npm/index.d.ts create mode 100644 types/global-npm/tsconfig.json create mode 100644 types/global-npm/tslint.json create mode 100644 types/globalize/OTHER_FILES.txt create mode 100644 types/globalize/dist/globalize-runtime.d.ts create mode 100644 types/google-map-react/OTHER_FILES.txt create mode 100644 types/google-map-react/utils.d.ts rename types/{markerclustererplus/markerclustererplus-tests.ts => google__markerclustererplus/google__markerclustererplus-tests.ts} (100%) rename types/{markerclustererplus => google__markerclustererplus}/index.d.ts (100%) rename types/{fb => google__markerclustererplus}/tsconfig.json (90%) create mode 100644 types/google__markerclustererplus/tslint.json create mode 100644 types/graphite/graphite-tests.ts create mode 100644 types/graphite/index.d.ts create mode 100644 types/graphite/tsconfig.json create mode 100644 types/graphite/tslint.json delete mode 100644 types/gridstack/gridstack-tests.ts delete mode 100644 types/gridstack/index.d.ts delete mode 100644 types/gridstack/tslint.json create mode 100644 types/group-array/group-array-tests.ts create mode 100644 types/group-array/index.d.ts create mode 100644 types/group-array/tsconfig.json create mode 100644 types/group-array/tslint.json create mode 100644 types/hapi-server-session/hapi-server-session-tests.ts create mode 100644 types/hapi-server-session/index.d.ts create mode 100644 types/hapi-server-session/tsconfig.json create mode 100644 types/hapi-server-session/tslint.json delete mode 100644 types/hapi__accept/hapi__accept-tests.ts delete mode 100644 types/hapi__accept/index.d.ts create mode 100644 types/hapi__b64/hapi__b64-tests.ts create mode 100644 types/hapi__b64/index.d.ts rename types/{hapi__topo => hapi__b64}/tsconfig.json (85%) create mode 100644 types/hapi__b64/tslint.json delete mode 100644 types/hapi__boom/hapi__boom-tests.ts delete mode 100644 types/hapi__boom/index.d.ts create mode 100644 types/hapi__catbox-memcached/hapi__catbox-memcached-tests.ts create mode 100644 types/hapi__catbox-memcached/index.d.ts create mode 100644 types/hapi__catbox-memcached/tsconfig.json create mode 100644 types/hapi__catbox-memcached/tslint.json delete mode 100644 types/hapi__code/hapi__code-tests.ts delete mode 100644 types/hapi__code/index.d.ts delete mode 100644 types/hapi__cryptiles/hapi__cryptiles-tests.ts delete mode 100644 types/hapi__cryptiles/index.d.ts create mode 100644 types/hapi__h2o2/package.json create mode 100644 types/hapi__hapi/package.json create mode 100644 types/hapi__hawk/OTHER_FILES.txt create mode 100644 types/hapi__hawk/hapi__hawk-tests.ts create mode 100755 types/hapi__hawk/index.d.ts create mode 100755 types/hapi__hawk/lib/browser.d.ts create mode 100755 types/hapi__hawk/lib/client.d.ts create mode 100755 types/hapi__hawk/lib/crypto.d.ts create mode 100755 types/hapi__hawk/lib/plugin.d.ts create mode 100755 types/hapi__hawk/lib/server.d.ts create mode 100755 types/hapi__hawk/lib/utils.d.ts create mode 100644 types/hapi__hawk/package.json create mode 100644 types/hapi__hawk/tsconfig.json create mode 100644 types/hapi__hawk/tslint.json delete mode 100644 types/hapi__hoek/hapi__hoek-tests.ts delete mode 100644 types/hapi__hoek/index.d.ts delete mode 100644 types/hapi__iron/hapi__iron-tests.ts delete mode 100644 types/hapi__iron/index.d.ts delete mode 100644 types/hapi__lab/hapi__lab-tests.ts delete mode 100644 types/hapi__lab/index.d.ts delete mode 100644 types/hapi__lab/tslint.json delete mode 100644 types/hapi__topo/hapi__topo-tests.ts delete mode 100644 types/hapi__topo/index.d.ts delete mode 100644 types/hapi__wreck/hapi__wreck-tests.ts delete mode 100644 types/hapi__wreck/index.d.ts delete mode 100644 types/hapi__wreck/tsconfig.json delete mode 100644 types/hapi__wreck/tslint.json create mode 100644 types/harmon/harmon-tests.ts create mode 100644 types/harmon/index.d.ts create mode 100644 types/harmon/tsconfig.json create mode 100644 types/harmon/tslint.json delete mode 100644 types/hast-format/hast-format-tests.ts create mode 100644 types/hast/hast-tests.ts rename types/{hast-format => hast}/index.d.ts (89%) rename types/{hast-format => hast}/tsconfig.json (87%) create mode 100644 types/hast/tslint.json create mode 100644 types/html-minifier-terser/html-minifier-terser-tests.ts create mode 100644 types/html-minifier-terser/index.d.ts create mode 100644 types/html-minifier-terser/tsconfig.json create mode 100644 types/html-minifier-terser/tslint.json create mode 100644 types/human-date/human-date-tests.ts create mode 100644 types/human-date/index.d.ts create mode 100644 types/human-date/tsconfig.json create mode 100644 types/human-date/tslint.json delete mode 100644 types/ink-spinner/package.json create mode 100644 types/inline-critical/index.d.ts create mode 100644 types/inline-critical/inline-critical-tests.ts create mode 100644 types/inline-critical/tsconfig.json create mode 100644 types/inline-critical/tslint.json create mode 100644 types/ip-subnet-calculator/index.d.ts create mode 100644 types/ip-subnet-calculator/ip-subnet-calculator-tests.ts create mode 100644 types/ip-subnet-calculator/tsconfig.json create mode 100644 types/ip-subnet-calculator/tslint.json create mode 100644 types/is-empty-object/index.d.ts create mode 100644 types/is-empty-object/is-empty-object-tests.ts create mode 100644 types/is-empty-object/tsconfig.json create mode 100644 types/is-empty-object/tslint.json create mode 100644 types/is-generator-function/index.d.ts create mode 100644 types/is-generator-function/is-generator-function-tests.ts create mode 100644 types/is-generator-function/tsconfig.json create mode 100644 types/is-generator-function/tslint.json create mode 100644 types/is-generator/index.d.ts create mode 100644 types/is-generator/is-generator-tests.ts create mode 100644 types/is-generator/tsconfig.json create mode 100644 types/is-generator/tslint.json create mode 100644 types/is-relative-path/index.d.ts create mode 100644 types/is-relative-path/is-relative-path-tests.ts create mode 100644 types/is-relative-path/tsconfig.json create mode 100644 types/is-relative-path/tslint.json create mode 100644 types/japan-postal-code/index.d.ts create mode 100644 types/japan-postal-code/japan-postal-code-tests.ts create mode 100644 types/japan-postal-code/tsconfig.json create mode 100644 types/japan-postal-code/tslint.json create mode 100644 types/javascript-time-ago/gradation/canonical.d.ts create mode 100644 types/javascript-time-ago/gradation/convenient.d.ts create mode 100644 types/javascript-time-ago/gradation/helpers.d.ts create mode 100644 types/javascript-time-ago/gradation/index.d.ts create mode 100644 types/javascript-time-ago/style/default.d.ts create mode 100644 types/javascript-time-ago/style/index.d.ts create mode 100644 types/javascript-time-ago/style/time.d.ts create mode 100644 types/javascript-time-ago/style/twitter.d.ts delete mode 100644 types/jest-docblock/index.d.ts delete mode 100644 types/jest-docblock/jest-docblock-tests.ts delete mode 100644 types/jest-matcher-utils/index.d.ts delete mode 100644 types/jest-matcher-utils/jest-matcher-utils-tests.ts delete mode 100644 types/jest-matchers/index.d.ts delete mode 100644 types/jest-matchers/jest-matchers-tests.ts create mode 100644 types/jest-sinon/index.d.ts create mode 100644 types/jest-sinon/jest-sinon-tests.ts create mode 100644 types/jest-sinon/tsconfig.json create mode 100644 types/jest-sinon/tslint.json delete mode 100644 types/jest-validate/index.d.ts delete mode 100644 types/jest-validate/jest-validate-tests.ts create mode 100644 types/jquery-cropper/index.d.ts create mode 100644 types/jquery-cropper/tsconfig.json rename types/{hapi__boom => jquery-cropper}/tslint.json (54%) create mode 100644 types/jquery-deferred/index.d.ts create mode 100644 types/jquery-deferred/jquery-deferred-tests.ts create mode 100644 types/jquery-deferred/lib/index.d.ts create mode 100644 types/jquery-deferred/tsconfig.json create mode 100644 types/jquery-deferred/tslint.json create mode 100644 types/jquery-migrate/index.d.ts create mode 100644 types/jquery-migrate/jquery-migrate-tests.ts create mode 100644 types/jquery-migrate/tsconfig.json create mode 100644 types/jquery-migrate/tslint.json rename types/{jquery.slimscroll => jquery-slimscroll}/index.d.ts (98%) rename types/{jquery.slimscroll/jquery.slimscroll-tests.ts => jquery-slimscroll/jquery-slimscroll-tests.ts} (100%) rename types/{jquery.slimscroll => jquery-slimscroll}/tsconfig.json (85%) create mode 100644 types/jquery-slimscroll/tslint.json delete mode 100644 types/jquery.slimscroll/tslint.json create mode 100644 types/jsdoc-to-markdown/v4/index.d.ts create mode 100644 types/jsdoc-to-markdown/v4/jsdoc-to-markdown-tests.ts create mode 100644 types/jsdoc-to-markdown/v4/tsconfig.json create mode 100644 types/jsdoc-to-markdown/v4/tslint.json create mode 100644 types/jsdom/ts3.4/index.d.ts create mode 100644 types/jsdom/ts3.4/jsdom-tests.ts create mode 100644 types/jsdom/ts3.4/tsconfig.json create mode 100644 types/jsdom/ts3.4/tslint.json create mode 100644 types/jsdom/ts3.5/index.d.ts create mode 100644 types/jsdom/ts3.5/jsdom-tests.ts create mode 100644 types/jsdom/ts3.5/tsconfig.json create mode 100644 types/jsdom/ts3.5/tslint.json create mode 100644 types/jsdom/ts3.6/index.d.ts create mode 100644 types/jsdom/ts3.6/jsdom-tests.ts create mode 100644 types/jsdom/ts3.6/tsconfig.json create mode 100644 types/jsdom/ts3.6/tslint.json create mode 100644 types/json-schema-traverse/index.d.ts create mode 100644 types/json-schema-traverse/json-schema-traverse-tests.ts create mode 100644 types/json-schema-traverse/tsconfig.json create mode 100644 types/json-schema-traverse/tslint.json create mode 100644 types/just-map-values/index.d.ts create mode 100644 types/just-map-values/just-map-values-tests.ts create mode 100644 types/just-map-values/tsconfig.json create mode 100644 types/just-map-values/tslint.json create mode 100644 types/just-safe-set/index.d.ts create mode 100644 types/just-safe-set/just-safe-set-tests.ts create mode 100644 types/just-safe-set/tsconfig.json create mode 100644 types/just-safe-set/tslint.json create mode 100644 types/kap-plugin/index.d.ts create mode 100644 types/kap-plugin/kap-plugin-tests.ts create mode 100644 types/kap-plugin/package.json create mode 100644 types/kap-plugin/tsconfig.json create mode 100644 types/kap-plugin/tslint.json create mode 100644 types/karma-browserify/index.d.ts create mode 100644 types/karma-browserify/karma-browserify-tests.ts create mode 100644 types/karma-browserify/tsconfig.json create mode 100644 types/karma-browserify/tslint.json create mode 100644 types/karma-browserstack-launcher/index.d.ts create mode 100644 types/karma-browserstack-launcher/karma-browserstack-launcher-tests.ts create mode 100644 types/karma-browserstack-launcher/tsconfig.json create mode 100644 types/karma-browserstack-launcher/tslint.json create mode 100644 types/karma-chrome-launcher/index.d.ts create mode 100644 types/karma-chrome-launcher/karma-chrome-launcher-tests.ts create mode 100644 types/karma-chrome-launcher/tsconfig.json create mode 100644 types/karma-chrome-launcher/tslint.json create mode 100644 types/karma-detect-browsers/index.d.ts create mode 100644 types/karma-detect-browsers/karma-detect-browsers-tests.ts create mode 100644 types/karma-detect-browsers/tsconfig.json create mode 100644 types/karma-detect-browsers/tslint.json create mode 100644 types/karma-env-preprocessor/index.d.ts create mode 100644 types/karma-env-preprocessor/karma-env-preprocessor-tests.ts create mode 100644 types/karma-env-preprocessor/tsconfig.json create mode 100644 types/karma-env-preprocessor/tslint.json create mode 100644 types/karma-firefox-launcher/index.d.ts create mode 100644 types/karma-firefox-launcher/karma-firefox-launcher-tests.ts create mode 100644 types/karma-firefox-launcher/tsconfig.json create mode 100644 types/karma-firefox-launcher/tslint.json create mode 100644 types/karma-ie-launcher/index.d.ts create mode 100644 types/karma-ie-launcher/karma-ie-launcher-tests.ts create mode 100644 types/karma-ie-launcher/tsconfig.json create mode 100644 types/karma-ie-launcher/tslint.json create mode 100644 types/karma-jasmine-html-reporter/index.d.ts create mode 100644 types/karma-jasmine-html-reporter/karma-jasmine-html-reporter-tests.ts create mode 100644 types/karma-jasmine-html-reporter/tsconfig.json create mode 100644 types/karma-jasmine-html-reporter/tslint.json create mode 100644 types/karma-json-preprocessor/index.d.ts create mode 100644 types/karma-json-preprocessor/karma-json-preprocessor-tests.ts create mode 100644 types/karma-json-preprocessor/tsconfig.json create mode 100644 types/karma-json-preprocessor/tslint.json create mode 100644 types/karma-json-to-file-reporter/index.d.ts create mode 100644 types/karma-json-to-file-reporter/karma-json-to-file-reporter-tests.ts create mode 100644 types/karma-json-to-file-reporter/tsconfig.json create mode 100644 types/karma-json-to-file-reporter/tslint.json create mode 100644 types/karma-junit-reporter/index.d.ts create mode 100644 types/karma-junit-reporter/karma-junit-reporter-tests.ts create mode 100644 types/karma-junit-reporter/tsconfig.json create mode 100644 types/karma-junit-reporter/tslint.json create mode 100644 types/karma-mocha-reporter/index.d.ts create mode 100644 types/karma-mocha-reporter/karma-mocha-reporter-tests.ts create mode 100644 types/karma-mocha-reporter/tsconfig.json create mode 100644 types/karma-mocha-reporter/tslint.json create mode 100644 types/karma-mocha/index.d.ts create mode 100644 types/karma-mocha/karma-mocha-tests.ts create mode 100644 types/karma-mocha/tsconfig.json create mode 100644 types/karma-mocha/tslint.json create mode 100644 types/karma-remap-coverage/index.d.ts create mode 100644 types/karma-remap-coverage/karma-remap-coverage-tests.ts create mode 100644 types/karma-remap-coverage/tsconfig.json create mode 100644 types/karma-remap-coverage/tslint.json create mode 100644 types/karma-spec-reporter/index.d.ts create mode 100644 types/karma-spec-reporter/karma-spec-reporter-tests.ts create mode 100644 types/karma-spec-reporter/tsconfig.json create mode 100644 types/karma-spec-reporter/tslint.json create mode 100644 types/karma/v3/index.d.ts create mode 100644 types/karma/v3/karma-tests.ts rename types/{power-assert/ts3.7 => karma/v3}/tsconfig.json (79%) create mode 100644 types/karma/v3/tslint.json create mode 100644 types/kd-tree-javascript/index.d.ts create mode 100644 types/kd-tree-javascript/kd-tree-javascript-tests.ts create mode 100644 types/kd-tree-javascript/tsconfig.json create mode 100644 types/kd-tree-javascript/tslint.json create mode 100644 types/knex-db-manager/index.d.ts create mode 100644 types/knex-db-manager/knex-db-manager-tests.ts create mode 100644 types/knex-db-manager/package.json create mode 100644 types/knex-db-manager/tsconfig.json create mode 100644 types/knex-db-manager/tslint.json create mode 100644 types/koa-cookie/index.d.ts create mode 100644 types/koa-cookie/koa-cookie-tests.ts create mode 100644 types/koa-cookie/tsconfig.json create mode 100644 types/koa-cookie/tslint.json create mode 100644 types/kurento-client/index.d.ts create mode 100644 types/kurento-client/kurento-client-tests.ts create mode 100644 types/kurento-client/tsconfig.json create mode 100644 types/kurento-client/tslint.json create mode 100644 types/lambda-wrapper/index.d.ts create mode 100644 types/lambda-wrapper/lambda-wrapper-tests.ts create mode 100644 types/lambda-wrapper/tsconfig.json create mode 100644 types/lambda-wrapper/tslint.json create mode 100644 types/layui-layer/index.d.ts create mode 100644 types/layui-layer/layui-layer-tests.ts create mode 100644 types/layui-layer/tsconfig.json create mode 100644 types/layui-layer/tslint.json create mode 100644 types/lazy-brush/index.d.ts create mode 100644 types/lazy-brush/lazy-brush-tests.ts create mode 100644 types/lazy-brush/tsconfig.json create mode 100644 types/lazy-brush/tslint.json create mode 100644 types/lerna-alias/index.d.ts create mode 100644 types/lerna-alias/lerna-alias-tests.ts create mode 100644 types/lerna-alias/tsconfig.json create mode 100644 types/lerna-alias/tslint.json create mode 100644 types/locale/index.d.ts create mode 100644 types/locale/locale-tests.ts create mode 100644 types/locale/tsconfig.json create mode 100644 types/locale/tslint.json mode change 100644 => 100755 types/lodash/scripts/generate-all.sh create mode 100644 types/markdown-magic/index.d.ts create mode 100644 types/markdown-magic/markdown-magic-tests.ts create mode 100644 types/markdown-magic/tsconfig.json create mode 100644 types/markdown-magic/tslint.json create mode 100644 types/markdown-table/index.d.ts create mode 100644 types/markdown-table/markdown-table-tests.ts create mode 100644 types/markdown-table/tsconfig.json create mode 100644 types/markdown-table/tslint.json create mode 100644 types/math-random/index.d.ts create mode 100644 types/math-random/math-random-tests.ts create mode 100644 types/math-random/tsconfig.json create mode 100644 types/math-random/tslint.json create mode 100644 types/matrix-appservice-bridge/index.d.ts create mode 100644 types/matrix-appservice-bridge/matrix-appservice-bridge-tests.ts create mode 100644 types/matrix-appservice-bridge/tsconfig.json create mode 100644 types/matrix-appservice-bridge/tslint.json create mode 100644 types/matrix-js-sdk/index.d.ts create mode 100644 types/matrix-js-sdk/matrix-js-sdk-tests.ts create mode 100644 types/matrix-js-sdk/tsconfig.json create mode 100644 types/matrix-js-sdk/tslint.json create mode 100644 types/merge-objects/index.d.ts create mode 100644 types/merge-objects/merge-objects-tests.ts create mode 100644 types/merge-objects/tsconfig.json create mode 100644 types/merge-objects/tslint.json create mode 100644 types/meyda/index.d.ts create mode 100644 types/meyda/meyda-tests.ts create mode 100644 types/meyda/tsconfig.json create mode 100644 types/meyda/tslint.json create mode 100644 types/migrate-mongo/index.d.ts create mode 100644 types/migrate-mongo/migrate-mongo-tests.ts create mode 100644 types/migrate-mongo/tsconfig.json create mode 100644 types/migrate-mongo/tslint.json create mode 100644 types/mini-html-webpack-plugin/index.d.ts create mode 100644 types/mini-html-webpack-plugin/mini-html-webpack-plugin-tests.ts create mode 100644 types/mini-html-webpack-plugin/tsconfig.json create mode 100644 types/mini-html-webpack-plugin/tslint.json create mode 100644 types/mjml-react/extensions/index.d.ts create mode 100644 types/mjml-react/utils/index.d.ts delete mode 100644 types/mkdirp-promise/index.d.ts delete mode 100644 types/mkdirp-promise/mkdirp-promise-tests.ts create mode 100644 types/mocha-sugar-free/index.d.ts create mode 100644 types/mocha-sugar-free/mocha-sugar-free-tests.ts create mode 100644 types/mocha-sugar-free/tsconfig.json create mode 100644 types/mocha-sugar-free/tslint.json create mode 100644 types/mongoose-autopopulate/index.d.ts create mode 100644 types/mongoose-autopopulate/mongoose-autopopulate-tests.ts create mode 100644 types/mongoose-autopopulate/tsconfig.json create mode 100644 types/mongoose-autopopulate/tslint.json create mode 100644 types/mongoose-lean-virtuals/index.d.ts create mode 100644 types/mongoose-lean-virtuals/mongoose-lean-virtuals-tests.ts create mode 100644 types/mongoose-lean-virtuals/tsconfig.json create mode 100644 types/mongoose-lean-virtuals/tslint.json create mode 100644 types/multicodec/constants.d.ts create mode 100644 types/multicodec/index.d.ts create mode 100644 types/multicodec/multicodec-tests.ts create mode 100644 types/multicodec/tsconfig.json create mode 100644 types/multicodec/tslint.json create mode 100644 types/nanotimer/index.d.ts create mode 100644 types/nanotimer/nanotimer-tests.ts create mode 100644 types/nanotimer/tsconfig.json create mode 100644 types/nanotimer/tslint.json create mode 100644 types/ncom/index.d.ts create mode 100644 types/ncom/ncom-tests.ts create mode 100644 types/ncom/tsconfig.json create mode 100644 types/ncom/tslint.json create mode 100644 types/nice-try/index.d.ts create mode 100644 types/nice-try/nice-try-tests.ts create mode 100644 types/nice-try/tsconfig.json create mode 100644 types/nice-try/tslint.json create mode 100644 types/node-fetch/package.json create mode 100644 types/node-phpass/index.d.ts create mode 100644 types/node-phpass/node-phpass-tests.ts create mode 100644 types/node-phpass/tsconfig.json create mode 100644 types/node-phpass/tslint.json create mode 100644 types/node-ssh/index.d.ts create mode 100644 types/node-ssh/node-ssh-tests.ts create mode 100644 types/node-ssh/tsconfig.json create mode 100644 types/node-ssh/tslint.json create mode 100644 types/node/ts3.5/index.d.ts create mode 100644 types/node/ts3.5/node-tests.ts create mode 100644 types/node/ts3.5/tsconfig.json create mode 100644 types/node/ts3.5/tslint.json create mode 100644 types/node/ts3.5/wasi.d.ts create mode 100644 types/nosleep.js/index.d.ts create mode 100644 types/nosleep.js/nosleep.js-tests.ts create mode 100644 types/nosleep.js/tsconfig.json create mode 100644 types/nosleep.js/tslint.json create mode 100644 types/ntlm-client/index.d.ts create mode 100644 types/ntlm-client/ntlm-client-tests.ts create mode 100644 types/ntlm-client/tsconfig.json create mode 100644 types/ntlm-client/tslint.json create mode 100644 types/nyaapi/index.d.ts create mode 100644 types/nyaapi/nyaapi-tests.ts create mode 100644 types/nyaapi/tsconfig.json create mode 100644 types/nyaapi/tslint.json create mode 100644 types/object-fit-images/index.d.ts create mode 100644 types/object-fit-images/object-fit-images-tests.ts create mode 100644 types/object-fit-images/tsconfig.json create mode 100644 types/object-fit-images/tslint.json create mode 100644 types/object-mapper/index.d.ts create mode 100644 types/object-mapper/object-mapper-tests.ts create mode 100644 types/object-mapper/tsconfig.json create mode 100644 types/object-mapper/tslint.json create mode 100644 types/object.getownpropertydescriptors/implementation.d.ts create mode 100644 types/object.getownpropertydescriptors/polyfill.d.ts create mode 100644 types/object.getownpropertydescriptors/shim.d.ts create mode 100644 types/obsolete-web/index.d.ts create mode 100644 types/obsolete-web/test/obsolete-web-commonjs.tests.ts create mode 100644 types/obsolete-web/test/obsolete-web-global.tests.ts create mode 100644 types/obsolete-web/tsconfig.json create mode 100644 types/obsolete-web/tslint.json create mode 100644 types/openfin/_v2/api/events/view.d.ts create mode 100644 types/openfin/_v2/api/platform/platform.d.ts create mode 100644 types/openfin/_v2/api/view/view.d.ts create mode 100644 types/openfin/_v2/util/entity-type.d.ts create mode 100644 types/openfin/v45/OTHER_FILES.txt create mode 100644 types/openfin/v45/_v2/api/application/application.d.ts create mode 100644 types/openfin/v45/_v2/api/application/applicationOption.d.ts create mode 100644 types/openfin/v45/_v2/api/base.d.ts rename types/openfin/{ => v45}/_v2/api/browserview/browserview.d.ts (100%) create mode 100644 types/openfin/v45/_v2/api/clipboard/clipboard.d.ts create mode 100644 types/openfin/v45/_v2/api/clipboard/write-request.d.ts create mode 100644 types/openfin/v45/_v2/api/events/application.d.ts create mode 100644 types/openfin/v45/_v2/api/events/base.d.ts rename types/openfin/{ => v45}/_v2/api/events/browserview.d.ts (100%) create mode 100644 types/openfin/v45/_v2/api/events/channel.d.ts create mode 100644 types/openfin/v45/_v2/api/events/emitterMap.d.ts create mode 100644 types/openfin/v45/_v2/api/events/eventAggregator.d.ts create mode 100644 types/openfin/v45/_v2/api/events/externalApplication.d.ts create mode 100644 types/openfin/v45/_v2/api/events/externalWindow.d.ts create mode 100644 types/openfin/v45/_v2/api/events/frame.d.ts create mode 100644 types/openfin/v45/_v2/api/events/globalHotkey.d.ts create mode 100644 types/openfin/v45/_v2/api/events/notifications.d.ts create mode 100644 types/openfin/v45/_v2/api/events/system.d.ts create mode 100644 types/openfin/v45/_v2/api/events/webcontents.d.ts create mode 100644 types/openfin/v45/_v2/api/events/window.d.ts create mode 100644 types/openfin/v45/_v2/api/external-application/external-application.d.ts create mode 100644 types/openfin/v45/_v2/api/external-window/external-window.d.ts create mode 100644 types/openfin/v45/_v2/api/fin.d.ts create mode 100644 types/openfin/v45/_v2/api/frame/frame.d.ts create mode 100644 types/openfin/v45/_v2/api/global-hotkey/index.d.ts create mode 100644 types/openfin/v45/_v2/api/interappbus/channel/channel.d.ts create mode 100644 types/openfin/v45/_v2/api/interappbus/channel/client.d.ts create mode 100644 types/openfin/v45/_v2/api/interappbus/channel/index.d.ts create mode 100644 types/openfin/v45/_v2/api/interappbus/channel/provider.d.ts create mode 100644 types/openfin/v45/_v2/api/interappbus/interappbus.d.ts create mode 100644 types/openfin/v45/_v2/api/notification/notification.d.ts create mode 100644 types/openfin/v45/_v2/api/system/application.d.ts create mode 100644 types/openfin/v45/_v2/api/system/clearCacheOption.d.ts create mode 100644 types/openfin/v45/_v2/api/system/cookie.d.ts create mode 100644 types/openfin/v45/_v2/api/system/crashReporterOption.d.ts create mode 100644 types/openfin/v45/_v2/api/system/download-asset.d.ts create mode 100644 types/openfin/v45/_v2/api/system/download-preload.d.ts create mode 100644 types/openfin/v45/_v2/api/system/entity.d.ts create mode 100644 types/openfin/v45/_v2/api/system/external-process.d.ts create mode 100644 types/openfin/v45/_v2/api/system/host-specs.d.ts create mode 100644 types/openfin/v45/_v2/api/system/log.d.ts create mode 100644 types/openfin/v45/_v2/api/system/monitor.d.ts create mode 100644 types/openfin/v45/_v2/api/system/point.d.ts create mode 100644 types/openfin/v45/_v2/api/system/process.d.ts create mode 100644 types/openfin/v45/_v2/api/system/proxy.d.ts create mode 100644 types/openfin/v45/_v2/api/system/registry-info.d.ts create mode 100644 types/openfin/v45/_v2/api/system/runtime-info.d.ts create mode 100644 types/openfin/v45/_v2/api/system/rvm.d.ts create mode 100644 types/openfin/v45/_v2/api/system/system.d.ts create mode 100644 types/openfin/v45/_v2/api/system/window.d.ts create mode 100644 types/openfin/v45/_v2/api/webcontents/webcontents.d.ts create mode 100644 types/openfin/v45/_v2/api/window/bounds-changed.d.ts create mode 100644 types/openfin/v45/_v2/api/window/window.d.ts create mode 100644 types/openfin/v45/_v2/api/window/windowOption.d.ts create mode 100644 types/openfin/v45/_v2/environment/environment.d.ts create mode 100644 types/openfin/v45/_v2/environment/node-env.d.ts create mode 100644 types/openfin/v45/_v2/environment/openfin-env.d.ts create mode 100644 types/openfin/v45/_v2/environment/openfin-renderer-api.d.ts create mode 100644 types/openfin/v45/_v2/identity.d.ts create mode 100644 types/openfin/v45/_v2/launcher/launcher.d.ts create mode 100644 types/openfin/v45/_v2/launcher/nix-launch.d.ts create mode 100644 types/openfin/v45/_v2/launcher/util.d.ts create mode 100644 types/openfin/v45/_v2/launcher/win-launch.d.ts create mode 100644 types/openfin/v45/_v2/main.d.ts create mode 100644 types/openfin/v45/_v2/of-main.d.ts create mode 100644 types/openfin/v45/_v2/shapes.d.ts create mode 100644 types/openfin/v45/_v2/transport/elipc.d.ts create mode 100644 types/openfin/v45/_v2/transport/port-discovery.d.ts create mode 100644 types/openfin/v45/_v2/transport/transport-errors.d.ts create mode 100644 types/openfin/v45/_v2/transport/transport.d.ts create mode 100644 types/openfin/v45/_v2/transport/websocket.d.ts create mode 100644 types/openfin/v45/_v2/transport/wire.d.ts create mode 100644 types/openfin/v45/_v2/util/normalize-config.d.ts create mode 100644 types/openfin/v45/_v2/util/promises.d.ts create mode 100644 types/openfin/v45/_v2/util/ref-counter.d.ts create mode 100644 types/openfin/v45/index.d.ts create mode 100644 types/openfin/v45/openfin-tests.ts rename types/{hapi__hoek => openfin/v45}/tsconfig.json (72%) create mode 100644 types/openfin/v45/tslint.json create mode 100644 types/os-service/index.d.ts create mode 100644 types/os-service/os-service-tests.ts create mode 100644 types/os-service/tsconfig.json create mode 100644 types/os-service/tslint.json create mode 100644 types/osrs-json-api/index.d.ts create mode 100644 types/osrs-json-api/osrs-json-api-tests.ts create mode 100644 types/osrs-json-api/tsconfig.json create mode 100644 types/osrs-json-api/tslint.json create mode 100644 types/ouibounce/index.d.ts create mode 100644 types/ouibounce/ouibounce-tests.ts create mode 100644 types/ouibounce/tsconfig.json create mode 100644 types/ouibounce/tslint.json create mode 100644 types/overload-protection/index.d.ts create mode 100644 types/overload-protection/overload-protection-tests.ts rename types/{markerclustererplus => overload-protection}/tsconfig.json (85%) create mode 100644 types/overload-protection/tslint.json create mode 100644 types/pad-left/index.d.ts create mode 100644 types/pad-left/pad-left-tests.ts create mode 100644 types/pad-left/tsconfig.json create mode 100644 types/pad-left/tslint.json create mode 100644 types/parameterize/index.d.ts create mode 100644 types/parameterize/parameterize-tests.ts create mode 100644 types/parameterize/tsconfig.json create mode 100644 types/parameterize/tslint.json create mode 100644 types/parse-prefer-header/index.d.ts create mode 100644 types/parse-prefer-header/parse-prefer-header-tests.ts create mode 100644 types/parse-prefer-header/tsconfig.json create mode 100644 types/parse-prefer-header/tslint.json create mode 100644 types/parse/package.json create mode 100644 types/parse/ts3.7/index.d.ts create mode 100644 types/parse/ts3.7/node.d.ts create mode 100644 types/parse/ts3.7/parse-tests.ts create mode 100644 types/parse/ts3.7/react-native.d.ts create mode 100644 types/parse/ts3.7/tsconfig.json create mode 100644 types/parse/ts3.7/tslint.json create mode 100644 types/passport-microsoft/index.d.ts create mode 100644 types/passport-microsoft/passport-microsoft-tests.ts create mode 100644 types/passport-microsoft/tsconfig.json create mode 100644 types/passport-microsoft/tslint.json create mode 100644 types/passport.socketio/package.json create mode 100644 types/paystack/index.d.ts create mode 100644 types/paystack/paystack-tests.ts create mode 100644 types/paystack/tsconfig.json create mode 100644 types/paystack/tslint.json create mode 100644 types/pdf-image/index.d.ts create mode 100644 types/pdf-image/pdf-image-tests.ts create mode 100644 types/pdf-image/tsconfig.json create mode 100644 types/pdf-image/tslint.json create mode 100644 types/pi-camera/index.d.ts create mode 100644 types/pi-camera/pi-camera-tests.ts create mode 100644 types/pi-camera/tsconfig.json create mode 100644 types/pi-camera/tslint.json create mode 100644 types/pollyjs__adapter-puppeteer/index.d.ts create mode 100644 types/pollyjs__adapter-puppeteer/pollyjs__adapter-puppeteer-tests.ts create mode 100644 types/pollyjs__adapter-puppeteer/tsconfig.json create mode 100644 types/pollyjs__adapter-puppeteer/tslint.json create mode 100644 types/pollyjs__persister-local-storage/index.d.ts create mode 100644 types/pollyjs__persister-local-storage/pollyjs__persister-local-storage-tests.ts create mode 100644 types/pollyjs__persister-local-storage/tsconfig.json create mode 100644 types/pollyjs__persister-local-storage/tslint.json create mode 100644 types/pollyjs__persister-rest/index.d.ts create mode 100644 types/pollyjs__persister-rest/pollyjs__persister-rest-tests.ts create mode 100644 types/pollyjs__persister-rest/tsconfig.json create mode 100644 types/pollyjs__persister-rest/tslint.json delete mode 100644 types/power-assert/package.json delete mode 100644 types/power-assert/ts3.7/index.d.ts delete mode 100644 types/power-assert/ts3.7/tslint.json create mode 100644 types/promise-inflight/index.d.ts create mode 100644 types/promise-inflight/promise-inflight-tests.ts create mode 100644 types/promise-inflight/tsconfig.json create mode 100644 types/promise-inflight/tslint.json create mode 100644 types/pulsar-client/index.d.ts create mode 100644 types/pulsar-client/pulsar-client-tests.ts create mode 100644 types/pulsar-client/tsconfig.json create mode 100644 types/pulsar-client/tslint.json create mode 100644 types/ramda/test/propEq-tests.ts create mode 100644 types/rdf-dataset-indexed/index.d.ts create mode 100644 types/rdf-dataset-indexed/rdf-dataset-indexed-tests.ts create mode 100644 types/rdf-dataset-indexed/tsconfig.json create mode 100644 types/rdf-dataset-indexed/tslint.json create mode 100644 types/rdf-transform-triple-to-quad/index.d.ts create mode 100644 types/rdf-transform-triple-to-quad/rdf-transform-triple-to-quad-tests.ts create mode 100644 types/rdf-transform-triple-to-quad/tsconfig.json create mode 100644 types/rdf-transform-triple-to-quad/tslint.json create mode 100644 types/rdfjs__dataset/DatasetCore.d.ts create mode 100644 types/rdfjs__dataset/index.d.ts create mode 100644 types/rdfjs__dataset/rdfjs__dataset-tests.ts create mode 100644 types/rdfjs__dataset/tsconfig.json create mode 100644 types/rdfjs__dataset/tslint.json create mode 100644 types/rdfjs__fetch-lite/index.d.ts create mode 100644 types/rdfjs__fetch-lite/rdfjs__fetch-lite-tests.ts create mode 100644 types/rdfjs__fetch-lite/tsconfig.json create mode 100644 types/rdfjs__fetch-lite/tslint.json create mode 100644 types/rdfjs__fetch/index.d.ts create mode 100644 types/rdfjs__fetch/rdfjs__fetch-tests.ts create mode 100644 types/rdfjs__fetch/tsconfig.json create mode 100644 types/rdfjs__fetch/tslint.json create mode 100644 types/rdfjs__formats-common/index.d.ts create mode 100644 types/rdfjs__formats-common/rdfjs__formats-common-tests.ts create mode 100644 types/rdfjs__formats-common/tsconfig.json create mode 100644 types/rdfjs__formats-common/tslint.json create mode 100644 types/rdfjs__sink-map/index.d.ts create mode 100644 types/rdfjs__sink-map/rdfjs__sink-map-tests.ts create mode 100644 types/rdfjs__sink-map/tsconfig.json create mode 100644 types/rdfjs__sink-map/tslint.json create mode 100644 types/rdfjs__to-ntriples/OTHER_FILES.txt create mode 100644 types/rdfjs__to-ntriples/index.d.ts create mode 100644 types/rdfjs__to-ntriples/lib/blankNode.d.ts create mode 100644 types/rdfjs__to-ntriples/lib/defaultGraph.d.ts create mode 100644 types/rdfjs__to-ntriples/lib/literal.d.ts create mode 100644 types/rdfjs__to-ntriples/lib/namedNode.d.ts create mode 100644 types/rdfjs__to-ntriples/lib/quad.d.ts create mode 100644 types/rdfjs__to-ntriples/lib/term.d.ts create mode 100644 types/rdfjs__to-ntriples/lib/variable.d.ts create mode 100644 types/rdfjs__to-ntriples/rdfjs__to-ntriples-tests.ts create mode 100644 types/rdfjs__to-ntriples/tsconfig.json create mode 100644 types/rdfjs__to-ntriples/tslint.json create mode 100644 types/rdflib/index.d.ts create mode 100644 types/rdflib/rdflib-tests.ts create mode 100644 types/rdflib/tsconfig.json create mode 100644 types/rdflib/tslint.json create mode 100644 types/react-beautiful-dnd/package.json create mode 100644 types/react-beautiful-dnd/v11/index.d.ts create mode 100644 types/react-beautiful-dnd/v11/react-beautiful-dnd-tests.tsx create mode 100644 types/react-beautiful-dnd/v11/tsconfig.json create mode 100644 types/react-beautiful-dnd/v11/tslint.json create mode 100644 types/react-canvas-draw/index.d.ts create mode 100644 types/react-canvas-draw/react-canvas-draw-tests.tsx create mode 100644 types/react-canvas-draw/tsconfig.json create mode 100644 types/react-canvas-draw/tslint.json create mode 100644 types/react-chat-widget/index.d.ts create mode 100644 types/react-chat-widget/react-chat-widget-tests.ts create mode 100644 types/react-chat-widget/tsconfig.json create mode 100644 types/react-chat-widget/tslint.json create mode 100644 types/react-d3-graph/index.d.ts create mode 100644 types/react-d3-graph/react-d3-graph-tests.tsx create mode 100644 types/react-d3-graph/tsconfig.json create mode 100644 types/react-d3-graph/tslint.json create mode 100644 types/react-dev-utils/getPublicUrlOrPath.d.ts create mode 100644 types/react-dev-utils/redirectServedPathMiddleware.d.ts create mode 100644 types/react-dev-utils/test/getPublicUrlOrPath.ts create mode 100644 types/react-dev-utils/test/redirectServedPathMiddleware.ts rename types/react-dnd-multi-backend/{lib => dist}/HTML5toTouch.d.ts (100%) create mode 100644 types/react-dnd-multi-backend/dist/cjs/HTML5toTouch.d.ts create mode 100644 types/react-dnd-multi-backend/dist/esm/HTML5toTouch.d.ts create mode 100644 types/react-final-form-listeners/index.d.ts create mode 100644 types/react-final-form-listeners/react-final-form-listeners-tests.tsx create mode 100644 types/react-final-form-listeners/tsconfig.json create mode 100644 types/react-final-form-listeners/tslint.json create mode 100644 types/react-helmet-with-visor/index.d.ts create mode 100644 types/react-helmet-with-visor/react-helmet-with-visor-tests.tsx create mode 100644 types/react-helmet-with-visor/tsconfig.json create mode 100644 types/react-helmet-with-visor/tslint.json create mode 100644 types/react-messenger-checkbox/index.d.ts create mode 100644 types/react-messenger-checkbox/react-messenger-checkbox-tests.tsx create mode 100644 types/react-messenger-checkbox/tsconfig.json create mode 100644 types/react-messenger-checkbox/tslint.json create mode 100644 types/react-native-appsflyer/index.d.ts create mode 100644 types/react-native-appsflyer/react-native-appsflyer-tests.ts create mode 100644 types/react-native-appsflyer/tsconfig.json create mode 100644 types/react-native-appsflyer/tslint.json create mode 100644 types/react-native-background-downloader/index.d.ts create mode 100644 types/react-native-background-downloader/react-native-background-downloader-tests.tsx create mode 100644 types/react-native-background-downloader/tsconfig.json create mode 100644 types/react-native-background-downloader/tslint.json create mode 100644 types/react-native-charts-wrapper/index.d.ts create mode 100644 types/react-native-charts-wrapper/react-native-charts-wrapper-tests.tsx create mode 100644 types/react-native-charts-wrapper/tsconfig.json create mode 100644 types/react-native-charts-wrapper/tslint.json create mode 100644 types/react-native-check-box/index.d.ts create mode 100644 types/react-native-check-box/react-native-check-box-tests.tsx create mode 100644 types/react-native-check-box/tsconfig.json create mode 100644 types/react-native-check-box/tslint.json create mode 100644 types/react-native-material-menu/index.d.ts create mode 100644 types/react-native-material-menu/react-native-material-menu-tests.tsx create mode 100644 types/react-native-material-menu/tsconfig.json create mode 100644 types/react-native-material-menu/tslint.json create mode 100644 types/react-native-share/v1/Button.d.ts create mode 100644 types/react-native-share/v1/Overlay.d.ts create mode 100644 types/react-native-share/v1/Sheet.d.ts create mode 100644 types/react-native-share/v1/index.d.ts create mode 100644 types/react-native-share/v1/react-native-share-tests.ts create mode 100644 types/react-native-share/v1/tsconfig.json create mode 100644 types/react-native-share/v1/tslint.json create mode 100644 types/react-native-video-player/index.d.ts create mode 100644 types/react-native-video-player/react-native-video-player-tests.tsx create mode 100644 types/react-native-video-player/tsconfig.json create mode 100644 types/react-native-video-player/tslint.json create mode 100644 types/react-native/test/stylesheet-flatten.tsx create mode 100644 types/react-phone-number-input/index.d.ts create mode 100644 types/react-phone-number-input/react-phone-number-input-tests.tsx create mode 100644 types/react-phone-number-input/tsconfig.json create mode 100644 types/react-phone-number-input/tslint.json create mode 100644 types/react-recaptcha-v3/index.d.ts create mode 100644 types/react-recaptcha-v3/react-recaptcha-v3-tests.tsx create mode 100644 types/react-recaptcha-v3/tsconfig.json create mode 100644 types/react-recaptcha-v3/tslint.json create mode 100644 types/react-router-tabs/index.d.ts create mode 100644 types/react-router-tabs/react-router-tabs-tests.tsx create mode 100644 types/react-router-tabs/tsconfig.json create mode 100644 types/react-router-tabs/tslint.json create mode 100644 types/react-select/src/NonceProvider.d.ts create mode 100644 types/react-signature-canvas/index.d.ts create mode 100644 types/react-signature-canvas/react-signature-canvas-tests.tsx create mode 100644 types/react-signature-canvas/tsconfig.json create mode 100644 types/react-signature-canvas/tslint.json create mode 100644 types/react-typing-animation/index.d.ts create mode 100644 types/react-typing-animation/react-typing-animation-tests.tsx create mode 100644 types/react-typing-animation/tsconfig.json create mode 100644 types/react-typing-animation/tslint.json create mode 100644 types/reactstrap/lib/utils.d.ts create mode 100644 types/rebass/styled-components.d.ts create mode 100644 types/redis-info/index.d.ts create mode 100644 types/redis-info/redis-info-tests.ts rename types/{mkdirp-promise => redis-info}/tsconfig.json (87%) create mode 100644 types/redis-info/tslint.json create mode 100644 types/refresh-fetch/index.d.ts create mode 100644 types/refresh-fetch/refresh-fetch-tests.ts create mode 100644 types/refresh-fetch/tsconfig.json create mode 100644 types/refresh-fetch/tslint.json create mode 100644 types/relay-compiler/lib/core/CompilerContext.d.ts delete mode 100644 types/relay-compiler/lib/core/GraphQLCompilerContext.d.ts delete mode 100644 types/relay-compiler/lib/core/GraphQLIRPrinter.d.ts rename types/relay-compiler/lib/core/{GraphQLIR.d.ts => IR.d.ts} (79%) create mode 100644 types/relay-compiler/lib/core/IRPrinter.d.ts rename types/relay-compiler/lib/core/{GraphQLIRVisitor.d.ts => IRVisitor.d.ts} (91%) rename types/relay-compiler/lib/reporters/{GraphQLConsoleReporter.d.ts => ConsoleReporter.d.ts} (51%) rename types/relay-compiler/lib/reporters/{GraphQLMultiReporter.d.ts => MultiReporter.d.ts} (51%) rename types/relay-compiler/lib/reporters/{GraphQLReporter.d.ts => Reporter.d.ts} (80%) delete mode 100644 types/relay-compiler/lib/transforms/ConnectionFieldTransform.d.ts create mode 100644 types/relay-compiler/lib/transforms/ConnectionTransform.d.ts delete mode 100644 types/relay-runtime/lib/network/RelayNetworkLoggerTransaction.d.ts delete mode 100644 types/relay-runtime/lib/network/createRelayNetworkLogger.d.ts create mode 100644 types/relay-runtime/lib/store/ClientID.d.ts delete mode 100644 types/roads-server/index.d.ts delete mode 100644 types/roads-server/roads-server-tests.ts delete mode 100644 types/roads/index.d.ts delete mode 100644 types/roads/roads-tests.ts create mode 100644 types/rollup__plugin-virtual/index.d.ts create mode 100644 types/rollup__plugin-virtual/package.json create mode 100644 types/rollup__plugin-virtual/rollup__plugin-virtual-tests.ts create mode 100644 types/rollup__plugin-virtual/tsconfig.json create mode 100644 types/rollup__plugin-virtual/tslint.json create mode 100644 types/rtp-parser/index.d.ts create mode 100644 types/rtp-parser/rtp-parser-tests.ts create mode 100644 types/rtp-parser/tsconfig.json create mode 100644 types/rtp-parser/tslint.json create mode 100644 types/sax-stream/index.d.ts create mode 100644 types/sax-stream/sax-stream-tests.ts create mode 100644 types/sax-stream/tsconfig.json create mode 100644 types/sax-stream/tslint.json create mode 100644 types/sc-broker-cluster/v6/OTHER_FILES.txt create mode 100644 types/sc-broker-cluster/v6/clientcluster.d.ts create mode 100644 types/sc-broker-cluster/v6/index.d.ts create mode 100644 types/sc-broker-cluster/v6/sc-broker-cluster-tests.ts create mode 100644 types/sc-broker-cluster/v6/scbroker.d.ts create mode 100644 types/sc-broker-cluster/v6/tsconfig.json create mode 100644 types/sc-broker-cluster/v6/tslint.json delete mode 100644 types/sc-channel/sc-channel-tests.ts create mode 100644 types/sc-channel/v1/index.d.ts create mode 100644 types/sc-channel/v1/tsconfig.json create mode 100644 types/sc-channel/v1/tslint.json create mode 100644 types/scrambo/index.d.ts create mode 100644 types/scrambo/scrambo-tests.ts create mode 100644 types/scrambo/tsconfig.json create mode 100644 types/scrambo/tslint.json create mode 100644 types/scrollbooster/index.d.ts create mode 100644 types/scrollbooster/scrollbooster-tests.ts create mode 100644 types/scrollbooster/tsconfig.json create mode 100644 types/scrollbooster/tslint.json create mode 100644 types/selenium-webdriver/lib/logging.d.ts create mode 100644 types/selenium-webdriver/test/logging.ts create mode 100644 types/semver-stable/index.d.ts create mode 100644 types/semver-stable/semver-stable-tests.ts create mode 100644 types/semver-stable/tsconfig.json create mode 100644 types/semver-stable/tslint.json create mode 100644 types/semver-utils/index.d.ts create mode 100644 types/semver-utils/semver-utils-tests.ts create mode 100644 types/semver-utils/tsconfig.json create mode 100644 types/semver-utils/tslint.json create mode 100644 types/semver/classes/comparator.d.ts create mode 100644 types/semver/classes/range.d.ts create mode 100644 types/semver/classes/semver.d.ts create mode 100644 types/semver/functions/clean.d.ts create mode 100644 types/semver/functions/cmp.d.ts create mode 100644 types/semver/functions/coerce.d.ts create mode 100644 types/semver/functions/compare-build.d.ts create mode 100644 types/semver/functions/compare-loose.d.ts create mode 100644 types/semver/functions/compare.d.ts create mode 100644 types/semver/functions/diff.d.ts create mode 100644 types/semver/functions/eq.d.ts create mode 100644 types/semver/functions/gt.d.ts create mode 100644 types/semver/functions/gte.d.ts create mode 100644 types/semver/functions/inc.d.ts create mode 100644 types/semver/functions/lt.d.ts create mode 100644 types/semver/functions/lte.d.ts create mode 100644 types/semver/functions/major.d.ts create mode 100644 types/semver/functions/minor.d.ts create mode 100644 types/semver/functions/neq.d.ts create mode 100644 types/semver/functions/parse.d.ts create mode 100644 types/semver/functions/patch.d.ts create mode 100644 types/semver/functions/prerelease.d.ts create mode 100644 types/semver/functions/rcompare.d.ts create mode 100644 types/semver/functions/rsort.d.ts create mode 100644 types/semver/functions/satisfies.d.ts create mode 100644 types/semver/functions/sort.d.ts create mode 100644 types/semver/functions/valid.d.ts create mode 100644 types/semver/internals/identifiers.d.ts create mode 100644 types/semver/preload.d.ts create mode 100644 types/semver/ranges/gtr.d.ts create mode 100644 types/semver/ranges/intersects.d.ts create mode 100644 types/semver/ranges/ltr.d.ts create mode 100644 types/semver/ranges/max-satisfying.d.ts create mode 100644 types/semver/ranges/min-satisfying.d.ts create mode 100644 types/semver/ranges/min-version.d.ts create mode 100644 types/semver/ranges/outside.d.ts create mode 100644 types/semver/ranges/to-comparators.d.ts create mode 100644 types/semver/ranges/valid.d.ts create mode 100644 types/semver/v6/index.d.ts create mode 100644 types/semver/v6/semver-tests.ts create mode 100644 types/semver/v6/tsconfig.json create mode 100644 types/semver/v6/tslint.json create mode 100644 types/serialport/v7/index.d.ts create mode 100644 types/serialport/v7/serialport-tests.ts rename types/{hapi__code => serialport/v7}/tsconfig.json (76%) create mode 100644 types/serialport/v7/tslint.json create mode 100644 types/serverless-jest-plugin/index.d.ts create mode 100644 types/serverless-jest-plugin/serverless-jest-plugin-tests.ts create mode 100644 types/serverless-jest-plugin/tsconfig.json create mode 100644 types/serverless-jest-plugin/tslint.json create mode 100644 types/serviceworker-webpack-plugin/index.d.ts create mode 100644 types/serviceworker-webpack-plugin/lib/runtime.d.ts create mode 100644 types/serviceworker-webpack-plugin/serviceworker-webpack-plugin-tests.ts create mode 100644 types/serviceworker-webpack-plugin/tsconfig.json create mode 100644 types/serviceworker-webpack-plugin/tslint.json create mode 100644 types/shevyjs/constants/index.d.ts create mode 100644 types/shevyjs/index.d.ts create mode 100644 types/shevyjs/shevyjs-tests.ts create mode 100644 types/shevyjs/tsconfig.json create mode 100644 types/shevyjs/tslint.json create mode 100644 types/shevyjs/types.d.ts create mode 100644 types/shevyjs/utils/index.d.ts create mode 100644 types/simple-icons/index.d.ts create mode 100644 types/simple-icons/simple-icons-tests.ts create mode 100644 types/simple-icons/tsconfig.json create mode 100644 types/simple-icons/tslint.json create mode 100644 types/simplebar/v2/index.d.ts create mode 100644 types/simplebar/v2/simplebar-tests.ts create mode 100644 types/simplebar/v2/test/module-tests.ts create mode 100644 types/simplebar/v2/tsconfig.json create mode 100644 types/simplebar/v2/tslint.json create mode 100644 types/simulant/index.d.ts create mode 100644 types/simulant/simulant-tests.ts create mode 100644 types/simulant/tsconfig.json create mode 100644 types/simulant/tslint.json create mode 100644 types/sinonjs__fake-timers/index.d.ts create mode 100644 types/sinonjs__fake-timers/sinonjs__fake-timers-tests.ts create mode 100644 types/sinonjs__fake-timers/tsconfig.json create mode 100644 types/sinonjs__fake-timers/tslint.json create mode 100644 types/sizeof/index.d.ts create mode 100644 types/sizeof/sizeof-tests.ts rename types/{roads => sizeof}/tsconfig.json (94%) create mode 100644 types/sizeof/tslint.json create mode 100644 types/sm-crypto/index.d.ts create mode 100644 types/sm-crypto/sm-crypto-tests.ts create mode 100644 types/sm-crypto/tsconfig.json create mode 100644 types/sm-crypto/tslint.json create mode 100644 types/smshelper/index.d.ts create mode 100644 types/smshelper/smshelper-tests.ts create mode 100644 types/smshelper/tsconfig.json create mode 100644 types/smshelper/tslint.json create mode 100644 types/socketcluster-client/lib/auth.d.ts create mode 100644 types/socketcluster-client/lib/clientsocket.d.ts create mode 100644 types/socketcluster-client/lib/factory.d.ts delete mode 100644 types/socketcluster-client/lib/scclientsocket.d.ts create mode 100644 types/socketcluster-client/lib/transport.d.ts create mode 100644 types/socketcluster-server/server.d.ts create mode 100644 types/socketcluster-server/serversocket.d.ts create mode 100644 types/socketcluster-server/v14/index.d.ts rename types/socketcluster-server/{ => v14}/scserver.d.ts (100%) rename types/socketcluster-server/{ => v14}/scserversocket.d.ts (100%) create mode 100644 types/socketcluster-server/v14/socketcluster-server-tests.ts create mode 100644 types/socketcluster-server/v14/tsconfig.json create mode 100644 types/socketcluster-server/v14/tslint.json create mode 100644 types/sorted-object/index.d.ts create mode 100644 types/sorted-object/sorted-object-tests.ts create mode 100644 types/sorted-object/tsconfig.json create mode 100644 types/sorted-object/tslint.json create mode 100644 types/source-map-support/register.d.ts create mode 100644 types/standard-engine/index.d.ts create mode 100644 types/standard-engine/standard-engine-tests.ts create mode 100644 types/standard-engine/tsconfig.json create mode 100644 types/standard-engine/tslint.json create mode 100644 types/standard-version/index.d.ts create mode 100644 types/standard-version/standard-version-tests.ts create mode 100644 types/standard-version/tsconfig.json create mode 100644 types/standard-version/tslint.json create mode 100644 types/stopword/index.d.ts create mode 100644 types/stopword/stopword-tests.ts create mode 100644 types/stopword/tsconfig.json create mode 100644 types/stopword/tslint.json delete mode 100644 types/storybook__addon-storyshots-puppeteer/index.d.ts delete mode 100644 types/storybook__addon-storyshots-puppeteer/storybook__addon-storyshots-puppeteer-tests.ts delete mode 100644 types/storybook__addon-storyshots-puppeteer/tsconfig.json delete mode 100644 types/storybook__addon-storyshots/index.d.ts delete mode 100644 types/storybook__addon-storyshots/storybook__addon-storyshots-tests.ts create mode 100644 types/stream-demux/demuxed-consumable-stream.d.ts create mode 100644 types/stream-demux/index.d.ts create mode 100644 types/stream-demux/stream-demux-tests.ts create mode 100644 types/stream-demux/tsconfig.json create mode 100644 types/stream-demux/tslint.json create mode 100644 types/style-search/index.d.ts create mode 100644 types/style-search/style-search-tests.ts create mode 100644 types/style-search/tsconfig.json create mode 100644 types/style-search/tslint.json create mode 100644 types/superagent-proxy/index.d.ts create mode 100644 types/superagent-proxy/superagent-proxy-tests.ts create mode 100644 types/superagent-proxy/tsconfig.json create mode 100644 types/superagent-proxy/tslint.json create mode 100644 types/swagger-stats/index.d.ts create mode 100644 types/swagger-stats/package.json create mode 100644 types/swagger-stats/swagger-stats-tests.ts create mode 100644 types/swagger-stats/tsconfig.json create mode 100644 types/swagger-stats/tslint.json create mode 100644 types/symbol-tree/index.d.ts create mode 100644 types/symbol-tree/lib/SymbolTree.d.ts create mode 100644 types/symbol-tree/lib/TreeIterator.d.ts create mode 100644 types/symbol-tree/lib/TreePosition.d.ts create mode 100644 types/symbol-tree/test/symbol-tree.test.ts create mode 100644 types/symbol-tree/tsconfig.json create mode 100644 types/symbol-tree/tslint.json create mode 100644 types/tar-stream/v1/index.d.ts create mode 100644 types/tar-stream/v1/tar-stream-tests.ts rename types/{hapi__iron => tar-stream/v1}/tsconfig.json (76%) create mode 100644 types/tar-stream/v1/tslint.json create mode 100644 types/teslajs/index.d.ts create mode 100644 types/teslajs/teslajs-tests.ts create mode 100644 types/teslajs/tsconfig.json create mode 100644 types/teslajs/tslint.json create mode 100644 types/testing-library__cypress/OTHER_FILES.txt create mode 100644 types/testing-library__cypress/add-commands.d.ts create mode 100644 types/testing-library__jest-dom/index.d.ts create mode 100644 types/testing-library__jest-dom/test/testing-library__jest-dom-global-tests.ts rename types/{storybook__addon-storyshots => testing-library__jest-dom}/tsconfig.json (61%) create mode 100644 types/testing-library__jest-dom/tslint.json create mode 100644 types/testing-library__react/package.json create mode 100644 types/to-space-case/index.d.ts create mode 100644 types/to-space-case/to-space-case-tests.ts create mode 100644 types/to-space-case/tsconfig.json create mode 100644 types/to-space-case/tslint.json create mode 100644 types/to-title-case/index.d.ts create mode 100644 types/to-title-case/to-title-case-tests.ts create mode 100644 types/to-title-case/tsconfig.json create mode 100644 types/to-title-case/tslint.json create mode 100644 types/tz-lookup/index.d.ts create mode 100644 types/tz-lookup/tsconfig.json create mode 100644 types/tz-lookup/tslint.json create mode 100644 types/tz-lookup/tz-lookup-tests.ts create mode 100644 types/uikit/v2/README.md create mode 100644 types/uikit/v2/index.d.ts create mode 100644 types/uikit/v2/tsconfig.json create mode 100644 types/uikit/v2/tslint.json create mode 100644 types/uikit/v2/uikit-tests.ts create mode 100644 types/universalify/index.d.ts create mode 100644 types/universalify/tsconfig.json create mode 100644 types/universalify/tslint.json create mode 100644 types/universalify/universalify-tests.ts create mode 100644 types/update-notifier/v2/index.d.ts create mode 100644 types/update-notifier/v2/tsconfig.json create mode 100644 types/update-notifier/v2/tslint.json create mode 100644 types/update-notifier/v2/update-notifier-tests.ts create mode 100644 types/urijs/src/URITemplate.d.ts create mode 100644 types/urijs/test/urijs-global-module.test.ts create mode 100644 types/urijs/test/urijs-global-script.test.ts create mode 100644 types/use-resize-observer/polyfilled.d.ts create mode 100644 types/util.promisify/implementation.d.ts create mode 100644 types/uuid-apikey/index.d.ts create mode 100644 types/uuid-apikey/tsconfig.json create mode 100644 types/uuid-apikey/tslint.json create mode 100644 types/uuid-apikey/uuid-apikey-tests.ts create mode 100644 types/uuid/v3/index.d.ts create mode 100644 types/uuid/v3/interfaces.d.ts create mode 100644 types/uuid/v3/tsconfig.json create mode 100644 types/uuid/v3/tslint.json create mode 100644 types/uuid/v3/uuid-tests.ts rename types/uuid/{ => v3}/v1.d.ts (100%) rename types/uuid/{ => v3}/v4.d.ts (100%) rename types/uuid/{ => v3}/v5.d.ts (100%) create mode 100644 types/vcards-js/index.d.ts create mode 100644 types/vcards-js/tsconfig.json create mode 100644 types/vcards-js/tslint.json create mode 100644 types/vcards-js/vcards-js-tests.ts create mode 100644 types/vndb/index.d.ts create mode 100644 types/vndb/tsconfig.json create mode 100644 types/vndb/tslint.json create mode 100644 types/vndb/vndb-tests.ts create mode 100644 types/vue-feather-icons/index.d.ts create mode 100644 types/vue-feather-icons/package.json create mode 100644 types/vue-feather-icons/tsconfig.json create mode 100644 types/vue-feather-icons/tslint.json create mode 100644 types/vue-feather-icons/vue-feather-icons-tests.ts create mode 100644 types/webpack-concat-plugin/index.d.ts create mode 100644 types/webpack-concat-plugin/tsconfig.json create mode 100644 types/webpack-concat-plugin/tslint.json create mode 100644 types/webpack-concat-plugin/webpack-concat-plugin-tests.ts create mode 100644 types/webpack-dev-middleware/v2/index.d.ts create mode 100644 types/webpack-dev-middleware/v2/tsconfig.json create mode 100644 types/webpack-dev-middleware/v2/tslint.json create mode 100644 types/webpack-dev-middleware/v2/webpack-dev-middleware-tests.ts create mode 100644 types/webpack-error-notification/index.d.ts create mode 100644 types/webpack-error-notification/tsconfig.json create mode 100644 types/webpack-error-notification/tslint.json create mode 100644 types/webpack-error-notification/webpack-error-notification-tests.ts create mode 100644 types/webpack/OTHER_FILES.txt create mode 100644 types/webpack/next.d.ts rename types/webpack/{webpack-tests.ts => test/index.ts} (95%) create mode 100644 types/webpack/test/next.ts create mode 100644 types/winston-loggly-bulk/index.d.ts create mode 100644 types/winston-loggly-bulk/package.json create mode 100644 types/winston-loggly-bulk/tsconfig.json create mode 100644 types/winston-loggly-bulk/tslint.json create mode 100644 types/winston-loggly-bulk/winston-loggly-bulk-tests.ts create mode 100644 types/wordpress-hash-node/index.d.ts create mode 100644 types/wordpress-hash-node/tsconfig.json create mode 100644 types/wordpress-hash-node/tslint.json create mode 100644 types/wordpress-hash-node/wordpress-hash-node-tests.ts create mode 100644 types/wordpress__components/card/body/index.d.ts create mode 100644 types/wordpress__components/card/divider/index.d.ts create mode 100644 types/wordpress__components/card/footer/index.d.ts create mode 100644 types/wordpress__components/card/header/index.d.ts create mode 100644 types/wordpress__components/card/index.d.ts create mode 100644 types/wordpress__components/card/media/index.d.ts create mode 100644 types/workbox-build/_types.d.ts create mode 100644 types/workbox-build/generate-sw.d.ts create mode 100644 types/workbox-build/get-manifest.d.ts create mode 100644 types/workbox-build/index.d.ts create mode 100644 types/workbox-build/inject-manifest.d.ts create mode 100644 types/workbox-build/lib/copy-workbox-libraries.d.ts create mode 100644 types/workbox-build/lib/get-module-url.d.ts create mode 100644 types/workbox-build/tsconfig.json create mode 100644 types/workbox-build/tslint.json create mode 100644 types/workbox-build/workbox-build-tests.ts create mode 100644 types/writable-consumable-stream/consumer.d.ts create mode 100644 types/writable-consumable-stream/index.d.ts create mode 100644 types/writable-consumable-stream/tsconfig.json create mode 100644 types/writable-consumable-stream/tslint.json create mode 100644 types/writable-consumable-stream/writable-consumable-stream-tests.ts create mode 100644 types/x509.js/index.d.ts create mode 100644 types/x509.js/tsconfig.json create mode 100644 types/x509.js/tslint.json create mode 100644 types/x509.js/x509.js-tests.ts create mode 100644 types/xo/index.d.ts create mode 100644 types/xo/tsconfig.json create mode 100644 types/xo/tslint.json create mode 100644 types/xo/xo-tests.ts create mode 100644 types/xumm-api/index.d.ts create mode 100644 types/xumm-api/tsconfig.json create mode 100644 types/xumm-api/tslint.json create mode 100644 types/xumm-api/xumm-api-tests.ts create mode 100644 types/yargs/v13/.editorconfig create mode 100644 types/yargs/v13/index.d.ts rename types/{hapi__boom => yargs/v13}/tsconfig.json (77%) create mode 100644 types/yargs/v13/tslint.json create mode 100644 types/yargs/v13/yargs-tests.ts create mode 100644 types/yargs/v13/yargs.d.ts create mode 100644 types/yawn-yaml/cjs/index.d.ts create mode 100644 types/yawn-yaml/index.d.ts create mode 100644 types/yawn-yaml/tsconfig.json create mode 100644 types/yawn-yaml/tslint.json create mode 100644 types/yawn-yaml/yawn-yaml-tests.ts create mode 100644 types/zingchart/index.d.ts create mode 100644 types/zingchart/tsconfig.json create mode 100644 types/zingchart/tslint.json create mode 100644 types/zingchart/zingchart-tests.ts diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f75113533be2c70..048f7607ed34162 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -54,6 +54,8 @@ /types/adone/ @s0m3on3 @maxveres /types/aes-js/ @federicobond /types/aframe/ @devpaul @bertoritger @twastvedt +/types/ag-channel/ @DanielRose +/types/ag-simple-broker/ @DanielRose /types/agenda/ @meirgottlieb @princjef /types/agent-base/ @Shinigami92 /types/agiledigital__mule-preview/ @NoxHarmonium @@ -70,6 +72,7 @@ /types/akumina-core/ @akumina @jasonarden @MarshHawk /types/ale-url-parser/ @msn0 /types/alertify/ @jjeffery +/types/alex/ @peterblazejewicz /types/alexa-sdk/ @petebeegle @hoo29 @pascalwhoop @blforce @rk-7 @alexmalcoci /types/alexa-voice-service/ @dolanmiu /types/algebra.js/ @CaselIT @@ -105,6 +108,7 @@ /types/amap-js-api-scale/ @breeze9527 /types/amap-js-api-station-search/ @breeze9527 /types/amap-js-api-tool-bar/ @breeze9527 +/types/amap-js-api-transfer/ @breeze9527 /types/amap-js-sdk/ @agasbzj /types/amazon-cognito-auth-js/ @scottescue /types/amazon-connect-streams/ @andyhopp @@ -117,6 +121,7 @@ /types/amplify/ @joeriks /types/amplify-deferred/ @joeriks @laurentiustamate94 /types/amplitude-js/ @Asido @danmana @HintikkaKimmo +/types/amplitude-js/v4/ @Asido @danmana @HintikkaKimmo /types/amqp/ @seikho @jonnysparkplugs /types/amqp-connection-manager/ @rogierschouten @tstelzer /types/amqp-rpc/ @wokim @@ -126,6 +131,7 @@ /types/angular/ @diegovilar @thorn0 @calebstdenis @leonard-thieu @scipper /types/angular-agility/ @rolandzwaga /types/angular-animate/ @michelsalib @adidahiya @rasch @codyschaaf +/types/angular-aria/ @chivesrs /types/angular-block-ui/ @lassebn @sclassen @renjfk /types/angular-bootstrap-calendar/ @Odrin /types/angular-bootstrap-lightbox/ @rolandzwaga @@ -154,7 +160,7 @@ /types/angular-jwt/ @rerezz /types/angular-load/ @david-gang /types/angular-loading-bar/ @stephenlautier @tyronedougherty -/types/angular-local-storage/ @kenfdev @dona278 +/types/angular-local-storage/ @kenfdev @dona278 @peterblazejewicz /types/angular-localforage/ @reppners /types/angular-locker/ @nkovacic /types/angular-material/ @blbigelow @PeterHajdu @Dona278 @geertjansen @eknowles @chivesrs @@ -205,7 +211,7 @@ /types/any-db/ @rogierschouten /types/any-db-transaction/ @rogierschouten /types/anymatch/ @BendingBender -/types/anyproxy/ @SomaticIT +/types/anyproxy/ @SomaticIT @roland-reed /types/aos/ @shermendev @matheusgrieger /types/apex.js/ @y13i /types/api-error-handler/ @tkrotoff @@ -223,9 +229,11 @@ /types/appframework/ @kyo-ago /types/apple-mapkit-js/ @kilghaz @wsmd @chrisdrackett /types/apple-music-api/ @nchase @useffc +/types/apple-signin-api/ @voidpumpkin /types/applepayjs/ @martincostello /types/appletvjs/ @brainded /types/applicationinsights-js/ @markwolff @jpiyali @barustum +/types/apptimize__apptimize-web-sdk/ @innovation-team @rlbaxter /types/aqb/ @Athenkosi-Mase /types/arangodb/ @pluma /types/arbiter/ @arash16 @@ -234,7 +242,7 @@ /types/arcgis-rest-api/ @JeffJacobson /types/arcgis-to-geojson-utils/ @JeffJacobson /types/architect/ @greuze -/types/archiver/ @dolanmiu @crevil +/types/archiver/ @dolanmiu @crevil @peterblazejewicz /types/archy/ @vvakame /types/are-we-there-yet/ @brianloveswords /types/argon2-browser/ @ivangabriele @mymindstorm @@ -247,13 +255,14 @@ /types/array-binarysearch.closest/ @hvoecking /types/array-find-index/ @samverschueren /types/array-foreach/ @skysteve +/types/array-initial/ @Richienb /types/array-sort/ @DanielMSchmidt /types/array-unique/ @CSLTech /types/array.from/ @ExE-Boss -/types/array.prototype.flat/ @kylejlin -/types/array.prototype.flatmap/ @hallettj +/types/array.prototype.flat/ @kylejlin @ljharb +/types/array.prototype.flatmap/ @hallettj @ljharb /types/artillery/ @kmccoan-allocadia -/types/asana/ @tkqubo @tasyp +/types/asana/ @tkqubo @tasyp @filipposarzana /types/asap/ @fpascutti /types/ascii-art/ @lukaselmer /types/ascii2mathml/ @RagibHasin @@ -262,7 +271,7 @@ /types/asn1/ @jgeurts /types/asn1js/ @microshine /types/aspnet-identity-pw/ @jt000 -/types/assert/ @nicoabie @LinusU +/types/assert/ @nicoabie @LinusU @ExE-Boss /types/assert-equal-jsx/ @seryl /types/assert-plus/ @KostyaTretyak /types/assertsharp/ @brunolm @@ -272,15 +281,18 @@ /types/async-busboy/ @hirochachacha /types/async-cache/ @BendingBender /types/async-eventemitter/ @patarapolw +/types/async-iterable-stream/ @DanielRose /types/async-lock/ @elisee @afharo @rhymmor /types/async-polling/ @Goldsmith42 /types/async-retry/ @albertywu @MeLlamoPablo @rafsawicki +/types/async-stream-emitter/ @DanielRose /types/async-stream-generator/ @JakubJirutka /types/async.nexttick/ @pyrho /types/asynciterator/ @rubensworks /types/athenajs/ @warpdesign /types/atlaskit__button/ @dijimsta /types/atlaskit__calendar/ @lstanden +/types/atlaskit__feedback-collector/ @leedrick /types/atlaskit__inline-edit/ @lstanden /types/atlaskit__layer/ @lstanden /types/atlaskit__single-select/ @lstanden @@ -300,7 +312,7 @@ /types/auth-header/ @ForbesLindesay /types/auth0/ @westy92 @ianhowe76 @dauledk @dancrumb @pwrnrd @CatGuardian @neshanjo /types/auth0-angular/ @homesar -/types/auth0-js/ @adrianchia @mdurrant @peterblazejewicz @bkotrys @marknelissen +/types/auth0-js/ @adrianchia @mdurrant @peterblazejewicz @bkotrys @marknelissen @tylerlindell /types/auth0-js/v7/ @advancedrei /types/auth0-lock/ @carusology @goldcaddy77 @lfaudreejr @willcaul /types/auth0.widget/ @advancedrei @@ -309,13 +321,13 @@ /types/auto-sni/ @janwo /types/autobahn/ @darkl @a904guy @valepu @glenroy37 @spcfran /types/autocannon/ @jeremyben -/types/autoprefixer/ @odnamrataizem @murt @slavafomin +/types/autoprefixer/ @odnamrataizem @murt @slavafomin @peterblazejewicz /types/autosize/ @kingdango @keika299 @NeekSandhu /types/autosuggest-highlight/ @senukartur /types/await-timeout/ @szhu /types/awesomplete/ @webbiesdk @bmdixon @tbekolay @chrislopresto /types/aws-iot-device-sdk/ @niik @mlamp -/types/aws-lambda/ @skarum @tobyhede @buggy @y13i @wwwy3y3 @OrthoDex @MichaelMarner @daniel-cottone @kostya-misura @coderbyheart @palmithor @daniloraisi @simonbuchan @Haydabase @repl-chris @aneilbaboo @jeznag @louislarry @dpapukchiev @ohookins @trevor-leach @jagregory @dalen @loikg @skyzenr @redlickigrzegorz @juancarbonel @pwmcintyre @alex-bolenok-centralreach @marianzange @apepper +/types/aws-lambda/ @darbio @skarum @StefH @tobyhede @buggy @y13i @wwwy3y3 @OrthoDex @MichaelMarner @daniel-cottone @kostya-misura @coderbyheart @palmithor @daniloraisi @simonbuchan @Haydabase @repl-chris @aneilbaboo @jeznag @louislarry @dpapukchiev @ohookins @trevor-leach @jagregory @dalen @loikg @skyzenr @redlickigrzegorz @juancarbonel @pwmcintyre @alex-bolenok-centralreach @marianzange @apepper /types/aws-param-store/ @jasonthomasgray @nathanoertel /types/aws-regions/ @Deadarius /types/aws-serverless-express/ @threesquared @jcaffey @mattmeye @albertovasquez @@ -327,6 +339,7 @@ /types/axios-curlirize/ @stevenhankin /types/axios-token-interceptor/ @innovation-team @mgdodge /types/axon/ @jewbre +/types/azdata/ @Charles-Gagnon @anthonydresser @kburtram @kenvanhyning /types/azure/ @AndrewGaspar @antiveeranna @SomaticIT /types/azure-kusto-data/ @armanio123 /types/azure-mobile-services-client/ @dmorosinotto @@ -337,7 +350,7 @@ /types/babel-code-frame/ @mohsen1 /types/babel-core/ @yortus @marvinhagemeister /types/babel-generator/ @yortus @johnnyestilles -/types/babel-plugin-macros/ @billykwok +/types/babel-plugin-macros/ @billykwok @coffee-cup /types/babel-plugin-react-pug/ @jpap /types/babel-plugin-syntax-jsx/ @marvinhagemeister /types/babel-template/ @yortus @marvinhagemeister @@ -371,7 +384,7 @@ /types/bagpipes/ @micmro /types/baidu-app/ @taoqf /types/baidumap-web-sdk/ @ipcjs -/types/balanced-match/ @adamzerella +/types/balanced-match/ @adamzerella @peterblazejewicz /types/bandagedbd__bdapi/ @Acidic9 /types/barbellweights/ @evelijn /types/barcode/ @pvomhoff @@ -381,11 +394,12 @@ /types/base64-arraybuffer/ @jbencook /types/base64-async/ @BendingBender /types/base64-js/ @pe8ter +/types/base64-stream/ @s73obrien /types/base64-url/ @urish /types/base64topdf/ @lucasriondel /types/bases/ @harikv /types/bash-glob/ @mrmlnc -/types/basic-auth/ @moonpyk @vesse +/types/basic-auth/ @moonpyk @vesse @nwtgck /types/basicauth-middleware/ @nchaulet /types/basiclightbox/ @adrianhopebailie /types/batch-stream/ @drudge @@ -396,6 +410,7 @@ /types/bcp-47/ @cjbarth /types/bcp-47-match/ @cjbarth /types/bcrypt/ @codeanimal @IOAyman @dstapleton92 +/types/bcrypt-nodejs/ @DavidBR-SW @peterblazejewicz /types/bcryptjs/ @RafaelKr @branoholy /types/bdfjs/ @jeremejevs /types/beanstalkd/ @SomaticIT @@ -405,7 +420,7 @@ /types/behavior3/ @carrrywu /types/bell/ @SimonSchick /types/bencode/ @tobenna -/types/bent/ @me +/types/bent/ @Ovyerus /types/better-curry/ @pocesar /types/better-queue/ @maozedong /types/better-scroll/ @stoneChen @cnjack @@ -420,7 +435,7 @@ /types/bigscreen/ @dduugg /types/bin-pack/ @orentrutner /types/binary-parse-stream/ @ffflorian -/types/binary-parser/ @riggs @dolanmiu @yuhr +/types/binary-parser/ @riggs @dolanmiu @yuhr @caguiclajmg /types/binaryextensions/ @BendingBender /types/bind-ponyfill/ @skysteve /types/bindings/ @unindented @@ -435,8 +450,9 @@ /types/bl/ @Bartvds @reconbot /types/blacklist/ @mhegazy /types/blake2/ @beaulac +/types/blazor__javascript-interop/ @peterblazejewicz /types/blazy/ @julienpa -/types/blessed/ @brynbellomy @skellock @mamachanko @TooTallNate +/types/blessed/ @brynbellomy @skellock @mamachanko @TooTallNate @danikaze @jeffhuys /types/blip-sdk/ @henriquetorquato /types/blissfuljs/ @fskorzec /types/blob-stream/ @erichillah @@ -448,7 +464,7 @@ /types/bloom-filter/ @danwbyrne /types/bloomfilter/ @slawiko /types/blue-tape/ @sodatea -/types/bluebird/ @lhecker @thislooksfun +/types/bluebird/ @lhecker /types/bluebird/v2/ @Bartvds @falsandtru /types/bluebird/v1/ @Bartvds /types/bluebird-global/ @d-ph @@ -457,7 +473,7 @@ /types/blueimp-md5/ @rmartone @mkohlmyr /types/bmp-js/ @rksm /types/bn.js/ @LogvinovLeon @HenryNguyen5 @Gilthoniel -/types/body-parser/ @santialbo @vilic @dreampulse @blendsdk @tlaziuk @jwalton +/types/body-parser/ @santialbo @vilic @dreampulse @blendsdk @tlaziuk @jwalton @peterblazejewicz /types/body-parser-xml/ @tbounsiar /types/body-scroll-lock/ @kimcoder /types/bonjour/ @quentin-ol @octo-sniffle @@ -471,7 +487,7 @@ /types/bootstrap/v3/ @borisyankov @denisname /types/bootstrap-3-typeahead/ @AndersonFriaca /types/bootstrap-colorpicker/ @aleksandar-manukov -/types/bootstrap-datepicker/ @borisyankov +/types/bootstrap-datepicker/ @borisyankov @jannikkeye /types/bootstrap-fileinput/ @CheCoxshall /types/bootstrap-growl-ifightcrime/ @AndersonFriaca /types/bootstrap-maxlength/ @danmana @@ -490,30 +506,34 @@ /types/bootstrap.v3.datetimepicker/v3/ @bayitajesi /types/bootstrap3-dialog/ @nakupanda @cnboland /types/bounce.js/ @cherrry +/types/box-intersect/ @sankaku-deltalab /types/box2d/ @jbaldwin /types/bpmn-moddle/ @haydos89 /types/brace-expansion/ @BendingBender /types/braces/ @vemoo @mrmlnc /types/brainhubeu__react-carousel/ @jackall3n -/types/braintree/ @smrubin @sharno @acdr +/types/braintree/ @smrubin @sharno @acdr @sedenardi /types/braintree-web/ @chlela /types/braintree-web-drop-in/ @saoudrizwan /types/breeze/ @borisyankov +/types/bresenham/ @Chnapy /types/bricks.js/ @kondi /types/bristol/ @eheikes @ElliottCampbellJHA /types/bristol-sentry/ @ElliottCampbellJHA /types/bro-fs/ @ffflorian /types/brorand/ @chrootsu +/types/brotli-webpack-plugin/ @karol-majewski /types/browser-bunyan/ @PaulLockwood @kryops /types/browser-fingerprint/ @LKay /types/browser-harness/ @scriby +/types/browser-or-node/ @jussikinnula /types/browser-pack/ @TeamworkGuy2 /types/browser-report/ @JTOne123 /types/browser-resolve/ @marionebl /types/browser-sync/ @joeskeen @aznnomness @yuma84 /types/browser-sync-webpack-plugin/ @dsifford /types/browserify/ @AndrewGaspar @jvilk @leonard-thieu @LinusU -/types/browserslist/ @davecardwell @AndrewLeedham +/types/browserslist/ @davecardwell @AndrewLeedham @peterblazejewicz /types/browserslist-useragent/ @nju33 /types/bs58/ @chrootsu @BendingBender /types/bs58/v3/ @chrootsu @@ -528,14 +548,17 @@ /types/buffer-equal/ @Bartvds /types/buffer-from/ @burnnat /types/buffer-reader/ @nrlquaker +/types/buffer-split/ @ciffelia /types/buffer-xor/ @danwbyrne /types/bufferhelper/ @VladimirGrenaderov @maxbogus /types/buffers/ @rhencke /types/bufferstream/ @Bartvds /types/build-output-script/ @BendingBender -/types/bull/ @bgrieder @JProgrammer @marshall007 @weeco @blaugold @iamolegga @koblas @bondz @wuha-team @aleccool213 @danmana @kjellmorten @pc-jedi @lenovouser @hados99 @borys-kupar @remko79 +/types/bull/ @bgrieder @JProgrammer @marshall007 @weeco @blaugold @iamolegga @koblas @bondz @wuha-team @aleccool213 @danmana @kjellmorten @pc-jedi @lenovouser @hados99 @borys-kupar @remko79 @levibostian /types/bull/v2/ @bgrieder @JProgrammer /types/bull-arena/ @levibostian +/types/bull-board/ @kevenleone +/types/bulma-calendar/ @remcohaszing /types/bump-regex/ @silkentrance /types/bunnymq/ @cyrilschumacher /types/bunyan/ @amikhalev @@ -568,12 +591,12 @@ /types/calq/ @eirikhm /types/camelcase-keys-deep/ @englund0110 /types/camo/ @lucasmciruzzi -/types/camunda-external-task-client-js/ @MacRusher +/types/camunda-external-task-client-js/ @MacRusher @hados99 /types/cancan/ @Vincent-Pang /types/caniuse-api/ @davecardwell /types/caniuse-lite/ @mutech /types/cannon/ @clark-stevenson @Gelio -/types/canvas-confetti/ @matracey +/types/canvas-confetti/ @matracey @joshbatley /types/canvas-gauges/ @Mikhus /types/canvasjs/ @brutalimp /types/canvaskit-wasm/ @ashlanderr @@ -587,6 +610,7 @@ /types/carbon__pictograms-react/ @metonym /types/carbon__themes/ @vpicone /types/carbon__type/ @vpicone +/types/carbone/ @apatryda /types/card-validator/ @ChanceM /types/carlo/ @adierkens /types/case-sensitive-paths-webpack-plugin/ @r3nya @@ -606,9 +630,10 @@ /types/ccapture.js/ @samalexander /types/center-align/ @claasahl /types/centra/ @twooster -/types/cesium/ @Zuzon @hnipps @szechyjs @golyalpha @KeyboardSounds @soyarsauce @jrafidi @morgansierrasnyder +/types/cesium/ @Zuzon @hnipps @szechyjs @golyalpha @KeyboardSounds @soyarsauce @jrafidi @morgansierrasnyder @crocsx +/types/cfenv/ @jordanadams /types/cfn-response/ @ivoisbelongtous -/types/chai/ @jedmao @Bartvds @AGBrown @olivr70 @mwistrand @joshuakgoldberg @shaunluttin @Naktibalda @micksatana @ErikSchierboom @9999years @bparan +/types/chai/ @jedmao @Bartvds @AGBrown @olivr70 @mwistrand @joshuakgoldberg @shaunluttin @Naktibalda @micksatana @ErikSchierboom @bparan @CXuesong /types/chai/v2/ @Bartvds @AGBrown /types/chai-almost/ @kclnn /types/chai-arrays/ @clementprevot @@ -627,6 +652,7 @@ /types/chai-roughly/ @swist /types/chai-spies/ @kuzn-ilya @harm-less @jounisuo /types/chai-string/ @nmalaguti +/types/chai-style/ @AviVahl /types/chai-subset/ @delta62 @AGBrown /types/chai-uuid/ @harm-less /types/chai-xml/ @jedigo @@ -639,8 +665,8 @@ /types/chardet/ @Gebatzens @samhinshaw /types/charm/ @Xananax /types/charset/ @cspotcode -/types/chart.js/ @anuti @FabienLavocat @KentarouTakeda @larrybahr @mernen @josefpaij @danmana @guillaume-ro-fr @archy-bold @braincore @frabnt @alexdor @mahnuh @Conrad777 @adripanico @wertzui @lekoaf @ElianCordoba @indigolain @ricardo-mello @rnicholus @mrjack88 @canoceto -/types/chartist/ @mtgibbs @psimonski @affilnost @sunnyrjuneja +/types/chart.js/ @anuti @FabienLavocat @KentarouTakeda @larrybahr @mernen @josefpaij @danmana @guillaume-ro-fr @archy-bold @braincore @frabnt @alexdor @mahnuh @Conrad777 @adripanico @wertzui @lekoaf @ElianCordoba @indigolain @ricardo-mello @rnicholus @mrjack88 @canoceto @nobu222 @Marcoru97 +/types/chartist/ @mtgibbs @psimonski @affilnost @sunnyrjuneja @raudabaugh /types/chartmogul-node/ @chartmogul /types/chayns/ @HenningKuehl /types/check-error/ @Seally @@ -648,7 +674,7 @@ /types/check-types/ @idchlife /types/checkstyle-formatter/ @mhegazy /types/checksum/ @rogierschouten -/types/cheerio/ @blittle @wmaurer @umarniz @LiJinyao @chennakrishna8 @AzSiAz @nwtgck @9999years +/types/cheerio/ @blittle @wmaurer @umarniz @LiJinyao @chennakrishna8 @AzSiAz @nwtgck /types/chess.js/ @JacobFischer /types/chessboardjs/ @sliverb @davidmpaz /types/child-process-promise/ @TheDSCPL @@ -658,7 +684,7 @@ /types/chownr/ @BendingBender /types/chroma-js/ @invliD @mpacholec /types/chroma-js/v0/ @invliD -/types/chrome/ @matthewkimber @otiai10 @couven92 @rreverser @sreimer15 @MatCarlson @ekinsol @tregagnon +/types/chrome/ @matthewkimber @otiai10 @couven92 @rreverser @sreimer15 @MatCarlson @ekinsol @tregagnon @echoabstract @spasma /types/chrome-apps/ @niikoo @AdamLay @pine613 @mzsm @RReverser @pyle @matthewkimber @otiai10 @couven92 @rreverser @sreimer15 /types/chromecast-caf-receiver/ @Serabe @craigrbruce @brandonrisell /types/chromecast-caf-sender/ @samuelmaddock @@ -677,10 +703,12 @@ /types/ckeditor__ckeditor5-utils/ @denisname /types/clamp-js/ @Hikariii /types/clamp-js-main/ @sinziananicolae +/types/clarinet/ @corno /types/classnames/ @adidahiya @JKillian @seansfkelley @mradamczyk @marvinhagemeister @joshmccullough @uhyo /types/cldrjs/ @RamanBut-Husaim @gcastre /types/clean-css/ @tkrotoff @GolaWaya /types/clean-css/v3/ @tkrotoff +/types/clean-git-ref/ @JamieMagee /types/clean-regexp/ @BendingBender /types/clear/ @connorjayfitzgerald /types/clearbladejs-client/ @ClearBlade @@ -689,7 +717,7 @@ /types/cleave.js/ @clentfort @jasongi-at-sportsbet @sashashakun /types/cli/ @kayahr /types/cli-box/ @athasach -/types/cli-color/ @ChaosinaCan +/types/cli-color/ @ChaosinaCan @OpportunityLiu /types/cli-interact/ @ffflorian /types/cli-progress/ @mhegazy @alvaromartmart /types/cli-spinner/ @janslow @@ -717,13 +745,14 @@ /types/clui/ @farzadmf /types/clusterize.js/ @Pr1st0n /types/cmd-shim/ @cspotcode +/types/cnpj/ @migueldevmt /types/co/ @doniyor2109 /types/co-body/ @geoffreak /types/co-views/ @devlee @geoffreak /types/code/ @prashaantt /types/codeflask/ @holwech /types/codegen.macro/ @charlee -/types/codemirror/ @mihailik @nrbernard @Pr1st0n @rileymiller @toddself @ysulyma +/types/codemirror/ @mihailik @nrbernard @Pr1st0n @rileymiller @toddself @ysulyma @azoson /types/codependency/ @morphatic /types/coffeeify/ @tkQubo /types/coinbase/ @rogierschouten @@ -739,6 +768,7 @@ /types/color-check/ @ecraig12345 /types/color-convert/ @Airlun /types/color-diff/ @katsanva +/types/color-hash/ @JohannesHoppe @ksocha /types/color-name/ @Ailrun /types/color-namer/ @in19farkt /types/color-string/ @BendingBender @danmarshall @@ -749,6 +779,7 @@ /types/columnify/ @garyking /types/com.darktalker.cordova.screenshot/ @akarienta /types/com.wikitude.phonegap.wikitudeplugin/ @zbarbuto +/types/combinations/ @rafamel /types/combine-reducers/ @me /types/combine-source-map/ @TeamworkGuy2 /types/combined-stream/ @felixge @tlaziuk @konpikwastaken @@ -763,6 +794,7 @@ /types/commangular/ @hiraash /types/comment-json/ @Jason3S /types/commercetools__enzyme-extensions/ @screendriver +/types/commitlint__load/ @martinmcwhorter /types/common-errors/ @icopp /types/common-prefix/ @seangenabe /types/common-tags/ @zuzusik @tzupengwang @BendingBender @@ -778,7 +810,7 @@ /types/compose-function/ @denis-sokolov /types/compress.js/ @yurist38 /types/compressible/ @BendingBender -/types/compression/ @santialbo @rburgt @neilbryson +/types/compression/ @santialbo @rburgt @neilbryson @peterblazejewicz /types/compression-webpack-plugin/ @dublicator @rhys-vdw /types/compute-argmax/ @EricCrosson /types/compute-quantile/ @mrmlnc @@ -786,11 +818,14 @@ /types/concat-map/ @claasahl /types/concat-stream/ @jmarianer /types/concaveman/ @DenisCarriere -/types/concurrently/ @Blasz +/types/concurrently/ @Blasz @peterblazejewicz +/types/concurrently/v4/ @Blasz +/types/conditional/ @rzhw /types/conductor-animate/ @DefinitelyTyped /types/confidence/ @jppellerin /types/config/ @RWander @forrestbice @jndonald3 @albertovasquez /types/config-yaml/ @Arylo +/types/configs-overload/ @anton-drobot /types/configstore/ @ArcticLight /types/configurable/ @jewbre /types/confit/ @ethanresnick @@ -804,7 +839,6 @@ /types/connect-history-api-fallback-exclusions/ @tonystonee /types/connect-livereload/ @SomaticIT /types/connect-modrewrite/ @tinganho -/types/connect-mongo/ @Syati @guyellis /types/connect-mongodb-session/ @NattapongSiri /types/connect-pg-simple/ @pasieronen /types/connect-redis/ @xstoudi @sbutler2901 @JipSterk @@ -817,13 +851,23 @@ /types/console-ui/ @dfreeman /types/consolidate/ @soywiz @theosherry @nicolashenry @AndrewLeedham /types/consul/ @chrootsu @vadim-v +/types/consumable-stream/ @DanielRose /types/contains-path/ @BendingBender /types/content-disposition/ @bomret /types/content-range/ @bricka /types/content-type/ @horiuchi @BendingBender /types/contentful-resolve-response/ @antonkarsten +/types/contentstack/ @domness /types/contextjs/ @kernhanda /types/continuation-local-storage/ @rath @heycalmdown @aboveyou00 +/types/contract-proxy-kit/ @cag +/types/conventional-changelog/ @JasonHK +/types/conventional-changelog-config-spec/ @JasonHK +/types/conventional-changelog-core/ @JasonHK +/types/conventional-changelog-preset-loader/ @JasonHK +/types/conventional-changelog-writer/ @JasonHK +/types/conventional-commits-parser/ @JasonHK +/types/conventional-recommended-bump/ @JasonHK /types/convert-layout/ @xeningem /types/convert-source-map/ @AndrewGaspar @mgroenhoff @TeamworkGuy2 /types/convert-string/ @hmajid2301 @@ -870,7 +914,7 @@ /types/couchbase/ @maouida @fluggo /types/countdown/ @gjuchault @Ionaru /types/counterpart/ @santiagodoldan -/types/countries-and-timezones/ @zero51 @pokonski @lukyth +/types/countries-and-timezones/ @zero51 @pokonski @lukyth @dalen /types/country-data/ @biltongza /types/country-list/ @iRoachie @Kimahriman /types/country-list/v1/ @iRoachie @@ -891,7 +935,8 @@ /types/credential/ @phuvo /types/credit-card-type/ @LKay /types/critters-webpack-plugin/ @JuanJoseGonGi -/types/cron/ @horiuchi @winup +/types/cron/ @horiuchi @winup @koooge +/types/cron-converter/ @DouglasAntunes /types/croppie/ @connor4312 @dklmuc @sarunint @knuthelgesen /types/cross-spawn/ @Alorel @ExE-Boss /types/crossfilter/ @schmuli @iebaker @nordfjord @TijmenW @@ -912,6 +957,7 @@ /types/css-mediaquery/ @eps1lon /types/css-modules/ @NeekSandhu /types/css-modules-loader-core/ @skovy +/types/css-selector-tokenizer/ @AviVahl /types/css-to-style/ @bengry /types/css-tree/ @erik-kallen /types/cssbeautify/ @rictic @@ -922,12 +968,13 @@ /types/csv2json/ @dex4er /types/csvrow/ @codeanimal /types/csvtojson/ @EricByers @wcarson -/types/cucumber/ @abraaoalves @jan-molak @isoung @BendingBender @ErikSchierboom @petermorlion @DonJayamanne @davidjgoss +/types/cucumber/ @abraaoalves @jan-molak @isoung @BendingBender @ErikSchierboom @petermorlion @DonJayamanne @davidjgoss @albertossilva /types/cucumber/v3/ @abraaoalves @jan-molak @isoung @BendingBender @ErikSchierboom @petermorlion /types/cucumber/v1/ @abraaoalves @jan-molak @isoung @BendingBender @petermorlion /types/cuint/ @ltetzlaff /types/currency-formatter/ @mhegazy @davidmpaz /types/current-git-branch/ @VladimirGrenaderov @maxbogus +/types/cuss/ @peterblazejewicz /types/custom-error-generator/ @thmiceli /types/custom-functions-runtime/ @OfficeDev @akrantz @Zlatkovsky @mscharlock @davidchesnut /types/cwd/ @BendingBender @@ -941,7 +988,7 @@ /types/cypress-axe/ @wKovacs64 /types/cypress-cucumber-preprocessor/ @aleccool213 @falconertc /types/cypress-image-snapshot/ @Keysox -/types/cytoscape/ @phreed @wy193777 @ypconstante @janniclas @cerberuser @gsbelarus @peterjferrarotto @spaxe +/types/cytoscape/ @phreed @wy193777 @ypconstante @janniclas @cerberuser @gsbelarus @peterjferrarotto @spaxe @appleparan /types/d/ @BendingBender /types/d20/ @pipboy3000 /types/d3/ @tomwanzek @gustavderdrache @borisyankov @denisname @@ -978,8 +1025,9 @@ /types/d3-queue/ @tomwanzek @gustavderdrache @borisyankov @denisname /types/d3-random/ @tomwanzek @gustavderdrache @borisyankov /types/d3-request/ @Ledragon @gustavderdrache @borisyankov @tomwanzek @denisname +/types/d3-require/ @kindy /types/d3-sankey/ @tomwanzek @gustavderdrache -/types/d3-scale/ @tomwanzek @gustavderdrache @borisyankov @denisname +/types/d3-scale/ @tomwanzek @gustavderdrache @borisyankov @denisname @rulonder /types/d3-scale/v1/ @tomwanzek @gustavderdrache @borisyankov /types/d3-scale-chromatic/ @Ledragon @gustavderdrache @borisyankov @henriquefm /types/d3-selection/ @tomwanzek @gustavderdrache @borisyankov @denisname @@ -989,7 +1037,7 @@ /types/d3-time-format/ @tomwanzek @gustavderdrache @borisyankov /types/d3-timer/ @tomwanzek @gustavderdrache @borisyankov @denisname /types/d3-tip/ @brspnnggrt -/types/d3-transition/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-transition/ @tomwanzek @gustavderdrache @borisyankov @robertmoura /types/d3-voronoi/ @tomwanzek @gustavderdrache @borisyankov @denisname /types/d3-zoom/ @tomwanzek @gustavderdrache @borisyankov @denisname /types/d3.slider/ @lk-chen @@ -1045,6 +1093,7 @@ /types/decay/ @enaeseth /types/decode-entities/ @waspothegreat /types/decode-uri-component/ @BendingBender +/types/decomment/ @peterblazejewicz /types/decompress/ @plantain-00 @jbethke /types/decorum/ @dflor003 /types/dedent/ @douglasduteil @@ -1060,7 +1109,7 @@ /types/defaults/ @IbtihelCHNAB /types/defaults-deep/ @Kocal /types/defer-promise/ @niklasf -/types/define-properties/ @ExE-Boss +/types/define-properties/ @ExE-Boss @ljharb /types/defined/ @BendingBender /types/deglob/ @saadq /types/deindent/ @AviVahl @@ -1100,6 +1149,7 @@ /types/di-lite/ @dcrusader /types/diacritics/ @otociulis /types/dialog-polyfill/ @rubenswieringa +/types/dialogflow-fulfillment/ @nightillusions @slowtick @diegodalbosco @MTRNord /types/dicer/ @GoupilRobin @BendingBender /types/didyoumean/ @jamesgeorge007 /types/diff/ @vvakame @szdc @moc-yuto @BendingBender @@ -1113,6 +1163,7 @@ /types/dir-glob/ @BendingBender /types/dir-resolve/ @andy-ms /types/dir-walker-gen/ @aynurin +/types/direction/ @andrew--r /types/dirname-regex/ @BendingBender /types/dirty-chai/ @dex4er /types/discontinuous-range/ @OiCMudkips @@ -1128,6 +1179,7 @@ /types/dlv/ @ryansonshine /types/dnssd/ @angelmerino @Maxr1998 /types/doccookies/ @jonegerton +/types/docker-events/ @ciffelia /types/dockerode/ @seikho @nlaplante @isac322 @lazarusx @meisenzahl @thegecko @CameronDiver @p4sca1 /types/docopt/ @giggio /types/doctrine/ @rictic @@ -1135,14 +1187,18 @@ /types/documentdb/ @NoelAbrahams @brettferdosi @ctstone @yifanwu /types/documentdb-server/ @lith-light-g /types/documentdb-session/ @DanielRosenwasser +/types/docx-templates/ @mathe42 /types/dogapi/ @olebedev /types/doge-seed/ @BendingBender /types/dojo/ @vansimke /types/dom-clipboard-api/ @43081j /types/dom-inputevent/ @diagramatics -/types/dom-mediacapture-record/ @eliasmeire +/types/dom-matches/ @AviVahl +/types/dom-mediacapture-record/ @eliasmeire @AppLover69 +/types/dom-parser/ @gbidkar /types/dom-to-image/ @JipSterk /types/dom4/ @adidahiya @giladgray +/types/domexception/ @ExE-Boss /types/domhandler/ @johandavidson /types/domo/ @Steve-Fenton /types/dompurify/ @bazuzi @FlowCrypt @Exigerr @@ -1159,6 +1215,7 @@ /types/dotdotdot/ @milanjaros /types/dotenv-flow/ @vincentlanglet @kerimdzhanov /types/dotenv-flow/v2/ @vincentlanglet @kerimdzhanov +/types/dotenv-parse-variables/ @garyking /types/dotenv-safe/ @krenor /types/dotenv-webpack/ @karol-majewski @davecardwell /types/dotfile-regex/ @mrmlnc @@ -1168,6 +1225,7 @@ /types/doubleclick-gpt/ @johngeorgewright @steven-joyce @joeflateau @vanessa-lyn @krishnaglick /types/download/ @nicojs /types/downloadjs/ @cwmoo740 @josuedevmark +/types/downscale/ @Lunrtick /types/dplayer/ @Guanyunhan /types/draft-convert/ @MunifTanjim /types/draft-js/ @dmitryrogozhny @eelco @ghotiphud @schwers @michael-yx-wu @willisplummer @smvilar @sulf @pablopunk @claudiopro @khawkinson @MunifTanjim @benhjames @@ -1175,8 +1233,10 @@ /types/drag-timetable/ @chinkan /types/draggabilly/ @jaydubu /types/dragscroll/ @spkellydev +/types/dragselect/ @me /types/dragster/ @zskovacs -/types/dragula/ @pwelter34 @abruzzihraig +/types/dragula/ @pwelter34 @abruzzihraig @peterblazejewicz +/types/dragula/v2/ @pwelter34 @abruzzihraig /types/driftless/ @dandelany /types/drivelist/ @WholeMilk /types/dropbox-chooser/ @quas94 @@ -1186,7 +1246,10 @@ /types/dropzone/v4/ @nvivo @outring @renuo @Hikariii /types/ds18b20/ @crycode-de /types/dts-generator/ @mtraynham +/types/du/ @Richienb /types/duckduckgo-images-api/ @bartduisters +/types/duo_web_sdk/ @lhhong +/types/duosecurity__duo_web/ @lhhong /types/duplexer2/ @Goldsmith42 @AlphaHydrae /types/duplexer3/ @BendingBender /types/duplexify/ @strax @kinwa91 @@ -1236,7 +1299,7 @@ /types/egjs__axes/ @naver /types/egjs__component/ @naver /types/ej.web.all/ @syncfusion -/types/ejs/ @benliddicott @ExE-Boss +/types/ejs/ @benliddicott @ExE-Boss @peterblazejewicz /types/ejs-locals/ @jt000 /types/ejson/ @shantanubhadoria /types/elasticlunr/ @goblindegook @@ -1244,7 +1307,7 @@ /types/electron-clipboard-extended/ @Jungwoo-An /types/electron-devtools-installer/ @gamesmaxed @mfatihmar /types/electron-json-storage/ @stpettersens @nrlquaker @jbw91 -/types/electron-load-devtool/ @prince0203 +/types/electron-load-devtool/ @ciffelia /types/electron-localshortcut/ @ffflorian /types/electron-notifications/ @djpereira /types/electron-notify/ @djpereira @@ -1268,6 +1331,10 @@ /types/ember/v1/ @jedmao /types/ember-data/ @dwickern @mike-north @chriskrycho /types/ember-data/v2/ @dwickern @mike-north @chriskrycho +/types/ember-data__adapter/ @mike-north @chriskrycho @dfreeman @jamescdavis +/types/ember-data__model/ @mike-north @chriskrycho @dfreeman @jamescdavis +/types/ember-data__serializer/ @me @dfreeman @jamescdavis @mike-north +/types/ember-data__store/ @me @dfreeman @jamescdavis @mike-north /types/ember-feature-flags/ @tansongyang @mike-north /types/ember-feature-flags/v3/ @tansongyang @mike-north /types/ember-mocha/ @dwickern @simonihmig @mike-north @@ -1290,7 +1357,7 @@ /types/ember__object/ @mike-north /types/ember__ordered-set/ @chriskrycho /types/ember__polyfills/ @mike-north -/types/ember__routing/ @mike-north +/types/ember__routing/ @mike-north @chriskrycho @dfreeman @jamescdavis /types/ember__runloop/ @mike-north @scalvert /types/ember__service/ @mike-north /types/ember__string/ @mike-north @@ -1301,13 +1368,13 @@ /types/emissary/ @vvakame /types/emoji-flags/ @tdukart /types/emoji-js/ @jasondibenedetto -/types/emoji-mart/ @Jessidhia @Nicell @elvis-wolcott +/types/emoji-mart/ @Jessidhia @Nicell @elvis-wolcott @seoyunho /types/emoji-regex/ @iKBAHT @ifiokjr /types/emoji-strip/ @garyking /types/emojione/ @dbrgn @sliker /types/empower/ @vvakame /types/empty-dir/ @BendingBender @djcsdy -/types/emscripten/ @zakki @periklis +/types/emscripten/ @zakki @periklis @kbumsik /types/encodeurl/ @BendingBender /types/encoding-down/ @MeirionHughes @danwbyrne /types/end-of-stream/ @strax @@ -1324,10 +1391,10 @@ /types/env-ci/ @BendingBender /types/env-to-object/ @MugeSo /types/envify/ @tkQubo -/types/enzyme/ @MarianPalkus @NoHomey @jwbay @huhuanming @MartynasZilinskas @thovden @hotell @screendriver @mateuszsokola @braidencutforth @erickzhao @jtomaszewski -/types/enzyme-adapter-react-15/ @tkrotoff -/types/enzyme-adapter-react-15.4/ @nali -/types/enzyme-adapter-react-16/ @tkrotoff +/types/enzyme/ @MarianPalkus @NoHomey @jwbay @huhuanming @MartynasZilinskas @thovden @hotell @screendriver @mateuszsokola @braidencutforth @erickzhao @jtomaszewski @ljharb +/types/enzyme-adapter-react-15/ @tkrotoff @ljharb +/types/enzyme-adapter-react-15.4/ @nali @ljharb +/types/enzyme-adapter-react-16/ @tkrotoff @ljharb /types/enzyme-async-helpers/ @kimehrenpohl /types/enzyme-react-intl/ @mateusz-meller /types/enzyme-redux/ @knegusen @@ -1338,11 +1405,13 @@ /types/epub/ @julien-c /types/eq.js/ @stephenlautier /types/error-subclass/ @fitbit -/types/errorhandler/ @santialbo +/types/errorhandler/ @santialbo @peterblazejewicz /types/es-feature-detection/ @Jack-Works +/types/es-module-lexer/ @NotWoods /types/es-to-primitive/ @ExE-Boss @ljharb /types/es6-collections/ @rbuckton /types/es6-promisify/ @harryshipton @bschlenk +/types/es6-set-proptypes/ @zozoens31 /types/es6-shim/ @rbuckton /types/es6-weak-map/ @pine /types/esc-pos-encoder/ @dlimkin @@ -1355,6 +1424,7 @@ /types/eslint-plugin-prettier/ @ikatyang /types/eslint-scope/ @mysticatea /types/eslint-visitor-keys/ @mysticatea +/types/esm/ @Richienb /types/esprima/ @teppeis @RReverser @peter-scott /types/esprima/v2/ @teppeis @RReverser /types/esprima-walk/ @tswaters @@ -1385,14 +1455,14 @@ /types/events/ @yasupeke @weareoutman /types/events.once/ @0x326 /types/eventsource/ @scottleedavis @afroozeh @snakedrak @Akuukis -/types/evernote/ @corps +/types/evernote/ @corps @fcastilloec /types/excel-style-dataformatter/ @SanderDeWaal1992 /types/exenv/ @christianchown /types/exif/ @ffflorian /types/exit/ @Bartvds /types/exorcist/ @TeamworkGuy2 /types/expand-tilde/ @carnesen -/types/expect-puppeteer/ @JoshuaKGoldberg @tkrotoff +/types/expect-puppeteer/ @JoshuaKGoldberg @tkrotoff @jfm710 /types/expect.js/ @teppeis /types/expectations/ @vvakame /types/expired/ @BendingBender @@ -1401,7 +1471,7 @@ /types/expo-mixpanel-analytics/ @martintreurnicht /types/expo__status-bar-height/ @dawnmist /types/expo__vector-icons/ @incleaf @robertying -/types/express/ @borisyankov @CMUH +/types/express/ @borisyankov @CMUH @puneetar /types/express-actuator/ @etruta /types/express-async-wrap/ @remyoudemans /types/express-boom/ @Nox-404 @@ -1417,8 +1487,8 @@ /types/express-domain-middleware/ @hookclaw /types/express-ejs-layouts/ @erikma /types/express-enforces-ssl/ @kevinstubbs -/types/express-fileupload/ @Naktibalda @silkimen @vosatom -/types/express-flash/ @iMobs +/types/express-fileupload/ @Naktibalda @silkimen @vosatom @peterblazejewicz +/types/express-flash/ @iMobs @peterblazejewicz /types/express-flash-2/ @mathsalmi /types/express-flash-notification/ @Mister4Eyes /types/express-form-data/ @NomNes @@ -1433,13 +1503,14 @@ /types/express-mongo-sanitize/ @ericbyers /types/express-mung/ @cyrilschumacher @levibostian /types/express-myconnection/ @Cellule -/types/express-mysql-session/ @Akim95 +/types/express-mysql-session/ @Akim95 @mathe42 /types/express-ntlm/ @forivall /types/express-oauth-server/ @atd-schubert /types/express-paginate/ @AmirTugi /types/express-partials/ @jt000 /types/express-pino-logger/ @iamolegga @tough-griff -/types/express-rate-limit/ @cyrilschumacher @makepost @jdforsythe +/types/express-rate-limit/ @cyrilschumacher @makepost @jdforsythe @peterblazejewicz +/types/express-rate-limit/v3/ @cyrilschumacher @makepost @jdforsythe /types/express-rate-limit/v2/ @cyrilschumacher @makepost /types/express-redis-cache/ @ajliv /types/express-request-id/ @jgeth @@ -1447,10 +1518,10 @@ /types/express-routemap/ @icopp /types/express-routes-versioning/ @weffe /types/express-sanitized/ @cjbarth -/types/express-serve-static-core/ @borisyankov @19majkel94 @kacepe @micksatana @samijaber @aereal @JoseLion -/types/express-session/ @horiuchi @jacobbogers @builtinnya @ry7n @fiznool +/types/express-serve-static-core/ @borisyankov @19majkel94 @kacepe @micksatana @samijaber @aereal @JoseLion @dwrss +/types/express-session/ @horiuchi @jacobbogers @builtinnya @ry7n @fiznool @peterblazejewicz /types/express-sitemap-xml/ @ffflorian -/types/express-slow-down/ @jdforsythe +/types/express-slow-down/ @jdforsythe @joshhendo /types/express-socket.io-session/ @AylaJK /types/express-sslify/ @bengry /types/express-status-monitor/ @me @@ -1474,14 +1545,14 @@ /types/eyes/ @brynbellomy /types/ez-plus/ @AndersonFriaca /types/f1/ @neolwc -/types/fabric/ @oklemencic @joewashear007 @mrand01 @NotWoods @bmartinson @RogerioTeixeira @BradleyHill @bmkrol823 @glenngartner @codertx @mike667 +/types/fabric/ @oklemencic @joewashear007 @mrand01 @NotWoods @bmartinson @RogerioTeixeira @BradleyHill @bmkrol823 @glenngartner @codertx @mike667 @nataliemarleny /types/facebook-instant-games/ @menushka @oyvindjam @nialna /types/facebook-js-sdk/ @amritk @mahmoudzohdi @fluidsonic @bengry /types/facebook-locales/ @CvX /types/facebook-pixel/ @noctishsu @VictorHom /types/facepaint/ @DogPawHat @antonsamper @timswalling /types/factory-girl/ @stackbuilders @sestrella @elcuy @OlivierKamers -/types/faker/ @bensw @basp @Kuniwak @mattbishop +/types/faker/ @bensw @basp @Kuniwak @mattbishop @testica /types/faker/v3/ @Kuniwak /types/falafel/ @delprzemo /types/falcor/ @Quramy @lukerielley @@ -1512,7 +1583,6 @@ /types/favico.js/ @drowse314-dev-ymat /types/favicons/ @mohsen1 @metsawyr @arturovt /types/favicons-webpack-plugin/ @pmeller -/types/fb/ @JoshStrobl /types/fb-watchman/ @whtsky /types/fbemitter/ @kmxz /types/feather-icons/ @jineshshah36 @@ -1552,22 +1622,27 @@ /types/fibjs/ @richardo2016 /types/figlet/ @Ailrun /types/figma/ @rudi-c +/types/file-entry-cache/ @me /types/file-exists/ @BendingBender /types/file-loader/ @g-rath /types/file-saver/ @cyrilschumacher @DaIgeb @chrismbarr @HitkoDev +/types/file-size/ @Richienb /types/filesize-parser/ @garyking +/types/filing-cabinet/ @peterblazejewicz /types/fill-pdf/ @westy92 /types/filter-invalid-dom-props/ @icopp /types/final-form-focus/ @huan086 /types/finalhandler/ @chrootsu @hbomark /types/finch/ @DavidSichau /types/find/ @andypyrope -/types/find-cache-dir/ @BendingBender +/types/find-cache-dir/ @BendingBender @peterblazejewicz +/types/find-cache-dir/v2/ @BendingBender /types/find-down/ @ffflorian /types/find-package-json/ @BendingBender /types/find-parent-dir/ @ikatyang /types/find-project-root/ @ikatyang /types/find-root/ @Alorel +/types/find-unused-sass-variables/ @peterblazejewicz /types/findup-sync/ @Bartvds @ngbrown @BendingBender @kotarella1110 /types/findup-sync/v0/ @Bartvds @ngbrown /types/fined/ @BendingBender @@ -1584,7 +1659,7 @@ /types/fixed-data-table/ @pepaar @stephenjelfs /types/fixed-data-table-2/ @ilivit /types/flagged-respawn/ @BendingBender -/types/flat/ @chrootsu +/types/flat/ @chrootsu @thewizarodofoz /types/flat-cache/ @kevinpollet /types/flatbush/ @mfedderly /types/fleximap/ @DanielRose @@ -1626,7 +1701,7 @@ /types/force-graph/ @p-kimberley @Strum355 /types/forever-agent/ @yavanosta /types/forever-monitor/ @shuntksh @wrboyce -/types/forge-apis/ @Autodesk-Forge +/types/forge-apis/ @Autodesk-Forge @dukedhx /types/forge-viewer/ @Autodesk-Forge @alansmithnbs /types/form-serialize/ @tyler-johnson /types/form-serializer/ @flqw @@ -1645,6 +1720,7 @@ /types/fpsmeter/ @alampros /types/framebus/ @kbukum /types/franc/ @wlegate +/types/frappe-gantt/ @samalexander /types/frctl__fractal/ @pmccloghrylaing /types/frecency/ @sw-yx /types/freedom/ @jpevarnek @@ -1661,7 +1737,7 @@ /types/fs-capacitor/ @mike-marcacci /types/fs-cson/ @dex4er /types/fs-ext/ @OguzhanE @ikokostya -/types/fs-extra/ @alan-agius4 @midknight41 @shiftkey @mees- @jrockwood @sangdth @ffflorian +/types/fs-extra/ @alan-agius4 @midknight41 @shiftkey @mees- @jrockwood @sangdth @ffflorian @peterblazejewicz /types/fs-extra/v4/ @alan-agius4 @midknight41 @shiftkey @mees- /types/fs-extra-promise/ @midknight41 @jasonswearingen @HiromiShikata /types/fs-extra-promise-es6/ @midknight41 @jasonswearingen @geoffreak @HiromiShikata @@ -1672,12 +1748,12 @@ /types/fs-readfile-promise/ @mtsg /types/fscreen/ @joscha @terrymun /types/ftdomdelegate/ @dotnetnerd -/types/ftp/ @rogierschouten +/types/ftp/ @rogierschouten @TooTallNate /types/ftpd/ @rogierschouten /types/ftps/ @chrispanag /types/fullname/ @kayahr /types/fullpage.js/ @jodiwarren -/types/function-bind/ @ExE-Boss +/types/function-bind/ @ExE-Boss @ljharb /types/fundamental-react/ @Feinbube @milanpro @skvale /types/fusioncharts/ @rohitkr @shivarajkv /types/fuzzaldrin/ @mhegazy @@ -1685,6 +1761,7 @@ /types/fuzzy-search/ @alex-deas @BendingBender /types/fuzzyset/ @lgrignon @narainsagar /types/fuzzyset.js/ @lgrignon @narainsagar +/types/fxjs/ @load28 /types/fxn/ @charrondev /types/gae.channel.api/ @vvakame /types/gamedig/ @ivansieder @@ -1719,7 +1796,7 @@ /types/gapi.client.books/ @Bolisov /types/gapi.client.calendar/ @Bolisov /types/gapi.client.civicinfo/ @Bolisov -/types/gapi.client.classroom/ @Bolisov +/types/gapi.client.classroom/ @Maxim-Mazurok /types/gapi.client.cloudbilling/ @Bolisov /types/gapi.client.cloudbuild/ @Bolisov /types/gapi.client.clouddebugger/ @Bolisov @@ -1776,6 +1853,7 @@ /types/gapi.client.pagespeedonline/ @Bolisov /types/gapi.client.partners/ @Bolisov /types/gapi.client.people/ @Bolisov +/types/gapi.client.photoslibrary/ @Maxim-Mazurok /types/gapi.client.playcustomapp/ @Bolisov /types/gapi.client.playmoviespartner/ @Bolisov /types/gapi.client.plus/ @Bolisov @@ -1807,7 +1885,7 @@ /types/gapi.client.surveys/ @Bolisov /types/gapi.client.tagmanager/ @Bolisov /types/gapi.client.taskqueue/ @Bolisov -/types/gapi.client.tasks/ @Bolisov +/types/gapi.client.tasks/ @Maxim-Mazurok /types/gapi.client.testing/ @Bolisov /types/gapi.client.toolresults/ @Bolisov /types/gapi.client.translate/ @Bolisov @@ -1872,12 +1950,15 @@ /types/git/ @vvakame /types/git-add-remote/ @BendingBender /types/git-branch/ @rynclark +/types/git-branch-is/ @peterblazejewicz /types/git-config/ @stpettersens /types/git-config-path/ @BendingBender +/types/git-raw-commits/ @JasonHK /types/git-repo-name/ @BendingBender /types/git-rev-sync/ @khoi-fish /types/git-revision-webpack-plugin/ @andersk /types/git-root-dir/ @ffflorian +/types/git-semver-tags/ @JasonHK /types/git-url-parse/ @ajafff /types/git-user-email/ @BendingBender /types/git-user-name/ @BendingBender @@ -1887,6 +1968,7 @@ /types/github-url-to-object/ @ajafff /types/github-username-regex/ @BehindTheMath /types/gl/ @sjx233 +/types/gl-fbo/ @ollien /types/gl-matrix/ @mattijskneppers @tatchx @nbabanov @auzmartist @surtr-isaz /types/gl-react/ @jussikinnula /types/gl-react-dom/ @jussikinnula @@ -1908,8 +1990,10 @@ /types/glob-stream/ @Bartvds @mrmlnc /types/glob-to-regexp/ @whatasoda /types/glob-watcher/ @TeamworkGuy2 +/types/global-agent/ @JamieMagee /types/global-modules/ @BendingBender /types/global-modules-path/ @g-rath +/types/global-npm/ @wsmd /types/global-paths/ @BendingBender /types/global-prefix/ @BendingBender /types/global-tunnel-ng/ @BendingBender @@ -1924,7 +2008,7 @@ /types/go/ @NorthwoodsSoftware /types/good-storage/ @wkl007 /types/google-adwords-scripts/ @jafaircl -/types/google-apps-script/ @motemen @PopGoesTheWza +/types/google-apps-script/ @PopGoesTheWza /types/google-apps-script-oauth2/ @dhayab /types/google-cloud__datastore/ @beaulac @ogawa0071 @ThomasdenH /types/google-cloud__kms/ @ben-tbotlabs @caiertl @@ -1937,7 +2021,7 @@ /types/google-libphonenumber/ @leonyu @winfinit /types/google-map-react/ @honzabrecka /types/google-maps/ @DeividasBakanas @GiedriusGrabauskas -/types/google-maps-react/ @gburgett @jpowell +/types/google-maps-react/ @gburgett @jpowell @PaitoAnderson /types/google-protobuf/ @marcuslongmuir @kamthamc @abonander /types/google-translate-api/ @maple3142 /types/google.analytics/ @tyler-murphy @@ -1948,7 +2032,8 @@ /types/google.script.client-side/ @clomie /types/google.visualization/ @danludwig @gmoore-sjcorg @danmana @mlcheng @IvanBisultanov @glebm @shrujalshah28 @dckorben /types/google__maps/ @indrimuska -/types/googlemaps/ @cgwrench @Silver-Connection @nertzy @xaolas @mrmcnerd @martincostello @svenkreiss @bolatovumar @gauthierm @captain-igloo @demensky @life777 @simonhaenisch @gshigeto +/types/google__markerclustererplus/ @enanox @mxl +/types/googlemaps/ @cgwrench @Silver-Connection @nertzy @xaolas @mrmcnerd @martincostello @svenkreiss @bolatovumar @gauthierm @captain-igloo @demensky @life777 @simonhaenisch @gshigeto @Bat-Orshikh /types/googlemaps.infobubble/ @Dashue /types/googlepay/ @Fluccioni @Radu-Raicea @fstanis @ozotek @mumpo /types/got/ @BendingBender @LinusU @ikokostya @stijnvn @wingsbob @ryanwilsonperkin @phawxby @ivywit @Huachao @@ -1958,6 +2043,7 @@ /types/gradient-string/ @Ailrun /types/graham_scan/ @hberntsen /types/gramps__rest-helpers/ @claude +/types/graphite/ @ctumolosus /types/graphite-udp/ @EricByers /types/graphlib-dot/ @DomParfitt /types/graphql-api-koa/ @mike-marcacci @@ -1978,18 +2064,18 @@ /types/graphql-upload/ @mike-marcacci /types/graphviz/ @mhfrantz /types/grasp/ @agnoster -/types/gravatar/ @denis-sokolov +/types/gravatar/ @denis-sokolov @peterblazejewicz /types/gray-percentage/ @goblindegook /types/graylog2/ @scalder27 /types/greasemonkey/ @kotas @nikolay-borzov /types/greasemonkey/v3/ @kotas -/types/grecaptcha/ @DethAriel @rafaeltavares @RohrerF +/types/grecaptcha/ @DethAriel @rafaeltavares @RohrerF @vkrol /types/grecaptcha/v0/ @brentj73 /types/gregorian-calendar/ @cwalv -/types/gremlin/ @matt-sungwook +/types/gremlin/ @matt-sungwook @keith1024 @7jpsan /types/grid-template-parser/ @AviVahl /types/gridfs-stream/ @liorm -/types/gridstack/ @PascalSenn @ZoolWay @Sl1MBoy @JohnArcher @adumesny +/types/group-array/ @Richienb /types/growing-io/ @Forzoom /types/grpc-error/ @danwbyrne /types/grunt/ @jeffmay @basarat @@ -2104,38 +2190,34 @@ /types/hapi-auth-cookie/ @lenovouser @SimonSchick @Mutmatt /types/hapi-decorators/ @kenhowardpdx /types/hapi-pino/ @saboya @todd @BlooJeans -/types/hapi__accept/ @feinoujc @lenovouser +/types/hapi-server-session/ @btmorex +/types/hapi__b64/ @ffflorian /types/hapi__basic/ @AJamesPhillips @saboya @lenovouser /types/hapi__bell/ @SimonSchick @lenovouser -/types/hapi__boom/ @rogatty @AJamesPhillips @jineshshah36 @TimonVS @danielmachado @lenovouser /types/hapi__catbox/ @jasonswearingen @AJamesPhillips @saboya @lenovouser +/types/hapi__catbox-memcached/ @btmorex /types/hapi__catbox-memory/ @SimonSchick @lenovouser /types/hapi__catbox-redis/ @SimonSchick @lenovouser -/types/hapi__code/ @prashaantt @lenovouser /types/hapi__cookie/ @lenovouser @SimonSchick @Mutmatt /types/hapi__crumb/ @lenovouser @SimonSchick -/types/hapi__cryptiles/ @awendland @lenovouser -/types/hapi__glue/ @garfty @lenovouser +/types/hapi__glue/ @garfty @lenovouser @btmorex /types/hapi__h2o2/ @jasonswearingen @AJamesPhillips @garthk @lenovouser /types/hapi__hapi/ @rafaelsouzaf @jhsimms @SimonSchick @saboya @lenovouser -/types/hapi__hoek/ @prashaantt @lenovouser +/types/hapi__hawk/ @ffflorian /types/hapi__inert/ @nycdotnet @AJamesPhillips @lenovouser -/types/hapi__iron/ @simonschick @rafaelsouzaf @lenovouser -/types/hapi__joi/ @Bartvds @laurence-myers @cglantschnig @DavidBR-SW @GaelMagnan @ralekna @schfkt @rokoroku @dankraus @wanganjun @rafaelkallis @aconanlai @zaphoyd @thewillg @SimonSchick @afharo @lenovouser @AnandChowdhary @myovchev @RecuencoJones -/types/hapi__lab/ @prashaantt @lenovouser +/types/hapi__joi/ @Bartvds @laurence-myers @cglantschnig @DavidBR-SW @GaelMagnan @ralekna @schfkt @rokoroku @dankraus @wanganjun @rafaelkallis @aconanlai @zaphoyd @thewillg @SimonSchick @afharo @lenovouser @AnandChowdhary @myovchev @RecuencoJones @freisenhauer @legraphista @SimchaWood /types/hapi__mimos/ @AJamesPhillips @lenovouser /types/hapi__nes/ @NoHomey @saboya @lenovouser /types/hapi__podium/ @AJamesPhillips @lenovouser /types/hapi__shot/ @AJamesPhillips @SimonSchick @lenovouser /types/hapi__sntp/ @lenovouser -/types/hapi__topo/ @BendingBender @lenovouser /types/hapi__vision/ @jasonswearingen @AJamesPhillips @lenovouser -/types/hapi__wreck/ @marcinporebski @saboya @lenovouser @ggoodman /types/hapi__yar/ @SimonSchick @lenovouser /types/happypack/ @akashishu777 /types/har-format/ @micmro /types/hard-source-webpack-plugin/ @woitechen @Yama-Tomo /types/hark/ @baiyufei +/types/harmon/ @micronaut /types/harmony-proxy/ @remojansen /types/has-ansi/ @BendingBender /types/hash-file/ @HiromiShikata @@ -2147,7 +2229,7 @@ /types/hashmap/ @rafalwrzeszcz @outring @dodomorandi /types/hashring/ @medns /types/hashtag-regex/ @diogofcunha -/types/hast-format/ @lukeggchapman +/types/hast/ @lukeggchapman @rokt33r /types/hat/ @tup1tsa @myovchev /types/haversine/ @screendriver @danvk /types/hbs/ @davidm77 @@ -2162,7 +2244,7 @@ /types/hellosign-embedded/ @xt0rted /types/helmet/ @cyrilschumacher @EvanHahn @bluehatbrit @chdanielmueller /types/heredatalens/ @denyo -/types/heremaps/ @Josh-ES @denyo @fx88 @life777 +/types/heremaps/ @Josh-ES @denyo @fx88 @life777 @DaSchTour /types/heroku-logger/ @kylevogt @AlejandroMoran /types/hex-rgba/ @r3nya /types/hexo/ @kentarouTakeda @@ -2170,6 +2252,7 @@ /types/hexo-fs/ @segayuu /types/hexo-log/ @segayuu /types/hexo-util/ @segayuu +/types/hh-mm-ss/ @TotomInc /types/hig__button/ @matthewbryant95 /types/highcharts-ng/ @scatcher /types/highland/ @Bartvds @hgwood @iwllyu @alvis @notbobthebuilder @@ -2184,7 +2267,7 @@ /types/history.js/ @borisyankov @gjunge /types/historykana/ @h-shiratsuki /types/hjson/ @crunchie84 -/types/hls-parser/ @screendriver +/types/hls-parser/ @screendriver @cmanou /types/hls.js/ @jgainfort @brookback @adripanico @beraliv @drax98 /types/hoek/ @prashaantt /types/hogan.js/ @AndrewLeedham @@ -2195,13 +2278,14 @@ /types/hookrouter/ @mcaneris /types/hopscotch/ @pimterry @Aurimas1 /types/host-validation/ @dintopple -/types/hosted-git-info/ @OiyouYeahYou +/types/hosted-git-info/ @OiyouYeahYou @Ovyerus /types/hostile/ @AndrewLeedham /types/howler/ @xperiments @alien35 @nicholashza @cjurango /types/hpp/ @kryops /types/html-entities/ @xstoudi /types/html-minifier/ @tkrotoff @rikuayanokozy /types/html-minifier/v1/ @tkrotoff +/types/html-minifier-terser/ @me /types/html-parser/ @maxbogus /types/html-pdf/ @westy92 /types/html-tag-names/ @sandersn @@ -2227,7 +2311,7 @@ /types/http-context/ @mtraynham /types/http-errors/ @tkrotoff @BendingBender /types/http-link-header/ @screendriver @nloomans @lummish -/types/http-proxy/ @SomaticIT @Raigen @DanielMSchmidt @jabreu610 +/types/http-proxy/ @SomaticIT @Raigen @DanielMSchmidt @jabreu610 @bodinsamuel /types/http-proxy-agent/ @mrmlnc @steprescott /types/http-proxy-middleware/ @zebMcCorkle @BendingBender /types/http-rx/ @L2jLiga @@ -2236,6 +2320,7 @@ /types/httperr/ @yortus /types/hubot/ @dirk @KeesCBakker @eeemil /types/hubspot-pace/ @borislavjivkov +/types/human-date/ @ricosandyca /types/human-interval/ @paulmelnikow /types/humane-js/ @jmvrbanac @stof /types/humanize-duration/ @RigoTheDev @@ -2255,7 +2340,7 @@ /types/i18next-ko/ @dwaxweiler /types/i18next-node-fs-backend/ @cyrilschumacher @lenovouser /types/i18next-sprintf-postprocessor/ @cyrilschumacher -/types/i2c-bus/ @101100 +/types/i2c-bus/ @101100 @kou029w /types/iab-vpaid/ @dippi /types/iarna__toml/ @ajafff /types/iban/ @cyrilschumacher @@ -2303,7 +2388,7 @@ /types/imsi-grok/ @deanpienaar /types/imul/ @djcsdy /types/imurmurhash/ @Jimexist -/types/in-app-purchase/ @l-jonas @IchordeDionysos @Baskerville42 +/types/in-app-purchase/ @l-jonas @IchordeDionysos @Baskerville42 @kikuchy /types/inboxsdk/ @rdoursenaud @amiram @Antoine38660 /types/incremental-dom/ @basarat @lanthaler @vvakame /types/indefinite/ @omaishar @@ -2341,7 +2426,7 @@ /types/intercom-web/ @fongandrew @salbahra @onatm @bingo4508 /types/intercomjs/ @spencerwi /types/interface-datastore/ @me -/types/internal-slot/ @ExE-Boss +/types/internal-slot/ @ExE-Boss @ljharb /types/interpret/ @BendingBender /types/intersects/ @voxylu /types/intersperse/ @garyking @@ -2356,12 +2441,13 @@ /types/ion-rangeslider/ @Karel-van-de-Plassche @JamesJGoodwin /types/ion-rangeslider/v1/ @dduugg @Karel-van-de-Plassche /types/iopipe__iopipe/ @javonharper -/types/ioredis/ @plantain-00 @chrisleck @aliarham11 @br8h @shaharmor @palindrom615 @reconbot @funthing @iamolegga @tingwai-to @pettyalex @SimonSchick +/types/ioredis/ @plantain-00 @chrisleck @aliarham11 @br8h @shaharmor @palindrom615 @reconbot @funthing @iamolegga @tingwai-to @pettyalex @SimonSchick @tianlinle @demian85 /types/ioredis/v3/ @plantain-00 @chrisleck @aliarham11 @br8h @shaharmor @palindrom615 @reconbot @pettyalex /types/iost-contract/ @monaka /types/iota.lib.js/ @fogsh /types/ip/ @codeanimal @BendingBender /types/ip-address/ @icopp @danwbyrne +/types/ip-subnet-calculator/ @dahool /types/ipcheck/ @bengry /types/irc/ @phillips1012 /types/iri/ @BendingBender @@ -2376,13 +2462,16 @@ /types/is-charging/ @BendingBender /types/is-ci/ @atd-schubert @ffflorian /types/is-color/ @VitorLuizC -/types/is-date-object/ @adamzerella +/types/is-date-object/ @adamzerella @ljharb /types/is-dotdir/ @BendingBender /types/is-dotfile/ @BendingBender /types/is-empty/ @termosa +/types/is-empty-object/ @Richienb /types/is-even/ @shawnkoon /types/is-finite/ @mhegazy /types/is-function/ @evangeloszotos +/types/is-generator/ @Richienb +/types/is-generator-function/ @Richienb @ljharb /types/is-git-url/ @BendingBender /types/is-glob/ @mrmlnc /types/is-hotkey/ @petester42 @kalley @@ -2392,11 +2481,12 @@ /types/is-negated-glob/ @ajafff /types/is-number/ @harryshipton @jedster1111 /types/is-number-like/ @ffflorian -/types/is-object/ @wbhob +/types/is-object/ @wbhob @ljharb /types/is-odd/ @adamzerella /types/is-progressive/ @BendingBender /types/is-promise/ @DanielRosenwasser /types/is-relative/ @BendingBender +/types/is-relative-path/ @peterblazejewicz /types/is-running/ @danwbyrne /types/is-ssh/ @ffflorian /types/is-touch-device/ @screendriver @@ -2413,7 +2503,7 @@ /types/isbn-utils/ @elhaard /types/iscroll/ @csrakowski @devlato /types/isexe/ @BendingBender -/types/iso-3166-2/ @sicilica +/types/iso-3166-2/ @sicilica @forivall /types/iso8601-localizer/ @avielfedida /types/isomorphic-fetch/ @toddlucas /types/isomorphic-form-data/ @VladimirGrenaderov @maxbogus @@ -2424,7 +2514,7 @@ /types/istanbul-lib-coverage/ @jason0x43 @loryman /types/istanbul-lib-hook/ @jason0x43 /types/istanbul-lib-instrument/ @jason0x43 -/types/istanbul-lib-report/ @jason0x43 +/types/istanbul-lib-report/ @jason0x43 @zache /types/istanbul-lib-source-maps/ @jason0x43 /types/istanbul-middleware/ @hookclaw /types/istanbul-reports/ @jason0x43 @@ -2437,8 +2527,9 @@ /types/jade/ @panuhorsmalahti /types/jaeger-client/ @jgeth @tsachis /types/jalaali-js/ @alitaheri +/types/japan-postal-code/ @TokugawaTakesi /types/japanese-holidays/ @syamatoo -/types/jasmine/ @borisyankov @theodorejb @davidparsson @gmoothart @lukas-zech-software @Engineer2B @cyungmann @Roaders @devoto13 @fdim @kolodny @stephenfarrar @ndunks @zvirja @djungowski +/types/jasmine/ @borisyankov @theodorejb @davidparsson @gmoothart @lukas-zech-software @Engineer2B @cyungmann @Roaders @devoto13 @fdim @kolodny @stephenfarrar @zvirja @djungowski @chivesrs /types/jasmine/v2/ @borisyankov @theodorejb @davidparsson @gmoothart @lukas-zech-software @Engineer2B @cyungmann @devoto13 @fdim /types/jasmine/v1/ @borisyankov /types/jasmine-ajax/ @lgrignon @jgonggrijp @@ -2459,7 +2550,7 @@ /types/javascript-astar/ @ptlis @lazerwalker /types/javascript-bignum/ @sandersn /types/javascript-state-machine/ @borisyankov @mdocter @MrBigDog2U @samael65535 @taoqf -/types/javascript-time-ago/ @erikburt @HenryNguyen5 +/types/javascript-time-ago/ @erikburt @HenryNguyen5 @zaguiini /types/jbinary/ @tbureck /types/jcanvas/ @rogierschouten /types/jdataview/ @RReverser @@ -2467,19 +2558,16 @@ /types/jest/v16/ @NoHomey @jwbay @ExE-Boss /types/jest-axe/ @JoshuaKGoldberg @erbridge /types/jest-dev-server/ @ifiokjr -/types/jest-docblock/ @ikatyang /types/jest-environment-puppeteer/ @joshuakgoldberg @ifiokjr @favna /types/jest-expect-message/ @mike-d-davydov /types/jest-image-snapshot/ @dawnmist @erbridge /types/jest-in-case/ @geovanisouza92 /types/jest-json-schema/ @deadNightTiger @lvl99 /types/jest-matcher-one-of/ @joemitchard -/types/jest-matcher-utils/ @myabc -/types/jest-matchers/ @joscha /types/jest-plugin-context/ @jonasheinrich /types/jest-plugin-set/ @jonasheinrich +/types/jest-sinon/ @seidelmartin /types/jest-specific-snapshot/ @dawnmist -/types/jest-validate/ @ikatyang /types/jest-when/ @aldentaylor @immanuel192 @gstamac @sehsyha /types/jexl/ @m-tomczyk /types/jfs/ @tlaziuk @@ -2513,6 +2601,7 @@ /types/jquery-countdown/ @AndersonFriaca /types/jquery-countto/ @AndersonFriaca /types/jquery-cropbox/ @PerKastman +/types/jquery-deferred/ @TekuConcept /types/jquery-deparam/ @patsissons /types/jquery-drawer/ @pine /types/jquery-easy-loading/ @delphinus35 @@ -2532,11 +2621,13 @@ /types/jquery-mask-plugin/ @avidenic @AndersonFriaca /types/jquery-maskmoney/ @AndersonFriaca /types/jquery-match-height/ @kbytesys +/types/jquery-migrate/ @peterblazejewicz /types/jquery-mockjax/ @laszlojakab @vladeck @hasaki /types/jquery-mouse-exit/ @AndersonFriaca /types/jquery-mousewheel/ @xt0rted /types/jquery-next-id/ @AndersonFriaca /types/jquery-param/ @patsissons +/types/jquery-slimscroll/ @Promact /types/jquery-slugify/ @AndersonFriaca /types/jquery-sortable/ @Seltzer /types/jquery-steps/ @jblank @nickwph @@ -2599,7 +2690,6 @@ /types/jquery.simplemodal/ @ForNeVeR /types/jquery.simplepagination/ @nvivo /types/jquery.simulate/ @derekcicerone -/types/jquery.slimscroll/ @Promact /types/jquery.soap/ @tigerxy /types/jquery.sortelements/ @tbureck /types/jquery.stickem/ @davidmpaz @@ -2642,15 +2732,16 @@ /types/js-string-escape/ @viralpickaxe /types/js-to-java/ @skyitachi /types/js-url/ @pine -/types/js-yaml/ @Bartvds @sclausen +/types/js-yaml/ @Bartvds @sclausen @ExE-Boss /types/js.spec/ @mattbishop /types/jsbn/ @Evgenus @al2xed /types/jschannel/ @yitzchok @McFlat /types/jscodeshift/ @brieb @bjacobel /types/jscrollpane/ @qcz /types/jsdeferred/ @minodisk -/types/jsdoc-to-markdown/ @adamzerella -/types/jsdom/ @leonard-thieu @palmfjord +/types/jsdoc-to-markdown/ @adamzerella @peterblazejewicz +/types/jsdoc-to-markdown/v4/ @adamzerella +/types/jsdom/ @leonard-thieu @palmfjord @ExE-Boss /types/jsdom-global/ @VladimirGrenaderov @maxbogus /types/jsen/ @vladeck /types/jsend/ @CaselIT @@ -2664,8 +2755,8 @@ /types/jsmockito/ @shiver-me-timbers /types/jsnox/ @stkb @DovydasNavickas /types/json-buffer/ @phawxby -/types/json-file-plus/ @danwbyrne -/types/json-form-data/ @superhawk610 +/types/json-file-plus/ @danwbyrne @ljharb +/types/json-form-data/ @superhawk610 @ksocha /types/json-js/ @NN--- /types/json-merge-patch/ @senyaarseniy /types/json-parse-better-errors/ @DanielRosenwasser @@ -2678,6 +2769,7 @@ /types/json-schema/ @bcherny @cyrilletuzi @lucianbuzzo @rolandjitsu /types/json-schema-compare/ @forivall /types/json-schema-merge-allof/ @forivall +/types/json-schema-traverse/ @peterblazejewicz /types/json-server/ @jeremyben /types/json-socket/ @svi3c /types/json-stable-stringify/ @mhfrantz @@ -2689,6 +2781,7 @@ /types/json2mq/ @ZhangYiJiang /types/json3/ @NN--- /types/json5/ @Esemesek +/types/json8-patch/ @peterkooijmans /types/json_ml/ @pluma /types/jsonabc/ @ffflorian /types/jsonapi-serializer/ @chiangf @@ -2709,7 +2802,7 @@ /types/jsonrpc-serializer/ @Akim95 @many20 /types/jsonstream/ @Bartvds /types/jsontoxml/ @benstevens48 -/types/jsonwebtoken/ @SomaticIT @danielheim @brikou @vpk @rlgod @kettil @RunAge +/types/jsonwebtoken/ @SomaticIT @danielheim @brikou @vpk @rlgod @kettil @RunAge @nflaig @LinusU @ivansieder /types/jsonwebtoken-promisified/ @SomaticIT @danielheim @brikou @aneilbaboo /types/jspath/ @dex4er /types/jspdf/ @amberjs @lleios @jemerald @frankbrullo @leonmontealegre @@ -2738,7 +2831,7 @@ /types/jsuri/ @coldacid @flqw /types/jsurl/ @agorshkov23 /types/jsx-chai/ @nupplaphil -/types/jszip/ @mzeiher @forabi +/types/jszip/ @mzeiher @forabi @ffflorian /types/jug/ @yevt /types/jui/ @easylogic /types/jui-core/ @easylogic @@ -2746,8 +2839,10 @@ /types/just-clone/ @ConnectivityChris /types/just-debounce-it/ @azizhk /types/just-extend/ @pe8ter +/types/just-map-values/ @wa4-fearless-otter /types/just-pick/ @pe8ter /types/just-safe-get/ @chardos +/types/just-safe-set/ @wa4-fearless-otter /types/just-snake-case/ @michaelwittwer /types/just-throttle/ @papermana /types/jweixin/ @taoqf @gomydodo @@ -2764,17 +2859,35 @@ /types/k6/ @MajorBreakfast @bookmoons @na-- /types/kafka-node-avro/ @alfamegaxq /types/kamailio-kemi/ @bonan -/types/karma/ @tkrotoff @43081j @devoto13 +/types/kap-plugin/ @connor4312 +/types/karma/ @tkrotoff @43081j @devoto13 @peterblazejewicz +/types/karma/v3/ @tkrotoff @43081j @devoto13 @peterblazejewicz /types/karma/v1/ @tkrotoff @43081j +/types/karma-browserify/ @peterblazejewicz +/types/karma-browserstack-launcher/ @peterblazejewicz /types/karma-chai/ @JayAndCatchFire /types/karma-chai-sinon/ @vasek17 -/types/karma-coverage/ @tkrotoff @devoto13 +/types/karma-chrome-launcher/ @peterblazejewicz +/types/karma-coverage/ @tkrotoff @devoto13 @peterblazejewicz /types/karma-coverage-istanbul-reporter/ @demensky +/types/karma-detect-browsers/ @peterblazejewicz +/types/karma-env-preprocessor/ @peterblazejewicz +/types/karma-firefox-launcher/ @peterblazejewicz /types/karma-fixture/ @evictor @afshawnlotfi -/types/karma-jasmine/ @michelsalib +/types/karma-ie-launcher/ @peterblazejewicz +/types/karma-jasmine/ @michelsalib @peterblazejewicz +/types/karma-jasmine-html-reporter/ @peterblazejewicz +/types/karma-json-preprocessor/ @peterblazejewicz +/types/karma-json-to-file-reporter/ @peterblazejewicz +/types/karma-junit-reporter/ @peterblazejewicz +/types/karma-mocha/ @peterblazejewicz +/types/karma-mocha-reporter/ @peterblazejewicz +/types/karma-remap-coverage/ @peterblazejewicz +/types/karma-spec-reporter/ @peterblazejewicz /types/karma-webpack/ @mtraynham /types/katex/ @mrand01 @knguyen0125 @dreamerblue @s-weigand @sapphi-red /types/kcors/ @Xstoudi @izayoiko +/types/kd-tree-javascript/ @coopeyb /types/kdbush/ @DenisCarriere @chrfrasco @deminoth /types/kdbush/v1/ @DenisCarriere @chrfrasco /types/kdbxweb/ @Roang-zero1 @@ -2783,7 +2896,7 @@ /types/kendo-ui/ @telerik /types/kerberos/ @velezsarain /types/keyboardjs/ @vbortone @piranha771 @teoxoy -/types/keycloak-connect/ @gstamac +/types/keycloak-connect/ @gstamac @SackSlab /types/keygrip/ @jkeylu /types/keymaster/ @nitram509 /types/keymirror/ @jfahrenkrug @@ -2821,9 +2934,10 @@ /types/klaw/v1/ @mceachen /types/klaw-sync/ @shiftkey /types/kms-json/ @sunnyone +/types/knex-db-manager/ @dimonnwc3 /types/knex-postgis/ @vesse /types/knockback/ @borisyankov -/types/knockout/ @borisyankov @Igorbek @moonpyk @EnableSoftware @BenjaminEckardt @ffMathy @ltlombardi @Retsam +/types/knockout/ @borisyankov @Igorbek @moonpyk @EnableSoftware @BenjaminEckardt @ffMathy @ltlombardi @Retsam @ReyPena /types/knockout-amd-helpers/ @DavidSichau /types/knockout-secure-binding/ @pine613 /types/knockout-transformations/ @johnnyreilly @Nemo157 @@ -2852,6 +2966,7 @@ /types/koa-compress/ @hellopao /types/koa-conditional-get/ @wingsbob /types/koa-convert/ @danwbyrne +/types/koa-cookie/ @dancon /types/koa-cors/ @romain-faust /types/koa-csrf/ @haskaalo /types/koa-dec-router/ @aarystan @@ -2881,7 +2996,7 @@ /types/koa-proxy/ @ishen7 /types/koa-qs/ @RemyJeancolas /types/koa-range/ @strax -/types/koa-ratelimit/ @OutdatedVersion +/types/koa-ratelimit/ @OutdatedVersion @dislick /types/koa-ratelimit-lru/ @danwbyrne /types/koa-redis/ @nsimmons @alsoscotland /types/koa-redis-cache/ @dimamukhin @@ -2914,6 +3029,7 @@ /types/kss/ @giladgray /types/kue/ @drudge @amiram @pc-jedi @deerawan /types/kue-ui-client/ @bengry +/types/kurento-client/ @jhdevuk /types/kurento-utils/ @nenadalm @riggs /types/kuromoji/ @mzsm @kgtkr /types/kythe/ @ayazhafiz @@ -2921,6 +3037,7 @@ /types/labeled-stream-splicer/ @yoursunny /types/lambda-log/ @armonge /types/lambda-tester/ @ivank @HajoAhoMantila @msuntharesan +/types/lambda-wrapper/ @Gaelan /types/lang.js/ @LiquidPL /types/langmap/ @grabofus /types/lasso/ @darkwebdev @@ -2929,6 +3046,7 @@ /types/latlon-geohash/ @rimig /types/launchpad/ @rictic /types/layzr.js/ @shermendev +/types/lazy-brush/ @ksocha /types/lazy-property/ @jank1310 /types/lazy.js/ @Bartvds @miso440 @gablorquet @fan-tom /types/lazypipe/ @tomc974 @@ -2979,6 +3097,7 @@ /types/ledgerhq__hw-transport-u2f/ @danwbyrne /types/ledgerhq__hw-transport-webusb/ @questofiranon /types/legal-eagle/ @j-f1 +/types/lerna-alias/ @ecraig12345 /types/lerna-get-packages/ @LogvinovLeon /types/less/ @thasner @pranaygp @dwaxweiler @chigix /types/less-middleware/ @federicobond @@ -3007,7 +3126,7 @@ /types/liftoff/ @BendingBender /types/light-sdk/ @cklwblove /types/lightpick/ @akwiatek -/types/lightship/ @purmac +/types/lightship/ @purmac @karoun /types/lil-uri/ @wcarson /types/lil-uuid/ @Pr1st0n /types/lime-js/ @arthur-xavier @@ -3039,11 +3158,11 @@ /types/local-storage/ @tup1tsa /types/localized-countries/ @coderslagoon /types/localizejs-library/ @salbahra -/types/localtunnel/ @vladhrapov +/types/localtunnel/ @vladhrapov @noamalffasy /types/lockfile/ @Bartvds @BendingBender /types/lockfile/v0/ @Bartvds /types/lockr/ @droritos -/types/locks/ @flippynips +/types/locks/ @flippynips @alexey-detr /types/locutus/ @hookclaw /types/lodash/ @bczengel @chrootsu @stepancar @aj-r @e-cloud @thorn0 @jtmthf @DomiR @WilliamChelman /types/lodash/v3/ @bczengel @chrootsu @@ -3394,7 +3513,7 @@ /types/mangopay2-nodejs-sdk/ @ifiokjr /types/map-to-obj/ @JasonHK /types/mapbox/ @anahkiasen @Fluccioni -/types/mapbox-gl/ @dobrud @patrickr @macobo @dmytro-gokun @LiamAttClarke @life777 +/types/mapbox-gl/ @dobrud @patrickr @macobo @dmytro-gokun @LiamAttClarke @life777 @mklopets /types/mapbox-gl-leaflet/ @agorshkov23 /types/mapbox__geo-viewport/ @fnberta /types/mapbox__geojson-area/ @n0nick @@ -3412,13 +3531,14 @@ /types/markdown-it-anchor/ @seryl /types/markdown-it-container/ @hronex /types/markdown-it-lazy-headers/ @knom +/types/markdown-magic/ @peterblazejewicz /types/markdown-pdf/ @MonsieurMan -/types/markdown-to-jsx/ @ecraig12345 +/types/markdown-table/ @cherryblossom000 +/types/markdown-to-jsx/ @ecraig12345 @sunknudsen /types/markdownlint/ @ark120202 -/types/marked/ @worr @BendingBender @CrossR @mwickett @htkzhtm +/types/marked/ @worr @BendingBender @CrossR @mwickett @htkzhtm @ezracelli /types/marked-terminal/ @bkendall /types/marker-animate-unobtrusive/ @viskin -/types/markerclustererplus/ @enanox @mxl /types/markitup/ @drillbits /types/marko/ @darkwebdev /types/maskedinput/ @lokeshpeta @@ -3461,12 +3581,15 @@ /types/material__top-app-bar/ @BrentDouglas @ckosti /types/materialize-css/ @huww98 @MaximBalaganskiy @MonizDave @broccoliarchy @SnowyLeopard /types/materialize-css/v0/ @eriklieben @leonyu @SinghSukhdeep @jfcere @scote @LiadIdan +/types/math-random/ @Richienb /types/math-sign/ @djcsdy /types/math-trunc/ @djcsdy /types/math3d/ @laszlojakab @jimsmart /types/mathjax/ @rolandzwaga /types/mathjs/ @siavol @andnp @bradbesserman @pawkrol @charlee -/types/matter-js/ @piranha771 @hasparus @dwhinham +/types/matrix-appservice-bridge/ @huan +/types/matrix-js-sdk/ @huan +/types/matter-js/ @piranha771 @hasparus @dwhinham @slikts /types/mcrypt/ @pluma /types/mcustomscrollbar/ @flurg /types/md5/ @arcdev1 @jprogrammer @@ -3474,6 +3597,7 @@ /types/mdast/ @lujun2 /types/mdns/ @reppners /types/mdurl/ @rokt33r +/types/mdx-js__react/ @ifiokjr /types/media-typer/ @BendingBender /types/medium-editor/ @keika299 @pascaliske /types/megajs/ @danwbyrne @@ -3493,6 +3617,7 @@ /types/merge-descriptors/ @danny8002 /types/merge-env/ @BendingBender /types/merge-images/ @BendingBender +/types/merge-objects/ @Richienb /types/merge-stream/ @k-kagurazaka @tomxtobin @daniel-zazula @djcsdy /types/merge2/ @tkrotoff @smac89 /types/mergerino/ @fivitti @@ -3503,7 +3628,7 @@ /types/mess/ @Nemo157 /types/messenger/ @derekcicerone /types/metalsmith/ @brian-lagerman -/types/meteor/ @barbatus @fullflavedave @orefalo @dagatsoin @birkskyum @ardatan @stefanholzapfel @andrei-markeev @lmachens @gunn @alesn @perbergland @nicu-chiciuc +/types/meteor/ @barbatus @fullflavedave @orefalo @dagatsoin @birkskyum @ardatan @stefanholzapfel @andrei-markeev @lmachens @gunn @alesn @perbergland @nicu-chiciuc @ebroder /types/meteor-accounts-phone/ @DAB0mB /types/meteor-astronomy/ @Deadly0 /types/meteor-collection-hooks/ @twastvedt @@ -3512,10 +3637,11 @@ /types/meteor-prime8consulting-oauth2/ @vangorra /types/meteor-publish-composite/ @vangorra @mrz5018 /types/meteor-roles/ @vangorra @mattmm3d -/types/meteor-universe-i18n/ @mathewmeconry +/types/meteor-universe-i18n/ @mathewmeconry @radekmie /types/method-override/ @santialbo /types/methods/ @cprecioso /types/metric-suffix/ @davidm77 +/types/meyda/ @eramdam @hughrawlinson /types/mfiles/ @avonwyss /types/micro/ @kaoDev /types/micro-cors/ @CallumDenby @@ -3532,6 +3658,7 @@ /types/microsoft__typescript-etw/ @mrcrane @amcasey @minestarks /types/microsoftteams/ @WrathOfZombies @jayongg @ydogandjiev /types/microtime/ @vincekovacs +/types/migrate-mongo/ @amitbeck /types/milkcocoa/ @odangosan /types/millisecond/ @xeoneux /types/mime/ @jedigo @dhritzkiv @@ -3542,7 +3669,8 @@ /types/min-indent/ @BendingBender /types/mina/ @lhk @mattanja @kant2002 /types/minapp-env/ @chobits4 -/types/mini-css-extract-plugin/ @JounQin @dobogo @skovy +/types/mini-css-extract-plugin/ @JounQin @dobogo @skovy @peterblazejewicz +/types/mini-html-webpack-plugin/ @peterblazejewicz /types/minimal-bit-array/ @jeremejevs /types/minimal-request-promise/ @stojanovic /types/minimalistic-assert/ @yoursunny @@ -3560,19 +3688,19 @@ /types/mixpanel/ @hjellek @Manduro /types/mixpanel-browser/ @karlos1337 @RicardoRodrigues /types/mixto/ @vvakame -/types/mjml/ @aahoughton @marpstar +/types/mjml/ @aahoughton @marpstar @eiskalteschatten /types/mjml-react/ @henrinormak /types/mkcert/ @asachin96 /types/mkdirp/ @Bartvds @mrmlnc -/types/mkdirp-promise/ @pluma /types/mkpath/ @optical /types/ml-levenberg-marquardt/ @m93a /types/mobx-apollo/ @pselden /types/mocha/ @kazimanzurrashid @otiai10 @jt000 @enlight @cspotcode @1999 -/types/mocha-each/ @magnostherobot +/types/mocha-each/ @magnostherobot @nmay231 /types/mocha-phantomjs/ @ErikSchierboom /types/mocha-prepare/ @idono87 /types/mocha-steps/ @Arylo @dex4er +/types/mocha-sugar-free/ @ExE-Boss /types/mochaccino/ @thomas-p /types/mock-aws-s3/ @bluehatbrit /types/mock-fs/ @Nemo157 @tkqubo @Seally @@ -3601,15 +3729,17 @@ /types/moment-timezone/ @michelsalib @alanblins @asermax @borys-kupar /types/money-math/ @taoqf /types/mongo-sanitize/ @CedricCazin @penumbra1 -/types/mongodb/ @CaselIT @alanmarcell @bitjson @dante-101 @mcortesi @EnricoPicci @AJCStriker @julien-c @daprahamian @denys-bushulyak @BastienAr @sindbach @geraldinelemeur @jishi @various89 @angela-1 @lirbank @hector7 @floric @erikc5000 @Manc @jloveridge @ranguna @HosseinAgha @albertossilva @Rauno56 +/types/mongodb/ @CaselIT @alanmarcell @bitjson @dante-101 @mcortesi @EnricoPicci @AJCStriker @julien-c @daprahamian @denys-bushulyak @BastienAr @sindbach @geraldinelemeur @jishi @various89 @angela-1 @lirbank @hector7 @floric @erikc5000 @Manc @jloveridge @ranguna @HosseinAgha @albertossilva @Rauno56 @peterblazejewicz @LinusU /types/mongodb/v2/ @CaselIT @alanmarcell @bitjson @dante-101 @mcortesi /types/mongodb-uri/ @mernxl -/types/mongoose/ @horiuchi @lukasz-zak @Alorel @jendrikw @ethanresnick @vologab @jussikinnula @ondratra @alfirin @idandrd @various89 @Fazendaaa @NormanPerrin @danmana @stablio @emmanuelgautier @frontendmonster @mingchen @penumbra1 @orblazer @HughKu @niuware @vladmel1234 @jloveridge @grimmer0125 @richarddd @ToucheSir @borfig @dinodeSimon @anthony-kenikh @iamchathu @lkho @tomyam1 @nephix @rlaace423 @ChazEpps -/types/mongoose/v4/ @simonxca @horiuchi @lukasz-zak @murbanowicz +/types/mongoose/ @horiuchi @lukasz-zak @Alorel @jendrikw @ethanresnick @vologab @jussikinnula @ondratra @alfirin @idandrd @various89 @Fazendaaa @NormanPerrin @stablio @emmanuelgautier @frontendmonster @mingchen @penumbra1 @orblazer @HughKu @niuware @vladmel1234 @jloveridge @grimmer0125 @richarddd @ToucheSir @borfig @dinodeSimon @anthony-kenikh @iamchathu @lkho @tomyam1 @nephix @rlaace423 @ChazEpps +/types/mongoose/v4/ @simonxca @horiuchi @lukasz-zak @murbanowicz @bodinsamuel /types/mongoose-auto-increment/ @AyaMorisawa +/types/mongoose-autopopulate/ @rann91 /types/mongoose-deep-populate/ @AyaMorisawa /types/mongoose-delete/ @ndunks /types/mongoose-geojson-schema/ @bondz +/types/mongoose-lean-virtuals/ @isaacdecoded /types/mongoose-mock/ @jt000 /types/mongoose-paginate/ @linusbrolin @simonxca /types/mongoose-paginate-v2/ @linusbrolin @simonxca @woutgg @oktapodia @ChazEpps @@ -3622,7 +3752,7 @@ /types/mongration/ @soulthreads /types/moo/ @deltaidea @MofX @moranje /types/moonjs/ @DanielRosenwasser -/types/morgan/ @staticfunction @pscanf +/types/morgan/ @staticfunction @pscanf @peterblazejewicz /types/morris.js/ @mareek @sindilevich /types/mosca/ @GabrielGouv @jerray @ranto2012 /types/motion-scroll/ @ninjabonsai @@ -3646,7 +3776,7 @@ /types/mui-datatables/ @favna @ankithkonda @hwatersiv @souppower /types/muibox/ @diegose /types/muicss/ @samuelneff -/types/multer/ @jt000 @DavidBR-SW @mxl @hyunseob @PierreTchuente +/types/multer/ @jt000 @vilic @DavidBR-SW @mxl @hyunseob @PierreTchuente @thrymgjol /types/multer-gridfs-storage/ @devconcept /types/multer-gridfs-storage/v3/ @devconcept /types/multer-gridfs-storage/v2/ @devconcept @@ -3654,6 +3784,9 @@ /types/multer-s3/ @tcaesvk @galtalmor @terski /types/multi-progress/ @DHBrett /types/multi-typeof/ @mhegazy +/types/multiaddr/ @carsonfarmer +/types/multibase/ @carsonfarmer +/types/multicodec/ @carsonfarmer /types/multimap/ @tallenstudios /types/multiparty/ @kenfdev /types/multipipe/ @mjwwit @@ -3670,7 +3803,7 @@ /types/murmurhash3js/ @dlee-nvisia /types/musicmatch/ @DadUndead /types/musicmetadata/ @Xstoudi -/types/mustache/ @markashleybell @manuth +/types/mustache/ @markashleybell @manuth @phillipj @sbdchd /types/mustache-express/ @BendingBender /types/mutexify/ @maistho /types/mv/ @nenadalm @@ -3690,6 +3823,7 @@ /types/nanoid/ @bash @fadezhanger @saschazar21 /types/nanomsg/ @titan /types/nanoscroller/ @zihark17 +/types/nanotimer/ @bodinsamuel /types/nanp/ @karn /types/native-toast/ @mnahkies /types/natural/ @dmoonfire @forivall @@ -3700,6 +3834,7 @@ /types/naver-whale/ @tbvjaos510 /types/navermaps/ @ckboyjiy /types/navigo/ @aersamkull @dancespiele @deini +/types/ncom/ @DanielRose /types/nconf/ @jedigo @jmthibault @ew73 /types/ncp/ @bartvds @belemaire @ExE-Boss /types/ndarray/ @pawsong @taoqf @@ -3727,7 +3862,7 @@ /types/new-relic-browser/ @renehamburger @piotrkubisa /types/newline-remove/ @OpenByteDev /types/newman/ @LogvinovLeon @Graham42 -/types/newrelic/ @mastermatt @brookspatton @MichaelRBond @zieka @kennethaasan +/types/newrelic/ @mastermatt @brookspatton @MichaelRBond @zieka @kennethaasan @funkswing @dylansmith /types/newrelic__winston-enricher/ @wrumsby /types/nexpect/ @vvakame /types/next-nprogress/ @Ovyerus @@ -3757,6 +3892,7 @@ /types/ngstorage/ @kubiq /types/ngtoaster/ @btesser /types/ngwysiwyg/ @patrick-mackay +/types/nice-try/ @Richienb /types/nightmare/ @horiuchi @samyang-au @Bleser92 /types/nightwatch/ @rkavalap @schlesiger @ClaytonAstrom @lloiser /types/nise/ @a-tarasyuk @@ -3765,10 +3901,10 @@ /types/noble/ @swook @shantanubhadoria @lukel99 @bioball @keton @thegecko @claytonkucera /types/noble-mac/ @swook @shantanubhadoria @lukel99 @bioball @keton @thegecko /types/nodal/ @charrondev -/types/node/ @Microsoft @DefinitelyTyped @jkomyno @a-tarasyuk @alvis @r3nya @btoueg @brunoscheufler @smac89 @tellnes @touffy @DeividasBakanas @eyqs @Flarna @Hannes-Magnusson-CK @KSXGitHub @hoo29 @kjin @ajafff @islishude @mwiktorczyk @mohsen1 @n-e @octo-sniffle @galkin @parambirs @eps1lon @SimonSchick @ThomasdenH @WilcoBakker @wwwy3y3 @ZaneHannanAU @samuela @kuehlein @j-oliveras @bhongy @chyzwar @trivikr @nguymin4 @yoursunny @qwelias -/types/node/v12/ @Microsoft @DefinitelyTyped @jkomyno @a-tarasyuk @alvis @r3nya @btoueg @brunoscheufler @smac89 @tellnes @touffy @DeividasBakanas @eyqs @Flarna @Hannes-Magnusson-CK @KSXGitHub @hoo29 @kjin @ajafff @islishude @mwiktorczyk @mohsen1 @n-e @octo-sniffle @galkin @parambirs @eps1lon @SimonSchick @ThomasdenH @WilcoBakker @wwwy3y3 @ZaneHannanAU @samuela @kuehlein @j-oliveras @bhongy @chyzwar @trivikr @nguymin4 @yoursunny @qwelias -/types/node/v11/ @Microsoft @DefinitelyTyped @jkomyno @a-tarasyuk @alvis @r3nya @btoueg @brunoscheufler @smac89 @tellnes @touffy @DeividasBakanas @eyqs @Flarna @Hannes-Magnusson-CK @KSXGitHub @hoo29 @kjin @ajafff @islishude @mwiktorczyk @mohsen1 @n-e @octo-sniffle @galkin @parambirs @eps1lon @SimonSchick @ThomasdenH @WilcoBakker @wwwy3y3 @ZaneHannanAU @jeremiergz @samuela @kuehlein @j-oliveras @bhongy @ivansieder @nguymin4 -/types/node/v10/ @Microsoft @DefinitelyTyped @jkomyno @a-tarasyuk @alvis @r3nya @brunoscheufler @smac89 @tellnes @DeividasBakanas @eyqs @Flarna @Hannes-Magnusson-CK @KSXGitHub @hoo29 @kjin @ajafff @islishude @mwiktorczyk @mohsen1 @n-e @octo-sniffle @galkin @parambirs @eps1lon @SimonSchick @ThomasdenH @WilcoBakker @wwwy3y3 @ZaneHannanAU @jeremiergz @samuela @kuehlein @j-oliveras @bhongy @nguymin4 +/types/node/ @Microsoft @DefinitelyTyped @jkomyno @a-tarasyuk @alvis @r3nya @btoueg @brunoscheufler @smac89 @tellnes @touffy @DeividasBakanas @eyqs @Flarna @Hannes-Magnusson-CK @KSXGitHub @hoo29 @kjin @ajafff @islishude @mwiktorczyk @mohsen1 @n-e @octo-sniffle @galkin @parambirs @eps1lon @SimonSchick @ThomasdenH @WilcoBakker @wwwy3y3 @ZaneHannanAU @samuela @kuehlein @j-oliveras @bhongy @chyzwar @trivikr @nguymin4 @yoursunny @qwelias @ExE-Boss @Ryan-Willpower +/types/node/v12/ @Microsoft @DefinitelyTyped @jkomyno @a-tarasyuk @alvis @r3nya @btoueg @brunoscheufler @smac89 @tellnes @touffy @DeividasBakanas @eyqs @Flarna @Hannes-Magnusson-CK @KSXGitHub @hoo29 @kjin @ajafff @islishude @mwiktorczyk @mohsen1 @n-e @octo-sniffle @galkin @parambirs @eps1lon @SimonSchick @ThomasdenH @WilcoBakker @wwwy3y3 @ZaneHannanAU @samuela @kuehlein @j-oliveras @bhongy @chyzwar @trivikr @nguymin4 @yoursunny @qwelias @ExE-Boss +/types/node/v11/ @Microsoft @DefinitelyTyped @jkomyno @a-tarasyuk @alvis @r3nya @btoueg @brunoscheufler @smac89 @tellnes @touffy @DeividasBakanas @eyqs @Flarna @Hannes-Magnusson-CK @KSXGitHub @hoo29 @kjin @ajafff @islishude @mwiktorczyk @mohsen1 @n-e @octo-sniffle @galkin @parambirs @eps1lon @SimonSchick @ThomasdenH @WilcoBakker @wwwy3y3 @ZaneHannanAU @jeremiergz @samuela @kuehlein @j-oliveras @bhongy @ivansieder @nguymin4 @ExE-Boss +/types/node/v10/ @Microsoft @DefinitelyTyped @jkomyno @a-tarasyuk @alvis @r3nya @brunoscheufler @smac89 @tellnes @DeividasBakanas @eyqs @Flarna @Hannes-Magnusson-CK @KSXGitHub @hoo29 @kjin @ajafff @islishude @mwiktorczyk @mohsen1 @n-e @octo-sniffle @galkin @parambirs @eps1lon @SimonSchick @ThomasdenH @WilcoBakker @wwwy3y3 @ZaneHannanAU @jeremiergz @samuela @kuehlein @j-oliveras @bhongy @nguymin4 @ExE-Boss /types/node/v9/ @Microsoft @DefinitelyTyped @parambirs @tellnes @WilcoBakker @octo-sniffle @smac89 @Flarna @mwiktorczyk @wwwy3y3 @DeividasBakanas @kjin @alvis @eps1lon @Hannes-Magnusson-CK @jkomyno @ajafff @hoo29 @n-e @galkin @brunoscheufler @mohsen1 @KSXGitHub @a-tarasyuk @islishude @r3nya @eyqs @j-oliveras @bhongy /types/node/v8/ @Microsoft @DefinitelyTyped @parambirs @tellnes @WilcoBakker @octo-sniffle @smac89 @Flarna @mwiktorczyk @wwwy3y3 @DeividasBakanas @kjin @alvis @eps1lon @Hannes-Magnusson-CK @jkomyno @hoo29 @n-e @galkin @brunoscheufler @KSXGitHub @islishude @r3nya @j-oliveras @bhongy /types/node/v7/ @Microsoft @DefinitelyTyped @parambirs @tellnes @WilcoBakker @eps1lon @KSXGitHub @Archcry @j-oliveras @@ -3781,7 +3917,7 @@ /types/node-calendar/ @luzianz /types/node-cleanup/ @agadar /types/node-crate/ @gjednaszewski -/types/node-cron/ @maximelkin @burtek @RMHonor +/types/node-cron/ @maximelkin @burtek @RMHonor @ataberkylmz /types/node-dijkstra/ @nokutu /types/node-dir/ @panuhorsmalahti @jlismore /types/node-dogstatsd/ @chrisbobo @xzyfer @@ -3789,9 +3925,9 @@ /types/node-easy-cert/ @SomaticIT /types/node-emoji/ @jonestristand @styu @rimiti /types/node-expat/ @winston01 -/types/node-fetch/ @torstenwerner @nikcorg @vinaybedre @kyranet @AndrewLeedham @JasonLi914 @wilsonianb @southpolesteve @ExE-Boss @alexandrusavin +/types/node-fetch/ @torstenwerner @nikcorg @vinaybedre @kyranet @AndrewLeedham @JasonLi914 @wilsonianb @southpolesteve @ExE-Boss @alexandrusavin @OmgImAlexis /types/node-fibers/ @caryhaynie -/types/node-forge/ @westy92 @flynetworks @a-k-g @rafal2228 @beenotung @joeflateau @Apologiz @timhwang21 @supaiku0 @andersk @saschazar21 @rogierschouten +/types/node-forge/ @westy92 @flynetworks @a-k-g @rafal2228 @beenotung @joeflateau @Apologiz @timhwang21 @supaiku0 @andersk @saschazar21 @rogierschouten @aseevia /types/node-gcm/ @horiuchi /types/node-geocoder/ @rosek86 /types/node-getopt/ @kcauchy @@ -3841,7 +3977,7 @@ /types/node-wget-promise/ @sandersn /types/node-windows/ @kenhuman /types/node-wit/ @julienduf -/types/node-xlsx/ @cWatermelon +/types/node-xlsx/ @cWatermelon @kinuxroot /types/node-xmpp-client/ @PJakcson /types/node-xmpp-core/ @PJakcson /types/node-zendesk/ @jgeth @@ -3870,9 +4006,10 @@ /types/normalize-jss/ @maxbogus /types/normalize-package-data/ @jdxcode /types/normalize-path/ @BendingBender +/types/nosleep.js/ @JoshuaKGoldberg /types/notie/ @mateusdemboski /types/notify/ @hellochar -/types/notifyjs/ @soundTricker @NateScarlet +/types/notifyjs/ @soundTricker @NateScarlet @eikendev /types/notifyjs-browser/ @bahman616 /types/notp/ @wilfredtan /types/nouislider/ @bleuarg @lagaffe @@ -3897,6 +4034,7 @@ /types/nslog/ @unindented /types/nsqjs/ @cezaryrk /types/nssm/ @hongaar +/types/ntlm-client/ @borrajo /types/nuclear-js/ @patlillis /types/num2fraction/ @sergey12313 /types/number-is-nan/ @mhegazy @@ -3907,10 +4045,11 @@ /types/nunjucks/ @RubenSlabbert @MatthewBurstein /types/nunjucks-date/ @kruncher /types/nuxtjs__auth/ @jonnyparris @danielgek @NickBolles @arodiono -/types/nvd3/ @PjMitchell +/types/nvd3/ @PjMitchell @bigrocketgames /types/nw.gui/ @xperiments /types/nw.js/ @alirdn /types/nwmatcher/ @woutervh- +/types/nyaapi/ @infanf /types/oakdex-pokedex/ @jalyna /types/oauth/ @nonAlgebraic @EduardoAC /types/oauth-shim/ @BendingBender @@ -3924,16 +4063,18 @@ /types/object-assign/ @chbrown /types/object-assign-deep/ @nickbclifford /types/object-diff/ @rogierschouten +/types/object-fit-images/ @rann91 /types/object-hash/ @misak113 @artdiniz -/types/object-inspect/ @demurgos @Akuukis +/types/object-inspect/ @demurgos @Akuukis @ljharb /types/object-joiner/ @me -/types/object-keys/ @VitorLuizC +/types/object-keys/ @VitorLuizC @ljharb /types/object-keys-mapping/ @newraina /types/object-map/ @wolfgang42 +/types/object-mapper/ @me /types/object-merge/ @OpenByteDev /types/object-path/ @pocesar @BendingBender /types/object-refs/ @3fd -/types/object.getownpropertydescriptors/ @VitorLuizC +/types/object.getownpropertydescriptors/ @VitorLuizC @ljharb @ExE-Boss /types/object.omit/ @ifiokjr /types/object.pick/ @ifiokjr /types/objtools/ @me @@ -3942,9 +4083,9 @@ /types/observe-js/ @herrmanno /types/oclazyload/ @rolandzwaga /types/ofe/ @Morfent -/types/office-js/ @OfficeDev @LanceEA @Zlatkovsky @kbrandl @Rick-Kirkham @AlexJerabek @ElizabethSamuel-MSFT -/types/office-js-preview/ @OfficeDev @Zlatkovsky @kbrandl @Rick-Kirkham @AlexJerabek @ElizabethSamuel-MSFT -/types/office-runtime/ @OfficeDev @Zlatkovsky @mscharlock @davidchesnut @AlexJerabek @sumurthy +/types/office-js/ @OfficeDev @Zlatkovsky @Rick-Kirkham @AlexJerabek @ElizabethSamuel-MSFT @sumurthy +/types/office-js-preview/ @OfficeDev @Zlatkovsky @Rick-Kirkham @AlexJerabek @ElizabethSamuel-MSFT @sumurthy +/types/office-runtime/ @OfficeDev @Zlatkovsky @mscharlock @davidchesnut @AlexJerabek @sumurthy @rick-kirkham /types/offline-js/ @cgwrench /types/offscreencanvas/ @kayahr @ova2 /types/oibackoff/ @geoffreak @@ -3952,6 +4093,7 @@ /types/oja/ @buffcode /types/okta__okta-vue/ @innovation-team @mgdodge /types/ol/ @hanreev +/types/ol/v5/ @hanreev /types/omelette/ @kamontat /types/omggif/ @ffflorian /types/omit-empty/ @pastelsky @@ -3969,6 +4111,7 @@ /types/openapi-factory/ @runebaas /types/opener/ @tikurahul /types/openfin/ @chrisbarker @rdepena @whyn07m3 @licui3936 @tomer-openfin +/types/openfin/v45/ @chrisbarker @rdepena @whyn07m3 @licui3936 @tomer-openfin /types/openfin/v43/ @chrisbarker @rdepena @whyn07m3 @licui3936 @tomer-openfin /types/openfin/v41/ @chrisbarker @rdepena @whyn07m3 @licui3936 /types/openfin/v39/ @chrisbarker @rdepena @whyn07m3 @licui3936 @@ -4000,6 +4143,7 @@ /types/orientjs/ @saeedtabrizi /types/original/ @wcarson /types/os-homedir/ @mhegazy +/types/os-service/ @magginichi /types/os-tmpdir/ @mhegazy /types/os-utils/ @bacali95 /types/osenv/ @adamzerella @@ -4007,6 +4151,8 @@ /types/osmtogeojson/ @tkqubo /types/ospec/ @maranomynet @spacejack @isiahmeadows /types/osrm/ @DenisCarriere +/types/osrs-json-api/ @kylemiller3 +/types/ouibounce/ @LiquidPL /types/overlayscrollbars/ @KingSora /types/owasp-password-strength-test/ @stephtr /types/owl.carousel/ @igorissen @KennethanCeyer @@ -4018,6 +4164,7 @@ /types/package-info/ @ffflorian /types/packery/ @piraveen @hanssens /types/pacote/ @ChaosinaCan +/types/pad-left/ @Richienb /types/page/ @43081j /types/pager__jackrabbit/ @dagams /types/paho-mqtt/ @amikhalev @@ -4027,6 +4174,7 @@ /types/papaparse/ @torpedro @rainshen49 @jfloff @johnnyreilly @albertorestifo @BehindTheMath @3af @jliuhtonen @rbarbazz /types/parallel-transform/ @djcsdy /types/paralleljs/ @jbaldwin +/types/parameterize/ @me /types/parcel-bundler/ @pinage404 @nick-woodward /types/parcel-env/ @fathyb /types/parent-package-json/ @sgmccli @@ -4035,7 +4183,7 @@ /types/parity-pmr/ @leovujanic /types/parity-poe/ @leovujanic /types/parquetjs/ @jon-fearer -/types/parse/ @ullisenmedia @dpoetzsch @jaeggerr @flavionegrao @wesleygrimes @owsas @agoldis @AlexandreHetu @dplewis @yomybaby @pocketcolin @rdhelms @jlnquere @yagotome @tybi @RaschidJFR @jeffgukang @buitanloc @LinusU @REPTILEHAUS +/types/parse/ @ullisenmedia @dpoetzsch @jaeggerr @flavionegrao @wesleygrimes @owsas @agoldis @AlexandreHetu @dplewis @yomybaby @pocketcolin @rdhelms @jlnquere @yagotome @tybi @RaschidJFR @jeffgukang @buitanloc @LinusU @REPTILEHAUS @JeromeDeLeon @kentrh /types/parse/v1/ @dpoetzsch @jaeggerr @flavionegrao @wesleygrimes @owsas /types/parse-author/ @remcohaszing /types/parse-color/ @ajcrites @@ -4052,6 +4200,7 @@ /types/parse-package-name/ @fa93hws /types/parse-passwd/ @BendingBender /types/parse-path/ @ffflorian +/types/parse-prefer-header/ @XVincentX @marcelltoth /types/parse-torrent/ @niieani @tlaziuk /types/parse-torrent-file/ @tlaziuk /types/parse-unit/ @Jack-Works @@ -4065,10 +4214,10 @@ /types/parse5-serializer-stream/ @inikulin /types/parsecurrency/ @cristianrgreco /types/parseurl/ @bomret -/types/parsimmon/ @Bartvds @mizunashi-mana @bcherny @bvanreeven @leonard-thieu @MrJohz +/types/parsimmon/ @Bartvds @mizunashi-mana @bcherny @bvanreeven @leonard-thieu @MrJohz @caasi /types/passport/ @horiuchi @enaeseth @theigor @tlaziuk @danielpa9708 @kstiehl @vaskevich /types/passport-anonymous/ @0x6368656174 -/types/passport-auth0/ @johnbendi @iamvishnusankar @duncanhall +/types/passport-auth0/ @johnbendi @iamvishnusankar @duncanhall @karlhorky /types/passport-azure-ad/ @ShekharNain /types/passport-beam/ @AtlasDev /types/passport-bnet/ @ivan94 @@ -4088,6 +4237,7 @@ /types/passport-linkedin-oauth2/ @andrewvetovitz /types/passport-local/ @SomaticIT /types/passport-local-mongoose/ @linusbrolin +/types/passport-microsoft/ @skrud /types/passport-naver/ @Park9eon @zerocho /types/passport-oauth2/ @pasieronen @WangZishi @EduardoAC @ivan94 /types/passport-oauth2-client-password/ @akaNightmare @@ -4115,12 +4265,14 @@ /types/payment/ @apare /types/paypal-cordova-plugin/ @Justin-Credible /types/paypal-rest-sdk/ @trainerbill @barronwei +/types/paystack/ @sheghun /types/pbf/ @cschwarz /types/pbkdf2/ @timonegk +/types/pdf-image/ @nicklatkovich /types/pdf2image/ @taoqf /types/pdfjs-dist/ @jbaldwin @1999 /types/pdfkit/ @erichillah @she11sh0cked -/types/pdfmake/ @m1llen1um @radziksh @evolkmann @andipaetzold +/types/pdfmake/ @m1llen1um @radziksh @evolkmann @andipaetzold @nmummau /types/pdfobject/ @nielsboogaard /types/pebblekitjs/ @makotokw /types/peer-dial/ @RealTYPICAL @@ -4173,7 +4325,7 @@ /types/pikaday-time/ @Sayan751 /types/ping/ @RMHonor /types/pinkyswear/ @chances -/types/pino/ @psnider @BendingBender @screendriver @paambaati @alferpal @mortiy @lummish @raoulus @Cooryd @AdamVig +/types/pino/ @psnider @BendingBender @screendriver @paambaati @alferpal @mortiy @lummish @raoulus @Cooryd @AdamVig @austin-beer @Pegase745 /types/pino/v3/ @psnider /types/pino-http/ @screendriver @jdforsythe @tough-griff /types/pino-multi-stream/ @JakeGinnivan @@ -4212,11 +4364,14 @@ /types/pollyjs__adapter/ @feinoujc /types/pollyjs__adapter-fetch/ @feinoujc /types/pollyjs__adapter-node-http/ @jlmessenger +/types/pollyjs__adapter-puppeteer/ @offirgolan /types/pollyjs__adapter-xhr/ @silverchen /types/pollyjs__core/ @feinoujc @BoruiGu @offirgolan /types/pollyjs__node-server/ @offirgolan /types/pollyjs__persister/ @feinoujc @silverchen /types/pollyjs__persister-fs/ @feinoujc +/types/pollyjs__persister-local-storage/ @offirgolan +/types/pollyjs__persister-rest/ @offirgolan /types/pollyjs__utils/ @feinoujc @offirgolan /types/polyfill-service/ @Alorel /types/polygon/ @Nielio @@ -4302,6 +4457,7 @@ /types/promise-ftp/ @coolreader18 @Rolandisimo /types/promise-ftp-common/ @coolreader18 /types/promise-hash/ @mshafir +/types/promise-inflight/ @forivall /types/promise-map-limit/ @kohlmannj /types/promise-memoize/ @forivall /types/promise-nodeify/ @jgeth @@ -4314,8 +4470,8 @@ /types/promise-sequential/ @garyking /types/promise-sftp/ @coolreader18 /types/promise-timeout/ @Aankhen -/types/promise.allsettled/ @jurca @kisaraofpern -/types/promise.prototype.finally/ @slavik57 @BendingBender +/types/promise.allsettled/ @jurca @kisaraofpern @ljharb +/types/promise.prototype.finally/ @slavik57 @BendingBender @ljharb /types/promised-ldap/ @pluma /types/promised-temp/ @rokadias /types/promisify-node/ @borekb @@ -4355,7 +4511,7 @@ /types/protractor-http-mock/ @Crevil @akwiatek /types/provinces/ @gatimus /types/proxy-addr/ @BendingBender -/types/proxy-from-env/ @JasonHK +/types/proxy-from-env/ @JasonHK @flopes89 /types/proxy-lists/ @BehindTheMath /types/proxy-verifier/ @BehindTheMath /types/proxyquire/ @jt000 @@ -4364,11 +4520,12 @@ /types/psl/ @BendingBender /types/ptomasroos__react-native-multi-slider/ @Slessi /types/pty.js/ @enlight -/types/pubnub/ @bitbankinc @rollymaduk @vitosamson @FlorianDr @danduh @ChristianBoehlke @divyun +/types/pubnub/ @bitbankinc @rollymaduk @vitosamson @FlorianDr @danduh @ChristianBoehlke @divyun @mohitpubnub /types/pubsub-js/ @borisyankov /types/pug/ @TonyPythoneer @19majkel94 /types/pull-stream/ @mjwwit -/types/pulltorefreshjs/ @DanielRosenwasser @humpedli +/types/pulltorefreshjs/ @DanielRosenwasser @humpedli @bodinsamuel +/types/pulsar-client/ @bwalendz /types/pump/ @tlaziuk @jcordial /types/pumpify/ @JustinBeckwith @aoberoi /types/punycode/ @yavanosta @@ -4398,7 +4555,7 @@ /types/qrcode/ @plantain-00 @mnahkies @Marchelune /types/qrcode-svg/ @ericbf /types/qrcode.react/ @mleko @yonasadiel @bjoluc -/types/qs/ @RWander @leonyu @tehbelinda @zyml @artursvonda @CarlosBonetti @dpsmith3 @hperrin +/types/qs/ @RWander @leonyu @tehbelinda @zyml @artursvonda @CarlosBonetti @dpsmith3 @hperrin @ljharb /types/qs-middleware/ @davecardwell /types/qtip2/ @Seltzer @leonard-thieu /types/querystringify/ @ilich @@ -4418,7 +4575,7 @@ /types/raf/ @BenLorantfy /types/raf-schd/ @adambrgmn /types/ramda/ @TheHandsomeCoder @donnut @mdekrey @mrdziuban @sbking @afharo @teves-castro @1M0reBug @hojberg @samsonkeung @angeloocana @raynerd @moshensky @ethanresnick @deftomat @blimusiek @biern @rayhaneh @rgm @drewwyatt @jottenlips @minitesh @krantisinh @pirix-gh @brekk @nemo108 @jituanlin @Philippe-mills @Saul-Mirone -/types/random/ @sandersn +/types/random/ @sandersn @kijowski /types/random-boolean/ @BendingBender /types/random-bytes/ @me /types/random-normal/ @dikarel @@ -4445,7 +4602,7 @@ /types/raspi-pwm/ @nebrius /types/raspi-serial/ @nebrius /types/raspi-soft-pwm/ @nebrius -/types/rate-limit-redis/ @csuich2 +/types/rate-limit-redis/ @csuich2 @dotconnor /types/ratelimiter/ @AyaMorisawa /types/raty/ @terrawheat /types/raven/ @scttcper @1999 @shreyjain1994 @@ -4464,13 +4621,22 @@ /types/rcloader/ @panuhorsmalahti /types/rdf-data-model/ @rubensworks /types/rdf-dataset-ext/ @thewilkybarkid +/types/rdf-dataset-indexed/ @thewilkybarkid /types/rdf-ext/ @tpluscode /types/rdf-js/ @rubensworks @LaurensRietveld +/types/rdf-transform-triple-to-quad/ @tpluscode +/types/rdfjs__dataset/ @tpluscode +/types/rdfjs__fetch/ @tpluscode +/types/rdfjs__fetch-lite/ @tpluscode +/types/rdfjs__formats-common/ @tpluscode /types/rdfjs__namespace/ @thewilkybarkid /types/rdfjs__parser-jsonld/ @thewilkybarkid /types/rdfjs__parser-n3/ @tpluscode /types/rdfjs__serializer-jsonld/ @thewilkybarkid /types/rdfjs__serializer-jsonld-ext/ @thewilkybarkid +/types/rdfjs__sink-map/ @tpluscode +/types/rdfjs__to-ntriples/ @tpluscode +/types/rdflib/ @cenotelie /types/re-base/ @jordandrako /types/reach__alert/ @hedgerh /types/reach__alert-dialog/ @hedgerh @@ -4479,14 +4645,14 @@ /types/reach__dialog/ @hedgerh /types/reach__menu-button/ @hedgerh /types/reach__rect/ @hedgerh -/types/reach__router/ @kingdaro @xMokAx @awwit +/types/reach__router/ @kingdaro @xMokAx @awwit @wroughtec /types/reach__skip-nav/ @hedgerh /types/reach__tabs/ @hedgerh /types/reach__tooltip/ @hedgerh /types/reach__utils/ @hedgerh /types/reach__visually-hidden/ @hedgerh /types/reach__window-size/ @hedgerh -/types/react/ @johnnyreilly @bbenezech @pzavolinsky @digiguru @ericanderson @DovydasNavickas @theruther4d @guilhermehubner @ferdaber @jrakotoharisoa @pascaloliv @hotell @franklixuefei @Jessidhia @saranshkataria @lukyth @eps1lon @zieka @dancerphil +/types/react/ @johnnyreilly @bbenezech @pzavolinsky @digiguru @ericanderson @DovydasNavickas @theruther4d @guilhermehubner @ferdaber @jrakotoharisoa @pascaloliv @hotell @franklixuefei @Jessidhia @saranshkataria @lukyth @eps1lon @zieka @dancerphil @dimitropoulos /types/react/v15/ @bbenezech @pzavolinsky @digiguru @ericanderson @DovydasNavickas @onigoetz @zieka /types/react-adal/ @dkorolev1 /types/react-add-to-calendar/ @koss-lebedev @@ -4498,16 +4664,17 @@ /types/react-app/ @prakarshpandey /types/react-aria-live/ @ajliv /types/react-aria-menubutton/ @forabi @crohlfs @karmats -/types/react-aria-modal/ @gabycperezdias @forabi @grgr-dkrk +/types/react-aria-modal/ @gabycperezdias @forabi @grgr-dkrk @crutchcorn /types/react-autocomplete/ @lstanden /types/react-autosuggest/ @nicolas-schmitt @pjo256 @robessog @tbayne @cdeutsch @rosskevin @ThomasdenH @ulrichb /types/react-avatar-editor/ @diogocorrea @gabsprates @lsenta @davidspiess @JohnGrisham /types/react-axe/ @akshaykarthik -/types/react-beautiful-dnd/ @varHarrie @bradleyayers @paustint @marknelissen @enricoboccadifuoco @lonyele @lukyth +/types/react-beautiful-dnd/ @varHarrie @bradleyayers @paustint @marknelissen @enricoboccadifuoco @lonyele @lukyth @aruniverse +/types/react-beautiful-dnd/v11/ @varHarrie @bradleyayers @paustint @marknelissen @enricoboccadifuoco @lonyele @lukyth /types/react-beautiful-dnd/v10/ @varHarrie @bradleyayers @paustint @marknelissen @enricoboccadifuoco @lonyele @lukyth /types/react-beforeunload/ @nem035 /types/react-better-password/ @mhuynh1 -/types/react-big-calendar/ @piotrwitek @paustint @pikpok @eps1lon @strongpauly @janb87 @ldthorne @siavelis @TomasHubelbauer @lksilva @SergeyBelofost @marknelissen @KenneyE @PaitoAnderson @michalak111 +/types/react-big-calendar/ @piotrwitek @paustint @pikpok @eps1lon @strongpauly @janb87 @ldthorne @siavelis @TomasHubelbauer @lksilva @SergeyBelofost @marknelissen @KenneyE @PaitoAnderson @michalak111 @fhessenberger /types/react-big-scheduler/ @FizzBuzz791 /types/react-blessed/ @guoshencheng /types/react-body-classname/ @mhegazy @@ -4523,8 +4690,10 @@ /types/react-burger-menu/ @radziksh @dacevedo12 @germanp173 /types/react-cache/ @skovy /types/react-calendar-heatmap/ @9renpoto -/types/react-calendar-timeline/ @radziksh @acemac @rip21 +/types/react-calendar-timeline/ @radziksh @acemac @rip21 @joncar +/types/react-canvas-draw/ @ksocha /types/react-cartographer/ @trevonmckay +/types/react-chat-widget/ @stevemao /types/react-click-outside/ @screendriver @Ky6uk /types/react-click-outside-hook/ @bdeloeste /types/react-close-on-escape/ @JamesAlias @@ -4549,6 +4718,7 @@ /types/react-currency-formatter/ @pastushenkoy @Jeka-Vasiliev /types/react-custom-scrollbars/ @David-LeBlanc-git @kittimiyo /types/react-custom-scrollbars/v3/ @David-LeBlanc-git +/types/react-d3-graph/ @hrngoode @adina-todoran /types/react-data-grid/ @SupernaviX @KieranPeat @martinnov92 @baso53 /types/react-data-grid/v2/ @SupernaviX @KieranPeat @martinnov92 @Ragzzy-R /types/react-data-grid/v1/ @SupernaviX @@ -4584,9 +4754,10 @@ /types/react-file-input/ @dmitryrogozhny /types/react-file-reader-input/ @dmitryrogozhny @alitaheri /types/react-filepond/ @zposten +/types/react-final-form-listeners/ @yurist38 /types/react-flag-icon-css/ @jonfreedman /types/react-flags-select/ @senukartur -/types/react-flatpickr/ @begincalendar @snaveevans @rigothedev @doniyor2109 +/types/react-flatpickr/ @begincalendar @snaveevans @rigothedev @doniyor2109 @jleider /types/react-flex/ @pushplay /types/react-flexr/ @pushplay /types/react-fontawesome/ @timurrustamov @dublicator @vincaslt @gavingregory @@ -4614,6 +4785,7 @@ /types/react-headroom/ @zerocho /types/react-helmet/ @evanbb @isman-usoh @lith-light-g @sammkj @yuit @ykzts @wKovacs64 /types/react-helmet/v4/ @evanbb @isman-usoh +/types/react-helmet-with-visor/ @kokushkin /types/react-highcharts/ @j1r1k /types/react-highlight/ @joshuakgoldberg @jplew /types/react-highlight-words/ @mhegazy @diogodca @kellyrmilligan @@ -4657,7 +4829,7 @@ /types/react-js-pagination/ @netoisc /types/react-json/ @spielc /types/react-json-tree/ @gnestor @zainafzal08 -/types/react-jsonschema-form/ @iamdanfox @iplus26 @phbou72 @LucianBuzzo @sthenault @sbusch @medfreeman @saadtazi @agustin107 @chanceaclark @ogdentrod +/types/react-jsonschema-form/ @iamdanfox @iplus26 @phbou72 @LucianBuzzo @sthenault @sbusch @medfreeman @saadtazi @agustin107 @chanceaclark @ogdentrod @andrenguyener @qingqishi /types/react-kawaii/ @ZhangYiJiang /types/react-lazy-load-image-component/ @danvk @diegochavez @revskill10 /types/react-lazyload/ @m0a @svobik7 @@ -4676,7 +4848,7 @@ /types/react-loader-spinner/ @rayhanw /types/react-lottie/ @Kana00 @Ricki-BumbleDev /types/react-mailchimp-subscribe/ @osdiab -/types/react-map-gl/ @rimig @fnberta @sandersiim @oturpe @Arman92 @chiuhow +/types/react-map-gl/ @rimig @fnberta @sandersiim @oturpe @Arman92 @chiuhow @singingwolfboy /types/react-maskedinput/ @LKay @lavoaster @CarlosBonetti /types/react-material-ui-form-validator/ @FrankBrullo @jrguenin /types/react-mathquill/ @magonzalez9 @@ -4685,27 +4857,32 @@ /types/react-measure/ @asvetliakov @marcfallows /types/react-medium-image-zoom/ @james-ff /types/react-mentions/ @activescott @efedorenko +/types/react-messenger-checkbox/ @remiroyc /types/react-mic/ @mikaello /types/react-mixin/ @tkqubo -/types/react-modal/ @radziksh @drewnoakes @homburg @ttamminen @hallowatcher @peterblazejewicz @jpowell +/types/react-modal/ @radziksh @drewnoakes @homburg @ttamminen @hallowatcher @peterblazejewicz @jpowell @fiberjw @nitzanmo /types/react-motion/ @stepancar @asvetliakov @dimitarnestorov /types/react-motion-loop/ @j-em /types/react-motion-slider/ @asvetliakov /types/react-motion-ui-pack/ @jsonunger -/types/react-native/ @alloy @huhuanming @iRoachie @skn0tt @timwangdev @kamal @alexdunne @swissmanu @bm-software @a-tarasyuk @mvdam @esemesek @mrnickel @souvik-ghosh @nossbigg @saranshkataria @franzmoro @tykus160 @jakebloom @ceyhun @mcmar @theohdv @TheSavior @romain-faust @bebebebebe @Naturalclar @chinesedfan @vtolochk @SychevSP +/types/react-native/ @alloy @huhuanming @iRoachie @skn0tt @timwangdev @kamal @alexdunne @swissmanu @bm-software @a-tarasyuk @mvdam @esemesek @mrnickel @souvik-ghosh @nossbigg @saranshkataria @franzmoro @tykus160 @jakebloom @ceyhun @mcmar @theohdv @TheSavior @romain-faust @bebebebebe @Naturalclar @chinesedfan @vtolochk @SychevSP @RageBill @sasurau4 @256hz @doumart @drmas /types/react-native-actionsheet/ @ian-rudge /types/react-native-android-taskdescription/ @christianchown -/types/react-native-app-intro-slider/ @hmajid2301 +/types/react-native-app-intro-slider/ @hmajid2301 @oliverwelter /types/react-native-app-link/ @johngeorgewright +/types/react-native-appsflyer/ @fabianlee1211 /types/react-native-audio/ @taoqf /types/react-native-auth0/ @ascariandrea @marknelissen @leoafarias /types/react-native-autocomplete-input/ @ifiokjr @lukyth /types/react-native-autocomplete-input/v3/ @ifiokjr /types/react-native-awesome-card-io/ @OnurVar @emlynmac +/types/react-native-background-downloader/ @Kweiza @adamrhunter /types/react-native-background-timer/ @chillkroeteTTS /types/react-native-bluetooth-serial/ @RodrigoAWeber /types/react-native-calendars/ @Tyler-Zhang @DavidNorena @FabianMeul /types/react-native-canvas/ @hmajid2301 @ragebill +/types/react-native-charts-wrapper/ @dotconnor +/types/react-native-check-box/ @rlemasquerier /types/react-native-communications/ @huhuanming @PaitoAnderson /types/react-native-community__cli/ @agathekieny /types/react-native-custom-tabs/ @philnova @@ -4716,7 +4893,7 @@ /types/react-native-document-picker/ @plantain-00 /types/react-native-dotenv/ @hmajid2301 /types/react-native-draggable-flatlist/ @stackbuilders @ibarrae -/types/react-native-drawer/ @jnbt @suniahk +/types/react-native-drawer/ @jnbt @suniahk @LinusU /types/react-native-drawer-layout/ @jmfirth /types/react-native-easy-upgrade/ @taoqf /types/react-native-elevated-view/ @fhelwanger @@ -4730,7 +4907,7 @@ /types/react-native-huawei-protected-apps/ @christianchown /types/react-native-i18n/ @VincentLanglet /types/react-native-incall-manager/ @KarlosQ -/types/react-native-indicators/ @ifiokjr +/types/react-native-indicators/ @ifiokjr @frankyjuang /types/react-native-joi/ @CharlesStrong-GeoH /types/react-native-keep-awake/ @huhuanming /types/react-native-keyboard-spacer/ @VincentLanglet @@ -4740,6 +4917,7 @@ /types/react-native-material-design-searchbar/ @iRoachie /types/react-native-material-dropdown/ @jaydeep987 @mchappell /types/react-native-material-kit/ @iRoachie @timwangdev +/types/react-native-material-menu/ @KoreanThinker /types/react-native-material-textfield/ @mindhivefi @iRoachie @cavarzan @neelb2 /types/react-native-material-ui/ @iRoachie /types/react-native-mixpanel/ @r3nya @@ -4760,6 +4938,7 @@ /types/react-native-qrcode/ @plantain-00 /types/react-native-read-more-text/ @solkaz /types/react-native-referrer/ @christianchown +/types/react-native-responsive-dimensions/ @SConaway /types/react-native-restart/ @christianchown /types/react-native-rss-parser/ @emilianoLeite /types/react-native-safari-view/ @mrand01 @@ -4767,7 +4946,8 @@ /types/react-native-scrollable-tab-view/ @CaiHuan @egorshulga @ydostyle /types/react-native-sensor-manager/ @SahinVardar /types/react-native-settings-list/ @MrLuje -/types/react-native-share/ @marknelissen @santiagofm @MateusAndrade +/types/react-native-share/ @marknelissen @santiagofm @MateusAndrade @Naturalclar @fabianlee1211 +/types/react-native-share/v1/ @marknelissen @santiagofm @MateusAndrade @Naturalclar /types/react-native-share-extension/ @hmajid230 /types/react-native-share-menu/ @hmajid2301 /types/react-native-signature-capture/ @ifiokjr @@ -4788,9 +4968,10 @@ /types/react-native-uuid/ @hmajid2301 /types/react-native-uuid-generator/ @burtek /types/react-native-vector-icons/ @iRoachie @timwangdev @robertying @Naturalclar -/types/react-native-version-check/ @vdelacou +/types/react-native-version-check/ @vdelacou @KrishyV /types/react-native-version-number/ @VincentLanglet -/types/react-native-video/ @huhuanming +/types/react-native-video/ @huhuanming @Nekith +/types/react-native-video-player/ @Kweiza /types/react-native-view-pdf/ @thesergiomiguel /types/react-native-webrtc/ @KarlosQ /types/react-native-zeroconf/ @mattapet @@ -4803,7 +4984,7 @@ /types/react-offcanvas/ @abukurov /types/react-onclickoutside/ @LKay @surgeboris @NilSet /types/react-onclickoutside/v5/ @LKay -/types/react-onsenui/ @salim7 @jemmyw @lirbank @uztbt +/types/react-onsenui/ @salim7 @jemmyw @lirbank @uztbt @LaBlazer /types/react-outside-click-handler/ @zubivan /types/react-overlays/ @aaronbeall @vitosamson @aarondancer /types/react-paginate/ @deevus @wouterhardeman @pegel03 @archy-bold @yasupeke @sugarshin @SPWizard01 @kevinrambaud @@ -4811,10 +4992,11 @@ /types/react-paginate/v4/ @deevus @wouterhardeman @pegel03 @archy-bold /types/react-panelgroup/ @qgolsteyn /types/react-pdf/ @CodeDaraW @nhardy +/types/react-phone-number-input/ @PeterYangIO @AdrienEtienne @fleck @jlismore /types/react-photoswipe/ @kwzm /types/react-places-autocomplete/ @guilhermehubner @r3nya @ApeNox @azizhk @marknelissen /types/react-places-autocomplete/v6/ @guilhermehubner @r3nya @ApeNox @azizhk -/types/react-plaid-link/ @DanceParty +/types/react-plaid-link/ @DanceParty @mikecousins /types/react-plotly.js/ @jonfreedman @gricey432 /types/react-plyr/ @baorv /types/react-pointable/ @istefo @mdibyo @@ -4828,8 +5010,9 @@ /types/react-radio-group/ @jsonunger /types/react-rangeslider/ @RichieRock /types/react-recaptcha/ @mhegazy @zzanol +/types/react-recaptcha-v3/ @silversonicaxel @ivansiach0 /types/react-reconciler/ @Methuselah96 -/types/react-redux/ @tkqubo @kenzierocks @clayne11 @tansongyang @nicholasboll @mdibyo @kallikrein @val1984 @jrakotoharisoa @apapirovski @surgeboris @soerenbf @mrwolfz @dylanvann +/types/react-redux/ @tkqubo @kenzierocks @clayne11 @tansongyang @nicholasboll @mdibyo @kallikrein @val1984 @jrakotoharisoa @apapirovski @surgeboris @soerenbf @mrwolfz @dylanvann @Lazyuki @kazuma1989 /types/react-redux/v6/ @tkqubo @kenzierocks @clayne11 @tansongyang @nicholasboll @mdibyo @pdeva @kallikrein @val1984 @jrakotoharisoa @apapirovski @surgeboris /types/react-redux/v5/ @tkqubo @thasner @kenzierocks @clayne11 @tansongyang @nicholasboll @mdibyo @pdeva /types/react-redux-epic/ @forabi @@ -4857,6 +5040,7 @@ /types/react-router-redux/ @huy-nguyen @8398a7 @mykolas /types/react-router-redux/v4/ @isman-usoh @noah79 @rosendi @LKay @DovydasNavickas /types/react-router-redux/v3/ @isman-usoh @noah79 @rosendi +/types/react-router-tabs/ @joakimunge /types/react-rte/ @jclyons52 @MunifTanjim /types/react-s-alert/ @mitsuruog /types/react-scroll/ @sudoplz @GiedriusGrabauskas @@ -4866,13 +5050,14 @@ /types/react-scrollbar/ @stephenjelfs @HugoCapocci /types/react-scrollbar-size/ @abukurov /types/react-scrollspy/ @ZhangYiJiang -/types/react-select/ @claasahl @jonfreedman @Methuselah96 @thchia @danieldelcore +/types/react-select/ @claasahl @jonfreedman @Methuselah96 @thchia @danieldelcore @rjoonas /types/react-select/v1/ @Hesquibet @giladgray @iebaker @skirsdeda @vujevits @devrelm @MartynasZilinskas @onatm @ninjaferret @tehbi4 @misantronic @darkartur @eps1lon @endurance @RCGuillaume /types/react-shadow-dom-retarget-events/ @remcohaszing /types/react-share/ @icopp @maximzasorin /types/react-show-more/ @naortor /types/react-side-effect/ @remojansen @0xcaff /types/react-sidebar/ @jeroenvervaeke +/types/react-signature-canvas/ @ksocha /types/react-simple-maps/ @thepocp @pronebird /types/react-sizes/ @janKir @micahstubbs /types/react-sketchapp/ @ricokahler @DomiR @saschazar21 @@ -4891,26 +5076,26 @@ /types/react-stars/ @TingYuLC /types/react-sticky/ @curtisw0 @ajhyndman /types/react-sticky-el/ @jbraithwaite -/types/react-stickynode/ @tstirrat -/types/react-stripe-elements/ @dan-j @santiagodoldan @sonnysangha @9y5 @thchia @yhnavein @virzak @remotealex @bombek92 @hirochachacha +/types/react-stickynode/ @tstirrat @ksocha +/types/react-stripe-elements/ @dan-j @santiagodoldan @sonnysangha @9y5 @thchia @yhnavein @virzak @remotealex @bombek92 @hirochachacha @paustint @mastacheata /types/react-svg-inline/ @kiyopikko /types/react-svg-pan-zoom/ @huy-nguyen /types/react-swf/ @stepancar /types/react-swipe/ @DeividasBakanas @AAlakkad /types/react-swipeable-views/ @mxl @DeividasBakanas -/types/react-swipeable-views-utils/ @eps1lon +/types/react-swipeable-views-utils/ @eps1lon @robertnisipeanu /types/react-syntax-highlighter/ @NoHomey @ajgamble-milner @guoyunhe @anirban09 -/types/react-table/ @ggascoigne @stramel -/types/react-table/v6/ @royxue @psakalo @Havret @andys8 @Gelio @cpepin +/types/react-table/ @ggascoigne @stramel @gargroh @riceboyler +/types/react-table/v6/ @royxue @psakalo @Havret @andys8 @Gelio @cpepin @iamandrewluca /types/react-table-filter/ @gjsln /types/react-tabs/ @yu-i9 @danez @Equationist /types/react-tabs-redux/ @ntnbrtnkv -/types/react-tag-autocomplete/ @jlismore @Rahul-Sagore +/types/react-tag-autocomplete/ @jlismore @Rahul-Sagore @MaxCilauro /types/react-tag-input/ @Ogglas @jankarres @matthewberryman @visionsofparadise /types/react-tagcloud/ @wassname /types/react-tagsinput/ @mykter @chardos /types/react-tap-event-plugin/ @mxl -/types/react-test-renderer/ @arvitaly @lochbrunner @johnnyreilly @jgoz @Jessidhia +/types/react-test-renderer/ @arvitaly @lochbrunner @johnnyreilly @jgoz @Jessidhia @maddhruv /types/react-test-renderer/v15/ @arvitaly @lochbrunner @lochbrunner @johnnyreilly /types/react-text-mask/ @guilhermehubner @cavarzan @needpower /types/react-text-truncate/ @adriantoine @@ -4929,6 +5114,7 @@ /types/react-treeview/ @janslow /types/react-truncate/ @mattvperry /types/react-twitter-auth/ @paulfasola @loginwashere +/types/react-typing-animation/ @hmajid2301 /types/react-typist/ @shawnkoon /types/react-ultimate-pagination/ @BenLorantfy /types/react-user-tour/ @ccancellieri @@ -4939,7 +5125,7 @@ /types/react-virtualized-auto-sizer/ @otofu-square /types/react-virtualized-select/ @seansfkelley /types/react-visibility-sensor/ @JRasmusBm @gcangussu -/types/react-wait/ @ifiokjr +/types/react-wait/ @ifiokjr @pwlmaciejewski /types/react-weui/ @tairan /types/react-widgets/ @rogierschouten @sanyatuning @frodehansen2 @r3nya @MBillemaz @georg94 @tzarger @vegtelenseg @calebergh @rmckeel @jankalfus /types/react-widgets-moment/ @dawnmist @@ -4969,12 +5155,12 @@ /types/readmore-js/ @AntonDemarczyk /types/reapop/ @Barrokgl /types/rebass/ @rhysd @ryee-dev @jamesmckenzie @gretzky @angusfretwell @orzarchi @ilaiwi -/types/rebass__forms/ @zinozzino +/types/rebass__forms/ @zinozzino @trumanshuck /types/rebass__grid/ @antonvasin @vittorio @lhache @lavoaster @autoric @akameco /types/rebind-host/ @tyler-johnson /types/recaptcha2/ @l-jonas /types/recase/ @18steps -/types/recharts/ @rapmue @royxue @ZheyangSong @richbai90 @caspeco-dan @pkeuter @jrsaunde @crusectrl @apalugniok @RobertStigsson @kousaku-maron @iflp @veddermatic @g07cha @gndelia @dimitropoulos @eliotball @vkentta +/types/recharts/ @rapmue @royxue @ZheyangSong @richbai90 @caspeco-dan @pkeuter @jrsaunde @crusectrl @apalugniok @RobertStigsson @kousaku-maron @iflp @veddermatic @g07cha @gndelia @dimitropoulos @eliotball @vkentta @fcaylus /types/recharts-scale/ @johnnyreilly /types/rechoir/ @BendingBender /types/recluster/ @dex4er @@ -4984,8 +5170,9 @@ /types/recorder-js/ @higuri /types/recursive-readdir/ @elisee @MicahZoltu /types/recursive-readdir/v1/ @elisee -/types/redis/ @soywiz @CodeAnimal @MugeSo @UppaJung @Rokt33r @43081j @barnski @1pete @blablapolicja @ferrantejake @OpesanyaAdebayo +/types/redis/ @soywiz @CodeAnimal @MugeSo @UppaJung @Rokt33r @43081j @barnski @1pete @blablapolicja @ferrantejake @OpesanyaAdebayo @nwtgck @tdebarochez /types/redis-errors/ @43081j +/types/redis-info/ @Yurickh /types/redis-mock/ @BendingBender /types/redis-rate-limiter/ @westy92 @nodify-at /types/redis-scripto/ @westy92 @@ -5007,11 +5194,11 @@ /types/redux-devtools-log-monitor/ @mc-petry /types/redux-doghouse/ @BendingBender /types/redux-duck/ @cyberixae -/types/redux-first-router/ @Valbrand @viggyfresh @janb87 @corydeppen @jscinoz @surgeboris @geirsagberg @hedgerh @adam1658 +/types/redux-first-router/ @Valbrand @viggyfresh @janb87 @corydeppen @jscinoz @surgeboris @geirsagberg @hedgerh @adam1658 @macobo /types/redux-first-router-link/ @janb87 /types/redux-first-router-restore-scroll/ @icopp /types/redux-first-routing/ @tlaziuk -/types/redux-form/ @aikoven @LKay @bancek @alsiola @tehbi4 @huwmartin @m-b-davis @ethanresnick @maddijoyce @smifun @mshaaban088 @esetnik @bwlt @mrsekut @abemedia +/types/redux-form/ @aikoven @LKay @bancek @tehbi4 @huwmartin @m-b-davis @ethanresnick @maddijoyce @smifun @mshaaban088 @esetnik @bwlt @mrsekut @abemedia /types/redux-form/v7/ @carsonf @aikoven @LKay @bancek @alsiola @tehbi4 @huwmartin @ethanresnick @maddijoyce @smifun @mshaaban088 @esetnik /types/redux-form/v6/ @carsonf @aikoven @LKay @bancek @mshaaban088 /types/redux-form/v5/ @reggino @@ -5061,6 +5248,7 @@ /types/reflux/ @mauricedb @LiangZugeng /types/reflux/v0/ @mauricedb /types/refractor/ @ifiokjr +/types/refresh-fetch/ @AlexLisenkov @ppbraam /types/registry-auth-token/ @mauricedb @LiangZugeng /types/regression/ @MattiasMartens /types/rehype-react/ @adriankremer @@ -5068,7 +5256,7 @@ /types/relaxed-json/ @18steps /types/relay-compiler/ @n1ru4l @alloy /types/relay-config/ @DefinitelyTyped -/types/relay-runtime/ @voxmatt @alloy @ckknight @renanmav +/types/relay-runtime/ @voxmatt @alloy @ckknight @renanmav @Stephen2 @mrtnzlml /types/relay-test-utils/ @renanmav /types/rellax/ @shermendev /types/remarkable/ @makepost @chigix @bios21 @@ -5090,7 +5278,7 @@ /types/request-promise-native/ @gustavohenke @mastermatt @swashcap /types/request-stats/ @BendingBender /types/requestidlecallback/ @hax @VladimirGrenaderov @maxbogus @teramotodaiki -/types/requestretry/ @EricByers @trainerbill @baaka-ani +/types/requestretry/ @EricByers @trainerbill @baaka-ani @elch-yan /types/require-dir/ @weekens /types/require-directory/ @Igmat /types/require-from-string/ @ikatyang @@ -5151,8 +5339,6 @@ /types/rmfr/ @pluma /types/rn-app-upgrade/ @taoqf /types/rn-fetch-blob/ @pengcao1 -/types/roads/ @dancespiele -/types/roads-server/ @dancespiele /types/roarr/ @psaxton /types/robust-point-in-polygon/ @crashspringfield /types/rocksdb/ @MeirionHughes @danwbyrne @@ -5170,6 +5356,7 @@ /types/rollup-plugin-sourcemaps/ @eoin-obrien /types/rollup-plugin-url/ @me /types/rollup-plugin-visualizer/ @fobdy @maxbogus +/types/rollup__plugin-virtual/ @ahum /types/roman-numerals/ @pluma /types/ronomon__crypto-async/ @BendingBender /types/rosie/ @abner @subvertallchris @abukurov @adam187 @@ -5180,7 +5367,7 @@ /types/rox-node/ @g-guirado /types/rox-react-native/ @ahanriat @g-guirado @glenna /types/royalslider/ @csrakowski @sKopheK -/types/rpio/ @DominikPalo @Pencl +/types/rpio/ @DominikPalo @Pencl @mhoffmeyerDC /types/rrc/ @DeividasBakanas /types/rsmq-worker/ @MugeSo /types/rsocket-core/ @adrianhopebailie @olegdokuka @@ -5195,6 +5382,7 @@ /types/rsync/ @philippstucki /types/rtl-detect/ @imprevo /types/rtlcss/ @adamzerella +/types/rtp-parser/ @matthew-smith /types/rtree/ @oefirouz /types/run-parallel/ @mrmlnc /types/run-parallel-limit/ @mrmlnc @@ -5225,6 +5413,7 @@ /types/safe-compare/ @bevalorous /types/safe-json-stringify/ @ericbyers /types/safe-regex/ @mhegazy +/types/safe-timers/ @ksocha /types/safer-buffer/ @ffflorian /types/sails.io.js/ @arvitaly /types/sailthru-client/ @smolnikov @@ -5252,13 +5441,16 @@ /types/sat/ @omni360 /types/satnav/ @DotNetNerd /types/save-csv/ @FrankBrullo -/types/sax/ @vsiao @evert @djcsdy +/types/sax/ @vsiao @evert @djcsdy @fvanderveen +/types/sax-stream/ @mjwwit /types/saywhen/ @SeanSobey /types/sbd/ @thatcort @carolineartz /types/sc-auth/ @DanielRose /types/sc-broker/ @DanielRose /types/sc-broker-cluster/ @DanielRose +/types/sc-broker-cluster/v6/ @DanielRose /types/sc-channel/ @DanielRose +/types/sc-channel/v1/ @DanielRose /types/sc-errors/ @DanielRose /types/sc-framework-health-check/ @DanielRose /types/sc-hot-reboot/ @DanielRose @@ -5269,6 +5461,7 @@ /types/schema-registry/ @bonzzy /types/schwifty/ @ozum /types/scoped-http-client/ @mattvperry @rianadon +/types/scrambo/ @padarom /types/screeps/ @MarkoSulamagi @NhanHo @bryanbecker @resir014 @Arcath @dmarcuse @pyrodogg @kotarou /types/screeps-profiler/ @ramblurr /types/script-ext-html-webpack-plugin/ @davecardwell @@ -5276,6 +5469,7 @@ /types/scroll/ @romic /types/scroll-into-view/ @zivni @Thibaut-Fatus /types/scroll-to-element/ @kirillurgant +/types/scrollbooster/ @chrisneven /types/scroller/ @haskellcamargo /types/scrollparent/ @Sintifo /types/scrollreveal/ @Davidblkx @@ -5303,7 +5497,7 @@ /types/selectables/ @renjfk /types/selectize/ @adidahiya @naBausch /types/selenium-standalone/ @SanderDeWaal1992 -/types/selenium-webdriver/ @BillArmstrong @Kuniwak @cnishina @SupernaviX @bendxn @oddui @beta-vulgaris @Dzenly @thislooksfun +/types/selenium-webdriver/ @BillArmstrong @Kuniwak @cnishina @SupernaviX @bendxn @oddui @beta-vulgaris @Dzenly /types/selenium-webdriver/v3/ @BillArmstrong @Kuniwak @cnishina @SupernaviX @bendxn @oddui /types/selenium-webdriver/v2/ @BillArmstrong @Kuniwak @cnishina /types/semantic-release/ @lgaticaq @djcsdy @@ -5330,8 +5524,11 @@ /types/semantic-ui-visibility/ @leonard-thieu /types/semaphore/ @mhfrantz @Alorel /types/semver/ @Bartvds @BendingBender @LucianBuzzo @ajafff @ExE-Boss +/types/semver/v6/ @Bartvds @BendingBender @LucianBuzzo @ajafff @ExE-Boss /types/semver-compare/ @vincekovacs @LinusU /types/semver-sort/ @LogvinovLeon +/types/semver-stable/ @JamieMagee +/types/semver-utils/ @JamieMagee /types/sencha_touch/ @brian428 /types/send/ @MikeJerred /types/sendmail/ @saostad @@ -5344,7 +5541,8 @@ /types/sequencify/ @npenin /types/sequester/ @Strate /types/serialize-javascript/ @lith-light-g @Pochodaydayup -/types/serialport/ @codefoster @apearson @cinderblock +/types/serialport/ @codefoster @apearson @cinderblock @doug-a-brunner +/types/serialport/v7/ @codefoster @apearson @cinderblock /types/serialport/v6/ @codefoster @apearson /types/serialport/v4/ @codefoster /types/serve-favicon/ @urossmolnik @@ -5354,9 +5552,11 @@ /types/server/ @sant123 @iddan @DazSanchez /types/server-destroy/ @gyszalai /types/serverless/ @hassankhan @JonathanWilbur @a-pavlenko +/types/serverless-jest-plugin/ @Gaelan /types/service-worker-mock/ @remcohaszing /types/servicenow/ @bryceg /types/servicenow-london/ @johncaruso @bryceg @grgisme @emyrold @thisnameissoclever @ayeboah +/types/serviceworker-webpack-plugin/ @remcohaszing /types/session-file-store/ @blendsdk @rokt33r /types/set-cookie-parser/ @nickp10 @ilyaztsv /types/set-interval-async/ @ealmansi @@ -5374,9 +5574,9 @@ /types/shallowequal/ @seansfkelley @BendingBender @arndissler /types/shallowequal/v0/ @seansfkelley /types/shapefile/ @DenisCarriere @Thw0rted -/types/sharedb/ @soney @ericyhwang +/types/sharedb/ @soney @ericyhwang @pxpeterxu /types/sharedworker/ @nakakura @mboughaba -/types/sharepoint/ @gandjustas @andrei-markeev @baywet @teroarvola @dennispg @SPWizard01 +/types/sharepoint/ @gandjustas @andrei-markeev @teroarvola @dennispg @SPWizard01 @betlgtu /types/sharp/ @lith-light-g @wooseopkim @BTOdell @JamieWoodbury @Fdebijl /types/shasum/ @TeamworkGuy2 /types/shebang-command/ @BendingBender @@ -5385,6 +5585,7 @@ /types/shell-quote/ @jason0x43 @CameronDiver /types/shelljs/ @nikeee @voy @gkalpak @pheromonez @aldafu @ExE-Boss @msanguineti /types/shelljs-exec-proxy/ @qlonik +/types/shevyjs/ @nonAlgebraic /types/shimmer/ @kjin /types/shipit-cli/ @cyrilschumacher /types/shipit-utils/ @cyrilschumacher @@ -5416,6 +5617,7 @@ /types/simpl-schema/ @arichter83 @Qkramer @deskoh @nicu-chiciuc /types/simple-assign/ @NoHomey /types/simple-cw-node/ @vvakame +/types/simple-icons/ @ericcornelissen /types/simple-lru/ @NN--- /types/simple-mock/ @leonyu /types/simple-oauth2/ @mad-mike @troy-lamerton @netux @LinusU @@ -5425,12 +5627,14 @@ /types/simple-url-cache/ @a-lucas /types/simple-websocket/ @dex4er /types/simple-xml/ @notVitaliy -/types/simplebar/ @gregonnet @leonard-thieu +/types/simplebar/ @val-o @gregonnet @leonard-thieu +/types/simplebar/v2/ @gregonnet @leonard-thieu /types/simplebar/v1/ @gregonnet @leonard-thieu /types/simplecrawler/ @MutterPedro /types/simplemde/ @Scalesoft /types/simplesmtp/ @rogierschouten /types/simplestorage.js/ @axelcostaspena @mxl +/types/simulant/ @ecraig12345 /types/single-line-log/ @ffflorian /types/single-spa-react/ @Garrett-Smith-iq @chrisdopuch /types/sinon/ @mrbigdog2u @rationull @lumaxis @nicojs @43081j @joshuakgoldberg @gjednaszewski @johnjesse @alecf @SimonSchick @bergundy @@ -5442,11 +5646,13 @@ /types/sinon-mongoose/ @stevehipwell /types/sinon-stub-promise/ @vintem @tstackhouse /types/sinon-test/ @mummybot +/types/sinonjs__fake-timers/ @Nemo157 @joshuakgoldberg @rogierschouten @zyishai @remcohaszing /types/sipml/ @chookies /types/sitemap2/ @shundy /types/six-runtime/ @493636333 +/types/sizeof/ @unindented /types/sizzle/ @leonard-thieu -/types/sjcl/ @Evgenus +/types/sjcl/ @Evgenus @mizvyt /types/skatejs/ @Hotell /types/sketchapp/ @manekinekko @shikanime /types/ski/ @AyaMorisawa @@ -5472,12 +5678,14 @@ /types/slocket/ @BendingBender /types/slonik/ @sebald @mmkal /types/slug/ @mhegazy +/types/sm-crypto/ @Moonisky /types/smart-fox-server/ @ChanceM /types/smart-truncate/ @oyalhi /types/smartwizard/ @stankurek /types/smooth-scroll/ @andreiho @grgr-dkrk /types/smoothscroll-polyfill/ @kryops /types/smpte-timecode/ @hados99 +/types/smshelper/ @matthiez /types/smtp-server/ @markisme @Taisiias @dex4er /types/smtp-server/v1/ @markisme @Taisiias /types/smtpapi/ @a-morales @@ -5501,6 +5709,7 @@ /types/socketcluster/ @DanielRose /types/socketcluster-client/ @DanielRose /types/socketcluster-server/ @DanielRose +/types/socketcluster-server/v14/ @DanielRose /types/socketio-jwt/ @ehallander9591 /types/socketio-jwt-auth/ @codeanimal /types/socketio-wildcard/ @BendingBender @@ -5516,6 +5725,7 @@ /types/sort-array/ @mrmlnc /types/sort-object-keys/ @forivall /types/sortablejs/ @Maw-Fox @maartenstaa @waynevanson +/types/sorted-object/ @Richienb /types/sortobject/ @SanderDeWaal1992 /types/soundmanager2/ @elton2048 /types/soupbintcp/ @jewbre @@ -5544,7 +5754,7 @@ /types/splitpanes/ @noonhorse /types/splunk-bunyan-logger/ @bricka /types/splunk-logging/ @bricka -/types/spotify-api/ @skovmand @Stadly +/types/spotify-api/ @skovmand @Stadly @piksel /types/spotify-node-applescript/ @panz3r /types/spotify-web-api-node/ @Stadly /types/spotify-web-playback-sdk/ @Festify @mraerino @NeoLegends @deini @hanna-becker @@ -5566,7 +5776,7 @@ /types/ssdeep/ @atd-schubert /types/ssh-key-decrypt/ @BendingBender /types/ssh2/ @tkQubo @rbuckton @wrboyce @lucasmotta -/types/ssh2-sftp-client/ @igrayson @ascariandrea @kartik2406 @viamuli @orblazer @gbhmt @builtbylane @loru88 +/types/ssh2-sftp-client/ @igrayson @ascariandrea @kartik2406 @viamuli @orblazer @gbhmt @builtbylane @loru88 @sgalizia /types/ssh2-streams/ @rbuckton /types/sshpk/ @mabels /types/ssri/ @huan086 @ExE-Boss @@ -5578,8 +5788,10 @@ /types/stampit/v3/ @koresar @lummish /types/stampit/v2/ @koresar /types/stamplay-js-sdk/ @ridermansb +/types/standard-engine/ @peterblazejewicz /types/standard-error/ @roblabat /types/standard-http-error/ @roblabat +/types/standard-version/ @JasonHK /types/starwars-names/ @claasahl /types/stat-mode/ @BendingBender /types/staticmaps/ @olivierkamers @@ -5602,20 +5814,20 @@ /types/stompit/ @DanielRose /types/stompjs/ @jimic @Dr4k4n /types/stoppable/ @EricByers @jplusje +/types/stopword/ @ricosandyca /types/storage-helper/ @ajafff /types/store/ @vbortone @harry0000 @Ky6uk @igl00 @JasonHK /types/storybook-addon-jsx/ @jameslnewell /types/storybook-react-router/ @alexlomm /types/storybook-readme/ @lonyele /types/storybook__addon-info/ @mkornblum @fyrkant @RunningCoderLee -/types/storybook__addon-storyshots/ @bradleyayers @Yama-Tomo -/types/storybook__addon-storyshots-puppeteer/ @Yama-Tomo /types/storybook__polymer/ @joscha @wapgear @dandean @ryuhhnn /types/strange/ @wanganjun /types/stream-array/ @Tyler-Murphy /types/stream-buffers/ @Jason3S /types/stream-chain/ @uhop /types/stream-csv-as-json/ @uhop +/types/stream-demux/ @DanielRose /types/stream-each/ @djcsdy /types/stream-fork/ @mjwwit /types/stream-json/ @uhop @@ -5646,10 +5858,10 @@ /types/string_score/ @marcinporebski /types/stringify-object/ @khoomeister /types/strip-color/ @BendingBender -/types/stripe/ @wjohnsto @codeanimal @sampsonjoliver @LinusU @brannon @kkamperschroer @starhoshi @bruun @galtalmor @htunnicliff @squirly @tzarger @yultyyev @cpsoinos @adamduren @saranshkataria @0xJoKe @delianides @gokulchandra @viralpickaxe @chrisleck @opticalgenesis @spacetag @vaskevich @dhaspden @esetnik @schfkt @ChrisZieba @pushplay @stilborg @jvik @richardwardza @Aseelaldallal @collin-pham @TimonVS @kamiyo +/types/stripe/ @wjohnsto @codeanimal @sampsonjoliver @LinusU @brannon @kkamperschroer @starhoshi @galtalmor @htunnicliff @squirly @tzarger @yultyyev @cpsoinos @adamduren @saranshkataria @0xJoKe @delianides @gokulchandra @viralpickaxe @chrisleck @opticalgenesis @spacetag @vaskevich @dhaspden @esetnik @schfkt @ChrisZieba @pushplay @stilborg @jvik @richardwardza @Aseelaldallal @collin-pham @TimonVS @kamiyo /types/stripe-checkout/ @cgwrench /types/stripe-v2/ @ejsmith @amritk @adamcmiel @jleider @galuszkak -/types/stripe-v3/ @ejsmith @amritk @adamcmiel @jleider @galuszkak @slangeder @marlosin @ttmarek @kimehrenpohl @KrishnaPravin @hirochachacha +/types/stripe-v3/ @ejsmith @amritk @adamcmiel @jleider @galuszkak @slangeder @marlosin @ttmarek @kimehrenpohl @KrishnaPravin @hirochachacha @paustint @ksol @matsuby /types/stripejs/ @RobinvanTienhoven @mattferderer /types/strman/ @adambrgmn /types/strong-cluster-control/ @shuntksh @@ -5661,12 +5873,13 @@ /types/struct/ @benallfree /types/structured-source/ @azu /types/stubby/ @dex4er -/types/styled-components/ @Igorbek @Igmat @lavoaster @Jessidhia @jkillian @eps1lon @flavordaaave @wagerfield @Lazyuki +/types/style-search/ @peterblazejewicz +/types/styled-components/ @Igorbek @Igmat @lavoaster @Jessidhia @jkillian @eps1lon @flavordaaave @wagerfield @Lazyuki @mgoszcz2 /types/styled-components/v3/ @Igorbek @Igmat /types/styled-jsx/ @R1ZZU /types/styled-react-modal/ @Lavoaster @gperl27 -/types/styled-system/ @maxdeviant @phobon @zephraph @damassi @alloy @maoueh @lavoaster @jschuler @adam187 @gretzky @chrislopresto @peduarte @Dhalton @elliotbonneville @jackcaldwell @eliseumds @craga89 @HipsterBrown -/types/styled-system__css/ @sebald @sztobar +/types/styled-system/ @phobon @zephraph @damassi @alloy @maoueh @lavoaster @jschuler @adam187 @gretzky @chrislopresto @peduarte @Dhalton @elliotbonneville @jackcaldwell @eliseumds @craga89 @HipsterBrown @hammadj @maddhruv @cherewaty +/types/styled-system__css/ @sebald @sztobar @RyanTheAllmighty /types/styled-system__should-forward-prop/ @tpict /types/styled-system__theme-get/ @Jerry-Hong /types/styled-theming/ @ArjanJ @hieuhlc @tinynumbers @@ -5693,6 +5906,7 @@ /types/superagent-bunyan/ @bricka /types/superagent-no-cache/ @mxl /types/superagent-prefix/ @mxl +/types/superagent-proxy/ @dwieeb /types/supercluster/ @DenisCarriere @Manc /types/supertest/ @varju @pietu /types/supertest-as-promised/ @tkrotoff @@ -5709,7 +5923,7 @@ /types/svg4everybody/ @BendingBender @bryceosterhaus /types/svgjs.draggable/ @LiFeleSs /types/svgjs.resize/ @jkevingutierrez -/types/svgo/ @bradleyayers @giladgray @Aankhen @jankarres @gavingregory +/types/svgo/ @bradleyayers @giladgray @Aankhen @jankarres @gavingregory @peterblazejewicz /types/svgr__rollup/ @fobdy @maxbogus /types/sw-precache/ @JounQin /types/sw-precache-webpack-plugin/ @JounQin @@ -5723,10 +5937,11 @@ /types/swagger-restify-mw/ @micmro /types/swagger-sails-hook/ @micmro /types/swagger-schema-official/ @mohsen1 @bsouthga @nimerritt @mauriedo @XVincentX +/types/swagger-stats/ @connorjayfitzgerald /types/swagger-tools/ @bricka /types/swagger-ui-dist/ @haowen737 @brycematheson1234 /types/swagger-ui-express/ @dmitryrogozhny @ffflorian -/types/swagger-ui-react/ @VictoriaGreen93 +/types/swagger-ui-react/ @VictoriaGreen93 @fernando-msj /types/swaggerize-express/ @mugeso @nickmorton /types/swe-validation/ @hjalmers /types/swfobject/ @rou @@ -5743,6 +5958,7 @@ /types/sybase-promised/ @sergey12313 /types/sylvester/ @StephaneAlie /types/sylvester-es6/ @briwa @StephaneAlie +/types/symbol-tree/ @ExE-Boss /types/symlink-or-copy/ @BendingBender /types/synaptic/ @ToastHawaii @austincummings /types/syntax-error/ @TeamworkGuy2 @@ -5755,20 +5971,21 @@ /types/tableau/ @protip /types/tableify/ @forivall /types/tablesorter/ @manuth -/types/tabtab/ @vojtechhabarta @kamontat +/types/tabtab/ @vojtechhabarta @kamontat @ExE-Boss /types/tabulator/ @euginio /types/tabulator-tables/ @jojoshua /types/tail/ @spacejack @devindavies /types/tampermonkey/ @silverwzw @nikolay-borzov /types/tapable/ @e-cloud @johnnyreilly /types/tapable/v0/ @e-cloud -/types/tape/ @Bartvds @sodatea @DennisSchwartz @mikehenrty @rostrowski +/types/tape/ @Bartvds @sodatea @DennisSchwartz @mikehenrty @rostrowski @ljharb /types/tape-async/ @ExE-Boss /types/tape-catch/ @ExE-Boss /types/tape-promise/ @ExE-Boss /types/tar/ @SomaticIT @connor4312 /types/tar-fs/ @Umoxfo -/types/tar-stream/ @glicht +/types/tar-stream/ @glicht @peterblazejewicz +/types/tar-stream/v1/ @glicht /types/tarantool-driver/ @zharkov-eu /types/targz/ @alexandercurtis /types/task-graph-runner/ @mgroenhoff @@ -5785,10 +6002,12 @@ /types/terminal-menu/ @aravindarun /types/tern/ @nkappler /types/terser-webpack-plugin/ @Danscho +/types/teslajs/ @fcastilloec /types/test-console/ @roberto @guidoux @gbmoretti /types/test-listen/ @stephenmathieson /types/testing-library__cypress/ @aaronmcadam @bastibuck @NoriSte @wKovacs64 @existentialism @airato @simjes /types/testing-library__dom/ @alexkrolick @kentcdodds @eps1lon @weyert @reyronald @wKovacs64 @wezleytsai +/types/testing-library__jest-dom/ @gnapse @jgoz @smacpherson64 /types/testing-library__react/ @alexkrolick @kentcdodds @eps1lon @weyert @ifiokjr @danieljcafonso /types/testing-library__react-hooks/ @mpeyper @sarahdayan /types/testing-library__user-event/ @whtsky @weyert @@ -5807,8 +6026,8 @@ /types/textversionjs/ @aaronosher /types/texzilla/ @m93a /types/tgfancy/ @Dabolus -/types/theme-ui/ @erikdstock @ifiokjr @sbardian @pomber @wKovacs64 @prateekkathal -/types/theme-ui__components/ @hasparus +/types/theme-ui/ @erikdstock @ifiokjr @sbardian @pomber @wKovacs64 @prateekkathal @hasparus +/types/theme-ui__components/ @hasparus @kripod /types/then-eos/ @seangenabe /types/theo/ @petekp @laitine /types/thepiratebay/ @jsorrell @@ -5856,6 +6075,8 @@ /types/to-json-schema/ @forivall /types/to-markdown/ @SuperPaintman /types/to-snake-case/ @LogvinovLeon +/types/to-space-case/ @Richienb +/types/to-title-case/ @Richienb /types/to-title-case-gouch/ @stpettersens /types/toastr/ @borisyankov /types/tocktimer/ @evanshortiss @@ -5913,11 +6134,11 @@ /types/turndown/ @sergey-zhidkov /types/tus-js-client/ @kevhiggins @Acconut /types/tv4/ @Bartvds @psnider -/types/tween.js/ @Amos47 @sunetos @jzarnikov @alexburner +/types/tween.js/ @Amos47 @sunetos @jzarnikov @alexburner @olafurkarl /types/tweenjs/ @evilangelist @jcyuan /types/tweezer.js/ @praxxis /types/twemoji/ @coderbyheart -/types/twig/ @soywiz @enko @mtizziani +/types/twig/ @soywiz @enko @mtizziani @dmelcer9 /types/twilio/ @nickiannone @ashleybrener @CatGuardian /types/twilio-common/ @gatimus /types/twilio-video/ @minddocdev @darioblanco @ktsn @ben8p @nifled @@ -5942,6 +6163,7 @@ /types/typography-breakpoint-constants/ @goblindegook /types/typpy/ @BendingBender /types/tz-format/ @samverschueren +/types/tz-lookup/ @uwinkelvos /types/tz-offset/ @RMHonor /types/ua-parser-js/ @superduper @legendecas @MeLlamoPablo /types/uglify-es/ @alan-agius4 @@ -5951,11 +6173,12 @@ /types/uglifyjs-webpack-plugin/ @vajkayrene /types/ui-grid/ @btesser @joeskeen @pbojanczyk /types/ui-router-extras/ @mputters @marcel-k @LaserUnicorns -/types/ui-select/ @nkovacic +/types/ui-select/ @nkovacic @akwiatek /types/uid-generator/ @TheEmrio @kylechine /types/uid-safe/ @geoffreak /types/uid2/ @levibostian -/types/uikit/ @giovannicandido @s0x +/types/uikit/ @giovannicandido @s0x @pcdotfan +/types/uikit/v2/ @giovannicandido @s0x /types/uinput/ @Fidge123 /types/uint32/ @ffflorian /types/ultra-strftime/ @dex4er @@ -5982,20 +6205,22 @@ /types/unity-webapi/ @jmvrbanac /types/universal-analytics/ @Bartvds @DarkerTV /types/universal-cookie/ @tomi +/types/universalify/ @Richienb /types/unl-core/ @u-n-l /types/unorm/ @chbrown /types/unsplash-js/ @markupcode /types/unused-files-webpack-plugin/ @VladimirGrenaderov @maxbogus /types/unzip/ @coding2012 /types/unzipper/ @s73obrien @natemara @bartje321 @kenhuman -/types/update-notifier/ @vvakame @nchen63 @bitjson @grinich +/types/update-notifier/ @vvakame @nchen63 @bitjson @grinich @peterblazejewicz +/types/update-notifier/v2/ @vvakame @nchen63 @bitjson @grinich /types/update-notifier/v1/ @vvakame @nchen63 /types/uploadcare/ @jineshshah36 /types/upng-js/ @plantain-00 @pineapplemachine /types/uppercamelcase/ @plantain-00 /types/urbanairship-cordova/ @Justin-Credible /types/uri-templates/ @Bartvds @barnski -/types/urijs/ @RodneyJT @xt0rted @petejohanson @ljqx @teamworkguy2 @Akuukis +/types/urijs/ @RodneyJT @xt0rted @petejohanson @ljqx @teamworkguy2 @Akuukis @marcelltoth /types/uritemplate/ @teyc @rubensworks /types/urix/ @BendingBender /types/url-assembler/ @wolfgang42 @@ -6031,11 +6256,13 @@ /types/utf8/ @zelein /types/utif/ @smajl @nkprince007 @massic80 /types/util-deprecate/ @BendingBender -/types/util.promisify/ @adamvoss @dex4er +/types/util.promisify/ @adamvoss @dex4er @ExE-Boss @ljharb /types/utils-merge/ @chrootsu /types/utm/ @civilizeddev @JonasTriki -/types/uuid/ @iamolivinius @felipeochoa @cjbarth @rauno56 +/types/uuid/ @iamolivinius @felipeochoa @cjbarth @rauno56 @LinusU @ctavan +/types/uuid/v3/ @iamolivinius @felipeochoa @cjbarth @rauno56 @LinusU /types/uuid-1345/ @mugeso +/types/uuid-apikey/ @benallfree /types/uuid-js/ @mhegazy /types/uuid-parse/ @screendriver /types/uuid-validate/ @HiromiShikata @@ -6059,6 +6286,7 @@ /types/vary/ @BendingBender /types/vast-client/ @jgainfort @kobawan /types/vault-auth-aws/ @nmcginn +/types/vcards-js/ @benallfree /types/vcf/ @mcpar-land /types/vec2/ @Nielio /types/vec3/ @xstoudi @@ -6091,9 +6319,10 @@ /types/vision/ @jasonswearingen @AJamesPhillips @lenovouser /types/vision/v4/ @jasonswearingen @AJamesPhillips /types/vitalsigns/ @cyrilschumacher -/types/vivus/ @DanielRosenwasser @lekhmanrus +/types/vivus/ @DanielRosenwasser @lekhmanrus @shuta13 /types/vkbeautify/ @sch3lp /types/vmap/ @jgainfort +/types/vndb/ @PragunSaini /types/vnu-jar/ @Umoxfo /types/voca/ @pine /types/void-elements/ @ajafff @@ -6109,6 +6338,7 @@ /types/vue-clickaway/ @khoanguyen96 /types/vue-color/ @mildful /types/vue-datetime/ @olavorn +/types/vue-feather-icons/ @potato4d /types/vue-ls/ @someone1 @lexasss /types/vue-markdown/ @neodon /types/vue-moment/ @domschmidt @@ -6126,6 +6356,7 @@ /types/w3c-image-capture/ @cosium /types/w3c-screen-orientation/ @kenchris /types/w3c-web-usb/ @larsgk @thegecko +/types/w3c-xmlserializer/ @ExE-Boss /types/wait-on/ @ifiokjr /types/wait-promise/ @paulmelnikow /types/waitme/ @totpero @@ -6137,7 +6368,7 @@ /types/wanakana/ @chooban /types/warning/ @cvle /types/watch/ @soywiz @Perlmint -/types/watchify/ @TeamworkGuy2 +/types/watchify/ @TeamworkGuy2 @peterblazejewicz /types/watchpack/ @e-cloud /types/waterline/ @arvitaly /types/wav/ @MasterOdin @@ -6150,7 +6381,7 @@ /types/weak-napi/ @lamhieu-vk /types/weapp-api/ @vargeek @pbestz /types/web-animations-js/ @kritollm -/types/web-bluetooth/ @urish +/types/web-bluetooth/ @urish @thegecko /types/web-push/ @paullessing /types/web-resource-inliner/ @BendingBender /types/web3-provider-engine/ @LogvinovLeon @@ -6165,8 +6396,8 @@ /types/webicon/ @manuth /types/webidl-conversions/ @ExE-Boss /types/webidl2/ @saschanaz -/types/webmidi/ @lostfictions -/types/webpack/ @tkqubo @bumbleblym @bcherny @tommytroylin @mohsen1 @jcreamer898 @alan-agius4 @elliottsj @jason0x43 @dennispg @christophehurpeau @ZSkycat @johnnyreilly @rwaskiewicz @kuehlein @grgur @rubenspgcavalcante @andersk @ofhouse +/types/webmidi/ @DefinitelyTyped +/types/webpack/ @tkqubo @bumbleblym @bcherny @tommytroylin @mohsen1 @jcreamer898 @alan-agius4 @elliottsj @jason0x43 @dennispg @christophehurpeau @ZSkycat @johnnyreilly @rwaskiewicz @kuehlein @grgur @rubenspgcavalcante @andersk @ofhouse @danielthank /types/webpack/v3/ @tkqubo @bumbleblym @bcherny @tommytroylin @mohsen1 @jcreamer898 @alan-agius4 @elliottsj @jason0x43 @christophehurpeau @rwaskiewicz @kuehlein /types/webpack-assets-manifest/ @FranklinWhale /types/webpack-blocks/ @maxbogus @@ -6184,19 +6415,22 @@ /types/webpack-bundle-analyzer/ @kryops @VladimirGrenaderov @maxbogus /types/webpack-chunk-hash/ @mtraynham /types/webpack-cleanup-plugin/ @malj +/types/webpack-concat-plugin/ @peterblazejewicz /types/webpack-config-utils/ @hotell -/types/webpack-dev-middleware/ @bumbleblym @reduckted @chrisabrams +/types/webpack-dev-middleware/ @bumbleblym @reduckted @chrisabrams @peterblazejewicz +/types/webpack-dev-middleware/v2/ @bumbleblym @reduckted @chrisabrams /types/webpack-dev-middleware/v1/ @bumbleblym @reduckted -/types/webpack-dev-server/ @maestroh @daveparslow @ZheyangSong @alan-agius4 @arturovt @davecardwell @dobogo @billy-le @chrispaterson +/types/webpack-dev-server/ @maestroh @daveparslow @ZheyangSong @alan-agius4 @arturovt @davecardwell @dobogo @billy-le @chrispaterson @peterblazejewicz /types/webpack-dotenv-plugin/ @kryops /types/webpack-env/ @use-strict @rhonsby +/types/webpack-error-notification/ @peterblazejewicz /types/webpack-fail-plugin/ @deevus -/types/webpack-hot-client/ @rynclark @ZSkycat +/types/webpack-hot-client/ @rynclark @ZSkycat @barm /types/webpack-hot-middleware/ @bumbleblym @icylace @chrisabrams @iliyaZelenko /types/webpack-manifest-plugin/ @r3nya @monsonjeremy /types/webpack-merge/ @deevus @mtraynham /types/webpack-merge/v0/ @deevus -/types/webpack-node-externals/ @mtraynham @MrSpoocy +/types/webpack-node-externals/ @mtraynham @MrSpoocy @peterblazejewicz /types/webpack-notifier/ @bumbleblym /types/webpack-plugin-serve/ @PlayMa256 /types/webpack-serve/ @rynclark @Jokcy @ZSkycat @@ -6224,7 +6458,7 @@ /types/weighted/ @ccitro /types/weighted-random-object/ @mlc /types/weixin-app/ @taoqf @AlexStacker @Jimexist -/types/wellknown/ @yairtawil +/types/wellknown/ @davodesign84 @yairtawil /types/wepy/ @Jimexist /types/wepy-redux/ @Jimexist /types/whatwg-mimetype/ @petejohanson @@ -6254,12 +6488,13 @@ /types/winreg/ @RX14 @BobBuehler /types/winrt-uwp/ @saschanaz @taylor224 /types/winston-dynamodb/ @nickiannone +/types/winston-loggly-bulk/ @SimchaWood /types/winston-mail/ @idono87 /types/winston-syslog/ @cjbarth @felix-hoc /types/winston-syslog/v1/ @cjbarth /types/wiring-pi/ @NoHomey /types/wix-style-react/ @giladsegal -/types/wnumb/ @acoreyj +/types/wnumb/ @acoreyj @eikooc /types/wonder.js/ @yyc-git /types/word-extractor/ @saboya /types/word2vector/ @renekeijzer @@ -6311,6 +6546,7 @@ /types/wordwrap/ @ark120202 /types/workbox-background-sync/ @JasonHK /types/workbox-broadcast-update/ @JasonHK +/types/workbox-build/ @prichey /types/workbox-cacheable-response/ @JasonHK /types/workbox-core/ @JasonHK /types/workbox-expiration/ @JasonHK @@ -6335,10 +6571,11 @@ /types/wreck/ @marcinporebski @saboya /types/wreck/v7/ @marcinporebski /types/wrench/ @soywiz +/types/writable-consumable-stream/ @DanielRose /types/write/ @yoursunny /types/write-file-atomic/ @BendingBender @jayrylan /types/write-file-atomically/ @Aankhen -/types/ws/ @loyd @elithrar @mlamp @TitaneBoy @orblazer @reduckted +/types/ws/ @loyd @elithrar @mlamp @TitaneBoy @orblazer @reduckted @teidesu @wojtkowiak /types/wtfnode/ @dex4er /types/wu/ @phiresky /types/wx-js-sdk-dt/ @agasbzj @forzoom @@ -6346,6 +6583,7 @@ /types/x-editable/ @sirkirby /types/x-ray/ @mtraynham /types/x-ray-crawler/ @mtraynham +/types/x509.js/ @Moser-ss /types/xdate/ @yamada28go /types/xml/ @YuJianrong /types/xml-c14n/ @gallowsmaker @maxbogus @@ -6363,6 +6601,7 @@ /types/xmltojson/ @traviscrowe /types/xmpp__jid/ @PJakcson @BendingBender /types/xmpp__xml/ @BendingBender +/types/xo/ @peterblazejewicz /types/xregexp/ @Bartvds @jfahrenkrug @sigo /types/xrm/ @6ix4our @mattngan @markusmauch @daryllabar @clownwilleatme @scottdurow /types/xrm/v8/ @6ix4our @mattngan @markusmauch @daryllabar @clownwilleatme @mariusagur @@ -6370,6 +6609,7 @@ /types/xsd-schema-validator/ @Goldsmith42 /types/xsockets/ @pushplay /types/xstyled__system/ @stevejay +/types/xumm-api/ @WietseWind /types/xxhashjs/ @mDibyo @Manc /types/y18n/ @adamzerella /types/yadda/ @dex4er @@ -6378,7 +6618,8 @@ /types/yandex-maps/ @Delagen @gastwork13 /types/yandex-money-sdk/ @chrootsu /types/yar/ @SimonSchick -/types/yargs/ @poelstra @mizunashi-mana @pushplay @jeffkenney @JimiC @steffenvv @forivall @ExE-Boss +/types/yargs/ @poelstra @mizunashi-mana @pushplay @jeffkenney @JimiC @steffenvv @forivall @ExE-Boss @Aankhen +/types/yargs/v13/ @poelstra @mizunashi-mana @pushplay @jeffkenney @JimiC @steffenvv @forivall @ExE-Boss /types/yargs/v12/ @poelstra @mizunashi-mana @pushplay @jeffkenney @JimiC @steffenvv @forivall @ExE-Boss /types/yargs/v11/ @poelstra @mizunashi-mana @pushplay @jeffkenney @JimiC @ExE-Boss /types/yargs/v10/ @poelstra @mizunashi-mana @pushplay @jeffkenney @JimiC @ExE-Boss @@ -6389,6 +6630,7 @@ /types/yarnpkg__lockfile/ @fa93hws /types/yauzl/ @ffflorian /types/yauzl-promise/ @dlee-nvisia +/types/yawn-yaml/ @JamieMagee /types/yayson/ @Codesleuth /types/yazl/ @taoqf @seangenabe /types/ydn-db/ @yathit @gabrielmaldi @@ -6424,6 +6666,7 @@ /types/zeroclipboard/v1/ @ejsmith @niemyjski @balassy @leonyu /types/zeromq/ @davemckeown @erikma @TitaneBoy /types/zfont/ @demensky +/types/zingchart/ @mike-schultz /types/zip-webpack-plugin/ @blaise-io /types/zip.js/ @lgrignon /types/zipcelx/ @aleburato diff --git a/README.es.md b/README.es.md index 3fa7b50d122d604..8aea340584f8c5f 100644 --- a/README.es.md +++ b/README.es.md @@ -32,14 +32,44 @@ Si aún no puedes encontrarlo, comprueba si el paquete ya [incluye](http://www.t Esto es provisto usualmente en el campo `"types"` o `"typings"` en el `package.json`, o solo busca por cualquier archivo ".d.ts" en el paquete e inclúyelo manualmente con un `/// `. +#### Versiones más viejas de Typescript (2.7 y anteriores) + +Definitely Typed solamente prueba paquetes en versiones de TypeScript que son menores a 2 años. +Actualmente, las versiones 2.8 y posteriores están siendo probadas. Si estas usando TypeScript 2.0 a 2.7, puedes intentar instalando paquetes `@types` — la mayoría de los paquetes no usan los beneficios de Typescript más nuevos. No hay garantía de que funcionen. +Versiones soportadas: + +Versión | Liberado | Fin de soporte +-- | -- | -- +2.8 | Marzo 2018 | Marzo 2020 +2.9 | Mayo 2018 | Mayo 2020 +3.0 | Julio 2018 | Julio 2020 +3.1 | Septiembre 2018 | Septiembre 2020 +3.2 | Noviembre 2018 | Noviembre 2020 +3.3 | Enero 2019 | Enero 2020 +3.4 | Marzo 2019 | Marzo 2021 +3.5 | Mayo 2019 | Mayo 2021 +3.6 | Agosto 2019 | Agosto 2021 +3.7 | Noviembre 2019 | Noviembre 2021 +3.8 | Febrero 2020 | Febrero 2022 + +Los paquetes `@types` tienen etiquetas para las versiones de Typescript que explícitamente soportan, usualmente puedes obtener versiones más viejas de los paquetes anteriores a 2 años. +Por ejemplo, si ejecutas `npm dist-tags @types/react`, observaras que Typescript 2.5 puede usar types para react@16.0, a su vez, Typescript 2.6 y 2.7 pueden usar types para react@16.4. + +|Etiqueta | Versión| +|----|---------| +|latest| 16.9.23| +|ts2.0| 15.0.1| +| ... | ... | +|ts2.5| 16.0.36| +|ts2.6| 16.4.7| +|ts2.7| 16.4.7| +| ... | ... | + +#### Typescript 1.* -### Otros métodos - -Estos pueden ser utilizados por TypeScript 1.0. - -* [Typings](https://github.com/typings/typings) -* ~~[NuGet](http://nuget.org/packages?q=DefinitelyTyped)~~ (use las alternativas preferidas, la publicación DT type de nuget ha sido desactivada) * Descárguelo manualmente desde la `master` branch de este repositorio +* [Typings](https://github.com/typings/typings)~~ (use las alternativas preferidas, typings es obsoleto) +* ~~[NuGet](http://nuget.org/packages?q=DefinitelyTyped)~~ (use las alternativas preferidas, la publicación DT type de nuget ha sido desactivada) Tal vez debas añadir manualmente las [referencias](http://www.typescriptlang.org/docs/handbook/triple-slash-directives.html). diff --git a/README.ko.md b/README.ko.md index 44134b22850df6b..2bd480dc7c0f474 100644 --- a/README.ko.md +++ b/README.ko.md @@ -1,63 +1,129 @@ -# DefinitelyTyped [![Build Status](https://travis-ci.org/DefinitelyTyped/DefinitelyTyped.svg?branch=master)](https://travis-ci.org/DefinitelyTyped/DefinitelyTyped) - -[![깃터(https://gitter.im/borisyankov/DefinitelyTyped)에서 대화에 참여해보세요](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/borisyankov/DefinitelyTyped?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +# DefinitelyTyped > 이 저장소는 고품질의 타입스크립트(TypeScript) 자료형 정의(Type definition)를 위한 저장소입니다. -이 문서가 가장 최신 내용을 담고있긴 하지만, [공식 사이트(definitelytyped.org)](http://definitelytyped.org)도 확인해보시면 좋습니다. +*이 도움말은 [영어](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md), [스페인어](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.es.md), [러시아어](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.ru.md), 그리고 [중국어](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.cn.md)로도 읽으실 수 있습니다!* + +*[관리자 설명서](./docs/admin.md) 링크* + +## 목차 + +* [현재 상태](#현재-상태) +* [어떻게 기여하나요?](#어떻게-기여하나요) + * [테스트](#테스트) + * [풀 리퀘스트 만들기](#풀-리퀘스트pull-request-만들기) + * [이미 존재하는 패키지를 수정하기](#이미-존재하는-패키지를-수정하기) + * [새 패키지를 만들기](#새-패키지를-만들기) + * [많이 저지르는 실수들](#많이-저지르는-실수들) + * [패키지 삭제하기](#패키지-삭제하기) + * [린터](#린터) + * [검증하기](#검증하기) +* [자주 하는 질문들](#자주-하는-질문들) + +## 현재 상태 + +저장소 및 퍼블리싱 과정의 상태를 표시합니다. +기여자분들이 작성한 PR 또는 패키지에 문제가 발생했을 경우 이 표시를 보면 도움이 될 수 있습니다. + +* 최신 빌드가 [타입 체크/린트](https://github.com/Microsoft/dtslint) 과정을 깔끔하게 통과했습니다: [![Build Status](https://dev.azure.com/definitelytyped/DefinitelyTyped/_apis/build/status/DefinitelyTyped.DefinitelyTyped?branchName=master)](https://dev.azure.com/definitelytyped/DefinitelyTyped/_build/latest?definitionId=1&branchName=master) +* 모든 패키지가 typescript@next상에서 타입 체크/린트 과정을 깔끔하게 통과합니다: [![Build Status](https://dev.azure.com/definitelytyped/DefinitelyTyped/_apis/build/status/DefinitelyTyped.dtslint-runner?branchName=master)](https://dev.azure.com/definitelytyped/DefinitelyTyped/_build/latest?definitionId=2&branchName=master) +* 모든 패키지가 1시간 내에 [npm에 배포](https://github.com/microsoft/types-publisher)되었습니다: [![Publish Status](https://dev.azure.com/definitelytyped/DefinitelyTyped/_apis/build/status/DefinitelyTyped.types-publisher-watchdog?branchName=master)](https://dev.azure.com/definitelytyped/DefinitelyTyped/_build/latest?definitionId=5&branchName=master) +* [typescript-bot](https://github.com/typescript-bot)이 DefinitelyTyped에서 잘 돌고 있습니다 [![Activity Status](https://dev.azure.com/definitelytyped/DefinitelyTyped/_apis/build/status/DefinitelyTyped.typescript-bot-watchdog?branchName=master)](https://dev.azure.com/definitelytyped/DefinitelyTyped/_build/latest?definitionId=6&branchName=master) + +상태 표시가 비정상이거나 고장 표시가 발생하면 [DefinitelyTyped Gitter 채널](https://gitter.im/DefinitelyTyped/DefinitelyTyped)에서 이 문제를 알려주세요. + +[![https://gitter.im/DefinitelyTyped/DefinitelyTyped 에서 대화에 참여해보세요](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/DefinitelyTyped/DefinitelyTyped?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ## 선언 파일(Declaration file)이 뭔가요? [타입스크립트 안내서(TypeScript handbook)](http://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html)를 읽어보세요. -## 선언 파일(Declaration file)을 어떻게 받을 수 있나요?? +## 어떻게 받을 수 있나요? -### npm 사용하기 +### npm -아래 방법은 타입스크립트(TypeScript) 2.0+ 이상의 버전을 사용하는 사람들만 사용할 수 있는 방법이기는 합니다만, 이 방법을 사용하기를 장려합니다. +이 방법을 사용하기를 추천합니다. 아래는 예시입니다: ```sh npm install --save-dev @types/node ``` `node` 를 위한 자료형(Typing)이 컴파일 과정에 자동으로 포함될 겁니다. +모듈을 사용하지 않는 경우 `types` 참조를 추가해 주어야 할 수 있습니다. + +```ts +/// +``` + 더 자세한 내용은 [안내서(Handbook)](http://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html)에서 확인해보실 수 있습니다. NPM 의 "foo" 패키지에 대응되는 자료형 패키지는 "@types/foo" 입니다. 원하시는 패키지를 찾을 수 없는 경우, [타입서치(TypeSearch)](https://microsoft.github.io/TypeSearch/) 사이트에서 한 번 찾아보세요. -타입서치(TypeSearch)에서도 찾을 수 없는 경우, 찾고 있는 패키지가 자료형(Typing)을 +그래도 찾을 수 없는 경우, 찾고 있는 패키지가 자료형(Typing)을 [함께 제공](http://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html)하고 있지는 않은지 확인해보세요. -패키지에 포함된 자료형(Typing)은 주로 `package.json` 파일의 `"types"` 나 `"typings"` 필드(Field)를 통해 제공되지만, +이 경우 주로 `package.json` 파일의 `"types"` 나 `"typings"` 필드(Field)를 통해 제공되지만, `/// ` 같은 주석을 사용하여 패키지 안의 ".d.ts" 파일들을 직접 가져와야 할 수도 있습니다. - -### 그 외의 방법들 - -타입스크립트(TypeScript) 1.0 버전에서 사용할 수 있는 방법은 다음과 같습니다. - -* [Typings](https://github.com/typings/typings) 을 사용하기 -* ~~[NuGet](http://nuget.org/packages?q=DefinitelyTyped) 을 사용하기~~ (다른 방법을 사용해주세요. NuGet 은 더 이상 DT 자료형(Typing)을 제공하지 않습니다.) -* 이 저장소의 `master` 브랜치를 직접 내려받기 +#### 이전 버전 TypeScript (2.7 또는 그 이전) + +Definitely Typed는 2년이 지나지 않은 TypeScript 버전만을 대상으로 패키지를 테스트합니다. +현재 버전 2.8 및 그 이상만을 테스트하고 있습니다. +TypeScript 2.0에서 2.7 버전을 사용하는 경우, 그래도 `@types` 패키지를 한번 설치해 보셔도 무방합니다. 최신 TypeScript 기능을 사용하는 패키지는 그리 많지 않으니까요. +그러나 작동 여부를 보장하지는 못합니다. +지원 기간은 다음과 같습니다: + +버전 | 출시일 | 지원 종료 +-- | -- | -- +2.8 | 2018년 3월 | 2020년 3월 +2.9 | 2018년 5월 | 2020년 5월 +3.0 | 2018년 7월 | 2020년 7월 +3.1 | 2018년 9월 | 2020년 9월 +3.2 | 2018년 11월 | 2020년 11월 +3.3 | 2019년 1월 | 2021년 1월 +3.4 | 2019년 3월 | 2021년 3월 +3.5 | 2019년 5월 | 2021년 5월 +3.6 | 2019년 8월 | 2021년 8월 +3.7 | 2019년 11월 | 2021년 11월 +3.8 | 2020년 2월 | 2022년 2월 + +`@types` 패키지 안에는 패키지가 확실하게 지원하는 TypeScript 버전이 태그로 쓰여 있으므로, 2년 지원 기간이 지난 오래된 패키지도 보통 찾아보실 수 있습니다. +예를 들어, `npm dist-tags @types/react` 명령어를 입력하면 TypeScript 2.5는 react@16.0용 타입을, TypeScript 2.6 및 2.7은 react@16.4용 타입을 사용할 수 있는 것을 확인하실 수 있습니다: + +|태그 | 버전| +|----|---------| +|latest| 16.9.23| +|ts2.0| 15.0.1| +| ... | ... | +|ts2.5| 16.0.36| +|ts2.6| 16.4.7| +|ts2.7| 16.4.7| +| ... | ... | + +#### TypeScript 1.* + +* 이 저장소의 `master` 브랜치에서 직접 다운로드해 프로젝트에 삽입하기 +* ~~[Typings](https://github.com/typings/typings)를 사용하기~~ (다른 방법을 사용해주세요. typings는 더이상 추천하지 않습니다) +* ~~[NuGet](http://nuget.org/packages?q=DefinitelyTyped) 을 사용하기~~ (다른 방법을 사용해주세요. NuGet은 더 이상 DT 자료형(Typing)을 제공하지 않습니다.) 위 방법을 사용할 경우 수동으로 [참조(Reference)](http://www.typescriptlang.org/docs/handbook/triple-slash-directives.html)를 추가해주어야 할 수 있습니다. -## 어떻게 이곳에 기여할 수 있나요? +## 어떻게 기여하나요? -여러분과 같은 많은 기여자들의 도움 덕분에 이 저장소가 돌아가고 있습니다. 감사합니다. +Definitely Typed는 여러분과 같은 많은 기여자들의 도움 덕분에 돌아가고 있습니다! ### 테스트 -여러분이 만든 자료형 선언(Type declation)을 세상에 공유하기에 앞서, 여러분이 스스로 여러분의 자료형 선언(Type declation)을 사용하고 확인해주세요. +개선한 부분을 세상에 공유하기 전에 먼저 직접 사용해 보세요. -#### 이미 존재하는 자료형 패키지를 임시로 수정하기 +#### 이미 존재하는 패키지를 수정하고 테스트하기 -이미 존재하는 패키지의 자료형 선언(Type declaration)에 새로운 기능을 추가하려면 [모듈 증강(module augmentation)](http://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation)를 사용할 수 있습니다. +새로운 기능을 추가하려면 [모듈 증강(module augmentation)](http://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation)를 사용할 수 있습니다. 물론 `node_modules/@types/foo/index.d.ts` 를 직접 수정하실 수도 있으며, 이 파일을 복사한 다음 아래의 과정을 따라하실 수도 있습니다. -#### 새 자료형 패키지를 임시로 추가하기 +#### 새 패키지를 테스트하기 사용하고 계신 `tsconfig.json` 에 다음 내용을 추가해주세요. @@ -76,7 +142,7 @@ NPM 의 "foo" 패키지에 대응되는 자료형 패키지는 "@types/foo" 입 ### 풀 리퀘스트(Pull request) 만들기 -여러분의 자료형 선언이 잘 작동하는지 확인하셨다면, DefinitelyTyped 에 공유해주세요. +패키지가 잘 작동하는지 확인하셨다면, Definitely Typed에 공유해주세요. 우선, 이 저장소를 [포크(fork)](https://guides.github.com/activities/forking/)해 주시고, [node](https://nodejs.org/) 를 설치하신 뒤, `npm install` 명령을 실행해주세요. @@ -167,7 +233,7 @@ DefinitelyTyped 의 다른 패키지들이 삭제된 자료형(Typing) 패키지 DefinitelyTyped 에 한 번도 올라온 적 없는 패키지가 형(Type)을 포함하게 되었다면, `notNeededPackages.json` 파일에 추가할 필요도 없습니다. -#### 린트(Lint)하기 +#### 린터 자료형(Typing) 패키지를 린트(Lint)하려면, 패키지 디렉토리에 `{ "extends": "dtslint/dt.json" }` 를 포함하고 있는 `tslint.json` 파일을 추가해주시면 됩니다. 모든 새 패키지는 해당 파일을 가지고 있어야 합니다. 고쳐야 하지만 아직 고쳐지지 않은 린트(Lint) 결과가 있을 때에만 `tslint.json` 에서 린트 규칙(Lint rule)을 사용하지 않도록 설정할 수 있습니다. 예를 들어, @@ -196,8 +262,11 @@ f("one"); [dtslint](https://github.com/Microsoft/dtslint#write-tests) 저장소의 README 파일에서 더 자세한 내용을 확인하실 수 있습니다. -이런 테스트들은 `npm run lint package-name` 명령으로 실행해볼 수 있습니다. 이 때, `package-name` 은 테스트하고 싶은 패키지의 이름입니다. -테스트 스크립트는 [dtslint](https://github.com/Microsoft/dtslint) 를 사용하고 있습니다. +## 검증하기 + +`npm run lint package-name` 명령을 통해 변경점을 테스트할 수 있습니다. 이 때, `package-name`은 테스트하고 싶은 패키지의 이름입니다. + +작성한 dts 파일을 타입스크립트 컴파일러로 돌려보기 위해 테스트 스크립트 내부적으로 [dtslint](https://github.com/Microsoft/dtslint)를 사용합니다. ## 자주 하는 질문들 diff --git a/README.md b/README.md index ff6e1492ed6bcb8..936d70245bb31cf 100644 --- a/README.md +++ b/README.md @@ -64,25 +64,43 @@ If you still can't find it, check if it [bundles](http://www.typescriptlang.org/ This is usually provided in a `"types"` or `"typings"` field in the `package.json`, or just look for any ".d.ts" files in the package and manually include them with a `/// `. -#### Typescript 2.7 and earlier +#### Older versions of TypeScript (2.7 and earlier) -Definitely Typed only tests packages on Typescript 2.8 and later as of November 2019. -If you're using Typescript 2.0 to 2.7, you can still try installing `@types` packages — the majority of packages don't use fancy new Typescript features. +Definitely Typed only tests packages on versions of TypeScript that are less than 2 years old. +Currently versions 2.8 and above are tested. +If you're using TypeScript 2.0 to 2.7, you can still try installing `@types` packages — the majority of packages don't use fancy new TypeScript features. But there's no guarantee that they'll work. -Packages that existed before November 2019 may have older versions that are explicitly marked compatible with older versions of Typescript; use the tag "ts2.6" for Typescript 2.6, for example. - -For example, if you run `npm dist-tags @types/react`, you'll see the following table that shows that react@16.4 has types for Typescript 2.6: +Here is the support window: + +Version | Released | End of Support +-- | -- | -- +2.8 | March 2018 | March 2020 +2.9 | May 2018 | May 2020 +3.0 | July 2018 | July 2020 +3.1 | September 2018 | September 2020 +3.2 | November 2018 | November 2020 +3.3 | January 2019 | January 2021 +3.4 | March 2019 | March 2021 +3.5 | May 2019 | May 2021 +3.6 | August 2019 | August 2021 +3.7 | November 2019 | November 2021 +3.8 | February 2020 | February 2022 + +`@types` packages have tags for versions of TypeScript that they explicitly support, so you can usually get older versions of packages that predate the 2-year window. +For example, if you run `npm dist-tags @types/react`, you'll see that TypeScript 2.5 can use types for react@16.0, whereas TypeScript 2.6 and 2.7 can use types for react@16.4: |Tag | Version| |----|---------| -|latest| 16.9.11| +|latest| 16.9.23| |ts2.0| 15.0.1| | ... | ... | +|ts2.5| 16.0.36| |ts2.6| 16.4.7| +|ts2.7| 16.4.7| | ... | ... | -### Typescript 1.8 and earlier +#### TypeScript 1.* * Manually download from the `master` branch of this repository and place them in your project * ~~[Typings](https://github.com/typings/typings)~~ (use preferred alternatives, typings is deprecated) @@ -182,7 +200,11 @@ For a good example package, see [base64-js](https://github.com/DefinitelyTyped/D #### Common mistakes * First, follow advice from the [handbook](http://www.typescriptlang.org/docs/handbook/declaration-files/do-s-and-don-ts.html). -* Formatting: Use 4 spaces. Prettier is set up on this repo, so you can run `npm run prettier -- --write path/to/package`. +* Formatting: Use 4 spaces. Prettier is set up on this repo, so you can run `npm run prettier -- --write path/to/package/**/*.ts`. [When using assertions](https://github.com/SamVerschueren/tsd#assertions), add `// prettier-ignore` exclusion to mark line(s) of code as excluded from formatting: + ```tsx + // prettier-ignore + const incompleteThemeColorModes: Theme = { colors: { modes: { papaya: { // $ExpectError + ``` * `function sum(nums: number[]): number`: Use `ReadonlyArray` if a function does not write to its parameters. * `interface Foo { new(): Foo; }`: This defines a type of objects that are new-able. You probably want `declare class Foo { constructor(); }`. @@ -328,7 +350,7 @@ This is a commonly cited [Stack Overflow answer](https://stackoverflow.com/quest It is more appropriate to import the module using the `import foo = require("foo");` syntax. Nevertheless, if you want to use a default import like `import foo from "foo";` you have two options: - you can use the [`--allowSyntheticDefaultImports` compiler option](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-1-8.html#support-for-default-import-interop-with-systemjs) if your module runtime supports an interop scheme for non-ECMAScript modules, i.e. if default imports work in your environment (e.g. Webpack, SystemJS, esm). -- you can use the [`--esModuleInterop` compiler option](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html#support-for-import-d-from-cjs-form-commonjs-modules-with---esmoduleinterop) if you want TypeScript to take care of non-ECMAScript interop (since Typescript 2.7). +- you can use the [`--esModuleInterop` compiler option](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html#support-for-import-d-from-cjs-form-commonjs-modules-with---esmoduleinterop) if you want TypeScript to take care of non-ECMAScript interop (since TypeScript 2.7). #### A package uses `export =`, but I prefer to use default imports. Can I change `export =` to `export default`? diff --git a/README.ru.md b/README.ru.md index 6f5ff553321348d..f1e0ba0aaad759f 100644 --- a/README.ru.md +++ b/README.ru.md @@ -73,9 +73,27 @@ npm install --save-dev @types/node #### Typescript 2.7 и старее -Начиная с ноября 2019 года, Definitely Typed тестирует пакеты только на Typescript 2.8 и новее. -Если вы используете Typescript от 2.0 до 2.7, вы все равно можете попробовать установить пакеты `@types` - большинство пакетов не используют необычные новые функции Typescript. +Начиная с ноября 2019 года, Definitely Typed тестирует пакеты только на версиях Typescript, которым меньше двух лет. +Если вы используете Typescript от 2.0 до 2.7, вы все равно можете попробовать установить пакеты `@types` - большинство пакетов не используют новые функции Typescript. Но нет гарантии, что они будут работать. + +График обновлений: + +Версия | Релиз | Окончание поддержки +-- | -- | -- +2.8 | Март 2018 | Март 2020 +2.9 | Май 2018 | Май 2020 +3.0 | Июль 2018 | Июль 2020 +3.1 | Сентябрь 2018 | Сентябрь 2020 +3.2 | Ноябрь 2018 | Ноябрь 2020 +3.3 | Январь 2019 | Январь 2021 +3.4 | Март 2019 | Март 2021 +3.5 | Май 2019 | Май 2021 +3.6 | Август 2019 | Август 2021 +3.7 | Ноябрь 2019 | Ноябрь 2021 +3.8 | Февраль 2020 | Февраль 2022 + + Пакеты, которые существовали до ноября 2019 года, могут иметь более старые версии, которые явно помечены как совместимые с более старыми версиями Typescript; используйте тег "ts2.6" для Typescript 2.6, например. Например, если вы запустите `npm dist-tags @types/react`, вы увидите следующую таблицу, которая показывает, что у react@16.4 есть типы для Typescript 2.6: diff --git a/notNeededPackages.json b/notNeededPackages.json index 593ff21e2a28701..6af1828902622d9 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -474,6 +474,12 @@ "sourceRepoURL": "https://github.com/interactivethings/catalog", "asOfVersion": "3.5.0" }, + { + "libraryName": "@catho/quantum", + "typingsPackageName": "catho__quantum", + "sourceRepoURL": "https://github.com/catho/quantum", + "asOfVersion": "3.9.0" + }, { "libraryName": "chai-http", "typingsPackageName": "chai-http", @@ -606,6 +612,12 @@ "sourceRepoURL": "https://github.com/allipierre/Type-definitions-for-jquery-confirm/tree/master/types/confirmDialog-js", "asOfVersion": "1.0.0" }, + { + "libraryName": "connect-mongo", + "typingsPackageName": "connect-mongo", + "sourceRepoURL": "https://github.com/jdesboeufs/connect-mongo", + "asOfVersion": "3.1.1" + }, { "libraryName": "consola", "typingsPackageName": "consola", @@ -1344,6 +1356,12 @@ "sourceRepoURL": "https://github.com/fastify/fastify-static", "asOfVersion": "2.2.1" }, + { + "libraryName": "@types/facebook-js-sdk", + "typingsPackageName": "fb", + "sourceRepoURL": "https://github.com/DefinitelyTyped/DefinitelyTyped", + "asOfVersion": "0.0.28" + }, { "libraryName": "fecha", "typingsPackageName": "fecha", @@ -1650,6 +1668,12 @@ "sourceRepoURL": "https://github.com/griddlegriddle/griddle", "asOfVersion": "1.3.0" }, + { + "libraryName": "gridstack", + "typingsPackageName": "gridstack", + "sourceRepoURL": "https://github.com/gridstack/gridstack.js", + "asOfVersion": "0.5.2" + }, { "libraryName": "gulp-pug", "typingsPackageName": "gulp-pug", @@ -1704,6 +1728,60 @@ "sourceRepoURL": "https://github.com/dwyl/hapi-auth-jwt2/", "asOfVersion": "8.6.1" }, + { + "libraryName": "@hapi/accept", + "typingsPackageName": "hapi__accept", + "sourceRepoURL": "https://github.com/hapijs/accept", + "asOfVersion": "5.0.0" + }, + { + "libraryName": "@hapi/boom", + "typingsPackageName": "hapi__boom", + "sourceRepoURL": "https://github.com/hapijs/boom", + "asOfVersion": "9.0.0" + }, + { + "libraryName": "@hapi/code", + "typingsPackageName": "hapi__code", + "sourceRepoURL": "https://github.com/hapijs/code", + "asOfVersion": "8.0.0" + }, + { + "libraryName": "@hapi/cryptiles", + "typingsPackageName": "hapi__cryptiles", + "sourceRepoURL": "https://github.com/hapijs/cryptiles", + "asOfVersion": "5.0.0" + }, + { + "libraryName": "@hapi/hoek", + "typingsPackageName": "hapi__hoek", + "sourceRepoURL": "https://github.com/hapijs/hoek", + "asOfVersion": "9.0.0" + }, + { + "libraryName": "@hapi/iron", + "typingsPackageName": "hapi__iron", + "sourceRepoURL": "https://github.com/hapijs/iron", + "asOfVersion": "6.0.0" + }, + { + "libraryName": "@hapi/lab", + "typingsPackageName": "hapi__lab", + "sourceRepoURL": "https://github.com/hapijs/lab", + "asOfVersion": "22.0.0" + }, + { + "libraryName": "@hapi/topo", + "typingsPackageName": "hapi__topo", + "sourceRepoURL": "https://github.com/hapijs/topo", + "asOfVersion": "5.0.0" + }, + { + "libraryName": "@hapi/wreck", + "typingsPackageName": "hapi__wreck", + "sourceRepoURL": "https://github.com/hapijs/wreck", + "asOfVersion": "17.0.0" + }, { "libraryName": "hard-rejection", "typingsPackageName": "hard-rejection", @@ -2196,6 +2274,12 @@ "sourceRepoURL": "https://github.com/facebook/jest/tree/master/packages/jest-diff", "asOfVersion": "24.3.0" }, + { + "libraryName": "jest-docblock", + "typingsPackageName": "jest-docblock", + "sourceRepoURL": "https://github.com/facebook/jest/tree/master/packages/jest-docblock", + "asOfVersion": "25.1.0" + }, { "libraryName": "jest-each", "typingsPackageName": "jest-each", @@ -2208,6 +2292,24 @@ "sourceRepoURL": "https://github.com/facebook/jest/tree/master/packages/jest-get-type", "asOfVersion": "24.2.0" }, + { + "libraryName": "jest-matcher-utils", + "typingsPackageName": "jest-matcher-utils", + "sourceRepoURL": "https://github.com/facebook/jest/tree/master/packages/jest-matcher-utils", + "asOfVersion": "25.1.0" + }, + { + "libraryName": "expect", + "typingsPackageName": "jest-matchers", + "sourceRepoURL": "https://github.com/facebook/jest/tree/master/packages/expect", + "asOfVersion": "25.1.0" + }, + { + "libraryName": "jest-validate", + "typingsPackageName": "jest-validate", + "sourceRepoURL": "https://github.com/facebook/jest/tree/master/packages/jest-validate", + "asOfVersion": "25.1.0" + }, { "libraryName": "jimp", "typingsPackageName": "jimp", @@ -3702,12 +3804,6 @@ "sourceRepoURL": "http://github.com/react-component/progress", "asOfVersion": "2.4.0" }, - { - "libraryName": "rdflib", - "typingsPackageName": "rdflib", - "sourceRepoURL": "http://github.com/linkeddata/rdflib.js", - "asOfVersion": "1.0.5" - }, { "libraryName": "re2", "typingsPackageName": "re2", @@ -4230,6 +4326,18 @@ "sourceRepoURL": "https://github.com/riot/riot", "asOfVersion": "4.1.0" }, + { + "libraryName": "roads", + "typingsPackageName": "roads", + "sourceRepoURL": "https://github.com/Dashron/roads", + "asOfVersion": "6.0.1" + }, + { + "libraryName": "roads-server", + "typingsPackageName": "roads-server", + "sourceRepoURL": "https://github.com/Dashron/roads-server", + "asOfVersion": "1.0.1" + }, { "libraryName": "rollup", "typingsPackageName": "rollup", @@ -4650,6 +4758,18 @@ "sourceRepoURL": "https://github.com/storybooks/storybook", "asOfVersion": "5.2.0" }, + { + "libraryName": "@storybook/addon-storyshots", + "typingsPackageName": "storybook__addon-storyshots", + "sourceRepoURL": "https://github.com/storybooks/storybook", + "asOfVersion": "5.3.0" + }, + { + "libraryName": "@storybook/addon-storyshots-puppeteer", + "typingsPackageName": "storybook__addon-storyshots-puppeteer", + "sourceRepoURL": "https://github.com/storybooks/storybook", + "asOfVersion": "5.3.0" + }, { "libraryName": "@storybook/addon-viewport", "typingsPackageName": "storybook__addon-viewport", @@ -4902,6 +5022,12 @@ "sourceRepoURL": "https://github.com/cssinjs/theming", "asOfVersion": "2.0.0" }, + { + "libraryName": "theme-ui", + "typingsPackageName": "theme-ui__color", + "sourceRepoURL": "https://github.com/system-ui/theme-ui", + "asOfVersion": "0.3.1" + }, { "libraryName": "three", "typingsPackageName": "three", diff --git a/package.json b/package.json index 408f02b2ade7fa4..092e7fab934bde9 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "not-needed": "node scripts/not-needed.js", "update-codeowners": "node scripts/update-codeowners.js", "test": "node node_modules/types-publisher/bin/tester/test.js --run-from-definitely-typed", - "lint": "dtslint types" + "lint": "dtslint types", + "prettier": "prettier" }, "devDependencies": { "dtslint": "latest", diff --git a/types/absolute/tsconfig.json b/types/absolute/tsconfig.json index ba18df791eb47f6..baa1257871c61b4 100644 --- a/types/absolute/tsconfig.json +++ b/types/absolute/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "absolute-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/absolute/tslint.json b/types/absolute/tslint.json index 3d59f55fdabcf45..14c5d28a5a849e9 100644 --- a/types/absolute/tslint.json +++ b/types/absolute/tslint.json @@ -1,80 +1,16 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, + "npm-naming": [ + true, + { + "mode": "name-only" + } + ], "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/acc-wizard/tsconfig.json b/types/acc-wizard/tsconfig.json index a20aeba97be2cc5..cbbd68ab4bbdd03 100644 --- a/types/acc-wizard/tsconfig.json +++ b/types/acc-wizard/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "acc-wizard-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/acc-wizard/tslint.json b/types/acc-wizard/tslint.json index 3d59f55fdabcf45..0a5cef1833daf13 100644 --- a/types/acc-wizard/tslint.json +++ b/types/acc-wizard/tslint.json @@ -1,80 +1,18 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, "no-trailing-whitespace": false, - "object-literal-key-quotes": false, + "no-var-keyword": false, + "npm-naming": false, "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "prefer-method-signature": false } -} +} \ No newline at end of file diff --git a/types/accounting/tsconfig.json b/types/accounting/tsconfig.json index f815c5b01e18fe9..c0e9f48679f55ef 100644 --- a/types/accounting/tsconfig.json +++ b/types/accounting/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "accounting-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/ace/tslint.json b/types/ace/tslint.json index 3d59f55fdabcf45..74a39e17197b71d 100644 --- a/types/ace/tslint.json +++ b/types/ace/tslint.json @@ -2,79 +2,36 @@ "extends": "dtslint/dt.json", "rules": { "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, "no-duplicate-variable": false, "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, + "no-trailing-whitespace": false, "no-var-keyword": false, - "no-var-requires": false, "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, "object-literal-shorthand": false, - "one-line": false, "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, "triple-equals": false, "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/acl/tsconfig.json b/types/acl/tsconfig.json index 9f5c6a01ef35ba8..d4174faa174a644 100644 --- a/types/acl/tsconfig.json +++ b/types/acl/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -22,4 +22,4 @@ "test/mongodbBackend.ts", "test/redisBackend.ts" ] -} \ No newline at end of file +} diff --git a/types/acorn/tsconfig.json b/types/acorn/tsconfig.json index 0b4760b0fc75ed0..3e3fd4849b296e1 100644 --- a/types/acorn/tsconfig.json +++ b/types/acorn/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "acorn-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/acorn/tslint.json b/types/acorn/tslint.json index 2d05b8507cb291b..9d5650a14d4f4cb 100644 --- a/types/acorn/tslint.json +++ b/types/acorn/tslint.json @@ -6,4 +6,4 @@ "no-empty-interface": false, "no-unnecessary-class": false } -} +} \ No newline at end of file diff --git a/types/actioncable/tsconfig.json b/types/actioncable/tsconfig.json index cb137a898207b34..77e48c6aa6d16d0 100644 --- a/types/actioncable/tsconfig.json +++ b/types/actioncable/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "actioncable-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/actioncable/tslint.json b/types/actioncable/tslint.json index 3d59f55fdabcf45..df850620234d41d 100644 --- a/types/actioncable/tslint.json +++ b/types/actioncable/tslint.json @@ -1,80 +1,14 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/activestorage/tslint.json b/types/activestorage/tslint.json index 3db14f85eaf7b98..d086f8e13f785e5 100644 --- a/types/activestorage/tslint.json +++ b/types/activestorage/tslint.json @@ -1 +1,17 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "npm-naming": [ + true, + { + "errors": [ + [ + "NeedsExportEquals", + false + ] + ], + "mode": "code" + } + ] + } +} \ No newline at end of file diff --git a/types/activex-access/tslint.json b/types/activex-access/tslint.json index 7b89accc6d479af..d62f329ff6f3859 100644 --- a/types/activex-access/tslint.json +++ b/types/activex-access/tslint.json @@ -1,7 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { - "no-const-enum": false, - "max-line-length": false + "max-line-length": false, + "no-const-enum": false } -} +} \ No newline at end of file diff --git a/types/activex-adodb/tslint.json b/types/activex-adodb/tslint.json index 7b89accc6d479af..d62f329ff6f3859 100644 --- a/types/activex-adodb/tslint.json +++ b/types/activex-adodb/tslint.json @@ -1,7 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { - "no-const-enum": false, - "max-line-length": false + "max-line-length": false, + "no-const-enum": false } -} +} \ No newline at end of file diff --git a/types/activex-adox/tslint.json b/types/activex-adox/tslint.json index b06c06beef2dec4..d62f329ff6f3859 100644 --- a/types/activex-adox/tslint.json +++ b/types/activex-adox/tslint.json @@ -1,7 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { - "no-const-enum": false, - "max-line-length": false + "max-line-length": false, + "no-const-enum": false } } \ No newline at end of file diff --git a/types/activex-dao/tslint.json b/types/activex-dao/tslint.json index 3224b40b8b4935b..ed91c31f9c1973b 100644 --- a/types/activex-dao/tslint.json +++ b/types/activex-dao/tslint.json @@ -3,4 +3,4 @@ "rules": { "no-const-enum": false } -} +} \ No newline at end of file diff --git a/types/activex-excel/tslint.json b/types/activex-excel/tslint.json index 7b89accc6d479af..d62f329ff6f3859 100644 --- a/types/activex-excel/tslint.json +++ b/types/activex-excel/tslint.json @@ -1,7 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { - "no-const-enum": false, - "max-line-length": false + "max-line-length": false, + "no-const-enum": false } -} +} \ No newline at end of file diff --git a/types/activex-infopath/tslint.json b/types/activex-infopath/tslint.json index 3224b40b8b4935b..ed91c31f9c1973b 100644 --- a/types/activex-infopath/tslint.json +++ b/types/activex-infopath/tslint.json @@ -3,4 +3,4 @@ "rules": { "no-const-enum": false } -} +} \ No newline at end of file diff --git a/types/activex-libreoffice/tslint.json b/types/activex-libreoffice/tslint.json index 37a3c274890530a..dd84e7fd8016fdf 100644 --- a/types/activex-libreoffice/tslint.json +++ b/types/activex-libreoffice/tslint.json @@ -4,7 +4,6 @@ "ban-types": false, "no-const-enum": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, "no-unnecessary-qualifier": false } } \ No newline at end of file diff --git a/types/activex-msforms/tslint.json b/types/activex-msforms/tslint.json index 7b89accc6d479af..d62f329ff6f3859 100644 --- a/types/activex-msforms/tslint.json +++ b/types/activex-msforms/tslint.json @@ -1,7 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { - "no-const-enum": false, - "max-line-length": false + "max-line-length": false, + "no-const-enum": false } -} +} \ No newline at end of file diff --git a/types/activex-mshtml/tslint.json b/types/activex-mshtml/tslint.json index 916af93888ebe18..d62f329ff6f3859 100644 --- a/types/activex-mshtml/tslint.json +++ b/types/activex-mshtml/tslint.json @@ -1,7 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { - "no-const-enum": false, - "max-line-length": false + "max-line-length": false, + "no-const-enum": false } -} +} \ No newline at end of file diff --git a/types/activex-msxml2/tslint.json b/types/activex-msxml2/tslint.json index 7b89accc6d479af..d62f329ff6f3859 100644 --- a/types/activex-msxml2/tslint.json +++ b/types/activex-msxml2/tslint.json @@ -1,7 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { - "no-const-enum": false, - "max-line-length": false + "max-line-length": false, + "no-const-enum": false } -} +} \ No newline at end of file diff --git a/types/activex-office/tslint.json b/types/activex-office/tslint.json index 7b89accc6d479af..d62f329ff6f3859 100644 --- a/types/activex-office/tslint.json +++ b/types/activex-office/tslint.json @@ -1,7 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { - "no-const-enum": false, - "max-line-length": false + "max-line-length": false, + "no-const-enum": false } -} +} \ No newline at end of file diff --git a/types/activex-outlook/tslint.json b/types/activex-outlook/tslint.json index 3224b40b8b4935b..ed91c31f9c1973b 100644 --- a/types/activex-outlook/tslint.json +++ b/types/activex-outlook/tslint.json @@ -3,4 +3,4 @@ "rules": { "no-const-enum": false } -} +} \ No newline at end of file diff --git a/types/activex-powerpoint/tslint.json b/types/activex-powerpoint/tslint.json index 3224b40b8b4935b..ed91c31f9c1973b 100644 --- a/types/activex-powerpoint/tslint.json +++ b/types/activex-powerpoint/tslint.json @@ -3,4 +3,4 @@ "rules": { "no-const-enum": false } -} +} \ No newline at end of file diff --git a/types/activex-stdole/tslint.json b/types/activex-stdole/tslint.json index 3224b40b8b4935b..ed91c31f9c1973b 100644 --- a/types/activex-stdole/tslint.json +++ b/types/activex-stdole/tslint.json @@ -3,4 +3,4 @@ "rules": { "no-const-enum": false } -} +} \ No newline at end of file diff --git a/types/activex-vbide/tslint.json b/types/activex-vbide/tslint.json index 7b89accc6d479af..d62f329ff6f3859 100644 --- a/types/activex-vbide/tslint.json +++ b/types/activex-vbide/tslint.json @@ -1,7 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { - "no-const-enum": false, - "max-line-length": false + "max-line-length": false, + "no-const-enum": false } -} +} \ No newline at end of file diff --git a/types/activex-wia/tslint.json b/types/activex-wia/tslint.json index 457cebbb556c3c9..ed91c31f9c1973b 100644 --- a/types/activex-wia/tslint.json +++ b/types/activex-wia/tslint.json @@ -1,6 +1,6 @@ { "extends": "dtslint/dt.json", - "rules":{ + "rules": { "no-const-enum": false } -} +} \ No newline at end of file diff --git a/types/activex-word/tslint.json b/types/activex-word/tslint.json index 3224b40b8b4935b..ed91c31f9c1973b 100644 --- a/types/activex-word/tslint.json +++ b/types/activex-word/tslint.json @@ -3,4 +3,4 @@ "rules": { "no-const-enum": false } -} +} \ No newline at end of file diff --git a/types/add2home/tsconfig.json b/types/add2home/tsconfig.json index 904e5e74537165e..93f0ad7caa78d78 100644 --- a/types/add2home/tsconfig.json +++ b/types/add2home/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "add2home-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/add2home/tslint.json b/types/add2home/tslint.json index 3d59f55fdabcf45..1d176f8010a9d85 100644 --- a/types/add2home/tslint.json +++ b/types/add2home/tslint.json @@ -1,80 +1,15 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, + "npm-naming": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/adone/tslint.json b/types/adone/tslint.json index 177bd33372c8722..cf3a749d9318b26 100644 --- a/types/adone/tslint.json +++ b/types/adone/tslint.json @@ -1,19 +1,16 @@ { "extends": "dtslint/dt.json", "rules": { - // TODOs "align": false, - "no-namespace": false, - "strict-export-declare-modifiers": false, - "no-any-union": false, + "await-promise": false, "no-boolean-literal-compare": false, "no-mergeable-namespace": false, - "no-single-declare-module": false, + "no-namespace": false, + "no-restricted-globals": false, "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "unified-signatures": false, "space-before-function-paren": false, - "await-promise": false, - "no-restricted-globals": false + "strict-export-declare-modifiers": false, + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/aframe/tslint.json b/types/aframe/tslint.json index 495d29983de7d66..aa1140f0ed33ff7 100644 --- a/types/aframe/tslint.json +++ b/types/aframe/tslint.json @@ -1,5 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { + "no-unnecessary-type-assertion": false } -} +} \ No newline at end of file diff --git a/types/ag-channel/ag-channel-tests.ts b/types/ag-channel/ag-channel-tests.ts new file mode 100644 index 000000000000000..7e15321c9cc3111 --- /dev/null +++ b/types/ag-channel/ag-channel-tests.ts @@ -0,0 +1,39 @@ +import AGChannel = require('ag-channel'); +import AGSimpleBroker = require('ag-simple-broker'); +import StreamDemux = require('stream-demux'); + +const broker = new AGSimpleBroker(); +const exchange = broker.exchange(); + +const channel = new AGChannel('dummy', exchange, new StreamDemux(), new StreamDemux()); + +(async () => { + await channel.listener('subscribe').once(); + console.log('subscribed'); +})(); + +// $ExpectType ChannelState +channel.state; + +(async () => { + // tslint:disable-next-line: await-promise Bug in tslint: https://github.com/palantir/tslint/issues/3997 + for await (const message of channel) { + // $ExpectType number + message; + } +})(); + +(async () => { + // tslint:disable-next-line: await-promise Bug in tslint: https://github.com/palantir/tslint/issues/3997 + for await (const event of channel.listener('subscribe')) { + // $ExpectType number + event; + } + + await channel.transmitPublish(`hello`); +})(); + +// $ExpectType number +channel.getBackpressure(); + +channel.close(); diff --git a/types/ag-channel/index.d.ts b/types/ag-channel/index.d.ts new file mode 100644 index 000000000000000..6cf11bd1c4f90b7 --- /dev/null +++ b/types/ag-channel/index.d.ts @@ -0,0 +1,120 @@ +// Type definitions for ag-channel 4.0 +// Project: https://github.com/SocketCluster/ag-channel +// Definitions by: Daniel Rose +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import ConsumableStream = require('consumable-stream'); +import StreamDemux = require('stream-demux'); +import DemuxedConsumableStream = require('stream-demux/demuxed-consumable-stream'); +import Consumer = require('writable-consumable-stream/consumer'); + +declare class AGChannel extends ConsumableStream { + readonly PENDING: 'pending'; + readonly SUBSCRIBED: 'subscribed'; + readonly UNSUBSCRIBED: 'unsubscribed'; + + name: string; + client: AGChannel.Client; + + state: AGChannel.ChannelState; + options: object; + + constructor(name: string, client: AGChannel.Client, eventDemux: StreamDemux, dataDemux: StreamDemux); + + createConsumer(timeout?: number): ConsumableStream.Consumer; + + listener(eventName: string): DemuxedConsumableStream; + + close(): void; + + kill(): void; + killOutputConsumer(consumerId: number): void; + killListenerConsumer(consumerId: number): void; + + getOutputConsumerStats(consumerId: number): Consumer.ConsumerStats | undefined; + getListenerConsumerStats(consumerId: number): Consumer.ConsumerStats | undefined; + + getBackpressure(): number; + getListenerConsumerBackpressure(consumerId: number): number; + getOutputConsumerBackpressure(consumerId: number): any; + + closeOutput(): void; + closeListener(eventName: string): void; + closeAllListeners(): void; + + killOutput(): void; + killListener(eventName: string): void; + killAllListeners(): void; + + getOutputConsumerStatsList(): Consumer.ConsumerStats; + getListenerConsumerStatsList(eventName: string): Consumer.ConsumerStats[]; + + getOutputBackpressure(): number; + getListenerBackpressure(eventName: string): number; + getAllListenersBackpressure(): number; + + hasOutputConsumer(consumerId: number): boolean; + hasListenerConsumer(eventName: string, consumerId: number): boolean; + hasAnyListenerConsumer(consumerId: number): boolean; + + subscribe(options?: any): void; + unsubscribe(): void; + + isSubscribed(includePending?: boolean): boolean; + + transmitPublish(data: any): Promise; + invokePublish(data: any): Promise; +} + +export = AGChannel; + +declare namespace AGChannel { + interface Client { + closeChannel(channelName: string): void; + + killChannel(channelName: string): void; + + killChannelOutputConsumer(consumerId: number): void; + killChannelListenerConsumer(consumerId: number): void; + + getChannelOutputConsumerStats(consumerId: number): Consumer.ConsumerStats; + getChannelListenerConsumerStats(consumerId: number): Consumer.ConsumerStats; + + getChannelBackpressure(channelName: string): number; + + getChannelListenerConsumerBackpressure(consumerId: number): number; + getChannelOutputConsumerBackpressure(consumerId: number): number; + + channelCloseOutput(channelName: string): void; + channelCloseListener(channelName: string, eventName: string): void; + channelCloseAllListeners(channelName: string): void; + + channelKillOutput(channelName: string): void; + channelKillListener(channelName: string, eventName: string): void; + channelKillAllListeners(channelName: string): void; + + channelGetOutputConsumerStatsList(channelName: string): Consumer.ConsumerStats[]; + channelGetListenerConsumerStatsList(channelName: string, eventName: string): Consumer.ConsumerStats[]; + channelGetAllListenersConsumerStatsList(channelName: string): Consumer.ConsumerStats[]; + + channelGetOutputBackpressure(channelName: string): number; + channelGetListenerBackpressure(channelName: string, eventName: string): number; + channelGetAllListenersBackpressure(channelName: string): number; + + channelHasOutputConsumer(channelName: string, consumerId: number): boolean; + channelHasListenerConsumer(channelName: string, eventName: string, consumerId: number): boolean; + channelHasAnyListenerConsumer(channelName: string, consumerId: number): boolean; + + getChannelState(channelName: string): ChannelState; + getChannelOptions(channelName: string): object; + + subscribe(channelName: string): AGChannel; + unsubscribe(channelName: string): Promise; + isSubscribed(channelName: string, includePending?: boolean): boolean; + + transmitPublish(channelName: string, data: any): Promise; + invokePublish(channelName: string, data: any): Promise; + } + + type ChannelState = 'pending' | 'subscribed' | 'unsubscribed'; +} diff --git a/types/hapi__lab/tsconfig.json b/types/ag-channel/tsconfig.json similarity index 80% rename from types/hapi__lab/tsconfig.json rename to types/ag-channel/tsconfig.json index c303939cd40ebfe..1d72f6b838499f3 100644 --- a/types/hapi__lab/tsconfig.json +++ b/types/ag-channel/tsconfig.json @@ -3,7 +3,7 @@ "module": "commonjs", "lib": [ "es6", - "dom" + "esnext.asynciterable" ], "noImplicitAny": true, "noImplicitThis": true, @@ -13,17 +13,17 @@ "typeRoots": [ "../" ], + "types": [], "paths": { - "@hapi/lab": [ - "hapi__lab" + "sc-channel": [ + "sc-channel/v1" ] }, - "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", - "hapi__lab-tests.ts" + "ag-channel-tests.ts" ] } diff --git a/types/hapi__iron/tslint.json b/types/ag-channel/tslint.json similarity index 100% rename from types/hapi__iron/tslint.json rename to types/ag-channel/tslint.json diff --git a/types/ag-simple-broker/ag-simple-broker-tests.ts b/types/ag-simple-broker/ag-simple-broker-tests.ts new file mode 100644 index 000000000000000..11c2d8b7440349f --- /dev/null +++ b/types/ag-simple-broker/ag-simple-broker-tests.ts @@ -0,0 +1,28 @@ +import AGSimpleBroker = require('ag-simple-broker'); + +const brokerEngine = new AGSimpleBroker(); + +(async () => { + // tslint:disable-next-line: await-promise Bug in tslint: https://github.com/palantir/tslint/issues/3997 + for await (const { error } of brokerEngine.listener('error')) { + console.log(error); + } +})(); + +if (brokerEngine.isReady) { + console.log('ready'); +} else { + (async () => { + await brokerEngine.listener('ready').once(); + console.log('ready'); + })(); +} + +const exchange = brokerEngine.exchange(); + +brokerEngine.subscribeSocket(exchange, 'test'); + +exchange.invokePublish('test', 'dummy'); +exchange.invokePublish('test', {}); + +brokerEngine.unsubscribeSocket(exchange, 'test'); diff --git a/types/ag-simple-broker/index.d.ts b/types/ag-simple-broker/index.d.ts new file mode 100644 index 000000000000000..1232daa73ebeec0 --- /dev/null +++ b/types/ag-simple-broker/index.d.ts @@ -0,0 +1,148 @@ +// Type definitions for ag-simple-broker 4.0 +// Project: https://github.com/SocketCluster/ag-simple-broker +// Definitions by: Daniel Rose +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import AsyncStreamEmitter = require('async-stream-emitter'); +import AGServer = require('socketcluster-server/server'); +import ConsumableStream = require('consumable-stream'); +import AGChannel = require('ag-channel'); +import Consumer = require('writable-consumable-stream/consumer'); + +declare class AGSimpleBroker extends AsyncStreamEmitter { + isReady: boolean; + + emit(eventName: 'ready', data: {}): void; + emit(eventName: 'subscribe', data: AGSimpleBroker.SubscribeData): void; + emit(eventName: 'unsubscribe', data: AGSimpleBroker.UnsubscribeData): void; + emit(eventName: 'error', data: { error: Error }): void; + emit(eventName: 'publish', data: AGSimpleBroker.PublishData): void; + + listener(eventName: 'ready'): ConsumableStream<{}>; + listener(eventName: 'subscribe'): ConsumableStream; + listener(eventName: 'unsubscribe'): ConsumableStream; + listener(eventName: 'error'): ConsumableStream<{ error: Error }>; + listener(eventName: 'publish'): ConsumableStream; + + exchange(): AGSimpleBroker.SimpleExchange; + + subscribeClient(client: { id: string }, channelName: string): Promise; + subscribeSocket(client: { id: string }, channelName: string): Promise; + + unsubscribeClient(client: { id: string }, channelName: string): Promise; + unsubscribeSocket(client: { id: string }, channelName: string): Promise; + + subscriptions(): string[]; + isSubscribed(channelName: string): boolean; + + setCodecEngine(codec: AGServer.CodecEngine): void; + + invokePublish(channelName: string, data: any, suppressEvent?: boolean): Promise; + transmitPublish(channelName: string, data: any, suppressEvent?: boolean): Promise; +} + +export = AGSimpleBroker; + +declare namespace AGSimpleBroker { + class SimpleExchange extends AsyncStreamEmitter implements AGChannel.Client { + id: string; + + constructor(broker: AGSimpleBroker); + + emit(eventName: 'subscribe', data: SubscribeData): void; + emit(eventName: 'unsubscribe', data: UnsubscribeData): void; + + listener(eventName: 'subscribe'): ConsumableStream; + listener(eventName: 'unsubscribe'): ConsumableStream; + + /* AGChannel.Client start */ + + closeChannel(channelName: string): void; + + killChannel(channelName: string): void; + + killChannelOutputConsumer(consumerId: number): void; + killChannelListenerConsumer(consumerId: number): void; + + getChannelOutputConsumerStats(consumerId: number): Consumer.ConsumerStats; + getChannelListenerConsumerStats(consumerId: number): Consumer.ConsumerStats; + + getChannelBackpressure(channelName: string): number; + + getChannelListenerConsumerBackpressure(consumerId: number): number; + getChannelOutputConsumerBackpressure(consumerId: number): number; + + channelCloseOutput(channelName: string): void; + channelCloseListener(channelName: string, eventName: string): void; + channelCloseAllListeners(channelName: string): void; + + channelKillOutput(channelName: string): void; + channelKillListener(channelName: string, eventName: string): void; + channelKillAllListeners(channelName: string): void; + + channelGetOutputConsumerStatsList(channelName: string): Consumer.ConsumerStats[]; + channelGetListenerConsumerStatsList(channelName: string, eventName: string): Consumer.ConsumerStats[]; + channelGetAllListenersConsumerStatsList(channelName: string): Consumer.ConsumerStats[]; + + channelGetOutputBackpressure(channelName: string): number; + channelGetListenerBackpressure(channelName: string, eventName: string): number; + channelGetAllListenersBackpressure(channelName: string): number; + + channelHasOutputConsumer(channelName: string, consumerId: number): boolean; + channelHasListenerConsumer(channelName: string, eventName: string, consumerId: number): boolean; + channelHasAnyListenerConsumer(channelName: string, consumerId: number): boolean; + + getChannelState(channelName: string): AGChannel.ChannelState; + getChannelOptions(channelName: string): object; + + subscribe(channelName: string): AGChannel; + unsubscribe(channelName: string): Promise; + isSubscribed(channelName: string, includePending?: boolean): boolean; + + transmitPublish(channelName: string, data: any): Promise; + invokePublish(channelName: string, data: any): Promise; + + /* AGChannel.Client end */ + + transmit(event: string, packet: any): void; + + destroy(): void; + + channel(channelName: string): AGChannel; + + closeAllChannelOutputs(): void; + closeAllChannelListeners(): void; + closeAllChannels(): void; + + killAllChannelOutputs(): void; + killAllChannelListeners(): void; + killAllChannels(): void; + + getAllChannelOutputsConsumerStatsList(): Consumer.ConsumerStats[]; + + getAllChannelListenersConsumerStatsList(): Consumer.ConsumerStats[]; + + getBackpressure(): number; + getAllChannelOutputsBackpressure(): number; + getAllChannelListenersBackpressure(): number; + getAllChannelsBackpressure(): number; + + hasAnyChannelOutputConsumer(consumerId: number): boolean; + hasAnyChannelListenerConsumer(consumerId: number): boolean; + + subscriptions(includePending?: boolean): string[]; + } + + interface SubscribeData { + channel: string; + } + + interface UnsubscribeData { + channel: string; + } + + interface PublishData { + channel: string; + date: any; + } +} diff --git a/types/hapi__cryptiles/tsconfig.json b/types/ag-simple-broker/tsconfig.json similarity index 76% rename from types/hapi__cryptiles/tsconfig.json rename to types/ag-simple-broker/tsconfig.json index 0efb6db692c390c..fb1b85de698c9a7 100644 --- a/types/hapi__cryptiles/tsconfig.json +++ b/types/ag-simple-broker/tsconfig.json @@ -2,7 +2,8 @@ "compilerOptions": { "module": "commonjs", "lib": [ - "es6" + "es6", + "esnext.asynciterable" ], "noImplicitAny": true, "noImplicitThis": true, @@ -12,17 +13,17 @@ "typeRoots": [ "../" ], + "types": [], "paths": { - "@hapi/cryptiles": [ - "hapi__cryptiles" + "sc-channel": [ + "sc-channel/v1" ] }, - "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", - "hapi__cryptiles-tests.ts" + "ag-simple-broker-tests.ts" ] } diff --git a/types/jest-matcher-utils/tslint.json b/types/ag-simple-broker/tslint.json similarity index 100% rename from types/jest-matcher-utils/tslint.json rename to types/ag-simple-broker/tslint.json diff --git a/types/agenda/tsconfig.json b/types/agenda/tsconfig.json index 0a553809fd4f229..921eae2879339d4 100644 --- a/types/agenda/tsconfig.json +++ b/types/agenda/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "agenda-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/agenda/tslint.json b/types/agenda/tslint.json index 3d59f55fdabcf45..7b32077df7df7cc 100644 --- a/types/agenda/tslint.json +++ b/types/agenda/tslint.json @@ -1,80 +1,19 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "space-before-function-paren": false } -} +} \ No newline at end of file diff --git a/types/agora-rtc-sdk/index.d.ts b/types/agora-rtc-sdk/index.d.ts index 81700ec99cdc425..7600e19ba2a39d1 100644 --- a/types/agora-rtc-sdk/index.d.ts +++ b/types/agora-rtc-sdk/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for agora-rtc-sdk 2.6 +// Type definitions for agora-rtc-sdk 3.0 // Project: https://github.com/AgoraIO/web-archive#readme // Definitions by: Menthays // Derek Lu @@ -26,7 +26,7 @@ declare namespace AgoraRTC { * To share the screen on Electron, call this method to get the screen sources. See [Share the Screen](../../screensharing_web?platform=Web#electron) for details. * * If this method succeeds, the SDK returns a list of screen sources in an array of {@link DesktopCapturerSource} objects. - * @example **Sample Code** + * @example **Sample code** * ```javascript * AgoraRTC.getScreenSources(function(err, sources) { * console.log(sources) @@ -70,7 +70,11 @@ declare namespace AgoraRTC { * * This method returns the codecs supported by both the Agora Web SDK and the web browser. The Agora Web SDK supports VP8 and H.264 for video, and OPUS for audio. * - * This method supports all web browsers. For web browsers that do not support WebRTC or are not recognized, the returned codec list is empty. + * **Note:** + * + * - This method supports all web browsers. For web browsers that do not support WebRTC or are not recognized, the returned codec list is empty. + * - The returned codec list is based on the [SDP](https://tools.ietf.org/html/rfc4566) used by the web browser and for reference only. + * - Some Android phones might claim to support H.264 but have problems in communicating with other platforms using H.264. In this case, we recommend using the VP8 codec. * * @returns Returns a `Promise` object. In the `.then(function(result){})` callback, `result` has the following properties: * - `video`: array, the supported video codecs. The array might include `"H264"` and `"VP8"`, or be empty. @@ -113,8 +117,12 @@ declare namespace AgoraRTC { * This method enumerates the available media input and output devices, such as microphones, cameras, headsets, and so on. * * If this method succeeds, the SDK returns a list of media devices in an array of {@link MediaDeviceInfo} objects. + * + * **Note:** + * + * On Safari 12.1 or later, call this method after calling {@link createStream} successfully. * @example - * **Sample Code** + * **Sample code** * * ``` javascript * AgoraRTC.getDevices (function(devices) { @@ -213,8 +221,91 @@ declare namespace AgoraRTC { */ readonly kind: string; } + /** + * Error messages of stream playback + * + * When [[Stream.play]] fails to play the stream, this interface provides detailed error messages. + * + * In most cases, you can prompt the user to resume the playback ([[Stream.resume]]) by a user gesture except when the {@link status} is "aborted". + */ + interface StreamPlayError { + /** + * The status of the player: + * - "aborted": The player is removed before the stream is played successfully. + * - "paused": The player is stopped. + */ + readonly status: string; + /** + * The reason why the playback fails. Usually, this value is an event that triggers the playback failure. Possible values include the following: + * - "stalled": The failure might be caused by the browser policy. See [stalled event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/stalled_event). + * - "pause": The stream playback might be paused by the user. See [pause event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/pause_event). + * - "suspend": The failure might be caused by the browser policy. See [suspend event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/suspend_event). + * - "canplay": Some browsers automatically stop the playback when the playback window is not displayed on the screen. See [canplay event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/canplay_event). + * - "timer": The playback failure is caused by an unknown reason and captured by the internal timer. + * + * Due to the differences in browsers, `reason` might have different values for the same event. + */ + readonly reason: string; + } + /** + * The video encoder configuration. + * + * This interface sets the video encoder configuration in {@link setVideoEncoderConfiguration}. + * + * Depending on the OS, browser, and camera, the actual resolution, frame rate, and bitrate might be different from the set values. + */ + interface VideoEncoderConfiguration { + /** + * Resolution of the video. + * + * We recommend using common resolutions, for example: + * + * - 480 × 360 + * - 640 × 480 + * - 960 × 720 + * + */ + resolution?: { + /** Width of the video. The value range is [1,10000]. */ + width: number, + /** Height of the video. The value range is [1,10000]. */ + height: number, + }; + /** + * The video frame rate (fps). + * + * The value range is [1, 10000]. We recommend setting the frame rate between 5 fps and 30 fps. + * + * **Note:** + * - This parameter sets the local capturing video frame rate. The actual encoding frame rate depends on the device, system, and browser. + * - When the network conditions change, the browser adjusts the encoding frame rate automatically. + */ + frameRate?: { + /** The minimum frame rate. The SDK uses this value as the preferred frame rate. */ + min: number, + /** The maximum frame rate. */ + max: number, + }; + /** + * The video bitrate (Kbps). The value range is [1,10000000]. + * + * We recommend setting the bitrate between 100 Kbps and 5000 Kbps. You can refer to the table below and set your bitrate. + * + * [[include:VideoProfileDefinition.md]] + */ + bitrate?: { + /** The minimum bitrate. */ + min: number, + /** The maximum bitrate. */ + max: number, + }; + } - /** Audio statistics of the remote stream. */ + /** + * Audio statistics of the remote stream. + * + * If {@link getRemoteAudioStats} is called successfully, the {@link RemoteAudioStatsMap} interface provides the UID and {@link RemoteAudioStats} of each remote user. + */ interface RemoteAudioStats { /** * End-to-end delay in ms. @@ -254,7 +345,11 @@ declare namespace AgoraRTC { readonly TotalPlayDuration?: string; } - /** Audio statistics of the local stream. */ + /** + * Audio statistics of the local stream. + * + * If {@link getLocalAudioStats} is called successfully, the {@link LocalAudioStatsMap} provides the UID and {@link LocalAudioStats} of the local user. + */ interface LocalAudioStats { /** Energy level of the captured audio. */ readonly RecordingLevel?: string; @@ -280,7 +375,11 @@ declare namespace AgoraRTC { readonly MuteState?: string; } - /** Video statistics of the remote stream. */ + /** + * Video statistics of the remote stream. + * + * If {@link getRemoteVideoStats} is called successfully, the {@link RemoteVideoStatsMap} interface provides the UID and {@link RemoteVideoStats} of each remote user. + */ interface RemoteVideoStats { /** * End-to-end delay in ms. @@ -321,7 +420,11 @@ declare namespace AgoraRTC { readonly RenderResolutionHeight?: string; } - /** Video statistics of the local stream. */ + /** + * Video statistics of the local stream. + * + * If {@link getLocalVideoStats} is called successfully, the {@link LocalVideoStatsMap} interface provides the UID and {@link LocalVideoStats} of the local user. + */ interface LocalVideoStats { /** Bitrate of the local video set in [[setVideoProfile]]. */ readonly TargetSendBitrate?: string; @@ -354,7 +457,11 @@ declare namespace AgoraRTC { readonly TotalDuration?: string; } - /** Statistics of the network connection. */ + /** + * Statistics of the network connection. + * + * If {@link getTransportStats} is called successfully, this interface provides the statistics. + */ interface TransportStats { /** RTT (Round-Trip Time) between the SDK and the access node of the SD-RTN, in ms. */ readonly RTT?: string; @@ -373,7 +480,7 @@ declare namespace AgoraRTC { * * **Note:** * - * Chrome 61+ is required for this function, and the compatibility is not guaranteed. + * Chrome 61 or later is required for this function, and the compatibility is not guaranteed. * See [Network Information API](https://developer.mozilla.org/en-US/docs/Web/API/Network_Information_API) for details. */ readonly NetworkType?: "bluetooth" | "cellular" | "ethernet" | "none" | "wifi" | "wimax" | "other" | "unknown" | "UNSUPPORTED"; @@ -381,7 +488,11 @@ declare namespace AgoraRTC { readonly OutgoingAvailableBandwidth?: string; } - /** Statistics of the session connection. */ + /** + * Statistics of the session connection. + * + * If {@link getSessionStats} is called successfully, this interface provides the statistics. + */ interface SessionStats { /** Call duration in seconds, represented by an aggregate value. */ readonly Duration?: string; @@ -404,10 +515,14 @@ declare namespace AgoraRTC { readonly RecvBitrate?: string; } - /** Statistics of the network quality. */ + /** + * Statistics of the network quality. + * + * After joining the channel, the SDK triggers the `"network-quality"` callback once every two seconds and provides the network quality ratings in this interface. + */ interface NetworkQualityStats { /** - * The uplink network quality. + * Uplink network quality rating of the user in terms of the transmission bitrate, packet loss rate, average RTT (Round-Trip Time) and jitter of the uplink network. * * - "0": The network quality is unknown. * - "1": The network quality is excellent. @@ -415,11 +530,11 @@ declare namespace AgoraRTC { * - "3": Users can feel the communication slightly impaired. * - "4": Users can communicate only not very smoothly. * - "5": The network is so bad that users can hardly communicate. - * - "6": The network is down and users cannot communicate at all. + * - "6": The network is disconnected and users cannot communicate at all. */ readonly uplinkNetworkQuality?: string; /** - * The downlink network quality. + * Downlink network quality rating of the user in terms of packet loss rate, average RTT, and jitter of the downlink network. * * - "0": The network quality is unknown. * - "1": The network quality is excellent. @@ -432,7 +547,45 @@ declare namespace AgoraRTC { readonly downlinkNetworkQuality?: string; } - /** Manages the user layout configuration in the CDN live streaming. */ + /** + * Adds a watermark image to the CDN (Content Delivery Network) live stream in {@link setLiveTranscoding}. + * + * **Since** + *
   *3.0.0* + */ + interface TranscodingWatermark { + /** + * The HTTP/HTTPS URL address of the image on the broadcasting video. + * + * ASCII characters only. The maximum length of this parameter is 1024 bytes. Only supports online PNG files. + */ + url: string; + /** + * The position of the image on the upper left of the broadcasting video on the horizontal axis. + * + * Integer only. The value range is [0,10000]. The default value is 0. + */ + x?: number; + /** + * The position of the image on the upper left of the broadcasting video on the vertical axis. + * + * Integer only. The value range is [0,10000]. The default value is 0. + */ + y?: number; + /** + * The width of the watermark image. + * + * Integer only. The value range is [0,10000]. The default value is 160. + */ + width?: number; + /** + * The height of the watermark image. + * + * Integer only. The value range is [0,10000]. The default value is 160. + */ + height?: number; + } + /** Manages the user layout configuration in {@link setLiveTranscoding}. */ interface TranscodingUser { /** User ID of the CDN live host. */ uid?: number | string; @@ -483,22 +636,38 @@ declare namespace AgoraRTC { alpha?: number; } - /** A list of `RemoteAudioStats` objects, one per uid. */ + /** + * A list of `RemoteAudioStats` objects, one per uid. + * + * If {@link getRemoteAudioStats} is called successfully, this interface provides the UID and [[RemoteAudioStats]] of each remote user. + */ interface RemoteAudioStatsMap { [uid: string]: RemoteAudioStats; } - /** A list of `LocalAudioStats` objects, one per uid. */ + /** + * A list of `LocalAudioStats` objects, one per uid. + * + * If {@link getLocalAudioStats} is called successfully, this interface provides the UID and [[LocalAudioStats]] of the local user. + */ interface LocalAudioStatsMap { [uid: string]: LocalAudioStats; } - /** A list of `RemoteVideoStats` objects, one per uid. */ + /** + * A list of `RemoteVideoStats` objects, one per uid. + * + * If {@link getRemoteVideoStats} is called successfully, this interface provides the UID and [[RemoteVideoStats]] of each remote user. + */ interface RemoteVideoStatsMap { [uid: string]: RemoteVideoStats; } - /** A list of `LocalVideoStats` objects, one per uid. */ + /** + * A list of `LocalVideoStats` objects, one per uid. + * + * If {@link getLocalVideoStats} is called successfully, this interface provides the UID and [[LocalVideoStats]] of each remote user. + */ interface LocalVideoStatsMap { [uid: string]: LocalVideoStats; } @@ -526,7 +695,7 @@ declare namespace AgoraRTC { * * The log level follows the sequence of NONE, ERROR, WARNING, INFO, and DEBUG. * For example, if you set the log level as `AgoraRTC.Logger.setLogLevel(AgoraRTC.Logger.INFO);`, then you can see logs in levels INFO, ERROR, and WARNING. - * @param level The output log level. + * @param level The output log level. The default value is {@link DEBUG}. */ function setLogLevel(level: DEBUG|INFO|WARNING|ERROR|NONE): void; /** @@ -563,7 +732,7 @@ declare namespace AgoraRTC { * * [[include:ClientConfig-example.md]] * @example - * **Sample Code** + * **Sample code** * ``` javascript * var config = { * mode: "live", @@ -597,21 +766,22 @@ declare namespace AgoraRTC { * - For Native SDK v2.3.2 and later: * * Set {@link mode} as `"rtc"` or `"live"` if the Native SDK uses the communication channel profile. * * Set {@link mode} as `"live"` if the Native SDK uses the live broadcast channel profile. - * - For Native SDK before v2.3.2, set mode as "live" regardless of which channel profile the Native SDK uses. + * - For Native SDK before v2.3.2, set mode as "live" regardless of which channel profile the Native SDK uses. * * **Note:** * - * If you set {@link mode} as `"rtc"`, the Agora Recording SDK is not supported. + * The `"rtc"` mode supports the Agora Recording SDK 2.3.3 or later. */ mode: "live" | "rtc"; /** - * The codec the Web browser uses for encoding and decoding. - * - `"vp8"`: Sets the browser to use VP8 for encoding and decoding. - * - `"h264"`: Sets the browser to use H264 for encoding and decoding. + * The codec the Web browser uses for encoding. + * - `"vp8"`: Sets the browser to use VP8 for encoding. + * - `"h264"`: Sets the browser to use H.264 for encoding. * * **Note:** * - * Set {@link codec} as `"h264"` as long as Safari is involved in the session. + * - Safari 12.1 or earlier does not support the VP8 codec. + * - Codec support on mobile devices is a bit complex, see [Use Agora Web SDK on Mobile Devices](https://docs.agora.io/en/faq/web_on_mobile) for details. */ codec: "vp8" | "h264"; /** @@ -648,16 +818,15 @@ declare namespace AgoraRTC { } /** - * A class for managing user-specific CDN live audio/video transcoding settings. + * A class for managing user-specific CDN live audio/video transcoding settings in {@link setLiveTranscoding}. * - * @example **Sample Code** + * @example **Sample code** * ``` javascript * var LiveTranscoding = { * width: 640, * height: 360, * videoBitrate: 400, * videoFramerate: 15, - * lowLatency: false, * audioSampleRate: AgoraRTC.AUDIO_SAMPLE_RATE_48000, * audioBitrate: 48, * audioChannels: 1, @@ -673,28 +842,38 @@ declare namespace AgoraRTC { /** * Width of the video. * - * Positive integer, the default value is 640. The value range is [1, 10000]. + * Positive integer, the default value is 640. The value range is [64, 10000]. + * + * - When pushing video streams to the CDN, set the value of width × height to at least 64 × 64, or the SDK adjusts it to 64 x 64. + * - When pushing audio streams to the CDN, set the value of width × height to 0 × 0. */ width?: number; /** * Height of the video. * - * Positive integer, the default value is 360. The value range is [1, 10000]. + * Positive integer, the default value is 360. The value range is [64, 10000]. + * + * - When pushing video streams to the CDN, set the value of width × height to at least 64 × 64, or the SDK adjusts it to 64 x 64. + * - When pushing audio streams to the CDN, set the value of width × height to 0 × 0. */ height?: number; /** * Bitrate of the CDN live output video stream. * * Positive integer. The default value is 400 Kbps. The value range is [1,1000000]. + * + * Set the bitrate according to the {@link AgoraRTC.VideoEncoderConfiguration.bitrate Video Profile Table}. If you set a bitrate beyond the proper range, the SDK automatically adapts it to a value within the range. */ videoBitrate?: number; /** * Frame rate of the output data stream set for CDN live. * - * Positive integer. The default value is 15 fps. The value range is [1, 10000]. + * Positive integer. The default value is 15 fps. The value range is [1, 30]. Agora adjusts all values over 30 to 30. */ videoFramerate?: number; /** + * **DEPRECATED** + * * Latency mode: * - true: Low latency with unassured quality. * - false: (Default)High latency with assured quality. @@ -729,7 +908,9 @@ declare namespace AgoraRTC { /** Video GOP in frames. The default value is 30 frames. The value range is [1,10000]. */ videoGop?: number; /** - * Video codec profile type: + * Video codec profile type. + * + * Set it as 66, 77, or 100 (default). If you set this parameter to other values, Agora adjusts it to the default value 100. * * - 66: Baseline video codec profile. Generally used in video calls on mobile phones. * - 77: Main video codec profile.Generally used in mainstream electronics, such as MP4 players, portable video players, PSP, and iPads. @@ -749,13 +930,22 @@ declare namespace AgoraRTC { * * Agora supports a maximum of 17 transcoding users in a CDN streaming channel. See [[TranscodingUser]] for details. */ - transcodingUsers?: TranscodingUser[]; + transcodingUsers: TranscodingUser[]; + /** + * Adds a watermark image to the CDN live stream. + * + * **Since** + *
   *3.0.0* + * + * See [[TranscodingWatermark]] for details. + */ + images: TranscodingWatermark[]; } /** - * A class for configuring the imported live broadcast voice or video stream. + * A class for configuring the imported live broadcast voice or video stream in {@link addInjectStreamUrl}. * - * @example **Sample Code** + * @example **Sample code** * ```javascript * var InjectStreamConfig = { * width: 0, @@ -857,9 +1047,26 @@ declare namespace AgoraRTC { */ video: boolean; /** - * Marks whether this stream contains a screen-sharing track. + * Marks whether this stream contains a screen-sharing track. See [Share the Screen](../../../screensharing_web?platform=Web) for details. */ screen?: boolean; + /** + * Marks whether to share the audio playback when sharing the screen. + * + * **Since** + *
   *3.0.0* + * + * - `true`: Share the local audio playback when sharing the screen. + * - `false`: (Default) Do not share the local audio playback when sharing the screen. + * + * To share the local audio playback when sharing the screen, ensure that you set {@link screen} as `true`. We recommend also setting {@link audio} as `false`. If both `screenAudio` and `audio` are set as `true`, the stream only contains the local audio playback. + * + * **Note:** + * + * - This function supports only Chrome 73 or later on Windows. + * - For the audio sharing to take effect, the user must check **Share audio** in the pop-up window when sharing the screen. + */ + screenAudio?: boolean; /** * Specifies the audio source of the stream. */ @@ -875,19 +1082,36 @@ declare namespace AgoraRTC { /** * The camera device ID retrieved from the {@link getDevices} method. * - * The retrieved ID is ASCII characters, and the string length is greater than 0 and less than 256 bytes. + * The retrieved ID is ASCII characters, and the string length is greater than or equals to 0 and less than 256 bytes. + * + * When the string length is 0, this property is ignored. */ cameraId?: string; /** * The microphone device ID retrieved from the {@link getDevices} method. * - * The retrieved ID is ASCII characters, and the string length is greater than 0 and less than 256 bytes. + * The retrieved ID is ASCII characters, and the string length is greater than or equals to 0 and less than 256 bytes. + * + * When the string length is 0, this property is ignored. */ microphoneId?: string; /** - * Marks whether the video image of the publisher is mirrored on the publisher’s webpage. + * Sets using the front or rear camera + * + * You can set this parameter to use the front or rear camera on mobile devices: + * - `"user"`: The front camera. + * - `"environment"`: The rear camera. + */ + facingMode?: string; + /** + * Marks whether to mirror the local video image of the publisher in the local preview. + * + * This setting does not take effect in screen-sharing streams. * - * The default value is `true` (except in the screen-share mode). Agora recommends enabling this function when using the front camera, and disabling it when using the rear camera. + * - `true`: (Default) Mirror the local video. + * - `false`: Do not mirror the local video. + * + * Agora recommends enabling this function when using the front camera, and disabling it when using the rear camera. */ mirror?: boolean; /** @@ -957,6 +1181,8 @@ declare namespace AgoraRTC { /** * The connection statistics of the local stream. + * + * If the local stream calls {@link getStats} successfully, this interface provides the statistics. */ interface LocalStreamStats { /** Bytes of the sent audio. */ @@ -989,6 +1215,8 @@ declare namespace AgoraRTC { /** * The connection statistics of the remote stream. + * + * If the remote stream calls {@link getStats} successfully, this interface provides the statistics. */ interface RemoteStreamStats { /** Bytes of the received audio. */ @@ -1008,9 +1236,9 @@ declare namespace AgoraRTC { /** Decode frame rate after the video is received. */ videoReceiveDecodeFrameRate: string; /** Resolution width of the received video. */ - videoReceivedResolutionWidth?: string; + videoReceiveResolutionWidth?: string; /** Resolution height of the received video. */ - videoReceivedResolutionHeight?: string; + videoReceiveResolutionHeight?: string; /** Delay in accessing the SD-RTN (ms). */ accessDelay: string; /** @@ -1051,7 +1279,11 @@ declare namespace AgoraRTC { NetworkType: "bluetooth" | "cellular" | "ethernet" | "none" | "wifi" | "wimax" | "other" | "unknown" | "UNSUPPORTED"; } - /** System statistics. */ + /** + * System statistics. + * + * If {@link getSystemStats} is called successfully, this interface provides the system statistics. + */ interface SystemStats { /** Battery level of the system (%). */ BatteryLevel: 'string'; @@ -1062,7 +1294,7 @@ declare namespace AgoraRTC { * * A stream represents a published local or remote media stream object in a call session. * - * All Stream methods can be called for both local and remote streams, except for {@link Stream.init} that only applies to the local stream. + * All Stream methods can be called for both local and remote streams if not specified. */ interface Stream { /** Occurs when the user gives access to the camera and microphone. */ @@ -1071,6 +1303,18 @@ declare namespace AgoraRTC { on(event: "accessDenied", callback: (evt: any) => void): void; /** Occurs when screen-sharing stops. */ on(event: "stopScreenSharing", callback: (evt: any) => void): void; + /** + * Occurs when the video track no longer provides data to the stream. + * + * Possible reasons include device removal and deauthorization. See [MediaStreamTrack.onended](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onended). + */ + on(event: "videoTrackEnded", callback: (evt: any) => void): void; + /** + * Occurs when the audio track no longer provides data to the stream. + * + * Possible reasons include device removal and deauthorization. See [MediaStreamTrack.onended](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onended). + */ + on(event: "audioTrackEnded", callback: (evt: any) => void): void; /** * Occurs when the audio mixing stream playback starts/resumes. * @@ -1080,6 +1324,48 @@ declare namespace AgoraRTC { on(event: "audioMixingPlayed", callback: (evt: any) => void): void; /** Occurs when the last audio mixing stream playback finishes. */ on(event: "audioMixingFinished", callback: (evt: any) => void): void; + /** + * Occurs when the stream playback status changes. + * + * On Windows, frequent DOM manipulations might cause the browser to pause the Chrome player. To avoid this, you can listen for this event and call the {@link Stream.resume} method to resume the playback. + * + * This callback has the following properties. + * - isErrorState: Whether or not the playback fails. + * - true: The playback fails. + * - false: The playback is normal. + * - mediaType: The player type. + * - "audio": Audio player. + * - "video": Video player. + * - status: The playback status. + * - "play": Playing. + * - "aborted": The player is removed before the stream is played successfully. + * - "paused": The player is stopped. + * - reason: The reason why the playback status changes. Usually, this value is the event that triggers the status change. Possible values include the following: + * - "playing": The playback starts. See [HTMLMediaElement: playing event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/playing_event). + * - "stalled": The failure might be caused by the browser policy. See [stalled event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/stalled_event). + * - "pause": The stream playback might be paused by the user. See [pause event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/pause_event). + * - "suspend": The failure might be caused by the browser policy. See [suspend event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/suspend_event). + * - "canplay": Some browsers automatically stop the playback when the playback window is not displayed on the screen. See [canplay event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/canplay_event). + * - "timer": The playback failure is caused by an unknown reason and captured by the internal timer. + * + * @example **Sample code** + * + * ``` javascript + * stream.on("player-status-change", function(evt){ + * if (evt.isErrorState && evt.status === "paused"){ + * console.error(`Stream is paused unexpectedly. Trying to resume...`); + * stream.resume().then(function(){ + * console.log(`Stream is resumed successfully`); + * }).catch(function(e){ + * console.error(`Failed to resume stream. Error ${e.name} Reason ${e.message}`); + * }); + * } + * }); + * + * ``` + * + */ + on(event: "player-status-change", callback: (evt: any) => void): void; /** * Initializes the Stream Object * @@ -1102,7 +1388,7 @@ declare namespace AgoraRTC { * * The `info` field shows the extra information for the error. If no more extra information, its value will be `null`. * - * @example **Sample Code** + * @example **Sample code** * * ``` javascript * init(function() { @@ -1118,7 +1404,7 @@ declare namespace AgoraRTC { * @param onSuccess The callback when the method succeeds. * @param onFailure The callback when the method fails. */ - init(onSuccess?: () => void, onFailure?: (err: any) => void): void; + init(onSuccess?: () => void, onFailure?: (err: { type: "warning" | "error", msg: string, info?: string }) => void): void; /** * Plays the Audio/Video Stream * @@ -1128,14 +1414,21 @@ declare namespace AgoraRTC { * * Due to browser policy changes, this method must be triggered by the user's gesture on the Chrome 70+ and Safari browsers. * See [Autoplay Policy Changes](https://developers.google.com/web/updates/2017/09/autoplay-policy-changes) for details. - * @example **Sample Code** + * @example **Sample code** * * ``` javascript - * stream.play("agora_remote", {fit: 'contain'}); // stream will be played in the element with the ID agora_remote + * stream.play("agora_remote", {fit: "contain"}, function(errState){ + * if (errState && errState.status !== "aborted"){ + * // The playback fails, probably due to browser policy. You can resume the playback by user gesture. + * } + * }); // stream will be played in the element with the ID agora_remote * ``` * @param HTMLElementID Represents the HTML element ID. Digits and letters in the ASCII character set, “_”, “-", and ".". The string length must be greater than 0 and less than 256 bytes. * @param option Options for playing the stream. - * + * @param callback Whether or not the playback succeeds. + * - err + * - `null` if the playback succeeds. + * - [[StreamPlayError]] if the playback fails. */ play(HTMLElementID: string, option?: { /** @@ -1161,9 +1454,17 @@ declare namespace AgoraRTC { * For more information, see [Autoplay Policy Changes](https://developers.google.com/web/updates/2017/09/autoplay-policy-changes). */ muted?: boolean, - }): void; + }, callback?: (err: null | StreamPlayError) => void): void; + /** + * Resumes the Audio/Video Stream Playback + * + * This method can be used when the playback fails after calling the {@link Stream.play} method. In most cases, the playback is stopped due to the browser policy. + * + * This method needs to be triggered by a user gesture. See [Autoplay Policy Changes](https://developers.google.com/web/updates/2017/09/autoplay-policy-changes) for more information. + */ + resume(): Promise; /** - * Stops the Audio/Video Stream + * Stops the Audio/Video Stream Playback * * Call this method to stop playing the stream set by {@link Stream.play}. */ @@ -1189,6 +1490,8 @@ declare namespace AgoraRTC { * * This method enables the audio track in the stream. * + * If you call this method to enable the audio track for local streams, the `Client.on("unmute-audio")` callback is triggered on the remote client. + * * **Note:** For local streams, it works only when the audio flag is `true` in the stream. * * By default the audio track is enabled. If you call {@link muteAudio}, call this method to enable audio. @@ -1202,7 +1505,7 @@ declare namespace AgoraRTC { * * This method disables the audio track in the stream. * - * - For local streams, the SDK stops sending audio after you call this method. + * - For local streams, this method call stops sending audio and triggers the `Client.on("mute-audio")` callback on the remote client. * - For remote streams, the SDK still receives audio but stops playing it after you call this method. * * **Note:** For local streams, it works only when the audio flag is `true` in the stream. @@ -1216,6 +1519,8 @@ declare namespace AgoraRTC { * * This method enables the video track in the stream. * + * If you call this method to enable the audio track for local streams, the `Client.on("unmute-video")` callback is triggered on the remote client. + * * **Note:** For local streams, it works only when the video flag is `true` in the stream. * * By default the video track is enabled. If you call {@link muteVideo}, call this method to enable video. @@ -1229,7 +1534,7 @@ declare namespace AgoraRTC { * * This method disables the video track in the stream. * - * - For local streams, the SDK stops sending video after you call this method. + * - For local streams, this method call stops sending video and triggers the `Client.on("mute-video")` callback on the remote client. * - For remote streams, the SDK still receives video but stops playing it after you call this method. * * **Note:** For local streams, it works only when the video flag is `true` in the stream. @@ -1286,7 +1591,7 @@ declare namespace AgoraRTC { /** * Retrieves the Audio Flag * - * This method retrieves the audio flag. + * This method retrieves the audio flag and only works for local streams. * @returns * - true: The stream contains audio data. * - false: The stream does not contain audio data. @@ -1295,7 +1600,7 @@ declare namespace AgoraRTC { /** * Retrieves the Video Flag * - * This method retrieves the video flag. + * This method retrieves the video flag and only works for local streams. * @returns * - true: The stream contains video data. * - false: The stream does not contain video data. @@ -1307,7 +1612,7 @@ declare namespace AgoraRTC { * This method retrieves the current audio level. * * Call `setTimeout` or `setInterval` to retrieve the local or remote audio change. - * @example **Sample Code** + * @example **Sample code** * ``` javascript * setInterval(function() { * var audioLevel = stream.getAudioLevel(); @@ -1321,8 +1626,10 @@ declare namespace AgoraRTC { * * Due to browser policy changes, this method must be triggered by the user's gesture on the Chrome 70+ and Safari browser. * See [Autoplay Policy Changes](https://developers.google.com/web/updates/2017/09/autoplay-policy-changes) for details. + * + * @returns The audio level. The value range is [0,1]. */ - getAudioLevel(): number; + getAudioLevel(): number | void; /** * Retrieves the Audio Track * @@ -1351,12 +1658,13 @@ declare namespace AgoraRTC { * **Note:** * * - Supports Chrome 65+, Safari, and latest Firefox. + * - This method might not take effect on some mobile devices. * - Firefox does not support switching audio tracks between different microphones. You can replace the audio track from the microphone with an audio file, or vice versa. * - Replacing audio tracks from external audio devices may not be fully supported on Safari. * - The subscriber will not be notified if the track gets replaced. * - Agora recommends you use [[switchDevice]] to switch the media input devices. * - * @example **Sample Code** + * @example **Sample code** * * ```javascript * // Suppose we have a localStream1 @@ -1370,7 +1678,10 @@ declare namespace AgoraRTC { * * @param MediaStreamTrack The new track. * @param onSuccess The callback when the method succeeds. - * @param onFailure The callback when the method fails. + * @param onFailure The callback when the method fails. The following are common errors: + * - `"INVALID_TRACK"` and `"INVALID_TRACK_TYPE"`: The MediaStreamTrack object cannot be recognized. + * - `"MEDIASTREAM_TRACK_NOT_FOUND"`: The track to be replaced is not found, for example, replacing a video track in an audio-only stream. + * - `"NO_STREAM_FOUND"`: The local stream object is not found. */ replaceTrack(MediaStreamTrack: MediaStreamTrack, onSuccess?: () => void, @@ -1380,9 +1691,11 @@ declare namespace AgoraRTC { * * This method adds the audio or video tracks into the stream. * + * When the track is added, the `Client.on("stream-updated")` is triggered on the remote client. + * * @param track The track can be retrieved from the `mediaStream` method. * - * @example **Sample Code** + * @example **Sample code** * * ```javascript * var localStream = AgoraRTC.createStream({audio: true, video: false}); @@ -1391,7 +1704,7 @@ declare namespace AgoraRTC { * * **Note:** * - * - Firefox does not support this function. + * - This method does not support Firefox and Safari. * - A Stream object can have only one audio track and one video track at most. */ addTrack(track: MediaStreamTrack): void; @@ -1400,11 +1713,14 @@ declare namespace AgoraRTC { * * This method removes the audio or video tracks from the stream. * + * When the track is removed, the `Client.on("stream-updated")` callback is triggered on the remote client. + * * **Note:** * - * If you need to change both the audio and video tracks, Agora recommend using the [[replaceTrack]] method instead. + * - If you need to change both the audio and video tracks, we recommend using the [[replaceTrack]] method instead. + * - This method does not support Firefox and Safari. * - * @example **Sample Code** + * @example **Sample code** * * ```javascript * var localStream = AgoraRTC.createStream({audio: true, video: true}); @@ -1412,16 +1728,12 @@ declare namespace AgoraRTC { * ``` * * @param track The track can be retrieved from the `mediaStream` method. - * - * **Note:** - * - * Firefox does not support this function. */ removeTrack(track: MediaStreamTrack): void; /** * Sets the Audio Profile * - * This method sets the audio profile. + * This method sets the audio profile of the local stream. * * It is optional and works only when called before {@link Stream.init}. The default value is `"music_standard"`. * @@ -1431,7 +1743,7 @@ declare namespace AgoraRTC { * * - Firefox does not support setting the audio encoding rate. * - Safari does not support stereo audio. - * - The latest version of Google Chrome does not support playing stereo audio, but supports sending a stereo audio stream. + * - Google Chrome does not support playing stereo audio, but supports sending a stereo audio stream. If the audio profile is set to stereo, the `AEC`, `AGC`, and `ANS` options in {@link audioProcessing} are automatically disabled. * * @param profile The audio profile has the following options: * - `"speech_low_quality"`: Sample rate 16 kHz, mono, encoding rate 24 Kbps. @@ -1455,16 +1767,14 @@ declare namespace AgoraRTC { /** * Sets the Audio Output * - * This method sets the audio output device for the remote stream. You can use it to switch between the microphone and the speakerphone. - * - * It can be called either before or after the remote stream is played. + * This method sets the audio output device for the remote stream. You can use it to switch between the speakerphones. It can be called either before or after the remote stream is played. * * **Note:** * - * Only Chrome 49+ supports this function. - * @param deviceId The device ID can be retrieved from {@link getDevices}, whose [[kind]] should be "audiooutput". - * - * The retrieved ID is ASCII characters, and the string length is greater than 0 and less than 256 bytes. + * Only Chrome 49 or later supports this function. + * @param deviceId The device ID can be retrieved from {@link getDevices}, whose [[kind]] should be "audiooutput". The retrieved ID is ASCII characters, and the string length is greater than 0 and less than 256 bytes. + * @param onSuccess The callback when the method succeeds. + * @param onFailure The callback when the method fails. */ setAudioOutput(deviceId: string, onSuccess?: () => void, @@ -1479,15 +1789,17 @@ declare namespace AgoraRTC { * * If you call this method after [[publish]], there is no need to re-publish the stream after switching the device. * - * **Note:** - * * This method does not support the following scenarios: * * - Dual-stream mode is enabled by [[enableDualStream]]. + * - During audio mixing. * - The remote stream. * - The stream is created by defining the [[audioSource]] and [[videoSource]] properties. * - The Firefox browser. * + * **Note:** + * + * This method might not take effect on some mobile devices. * @param type Type of the device: "audio" or "video". * @param deviceId Device ID, which can be retrieved from [[getDevices]]. The retrieved ID is ASCII characters, and the string length is greater than 0 and less than 256 bytes. * @param onSuccess The callback when the method succeeds. @@ -1502,16 +1814,59 @@ declare namespace AgoraRTC { /** * Sets the Video Profile * - * This method sets the video profile. + * This method sets the video encoding profile for the local stream. Each video encoding profile includes a set of parameters, such as the resolution, frame rate, and bitrate. The default value is `"480p_1"`. * - * It is optional and works only when called before {@link Stream.init}. The default value is `"480p_1"`. + * This method is optional and is usually called before {@link Stream.init}. From v2.7, you can also call this method after {@link Stream.init} to change the video encoding profile. + * + * **Note:** * + * - Do not call this method when publishing streams. + * - On some iOS devices, when you update the video profile after {@link Stream.init}, black bars might appear around your video. + * - Changing the video profile after {@link Stream.init} works only on Chrome 63 or later and Safari 11 or later. * @example `setVideoProfile("480p");` * @param profile The video profile. See the following table for its definition and supported profiles in different scenarios. * * [[include:VideoProfileDefinition.md]] */ setVideoProfile(profile: string): void; + /** + * Customizes the Video Encoder Configuration + * + * You can use this method to customize the video resolution, frame rate, and bitrate of the local stream. This method can be called before or after {@link Stream.init}. + * + * **Note:** + * + * - Do not call this method when publishing streams. + * - On some iOS devices, when you update the video encoder configuration after {@link Stream.init}, black bars might appear around your video. + * - The actual resolution, frame rate, and bitrate depend on the device, see [MediaStreamTrack.applyConstraints()](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/applyConstraints) for more information. + * - This method works on Chrome 63 or later and is not fully functional on other browsers with the following issues: + * - The frame rate setting does not take effect on Safari 12 or earlier. + * - Safari 11 or earlier only supports specific resolutions. + * - Safari on iOS does not support low resolutions in H.264 codec. + * + * @example **Sample code** + * ```javascript + * stream.setVideoEncoderConfiguration({ + * // Video resolution + * resolution: { + * width: 640, + * height: 480 + * }, + * // Video encoding frame rate. We recommend 15 fps. Do not set this to a value greater than 30. + * frameRate: { + * min: 15, + * max: 30 + * }, + * // Video encoding bitrate. + * bitrate: { + * min: 1000, + * max: 5000 + * } + * }); + * ``` + * + */ + setVideoEncoderConfiguration(config: VideoEncoderConfiguration): void; /** * Sets the Screen Profile * @@ -1528,6 +1883,10 @@ declare namespace AgoraRTC { * * You can specify the number of playback loops and play time duration. * + * When the audio mixing file playback starts, the SDK triggers the `Stream.on("audioMixingPlayed")` callback on the local client. + * + * When the audio mixing file playback finishes, the SDK triggers the `Stream.on("audioMixingFinished")` callback on the local client. + * * **Note:** * * - This method supports the following browsers: @@ -1543,12 +1902,16 @@ declare namespace AgoraRTC { * The callback of this method: * * - null: The method succeeds. - * - err: The method fails. + * - err: The method fails. Possible errors: + * + * - "BROWSER_NOT_SUPPORT": Does not support the current browser. + * - "LOAD_AUDIO_FAILED": Fails to load the online audio file. + * - "CREATE_BUFFERSOURCE_FAILED": Fails to create buffer for audio mixing. * * **Note:** * The callbacks of the other audio mixing methods are the same as this one, using the Node.js callback pattern. * - * @example **Sample Code** + * @example **Sample code** * * ``` javascript * stream.startAudioMixing({ @@ -1613,6 +1976,7 @@ declare namespace AgoraRTC { /** * Stops Audio Mixing * + * When the audio mixing file playback is stopped, the SDK triggers the `Stream.on("audioMixingFinished")` callback on the local client. */ stopAudioMixing(callback?: (err: string | null) => void): void; /** @@ -1623,6 +1987,7 @@ declare namespace AgoraRTC { /** * Resumes Audio Mixing * + * When the audio mixing file playback resumes, the SDK triggers the `Stream.on("audioMixingPlayed")` callback on the local client. */ resumeAudioMixing(callback?: (err: string | null) => void): void; /** @@ -1938,6 +2303,72 @@ declare namespace AgoraRTC { resumeAllEffects( callback?: (err: string | null) => void ): void; + /** + * Enables/Disables image enhancement and sets the options. + * + * **Since** + *
   *3.0.0* + * + * This method supports the following browsers: + * * Safari 12 or later + * * Chrome 65 or later + * * Firefox 70.0.1 or later + * + * **Note:** + * + * - This function does not support mobile devices. + * - If the dual-stream mode is enabled ({@link enableDualStream}), the image enhancement options apply only to the high-video stream. + * - To remove a video track ({@link removeTrack}) after enabling image enhancement, call this method to disable image enhancement first. + * + * @param enabled Sets whether to enable image enhancement: + * + * - `true`: Enables image enhancement. + * - `false`: (Default) Disables image enhancement. + * @param options The image enhancement options. + * + * @example **Sample code** + * + * ``` javascript + * stream.setBeautyEffectOptions(true, { + * lighteningContrastLevel: 1, + * lighteningLevel: 0.7, + * smoothnessLevel: 0.5, + * rednessLevel: 0.1 + * }); + * + * ``` + */ + setBeautyEffectOptions( + enabled: boolean, + options: { + /** + * The contrast level, used with the `lighteningLevel` parameter. + * + * - 0: Low contrast level. + * - 1: (Default) The original contrast level. + * - 2: High contrast level. + */ + lighteningContrastLevel?: number, + /** + * The brightness level. + * + * The value ranges from 0.0 (original) to 1.0. The default value is 0.7. + */ + lighteningLevel?: number, + /** + * The sharpness level. + * + * The value ranges from 0.0 (original) to 1.0. The default value is 0.5. This parameter is usually used to remove blemishes. + */ + smoothnessLevel?: number, + /** + * The redness level. + * + * The value ranges from 0.0 (original) to 1.0. The default value is 0.1. This parameter adjusts the red saturation level. + */ + rednessLevel?: number + }, + ): void; /** * Retrieves the Stream ID * @@ -1960,7 +2391,7 @@ declare namespace AgoraRTC { * - If it is a subscribing stream, then the stats is {@link RemoteStreamStats}. * * - * @example **Sample Code** + * @example **Sample code** * * ``` javascript * localStream.getStats((stats) => { @@ -2003,9 +2434,40 @@ declare namespace AgoraRTC { * The Client object returned by the {@link createClient} method provides access to much of the core AgoraRTC functionality. */ interface Client { + /** + * Occurs when the first remote audio frame is decoded. + * + * The SDK triggers this callback when the local client successfully subscribes to a remote stream and decodes the first audio frame. + * + * **Note:** This callback supports only the Google Chrome browser. + * @example **Sample code** + * ``` javascript + * client.on('first-audio-frame-decode', function (evt) { + * console.log('first-audio-frame-decode'); + * console.log(evt.stream); + * }) + * + * ``` + */ + on(event: "first-audio-frame-decode", callback: (evt: any) => void): void; + /** + * Occurs when the first remote video frame is decoded. + * + * The SDK triggers this callback when the local client successfully subscribes to a remote stream and decodes the first video frame. + * + * @example **Sample code** + * ``` javascript + * client.on('first-video-frame-decode', function (evt) { + * console.log('first-video-frame-decode'); + * console.log(evt.stream); + * }) + * + * ``` + */ + on(event: "first-video-frame-decode", callback: (evt: any) => void): void; /** * Occurs when the local stream is published. - * @example **Sample Code** + * @example **Sample code** * ``` javascript * client.on("stream-published", function(evt) { * console.log("local stream published"); @@ -2017,7 +2479,11 @@ declare namespace AgoraRTC { on(event: "stream-published", callback: (evt: any) => void): void; /** * Occurs when the remote stream is added. - * @example **Sample Code** + * + * **Note:** + * + * When the local user joins the channel, if other users are already in the channel, the SDK also reports to the app on the existing remote streams. + * @example **Sample code** * ``` javascript * client.on("stream-added", function(evt) { * var stream = evt.stream; @@ -2032,7 +2498,7 @@ declare namespace AgoraRTC { on(event: "stream-added", callback: (evt: any) => void): void; /** * Occurs when the remote stream is removed; for example, a peer user calls {@link Client.unpublish}. - * @example **Sample Code** + * @example **Sample code** * ``` javascript * client.on("stream-removed", function(evt) { * var stream = evt.stream; @@ -2045,7 +2511,7 @@ declare namespace AgoraRTC { on(event: "stream-removed", callback: (evt: any) => void): void; /** * Occurs when a user subscribes to a remote stream. - * @example **Sample Code** + * @example **Sample code** * ``` javascript * client.on("stream-subscribed", function(evt) { * var stream = evt.stream; @@ -2058,21 +2524,66 @@ declare namespace AgoraRTC { */ on(event: "stream-subscribed", callback: (evt: any) => void): void; /** - * Occurs when the peer user leaves the channel; for example, the peer user calls {@link Client.leave}. - * @example **Sample Code** - * ``` javascript - * client.on("peer-leave", function(evt) { - * var uid = evt.uid; - * console.log("remote user left ", uid); - * //…… - * }); + * Occurs when a remote user or host joins the channel. * - * ``` - */ - on(event: "peer-leave", callback: (evt: any) => void): void; + * - Communication channel (rtc mode): This callback notifies the app that another user joins the channel. + * If other users are already in the channel, the SDK also reports to the app on the existing users. + * - Live-broadcast channel (live mode): This callback notifies the app that the host joins the channel. + * If other hosts are already in the channel, the SDK also reports to the app on the existing hosts. Agora recommends limiting the number of hosts to 17. + * + * The SDK triggers this callback under one of the following circumstances: + * - A remote user/host joins the channel by calling the [[Client.join]] method. + * - A remote user switches the user role to the host by calling the [[Client.setClientRole]] method after joining the channel. + * - A remote user/host rejoins the channel after a network interruption. + * - The host injects an online media stream into the channel by calling the [[Client.addInjectStreamUrl]] method. + * + * @example **Sample code** + * + * ```javascript + * client.on('peer-online', function(evt) { + * console.log('peer-online', evt.uid); + * }); + * ``` + * + */ + on(event: "peer-online", callback: (evt: + /** @param uid ID of the user or host who joins the channel. */ + { uid: string }) => void): void; + /** + * Occurs when a remote user becomes offline. + * + * The SDK triggers this callback in the following situations: + * - A remote user calls {@link Client.leave} and leaves the channel. + * - A remote user drops offline. When no data packet of the user or host is received for 20 seconds, the SDK assumes that the user drops offline. + * A poor network connection may lead to false detections, so we recommend using the signaling system for reliable offline detection. + * - A remote user switches the client role from host to audience. + * + * **Note:** + * In live-broadcast channels, the SDK triggers this callback only when a host goes offline. + * + * @example **Sample code** + * ``` javascript + * client.on("peer-leave", function(evt) { + * var uid = evt.uid; + * var reason = evt.reason; + * console.log("remote user left ", uid, "reason: ", reason); + * //…… + * }); + * + * ``` + */ + on(event: "peer-leave", callback: (evt: + /** + * @param uid ID of the remote user. + * @param reason Reason why the user goes offline. + * - "Quit": The user calls {@link Client.leave} and leaves the channel. + * - "ServerTimeOut": The user drops offline. + * - "BecomeAudience": The client role switches from `"host"` to `"audience"`. + */ + { uid: string, reason: string }) => void): void; /** * Occurs when the peer user mutes the audio. - * @example **Sample Code** + * @example **Sample code** * ``` javascript * client.on("mute-audio", function(evt) { * var uid = evt.uid; @@ -2085,7 +2596,7 @@ declare namespace AgoraRTC { on(event: "mute-audio", callback: (evt: any) => void): void; /** * Occurs when the peer user unmutes the audio. - * @example **Sample Code** + * @example **Sample code** * ``` javascript * client.on("unmute-audio", function (evt) { * var uid = evt.uid; @@ -2097,7 +2608,7 @@ declare namespace AgoraRTC { on(event: "unmute-audio", callback: (evt: any) => void): void; /** * Occurs when the peer user turns off the video. - * @example **Sample Code** + * @example **Sample code** * ``` javascript * client.on("mute-video", function (evt) { * var uid = evt.uid; @@ -2110,7 +2621,7 @@ declare namespace AgoraRTC { on(event: "mute-video", callback: (evt: any) => void): void; /** * Occurs when the peer user turns on the video. - * @example **Sample Code** + * @example **Sample code** * ``` javascript * client.on("unmute-video", function (evt) { * var uid = evt.uid; @@ -2121,8 +2632,30 @@ declare namespace AgoraRTC { */ on(event: "unmute-video", callback: (evt: any) => void): void; /** - * This callback notifies the peer user that they are banned from the channel. Only the banned users receive this callback. - * @example **Sample Code** + * Occurs when encryption or decryption fails during publishing or subscribing to a stream. + * + * **Since** + *
   *3.0.0* + * + * The failure is usually due to a wrong encryption password ({@link setEncryptionSecret}) or an incorrect encryption mode ({@link setEncryptionMode}). + * + * @example **Sample code** + * ```javascript + * client.on("crypt-error", function (evt) { + * console.log(evt.cryptType + "error!"); + * }); + * ``` + */ + on(event: "crypt-error", callback: (evt: any) => void): void; + /** + * This callback notifies the peer user that he/she is banned from the channel. Only the banned users receive this callback. + * + * Possible reasons include: + * - K_CHANNEL_PERMISSION_INVALID: The user has no permission. + * - K_UID_BANNED: The UID is banned. + * - K_IP_BANNED: The IP is banned. + * - K_CHANNEL_BANNED The channel is banned. + * @example **Sample code** * ``` javascript * client.on("client-banned", function (evt) { * var uid = evt.uid; @@ -2136,7 +2669,7 @@ declare namespace AgoraRTC { on(event: "client-banned", callback: (evt: any) => void): void; /** * This callback notifies the application who is the active speaker in the channel. - * @example **Sample Code** + * @example **Sample code** * ``` javascript * client.on("active-speaker", function(evt) { * var uid = evt.uid; @@ -2153,11 +2686,11 @@ declare namespace AgoraRTC { * If enabled, it reports the volumes every two seconds regardless of whether there are users speaking. * * The volume is an integer ranging from 0 to 100. Usually a user with volume above five will be counted as a speaking user. - * @example **Sample Code** + * @example **Sample code** * ``` javascript * client.on("volume-indicator", function(evt){ * evt.attr.forEach(function(volume, index){ - * console.log(`#{index} UID ${volume.uid} Level ${volume.level}`); + * console.log(`${index} UID ${volume.uid} Level ${volume.level}`); * }); * }); * ``` @@ -2177,6 +2710,12 @@ declare namespace AgoraRTC { on(event: "liveStreamingStopped", callback: (evt: any) => void): void; /** * Occurs when the live transcoding setting is updated. + * + * The SDK triggers this callback when the live transcoding setting is updated by calling the {@link setLiveTranscoding} method. + * + * **Note:** + * + * The first call of the {@link setLiveTranscoding} method does not trigger this callback. */ on(event: "liveTranscodingUpdated", callback: (evt: any) => void): void; /** @@ -2187,7 +2726,7 @@ declare namespace AgoraRTC { * Occurs when the Token expires in 30 seconds. * * You should request a new Token from your server and call {@link Client.renewToken}. - * @example **Sample Code** + * @example **Sample code** * ``` javascript * client.on("onTokenPrivilegeWillExpire", function(){ * //After requesting a new token @@ -2201,7 +2740,7 @@ declare namespace AgoraRTC { * Occurs when the Token expires. * * You should request a new Token from your server and call {@link Client.renewToken}. - * @example **Sample Code** + * @example **Sample code** * ``` javascript * client.on("onTokenPrivilegeDidExpire", function(){ * //After requesting a new token @@ -2213,20 +2752,22 @@ declare namespace AgoraRTC { on(event: "onTokenPrivilegeDidExpire", callback: (evt: any) => void): void; /** * Occurs when an error message is reported and requires error handling. - * @example **Sample Code** + * + * Possible errors: + * - When `reason` is `"SOCKET_DISCONNECTED"`, the SDK disconnects from the Agora server due to network conditions and will automatically try reconnecting. + * - If this callback reports other reasons, it means that the error occurs during the reconnecting phase. + * @example **Sample code** * ``` javascript * client.on("error", function(err) { * console.log("Got error msg:", err.reason); * }); * * ``` - * - * For details, see [Error Codes and Warning Codes](../../../the_error_web). */ - on(event: "error", callback: (evt: any) => void): void; + on(event: "error", callback: (evt: { type: "error", reason: any }) => void): void; /** * Occurs when the network type changes. - * @example **Sample Code** + * @example **Sample code** * ``` javascript * client.on("network-type-changed", function(evt) { * console.log("Network Type Changed to", evt.networkType); @@ -2242,7 +2783,7 @@ declare namespace AgoraRTC { on(event: "network-type-changed", callback: (evt: any) => void): void; /** * Occurs when an audio input device is added or removed. - * @example **Sample Code** + * @example **Sample code** * ``` javascript * client.on("recording-device-changed", function(evt) { * console.log("Recording Device Changed", evt.state, evt.device); @@ -2254,7 +2795,7 @@ declare namespace AgoraRTC { on(event: "recording-device-changed", callback: (evt: any) => void): void; /** * Occurs when an audio output device is added or removed. - * @example **Sample Code** + * @example **Sample code** * ``` javascript * client.on("playout-device-changed", function(evt) { * console.log("Playout Device Changed", evt.state, evt.device); @@ -2269,7 +2810,7 @@ declare namespace AgoraRTC { on(event: "playout-device-changed", callback: (evt: any) => void): void; /** * Occurs when a camera is added or removed. - * @example **Sample Code** + * @example **Sample code** * ``` javascript * client.on("camera-changed", function(evt) { * console.log("Camera Changed", evt.state, evt.device); @@ -2288,7 +2829,7 @@ declare namespace AgoraRTC { * * - 0: High-bitrate, high-resolution video stream. * - 1: Low-bitrate, low-resolution video stream. - * @example **Sample Code** + * @example **Sample code** * * ``` javascript * client.on("stream-type-changed", function(evt) { @@ -2313,7 +2854,7 @@ declare namespace AgoraRTC { * If the connection is lost because, for example, the network is down or switched, the SDK triggers this callback and notifies the app that the state changes from `CONNECTED` to `CONNECTING`. * - `DISCONNECTING`: The SDK is disconnecting from Agora's edge server. The SDK enters this state when calling [[Client.leave]]. * - * @example **Sample Code** + * @example **Sample code** * * ``` javascript * client.on("connection-state-change", function(evt) { @@ -2330,7 +2871,7 @@ declare namespace AgoraRTC { /** * Occurs when the SDK starts republishing or re-subscribing to a stream. * - * @example **Sample Code** + * @example **Sample code** * * ``` javascript * client.on("stream-reconnect-start", function(evt) { @@ -2345,7 +2886,7 @@ declare namespace AgoraRTC { /** * Occurs when the SDK finishes republishing or re-subscribing to a stream. * - * @example **Sample Code** + * @example **Sample code** * * ``` javascript * client.on('stream-reconnect-end', function(evt) { @@ -2371,7 +2912,7 @@ declare namespace AgoraRTC { /** * Occurs when the user role switches in a live broadcast. For example, from a host to an audience or vice versa. * - * @example **Sample Code** + * @example **Sample code** * * ```javascript * client.on('client-role-changed', function(evt) { @@ -2382,26 +2923,6 @@ declare namespace AgoraRTC { on(event: "client-role-changed", callback: (evt: /** @param role Role that the user switches to. */ { role: string }) => void): void; - /** - * Occurs when a remote user or host joins the channel. - * - * - Communication channel (rtc mode): This callback notifies the app that another user joins the channel. - * If other users are already in the channel, the SDK also reports to the app on the existing users. - * - Live-broadcast channel (live mode): This callback notifies the app that the host joins the channel. - * If other hosts are already in the channel, the SDK also reports to the app on the existing hosts. Agora recommends limiting the number of hosts to 17. - * - * @example **Sample Code** - * - * ```javascript - * client.on('peer-online', function(evt) { - * console.log('peer-online', evt.uid); - * }); - * ``` - * - */ - on(event: "peer-online", callback: (evt: - /** @param uid ID of the user or host who joins the channel. */ - { uid: string }) => void): void; /** * Reports the network quality of the local user once every two seconds. * @@ -2411,7 +2932,7 @@ declare namespace AgoraRTC { * * This is an experimental feature and the network quality rating is for reference only. * - * @example **Sample Code** + * @example **Sample code** * * ``` javascript * client.on('network-quality', function(stats) { @@ -2473,7 +2994,7 @@ declare namespace AgoraRTC { * **Note:** * * This callback supports only the Chrome browser. - * @example **Sample Code** + * @example **Sample code** * ``` javascript * client.on("exception", function(evt) { * console.log(evt.code, evt.msg, evt.uid); @@ -2488,11 +3009,108 @@ declare namespace AgoraRTC { /** The uid of the user who experiences the exception or recovery event. */ uid: string }) => void): void; + /** + * Occurs when a remote user of the Native SDK calls `enableLocalVideo(true)` to enable video capture. + * + * **Since** + *
   *3.0.0* + */ + on(event: "enable-local-video", callback: (evt: { + /** The ID of the remote user. */ + uid: string + }) => void): void; + /** + * Occurs when a remote user of the Native SDK calls `enableLocalVideo(false)` to disable video capture. + * + * **Since** + *
   *3.0.0* + */ + on(event: "disable-local-video", callback: (evt: { + /** The ID of the remote user. */ + uid: string + }) => void): void; + /** + * Reports events during the media stream relay. + * + * **Since** + *
   *3.0.0* + */ + on(event: "channel-media-relay-event", callback: (evt: { + /** + * The event code for media stream relay. + * + * - 0: The user disconnects from the server due to a poor network connection. + * - 1: The user is connected to the server. + * - 2: The user joins the source channel. + * - 3: The user joins the destination channel. + * - 4: The SDK starts relaying the media stream to the destination channel. + * - 5: The server receives the video stream from the source channel. + * - 6: The server receives the audio stream from the source channel. + * - 7: The destination channel is updated. + */ + code: number + }) => void): void; + /** + * Occurs when the state of the media stream relay changes. + * + * **Since** + *
   *3.0.0* + * + * The SDK reports the state and error code of the current media relay in this callback. + */ + on(event: "channel-media-relay-state", callback: (evt: { + /** + * The state code. + * + * - 0: The SDK is initializing. + * - 1: The SDK tries to relay the media stream to the destination channel. + * - 2: The SDK successfully relays the media stream to the destination channel. + * - 3: An error occurs. See `code` for the error code. In case of an error, the SDK resets the media stream relay state, and you need to call {@link startChannelMediaRelay} to restart the relay. + */ + state: number, + /** + * The error code. + * + * - 0: No error. + * - 1: An error occurs in the server response. + * - 2: No server response. + * - 3: The SDK fails to access the service, probably due to limited resources of the server. + * - 4: Fails to send the relay request. + * - 5: Fails to accept the relay request. + * - 6: The server fails to receive the media stream. + * - 7: The server fails to send the media stream. + * - 8: The SDK disconnects from the server and fails to reconnect to the server due to a poor network connection. In this case, the SDK resets the relay state. You can try {@link startChannelMediaRelay} to restart the media stream relay. + * - 9: An internal error occurs in the server. + * - 10: The token of the source channel has expired. + * - 11: The token of the destination channel has expired. + * - 12: The relay has already started. Possibly caused by calling {@link startChannelMediaRelay} repeatedly, or calling {@link startChannelMediaRelay} before {@link stopChannelMediaRelay} succeeds. + * - 13: The relay has not started. Possibly caused by calling {@link updateChannelMediaRelay} before {@link startChannelMediaRelay} succeeds. + */ + code: number + }) => void): void; + /** + * Unbinds Events + * + * This method removes the events attached by the `Client.on()` method. + * + * @param eventType The event to be removed. + * @param callback The function to be removed. + * + * @example **Sample code** + * ``` javascript + * client.on("stream-published", function processStreamPublished(evt) { + * console.log("Stream Published"); + * evt.stream.play("divId"); + * client.off("stream-published", processStreamPublished); + * }) + * ``` + */ + off(eventType: string, callback: any): void; /** * Initializes a Client Object * * This method initializes the client object. - * @example **Sample Code** + * @example **Sample code** * ``` javascript * client.init(appId, function() { * console.log("client initialized"); @@ -2503,11 +3121,10 @@ declare namespace AgoraRTC { * // Error handling * }); * ``` - * @param appId Pass in the App ID for your project. ASCII characters only, and the string length must be greater than 0 and less than 256 bytes. - * - * To get your App ID, see [Get an App ID](../../../web_prepare?platform=Web#create-an-agora-account-and-get-an-app-id). + * @param appId Pass in the [App ID](https://docs.agora.io/en/Agora%20Platform/terms?platform=All%20Platforms#a-name-appid-a-app-id) for your project. ASCII characters only, and the string length must be greater than 0 and less than 256 bytes. * @param onSuccess The callback when the method succeeds. - * @param onFailure The callback when the method fails. + * @param onFailure The callback when the method fails. The following are the common errors: + * - `"BAD_ENVIRONMENT"`: Unsupported web browser. */ init( appId: string, @@ -2518,7 +3135,12 @@ declare namespace AgoraRTC { * Joins an AgoraRTC Channel * * This method joins an AgoraRTC channel. - * @example **Sample Code** + * + * When joining the channel, the `Client.on("connected")` and `Client.on("connection-state-change")` callbacks are triggered on the local client. + * + * After joining the channel, if the user joining the channel is in the Communication profile, or is a host in the Live Broadcast profile, the `Client.on("peer-online")` callback is triggered on the remote client. + * + * @example **Sample code** * ``` javascript * client.join(, "1024", null, function(uid) { * console.log("client" + uid + "joined channel"); @@ -2534,11 +3156,11 @@ declare namespace AgoraRTC { * - High security requirements: Pass the string of the Token or Channel Key as the parameter value. See [Use Security Keys](../../../token) for details. * @param channel A string that provides a unique channel name for the Agora session. The length must be within 64 bytes. Supported character scopes: * - * - 26 lowercase English letters a-z - * - 26 uppercase English letters A-Z - * - 10 numbers 0-9 - * - Space - * - "!", "#", "$", "%", "&", "(", ")", "+", "-", ":", ";", "<", "=", ".", ">", "?", "@", "[", "]", "^", "_", "{", "}", "|", "~", "," + * - All lowercase English letters: a to z. + * - All uppercase English letters: A to Z. + * - All numeric characters: 0 to 9. + * - The space character. + * - Punctuation characters and other symbols, including: "!", "#", "$", "%", "&", "(", ")", "+", "-", ":", ";", "<", "=", ".", ">", "?", "@", "[", "]", "^", "_", " {", "}", "|", "~", ",". * @param uid The user ID, an integer or a string, ASCII characters only. Ensure this ID is unique. * If you set the uid to `null`, the server assigns one and returns it in the `onSuccess` callback. * @@ -2547,21 +3169,30 @@ declare namespace AgoraRTC { * - All users in the same channel should have the same type (number or string) of `uid`. * - If you use a number as the user ID, it should be a 32-bit unsigned integer with a value ranging from 0 to (232-1). * - If you use a string as the user ID, the maximum length is 255 characters. + * - You can use string UIDs to interoperate with the Native SDK 2.8 or later. Ensure that the Native SDK uses the User Account to join the channel. See [Use String User Accounts](https://docs.agora.io/en/Interactive%20Broadcast/string_web?platform=Web). * @param onSuccess The callback when the method succeeds. The server returns the uid which represents the identity of the user. - * @param onFailure The callback when the method fails. + * @param onFailure The callback when the method fails. The following are common errors: + * - "INVALID_OPERATION": Unable to join the channel. Usually due to calling `Client.join` repeatedly. + * - "UID_CONFLICT": The `uid` of the local client conflicts with other users in the channel. + * - "SOCKET_ERROR": The SDK disconnects with the Agora server when joining the channel. */ join( tokenOrKey: string | null, channel: string, uid: number | string | null, onSuccess?: (uid: number | string) => void, - onFailure?: (err: any) => void + onFailure?: (err: string) => void ): void; /** * Leaves an AgoraRTC Channel * * This method enables a user to leave a channel. - * @example **Sample Code** + * + * When leaving the channel, the `Client.on("connection-state-change")` callback is triggered on the local client. + * + * After leaving the channel, if the user joining the channel is in the Communication profile, or is a host in the Live Broadcast profile, the `Client.on("peer-leave") callback` is triggered on the remote client. + * + * @example **Sample code** * ``` javascript * client.leave(function() { * console.log("client leaves channel"); @@ -2572,18 +3203,25 @@ declare namespace AgoraRTC { * }); * ``` * @param onSuccess The callback when the method succeeds. - * @param onFailure The callback when the method fails. + * @param onFailure The callback when the method fails. The following are common errors: + * - "INVALID_OPERATION": Invalid operation. Possible reasons are that this method is already called or the user is not in the channel. + * - "SOCKET_ERROR": The SDK disconnects with the Agora server when leaving the channel. + * - "LEAVE_MSG_TIMEOUT": The request to leave the channel times out. In this case, the SDK automatically disconnects and leaves the channel. */ - leave(onSuccess?: () => void, onFailure?: (err: any) => void): void; + leave(onSuccess?: () => void, onFailure?: (err: string) => void): void; /** * Publishes a Local Stream * * This method publishes a local stream to the SD-RTN. * + * When the stream is published, the following callbacks are triggered: + * - On the local client: `Client.on("stream-published")` + * - On the remote client: `Client.on("stream-added")` + * * **Note:** * * In a live broadcast, whoever calls this API is the host. - * @example **Sample Code** + * @example **Sample code** * ``` javascript * client.publish(stream, function(err) { * console.log(err); @@ -2591,15 +3229,22 @@ declare namespace AgoraRTC { * }) * ``` * @param stream Stream object, which represents the local stream. - * @param onFailure The callback when the method fails. + * @param onFailure The callback when the method fails. The following are common errors: + * - "STREAM_ALREADY_PUBLISHED": This stream object is already published. + * - "INVALID_LOCAL_STREAM": The stream object is invalid. + * - "INVALID_OPERATION": The user is not in the channel, possibly because the user has not joined the channel or the connection is interrupted. + * - "PUBLISH_STREAM_FAILED": Fails to publish the stream, usually because the connection is lost during publishing. + * - "PEERCONNECTION_FAILED": Fails to establish the media transport channel. */ - publish(stream: Stream, onFailure?: (err: any) => void): void; + publish(stream: Stream, onFailure?: (err: string) => void): void; /** * Unpublishes the Local Stream * * This method unpublishes the local stream. + * + * When the stream is unpublished, the `Client.on("stream-removed")` callback is triggered on the remote client. * @example - * **Sample Code** + * **Sample code** * ``` javascript * client.unpublish(stream, function(err) { * console.log(err); @@ -2608,14 +3253,21 @@ declare namespace AgoraRTC { * * ``` * @param stream Stream object, which represents the local stream. - * @param onFailure The callback when the method fails. + * @param onFailure The callback when the method fails. The following are common errors: + * - "STREAM_NOT_YET_PUBLISHED": The specified stream object is not published. + * - "INVALID_LOCAL_STREAM": The specified stream object is invalid. + * - "INVALID_OPERATION": The user is not in the channel, possibly because the user has not joined the channel or the connection is interrupted. */ - unpublish(stream: Stream, onFailure?: (err: any) => void): void; + unpublish(stream: Stream, onFailure?: (err: string) => void): void; /** * Subscribes to a Remote Stream * * This method enables a user to subscribe to a remote stream. * + * After the user subscribes to a remote stream, the SDK triggers the `Client.on("stream-subscribed")` callback. + * If the remote stream contains an audio track, the SDK also triggers the `Client.on("first-audio-frame-decode")` callback; + * if the remote stream contains a video track, the SDK also triggers the `Client.on("first-video-frame-decode")` callback. + * * @param stream Stream object, which represents the remote stream. * @param options Sets whether to receive the video or audio data independently by the `video` and `audio` parameters. * @@ -2623,10 +3275,13 @@ declare namespace AgoraRTC { * * - `video` and `audio` cannot be set as `false` at the same time. If you need to stop subscribing to the stream, call [[Client.unsubscribe]] instead. * - Safari does not support independent subscription. Set `options` as `null` for Safari, otherwise the`SAFARI_NOT_SUPPORTED_FOR_TRACK_SUBSCRIPTION` error occurs. - * @param onFailure The callback when the method fails. - * + * @param onFailure The callback when the method fails. The following are common errors: + * - "SAFARI_NOT_SUPPORTED_FOR_TRACK_SUBSCRIPTION": Safari does not support independent subscription. + * - "INVALID_OPERATION": The user is not in the channel, possibly because the user has not joined the channel or the connection is interrupted. + * - "SUBSCRIBE_STREAM_FAILED": The subscription fails, usually because the SDK has disconnected from the Agora server when subscribing to the stream. + * - "PEERCONNECTION_FAILED": Fails to establish the media transport channel. * @example - * **Sample Code** + * **Sample code** * ```javascript * client.subscribe(stream, function(err) { * console.error("stream subscribe failed", err); @@ -2638,7 +3293,7 @@ declare namespace AgoraRTC { * This method can be called multiple times for a single remote stream, and enables you to switch between receiving/not receiving the video or audio data flexibly. * * @example - * **Sample Code** + * **Sample code** * ```javascript * // Initially, subscribe to the stream and receive only the video data * client.subscribe(stream, {video: true, audio: false}); @@ -2663,13 +3318,13 @@ declare namespace AgoraRTC { */ audio?: boolean }, - onFailure?: (err: any) => void): void; + onFailure?: (err: string) => void): void; /** * Unsubscribes from the Remote Stream * * This method enables the user to unsubscribe from the remote stream. * @example - * **Sample Code** + * **Sample code** * ``` javascript * client.unsubscribe(stream, function(err) { * console.log(err); @@ -2678,9 +3333,13 @@ declare namespace AgoraRTC { * * ``` * @param stream Stream object, which represents the remote stream. - * @param onFailure The callback when the method fails. + * @param onFailure The callback when the method fails. The following are common errors: + * - "INVALID_REMOTE_STREAM": The specified stream object is invalid. + * - "INVALID_OPERATION": The user is not in the channel, possibly because the user has not joined the channel or the connection is interrupted. + * - "NO_SUCH_REMOTE_STREAM": The specified stream object is not found. + * - "UNSUBSCRIBE_STREAM_FAILED": Fails to unsubscribe from the stream, usually because the SDK has disconnected from the Agora server when unsubscribing from the stream. */ - unsubscribe(stream: Stream, onFailure?: (err: any) => void): void; + unsubscribe(stream: Stream, onFailure?: (err: string) => void): void; /** * Sets the role of the user. * @@ -2688,14 +3347,14 @@ declare namespace AgoraRTC { * * Sets the role of the user such as a host or an audience (default), before joining a channel. * - * This method can be used to switch the user role after the user joins a channel. + * This method can be used to switch the user role after the user joins a channel. When a user switches the user role after joining a channel, the following callbacks are triggered: + * - On the local client: `Client.on("client-role-changed")`. + * - On the remote client: `Client.on("peer-online")` or `Client.on("peer-leave")`. * * In live mode ([[mode]] is set as `live`): * * - Before joining the channel, you can call this method to set the role. - * * - After joining the channel, you can call this method to switch the role: - * * - When you call [[publish]], the user role switches to `host`; when you call [[unpublish]], the user role switches to `audience`. * - After calling [[publish]], if you call this method and set the user role as `audience`, [[unpublish]] is called automatically. * @@ -2708,35 +3367,38 @@ declare namespace AgoraRTC { * - `"audience"`: Audience, the default role. An audience can only receive streams. * - `"host"`: Host. A host can both send and receive streams. * - * @example **Sample Code** + * @example **Sample code** * * ``` javascript - * client.setClientRole('host', function() { - * console.log("setHost success"); - * }, function(e) { - * console.log("setHost failed", e); - * }) + * client.setClientRole("host", function(e) { + * if (!e) { + * console.log("setHost success"); + * } else { + * console.log("setHost error", e); + * } + * }); * ``` * - * */ - setClientRole(role: "audience" | "host", callback?: (err: any) => void): void; + setClientRole(role: "audience" | "host", callback?: (err?: string | null) => void): void; /** * Enables Dual Stream * - * This method enables the dual-stream mode on the publisher side. + * This method enables the dual-stream mode on the publisher side. We recommend calling this method after joining a channel({@link Client.join}). * * Dual streams are a hybrid of a high-video stream and a low-video stream: * * - High-video stream: high bitrate, high resolution * - Low-video stream: low bitrate, low resolution * - * @example **Sample Code** + * We do not recommend using the track methods ([[addTrack]]/[[removeTrack]]/[[replaceTrack]]) on dual streams, which might cause different performance in the high-video and low-video streams. + * + * @example **Sample code** * ``` javascript * client.enableDualStream(function() { * console.log("Enable dual stream success!") * }, function(err) { - * console,log(err) + * console.log(err) * }) * ``` * @@ -2749,11 +3411,15 @@ declare namespace AgoraRTC { * - Safari browser on iOS * - Screen-sharing scenario * @param onSuccess The callback when the method succeeds. - * @param onFailure The callback when the method fails. + * @param onFailure The callback when the method fails. The following are common errors: + * - "IOS_NOT_SUPPORT": Does not support iOS. + * - "WECHAT_NOT_SUPPORT": Does not support WeChat. + * - "STILL_ON_PUBLISHING": Still publishing the stream. Enable dual streams later. + * - "ENABLE_DUALSTREAM_FAILED": Fails to enable dual streams. */ enableDualStream( onSuccess?: () => void, - onFailure?: (err: any) => void + onFailure?: (err: string) => void ): void; /** * Sets the Low-video Stream Parameter @@ -2794,7 +3460,7 @@ declare namespace AgoraRTC { * * When a remote user sends dual streams, this method decides on which stream to receive on the subscriber side. If this method is not used, the subscriber receives the high-video stream. * - * @example **Sample Code** + * @example **Sample code** * ``` javascript * switchStream = function (){ * if (highOrLow === 0) { @@ -2824,6 +3490,8 @@ declare namespace AgoraRTC { * * Under poor network conditions, the SDK can choose to subscribe to the low-video stream or only the audio stream. * + * If the auto-fallback option is enabled, the SDK triggers the `Client.on("stream-type-changed")` callback when the remote stream changes from a high-video stream to a low-video stream or vice versa, and triggers the `Client.on("stream-fallback")` callback when the remote stream changes from a video stream to an audio-only stream or vice versa. + * * **Note:** * * This method can only be used when the publisher has enabled the dual-stream mode by {@link enableDualStream}. @@ -2833,7 +3501,7 @@ declare namespace AgoraRTC { * - 1: (Default) Automatically subscribe to the low-video stream under poor network. * - 2: Under poor network, the SDK may subscribe to the low-video stream (of lower resolution and lower bitrate) first, * but if the network still does not allow displaying the video, the SDK will receive audio only. - * @example **Sample Code** + * @example **Sample code** * ```javascript * // The sender side, after publishing the high stream * client.enableDualStream(); @@ -2847,7 +3515,7 @@ declare namespace AgoraRTC { * Disables Dual Streams * * This method disables dual streams. - * @example **Sample Code** + * @example **Sample code** * ``` javascript * client.disableDualStream(function() { * console.log("Disable dual stream success!") @@ -2856,28 +3524,30 @@ declare namespace AgoraRTC { * }) * ``` * @param onSuccess The callback when the method succeeds. - * @param onFailure The callback when the method fails. + * @param onFailure The callback when the method fails. The following are common errors: + * - "STILL_ON_PUBLISHING": Still publishing the stream. Disable dual streams later. + * - "DISABLE_DUALSTREAM_FAILED": Fails to disable dual streams. */ disableDualStream( onSuccess?: () => void, - onFailure?: (err: any) => void + onFailure?: (err: string) => void ): void; /** * Enables Volume Indicator * * This method enables the SDK to report the active remote users who are speaking and their volume regularly. * - * If this method is enabled, the SDK will return the volumes every two seconds, regardless of whether there are active speakers. + * If this method is enabled, the SDK triggers the `"volume-indicator"` callback to report the volumes every two seconds, regardless of whether there are active speakers. * * **Note:** * * - If you have multiple web pages running the Web SDK, this function might not work. - * @example **Sample Code** + * @example **Sample code** * ``` javascript * client.enableAudioVolumeIndicator(); // Triggers the "volume-indicator" callback event every two seconds. * client.on("volume-indicator", function(evt){ * evt.attr.forEach(function(volume, index){ - * console.log(#{index} UID ${volume.uid} Level ${volume.level}); + * console.log(`${index} UID ${volume.uid} Level ${volume.level}`); * }); * }); * ``` @@ -2899,7 +3569,7 @@ declare namespace AgoraRTC { * * Call {@link configPublisher} before {@link Client.join}. * - * @example **Sample Code** + * @example **Sample code** * * ``` javascript * client.configPublisher({ @@ -2921,16 +3591,21 @@ declare namespace AgoraRTC { /** * Starts a Live Stream * - * This method starts a live stream. - * @example **Sample Code** + * This method starts a live stream. For details, see [Push Streams to the CDN](../../../cdn_streaming_web). + * + * When the live stream starts, the SDK triggers the `Client.on("liveStreamingStarted")` callback. + * If this method call fails, the SDK triggers the `Client.on("liveStreamingFailed")` callback. + * + * **Note:** + * + * - Only hosts in live-broadcast channels can call this method. Ensure that you set the user role as `"host"` in {@link setClientRole}. + * - Call this method after {@link Stream.init}. + * - Push one live stream at a time. If you need to push several streams, ensure that the current stream starts successfully before pushing the next one. + * @example **Sample code** * ``` javascript * client.setLiveTranscoding(); * client.startLiveStreaming(, true) * ``` - * - * **Note:** - * - * Call {@link startLiveStreaming} after {@link createStream}. For details, see [Push Streams to the CDN](../../../push_stream_web). * @param url URL address for the live stream. ASCII characters only, and the string length must be greater than 0 and less than 256 bytes. * @param enableTranscoding Marks whether to enable live transcoding. If set as `true`, {@link setLiveTranscoding} must be called before this method. */ @@ -2939,10 +3614,13 @@ declare namespace AgoraRTC { * Sets Live Transcoding * * This method sets the video layout and audio for CDN live. + * A successful call of this method to update the transcoding settings triggers the `Client.on("liveTranscodingUpdated")` callback. * * **Note:** * - * Call {@link setLiveTranscoding} after {@link createStream}. For details, see [Push Streams to the CDN](../../../push_stream_web). + * - Ensure that you [enable the RTMP Converter service](../../../cdn_streaming_web#prerequisites) before using this function. + * - The first call of this method does not trigger the `Client.on("liveTranscodingUpdated")` callback. + * - Call {@link setLiveTranscoding} after {@link createStream}. For details, see [Push Streams to CDN](../../../cdn_streaming_web). * @param coding Transcoding settings, see {@link LiveTranscoding} for details. */ setLiveTranscoding(coding: LiveTranscoding): void; @@ -2950,14 +3628,26 @@ declare namespace AgoraRTC { * Stops Live Streaming * * This method stops and deletes the live streaming. + * When the live stream stops, the SDK triggers the `Client.on("liveStreamingStopped")` callback. * @param url URL address of the live streaming. ASCII characters only, and the string length must be greater than 0 and less than 256 bytes. */ stopLiveStreaming(url: string): void; /** * Injects an Online Media Stream to a Live Broadcast * - * The `streamInjectedStatus` callback returns the inject status.If this method is called successfully, the server pulls the voice or video stream and injects it into a live channel. + * This method call triggers the following callbacks: + * - On the local client: + * - `Client.on("streamInjectedStatus")`, with the state of injecting the online stream. + * - `Client.on("stream-added")` and `Client.on("peer-online")`(uid: 666), if the online media stream is injected into the channel. + * - On the remote client: + * - `Client.on("stream-added")` and `Client.on("peer-online")`(uid: 666), if the online media stream is injected into the channel. + * + * If this method is called successfully, the server pulls the voice or video stream and injects it into a live channel. * This is applicable to scenarios where all of the audience members in the channel can watch a live show and interact with each other. + * + * **Note:** + * + * Ensure that you [enable the RTMP Converter service](../../../cdn_streaming_web#prerequisites) before using this function. * @param url URL address of the live streaming. ASCII characters only, and the string length must be greater than 0 and less than 256 bytes. * Valid protocols are RTMP, HLS, and FLV. * - Supported FLV audio codec type: AAC. @@ -2973,9 +3663,25 @@ declare namespace AgoraRTC { */ removeInjectStreamUrl(url: string): void; /** - * Deploys the Nginx Server + * Enables Cloud Proxy + * + * This method must be called before joining the channel or after leaving the channel. + * + * To use the cloud proxy service, some extra settings are needed, see [Use Cloud Proxy](https://docs.agora.io/en/Interactive%20Broadcast/cloud_proxy_web?platform=Web) for details. + */ + startProxyServer(): void; + /** + * Disables Cloud Proxy + * + * This method must be called before joining the channel or after leaving the channel. + * + * This method disables all proxy settings, including those set by [[setProxyServer]] and [[setTurnServer]]. + */ + stopProxyServer(): void; + /** + * Deploys a Proxy Server * - * Use this method to deploy the Nginx server. + * Use this method to deploy the Nginx server. See [Deploy the Enterprise Proxy](https://docs.agora.io/en/Interactive%20Broadcast/proxy_web?platform=Web) for details. * * **Note:** * @@ -3001,11 +3707,15 @@ declare namespace AgoraRTC { /** * Enables Built-in Encryption * - * This method enables the built-in encryption. + * Use this method with [[setEncryptionMode]] method to enable the built-in encryption before joining a channel. + * + * All users in a channel must set the same encryption password. * * **Note:** * - * Ensure that you call this API before {@link Client.join}. + * - Ensure you call [[setEncryptionSecret]] and [[setEncryptionMode]] before joining the channel, otherwise the encryption is disabled. + * - Do not use this method for CDN live streaming. + * - If the encryption password is incorrect, the SDK triggers the `Client.on("crypt-error")` callback when publishing or subscribing to a stream. * @example `client.setEncryptionSecret(password)` * @param password The encryption password. ASCII characters only, and the string length must be greater than 0 and less than 256 bytes. */ @@ -3013,11 +3723,15 @@ declare namespace AgoraRTC { /** * Sets the Encryption Mode * - * This method sets the encryption mode. + * Use this method with [[setEncryptionSecret]] method to enable the built-in encryption before joining a channel. + * + * All users in a channel must set the same encryption mode. * * **Note:** * - * Ensure that you call this API before {@link Client.join}. + * - Ensure you call [[setEncryptionSecret]] and [[setEncryptionMode]] before joining the channel, otherwise the encryption is disabled. + * - Do not use this method for CDN live streaming. + * - If the encryption mode is incorrect, the SDK triggers the `Client.on("crypt-error")` callback when publishing or subscribing to a stream. * @example `client.setEncryptionMode(encryptionMode);` * @param encryptionMode The encryption mode: * @@ -3051,12 +3765,13 @@ declare namespace AgoraRTC { * Not doing so will result in SDK disconnecting with the server. * @param key Specifies the renewed Channel Key. * @param onSuccess The callback when the method succeeds. - * @param onFailure The callback when the method fails. + * @param onFailure The callback when the method fails. The following are common errors: + * - "INVALID_OPERATION": The user is not in the channel. Call this method after the user joins a channel. */ renewChannelKey( key: string, onSuccess?: () => void, - onFailure?: (err: any) => void + onFailure?: (err: string) => void ): void; /** * Gets the Statistics of the System Network @@ -3074,7 +3789,7 @@ declare namespace AgoraRTC { * * @param callback The callback contains the statistics of the system network. * - * @example **Sample Code** + * @example **Sample code** * * ``` javascript * client.getNetworkStats((stats) => { @@ -3096,7 +3811,7 @@ declare namespace AgoraRTC { * * @param callback The callback contains the statistics of the system. * - * @example **Sample Code** + * @example **Sample code** * * ``` javascript * client.getSystemStats((stats) => { @@ -3112,15 +3827,19 @@ declare namespace AgoraRTC { * * If this method succeeds, the SDK returns a list of audio input devices in an array of [[MediaDeviceInfo]] objects. */ - getRecordingDevices(callback: (devices: MediaDeviceInfo) => void): void; + getRecordingDevices(callback: (devices: MediaDeviceInfo[]) => void): void; /** * Enumerates Audio Output Devices * * This method enumerates the available audio output devices, such as speakers. * * If this method succeeds, the SDK returns a list of audio output devices in an array of [[MediaDeviceInfo]] objects. + * + * **Note:** + * + * Only Chrome 49 or later supports this function. */ - getPlayoutDevices(callback: (devices: MediaDeviceInfo) => void): void; + getPlayoutDevices(callback: (devices: MediaDeviceInfo[]) => void): void; /** * Enumerates Video Input Devices * @@ -3128,7 +3847,7 @@ declare namespace AgoraRTC { * * If this method succeeds, the SDK returns a list of video input devices in an array of [[MediaDeviceInfo]] objects. */ - getCameras(callback: (devices: MediaDeviceInfo) => void): void; + getCameras(callback: (devices: MediaDeviceInfo[]) => void): void; /** * Retrieves the Audio Statistics of the Remote Stream * @@ -3141,7 +3860,7 @@ declare namespace AgoraRTC { * * @param callback The callback contains the statistics of the remote audio stream. * - * @example **Sample Code** + * @example **Sample code** * * ``` javascript * client.getRemoteAudioStats((remoteAudioStatsMap) => { @@ -3172,7 +3891,7 @@ declare namespace AgoraRTC { * * @param callback The callback contains the statistics of the local audio stream. * - * @example **Sample Code** + * @example **Sample code** * * ``` javascript * client.getLocalAudioStats((localAudioStats) => { @@ -3200,7 +3919,7 @@ declare namespace AgoraRTC { * * @param callback The callback contains the statistics of the remote video stream. * - * @example **Sample Code** + * @example **Sample code** * * ``` javascript * client.getRemoteVideoStats((remoteVideoStatsMap) => { @@ -3235,7 +3954,7 @@ declare namespace AgoraRTC { * * @param callback The callback contains the statistics of the local video stream. * - * @example **Sample Code** + * @example **Sample code** * * ``` javascript * client.getLocalVideoStats((localVideoStats) => { @@ -3269,7 +3988,7 @@ declare namespace AgoraRTC { * * @param callback The callback contains the statistics of the transmission quality. * - * @example **Sample Code** + * @example **Sample code** * * ``` javascript * client.getTransportStats((stats) => { @@ -3292,7 +4011,7 @@ declare namespace AgoraRTC { * * @param callback The callback contains the statistics of the session connection. * - * @example **Sample Code** + * @example **Sample code** * * ``` javascript * client.getSessionStats((stats) => { @@ -3323,6 +4042,217 @@ declare namespace AgoraRTC { * - `DISCONNECTING`: The SDK is disconnecting from Agora's edge server. The SDK enters this state when calling [[Client.leave]]. */ getConnectionState(): string; + + /** + * Starts relaying media streams across channels. + * + * **Since** + *
   *3.0.0* + * + * After this method call, the SDK triggers the following callbacks: + * + * - `Client.on("channel-media-relay-state")`, which reports the state and error code of the media stream relay. + * - If the media stream relay starts successfully, this callback returns `state` 2 and `code` 0. + * - If the media stream relay fails, this callback returns `state` 3. Refer to `code` for the error code and call this method again. + * - `Client.on("channel-media-relay-event")`, which reports the events of the media stream relay. + * - If the media stream relay starts successfully, this callback returns `code` 4, reporting that the SDK starts relaying the media stream to the destination channel. + * + * **Note:** + * + * - We do not support string user IDs in this API. + * - Call this method only after joining a channel. + * - In a live-broadcast channel, only a host can call this method. + * - To call this method again after it succeeds, you must call {@link stopChannelMediaRelay} to quit the current relay. + * @param config Configurations of the media stream relay: {@link ChannelMediaRelayConfiguration}. + * @param callback The result of starting the media stream relay. + * + * - null: Success. + * - {@link ChannelMediaError}: Failure. This class provides the error details. + * + * @example **Sample code** + * ```javascript + * client.startChannelMediaRelay(channelMediaConfig, function(e) { + * if(e) { + * utils.notification(`startChannelMediaRelay failed: ${JSON.stringify(e)}`); + * } else { + * utils.notification(`startChannelMediaRelay success`); + * } + * }); + * ``` + */ + startChannelMediaRelay(config: ChannelMediaRelayConfiguration, callback: (err: null | ChannelMediaError) => void): void; + /** + * Updates the channels for media stream relay. + * + * **Since** + *
   *3.0.0* + * + * After the channel media relay starts, if you want to relay the media stream to more channels, or leave the current relay channel, you can call this method. + * + * After this method call, the SDK triggers the `Client.on("channel-media-relay-event")` callback. + * + * - If the update succeeds, the callback returns `code` 7. + * - If the update fails, the callback returns `code` 8, and the SDK also triggers the `Client.on("channel-media-relay-state")` callback with `state` 3. In this case, the media relay state is reset, and you need to call {@link startChannelMediaRelay} again to restart the relay. + * + * **Note:** + * + * - Call this method after {@link startChannelMediaRelay}. + * - You can add a maximum of four destination channels to a relay. + * + * @param config Configurations of the media stream relay: {@link ChannelMediaRelayConfiguration}. + * @param callback The result of updating the destination channels. + * + * - `null`: Success. + * - {@link ChannelMediaError}: Failure. This class provides the error details. + * + * @example **Sample code** + * ```javascript + * client.updateChannelMediaRelay(channelMediaConfig, function(e) { + * if(e) { + * utils.notification(`updateChannelMediaRelay failed: ${JSON.stringify(e)}`); + * } else { + * utils.notification(`updateChannelMediaRelay success`); + * } + * }); + * ``` + */ + updateChannelMediaRelay(config: ChannelMediaRelayConfiguration, callback: (err: null | ChannelMediaError) => void): void; + /** + * Stops the media stream relay. + * + * **Since** + *
   *3.0.0* + * + * Once the relay stops, the user leaves all the destination channels. + * + * After this method call, the SDK triggers the `Client.on("channel-media-relay-state")` callback. + * + * - If the relay stops, the callback returns `state` 0. + * - If the relay fails to stop, the callback returns `state` 3 and `code` 2 or 8. The failure is usually due to poor network conditions. You can call {@link Client.leave} to leave the channel and stop the relay. + * + * @param callback The result of stopping the media stream relay. + * + * - `null`: Success. + * - {@link ChannelMediaError}: Failure. This class provides the error details. + * + * @example **Sample code** + * + * ```javascript + * stopChannelMediaRelay: function() { + * client.stopChannelMediaRelay(function(e) { + * if(e) { + * utils.notification(`stopChannelMediaRelay failed: ${JSON.stringify(e)}`); + * } else { + * utils.notification(`stopChannelMediaRelay success`); + * } + * }); + * } + * ``` + */ + stopChannelMediaRelay(callback: (err: null | ChannelMediaError) => void): void; + } + + /** + * Configurations of the media stream relay. + * + * **Since** + *
   *3.0.0* + * + * Use this interface to set the media stream relay when calling {@link startChannelMediaRelay} or {@link updateChannelMediaRelay}. + */ + interface ChannelMediaRelayConfiguration { + /** + * Sets the information of the source channel. + * + * @param srcInfo The information of the source channel: + * + * - `channelName`: String, the channel name. + * - `uid`: Number, the unique ID to identify the relay stream in the source channel. A 32-bit unsigned integer with a value ranging from 0 to (232-1). If you set it as `0`, the server assigns a random one. To avoid UID conflicts, this value must be different from the UID of the current host. + * - `token`: String, the token generated with the above `channelName` and `uid`. Do not set this parameter if you have not enabled token. + * + * @example **Sample code** + * ``` javascript + * var configuration = new AgoraRTC.ChannelMediaRelayConfiguration(); + * configuration.setSrcChannelInfo({ + * channelName: "srcChannel", + * uid: 123, + * token: "yourSrcToken", + * }) + * ``` + */ + setSrcChannelInfo(srcInfo: any): void; + /** + * Sets the information of the destination channel. + * + * To relay a media stream across multiple channels, call this method as many times (to a maximum of four). + * + * @param channelName The name of the destination channel. Ensure that the value of this parameter is the same as the value of `channelName` in `destInfo`. + * @param destInfo The information of the destination channel: + * + * - `channelName`: String, the channel name. + * - `uid`: Number, the unique ID to identify the relay stream in the destination channel. A 32-bit unsigned integer with a value ranging from 0 to (232-1). If you set it as `0`, the server assigns a random one. To avoid UID conflicts, this uid must be different from any other UIDs in the destination channel. + * - `token`: String, the token generated with the above `channelName` and `uid`. Do not set this parameter if you have not enabled token. + * + * @example **Sample code** + * ``` javascript + * var configuration = new AgoraRTC.ChannelMediaRelayConfiguration(); + * configuration.setDestChannelInfo("cname", { + * channelName: "destChannel", + * uid: 123, + * token: "yourDestToken", + * }) + * ``` + */ + setDestChannelInfo(channelName: string, destInfo: any): void; + /** + * Removes the destination channel. + * + * @param channelName The name of the destination channel. + * @example **Sample code** + * ``` javascript + * configuration.removeDestChannelInfo("cname") + * ``` + */ + removeDestChannelInfo(channelName: string): void; + } + + /** + * Error information of the media stream relay. + * + * When errors occur in calling {@link startChannelMediaRelay}, {@link updateChannelMediaRelay}, or {@link stopChannelMediaRelay}, the callback functions of these methods provide error details in this class. + * + * In this class, `code` is the error code and `message` is the error message. See the following table for details. + * + * | `code` | `message` | Description | + * | -------- | ------------------------------- | ------------------------------------------------------------ | + * | 0 | RELAY_OK | No error. | + * | 1 | SERVER_ERROR_RESPONSE | An error occurs in the server response. | + * | 2 | SERVER_NO_RESPONSE | No server response. | + * | 3 | NO_RESOURCE_AVAILABLE | The SDK fails to access the service, probably due to limited resources of the server. | + * | 4 | FAILED_JOIN_SRC | Fails to send the relay request. | + * | 5 | FAILED_JOIN_DEST | Fails to accept the relay request. | + * | 6 | FAILED_PACKET_RECEIVED_FROM_SRC | The server fails to receive the media stream. | + * | 7 | FAILED_PACKET_SENT_TO_DEST | The server fails to send the media stream. | + * | 8 | SERVER_CONNECTION_LOST | The SDK disconnects from the server and fails to reconnect to the server due to a poor network connection. In this case, the SDK resets the media stream relay state. You can try {@link startChannelMediaRelay} to restart the media stream relay. | + * | 9 | INTERNAL_ERROR | An internal error occurs in the server. | + * | 10 | SRC_TOKEN_EXPIRED | The token of the source channel has expired. | + * | 11 | DEST_TOKEN_EXPIRED | The token of the destination channel has expired. | + * | 12 | RELAY_ALREADY_START | The relay has already started. Possibly caused by calling {@link startChannelMediaRelay} repeatedly, or calling {@link startChannelMediaRelay} before {@link stopChannelMediaRelay} succeeds. | + * | 13 | RELAY_NOT_START | The relay has not started. Possibly caused by calling {@link updateChannelMediaRelay} before {@link startChannelMediaRelay} succeeds. | + */ + class ChannelMediaError { + /** + * Additional information. + */ + data?: any; + /** + * The error code. + */ + code: number; + /** + * The error message. + */ + message: string; } /** diff --git a/types/agora-rtc-sdk/tslint.json b/types/agora-rtc-sdk/tslint.json index ce06c167a974ca5..fbb37d50d68a067 100644 --- a/types/agora-rtc-sdk/tslint.json +++ b/types/agora-rtc-sdk/tslint.json @@ -1,6 +1,9 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "unified-signatures": false +{ + "extends": "dtslint/dt.json", + "rules": { + "unified-signatures": false, + "no-trailing-whitespace": false, + "max-line-length": false, + "invalid-void": false + } } -} diff --git a/types/airbnb-prop-types/tslint.json b/types/airbnb-prop-types/tslint.json index 71ee04c4e1a2104..ad93d8fc0d9ca6b 100644 --- a/types/airbnb-prop-types/tslint.json +++ b/types/airbnb-prop-types/tslint.json @@ -3,4 +3,4 @@ "rules": { "no-unnecessary-generics": false } -} +} \ No newline at end of file diff --git a/types/ajv-async/tslint.json b/types/ajv-async/tslint.json index 3db14f85eaf7b98..00089f9c20162d7 100644 --- a/types/ajv-async/tslint.json +++ b/types/ajv-async/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-outside-dependencies": false + } +} \ No newline at end of file diff --git a/types/ajv-errors/tslint.json b/types/ajv-errors/tslint.json index 3db14f85eaf7b98..00089f9c20162d7 100644 --- a/types/ajv-errors/tslint.json +++ b/types/ajv-errors/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-outside-dependencies": false + } +} \ No newline at end of file diff --git a/types/ajv-keywords/tslint.json b/types/ajv-keywords/tslint.json index 3db14f85eaf7b98..00089f9c20162d7 100644 --- a/types/ajv-keywords/tslint.json +++ b/types/ajv-keywords/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-outside-dependencies": false + } +} \ No newline at end of file diff --git a/types/ajv-merge-patch/tslint.json b/types/ajv-merge-patch/tslint.json index 3db14f85eaf7b98..00089f9c20162d7 100644 --- a/types/ajv-merge-patch/tslint.json +++ b/types/ajv-merge-patch/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-outside-dependencies": false + } +} \ No newline at end of file diff --git a/types/ajv-pack/tslint.json b/types/ajv-pack/tslint.json index 3db14f85eaf7b98..00089f9c20162d7 100644 --- a/types/ajv-pack/tslint.json +++ b/types/ajv-pack/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-outside-dependencies": false + } +} \ No newline at end of file diff --git a/types/akamai-edgeworkers/index.d.ts b/types/akamai-edgeworkers/index.d.ts index 1690aca8d4cdad9..dfca9f5fbffd6a7 100644 --- a/types/akamai-edgeworkers/index.d.ts +++ b/types/akamai-edgeworkers/index.d.ts @@ -143,25 +143,25 @@ declare namespace EW { * The continent value is a two-letter code for the continent that * the IP address maps to. */ - continent: string | undefined; + readonly continent: string | undefined; /** * The country value is an ISO-3166, two-letter code for the country * where the IP address maps to. */ - country: string | undefined; + readonly country: string | undefined; /** * The region value is an ISO-3166, two-letter code for the state, * province, or region where the IP address maps to. */ - region: string | undefined; + readonly region: string | undefined; /** * The city value is the city (within a 50-mile radius) that the IP * address maps to. */ - city: string | undefined; + readonly city: string | undefined; /** * The zipCode value is the zipcode that the IP address maps to @@ -187,7 +187,7 @@ declare namespace EW { * * See the EdgeScape Users Guide for more details. */ - zipCode: string | undefined; + readonly zipCode: string | undefined; } /** @@ -199,99 +199,99 @@ declare namespace EW { /** * Brand name of the device. */ - brandName: string | undefined; + readonly brandName: string | undefined; /** * Model name of the device. */ - modelName: string | undefined; + readonly modelName: string | undefined; /** * Marketing name of the device. */ - marketingName: string | undefined; + readonly marketingName: string | undefined; /** * Indicates if the device is a wireless device. */ - isWireless: boolean | undefined; + readonly isWireless: boolean | undefined; /** * Indicates if the device is a tablet. */ - isTablet: boolean | undefined; + readonly isTablet: boolean | undefined; /** * The device operation system. */ - os: string | undefined; + readonly os: string | undefined; /** * The device operating system version. */ - osVersion: string | undefined; + readonly osVersion: string | undefined; /** * The mobile browser name. */ - mobileBrowser: string | undefined; + readonly mobileBrowser: string | undefined; /** * The mobile browser version. */ - mobileBrowserVersion: string | undefined; + readonly mobileBrowserVersion: string | undefined; /** * The screen resolution width, in pixels. */ - resolutionWidth: number | undefined; + readonly resolutionWidth: number | undefined; /** * The screen resolution height, in pixels. */ - resolutionHeight: number | undefined; + readonly resolutionHeight: number | undefined; /** * The physical screen height, in millimeters. */ - physicalScreenHeight: number | undefined; + readonly physicalScreenHeight: number | undefined; /** * The physical screen width, in millimeters. */ - physicalScreenWidth: number | undefined; + readonly physicalScreenWidth: number | undefined; /** * Indicates if the browser supports cookies. */ - hasCookieSupport: boolean | undefined; + readonly hasCookieSupport: boolean | undefined; /** * Indicates if the device supports all of the following * JavaScript functions: "alert confirm access form elements * setTimeout setInterval and document.location" */ - hasAjaxSupport: boolean | undefined; + readonly hasAjaxSupport: boolean | undefined; /** * Indicates if the browser supports Flash. */ - hasFlashSupport: boolean | undefined; + readonly hasFlashSupport: boolean | undefined; /** * Indicates if the browser accepts third party cookies. */ - acceptsThirdPartyCookie: boolean | undefined; + readonly acceptsThirdPartyCookie: boolean | undefined; /** * Indicates the level of support for XHTML. */ - xhtmlSupportLevel: number | undefined; + readonly xhtmlSupportLevel: number | undefined; /** * Indicates if the device is a mobile device. */ - isMobile: boolean | undefined; + readonly isMobile: boolean | undefined; } } @@ -318,7 +318,7 @@ declare module "cookies" { * take a string and return the result of the custom decoding of * that string. */ - constructor(header?: string | string[], options?: object); + constructor(header?: string | string[] | null, options?: object); /** * Returns the string representation to use when setting the Cookie diff --git a/types/akamai-edgeworkers/tsconfig.json b/types/akamai-edgeworkers/tsconfig.json index 46738167db090ad..46f0352d44ad6bb 100644 --- a/types/akamai-edgeworkers/tsconfig.json +++ b/types/akamai-edgeworkers/tsconfig.json @@ -5,7 +5,7 @@ "lib": [ "es6" ], - "noImplicitAny": false, + "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, diff --git a/types/akumina-core/tslint.json b/types/akumina-core/tslint.json index c9bd8bd4b34835c..3f109ea07fb6c1c 100644 --- a/types/akumina-core/tslint.json +++ b/types/akumina-core/tslint.json @@ -1,9 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { - "npm-naming": false, "jsdoc-format": false, - "no-unnecessary-class": false + "no-unnecessary-class": false, + "npm-naming": false } -} - +} \ No newline at end of file diff --git a/types/alertify/tsconfig.json b/types/alertify/tsconfig.json index 86ae0eac3dfda58..5fb9133a414cdce 100644 --- a/types/alertify/tsconfig.json +++ b/types/alertify/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "alertify-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/alertify/tslint.json b/types/alertify/tslint.json index 3d59f55fdabcf45..1b6c2f198dd9e8c 100644 --- a/types/alertify/tslint.json +++ b/types/alertify/tslint.json @@ -1,80 +1,15 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, + "no-var-keyword": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/alex/alex-tests.ts b/types/alex/alex-tests.ts new file mode 100644 index 000000000000000..14a2ec19dcd4436 --- /dev/null +++ b/types/alex/alex-tests.ts @@ -0,0 +1,22 @@ +// configs +const exemption = ['word', 'noun']; +const config: alex.AlexOptions = { + allow: exemption, + noBinary: true, + profanitySureness: 1, +}; + +// api + +alex('We’ve confirmed his identity.'); // $ExpectType VFile +alex('We’ve confirmed his identity.', exemption); // $ExpectType VFile +alex('We’ve confirmed his identity.', config); // $ExpectType VFile +alex.markdown('### We’ve confirmed his **identity**.'); // $ExpectType VFile +alex.markdown('### We’ve confirmed his **identity**.', exemption); // $ExpectType VFile +alex.markdown('### We’ve confirmed his **identity**.', config); // $ExpectType VFile +alex.html('

He walked to class.

'); // $ExpectType VFile +alex.html('

He walked to class.

', exemption); // $ExpectType VFile +alex.html('

He walked to class.

', config); // $ExpectType VFile +alex.text('The `boogeyman`.'); // $ExpectType VFile +alex.text('The `boogeyman`.', exemption); // $ExpectType VFile +alex.text('The `boogeyman`.', config); // $ExpectType VFile diff --git a/types/alex/index.d.ts b/types/alex/index.d.ts new file mode 100644 index 000000000000000..a1e5f78296664af --- /dev/null +++ b/types/alex/index.d.ts @@ -0,0 +1,49 @@ +// Type definitions for alex 8.1 +// Project: https://alexjs.com +// Definitions by: Piotr Błażejewicz (Peter Blazejewicz) +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 3.0 + +/// + +import * as vfile from 'vfile'; + +/** + * finds gender favoring, polarizing, race related, religion inconsiderate, or other unequal phrasing in text. + */ +declare function alex(value: vfile.VFile | string, config?: alex.Config): vfile.VFile; + +declare namespace alex { + /** + * This is either an array of words to ignore or custom Alex' config + */ + type Config = AlexOptions | string[]; + + interface AlexOptions { + /** an array of rules (the default is []) */ + allow?: string[]; + /** + * When turned on (`true`), pairs such as `he` and `she` and `garbageman` or `garbagewoman` are seen as errors. + * When turned off (`false`, the default), such pairs are okay + */ + noBinary?: boolean; + /** + * the minimum rating (including) that you want to check for. + * If you set it to 1 (maybe) then it will warn for level 1 and 2 (likely) profanities, + * but not for level 0 (unlikely). + */ + profanitySureness?: 0 | 1 | 2; + } + + /** Check Markdown (ignoring syntax). */ + function markdown(value: vfile.VFile | string, config?: Config): vfile.VFile; + + /** Check HTML (ignoring syntax). */ + function html(value: vfile.VFile | string, config?: Config): vfile.VFile; + + /** Check plain text (as in, syntax is checked). */ + function text(value: vfile.VFile | string, config?: Config): vfile.VFile; +} + +export as namespace alex; +export = alex; diff --git a/types/jest-matcher-utils/package.json b/types/alex/package.json similarity index 67% rename from types/jest-matcher-utils/package.json rename to types/alex/package.json index 2cc9b48ed619f57..421554df5b3732b 100644 --- a/types/jest-matcher-utils/package.json +++ b/types/alex/package.json @@ -1,6 +1,6 @@ { "private": true, "dependencies": { - "chalk": "^2.2.0" + "vfile": "^4.0.2" } } diff --git a/types/jest-matchers/tsconfig.json b/types/alex/tsconfig.json similarity index 93% rename from types/jest-matchers/tsconfig.json rename to types/alex/tsconfig.json index 123b6057797eec1..af9ca94fb08c429 100644 --- a/types/jest-matchers/tsconfig.json +++ b/types/alex/tsconfig.json @@ -6,8 +6,8 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": true, "strictFunctionTypes": true, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -18,6 +18,6 @@ }, "files": [ "index.d.ts", - "jest-matchers-tests.ts" + "alex-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/hapi__accept/tslint.json b/types/alex/tslint.json similarity index 100% rename from types/hapi__accept/tslint.json rename to types/alex/tslint.json diff --git a/types/alexa-sdk/tsconfig.json b/types/alexa-sdk/tsconfig.json index acc11c8263c38ec..1754d3c681dafac 100644 --- a/types/alexa-sdk/tsconfig.json +++ b/types/alexa-sdk/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "alexa-sdk-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/alexa-sdk/tslint.json b/types/alexa-sdk/tslint.json index 2fab668234058a3..c70652999a7791e 100644 --- a/types/alexa-sdk/tslint.json +++ b/types/alexa-sdk/tslint.json @@ -1,12 +1,12 @@ { "extends": "dtslint/dt.json", "rules": { - "object-literal-shorthand": false, - "object-literal-key-quote": false, + "no-any": false, "no-empty-interface": false, - "prefer-method-signature": false, + "npm-naming": false, + "object-literal-key-quote": false, "object-literal-key-quotes": false, - "no-any": false, - "npm-naming": false + "object-literal-shorthand": false, + "prefer-method-signature": false } } \ No newline at end of file diff --git a/types/algoliasearch/index.d.ts b/types/algoliasearch/index.d.ts index 4385044cbb81ddb..669a3b8083cf18b 100644 --- a/types/algoliasearch/index.d.ts +++ b/types/algoliasearch/index.d.ts @@ -999,7 +999,7 @@ declare namespace algoliasearch { } /** * Describes the options used when generating new api keys - * + * * @see https://www.algolia.com/doc/api-reference/api-methods/generate-secured-api-key/ */ interface SecuredApiOptions extends QueryParameters { @@ -1270,7 +1270,7 @@ declare namespace algoliasearch { * Filter the query by a set of tags. * Default: [] */ - tagFilters?: string[]; + tagFilters?: (string|string[])[]; /** * Filter the query by a set of facets. * Default: [] @@ -1318,7 +1318,7 @@ declare namespace algoliasearch { sortFacetValuesBy?: 'count' | 'alpha'; ruleContexts?: string[]; - + /** * allow the usage of an AB-test. This parameter is only allowed for queries, not for settings. * default: true @@ -1416,6 +1416,7 @@ declare namespace algoliasearch { | 'logs' | 'seeUnretrievableAttributes')[]; validity: number; + indexes?: string[]; description?: string; } diff --git a/types/algoliasearch/lite/index.d.ts b/types/algoliasearch/lite/index.d.ts index f0369cb47b29c99..487c6fac29988dc 100644 --- a/types/algoliasearch/lite/index.d.ts +++ b/types/algoliasearch/lite/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for algoliasearch-client-js 3.30.1 +// Type definitions for algoliasearch-client-js 3.35 // Project: https://github.com/algolia/algoliasearch-client-js // Definitions by: Baptiste Coquelle // Haroen Viaene @@ -89,18 +89,23 @@ declare namespace algoliasearch { indexName: string; /** * Gets a specific object - * https://github.com/algolia/algoliasearch-client-js#find-by-ids---getobjects + * https://algolia.com/doc/api-reference/api-methods/get-objects/#retrieve-only-one-object */ getObject(objectID: string, cb: (err: Error, res: {}) => void): void; /** * Gets specific attributes from an object - * https://github.com/algolia/algoliasearch-client-js#find-by-ids---getobjects + * https://algolia.com/doc/api-reference/api-methods/get-objects/#retrieve-only-one-object */ getObject( objectID: string, attributes: string[], cb: (err: Error, res: {}) => void ): void; + /** + * Gets specific attributes from an object + * https://algolia.com/doc/api-reference/api-methods/get-objects/#retrieve-only-one-object + */ + getObject(objectID: string, attributes?: string[]): Promise; /** * Gets a list of objects * https://github.com/algolia/algoliasearch-client-js#find-by-ids---getobjects diff --git a/types/algoliasearch/tsconfig.json b/types/algoliasearch/tsconfig.json index 3358732ba335101..ab4eccc212fd999 100644 --- a/types/algoliasearch/tsconfig.json +++ b/types/algoliasearch/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "algoliasearch-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/algoliasearch/tslint.json b/types/algoliasearch/tslint.json index 4ef1833aa42c524..f067f52c92bf51a 100644 --- a/types/algoliasearch/tslint.json +++ b/types/algoliasearch/tslint.json @@ -1,80 +1,25 @@ { - "extends": "dtslint/dt.json", - "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, - "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, - "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false - } -} + "extends": "dtslint/dt.json", + "rules": { + "adjacent-overload-signatures": false, + "array-type": false, + "ban-types": false, + "callable-types": false, + "dt-header": false, + "interface-over-type-literal": false, + "jsdoc-format": false, + "max-line-length": false, + "no-consecutive-blank-lines": false, + "no-duplicate-imports": false, + "no-padding": false, + "no-redundant-jsdoc": false, + "no-redundant-jsdoc-2": false, + "no-self-import": false, + "no-unnecessary-generics": false, + "prefer-const": false, + "prefer-method-signature": false, + "semicolon": false, + "unified-signatures": false, + "whitespace": false + } +} \ No newline at end of file diff --git a/types/ali-app/tslint.json b/types/ali-app/tslint.json index f491d1bed9d84d5..c5d2dff01bd77af 100644 --- a/types/ali-app/tslint.json +++ b/types/ali-app/tslint.json @@ -1,7 +1,7 @@ { - "extends": "dtslint/dt.json", - "rules": { - "no-mergeable-namespace": false, - "no-unnecessary-generics": false - } + "extends": "dtslint/dt.json", + "rules": { + "no-mergeable-namespace": false, + "no-unnecessary-generics": false + } } \ No newline at end of file diff --git a/types/ali-oss/tslint.json b/types/ali-oss/tslint.json index 8192d88dd15ae16..cb46d48177c140d 100644 --- a/types/ali-oss/tslint.json +++ b/types/ali-oss/tslint.json @@ -3,4 +3,4 @@ "rules": { "no-mergeable-namespace": false } -} +} \ No newline at end of file diff --git a/types/alks-node/tslint.json b/types/alks-node/tslint.json index 3db14f85eaf7b98..00089f9c20162d7 100644 --- a/types/alks-node/tslint.json +++ b/types/alks-node/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-outside-dependencies": false + } +} \ No newline at end of file diff --git a/types/alt/tsconfig.json b/types/alt/tsconfig.json index 82260e525d4dffc..a300b39423946cf 100644 --- a/types/alt/tsconfig.json +++ b/types/alt/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "alt-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/alt/tslint.json b/types/alt/tslint.json index 6c7fd03ccda21f4..839574f2f323246 100644 --- a/types/alt/tslint.json +++ b/types/alt/tslint.json @@ -3,79 +3,27 @@ "rules": { "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, "no-angle-bracket-type-assertion": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/amap-js-api-transfer/amap-js-api-transfer-tests.ts b/types/amap-js-api-transfer/amap-js-api-transfer-tests.ts new file mode 100644 index 000000000000000..59dccba1aeebb23 --- /dev/null +++ b/types/amap-js-api-transfer/amap-js-api-transfer-tests.ts @@ -0,0 +1,371 @@ +declare const map: AMap.Map; +declare const lnglat: AMap.LngLat; +declare const lnglatTuple: [number, number]; + +// $ExpectError +new AMap.Transfer(); +// $ExpectType Transfer +new AMap.Transfer({ + city: 'city' +}); +// $ExpectType Transfer +const transfer = new AMap.Transfer({ + city: 'city1', + policy: AMap.TransferPolicy.LEAST_TIME, + nightflag: true, + cityd: 'city2', + extensions: 'base', + map, + panel: 'panel', + hideMarkers: false, + isOutline: true, + outlineColor: 'green', + autoFitView: true +}); + +// $ExpectType void +transfer.search(lnglat, lnglat); +// $ExpectType void +transfer.search(lnglatTuple, lnglatTuple); +// $ExpectType void +transfer.search(lnglat, lnglat, (status, result) => { + const temp: 'complete' | 'no_data' | 'error' = status; + if (typeof result !== 'string') { + // $ExpectType SearchResultBase + result; + // $ExpectType LngLat + result.destination; + // $ExpectType Poi | undefined + result.end; + if (result.end) { + const end = result.end; + // $ExpectType LngLat + end.location; + // $ExpectType string + end.name; + // $ExpectType "start" | "end" + end.type; + } + // $ExpectType string + result.info; + // $ExpectType LngLat + result.origin; + // $ExpectType TransferPlan[] + result.plans; + { + const plan = result.plans[0]; + // $ExpectType number + plan.cost; + // $ExpectType number + plan.distance; + // $ExpectType boolean + plan.nightLine; + // $ExpectType LngLat[] + plan.path; + // $ExpectType number + plan.railway_distance; + // $ExpectType Segment[] + plan.segments; + const segments = plan.segments[0]; + switch (segments.transit_mode) { + case 'WALK': + // $ExpectType number + segments.distance; + // $ExpectType string + segments.instruction; + // $ExpectType number + segments.time; + // $ExpectType WalkDetails + const walkDetails = segments.transit; + { + // $ExpectType LngLat + walkDetails.destination; + // $ExpectType LngLat + walkDetails.origin; + // $ExpectType LngLat[] + walkDetails.path; + // $ExpectType WalkStep[] + walkDetails.steps; + const walkStep = walkDetails.steps[0]; + if (walkStep) { + // $ExpectType string + walkStep.action; + // $ExpectType string + walkStep.assist_action; + // $ExpectType number + walkStep.distance; + // $ExpectType string + walkStep.instruction; + // $ExpectType LngLat[] + walkStep.path; + // $ExpectType string + walkStep.road; + // $ExpectType number + walkStep.time; + } + } + // $ExpectType "WALK" + segments.transit_mode; + break; + case 'TAXI': + // $ExpectType number + segments.distance; + // $ExpectType string + segments.instruction; + // $ExpectType number + segments.time; + // $ExpectType string + segments.instruction; + // $ExpectType TaxiDetails + const taxiDetails = segments.transit; + { + // $ExpectType LngLat + taxiDetails.destination; + // $ExpectType number + taxiDetails.distance; + // $ExpectType LngLat + taxiDetails.origin; + // $ExpectType string + taxiDetails.sname; + // $ExpectType number + taxiDetails.time; + // $ExpectType string + taxiDetails.tname; + } + // $ExpectType "TAXI" + segments.transit_mode; + break; + case 'RAILWAY': + // $ExpectType number + segments.distance; + // $ExpectType string + segments.instruction; + // $ExpectType number + segments.time; + // $ExpectType RailwayDetails + const railwayDetails = segments.transit; + { + // $ExpectType RailStop + const arrivalStop = railwayDetails.arrival_stop; + { + // $ExpectType string + arrivalStop.adcode; + // $ExpectType string + arrivalStop.id; + // $ExpectType LngLat + arrivalStop.location; + // $ExpectType string + arrivalStop.name; + // $ExpectType RailwaySegment | undefined + arrivalStop.segment; + // $ExpectType number + arrivalStop.time; + } + // $ExpectType RailStop + railwayDetails.departure_stop; + // $ExpectType number + railwayDetails.distance; + // $ExpectType string + railwayDetails.id; + // $ExpectType string + railwayDetails.name; + // $ExpectType Space[] + railwayDetails.spaces; + { + const space = railwayDetails.spaces[0]; + // $ExpectType number + space.cost; + // $ExpectType string | never[] + space.type; + } + // $ExpectType number + railwayDetails.time; + // $ExpectType string + railwayDetails.trip; + // $ExpectType string + railwayDetails.type; + + if ('alters' in railwayDetails) { + // $ExpectType Alter[] + railwayDetails.alters; + { + const alter = railwayDetails.alters[0]; + // $ExpectType string + alter.id; + // $ExpectType string + alter.name; + } + railwayDetails.alters; + // $ExpectType number + railwayDetails.via_num; + // $ExpectType ViaStop[] + railwayDetails.via_stops; + { + const viaStop = railwayDetails.via_stops[0]; + // $ExpectType string + viaStop.id; + // $ExpectType LngLat + viaStop.location; + // $ExpectType string + viaStop.name; + // $ExpectType number + viaStop.time; + // $ExpectType number + viaStop.wait; + } + } + } + // $ExpectType "RAILWAY" + segments.transit_mode; + break; + case 'SUBWAY': + case 'METRO_RAIL': + case 'BUS': + // $ExpectType number + segments.distance; + // $ExpectType string + segments.instruction; + // $ExpectType number + segments.time; + // $ExpectType TransitDetails + const transitDetail = segments.transit; + { + // $ExpectType SubwayEntrance | undefined + const exit = transitDetail.exit; + if (exit) { + // $ExpectType LngLat + exit.location; + // $ExpectType string + exit.name; + } + // $ExpectType SubwayEntrance | undefined + transitDetail.entrance; + // $ExpectType TransitLine[] + transitDetail.lines; + { + const line = transitDetail.lines[0]; + // $ExpectType string | never[] + line.etime; + // $ExpectType string + line.id; + // $ExpectType string + line.name; + // $ExpectType string | never[] + line.stime; + // $ExpectType string + line.type; + } + // $ExpectType Stop + const offStation = transitDetail.off_station; + { + // $ExpectType string + offStation.id; + // $ExpectType LngLat + offStation.location; + // $ExpectType string + offStation.name; + // $ExpectType TransitSegment | undefined + offStation.segment; + } + // $ExpectType Stop + transitDetail.on_station; + // $ExpectType LngLat[] + transitDetail.path; + // $ExpectType number + transitDetail.via_num; + // $ExpectType Stop[] + transitDetail.via_stops; + { + const viaStop = transitDetail.via_stops[0]; + // $ExpectType string + viaStop.id; + // $ExpectType LngLat + viaStop.location; + // $ExpectType string + viaStop.name; + } + } + // $ExpectType "SUBWAY" | "METRO_RAIL" | "BUS" + segments.transit_mode; + break; + default: + // $ExpectType never + segments; + } + // $ExpectType number + plan.taxi_distance; + // $ExpectType number + plan.time; + // $ExpectType number + plan.transit_distance; + // $ExpectType number + plan.walking_distance; + } + // $ExpectType Poi | undefined + result.start; + // $ExpectType number + result.taxi_cost; + } else { + // $ExpectType string + result; + } +}); + +// $ExpectType void +transfer.search([{ keyword: 'origin' }, { keyword: 'destination' }], (status, result) => { + const temp: 'complete' | 'no_data' | 'error' = status; + if (typeof result !== 'string') { + // $ExpectType SearchResultExt + result; + // $ExpectType PoiExt + result.start; + // $ExpectType string + result.originName; + // $ExpectType PoiExt + result.end; + // $ExpectType string + result.destinationName; + } else { + // $ExpectType string + result; + } +}); + +transfer.on('complete', (event: AMap.Transfer.EventMap['complete']) => { + // $ExpectType "complete" + event.type; + if ('info' in event) { + // $ExpectType string + event.info; + // $ExpectType LngLat + event.origin; + // $ExpectType LngLat + event.destination; + // $ExpectType number + event.taxi_cost; + // $ExpectType TransferPlan[] + event.plans; + } + if ('originName' in event) { + // $ExpectType PoiExt + event.start; + // $ExpectType PoiExt + event.end; + // $ExpectType string + event.originName; + // $ExpectType string + event.destinationName; + } else { + // $ExpectType Poi | undefined + event.start; + // $ExpectType Poi | undefined + event.end; + } +}); + +transfer.on('error', (event: AMap.Transfer.EventMap['error']) => { + // $ExpectType "error" + event.type; + // $ExpectType string + event.info; +}); diff --git a/types/amap-js-api-transfer/index.d.ts b/types/amap-js-api-transfer/index.d.ts new file mode 100644 index 000000000000000..fed8c55034bf219 --- /dev/null +++ b/types/amap-js-api-transfer/index.d.ts @@ -0,0 +1,609 @@ +// Type definitions for non-npm package amap-js-api-transfer 1.4 +// Project: https://lbs.amap.com/api/javascript-api/reference/route-search#m_AMap.Transfer +// Definitions by: breeze9527 +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.8 + +/// +/// + +declare namespace AMap { + enum TransferPolicy { + /** + * 最快捷模式 + */ + LEAST_TIME = 0, + /** + * 最经济模式 + */ + LEAST_FEE = 1, + /** + * 最少换乘模式 + */ + LEAST_TRANSFER = 2, + /** + * 最少步行模式 + */ + LEAST_WALK = 3, + /** + * 最舒适模式 + */ + MOST_COMFORT = 4, + /** + * 不乘地铁模式 + */ + NO_SUBWAY = 5 + } + + namespace Transfer { + interface EventMap { + error: Event<'error', { info: string }>; + complete: Event<'complete', SearchResult>; + } + interface Options { + /** + * 公交换乘的城市,支持城市名称、城市区号、电话区号,此项为必填 + */ + city: string; + /** + * 公交换乘策略 + */ + policy?: TransferPolicy; + /** + * 是否计算夜班车,默认为不计算 + */ + nightflag?: boolean; + /** + * 终点城市,跨城公交路径规划时为必填参数 + */ + cityd?: string; + /** + * 返回结果控制, 默认值: base + * base:返回基本信息 + * all:返回全部信息 + */ + extensions?: 'all' | 'base'; + /** + * AMap.Map对象, 展现结果的地图实例 + */ + map?: Map; + /** + * 结果列表的HTML容器id或容器元素 + */ + panel?: string; + /** + * 设置是否隐藏路径规划的起始点图标 + */ + hideMarkers?: boolean; + /** + * 使用map属性时,绘制的规划线路是否显示描边。默认为true + */ + isOutline?: boolean; + /** + * 使用map属性时,绘制的规划线路的描边颜色。默认为'white' + */ + outlineColor?: string; + /** + * 用于控制在路径规划结束后,是否自动调整地图视野使绘制的路线处于视口的可见范围 + */ + autoFitView?: boolean; + + // internal + showDir?: boolean; + } + interface SearchPoint { + /** + * 关键词 + */ + keyword: string; + } + interface SegmentCommon { + /** + * 此换乘段预期用时,单位:秒 + */ + time: number; + /** + * 此换乘段的文字描述 + */ + instruction: string; + /** + * 此换乘段距离 + */ + distance: number; + } + interface WalkStep { + /** + * 步行子路段描述 + */ + instruction: string; + /** + * 道路 + */ + road: string; + /** + * 步行子路段距离,单位:米 + */ + distance: number; + /** + * 步行子路段预计使用时间,单位:秒 + */ + time: number; + /** + * 步行子路段坐标集合 + */ + path: LngLat[]; + /** + * 本步行子路段完成后动作 + */ + action: string; + /** + * 步行子路段完成后辅助动作,一般为到达某个公交站点或目的地时返回 + */ + assist_action: string; + } + interface WalkDetails { + /** + * 此换乘段的步行起点 + */ + origin: LngLat; + /** + * 此换乘段的步行终点 + */ + destination: LngLat; + /** + * 此换乘段坐标集合 + */ + path: LngLat[]; + /** + * 步行子路段WalkStep列表 + */ + steps: WalkStep[]; + } + interface WalkSegment extends SegmentCommon { + /** + * 换乘动作类型 + */ + transit_mode: 'WALK'; + /** + * 此换乘段导航信息 + */ + transit: WalkDetails; + } + interface TaxiDetails { + /** + * 耗时,单位:秒 + */ + time: number; + /** + * 该方案的总距离,单位:米 + */ + distance: number; + /** + * 打车起点坐标 + */ + origin: LngLat; + /** + * 打车终点坐标 + */ + destination: LngLat; + /** + * 起点名称 + */ + sname: string; + /** + * 终点名称 + */ + tname: string; + } + interface TaxiSegment extends SegmentCommon { + /** + * 换乘动作类型 + */ + transit_mode: 'TAXI'; + /** + * 此换乘段导航信息 + */ + transit: TaxiDetails; + } + interface Stop { + /** + * 公交站点名称 + */ + name: string; + /** + * 公交站点ID + */ + id: string; + /** + * 站点经纬度信息 + */ + location: LngLat; + segment?: TransitSegment; + } + interface TransitLine { + /** + * 公交路线名 + */ + name: string; + /** + * 公交路线ID + */ + id: string; + /** + * 公交类型 + */ + type: string; + /** + * 公交路线首班车时间 + */ + stime: string | never[]; + /** + * 公交路线末班车时间 + */ + etime: string | never[]; + } + interface SubwayEntrance { + /** + * 地铁口名称 + */ + name: string; + /** + * 地铁口经纬度坐标 + */ + location: LngLat; + } + interface TransitDetails { + /** + * 此换乘段的上车站 + */ + on_station: Stop; + /** + * 此换乘段的下车站 + */ + off_station: Stop; + /** + * 此换乘段公交部分(上车站-下车站)坐标集合 + */ + path: LngLat[]; + /** + * 途径公交站点数(不包括上车站和下车站) + */ + via_num: number; + /** + * 途径公交站点集合(不包括上车站和下车站) + */ + via_stops: Stop[]; + /** + * 此换乘段公交路线 + */ + lines: TransitLine[]; + /** + * 地铁站入口 + */ + entrance?: SubwayEntrance; + /** + * 地铁站出口 + */ + exit?: SubwayEntrance; + } + interface TransitSegment extends SegmentCommon { + /** + * 换乘动作类型 + */ + transit_mode: 'SUBWAY' | 'METRO_RAIL' | 'BUS'; + /** + * 此换乘段导航信息 + */ + transit: TransitDetails; + } + interface RailStop { + /** + * 上、下车站点所在城市的adcode + */ + adcode: string; + /** + * 上、下车站点ID + */ + id: string; + /** + * 上、下站点经纬度信息 + */ + location: LngLat; + /** + * 上、下车站点名称 + */ + name: string; + /** + * 上下车点发车时间 + */ + time: number; + wait?: number; + segment?: RailwaySegment; + } + interface Space { + /** + * 仓位编码,参考仓位级别表 + */ + type: string | never[]; + /** + * 仓位费用 + */ + cost: number; + } + interface RailwayDetailsBase { + /** + * 线路id编码 + */ + id: string; + /** + * 线路名称 + */ + name: string; + /** + * 线路车次号 + */ + trip: string; + /** + * 线路车次类型,参考火车路线类型列表 + */ + type: string; + /** + * 该换乘段的行车总距离 + */ + distance: number; + /** + * 该线路车段耗时 + */ + time: number; + /** + * 火车始发站信息 + */ + departure_stop: RailStop; + /** + * 火车到站信息 + */ + arrival_stop: RailStop; + /** + * 仓位及价格信息 + */ + spaces: Space[]; + } + interface Alter { + /** + * 备选方案ID + */ + id: string; + /** + * 备选线路名称 + */ + name: string; + } + interface ViaStop { + /** + * 途径车站点ID + */ + id: string; + /** + * 站点经纬度信息 + */ + location: LngLat; + /** + * 途径车站点名称 + */ + name: string; + /** + * 途径站点的进站时间,如大于24:00,则表示跨天 + */ + time: number; + /** + * 途径站点的停靠时间,单位:分钟 + */ + wait: number; + } + interface RailwayDetailsExt extends RailwayDetailsBase { + /** + * 途经站点信息 + */ + via_stops: ViaStop[]; + /** + * 途经站点数量 + */ + via_num: number; + /** + * 聚合的备选方案 + */ + alters: Alter[]; + } + type RailwayDetails = RailwayDetailsBase | RailwayDetailsExt; + interface RailwaySegment extends SegmentCommon { + /** + * 换乘动作类型 + */ + transit_mode: 'RAILWAY'; + /** + * 此换乘段导航信息 + */ + transit: RailwayDetails; + } + type Segment = WalkSegment | TaxiSegment | TransitSegment | RailwaySegment; + interface TransferPlan { + /** + * 此换乘方案价格,单位:元 + */ + cost: number; + /** + * 预期时间,单位:秒 + */ + time: number; + /** + * 是否夜间线路 + */ + nightLine: boolean; + /** + * 换乘路段列表,以每次换乘动结束作为分段点,将整个换乘方案分隔成若干 Segment(换乘路段) + */ + segments: Segment[]; + /** + * 此方案公交行驶距离,单位:米 + */ + transit_distance: number; + /** + * 此方案火车行驶距离,单位:米 + */ + railway_distance: number; + /** + * 此方案总步行距离,单位:米 + */ + walking_distance: number; + /** + * 此方案出租车行驶距离,单位:米 + */ + taxi_distance: number; + /** + * 此换乘方案全程距离,单位:米 + */ + distance: number; + /** + * 此换乘方案的路径坐标集合 + */ + path: LngLat[]; + } + interface Poi { + location: LngLat; + name: string; + type: 'start' | 'end'; + } + interface SearchResultCommon { + /** + * 成功状态说明 + */ + info: string; + /** + * 公交换乘起点坐标 + */ + origin: LngLat; + /** + * 公交换乘终点坐标 + */ + destination: LngLat; + /** + * 出租车费用,单位:元 + */ + taxi_cost: number; + /** + * 换乘方案列表 + */ + plans: TransferPlan[]; + } + interface SearchResultBase extends SearchResultCommon { + /** + * 公交换乘起点 + */ + start?: Poi; + /** + * 公交换乘终点 + */ + end?: Poi; + } + interface SearchResultExt extends SearchResultCommon { + /** + * 公交换乘起点 + */ + start: PlaceSearch.PoiExt; + /** + * 公交换乘终点 + */ + end: PlaceSearch.PoiExt; + /** + * 公交换乘起点名称 + */ + originName: string; + /** + * 公交换乘终点名称 + */ + destinationName: string; + } + + type SearchResult = SearchResultBase | SearchResultExt; + type SearchStatus = 'complete' | 'error' | 'no_data'; + } + + class Transfer extends EventEmitter { + /** + * 公交换乘服务 + * @param options 构造函数选项 + */ + constructor(options: Transfer.Options); + /** + * 根据起点和终点坐标,进行公交换乘查询 + * @param origin 起点坐标 + * @param destination 终点坐标 + * @param callback 查询回调 + */ + search( + origin: LocationValue, + destination: LocationValue, + callback?: (status: Transfer.SearchStatus, result: string | Transfer.SearchResultBase) => void + ): void; + /** + * 根据起点和终点坐标,进行公交换乘查询 + * @param path 路径名称关键字 + * @param callback 路径回调 + */ + search( + path: [Transfer.SearchPoint, Transfer.SearchPoint], + callback?: (status: Transfer.SearchStatus, result: string | Transfer.SearchResultExt) => void + ): void; + /** + * 设置公交换乘策略 + * @param policy 公交换乘策略 + */ + setPolicy(policy?: TransferPolicy): void; + /** + * 设置公交换乘查询的城市 + * @param city 城市名称、城市区号、电话区号 + */ + setCity(city?: string): void; + /** + * 设置公交换乘查询的城市 + * @param city 城市名称、城市区号、电话区号 + */ + setCityd(city?: string): void; + /** + * 设置公交路径规划出发时间 + * @param time 时间 + * @param date 日期 + */ + leaveAt(time?: string, date?: string): void; + /** + * 清除结果显示 + */ + clear(): void; + /** + * 唤起高德地图客户端公交路径规划 + * @param obj 唤起参数 + */ + searchOnAMAP(obj: { + /** + * 起点坐标 + */ + origin: LocationValue, + /** + * 起点名称 + */ + originName?: string, + /** + * 终点坐标 + */ + destination: LocationValue, + /** + * 终点名称 + */ + destinationName?: string + }): void; + + // internal + open(): void; + close(): void; + } +} diff --git a/types/amap-js-api-transfer/tsconfig.json b/types/amap-js-api-transfer/tsconfig.json new file mode 100644 index 000000000000000..4bc3d0f59a09480 --- /dev/null +++ b/types/amap-js-api-transfer/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noEmit": true, + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "amap-js-api-transfer-tests.ts" + ] +} diff --git a/types/roads-server/tslint.json b/types/amap-js-api-transfer/tslint.json similarity index 100% rename from types/roads-server/tslint.json rename to types/amap-js-api-transfer/tslint.json diff --git a/types/amap-js-api/amap-js-api-tests.ts b/types/amap-js-api/amap-js-api-tests.ts index 6a5a9db8916e864..4e148bb60c8bc17 100644 --- a/types/amap-js-api/amap-js-api-tests.ts +++ b/types/amap-js-api/amap-js-api-tests.ts @@ -972,6 +972,18 @@ testPixel.toFixed(); // $ExpectType Pixel testPixel.toFixed(2); +/** + * plugin.ts + */ + +AMap.plugin('plugin name', () => { + // callback +}); + +AMap.service('plugin name', () => { + // callback +}); + /** * size.ts */ diff --git a/types/amap-js-api/index.d.ts b/types/amap-js-api/index.d.ts index d61a3e7a90baadc..14548bad0ebbb2a 100644 --- a/types/amap-js-api/index.d.ts +++ b/types/amap-js-api/index.d.ts @@ -15,6 +15,7 @@ /// /// /// +/// /// /// /// diff --git a/types/amap-js-api/plugin.d.ts b/types/amap-js-api/plugin.d.ts new file mode 100644 index 000000000000000..b6b7148ab04afa4 --- /dev/null +++ b/types/amap-js-api/plugin.d.ts @@ -0,0 +1,14 @@ +declare namespace AMap { + /** + * 加载插件, + * @param name 插件名称 + * @param callback 插件加载完成后的回调函数 + */ + function plugin(plugin: string | string[], callback: () => void): typeof AMap; + /** + * 加载插件, + * @param name 插件名称 + * @param callback 插件加载完成后的回调函数 + */ + function service(plugin: string | string[], callback: () => void): typeof AMap; +} diff --git a/types/amap-js-api/tsconfig.json b/types/amap-js-api/tsconfig.json index 9b512bebdc39780..750bdedd08f6c1e 100644 --- a/types/amap-js-api/tsconfig.json +++ b/types/amap-js-api/tsconfig.json @@ -21,4 +21,4 @@ "index.d.ts", "amap-js-api-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/amazon-connect-streams/index.d.ts b/types/amazon-connect-streams/index.d.ts index 23ee2bbcccea0d2..5299f7d6b253e7f 100644 --- a/types/amazon-connect-streams/index.d.ts +++ b/types/amazon-connect-streams/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for non-npm package Amazon Connect Streams API 1.3 +// Type definitions for Amazon Connect Streams API 1.4 // Project: https://github.com/aws/amazon-connect-streams // Definitions by: Andy Hopper // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/amazon-product-api/tsconfig.json b/types/amazon-product-api/tsconfig.json index 060741740bbafb2..b5771192e5096a9 100644 --- a/types/amazon-product-api/tsconfig.json +++ b/types/amazon-product-api/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "amazon-product-api-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/amazon-product-api/tslint.json b/types/amazon-product-api/tslint.json index 3d59f55fdabcf45..c0ba88ff74ff548 100644 --- a/types/amazon-product-api/tslint.json +++ b/types/amazon-product-api/tslint.json @@ -1,80 +1,19 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/amcharts/tslint.json b/types/amcharts/tslint.json index 0f117134debe98b..159b250765146f1 100644 --- a/types/amcharts/tslint.json +++ b/types/amcharts/tslint.json @@ -1,10 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "max-line-length": [ - true, - 120 - ], "npm-naming": false } } \ No newline at end of file diff --git a/types/amplify-deferred/tsconfig.json b/types/amplify-deferred/tsconfig.json index 443772e942a31ef..c3158addc6a5e10 100644 --- a/types/amplify-deferred/tsconfig.json +++ b/types/amplify-deferred/tsconfig.json @@ -5,9 +5,9 @@ "es6", "dom" ], - "noImplicitAny": false, + "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "amplify-deferred-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/amplify/tslint.json b/types/amplify/tslint.json index 0be107671d6d87c..6d16a08c61491b7 100644 --- a/types/amplify/tslint.json +++ b/types/amplify/tslint.json @@ -2,7 +2,7 @@ "extends": "dtslint/dt.json", "rules": { "ban-types": false, - "unified-signatures": false, - "npm-naming": false + "npm-naming": false, + "unified-signatures": false } } \ No newline at end of file diff --git a/types/amplitude-js/amplitude-js-tests.ts b/types/amplitude-js/amplitude-js-tests.ts index f5eb4b30b92196b..8935ba8760e02d4 100644 --- a/types/amplitude-js/amplitude-js-tests.ts +++ b/types/amplitude-js/amplitude-js-tests.ts @@ -1,117 +1,208 @@ -// Tests for Amplitude SDK TypeScript definitions - import amplitude = require('amplitude-js'); -module Amplitude.Tests { - - function all() { - var client: amplitude.AmplitudeClient = new amplitude.AmplitudeClient(); - var identify: amplitude.Identify = new amplitude.Identify(); - var revenue: amplitude.Revenue = new amplitude.Revenue(); +(() => { + let client: amplitude.AmplitudeClient = new amplitude.AmplitudeClient(); + let identify: amplitude.Identify = new amplitude.Identify(); + let revenue: amplitude.Revenue = new amplitude.Revenue(); - client = amplitude.getInstance(); - client = amplitude.getInstance('some name'); + client = amplitude.getInstance(); + client = amplitude.getInstance('some name'); - amplitude.__VERSION__ === '1.2.3'; - amplitude.options.logLevel = 'WARN'; + amplitude.__VERSION__ === '1.2.3'; + amplitude.options.logLevel = 'WARN'; - amplitude.init('API_KEY', 'USER_ID', { + amplitude.init( + 'API_KEY', + 'USER_ID', + { saveEvents: true, includeUtm: true, includeReferrer: true, batchEvents: true, - eventUploadThreshold: 50 - }, function () { }); - amplitude.init('API_KEY', 'USER_ID', { includeReferrer: true, includeUtm: true }); - amplitude.init('API_KEY', 'USER_ID'); - amplitude.init('API_KEY'); - - amplitude.logEvent('Clicked Homepage Button', { 'finished_flow': false, 'clicks': 15 }); - amplitude.logEvent('EVENT_IDENTIFIER_HERE', { 'color': 'blue', 'age': 20, 'key': 'value' }); - amplitude.logEvent("EVENT_IDENTIFIER_HERE", null, (httpCode, response) => { }); - amplitude.logEventWithGroups('initialize_game', { 'key': 'value' }, { 'sport': 'soccer' }); - - amplitude.setDeviceId('45f0954f-eb79-4463-ac8a-233a6f45a8f0'); - amplitude.setDomain('.amplitude.com'); - amplitude.setGroup('orgId', '15'); - amplitude.setGroup('orgId', ['15', '16']); - amplitude.setUserId('joe@gmail.com'); - amplitude.setUserId(null); - amplitude.setUserProperties({ 'gender': 'female', 'sign_up_complete': true }) - amplitude.setVersionName('1.12.3'); - amplitude.isNewSession(); - amplitude.getSessionId() === 123; - - amplitude.identify(identify); - amplitude.logRevenue(3.99, 1, 'product_1234'); - amplitude.logRevenueV2(revenue); - - - client.init('API_KEY', 'USER_ID', { + eventUploadThreshold: 50, + }, + () => {}, + ); + amplitude.init('API_KEY', 'USER_ID', { includeReferrer: true, includeUtm: true }); + amplitude.init('API_KEY', 'USER_ID'); + amplitude.init('API_KEY'); + + amplitude.logEvent('Clicked Homepage Button', { finished_flow: false, clicks: 15 }); + amplitude.logEvent('EVENT_IDENTIFIER_HERE', { color: 'blue', age: 20, key: 'value' }); + amplitude.logEvent('EVENT_IDENTIFIER_HERE', null, (httpCode, response) => {}); + amplitude.logEventWithGroups('initialize_game', { key: 'value' }, { sport: 'soccer' }); + + amplitude.setDeviceId('45f0954f-eb79-4463-ac8a-233a6f45a8f0'); + amplitude.setDomain('.amplitude.com'); + amplitude.setGroup('orgId', '15'); + amplitude.setGroup('orgId', ['15', '16']); + amplitude.setUserId('joe@gmail.com'); + amplitude.setUserId(null); + amplitude.setUserProperties({ gender: 'female', sign_up_complete: true }); + amplitude.setVersionName('1.12.3'); + amplitude.isNewSession(); + amplitude.getSessionId() === 123; + + amplitude.identify(identify); + amplitude.logRevenue(3.99, 1, 'product_1234'); + amplitude.logRevenueV2(revenue); + + client.init( + 'API_KEY', + 'USER_ID', + { saveEvents: true, includeUtm: true, includeReferrer: true, batchEvents: true, - eventUploadThreshold: 50 - }, function () { }); - client.init('API_KEY', 'USER_ID', { includeReferrer: true, includeUtm: true }); - client.init('API_KEY', 'USER_ID'); - client.init('API_KEY'); - - client.logEvent('Clicked Homepage Button', { 'finished_flow': false, 'clicks': 15 }); - client.logEvent('EVENT_IDENTIFIER_HERE', { 'color': 'blue', 'age': 20, 'key': 'value' }); - client.logEvent("EVENT_IDENTIFIER_HERE", null, (httpCode, response) => { }); - client.logEventWithGroups('initialize_game', { 'key': 'value' }, { 'sport': 'soccer' }); - client.logEventWithTimestamp('EVENT_IDENTIFIER_HERE', { 'key': 'value' }, 1505430378000, (httpCode, response) => { }); - - - client.setDeviceId('45f0954f-eb79-4463-ac8a-233a6f45a8f0'); - client.setDomain('.amplitude.com'); - client.setUserId('joe@gmail.com'); - client.setUserId(null); - client.setOptOut(true); - client.setGroup('type', 'name'); - client.setGroup('type', ['name', 'name2']); - client.setUserProperties({ 'gender': 'female', 'sign_up_complete': true }); - client.setGlobalUserProperties({ 'gender': 'female', 'sign_up_complete': true }); - client.setVersionName('1.12.3'); - client.setSessionId(1505430378000); - - client.options.logLevel = 'WARN'; - client.getSessionId() === 123; - client.isNewSession() === true; - client.regenerateDeviceId(); - client.clearUserProperties(); - - client.identify(identify); - client.logRevenue(3.99, 1, 'product_1234'); - client.logRevenueV2(revenue); - - - identify = new amplitude.Identify().set('colors', ['rose', 'gold']).add('karma', 1).setOnce('sign_up_date', '2016-03-31'); - identify = new amplitude.Identify().add('karma', 1).add('friends', 1); - identify = new amplitude.Identify().set('karma', 10).add('karma', 1).unset('karma'); - identify = new amplitude.Identify().append('ab-tests', 'new-user-tests'); - identify.append('some_list', [1, 2, 3, 4, 'values']); - identify = new amplitude.Identify().prepend('ab-tests', 'new-user-tests'); - identify.prepend('some_list', [1, 2, 3, 4, 'values']); - identify = new amplitude.Identify().set('user_type', 'beta'); - identify.set('name', { 'first': 'John', 'last': 'Doe' }); - identify = new amplitude.Identify().setOnce('sign_up_date', '2016-04-01'); - identify = new amplitude.Identify().unset('user_type').unset('age'); - identify = new amplitude.Identify() - .set('colors', ['rose', 'gold']) - .append('ab-tests', 'campaign_a') - .append('existing_list', [4, 5]); - - - revenue = new amplitude.Revenue().setProductId('productIdentifier').setPrice(10.99); - revenue = new amplitude.Revenue().setProductId('productIdentifier').setPrice(10.99).setEventProperties({ 'city': 'San Francisco' }); - revenue = new amplitude.Revenue().setProductId('productIdentifier').setPrice(10.99).setQuantity(5); - revenue = new amplitude.Revenue().setProductId('productIdentifier').setPrice(10.99).setRevenueType('purchase'); - - identify = new client.Identify() - revenue = new client.Revenue() - } - -} + eventUploadThreshold: 50, + }, + () => {}, + ); + client.init('API_KEY', 'USER_ID', { includeReferrer: true, includeUtm: true }); + client.init('API_KEY', 'USER_ID'); + client.init('API_KEY'); + client.logEvent('Clicked Homepage Button', { finished_flow: false, clicks: 15 }); + client.logEvent('EVENT_IDENTIFIER_HERE', { color: 'blue', age: 20, key: 'value' }); + client.logEvent('EVENT_IDENTIFIER_HERE', null, (httpCode, response) => {}); + client.logEventWithGroups('initialize_game', { key: 'value' }, { sport: 'soccer' }); + client.logEventWithTimestamp('EVENT_IDENTIFIER_HERE', { key: 'value' }, 1505430378000, (httpCode, response) => {}); + client.setDeviceId('45f0954f-eb79-4463-ac8a-233a6f45a8f0'); + client.setDomain('.amplitude.com'); + client.setUserId('joe@gmail.com'); + client.setUserId(null); + client.setOptOut(true); + client.setGroup('type', 'name'); + client.setGroup('type', ['name', 'name2']); + client.setUserProperties({ gender: 'female', sign_up_complete: true }); + client.setGlobalUserProperties({ gender: 'female', sign_up_complete: true }); + client.setVersionName('1.12.3'); + client.setSessionId(1505430378000); + client.options.logLevel = 'WARN'; + client.getSessionId() === 123; + client.isNewSession(); + client.regenerateDeviceId(); + client.clearUserProperties(); + client.identify(identify); + client.logRevenue(3.99, 1, 'product_1234'); + client.logRevenueV2(revenue); + identify = new amplitude.Identify() + .set('colors', ['rose', 'gold']) + .add('karma', 1) + .setOnce('sign_up_date', '2016-03-31'); + identify = new amplitude.Identify().add('karma', 1).add('friends', 1); + identify = new amplitude.Identify() + .set('karma', 10) + .add('karma', 1) + .unset('karma'); + identify = new amplitude.Identify().append('ab-tests', 'new-user-tests'); + identify.append('some_list', [1, 2, 3, 4, 'values']); + identify = new amplitude.Identify().prepend('ab-tests', 'new-user-tests'); + identify.prepend('some_list', [1, 2, 3, 4, 'values']); + identify = new amplitude.Identify().set('user_type', 'beta'); + identify.set('name', { first: 'John', last: 'Doe' }); + identify = new amplitude.Identify().setOnce('sign_up_date', '2016-04-01'); + identify = new amplitude.Identify().unset('user_type').unset('age'); + identify = new amplitude.Identify() + .set('colors', ['rose', 'gold']) + .append('ab-tests', 'campaign_a') + .append('existing_list', [4, 5]); + + revenue = new amplitude.Revenue().setProductId('productIdentifier').setPrice(10.99); + revenue = new amplitude.Revenue() + .setProductId('productIdentifier') + .setPrice(10.99) + .setEventProperties({ city: 'San Francisco' }); + revenue = new amplitude.Revenue() + .setProductId('productIdentifier') + .setPrice(10.99) + .setQuantity(5); + revenue = new amplitude.Revenue() + .setProductId('productIdentifier') + .setPrice(10.99) + .setRevenueType('purchase'); + + identify = new client.Identify(); + revenue = new client.Revenue(); +})(); + +new amplitude.Identify(); +let identify = new amplitude.Identify().add('karma', 1).add('friends', 1); +amplitude.identify(identify); // send the Identify call + +identify = new amplitude.Identify().append('ab-tests', 'new-user-tests'); +identify.append('some_list', [1, 2, 3, 4, 'values']); +amplitude.identify(identify); // send the Identify call + +identify = new amplitude.Identify().prepend('ab-tests', 'new-user-tests'); +identify.prepend('some_list', [1, 2, 3, 4, 'values']); +amplitude.identify(identify); // send the Identify call + +identify = new amplitude.Identify().setOnce('sign_up_date', '2016-04-01'); +amplitude.identify(identify); // send the Identify call + +identify = new amplitude.Identify().unset('user_type').unset('age'); +amplitude.identify(identify); // send the Identify call + +identify = new amplitude.Identify() + .set('colors', ['rose', 'gold']) + .add('karma', 1) + .setOnce('sign_up_date', '2016-03-31'); +amplitude.identify(identify); + +amplitude.init('API_KEY', 'USER_ID', { includeReferrer: true, includeUtm: true }, () => {}); + +amplitude.logEvent('Clicked Homepage Button', { finished_flow: false, clicks: 15 }); +amplitude.logEventWithGroups('Clicked Button', null, { orgId: 24 }); +amplitude.logRevenue(3.99, 1, 'product_1234'); + +const revenue = new amplitude.Revenue().setProductId('productIdentifier').setPrice(10.99); +amplitude.logRevenueV2(revenue); +amplitude.setDeviceId('45f0954f-eb79-4463-ac8a-233a6f45a8f0'); +amplitude.setGroup('orgId', '15'); // this adds the current user to orgId 15. +amplitude.setUserProperties({ gender: 'female', sign_up_complete: true }); +amplitude.setVersionName('1.12.3'); + +const defaults: amplitude.Config = { + apiEndpoint: 'api.amplitude.com', + batchEvents: false, + cookieExpiration: 365 * 10, + cookieName: 'amplitude_id', + deviceIdFromUrlParam: false, + domain: '', + eventUploadPeriodMillis: 30 * 1000, // 30s + eventUploadThreshold: 30, + forceHttps: true, + includeGclid: false, + includeReferrer: false, + includeUtm: false, + language: 'en', + logLevel: 'WARN', + optOut: false, + onError: () => {}, + platform: 'iOS', + savedMaxCount: 1000, + saveEvents: true, + saveParamsReferrerOncePerSession: true, + secureCookie: false, + sessionTimeout: 30 * 60 * 1000, + trackingOptions: { + city: true, + country: true, + carrier: true, + device_manufacturer: true, + device_model: true, + dma: true, + ip_address: true, + language: true, + os_name: true, + os_version: true, + platform: true, + region: true, + version_name: true, + }, + unsetParamsReferrerOnNewSession: false, + unsentKey: 'amplitude_unsent', + unsentIdentifyKey: 'amplitude_unsent_identify', + uploadBatchSize: 100, +}; diff --git a/types/amplitude-js/index.d.ts b/types/amplitude-js/index.d.ts index 7558c732d12e821..131c2584b08da2b 100644 --- a/types/amplitude-js/index.d.ts +++ b/types/amplitude-js/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Amplitude SDK 4.4.0 +// Type definitions for Amplitude SDK 5.8 // Project: https://github.com/amplitude/Amplitude-Javascript // Definitions by: Arvydas Sidorenko // Dan Manastireanu @@ -7,10 +7,10 @@ export as namespace amplitude; -type Callback = (responseCode: number, responseBody: string, details?: { reason: string; }) => void; -type LogReturn = number | void; +export type Callback = (responseCode: number, responseBody: string, details?: { reason: string }) => void; +export type LogReturn = number | undefined; -interface Config { +export interface Config { apiEndpoint?: string; batchEvents?: boolean; cookieExpiration?: number; @@ -28,15 +28,19 @@ interface Config { language?: string; logLevel?: 'DISABLE' | 'ERROR' | 'WARN' | 'INFO'; optOut?: boolean; + onError?: () => void; platform?: string; saveEvents?: boolean; savedMaxCount?: number; saveParamsReferrerOncePerSession?: boolean; + secureCookie?: boolean; sessionTimeout?: number; useNativeDeviceInfo?: boolean; trackingOptions?: { city?: boolean; country?: boolean; + carrier?: boolean; + device_manufacturer?: boolean; device_model?: boolean; dma?: boolean; ip_address?: boolean; @@ -46,24 +50,29 @@ interface Config { platform?: boolean; region?: boolean; version_name?: boolean; - }, + }; + unsetParamsReferrerOnNewSession?: boolean; unsentKey?: string; unsentIdentifyKey?: string; uploadBatchSize?: number; } export class Identify { - set(key: string, value: any): Identify; - setOnce(key: string, value: any): Identify; + /** increment a user property by a given value (can also be negative to decrement). */ add(key: string, value: number | string): Identify; - append(key: string, value: any): Identify; - prepend(key: string, value: any): Identify; - + /** Append a value or values to a user property */ + append(key: string, value: number | string | any[] | object): Identify; + /** Prepend a value or values to a user property */ + prepend(key: string, value: number | string | any[] | object): Identify; + /** Sets the value of a given user property */ + set(key: string, value: number | string | any[] | object): Identify; + /** Sets the value of a given user property only once */ + setOnce(key: string, value: number | string | any[] | object): Identify; + /** Unset and remove a user property */ unset(key: string): Identify; } export class Revenue { - setProductId(productId: string): Revenue; setQuantity(quantity: number): Revenue; setPrice(price: number): Revenue; @@ -72,7 +81,6 @@ export class Revenue { } export class AmplitudeClient { - constructor(instanceName?: string); options: Config; @@ -107,44 +115,89 @@ export class AmplitudeClient { logRevenue(pric: number, quantity: number, product: string): LogReturn; logEventWithTimestamp(event: string, data?: any, timestamp?: number, callback?: Callback): LogReturn; - Identify: typeof Identify - Revenue: typeof Revenue + Identify: typeof Identify; + Revenue: typeof Revenue; } // Proxy methods that get executed on the default AmplitudeClient instance (not all client methods are proxied) -export function init(apiKey: string, userId?: string, options?: Config, callback?: (client: AmplitudeClient) => void): void; - +/** + * + * @deprecated Please use amplitude.getInstance().init(apiKey, opt_userId, opt_config, opt_callback); + */ +export function init( + apiKey: string, + userId?: string, + options?: Config, + callback?: (client: AmplitudeClient) => void, +): void; +/** + * @deprecated Please use amplitude.getInstance().setVersionName(versionName) + */ export function setVersionName(version: string): void; +/** + * @deprecated Please use amplitude.getInstance().isNewSession(); + */ export function isNewSession(): boolean; +/** + * Returns the id of the current session. + * @deprecated Please use amplitude.getInstance().getSessionId(); + */ export function getSessionId(): number; export function setDomain(domain: string): void; export function setUserId(userId: string | null): void; - +/** + * @deprecated Please use amplitude.getInstance().setDeviceId(deviceId) + */ export function setDeviceId(id: string): void; +/** + * @deprecated Please use amplitude.getInstance().regenerateDeviceId() + */ export function regenerateDeviceId(): void; +/** Send an identify call containing user property operations to Amplitude servers */ export function identify(identify: Identify, callback?: Callback): void; - +/** + * @deprecated Please use amplitude.getInstance.setUserProperties(userProperties) + */ export function setUserProperties(properties: any): void; +/** + * @deprecated Note this is deprecated, and we recommend using setUserProperties + */ export function setGlobalUserProperties(properties: any): void; export function clearUserProperties(): void; +/** + * @deprecated Please use amplitude.getInstance().setUserId(userId) + */ export function setOptOut(optOut: boolean): void; - +/** + * @deprecated Please use amplitude.getInstance().setGroup(groupType, groupName) + */ export function setGroup(groupType: string, groupName: string | string[]): void; +/** + * @deprecated Please use amplitude.getInstance().logEvent(eventType, eventProperties, opt_callback); + */ export function logEvent(event: string, data?: any, callback?: Callback): LogReturn; + +/** + * Log an event with eventType, eventProperties, and groups + */ export function logEventWithGroups(event: string, data?: any, groups?: any, callback?: Callback): LogReturn; +/** + * @deprecated Please use amplitude.getInstance().logRevenueV2(revenue_obj); + */ export function logRevenueV2(revenue_obj: Revenue): LogReturn; +/** + * @deprecated Please use amplitude.getInstance().logRevenueV2(revenue_obj); + */ export function logRevenue(pric: number, quantity: number, product: string): LogReturn; export function logEventWithTimestamp(event: string, data?: any, timestamp?: number, callback?: Callback): LogReturn; - - export function getInstance(instanceName?: string): AmplitudeClient; export const __VERSION__: string; -export var options: Config; +export const options: Config; diff --git a/types/amplitude-js/tsconfig.json b/types/amplitude-js/tsconfig.json index 0ca8f85efec03d6..97617b205bb8490 100644 --- a/types/amplitude-js/tsconfig.json +++ b/types/amplitude-js/tsconfig.json @@ -6,8 +6,8 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, "strictFunctionTypes": true, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -20,4 +20,4 @@ "index.d.ts", "amplitude-js-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/amplitude-js/tslint.json b/types/amplitude-js/tslint.json index 3d59f55fdabcf45..d086f8e13f785e5 100644 --- a/types/amplitude-js/tslint.json +++ b/types/amplitude-js/tslint.json @@ -1,80 +1,17 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, - "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, - "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "npm-naming": [ + true, + { + "errors": [ + [ + "NeedsExportEquals", + false + ] + ], + "mode": "code" + } + ] } -} +} \ No newline at end of file diff --git a/types/amplitude-js/v4/amplitude-js-tests.ts b/types/amplitude-js/v4/amplitude-js-tests.ts new file mode 100644 index 000000000000000..f5eb4b30b92196b --- /dev/null +++ b/types/amplitude-js/v4/amplitude-js-tests.ts @@ -0,0 +1,117 @@ +// Tests for Amplitude SDK TypeScript definitions + +import amplitude = require('amplitude-js'); + +module Amplitude.Tests { + + function all() { + var client: amplitude.AmplitudeClient = new amplitude.AmplitudeClient(); + var identify: amplitude.Identify = new amplitude.Identify(); + var revenue: amplitude.Revenue = new amplitude.Revenue(); + + client = amplitude.getInstance(); + client = amplitude.getInstance('some name'); + + amplitude.__VERSION__ === '1.2.3'; + amplitude.options.logLevel = 'WARN'; + + amplitude.init('API_KEY', 'USER_ID', { + saveEvents: true, + includeUtm: true, + includeReferrer: true, + batchEvents: true, + eventUploadThreshold: 50 + }, function () { }); + amplitude.init('API_KEY', 'USER_ID', { includeReferrer: true, includeUtm: true }); + amplitude.init('API_KEY', 'USER_ID'); + amplitude.init('API_KEY'); + + amplitude.logEvent('Clicked Homepage Button', { 'finished_flow': false, 'clicks': 15 }); + amplitude.logEvent('EVENT_IDENTIFIER_HERE', { 'color': 'blue', 'age': 20, 'key': 'value' }); + amplitude.logEvent("EVENT_IDENTIFIER_HERE", null, (httpCode, response) => { }); + amplitude.logEventWithGroups('initialize_game', { 'key': 'value' }, { 'sport': 'soccer' }); + + amplitude.setDeviceId('45f0954f-eb79-4463-ac8a-233a6f45a8f0'); + amplitude.setDomain('.amplitude.com'); + amplitude.setGroup('orgId', '15'); + amplitude.setGroup('orgId', ['15', '16']); + amplitude.setUserId('joe@gmail.com'); + amplitude.setUserId(null); + amplitude.setUserProperties({ 'gender': 'female', 'sign_up_complete': true }) + amplitude.setVersionName('1.12.3'); + amplitude.isNewSession(); + amplitude.getSessionId() === 123; + + amplitude.identify(identify); + amplitude.logRevenue(3.99, 1, 'product_1234'); + amplitude.logRevenueV2(revenue); + + + client.init('API_KEY', 'USER_ID', { + saveEvents: true, + includeUtm: true, + includeReferrer: true, + batchEvents: true, + eventUploadThreshold: 50 + }, function () { }); + client.init('API_KEY', 'USER_ID', { includeReferrer: true, includeUtm: true }); + client.init('API_KEY', 'USER_ID'); + client.init('API_KEY'); + + client.logEvent('Clicked Homepage Button', { 'finished_flow': false, 'clicks': 15 }); + client.logEvent('EVENT_IDENTIFIER_HERE', { 'color': 'blue', 'age': 20, 'key': 'value' }); + client.logEvent("EVENT_IDENTIFIER_HERE", null, (httpCode, response) => { }); + client.logEventWithGroups('initialize_game', { 'key': 'value' }, { 'sport': 'soccer' }); + client.logEventWithTimestamp('EVENT_IDENTIFIER_HERE', { 'key': 'value' }, 1505430378000, (httpCode, response) => { }); + + + client.setDeviceId('45f0954f-eb79-4463-ac8a-233a6f45a8f0'); + client.setDomain('.amplitude.com'); + client.setUserId('joe@gmail.com'); + client.setUserId(null); + client.setOptOut(true); + client.setGroup('type', 'name'); + client.setGroup('type', ['name', 'name2']); + client.setUserProperties({ 'gender': 'female', 'sign_up_complete': true }); + client.setGlobalUserProperties({ 'gender': 'female', 'sign_up_complete': true }); + client.setVersionName('1.12.3'); + client.setSessionId(1505430378000); + + client.options.logLevel = 'WARN'; + client.getSessionId() === 123; + client.isNewSession() === true; + client.regenerateDeviceId(); + client.clearUserProperties(); + + client.identify(identify); + client.logRevenue(3.99, 1, 'product_1234'); + client.logRevenueV2(revenue); + + + identify = new amplitude.Identify().set('colors', ['rose', 'gold']).add('karma', 1).setOnce('sign_up_date', '2016-03-31'); + identify = new amplitude.Identify().add('karma', 1).add('friends', 1); + identify = new amplitude.Identify().set('karma', 10).add('karma', 1).unset('karma'); + identify = new amplitude.Identify().append('ab-tests', 'new-user-tests'); + identify.append('some_list', [1, 2, 3, 4, 'values']); + identify = new amplitude.Identify().prepend('ab-tests', 'new-user-tests'); + identify.prepend('some_list', [1, 2, 3, 4, 'values']); + identify = new amplitude.Identify().set('user_type', 'beta'); + identify.set('name', { 'first': 'John', 'last': 'Doe' }); + identify = new amplitude.Identify().setOnce('sign_up_date', '2016-04-01'); + identify = new amplitude.Identify().unset('user_type').unset('age'); + identify = new amplitude.Identify() + .set('colors', ['rose', 'gold']) + .append('ab-tests', 'campaign_a') + .append('existing_list', [4, 5]); + + + revenue = new amplitude.Revenue().setProductId('productIdentifier').setPrice(10.99); + revenue = new amplitude.Revenue().setProductId('productIdentifier').setPrice(10.99).setEventProperties({ 'city': 'San Francisco' }); + revenue = new amplitude.Revenue().setProductId('productIdentifier').setPrice(10.99).setQuantity(5); + revenue = new amplitude.Revenue().setProductId('productIdentifier').setPrice(10.99).setRevenueType('purchase'); + + identify = new client.Identify() + revenue = new client.Revenue() + } + +} diff --git a/types/amplitude-js/v4/index.d.ts b/types/amplitude-js/v4/index.d.ts new file mode 100644 index 000000000000000..7558c732d12e821 --- /dev/null +++ b/types/amplitude-js/v4/index.d.ts @@ -0,0 +1,150 @@ +// Type definitions for Amplitude SDK 4.4.0 +// Project: https://github.com/amplitude/Amplitude-Javascript +// Definitions by: Arvydas Sidorenko +// Dan Manastireanu +// Kimmo Hintikka +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export as namespace amplitude; + +type Callback = (responseCode: number, responseBody: string, details?: { reason: string; }) => void; +type LogReturn = number | void; + +interface Config { + apiEndpoint?: string; + batchEvents?: boolean; + cookieExpiration?: number; + cookieName?: string; + userId?: string; + deviceId?: string; + deviceIdFromUrlParam?: boolean; + domain?: string; + eventUploadPeriodMillis?: number; + eventUploadThreshold?: number; + forceHttps?: boolean; + includeGclid?: boolean; + includeReferrer?: boolean; + includeUtm?: boolean; + language?: string; + logLevel?: 'DISABLE' | 'ERROR' | 'WARN' | 'INFO'; + optOut?: boolean; + platform?: string; + saveEvents?: boolean; + savedMaxCount?: number; + saveParamsReferrerOncePerSession?: boolean; + sessionTimeout?: number; + useNativeDeviceInfo?: boolean; + trackingOptions?: { + city?: boolean; + country?: boolean; + device_model?: boolean; + dma?: boolean; + ip_address?: boolean; + language?: boolean; + os_name?: boolean; + os_version?: boolean; + platform?: boolean; + region?: boolean; + version_name?: boolean; + }, + unsentKey?: string; + unsentIdentifyKey?: string; + uploadBatchSize?: number; +} + +export class Identify { + set(key: string, value: any): Identify; + setOnce(key: string, value: any): Identify; + add(key: string, value: number | string): Identify; + append(key: string, value: any): Identify; + prepend(key: string, value: any): Identify; + + unset(key: string): Identify; +} + +export class Revenue { + + setProductId(productId: string): Revenue; + setQuantity(quantity: number): Revenue; + setPrice(price: number): Revenue; + setRevenueType(revenueType: string): Revenue; + setEventProperties(eventProperties: any): Revenue; +} + +export class AmplitudeClient { + + constructor(instanceName?: string); + + options: Config; + + init(apiKey: string, userId?: string, config?: Config, callback?: (client: AmplitudeClient) => void): void; + + setVersionName(versionName: string): void; + + isNewSession(): boolean; + setSessionId(sessionId: number): void; + getSessionId(): number; + + setDomain(domain: string): void; + setUserId(userId: string | null): void; + + setDeviceId(id: string): void; + regenerateDeviceId(): void; + + identify(identify_obj: Identify, opt_callback?: Callback): void; + + setUserProperties(properties: any): void; + setGlobalUserProperties(properties: any): void; + clearUserProperties(): void; + + setOptOut(enable: boolean): void; + + setGroup(groupType: string, groupName: string | string[]): void; + + logEvent(event: string, data?: any, callback?: Callback): LogReturn; + logEventWithGroups(event: string, data?: any, groups?: any, callback?: Callback): LogReturn; + logRevenueV2(revenue_obj: Revenue): LogReturn; + logRevenue(pric: number, quantity: number, product: string): LogReturn; + logEventWithTimestamp(event: string, data?: any, timestamp?: number, callback?: Callback): LogReturn; + + Identify: typeof Identify + Revenue: typeof Revenue +} + +// Proxy methods that get executed on the default AmplitudeClient instance (not all client methods are proxied) + +export function init(apiKey: string, userId?: string, options?: Config, callback?: (client: AmplitudeClient) => void): void; + +export function setVersionName(version: string): void; + +export function isNewSession(): boolean; +export function getSessionId(): number; + +export function setDomain(domain: string): void; + +export function setUserId(userId: string | null): void; + +export function setDeviceId(id: string): void; +export function regenerateDeviceId(): void; + +export function identify(identify: Identify, callback?: Callback): void; + +export function setUserProperties(properties: any): void; +export function setGlobalUserProperties(properties: any): void; +export function clearUserProperties(): void; + +export function setOptOut(optOut: boolean): void; + +export function setGroup(groupType: string, groupName: string | string[]): void; + +export function logEvent(event: string, data?: any, callback?: Callback): LogReturn; +export function logEventWithGroups(event: string, data?: any, groups?: any, callback?: Callback): LogReturn; +export function logRevenueV2(revenue_obj: Revenue): LogReturn; +export function logRevenue(pric: number, quantity: number, product: string): LogReturn; +export function logEventWithTimestamp(event: string, data?: any, timestamp?: number, callback?: Callback): LogReturn; + + + +export function getInstance(instanceName?: string): AmplitudeClient; +export const __VERSION__: string; +export var options: Config; diff --git a/types/amplitude-js/v4/tsconfig.json b/types/amplitude-js/v4/tsconfig.json new file mode 100644 index 000000000000000..8ecf3f742938a8a --- /dev/null +++ b/types/amplitude-js/v4/tsconfig.json @@ -0,0 +1,26 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../../", + "typeRoots": [ + "../../" + ], + "paths": { + "amplitude-js": [ "amplitude-js/v4" ] + }, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "amplitude-js-tests.ts" + ] +} diff --git a/types/amplitude-js/v4/tslint.json b/types/amplitude-js/v4/tslint.json new file mode 100644 index 000000000000000..776ca2bf0382a22 --- /dev/null +++ b/types/amplitude-js/v4/tslint.json @@ -0,0 +1,21 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "callable-types": false, + "dt-header": false, + "no-boolean-literal-compare": false, + "no-consecutive-blank-lines": false, + "no-internal-module": false, + "no-namespace": false, + "no-padding": false, + "no-redundant-jsdoc": false, + "no-var-keyword": false, + "object-literal-key-quotes": false, + "only-arrow-functions": false, + "prefer-method-signature": false, + "semicolon": false, + "space-before-function-paren": false, + "strict-export-declare-modifiers": false, + "void-return": false + } +} \ No newline at end of file diff --git a/types/amqp-connection-manager/index.d.ts b/types/amqp-connection-manager/index.d.ts index 15a30d25bf9f0f5..62db6494448edf8 100644 --- a/types/amqp-connection-manager/index.d.ts +++ b/types/amqp-connection-manager/index.d.ts @@ -36,7 +36,19 @@ export interface AmqpConnectionManagerOptions { * These are passed through directly to amqplib (http://www.squaremobius.net/amqp.node/channel_api.html#connect), * which in turn passes them through to tls.connect (https://nodejs.org/api/tls.html#tls_tls_connect_options_callback) */ - connectionOptions?: ConnectionOptions; + connectionOptions?: ConnectionOptions & { + noDelay?: boolean; + timeout?: number; + keepAlive?: boolean; + keepAliveDelay?: number; + clientProperties?: any; + credentials?: { + mechanism: string; + username: string; + password: string; + response: () => Buffer; + }; + }; } /** @@ -194,4 +206,9 @@ export interface ChannelWrapper extends EventEmitter { * Close a channel, clean up resources associated with it. */ close(): Promise; + + /** + * Returns a Promise which resolves when this channel next connects. + */ + waitForConnect(): Promise; } diff --git a/types/amqp-connection-manager/tslint.json b/types/amqp-connection-manager/tslint.json index d57642e30f9e79a..c7d87e32cc18186 100644 --- a/types/amqp-connection-manager/tslint.json +++ b/types/amqp-connection-manager/tslint.json @@ -1,8 +1,6 @@ { - "extends": "dtslint/dt.json", - "rules": { - "strict-export-declare-modifiers": false, - "unified-signatures": false, - "void-return": false - } -} + "extends": "dtslint/dt.json", + "rules": { + "unified-signatures": false + } +} \ No newline at end of file diff --git a/types/amqp-rpc/tslint.json b/types/amqp-rpc/tslint.json index 3d59f55fdabcf45..c69a818135854b6 100644 --- a/types/amqp-rpc/tslint.json +++ b/types/amqp-rpc/tslint.json @@ -1,80 +1,24 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, "object-literal-shorthand": false, "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "triple-equals": false } -} +} \ No newline at end of file diff --git a/types/amqp/tslint.json b/types/amqp/tslint.json index 9b00d57fefc46db..c7d87e32cc18186 100644 --- a/types/amqp/tslint.json +++ b/types/amqp/tslint.json @@ -1,8 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "unified-signatures": [ - "false" - ] + "unified-signatures": false } } \ No newline at end of file diff --git a/types/amqplib/tslint.json b/types/amqplib/tslint.json index f64a7837256667f..beb793f95be53ca 100644 --- a/types/amqplib/tslint.json +++ b/types/amqplib/tslint.json @@ -1,9 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { - // All are TODOs "no-any-union": false, "no-empty-interface": false, "prefer-const": false } -} +} \ No newline at end of file diff --git a/types/analytics-node/tsconfig.json b/types/analytics-node/tsconfig.json index 3684577e654f688..2611ee3ef7b7a4a 100644 --- a/types/analytics-node/tsconfig.json +++ b/types/analytics-node/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "analytics-node-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/anchor-js/anchor-js-tests.ts b/types/anchor-js/anchor-js-tests.ts index a27e09605ab8ec8..c41b375cfd5249a 100644 --- a/types/anchor-js/anchor-js-tests.ts +++ b/types/anchor-js/anchor-js-tests.ts @@ -14,3 +14,12 @@ const footerAnchors = new AnchorJS({ placement: 'right', }); footerAnchors.remove('.links'); + +anchors.options = { + placement: 'left', + visible: 'always', + icon: '¶' +}; + +anchors.options.base = '/2019/1/03/my-post'; +anchors.options.titleText = 'Click to directly link to this section.'; diff --git a/types/anchor-js/index.d.ts b/types/anchor-js/index.d.ts index 1f59c295e284773..04d8a037fb7b651 100644 --- a/types/anchor-js/index.d.ts +++ b/types/anchor-js/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for anchor-js 4.1 +// Type definitions for anchor-js 4.2 // Project: https://github.com/bryanbraun/anchorjs // Definitions by: Brian Surowiec // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -16,10 +16,12 @@ declare namespace anchorjs { type AnchorVisibility = 'always' | 'hover' | 'touch'; interface AnchorOptions { - arialabel?: string; + ariaLabel?: string; + base?: string; class?: string; - icons?: string; + icon?: string; placement?: AnchorPlacement; + titleText?: string; truncate?: number; visible?: AnchorVisibility; } diff --git a/types/angular-agility/tsconfig.json b/types/angular-agility/tsconfig.json index 460060cde07fc25..4bcf027b48dc343 100644 --- a/types/angular-agility/tsconfig.json +++ b/types/angular-agility/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-agility-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-agility/tslint.json b/types/angular-agility/tslint.json index 0a7abf97f86d346..46c7656f35ff82b 100644 --- a/types/angular-agility/tslint.json +++ b/types/angular-agility/tslint.json @@ -1,81 +1,34 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, + "no-angle-bracket-type-assertion": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, + "npm-naming": [ + true, + { + "errors": [ + [ + "NeedsExportEquals", + false + ] + ], + "mode": "code" + } + ], "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false, - "no-angle-bracket-type-assertion": false + "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-animate/tsconfig.json b/types/angular-animate/tsconfig.json index d34d6a1d77ea8d2..72ab99ccfc428d7 100644 --- a/types/angular-animate/tsconfig.json +++ b/types/angular-animate/tsconfig.json @@ -10,7 +10,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "noEmit": true, "forceConsistentCasingInFileNames": true } -} \ No newline at end of file +} diff --git a/types/angular-animate/tslint.json b/types/angular-animate/tslint.json index 3d59f55fdabcf45..f8275b6f26b9c75 100644 --- a/types/angular-animate/tslint.json +++ b/types/angular-animate/tslint.json @@ -1,80 +1,13 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/angular-aria/angular-aria-tests.ts b/types/angular-aria/angular-aria-tests.ts new file mode 100644 index 000000000000000..3c2f26c6512d970 --- /dev/null +++ b/types/angular-aria/angular-aria-tests.ts @@ -0,0 +1,21 @@ +function testProvider($ariaProvider: angular.aria.IAriaProvider): void { + // $ExpectType void + $ariaProvider.config({ariaHidden: true}); + + // $ExpectType void + $ariaProvider.config({ariaChecked: true, ariaReadonly: false}); + + // $ExpectError + $ariaProvider.config({ariaDisabled: 44}); + + // $ExpectError + $ariaProvider.config({unknownkey: false}); +} + +function testService($aria: angular.aria.IAriaService): void { + // $ExpectType boolean + $aria.config('tabindex'); + + // $ExpectError + $aria.config('unknown-string'); +} diff --git a/types/angular-aria/index.d.ts b/types/angular-aria/index.d.ts new file mode 100644 index 000000000000000..1c4ffad621fc3d3 --- /dev/null +++ b/types/angular-aria/index.d.ts @@ -0,0 +1,31 @@ +// Type definitions for angular-aria 1.7 +// Project: http://angularjs.org, https://docs.angularjs.org/api/ngAria +// Definitions by: Chives +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +import * as angular from 'angular'; + +declare module 'angular' { + namespace aria { + type IAriaAttribute = 'ariaHidden'|'ariaChecked'|'ariaReadonly'|'ariaDisabled'|'ariaRequired'|'ariaInvalid'|'ariaValue'|'tabindex'|'bindKeydown'|'bindRoleForClick'; + + type IAriaProviderOptions = { + [key in IAriaAttribute]?: boolean; + }; + + /** + * $ariaProvider (https://docs.angularjs.org/api/ngAria/provider/$ariaProvider). + */ + interface IAriaProvider { + config(config: IAriaProviderOptions): void; + } + + /** + * $aria service (https://docs.angularjs.org/api/ngAria/service/$aria). + */ + interface IAriaService { + config(attribute: IAriaAttribute): boolean; + } + } +} diff --git a/types/angular-aria/tsconfig.json b/types/angular-aria/tsconfig.json new file mode 100644 index 000000000000000..10dce0ebc92e7ee --- /dev/null +++ b/types/angular-aria/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "dom", + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "angular-aria-tests.ts" + ] +} diff --git a/types/angular-aria/tslint.json b/types/angular-aria/tslint.json new file mode 100644 index 000000000000000..8f5b9e1a84baca5 --- /dev/null +++ b/types/angular-aria/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "interface-name": false + } +} \ No newline at end of file diff --git a/types/angular-bootstrap-calendar/tsconfig.json b/types/angular-bootstrap-calendar/tsconfig.json index 72a05b7ce7a3be2..3c862f5de190e5d 100644 --- a/types/angular-bootstrap-calendar/tsconfig.json +++ b/types/angular-bootstrap-calendar/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-bootstrap-calendar-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-bootstrap-calendar/tslint.json b/types/angular-bootstrap-calendar/tslint.json index 3d59f55fdabcf45..5521a935290b84a 100644 --- a/types/angular-bootstrap-calendar/tslint.json +++ b/types/angular-bootstrap-calendar/tslint.json @@ -1,80 +1,21 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, + "no-outside-dependencies": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "strict-export-declare-modifiers": false } -} +} \ No newline at end of file diff --git a/types/angular-bootstrap-lightbox/tsconfig.json b/types/angular-bootstrap-lightbox/tsconfig.json index 3792bc3da54e3b7..59189b73db90884 100644 --- a/types/angular-bootstrap-lightbox/tsconfig.json +++ b/types/angular-bootstrap-lightbox/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "angular-bootstrap-lightbox-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-bootstrap-lightbox/tslint.json b/types/angular-bootstrap-lightbox/tslint.json index 6c7fd03ccda21f4..e5cde7c1a1379d6 100644 --- a/types/angular-bootstrap-lightbox/tslint.json +++ b/types/angular-bootstrap-lightbox/tslint.json @@ -1,81 +1,29 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, "no-angle-bracket-type-assertion": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, + "npm-naming": [ + true, + { + "errors": [ + [ + "NeedsExportEquals", + false + ] + ], + "mode": "code" + } + ], "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-breadcrumb/tsconfig.json b/types/angular-breadcrumb/tsconfig.json index 82e62843769c48e..71e6b79545f5b8d 100644 --- a/types/angular-breadcrumb/tsconfig.json +++ b/types/angular-breadcrumb/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "files": [ "index.d.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-breadcrumb/tslint.json b/types/angular-breadcrumb/tslint.json index 3d59f55fdabcf45..dcc766d9220303a 100644 --- a/types/angular-breadcrumb/tslint.json +++ b/types/angular-breadcrumb/tslint.json @@ -1,80 +1,15 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "strict-export-declare-modifiers": false } -} +} \ No newline at end of file diff --git a/types/angular-clipboard/tslint.json b/types/angular-clipboard/tslint.json index 3d59f55fdabcf45..6637d44b0129cbe 100644 --- a/types/angular-clipboard/tslint.json +++ b/types/angular-clipboard/tslint.json @@ -1,80 +1,9 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "prefer-method-signature": false } -} +} \ No newline at end of file diff --git a/types/angular-cookie/tsconfig.json b/types/angular-cookie/tsconfig.json index ae3ec8dd2116fb2..3b4b6c0c55eb9e6 100644 --- a/types/angular-cookie/tsconfig.json +++ b/types/angular-cookie/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-cookie-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-cookie/tslint.json b/types/angular-cookie/tslint.json index 3d59f55fdabcf45..71bb19420aa0b2f 100644 --- a/types/angular-cookie/tslint.json +++ b/types/angular-cookie/tslint.json @@ -1,80 +1,18 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, "no-trailing-whitespace": false, - "object-literal-key-quotes": false, + "no-var-keyword": false, "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/angular-cookies/tsconfig.json b/types/angular-cookies/tsconfig.json index d34d6a1d77ea8d2..72ab99ccfc428d7 100644 --- a/types/angular-cookies/tsconfig.json +++ b/types/angular-cookies/tsconfig.json @@ -10,7 +10,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "noEmit": true, "forceConsistentCasingInFileNames": true } -} \ No newline at end of file +} diff --git a/types/angular-cookies/tslint.json b/types/angular-cookies/tslint.json index 3d59f55fdabcf45..3c08b0944b03cd5 100644 --- a/types/angular-cookies/tslint.json +++ b/types/angular-cookies/tslint.json @@ -1,80 +1,12 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "prefer-method-signature": false } -} +} \ No newline at end of file diff --git a/types/angular-deferred-bootstrap/tsconfig.json b/types/angular-deferred-bootstrap/tsconfig.json index 119199cc5aa40cb..6ca746074389d65 100644 --- a/types/angular-deferred-bootstrap/tsconfig.json +++ b/types/angular-deferred-bootstrap/tsconfig.json @@ -11,7 +11,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "noEmit": true, "forceConsistentCasingInFileNames": true } -} \ No newline at end of file +} diff --git a/types/angular-deferred-bootstrap/tslint.json b/types/angular-deferred-bootstrap/tslint.json index 3d59f55fdabcf45..47fa80a89eab0c3 100644 --- a/types/angular-deferred-bootstrap/tslint.json +++ b/types/angular-deferred-bootstrap/tslint.json @@ -1,80 +1,13 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "semicolon": false } -} +} \ No newline at end of file diff --git a/types/angular-dialog-service/tslint.json b/types/angular-dialog-service/tslint.json index 3d59f55fdabcf45..1fbbfe26d96e93f 100644 --- a/types/angular-dialog-service/tslint.json +++ b/types/angular-dialog-service/tslint.json @@ -1,80 +1,19 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, + "npm-naming": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-environment/tslint.json b/types/angular-environment/tslint.json index 3d59f55fdabcf45..2d1be1c0e494aef 100644 --- a/types/angular-environment/tslint.json +++ b/types/angular-environment/tslint.json @@ -1,80 +1,15 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, + "no-trailing-whitespace": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/angular-es/tsconfig.json b/types/angular-es/tsconfig.json index 8eb4ea89258c1e9..2dd3aad386ae896 100644 --- a/types/angular-es/tsconfig.json +++ b/types/angular-es/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "experimentalDecorators": true, "baseUrl": "../", @@ -21,4 +21,4 @@ "index.d.ts", "angular-es-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-es/tslint.json b/types/angular-es/tslint.json index 3d59f55fdabcf45..f582e579604ddae 100644 --- a/types/angular-es/tslint.json +++ b/types/angular-es/tslint.json @@ -1,80 +1,17 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "semicolon": false } -} +} \ No newline at end of file diff --git a/types/angular-feature-flags/tsconfig.json b/types/angular-feature-flags/tsconfig.json index 07b352a43ce0a0f..bd97d8031911482 100644 --- a/types/angular-feature-flags/tsconfig.json +++ b/types/angular-feature-flags/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-feature-flags-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-feature-flags/tslint.json b/types/angular-feature-flags/tslint.json index 3d59f55fdabcf45..bd03cb2aadb9864 100644 --- a/types/angular-feature-flags/tslint.json +++ b/types/angular-feature-flags/tslint.json @@ -1,80 +1,14 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "strict-export-declare-modifiers": false } -} +} \ No newline at end of file diff --git a/types/angular-file-saver/tsconfig.json b/types/angular-file-saver/tsconfig.json index 60a3fb0eca61a12..dba0613d7368dc2 100644 --- a/types/angular-file-saver/tsconfig.json +++ b/types/angular-file-saver/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-file-saver-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-file-saver/tslint.json b/types/angular-file-saver/tslint.json index 3d59f55fdabcf45..9a8df4604f0d427 100644 --- a/types/angular-file-saver/tslint.json +++ b/types/angular-file-saver/tslint.json @@ -1,80 +1,13 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "strict-export-declare-modifiers": false } -} +} \ No newline at end of file diff --git a/types/angular-formly/tslint.json b/types/angular-formly/tslint.json index 3d59f55fdabcf45..c88bbaf8c90e828 100644 --- a/types/angular-formly/tslint.json +++ b/types/angular-formly/tslint.json @@ -1,80 +1,23 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/angular-fullscreen/tslint.json b/types/angular-fullscreen/tslint.json index 3d59f55fdabcf45..f0d4c3037315518 100644 --- a/types/angular-fullscreen/tslint.json +++ b/types/angular-fullscreen/tslint.json @@ -1,80 +1,27 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, + "npm-naming": [ + true, + { + "errors": [ + [ + "NeedsExportEquals", + false + ] + ], + "mode": "code" + } + ], "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/angular-gettext/tsconfig.json b/types/angular-gettext/tsconfig.json index 43c7dc3cabfd3b6..ea868611f2f7cec 100644 --- a/types/angular-gettext/tsconfig.json +++ b/types/angular-gettext/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-gettext-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-gettext/tslint.json b/types/angular-gettext/tslint.json index 3d59f55fdabcf45..72760cbc13bdf98 100644 --- a/types/angular-gettext/tslint.json +++ b/types/angular-gettext/tslint.json @@ -1,80 +1,24 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, "prefer-template": false, - "radix": false, - "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/angular-google-analytics/tsconfig.json b/types/angular-google-analytics/tsconfig.json index b66432d04cbc04e..5788e7b632ecece 100644 --- a/types/angular-google-analytics/tsconfig.json +++ b/types/angular-google-analytics/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-google-analytics-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-google-analytics/tslint.json b/types/angular-google-analytics/tslint.json index 3d59f55fdabcf45..50ff268acb4468c 100644 --- a/types/angular-google-analytics/tslint.json +++ b/types/angular-google-analytics/tslint.json @@ -1,80 +1,29 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, + "no-var-keyword": false, + "npm-naming": [ + true, + { + "errors": [ + [ + "NeedsExportEquals", + false + ] + ], + "mode": "code" + } + ], "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "strict-export-declare-modifiers": false } -} +} \ No newline at end of file diff --git a/types/angular-growl-v2/tsconfig.json b/types/angular-growl-v2/tsconfig.json index 16ccffe41fa8ae7..3e104a8678fd8bb 100644 --- a/types/angular-growl-v2/tsconfig.json +++ b/types/angular-growl-v2/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-growl-v2-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-growl-v2/tslint.json b/types/angular-growl-v2/tslint.json index 3d59f55fdabcf45..524877807e5eadc 100644 --- a/types/angular-growl-v2/tslint.json +++ b/types/angular-growl-v2/tslint.json @@ -1,80 +1,23 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, + "no-trailing-whitespace": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-hotkeys/tslint.json b/types/angular-hotkeys/tslint.json index 3db14f85eaf7b98..d086f8e13f785e5 100644 --- a/types/angular-hotkeys/tslint.json +++ b/types/angular-hotkeys/tslint.json @@ -1 +1,17 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "npm-naming": [ + true, + { + "errors": [ + [ + "NeedsExportEquals", + false + ] + ], + "mode": "code" + } + ] + } +} \ No newline at end of file diff --git a/types/angular-http-auth/tsconfig.json b/types/angular-http-auth/tsconfig.json index 61029fcc0055be5..ad6b7ecb45dc878 100644 --- a/types/angular-http-auth/tsconfig.json +++ b/types/angular-http-auth/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-http-auth-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-http-auth/tslint.json b/types/angular-http-auth/tslint.json index 3d59f55fdabcf45..e635cbe6c18337d 100644 --- a/types/angular-http-auth/tslint.json +++ b/types/angular-http-auth/tslint.json @@ -1,80 +1,21 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-httpi/tsconfig.json b/types/angular-httpi/tsconfig.json index 64c28306cf2b48d..a4f7bf089099ad4 100644 --- a/types/angular-httpi/tsconfig.json +++ b/types/angular-httpi/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-httpi-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-httpi/tslint.json b/types/angular-httpi/tslint.json index 3d59f55fdabcf45..620c4b56ec4fbdb 100644 --- a/types/angular-httpi/tslint.json +++ b/types/angular-httpi/tslint.json @@ -1,80 +1,19 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, + "npm-naming": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/angular-idle/tsconfig.json b/types/angular-idle/tsconfig.json index 57cc641db8847c2..464725b124ef33f 100644 --- a/types/angular-idle/tsconfig.json +++ b/types/angular-idle/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-idle-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-idle/tslint.json b/types/angular-idle/tslint.json index 3d59f55fdabcf45..ecdc7dca2a18892 100644 --- a/types/angular-idle/tslint.json +++ b/types/angular-idle/tslint.json @@ -1,80 +1,18 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, + "npm-naming": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/angular-jwt/tslint.json b/types/angular-jwt/tslint.json index 3d59f55fdabcf45..15b802049ae3ffb 100644 --- a/types/angular-jwt/tslint.json +++ b/types/angular-jwt/tslint.json @@ -1,80 +1,30 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, + "npm-naming": [ + true, + { + "errors": [ + [ + "NeedsExportEquals", + false + ] + ], + "mode": "code" + } + ], "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "strict-export-declare-modifiers": false } -} +} \ No newline at end of file diff --git a/types/angular-load/tsconfig.json b/types/angular-load/tsconfig.json index ee5ee74b727e4e7..6ae71b9c16e454c 100644 --- a/types/angular-load/tsconfig.json +++ b/types/angular-load/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-load-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-load/tslint.json b/types/angular-load/tslint.json index 3d59f55fdabcf45..4237ac6aa898766 100644 --- a/types/angular-load/tslint.json +++ b/types/angular-load/tslint.json @@ -1,80 +1,16 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-loading-bar/tslint.json b/types/angular-loading-bar/tslint.json index 3d59f55fdabcf45..0778208bcd78ee7 100644 --- a/types/angular-loading-bar/tslint.json +++ b/types/angular-loading-bar/tslint.json @@ -1,80 +1,18 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/angular-local-storage/angular-local-storage-tests.ts b/types/angular-local-storage/angular-local-storage-tests.ts index b3fdde8b9e712a5..f83b2495d74e6e9 100644 --- a/types/angular-local-storage/angular-local-storage-tests.ts +++ b/types/angular-local-storage/angular-local-storage-tests.ts @@ -1,71 +1,76 @@ -interface TestScope extends ng.IScope { - submit: (key: string, value: string) => boolean; - getItem: (key: string) => string; - removeItem: (key: string) => boolean; - clearNumbers: () => boolean; - clearAll: () => boolean; - unbind: Function; - update: (val: string) => void; - property: string; +interface TestScope { + submit(key: string, value: string): boolean; + getItem(key: string): string; + removeItem(key: string): boolean; + clearNumbers(): boolean; + clearAll(): boolean; + unbind?: () => void; + update(val: string): void; } -class TestController { - constructor($scope: TestScope, localStorageService: ng.local.storage.ILocalStorageService) { - // isSupported - if (localStorageService.isSupported) { - // do something - } - - // getStorageType - var storageType: string = localStorageService.getStorageType(); +class TestController implements TestScope { + unbind?: () => void; - // set - $scope.submit = (key, value) => { - return localStorageService.set(key, value); - }; + constructor( + private readonly localStorageService: ng.local.storage.ILocalStorageService, + private readonly $scope: angular.IScope, + ) {} - // get - $scope.getItem = (key) => { - return localStorageService.get(key); - }; + $onInit() { + // isSupported + if (this.localStorageService.isSupported) { + // do something + } - // remove - $scope.removeItem = (key) => { - return localStorageService.remove(key); - }; + // getStorageType + const storageType = this.localStorageService.getStorageType(); - // clearAll(regexp) - $scope.clearNumbers = () => { - return localStorageService.clearAll(/^\d+$/); - }; + const lsKeys = this.localStorageService.keys(); - // clearAll - $scope.clearAll = () => { - return localStorageService.clearAll(); - }; + // bind + this.localStorageService.set('property', 'oldValue'); + this.unbind = this.localStorageService.bind(this.$scope, 'property'); - // keys - var lsKeys = localStorageService.keys(); + // deriveKey + console.log(this.localStorageService.deriveKey('property')); // ls.property - // bind - localStorageService.set('property', 'oldValue'); - $scope.unbind = localStorageService.bind($scope, 'property'); + // length + const lsLength: number = this.localStorageService.length(); + } - // deriveKey - console.log(localStorageService.deriveKey('property')); // ls.property + $onDestroy() { + this.unbind && this.unbind(); + } - // length - var lsLength: number = localStorageService.length(); - } + submit(key: string, value: any) { + return this.localStorageService.set(key, value); + } + getItem(key: string) { + return this.localStorageService.get(key); + } + removeItem(key: string) { + return this.localStorageService.remove(key); + } + clearNumbers() { + return this.localStorageService.clearAll(/^\d+$/); + } + clearAll() { + return this.localStorageService.clearAll(); + } + update(val: string) { + this.localStorageService.set('property', val); + } } -var app = angular.module('angular-local-storage-tests', ['LocalStorageModule']); -app.config(function (localStorageServiceProvider: ng.local.storage.ILocalStorageServiceProvider) { - localStorageServiceProvider - .setPrefix('myApp') - .setStorageType('sessionStorage') - .setDefaultToCookie(false) - .setNotify(true, true); +TestController.$inject = ['localStorageService', '$scope']; + +const app = angular.module('angular-local-storage-tests', ['LocalStorageModule']); +app.config((localStorageServiceProvider: ng.local.storage.ILocalStorageServiceProvider) => { + localStorageServiceProvider + .setPrefix('myApp') + .setStorageType('sessionStorage') + .setDefaultToCookie(false) + .setNotify(true, true); }); app.controller('TestController', TestController); diff --git a/types/angular-local-storage/index.d.ts b/types/angular-local-storage/index.d.ts index 6ab69f299318394..607aad4a44423f2 100644 --- a/types/angular-local-storage/index.d.ts +++ b/types/angular-local-storage/index.d.ts @@ -1,10 +1,9 @@ -// Type definitions for angular-local-storage v0.6.0 -// Project: https://github.com/grevory/angular-local-storage -// Definitions by: Ken Fukuyama , Davide Donadello +// Type definitions for angular-local-storage 0.7 +// Project: https://github.com/grevory/angular-local-storage#readme +// Definitions by: Ken Fukuyama +// Davide Donadello +// Piotr Błażejewicz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -/// import * as angular from 'angular'; @@ -13,8 +12,9 @@ export type ILocalStorageService = angular.local.storage.ILocalStorageService; export type ICookie = angular.local.storage.ICookie; declare module 'angular' { - export namespace local.storage { - interface ILocalStorageServiceProvider extends angular.IServiceProvider { + namespace local.storage { + // tslint:disable-next-line interface-name + interface ILocalStorageServiceProvider extends IServiceProvider { /** * Setter for the prefix * You should set a prefix to avoid overwriting any local storage variables from the rest of your app @@ -28,12 +28,12 @@ declare module 'angular' { setPrefix(prefix: string): ILocalStorageServiceProvider; /** * Setter for the storageType - * @param storageType localstorage or sessionStorage. default: localStorage + * localstorage or sessionStorage. default: localStorage */ setStorageType(storageType: string): ILocalStorageServiceProvider; /** * If localStorage is not supported, the library will default to cookies instead. This behavior can be disabled - * @param shouldDefault default: true + * default: true */ setDefaultToCookie(shouldDefault: boolean): ILocalStorageServiceProvider; /** @@ -44,7 +44,10 @@ declare module 'angular' { */ setStorageCookie(exp: number, path: string, secure: boolean): ILocalStorageServiceProvider; /** - * Set the cookie domain, since this runs inside a the config() block, only providers and constants can be injected. As a result, $location service can't be used here, use a hardcoded string or window.location. + * Set the cookie domain, since this runs inside a the config() block, + * only providers and constants can be injected. + * As a result, $location service can't be used here, + * use a hardcoded string or window.location. * No default value */ setStorageCookieDomain(domain: string): ILocalStorageServiceProvider; @@ -56,39 +59,24 @@ declare module 'angular' { setNotify(setItem: boolean, removeItem: boolean): ILocalStorageServiceProvider; } + // tslint:disable-next-line interface-name interface ICookie { /** * Checks if cookies are enabled in the browser. * Returns: Boolean */ - isSupported: boolean; + readonly isSupported: boolean; /** * Directly adds a value to cookies. * Note: Typically used as a fallback if local storage is not supported. - * Returns: Boolean - * @param key - * @param val */ - set(key: string, val: string): boolean; - /** - * Directly adds a value to cookies with an expiration. - * Note: Typically used as a fallback if local storage is not supported. - * Returns: Boolean - * @param key - * @param val - * @param daysToExpiry - */ - set(key: string, val: string, daysToExpiry: number): boolean; + set(key: string, val: string, daysToExpiry?: number): boolean; /** * Directly get a value from a cookie. - * Returns: value from local storage - * @param key */ get(key: string): string; /** * Remove directly value from a cookie. - * Returns: Boolean - * @param key */ remove(key: string): boolean; /** @@ -96,10 +84,15 @@ declare module 'angular' { */ clearAll(): any; } - + type StorageType = 'localStorage' | 'sessionStorage'; + // tslint:disable-next-line interface-name interface ILocalStorageService { + /** + * Change the local storage prefix during execution + */ + changePrefix(newPrefix: string): void; /** * Checks if the browser support the current storage type(e.g: localStorage, sessionStorage). * Returns: Boolean @@ -112,28 +105,24 @@ declare module 'angular' { /** * Directly adds a value to local storage. * If local storage is not supported, use cookies instead. - * Returns: Boolean - * @param key - * @param value */ - set(key: string, value: T, storageType?: StorageType): boolean; + set(key: string, value: any, storageType?: StorageType): boolean; /** * Directly get a value from local storage. * If local storage is not supported, use cookies instead. * Returns: value from local storage - * @param key */ - get(key: string, storageType?: StorageType): T; + get(key: string, storageType?: StorageType): any; /** * Return array of keys for local storage, ignore keys that not owned. * Returns: value from local storage */ keys(storageType?: StorageType): string[]; - /** + /** * Remove a list of items from the local storage by their given keys. * The last item in the variable argument list can optionally be the StorageType. * Which specifies whether to remove from the session storage or the local storage. - * If the last argument is not a valid storage type it is considered to be a key, + * If the last argument is not a valid storage type it is considered to be a key, * and localStorage is used by default . * If local storage is not supported, use cookies instead. * Returns: Boolean @@ -144,29 +133,20 @@ declare module 'angular' { * Remove all data for this app from local storage. * If local storage is not supported, use cookies instead. * Note: Optionally takes a regular expression string and removes matching. - * Returns: Boolean - * @param regularExpression */ clearAll(regularExpression?: RegExp, storageType?: StorageType): boolean; /** * Bind $scope key to localStorageService. * Usage: localStorageService.bind(scope, property, value[optional], key[optional]) * Returns: deregistration function for this listener. - * @param scope - * @param property - * @param value optional - * @param key The corresponding key used in local storage */ - bind(scope: angular.IScope, property: string, value?: any, key?: string, storageType?: StorageType): Function; + bind(scope: IScope, property: string, value?: any, key?: string, storageType?: StorageType): () => void; /** * Return the derive key - * Returns String - * @param key */ deriveKey(key: string): string; /** * Return localStorageService.length, ignore keys that not owned. - * Returns Number */ length(storageType?: StorageType): number; /** diff --git a/types/angular-local-storage/tsconfig.json b/types/angular-local-storage/tsconfig.json index 44c357b558ba371..9aded898aa5f30b 100644 --- a/types/angular-local-storage/tsconfig.json +++ b/types/angular-local-storage/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-local-storage-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-local-storage/tslint.json b/types/angular-local-storage/tslint.json index 3d59f55fdabcf45..d086f8e13f785e5 100644 --- a/types/angular-local-storage/tslint.json +++ b/types/angular-local-storage/tslint.json @@ -1,80 +1,17 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, - "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, - "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "npm-naming": [ + true, + { + "errors": [ + [ + "NeedsExportEquals", + false + ] + ], + "mode": "code" + } + ] } -} +} \ No newline at end of file diff --git a/types/angular-localforage/tslint.json b/types/angular-localforage/tslint.json index 3d59f55fdabcf45..80237b1ac09ced5 100644 --- a/types/angular-localforage/tslint.json +++ b/types/angular-localforage/tslint.json @@ -1,80 +1,26 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, "triple-equals": false, "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-locker/tsconfig.json b/types/angular-locker/tsconfig.json index 35091c7ea871cbb..9338d31c80352b3 100644 --- a/types/angular-locker/tsconfig.json +++ b/types/angular-locker/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-locker-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-locker/tslint.json b/types/angular-locker/tslint.json index 0a7abf97f86d346..edb17fce1a81c0c 100644 --- a/types/angular-locker/tslint.json +++ b/types/angular-locker/tslint.json @@ -1,81 +1,28 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, + "no-angle-bracket-type-assertion": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, - "whitespace": false, - "no-angle-bracket-type-assertion": false + "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-material/index.d.ts b/types/angular-material/index.d.ts index 810b043a86ae97a..bc4adb8c5dcfb73 100644 --- a/types/angular-material/index.d.ts +++ b/types/angular-material/index.d.ts @@ -434,6 +434,7 @@ declare module 'angular' { addClass(newClass: string): void; removeClass(oldClass: string): void; toggleClass(toggleClass: string): void; + updateAnimation(animation: IPanelAnimation): void; updatePosition(position: IPanelPosition): void; registerInterceptor(type: string, callback: () => IPromise): IPanelRef; removeInterceptor(type: string, callback: () => IPromise): IPanelRef; @@ -461,6 +462,7 @@ declare module 'angular' { openFrom(from: string | Element | Event | { top: number, left: number }): IPanelAnimation; closeTo(to: string | Element | { top: number, left: number }): IPanelAnimation; withAnimation(cssClass: string | { open: string, close: string }): IPanelAnimation; + duration(duration: number | { open: number, close: number }): IPanelAnimation; } interface IPanelService { diff --git a/types/angular-material/tslint.json b/types/angular-material/tslint.json index 4c42fed6484db5d..8f5b9e1a84baca5 100644 --- a/types/angular-material/tslint.json +++ b/types/angular-material/tslint.json @@ -1,9 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - // TODOs - "interface-name": false, - "max-line-length": false, - "no-void-expression": false + "interface-name": false } } \ No newline at end of file diff --git a/types/angular-media-queries/tsconfig.json b/types/angular-media-queries/tsconfig.json index 6a02589dc1418ed..f40099ad74f178c 100644 --- a/types/angular-media-queries/tsconfig.json +++ b/types/angular-media-queries/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-media-queries-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-media-queries/tslint.json b/types/angular-media-queries/tslint.json index 3d59f55fdabcf45..a83e27b34b15bbb 100644 --- a/types/angular-media-queries/tslint.json +++ b/types/angular-media-queries/tslint.json @@ -1,80 +1,22 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, + "no-trailing-whitespace": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-meteor/index.d.ts b/types/angular-meteor/index.d.ts index 11d782ee476cf42..52df3ad7cd7920e 100644 --- a/types/angular-meteor/index.d.ts +++ b/types/angular-meteor/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/Urigo/angular-meteor // Definitions by: Peter Grman // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.8 +// Minimum TypeScript Version: 3.7 /// diff --git a/types/angular-meteor/tsconfig.json b/types/angular-meteor/tsconfig.json index 16d4015269c6e40..df7832992267e7c 100644 --- a/types/angular-meteor/tsconfig.json +++ b/types/angular-meteor/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-meteor-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-meteor/tslint.json b/types/angular-meteor/tslint.json index 6c7fd03ccda21f4..ff57ff928b6a504 100644 --- a/types/angular-meteor/tslint.json +++ b/types/angular-meteor/tslint.json @@ -1,81 +1,29 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, "no-angle-bracket-type-assertion": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, + "no-trailing-whitespace": false, "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, + "npm-naming": false, "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-mocks/tslint.json b/types/angular-mocks/tslint.json index e91317558b05796..a00b5d281234cb1 100644 --- a/types/angular-mocks/tslint.json +++ b/types/angular-mocks/tslint.json @@ -1,10 +1,10 @@ { - "extends": "dtslint/dt.json", - "rules": { - "callable-types": false, - "interface-name": false, - "no-declare-current-package": false, - "no-unnecessary-generics": false, - "only-arrow-functions": false - } -} + "extends": "dtslint/dt.json", + "rules": { + "callable-types": false, + "interface-name": false, + "no-declare-current-package": false, + "no-unnecessary-generics": false, + "only-arrow-functions": false + } +} \ No newline at end of file diff --git a/types/angular-modal/tslint.json b/types/angular-modal/tslint.json index 3d59f55fdabcf45..9e15de5625e1e06 100644 --- a/types/angular-modal/tslint.json +++ b/types/angular-modal/tslint.json @@ -1,80 +1,24 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, "no-unnecessary-class": false, "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-notifications/tsconfig.json b/types/angular-notifications/tsconfig.json index 7186df8fd5be45f..440621ec89a9f6e 100644 --- a/types/angular-notifications/tsconfig.json +++ b/types/angular-notifications/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-notifications-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-notifications/tslint.json b/types/angular-notifications/tslint.json index 3d59f55fdabcf45..4e249fe782a471e 100644 --- a/types/angular-notifications/tslint.json +++ b/types/angular-notifications/tslint.json @@ -1,80 +1,37 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, + "npm-naming": [ + true, + { + "errors": [ + [ + "NeedsExportEquals", + false + ] + ], + "mode": "code" + } + ], "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-notify/tsconfig.json b/types/angular-notify/tsconfig.json index a993101ea8cba05..c5c576c46c4d565 100644 --- a/types/angular-notify/tsconfig.json +++ b/types/angular-notify/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-notify-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-notify/tslint.json b/types/angular-notify/tslint.json index 3d59f55fdabcf45..2ed88fcd4f77ba4 100644 --- a/types/angular-notify/tslint.json +++ b/types/angular-notify/tslint.json @@ -1,80 +1,28 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, + "npm-naming": false, "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, "space-before-function-paren": false, "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-odata-resources/tslint.json b/types/angular-odata-resources/tslint.json index 0a7abf97f86d346..549572f78fb386b 100644 --- a/types/angular-odata-resources/tslint.json +++ b/types/angular-odata-resources/tslint.json @@ -1,81 +1,28 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, + "no-angle-bracket-type-assertion": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, "no-unnecessary-class": false, "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, - "whitespace": false, - "no-angle-bracket-type-assertion": false + "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-permission/tslint.json b/types/angular-permission/tslint.json index 3d59f55fdabcf45..8f21a3d80e6d49b 100644 --- a/types/angular-permission/tslint.json +++ b/types/angular-permission/tslint.json @@ -1,80 +1,25 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/angular-promise-tracker/tslint.json b/types/angular-promise-tracker/tslint.json index 3d59f55fdabcf45..fdc3c57f47ceb6d 100644 --- a/types/angular-promise-tracker/tslint.json +++ b/types/angular-promise-tracker/tslint.json @@ -1,80 +1,15 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "strict-export-declare-modifiers": false } -} +} \ No newline at end of file diff --git a/types/angular-q-spread/tslint.json b/types/angular-q-spread/tslint.json index 3d59f55fdabcf45..eab458777e74839 100644 --- a/types/angular-q-spread/tslint.json +++ b/types/angular-q-spread/tslint.json @@ -1,80 +1,15 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "semicolon": false } -} +} \ No newline at end of file diff --git a/types/angular-resource/tslint.json b/types/angular-resource/tslint.json index b4b1464296f2edc..b0f2d9c874e7df1 100644 --- a/types/angular-resource/tslint.json +++ b/types/angular-resource/tslint.json @@ -1,14 +1,13 @@ { "extends": "dtslint/dt.json", "rules": { - // TODO: Fix up types to remove these + "ban-types": false, "interface-name": false, - "only-arrow-functions": false, "no-empty-interface": false, "no-object-literal-type-assertion": false, - "ban-types": false, + "no-unnecessary-generics": false, + "only-arrow-functions": false, "space-before-function-paren": false, - "unified-signatures": false, - "no-unnecessary-generics": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/angular-route/tslint.json b/types/angular-route/tslint.json index 3d59f55fdabcf45..68c7d70fa301c3c 100644 --- a/types/angular-route/tslint.json +++ b/types/angular-route/tslint.json @@ -1,80 +1,23 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, "object-literal-shorthand": false, "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-sanitize/tslint.json b/types/angular-sanitize/tslint.json index 3d59f55fdabcf45..2f29948a38708eb 100644 --- a/types/angular-sanitize/tslint.json +++ b/types/angular-sanitize/tslint.json @@ -1,80 +1,13 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "strict-export-declare-modifiers": false } -} +} \ No newline at end of file diff --git a/types/angular-scenario/tsconfig.json b/types/angular-scenario/tsconfig.json index 82e62843769c48e..71e6b79545f5b8d 100644 --- a/types/angular-scenario/tsconfig.json +++ b/types/angular-scenario/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "files": [ "index.d.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-scenario/tslint.json b/types/angular-scenario/tslint.json index 3d59f55fdabcf45..16a8c62bb65b98f 100644 --- a/types/angular-scenario/tslint.json +++ b/types/angular-scenario/tslint.json @@ -2,79 +2,14 @@ "extends": "dtslint/dt.json", "rules": { "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/angular-scroll/tslint.json b/types/angular-scroll/tslint.json index 3d59f55fdabcf45..7f7c93ccc534ab2 100644 --- a/types/angular-scroll/tslint.json +++ b/types/angular-scroll/tslint.json @@ -2,79 +2,18 @@ "extends": "dtslint/dt.json", "rules": { "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/angular-signalr-hub/tslint.json b/types/angular-signalr-hub/tslint.json index 3d59f55fdabcf45..56618907873f5bb 100644 --- a/types/angular-signalr-hub/tslint.json +++ b/types/angular-signalr-hub/tslint.json @@ -1,80 +1,19 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-spinner/tsconfig.json b/types/angular-spinner/tsconfig.json index e09fc93f8e628d2..fc3fa8f1d9eb500 100644 --- a/types/angular-spinner/tsconfig.json +++ b/types/angular-spinner/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-spinner-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-spinner/tslint.json b/types/angular-spinner/tslint.json index 3d59f55fdabcf45..b3b775fd26a7a27 100644 --- a/types/angular-spinner/tslint.json +++ b/types/angular-spinner/tslint.json @@ -1,80 +1,14 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "strict-export-declare-modifiers": false } -} +} \ No newline at end of file diff --git a/types/angular-storage/tsconfig.json b/types/angular-storage/tsconfig.json index 07dc148cefec948..75c7bc4d44532e2 100644 --- a/types/angular-storage/tsconfig.json +++ b/types/angular-storage/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-storage-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-storage/tslint.json b/types/angular-storage/tslint.json index 3d59f55fdabcf45..c240b01de624def 100644 --- a/types/angular-storage/tslint.json +++ b/types/angular-storage/tslint.json @@ -1,80 +1,20 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-strap/tsconfig.json b/types/angular-strap/tsconfig.json index 7ac157876bff62c..89e12a0e972ee46 100644 --- a/types/angular-strap/tsconfig.json +++ b/types/angular-strap/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-strap-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-strap/tslint.json b/types/angular-strap/tslint.json index fc261a36d6263c6..f566ad7cd6ccba7 100644 --- a/types/angular-strap/tslint.json +++ b/types/angular-strap/tslint.json @@ -1,8 +1,8 @@ -{ - "extends": "dtslint/dt.json" , - "rules": { //TODO - "interface-name": [true, "always-prefix"], - "no-empty-interface" : false, - "no-namespace" : false +{ + "extends": "dtslint/dt.json", + "rules": { + "interface-name": false, + "no-empty-interface": false, + "no-namespace": false } } \ No newline at end of file diff --git a/types/angular-toastr/tslint.json b/types/angular-toastr/tslint.json index 3d59f55fdabcf45..e0aba8540dc69f1 100644 --- a/types/angular-toastr/tslint.json +++ b/types/angular-toastr/tslint.json @@ -1,80 +1,31 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, + "npm-naming": [ + true, + { + "errors": [ + [ + "NeedsExportEquals", + false + ] + ], + "mode": "code" + } + ], "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "strict-export-declare-modifiers": false } -} +} \ No newline at end of file diff --git a/types/angular-toasty/tsconfig.json b/types/angular-toasty/tsconfig.json index 085335904c5a331..7a74acffb796bb1 100644 --- a/types/angular-toasty/tsconfig.json +++ b/types/angular-toasty/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": false, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-toasty-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-toasty/tslint.json b/types/angular-toasty/tslint.json index 3d59f55fdabcf45..b4f92e15b195b75 100644 --- a/types/angular-toasty/tslint.json +++ b/types/angular-toasty/tslint.json @@ -1,80 +1,25 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-translate/tsconfig.json b/types/angular-translate/tsconfig.json index 7b3df3db8822c8d..b7249b58ea1b9ee 100644 --- a/types/angular-translate/tsconfig.json +++ b/types/angular-translate/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-translate-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-translate/tslint.json b/types/angular-translate/tslint.json index 3d59f55fdabcf45..d249ab015fe2e1f 100644 --- a/types/angular-translate/tslint.json +++ b/types/angular-translate/tslint.json @@ -1,80 +1,24 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-ui-bootstrap/tslint.json b/types/angular-ui-bootstrap/tslint.json index 3d59f55fdabcf45..bffb604f0475829 100644 --- a/types/angular-ui-bootstrap/tslint.json +++ b/types/angular-ui-bootstrap/tslint.json @@ -1,80 +1,24 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, "no-trailing-whitespace": false, + "no-unnecessary-qualifier": false, "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-ui-notification/tsconfig.json b/types/angular-ui-notification/tsconfig.json index 25e376918650aa7..5802c3eef9925a2 100644 --- a/types/angular-ui-notification/tsconfig.json +++ b/types/angular-ui-notification/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular-ui-notification-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular-ui-notification/tslint.json b/types/angular-ui-notification/tslint.json index 3d59f55fdabcf45..acd82e42ce39553 100644 --- a/types/angular-ui-notification/tslint.json +++ b/types/angular-ui-notification/tslint.json @@ -1,80 +1,27 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, + "npm-naming": [ + true, + { + "errors": [ + [ + "NeedsExportEquals", + false + ] + ], + "mode": "code" + } + ], "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/angular-ui-router/tslint.json b/types/angular-ui-router/tslint.json index 3d59f55fdabcf45..42eee1632e23cef 100644 --- a/types/angular-ui-router/tslint.json +++ b/types/angular-ui-router/tslint.json @@ -1,80 +1,34 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, "max-line-length": false, "member-access": false, - "new-parens": false, - "no-any-union": false, "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, + "npm-naming": false, "object-literal-key-quotes": false, "object-literal-shorthand": false, "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-ui-scroll/tslint.json b/types/angular-ui-scroll/tslint.json index 3d59f55fdabcf45..7698ff75a6aebc7 100644 --- a/types/angular-ui-scroll/tslint.json +++ b/types/angular-ui-scroll/tslint.json @@ -1,80 +1,26 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-ui-sortable/tslint.json b/types/angular-ui-sortable/tslint.json index 3d59f55fdabcf45..ae185692f1298d5 100644 --- a/types/angular-ui-sortable/tslint.json +++ b/types/angular-ui-sortable/tslint.json @@ -1,80 +1,24 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-ui-tree/tslint.json b/types/angular-ui-tree/tslint.json index 0a7abf97f86d346..d7dc625fc11e404 100644 --- a/types/angular-ui-tree/tslint.json +++ b/types/angular-ui-tree/tslint.json @@ -1,81 +1,17 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, + "no-angle-bracket-type-assertion": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, + "npm-naming": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false, - "no-angle-bracket-type-assertion": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/angular-websocket/tslint.json b/types/angular-websocket/tslint.json index 2c7c1bed5393c6b..8f5b9e1a84baca5 100644 --- a/types/angular-websocket/tslint.json +++ b/types/angular-websocket/tslint.json @@ -3,4 +3,4 @@ "rules": { "interface-name": false } -} +} \ No newline at end of file diff --git a/types/angular-wizard/tslint.json b/types/angular-wizard/tslint.json index 6c7fd03ccda21f4..bcc014d48e5b668 100644 --- a/types/angular-wizard/tslint.json +++ b/types/angular-wizard/tslint.json @@ -1,81 +1,23 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, "no-angle-bracket-type-assertion": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular-xeditable/tsconfig.json b/types/angular-xeditable/tsconfig.json index 44cdeea7bf950f9..f897102463098f5 100644 --- a/types/angular-xeditable/tsconfig.json +++ b/types/angular-xeditable/tsconfig.json @@ -11,7 +11,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "noEmit": true, "forceConsistentCasingInFileNames": true } -} \ No newline at end of file +} diff --git a/types/angular-xeditable/tslint.json b/types/angular-xeditable/tslint.json index 3d59f55fdabcf45..876650793968707 100644 --- a/types/angular-xeditable/tslint.json +++ b/types/angular-xeditable/tslint.json @@ -1,80 +1,15 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "prefer-method-signature": false } -} +} \ No newline at end of file diff --git a/types/angular.throttle/tsconfig.json b/types/angular.throttle/tsconfig.json index bcee04a06f9802f..eabc45e4262cb05 100644 --- a/types/angular.throttle/tsconfig.json +++ b/types/angular.throttle/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angular.throttle-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angular.throttle/tslint.json b/types/angular.throttle/tslint.json index 3d59f55fdabcf45..15b34758383fc60 100644 --- a/types/angular.throttle/tslint.json +++ b/types/angular.throttle/tslint.json @@ -1,80 +1,21 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, + "npm-naming": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, "space-before-function-paren": false, "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angular/tslint.json b/types/angular/tslint.json index b0c1e9007a6257b..dc86b7d94a01680 100644 --- a/types/angular/tslint.json +++ b/types/angular/tslint.json @@ -1,14 +1,13 @@ { "extends": "dtslint/dt.json", "rules": { - "class-name": true, - "indent": [true, "spaces"], - "quotemark": [true, "single"], - "variable-name": [true, "check-format"], - - // Below are all TODOs - "callable-types": false, "ban-types": false, + "callable-types": false, + "class-name": true, + "indent": [ + true, + "spaces" + ], "interface-name": false, "jsdoc-format": false, "max-line-length": false, @@ -16,8 +15,15 @@ "no-namespace": false, "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-void-expression": false, + "quotemark": [ + true, + "single" + ], "unified-signatures": false, + "variable-name": [ + true, + "check-format" + ], "void-return": false } } \ No newline at end of file diff --git a/types/angularfire/tsconfig.json b/types/angularfire/tsconfig.json index 79526d1d235f6d0..f550ab71777278e 100644 --- a/types/angularfire/tsconfig.json +++ b/types/angularfire/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": false, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angularfire-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angularfire/tslint.json b/types/angularfire/tslint.json index 0a7abf97f86d346..31de78d87c27573 100644 --- a/types/angularfire/tslint.json +++ b/types/angularfire/tslint.json @@ -1,81 +1,25 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, + "no-angle-bracket-type-assertion": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, + "npm-naming": false, "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, "prefer-template": false, - "radix": false, - "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, - "whitespace": false, - "no-angle-bracket-type-assertion": false + "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angularlocalstorage/tsconfig.json b/types/angularlocalstorage/tsconfig.json index 18cbe35651afb14..bdc6ddcfafd414d 100644 --- a/types/angularlocalstorage/tsconfig.json +++ b/types/angularlocalstorage/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "angularlocalstorage-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/angularlocalstorage/tslint.json b/types/angularlocalstorage/tslint.json index 3d59f55fdabcf45..ba5a59d0bfdc307 100644 --- a/types/angularlocalstorage/tslint.json +++ b/types/angularlocalstorage/tslint.json @@ -1,80 +1,18 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, + "npm-naming": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/angulartics/tslint.json b/types/angulartics/tslint.json index 3d59f55fdabcf45..3ef49b130c0b818 100644 --- a/types/angulartics/tslint.json +++ b/types/angulartics/tslint.json @@ -1,80 +1,18 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/animation-frame/tsconfig.json b/types/animation-frame/tsconfig.json index 50f3aa070361f4c..4cedb09f1f39623 100644 --- a/types/animation-frame/tsconfig.json +++ b/types/animation-frame/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "animation-frame-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/animation-frame/tslint.json b/types/animation-frame/tslint.json index 3d59f55fdabcf45..3a33099cca0e928 100644 --- a/types/animation-frame/tslint.json +++ b/types/animation-frame/tslint.json @@ -1,80 +1,13 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/ansi-styles/tsconfig.json b/types/ansi-styles/tsconfig.json index daf091f6cec1aa2..24caa116274ff42 100644 --- a/types/ansi-styles/tsconfig.json +++ b/types/ansi-styles/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "ansi-styles-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/ansi-styles/tslint.json b/types/ansi-styles/tslint.json index 3d59f55fdabcf45..f1958e9941a768b 100644 --- a/types/ansi-styles/tslint.json +++ b/types/ansi-styles/tslint.json @@ -1,80 +1,16 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/ansicolors/tsconfig.json b/types/ansicolors/tsconfig.json index 02963e3afd7de05..ecc22c8314bf247 100644 --- a/types/ansicolors/tsconfig.json +++ b/types/ansicolors/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -19,4 +19,4 @@ "files": [ "index.d.ts" ] -} \ No newline at end of file +} diff --git a/types/ansicolors/tslint.json b/types/ansicolors/tslint.json index 3d59f55fdabcf45..761d348155682f5 100644 --- a/types/ansicolors/tslint.json +++ b/types/ansicolors/tslint.json @@ -1,80 +1,16 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, + "npm-naming": [ + true, + { + "mode": "name-only" + } + ], "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "semicolon": false } -} +} \ No newline at end of file diff --git a/types/any-db-transaction/tsconfig.json b/types/any-db-transaction/tsconfig.json index 70db166ef809d70..cd69713b1ec8b57 100644 --- a/types/any-db-transaction/tsconfig.json +++ b/types/any-db-transaction/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "any-db-transaction-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/any-db-transaction/tslint.json b/types/any-db-transaction/tslint.json index 3d59f55fdabcf45..9c811f36d2517cc 100644 --- a/types/any-db-transaction/tslint.json +++ b/types/any-db-transaction/tslint.json @@ -1,80 +1,15 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/any-db/tsconfig.json b/types/any-db/tsconfig.json index 21170c7c688e4dd..9957bf9fc88eedd 100644 --- a/types/any-db/tsconfig.json +++ b/types/any-db/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "any-db-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/any-db/tslint.json b/types/any-db/tslint.json index 3d59f55fdabcf45..05585ef432ef502 100644 --- a/types/any-db/tslint.json +++ b/types/any-db/tslint.json @@ -1,80 +1,18 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/anyproxy/anyproxy-tests.ts b/types/anyproxy/anyproxy-tests.ts index 35f4199ede82e5e..ba6e7c6ee82afea 100644 --- a/types/anyproxy/anyproxy-tests.ts +++ b/types/anyproxy/anyproxy-tests.ts @@ -60,3 +60,11 @@ proxyServer.start(); // When finished proxyServer.close(); + +AnyProxy.utils.systemProxyMgr.enableGlobalProxy('127.0.0.1', 8080); +AnyProxy.utils.systemProxyMgr.enableGlobalProxy('127.0.0.1', 8080, 'http'); +AnyProxy.utils.systemProxyMgr.enableGlobalProxy('127.0.0.1', 8080, 'https'); + +AnyProxy.utils.systemProxyMgr.disableGlobalProxy(); +AnyProxy.utils.systemProxyMgr.disableGlobalProxy('http'); +AnyProxy.utils.systemProxyMgr.disableGlobalProxy('https'); diff --git a/types/anyproxy/index.d.ts b/types/anyproxy/index.d.ts index 8da95a49f3ac94d..233cb66716b0833 100644 --- a/types/anyproxy/index.d.ts +++ b/types/anyproxy/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for anyproxy 4.1 // Project: https://github.com/alibaba/anyproxy // Definitions by: Maxime LUCE +// Roland Reed // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -21,6 +22,8 @@ import { export type MaybePromise = T | Promise; +export type NetworkType = 'http' | 'https'; + export interface ProxyOptions { /** Port number of proxy server */ port: string | number; @@ -229,9 +232,9 @@ export namespace utils { /** Manage the system proxy config. sudo password may be required. */ namespace systemProxyMgr { /** Enable global system proxy with specified params. sudo password may be required. */ - function enableGlobalProxy(host: string, port: string | number): void; + function enableGlobalProxy(host: string, port: string | number, networkType?: NetworkType): void; /** Disable global system proxy. sudo password may be required. */ - function disableGlobalProxy(): void; + function disableGlobalProxy(networkType?: NetworkType): void; } /** Manage certificates of AnyProxy. */ diff --git a/types/apex.js/index.d.ts b/types/apex.js/index.d.ts index edc136a678001fc..3af0de9d7230872 100644 --- a/types/apex.js/index.d.ts +++ b/types/apex.js/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/apex/node-apex // Definitions by: Yoriki Yamaguchi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.8 +// TypeScript Version: 3.0 /// diff --git a/types/api-error-handler/tsconfig.json b/types/api-error-handler/tsconfig.json index 343e9007e9704a3..d07c138a840ea25 100644 --- a/types/api-error-handler/tsconfig.json +++ b/types/api-error-handler/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "api-error-handler-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/api-error-handler/tslint.json b/types/api-error-handler/tslint.json index 3d59f55fdabcf45..d8d1ecdb105db12 100644 --- a/types/api-error-handler/tslint.json +++ b/types/api-error-handler/tslint.json @@ -1,80 +1,14 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "space-before-function-paren": false } -} +} \ No newline at end of file diff --git a/types/apigee-access/tsconfig.json b/types/apigee-access/tsconfig.json index 3a18c6594ad296a..92c705567e2cf5c 100644 --- a/types/apigee-access/tsconfig.json +++ b/types/apigee-access/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "apigee-access-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/apigee-access/tslint.json b/types/apigee-access/tslint.json index 3d59f55fdabcf45..31d672e65fd8578 100644 --- a/types/apigee-access/tslint.json +++ b/types/apigee-access/tslint.json @@ -1,80 +1,19 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, + "no-var-keyword": false, "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "space-within-parens": false } -} +} \ No newline at end of file diff --git a/types/apostrophe/tslint.json b/types/apostrophe/tslint.json index 30332ffc419bfb7..556e3a0b3a3c08a 100644 --- a/types/apostrophe/tslint.json +++ b/types/apostrophe/tslint.json @@ -1,6 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "array-type": [true, "array"] + "array-type": false } -} +} \ No newline at end of file diff --git a/types/app-root-path/tsconfig.json b/types/app-root-path/tsconfig.json index 0786aa8b6c7c971..5f86681e06b8c0a 100644 --- a/types/app-root-path/tsconfig.json +++ b/types/app-root-path/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "app-root-path-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/app-root-path/tslint.json b/types/app-root-path/tslint.json index 3d59f55fdabcf45..0c72de3e2deff42 100644 --- a/types/app-root-path/tslint.json +++ b/types/app-root-path/tslint.json @@ -1,80 +1,14 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/appframework/tsconfig.json b/types/appframework/tsconfig.json index 8ed9e604ca7c853..4b140394a23ba65 100644 --- a/types/appframework/tsconfig.json +++ b/types/appframework/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "appframework-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/appframework/tslint.json b/types/appframework/tslint.json index 3d59f55fdabcf45..7309ac8ba0ef08e 100644 --- a/types/appframework/tslint.json +++ b/types/appframework/tslint.json @@ -1,80 +1,22 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, + "npm-naming": false, "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/apple-mapkit-js/tslint.json b/types/apple-mapkit-js/tslint.json index 1e2596d3715a9fc..159b250765146f1 100644 --- a/types/apple-mapkit-js/tslint.json +++ b/types/apple-mapkit-js/tslint.json @@ -1,6 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "npm-naming": false + "npm-naming": false } -} +} \ No newline at end of file diff --git a/types/apple-signin-api/apple-signin-api-tests.ts b/types/apple-signin-api/apple-signin-api-tests.ts new file mode 100644 index 000000000000000..e899b2690864d3d --- /dev/null +++ b/types/apple-signin-api/apple-signin-api-tests.ts @@ -0,0 +1,42 @@ +const ClientConfig: AppleSignInAPI.ClientConfigI = { + clientId: '', + redirectURI: '', + scope: '', + state: '', + usePopup: false, +}; + +const signInResponse: AppleSignInAPI.SignInResponseI = { + authorization: { + state: '[STATE]', + code: '[CODE]', + id_token: '[ID_TOKEN]', + }, + user: { + email: '[EMAIL]', + name: { + firstName: '[FIRST_NAME]', + lastName: '[LAST_NAME]', + }, + }, +}; + +const signInError: AppleSignInAPI.SignInErrorI = { + error: '[ERROR]', +}; + +const AuthGood: AppleSignInAPI.AppleID = { + auth: { + init: () => new Promise(() => {}), + signIn: () => new Promise(() => signInResponse), + renderButton: () => {}, + }, +}; + +const AuthBad: AppleSignInAPI.AppleID = { + auth: { + init: () => new Promise(() => {}), + signIn: () => new Promise(() => signInError), + renderButton: () => {}, + }, +}; diff --git a/types/apple-signin-api/index.d.ts b/types/apple-signin-api/index.d.ts new file mode 100644 index 000000000000000..64443bea196e20b --- /dev/null +++ b/types/apple-signin-api/index.d.ts @@ -0,0 +1,49 @@ +// Type definitions for non-npm package Apple Sign in API 1.4 +// Project: https://developer.apple.com/documentation/signinwithapplejs +// Definitions by: Julius Lungys +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare namespace AppleSignInAPI { + // https://developer.apple.com/documentation/signinwithapplejs/authorizationi + interface AuthorizationI { + code: string; + id_token: string; + state: string; + } + // https://developer.apple.com/documentation/signinwithapplejs/namei + interface NameI { + firstName: string; + lastName: string; + } + // https://developer.apple.com/documentation/signinwithapplejs/signinerrori + interface SignInErrorI { + error: string; + } + // https://developer.apple.com/documentation/signinwithapplejs/signinresponsei + interface SignInResponseI { + authorization: AuthorizationI; + user?: UserI; + } + // https://developer.apple.com/documentation/signinwithapplejs/useri + interface UserI { + email: string; + name: NameI; + } + // https://developer.apple.com/documentation/signinwithapplejs/authi + interface AuthI { + init: (config: ClientConfigI) => Promise; + signIn: (signInConfig?: ClientConfigI) => Promise; + renderButton: () => void; + } + // https://developer.apple.com/documentation/signinwithapplejs/clientconfigi + interface ClientConfigI { + clientId: string; + redirectURI: string; + scope: string; + state: string; + usePopup: boolean; + } + interface AppleID { + auth: AuthI; + } +} diff --git a/types/jest-matcher-utils/tsconfig.json b/types/apple-signin-api/tsconfig.json similarity index 92% rename from types/jest-matcher-utils/tsconfig.json rename to types/apple-signin-api/tsconfig.json index 33b27e63054b64d..fb8304e52186db4 100644 --- a/types/jest-matcher-utils/tsconfig.json +++ b/types/apple-signin-api/tsconfig.json @@ -6,8 +6,8 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": true, "strictFunctionTypes": true, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -18,6 +18,6 @@ }, "files": [ "index.d.ts", - "jest-matcher-utils-tests.ts" + "apple-signin-api-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/hapi__code/tslint.json b/types/apple-signin-api/tslint.json similarity index 100% rename from types/hapi__code/tslint.json rename to types/apple-signin-api/tslint.json diff --git a/types/applepayjs/tslint.json b/types/applepayjs/tslint.json index 1c56ba06b642abe..159b250765146f1 100644 --- a/types/applepayjs/tslint.json +++ b/types/applepayjs/tslint.json @@ -1,7 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "npm-naming": false, - "dt-header": false + "npm-naming": false } -} +} \ No newline at end of file diff --git a/types/appletvjs/tslint.json b/types/appletvjs/tslint.json index 3d59f55fdabcf45..906c95650abde90 100644 --- a/types/appletvjs/tslint.json +++ b/types/appletvjs/tslint.json @@ -1,80 +1,25 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, + "no-var-keyword": false, + "npm-naming": false, "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/applicationinsights-js/tslint.json b/types/applicationinsights-js/tslint.json index 29f4a79556cfd32..48a1334243e2c86 100644 --- a/types/applicationinsights-js/tslint.json +++ b/types/applicationinsights-js/tslint.json @@ -1,7 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - // All are TODOs "interface-name": false, "no-declare-current-package": false, "no-internal-module": false, @@ -12,4 +11,4 @@ "no-unnecessary-class": false, "no-unnecessary-qualifier": false } -} +} \ No newline at end of file diff --git a/types/arangodb/index.d.ts b/types/arangodb/index.d.ts index dc211882c11391a..26fd6b34f5e0890 100644 --- a/types/arangodb/index.d.ts +++ b/types/arangodb/index.d.ts @@ -89,7 +89,7 @@ declare namespace ArangoDB { | "network authentication required"; type EdgeDirection = "any" | "inbound" | "outbound"; type EngineType = "mmfiles" | "rocksdb"; - type IndexType = "hash" | "skiplist" | "fulltext" | "geo"; + type IndexType = "hash" | "skiplist" | "fulltext" | "geo" | "ttl"; type ViewType = "arangosearch"; type KeyGeneratorType = "traditional" | "autoincrement"; type ErrorName = @@ -510,6 +510,7 @@ declare namespace ArangoDB { sparse?: boolean; unique?: boolean; deduplicate?: boolean; + expireAfter?: number; } interface Index { @@ -520,6 +521,7 @@ declare namespace ArangoDB { sparse: boolean; unique: boolean; deduplicate: boolean; + expireAfter?: number; isNewlyCreated: boolean; selectivityEstimate: number; code: number; @@ -1529,9 +1531,17 @@ declare module "@arangodb/foxx/queues" { } declare module "@arangodb/foxx/graphql" { - import { formatError, GraphQLSchema } from "graphql"; - type GraphQLModule = object; - type GraphQLFormatErrorFunction = typeof formatError; + type GraphQLSchema = object; + type GraphQLFormatErrorFunction = (error: any) => any; + interface GraphQLModule { + formatError: GraphQLFormatErrorFunction; + Source: any; + parse: any; + validate: any; + specifiedRules: any; + getOperationAST: any; + execute: any; + } interface GraphQLOptions { schema: GraphQLSchema; context?: any; diff --git a/types/arbiter/tslint.json b/types/arbiter/tslint.json index 3d59f55fdabcf45..b716dd3d96d3c14 100644 --- a/types/arbiter/tslint.json +++ b/types/arbiter/tslint.json @@ -1,80 +1,20 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, + "npm-naming": false, "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/arcgis-js-api/tsconfig.json b/types/arcgis-js-api/tsconfig.json index 8a696a3a1e17708..2279e860507ca81 100644 --- a/types/arcgis-js-api/tsconfig.json +++ b/types/arcgis-js-api/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "arcgis-js-api-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/arcgis-js-api/tslint.json b/types/arcgis-js-api/tslint.json index 89955128d54071c..630ffb79427e857 100644 --- a/types/arcgis-js-api/tslint.json +++ b/types/arcgis-js-api/tslint.json @@ -3,79 +3,21 @@ "rules": { "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, "unified-signatures": false, "use-default-type-parameter": false, - "void-return": false, - "whitespace": false + "void-return": false } -} +} \ No newline at end of file diff --git a/types/arcgis-js-api/v3/tsconfig.json b/types/arcgis-js-api/v3/tsconfig.json index 320cb582e14967a..9489dead3e68e49 100644 --- a/types/arcgis-js-api/v3/tsconfig.json +++ b/types/arcgis-js-api/v3/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../../", "typeRoots": [ @@ -26,4 +26,4 @@ "index.d.ts", "arcgis-js-api-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/arcgis-js-api/v3/tslint.json b/types/arcgis-js-api/v3/tslint.json index a41bf5d19a37606..6cf12a895051127 100644 --- a/types/arcgis-js-api/v3/tslint.json +++ b/types/arcgis-js-api/v3/tslint.json @@ -1,79 +1,19 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/arcgis-to-geojson-utils/tslint.json b/types/arcgis-to-geojson-utils/tslint.json index 71ee04c4e1a2104..ad93d8fc0d9ca6b 100644 --- a/types/arcgis-to-geojson-utils/tslint.json +++ b/types/arcgis-to-geojson-utils/tslint.json @@ -3,4 +3,4 @@ "rules": { "no-unnecessary-generics": false } -} +} \ No newline at end of file diff --git a/types/archiver/archiver-tests.ts b/types/archiver/archiver-tests.ts index d61950b6579c7df..53a45fcdc2828c6 100644 --- a/types/archiver/archiver-tests.ts +++ b/types/archiver/archiver-tests.ts @@ -30,28 +30,27 @@ archiver.abort(); archiver.pipe(writeStream); archiver.append(readStream, { name: 'archiver.d.ts' }); -archiver.append(readStream, { date: '05/05/1991' }); -archiver.append(readStream, { date: new Date() }); -archiver.append(readStream, { mode: 1 }); -archiver.append(readStream, { mode: 1, stats: new fs.Stats() }); - -archiver.append(readStream, {name: 'archiver.d.ts'}) -.append(readStream, {name: 'archiver.d.ts'}); +archiver.append(readStream, { name: 'buffer.txt', date: '05/05/1991' }); +archiver.append(readStream, { name: 'buffer.txt', date: new Date() }); +archiver.append(readStream, { name: 'buffer.txt', mode: 1 }); +archiver.append(readStream, { name: 'buffer.txt', mode: 1, stats: new fs.Stats() }); +archiver.append('Some content', { name: 'filename', store: true }); +archiver.append(readStream, { name: 'archiver.d.ts' }).append(readStream, { name: 'archiver.d.ts' }); archiver.directory('./path', './someOtherPath'); archiver.directory('./', '', {}); archiver.directory('./', false, { name: 'test' }); archiver.directory('./', false, (entry: Archiver.EntryData) => { - entry.name = "foobar"; + entry.name = 'foobar'; return entry; }); archiver.directory('./', false, (entry: Archiver.EntryData) => false); archiver.append(readStream, { - name: "sub/folder.xml" + name: 'sub/folder.xml', }); -archiver.glob("**", { +archiver.glob('**', { cwd: 'path/to/files', }); archiver.glob('./path', {}, {}); diff --git a/types/archiver/index.d.ts b/types/archiver/index.d.ts index 225f00cd0a823a4..00e138309f15625 100644 --- a/types/archiver/index.d.ts +++ b/types/archiver/index.d.ts @@ -1,6 +1,9 @@ -// Type definitions for archiver 3.0.0 +// Type definitions for archiver 3.1 // Project: https://github.com/archiverjs/node-archiver -// Definitions by: Esri , Dolan Miu , Crevil +// Definitions by: Esri +// Dolan Miu +// Crevil +// Piotr Błażejewicz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as fs from 'fs'; @@ -8,6 +11,10 @@ import * as stream from 'stream'; import * as glob from 'glob'; import { ZlibOptions } from 'zlib'; +type Partial = { + [P in keyof T]?: T[P]; +}; + declare function archiver(format: archiver.Format, options?: archiver.ArchiverOptions): archiver.Archiver; declare namespace archiver { @@ -17,13 +24,31 @@ declare namespace archiver { function registerFormat(format: string, module: Function): void; interface EntryData { - name?: string; - prefix?: string; - stats?: fs.Stats; + /** Sets the entry name including internal path */ + name: string; + /** Sets the entry date */ date?: Date | string; + /** Sets the entry permissions */ mode?: number; + /** + * Sets a path prefix for the entry name. + * Useful when working with methods like `directory` or `glob` + */ + prefix?: string; + /** + * Sets the fs stat data for this entry allowing + * for reduction of fs stat calls when stat data is already known + */ + stats?: fs.Stats; } + interface ZipEntryData extends EntryData { + /** Sets the compression method to STORE */ + store?: boolean; + } + + type TarEntryData = EntryData; + interface ProgressData { entries: { total: number; @@ -39,7 +64,7 @@ declare namespace archiver { type EntryDataFunction = (entry: EntryData) => false | EntryData; class ArchiverError extends Error { - code: string; // Since archiver format support is modular, we cannot enumerate all possible error codes, as the modules can throw arbitrary ones. + code: string; // Since archiver format support is modular, we cannot enumerate all possible error codes, as the modules can throw arbitrary ones. data: any; path?: any; @@ -48,12 +73,12 @@ declare namespace archiver { interface Archiver extends stream.Transform { abort(): this; - append(source: stream.Readable | Buffer | string, name?: EntryData): this; + append(source: stream.Readable | Buffer | string, data?: EntryData | ZipEntryData | TarEntryData): this; /** if false is passed for destpath, the path of a chunk of data in the archive is set to the root */ - directory(dirpath: string, destpath: false | string, data?: EntryData | EntryDataFunction): this; + directory(dirpath: string, destpath: false | string, data?: Partial | EntryDataFunction): this; file(filename: string, data: EntryData): this; - glob(pattern: string, options?: glob.IOptions, data?: EntryData): this; + glob(pattern: string, options?: glob.IOptions, data?: Partial): this; finalize(): Promise; setFormat(format: string): this; diff --git a/types/archiver/tsconfig.json b/types/archiver/tsconfig.json index 71db696c82b0b52..3c52ff4889fb1be 100644 --- a/types/archiver/tsconfig.json +++ b/types/archiver/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "archiver-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/archiver/tslint.json b/types/archiver/tslint.json index 7bfbd50b5b28a56..f2a3d30eaf773ef 100644 --- a/types/archiver/tslint.json +++ b/types/archiver/tslint.json @@ -1,9 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { - // TODOs "ban-types": false, - "npm-naming": false, "dt-header": false } -} +} \ No newline at end of file diff --git a/types/archy/tsconfig.json b/types/archy/tsconfig.json index d26c84998729d1e..2d429e53f4fe669 100644 --- a/types/archy/tsconfig.json +++ b/types/archy/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "archy-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/archy/tslint.json b/types/archy/tslint.json index 3d59f55fdabcf45..da4e4b8ad0deecf 100644 --- a/types/archy/tslint.json +++ b/types/archy/tslint.json @@ -1,80 +1,15 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/argparse/tsconfig.json b/types/argparse/tsconfig.json index 9248f1d0783a8a0..728d663579ce07f 100644 --- a/types/argparse/tsconfig.json +++ b/types/argparse/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ diff --git a/types/argv/tsconfig.json b/types/argv/tsconfig.json index 2a123030fa8385a..010ee9fc09c600b 100644 --- a/types/argv/tsconfig.json +++ b/types/argv/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "argv-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/argv/tslint.json b/types/argv/tslint.json index 3d59f55fdabcf45..5ebae7de5cbd32e 100644 --- a/types/argv/tslint.json +++ b/types/argv/tslint.json @@ -1,80 +1,14 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/array-foreach/tslint.json b/types/array-foreach/tslint.json index 3d59f55fdabcf45..2c44f2e72dcfca3 100644 --- a/types/array-foreach/tslint.json +++ b/types/array-foreach/tslint.json @@ -1,80 +1,12 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "prefer-method-signature": false } -} +} \ No newline at end of file diff --git a/types/array-initial/array-initial-tests.ts b/types/array-initial/array-initial-tests.ts new file mode 100644 index 000000000000000..fc6128b927b6412 --- /dev/null +++ b/types/array-initial/array-initial-tests.ts @@ -0,0 +1,3 @@ +import arrayInitial = require("array-initial"); + +arrayInitial([1, 2, 3]); // $ExpectType number[] diff --git a/types/array-initial/index.d.ts b/types/array-initial/index.d.ts new file mode 100644 index 000000000000000..cef2dfd9f645b73 --- /dev/null +++ b/types/array-initial/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for array-initial 1.1 +// Project: https://github.com/jonschlinkert/array-initial +// Definitions by: Richie Bendall +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function arrayInitial(array: ArrayLike, drop?: number): T[]; + +export = arrayInitial; diff --git a/types/array-initial/tsconfig.json b/types/array-initial/tsconfig.json new file mode 100644 index 000000000000000..5071efd39408b5f --- /dev/null +++ b/types/array-initial/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "array-initial-tests.ts" + ] +} diff --git a/types/hapi__cryptiles/tslint.json b/types/array-initial/tslint.json similarity index 100% rename from types/hapi__cryptiles/tslint.json rename to types/array-initial/tslint.json diff --git a/types/array-sort/tslint.json b/types/array-sort/tslint.json index 3db14f85eaf7b98..d086f8e13f785e5 100644 --- a/types/array-sort/tslint.json +++ b/types/array-sort/tslint.json @@ -1 +1,17 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "npm-naming": [ + true, + { + "errors": [ + [ + "NeedsExportEquals", + false + ] + ], + "mode": "code" + } + ] + } +} \ No newline at end of file diff --git a/types/array.prototype.flat/index.d.ts b/types/array.prototype.flat/index.d.ts index 80cc366820af3fb..d98cf329b5c7c31 100644 --- a/types/array.prototype.flat/index.d.ts +++ b/types/array.prototype.flat/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for array.prototype.flat 1.2 // Project: https://github.com/es-shims/Array.prototype.flat#readme // Definitions by: Kyle Lin +// Jordan Harband // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 diff --git a/types/array.prototype.flatmap/index.d.ts b/types/array.prototype.flatmap/index.d.ts index 6bcc29f8b50eb99..fe3b53a914d8de6 100644 --- a/types/array.prototype.flatmap/index.d.ts +++ b/types/array.prototype.flatmap/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for array.prototype.flatmap 1.2 // Project: https://github.com/es-shims/Array.prototype.flatMap#readme // Definitions by: Jesse Hallett +// Jordan Harband // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/asana/index.d.ts b/types/asana/index.d.ts index 10488ef9ff359ca..acf0f8ec2e6851b 100644 --- a/types/asana/index.d.ts +++ b/types/asana/index.d.ts @@ -1,7 +1,8 @@ -// Type definitions for node-asana 0.14.0 +// Type definitions for node-asana 0.17.3 // Project: https://github.com/Asana/node-asana // Definitions by: Qubo // Tasyp +// Filippo Sarzana // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.2 import * as Promise from 'bluebird'; @@ -864,14 +865,14 @@ declare namespace asana { resource_type: string; resource_subtype: string; } - + interface EventSectionResource extends EventResource { project: { gid: string; name: string; }; } - + type EventProject = EventResource & Partial; type EventSection = EventSectionResource & Partial; type EventStory = EventResource & Partial; @@ -1948,6 +1949,12 @@ declare namespace asana { interface Type extends Resource { created_at: string; } + + interface SectionsParams { + task: number | string; + insert_after?: string; + insert_before?: string; + } } var Sections: SectionsStatic; @@ -1970,6 +1977,18 @@ declare namespace asana { * @return {Promise} The requested resource */ findById(section: string | number, params?: Params, dispatchOptions?: any): Promise; + + /** + * * Adds the specified task to a specific section of project. Returns empty object. + * @param {String} section The section to add task to. + * @param {Object} data Data for the request + * @param {String} data.task The id of task to be added to specified section. + * @param {String} data.insert_after An existing task within this section after which the added task should be inserted. Cannot be provided together with insert_before. + * @param {String} data.insert_before An existing task within this section before which the added task should be inserted. Cannot be provided together with insert_after. + * @param {Object} [dispatchOptions] Options, if any, to pass the dispatcher for the request + * @return {Promise} The response from the API + */ + addTask(section: string | number, data: Sections.SectionsParams, dispatchOptions?: any): Promise<{}>; } interface TeamsStatic { @@ -2647,4 +2666,4 @@ declare namespace asana { var VERSION: string; } -export = asana; \ No newline at end of file +export = asana; diff --git a/types/asana/tslint.json b/types/asana/tslint.json index 3d59f55fdabcf45..2412d085a8e1725 100644 --- a/types/asana/tslint.json +++ b/types/asana/tslint.json @@ -1,80 +1,25 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, "no-duplicate-variable": false, "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, + "no-trailing-whitespace": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/asciify/tsconfig.json b/types/asciify/tsconfig.json index 5f84d92e80d494a..bf1bd388082dd1a 100644 --- a/types/asciify/tsconfig.json +++ b/types/asciify/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "asciify-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/asciify/tslint.json b/types/asciify/tslint.json index 3d59f55fdabcf45..4abd54e66d14f0e 100644 --- a/types/asciify/tslint.json +++ b/types/asciify/tslint.json @@ -1,80 +1,19 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/asn1js/tslint.json b/types/asn1js/tslint.json index 3d59f55fdabcf45..a98f5a184f9af30 100644 --- a/types/asn1js/tslint.json +++ b/types/asn1js/tslint.json @@ -1,80 +1,22 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, "no-duplicate-imports": false, - "no-duplicate-variable": false, "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "strict-export-declare-modifiers": false } -} +} \ No newline at end of file diff --git a/types/aspnet-identity-pw/tslint.json b/types/aspnet-identity-pw/tslint.json index 3d59f55fdabcf45..89f180219b6b1ab 100644 --- a/types/aspnet-identity-pw/tslint.json +++ b/types/aspnet-identity-pw/tslint.json @@ -1,80 +1,16 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/assert-plus/tslint.json b/types/assert-plus/tslint.json index 3db14f85eaf7b98..d086f8e13f785e5 100644 --- a/types/assert-plus/tslint.json +++ b/types/assert-plus/tslint.json @@ -1 +1,17 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "npm-naming": [ + true, + { + "errors": [ + [ + "NeedsExportEquals", + false + ] + ], + "mode": "code" + } + ] + } +} \ No newline at end of file diff --git a/types/assert/assert-tests.ts b/types/assert/assert-tests.ts index 3f795f055275e92..a2ebffefea143f5 100644 --- a/types/assert/assert-tests.ts +++ b/types/assert/assert-tests.ts @@ -2,10 +2,14 @@ import * as assert from 'assert'; assert(true, "it's working"); -assert.ok(true, "inner functions work as well"); +assert.ok(true, 'inner functions work as well'); assert.throws(() => {}); assert.throws(() => {}, /Regex test/); -assert.throws(() => {}, () => {}, "works wonderfully"); +assert.throws( + () => {}, + () => {}, + 'works wonderfully', +); -assert['fail'](true, true, "works like a charm"); +assert['fail'](true, true, 'works like a charm'); diff --git a/types/assert/index.d.ts b/types/assert/index.d.ts index f436b7b4fd9dfa9..9ae05ce63fd2568 100644 --- a/types/assert/index.d.ts +++ b/types/assert/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/browserify/commonjs-assert, https://github.com/defunctzombie/commonjs-assert // Definitions by: Nico Gallinal // Linus Unnebäck +// ExE Boss // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare function assert(value: any, message?: string): void; @@ -29,7 +30,11 @@ declare namespace assert { function throws(block: () => void, error: (() => void) | ((err: any) => boolean) | RegExp, message?: string): void; function doesNotThrow(block: () => void, message?: string): void; - function doesNotThrow(block: () => void, error: (() => void) | ((err: any) => boolean) | RegExp, message?: string): void; + function doesNotThrow( + block: () => void, + error: (() => void) | ((err: any) => boolean) | RegExp, + message?: string, + ): void; function ifError(value: any): void; @@ -41,7 +46,13 @@ declare namespace assert { operator: string; generatedMessage: boolean; - constructor(options?: { message?: string; actual?: any; expected?: any; operator?: string; stackStartFunction?: () => void }); + constructor(options?: { + message?: string; + actual?: any; + expected?: any; + operator?: string; + stackStartFunction?: () => void; + }); } } diff --git a/types/assert/package.json b/types/assert/package.json new file mode 100644 index 000000000000000..f28600648d12e9e --- /dev/null +++ b/types/assert/package.json @@ -0,0 +1,7 @@ +{ + "private": true, + "types": "index", + "typesVersions": { + ">=3.7.0-0": { "*": ["ts3.7/*"] } + } +} diff --git a/types/assert/ts3.7/assert-tests.ts b/types/assert/ts3.7/assert-tests.ts new file mode 100644 index 000000000000000..983748c1fdb6f72 --- /dev/null +++ b/types/assert/ts3.7/assert-tests.ts @@ -0,0 +1,59 @@ +import * as assert from 'assert'; + +assert(true, "it's working"); + +assert.ok(true, 'inner functions work as well'); + +assert.throws(() => {}); +assert.throws(() => {}, /Regex test/); +assert.throws( + () => {}, + () => {}, + 'works wonderfully', +); + +assert['fail'](true, true, 'works like a charm'); + +{ + const a = null as any; + assert.ifError(a); + a; // $ExpectType null | undefined +} + +{ + const a = true as boolean; + assert(a); + a; // $ExpectType true +} + +{ + // tslint:disable-next-line: no-null-undefined-union + const a = 13 as number | null | undefined; + assert(a); + a; // $ExpectType number +} + +{ + const a = true as boolean; + assert.ok(a); + a; // $ExpectType true +} + +{ + // tslint:disable-next-line: no-null-undefined-union + const a = 13 as number | null | undefined; + assert.ok(a); + a; // $ExpectType number +} + +{ + const a = 'test' as any; + assert.strictEqual(a, 'test'); + a; // $ExpectType string +} + +{ + const a = { b: 2 } as any; + assert.deepStrictEqual(a, { b: 2 }); + a; // $ExpectType { b: number; } +} diff --git a/types/assert/ts3.7/index.d.ts b/types/assert/ts3.7/index.d.ts new file mode 100644 index 000000000000000..2e62d81566841a6 --- /dev/null +++ b/types/assert/ts3.7/index.d.ts @@ -0,0 +1,58 @@ +declare function assert(value: any, message?: string): asserts value; + +declare namespace assert { + function fail(actual?: any, expected?: any, message?: string, operator?: string): void; + + function ok(value: any, message?: string): asserts value; + + /** @deprecated Use `strictEqual` instead */ + function equal(actual: any, expected: any, message?: string): void; + + /** @deprecated Use `notStrictEqual` instead */ + function notEqual(actual: any, expected: any, message?: string): void; + + /** @deprecated Use `deepStrictEqual` instead */ + function deepEqual(actual: any, expected: any, message?: string): void; + + /** @deprecated Use `notDeepStrictEqual` instead */ + function notDeepEqual(actual: any, expected: any, message?: string): void; + + function deepStrictEqual(actual: any, expected: T, message?: string): asserts actual is T; + + function notDeepStrictEqual(actual: any, expected: any, message?: string): void; + + function strictEqual(actual: any, expected: T, message?: string): asserts actual is T; + + function notStrictEqual(actual: any, expected: any, message?: string): void; + + function throws(block: () => void, message?: string): void; + function throws(block: () => void, error: (() => void) | ((err: any) => boolean) | RegExp, message?: string): void; + + function doesNotThrow(block: () => void, message?: string): void; + function doesNotThrow( + block: () => void, + error: (() => void) | ((err: any) => boolean) | RegExp, + message?: string, + ): void; + + function ifError(value: any): asserts value is null | undefined; + + class AssertionError implements Error { + name: string; + message: string; + actual: any; + expected: any; + operator: string; + generatedMessage: boolean; + + constructor(options?: { + message?: string; + actual?: any; + expected?: any; + operator?: string; + stackStartFunction?: () => void; + }); + } +} + +export = assert; diff --git a/types/assert/ts3.7/tsconfig.json b/types/assert/ts3.7/tsconfig.json new file mode 100644 index 000000000000000..98c4f2a3e203678 --- /dev/null +++ b/types/assert/ts3.7/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es2015"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../../", + "typeRoots": ["../../"], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "assert-tests.ts", + "index.d.ts" + ] +} diff --git a/types/hapi__hoek/tslint.json b/types/assert/ts3.7/tslint.json similarity index 100% rename from types/hapi__hoek/tslint.json rename to types/assert/ts3.7/tslint.json diff --git a/types/assert/tsconfig.json b/types/assert/tsconfig.json index 5ab217b2abd1b04..e2f4f88baaa6a8b 100644 --- a/types/assert/tsconfig.json +++ b/types/assert/tsconfig.json @@ -1,24 +1,19 @@ { "compilerOptions": { "module": "commonjs", - "lib": [ - "es6", - "dom" - ], + "lib": ["es2015"], "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", - "typeRoots": [ - "../" - ], + "typeRoots": ["../"], "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true }, "files": [ - "index.d.ts", - "assert-tests.ts" + "assert-tests.ts", + "index.d.ts" ] } diff --git a/types/assert/tslint.json b/types/assert/tslint.json index f93cf8562ad24db..3db14f85eaf7b98 100644 --- a/types/assert/tslint.json +++ b/types/assert/tslint.json @@ -1,3 +1 @@ -{ - "extends": "dtslint/dt.json" -} +{ "extends": "dtslint/dt.json" } diff --git a/types/assertsharp/tsconfig.json b/types/assertsharp/tsconfig.json index bc2779726e7e0d6..0a1d07b43266e79 100644 --- a/types/assertsharp/tsconfig.json +++ b/types/assertsharp/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "assertsharp-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/assertsharp/tslint.json b/types/assertsharp/tslint.json index 3d59f55fdabcf45..23e6fe1e0135b83 100644 --- a/types/assertsharp/tslint.json +++ b/types/assertsharp/tslint.json @@ -1,80 +1,12 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "prefer-method-signature": false } -} +} \ No newline at end of file diff --git a/types/async-iterable-stream/async-iterable-stream-tests.ts b/types/async-iterable-stream/async-iterable-stream-tests.ts new file mode 100644 index 000000000000000..2d46d3341ae52fd --- /dev/null +++ b/types/async-iterable-stream/async-iterable-stream-tests.ts @@ -0,0 +1,56 @@ +import AsyncIterableStream = require('async-iterable-stream'); + +// Simple, dummy implementation of the abstract class + +class DummyAsyncIterator { + async next() { + return { done: true, value: 'dummy' }; + } + + return() { + return {}; + } +} + +class DummyAsyncIterableStream extends AsyncIterableStream { + createAsyncIterator() { + return new DummyAsyncIterator(); + } +} + +// Actual tests + +const asyncIterableStream = new DummyAsyncIterableStream(); + +// Consume data objects from consumableStream as they are written to the stream. +(async () => { + // tslint:disable-next-line: await-promise Bug in tslint: https://github.com/palantir/tslint/issues/3997 + for await (const data of asyncIterableStream) { + // $ExpectType string + data; + console.log(data); + } +})(); + +// Consume only the next data object which is written to the stream. +(async () => { + // $ExpectType string + await asyncIterableStream.once(); +})(); + +(async () => { + const asyncIterable = asyncIterableStream.createAsyncIterable(20); + for await (const data of asyncIterable) { + // $ExpectType string + data; + } +})(); + +(async () => { + const result = await asyncIterableStream.next(); + + if (!result.done) { + // $ExpectType string + result.value; + } +})(); diff --git a/types/async-iterable-stream/index.d.ts b/types/async-iterable-stream/index.d.ts new file mode 100644 index 000000000000000..1ed8c7ba2e2f0f1 --- /dev/null +++ b/types/async-iterable-stream/index.d.ts @@ -0,0 +1,23 @@ +// Type definitions for async-iterable-stream 3.0 +// Project: https://github.com/SocketCluster/async-iterable-stream +// Definitions by: Daniel Rose +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare abstract class AsyncIterableStream implements AsyncIterator, AsyncIterable { + next(timeout?: number): Promise>; + once(timeout?: number): Promise; + abstract createAsyncIterator(timeout?: number): AsyncIterableStream.AsyncIterator; + createAsyncIterable(timeout?: number): AsyncIterable; + [Symbol.asyncIterator](): AsyncIterator; +} + +export = AsyncIterableStream; + +declare namespace AsyncIterableStream { + interface AsyncIterator { + next(): Promise>; + return(): void; + } +} diff --git a/types/async-iterable-stream/tsconfig.json b/types/async-iterable-stream/tsconfig.json new file mode 100644 index 000000000000000..90906b8ae389446 --- /dev/null +++ b/types/async-iterable-stream/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "esnext.asynciterable" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "async-iterable-stream-tests.ts" + ] +} diff --git a/types/roads/tslint.json b/types/async-iterable-stream/tslint.json similarity index 100% rename from types/roads/tslint.json rename to types/async-iterable-stream/tslint.json diff --git a/types/async-lock/tsconfig.json b/types/async-lock/tsconfig.json index 1bc997ef73995b8..78576faa5f22b5a 100644 --- a/types/async-lock/tsconfig.json +++ b/types/async-lock/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "async-lock-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/async-polling/tslint.json b/types/async-polling/tslint.json index 3d59f55fdabcf45..b9efc3ebd53b703 100644 --- a/types/async-polling/tslint.json +++ b/types/async-polling/tslint.json @@ -1,80 +1,16 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "strict-export-declare-modifiers": false } -} +} \ No newline at end of file diff --git a/types/async-stream-emitter/async-stream-emitter-tests.ts b/types/async-stream-emitter/async-stream-emitter-tests.ts new file mode 100644 index 000000000000000..80eb24459d9c683 --- /dev/null +++ b/types/async-stream-emitter/async-stream-emitter-tests.ts @@ -0,0 +1,34 @@ +import AsyncStreamEmitter = require('async-stream-emitter'); + +// From README.md + +const emitter = new AsyncStreamEmitter(); + +(async () => { + await wait(10); + emitter.emit('foo', 'hello'); + + // This will cause all for-await-of loops for that event to exit. + // Note that you can also use the 'break' statement inside + // individual for-await-of loops. + emitter.closeListener('foo'); +})(); + +(async () => { + // tslint:disable-next-line: await-promise Bug in tslint: https://github.com/palantir/tslint/issues/3997 + for await (const data of emitter.listener('foo')) { + // data is 'hello' + // $ExpectType string + data; + } + console.log('The listener was closed.'); +})(); + +// Utility function. +function wait(duration: number) { + return new Promise(resolve => { + setTimeout(() => { + resolve(); + }, duration); + }); +} diff --git a/types/async-stream-emitter/index.d.ts b/types/async-stream-emitter/index.d.ts new file mode 100644 index 000000000000000..7f86310a823bfdc --- /dev/null +++ b/types/async-stream-emitter/index.d.ts @@ -0,0 +1,33 @@ +// Type definitions for async-stream-emitter 3.0 +// Project: https://github.com/SocketCluster/async-stream-emitter +// Definitions by: Daniel Rose +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import ConsumableStream = require('consumable-stream'); +import Consumer = require('writable-consumable-stream/consumer'); + +declare class AsyncStreamEmitter { + emit(eventName: string, data: T): void; + + listener(eventName: string): ConsumableStream; + + closeListener(eventName: string): void; + closeAllListeners(): void; + + getListenerConsumerStats(consumerId: number): Consumer.ConsumerStats; + getListenerConsumerStatsList(eventName: string): Consumer.ConsumerStats[]; + getAllListenersConsumerStatsList(): Consumer.ConsumerStats[]; + + killListener(eventName: string): void; + killAllListeners(): void; + killListenerConsumer(consumerId: number): void; + + getListenerBackpressure(eventName: string): number; + getAllListenersBackpressure(): number; + getListenerConsumerBackpressure(consumerId: number): number; + + hasListenerConsumer(eventName: string, consumerId: number): boolean; + hasAnyListenerConsumer(consumerId: number): boolean; +} + +export = AsyncStreamEmitter; diff --git a/types/async-stream-emitter/tsconfig.json b/types/async-stream-emitter/tsconfig.json new file mode 100644 index 000000000000000..f10703e5407800a --- /dev/null +++ b/types/async-stream-emitter/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "esnext.asynciterable" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "async-stream-emitter-tests.ts" + ] +} diff --git a/types/async-stream-emitter/tslint.json b/types/async-stream-emitter/tslint.json new file mode 100644 index 000000000000000..f93cf8562ad24db --- /dev/null +++ b/types/async-stream-emitter/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} diff --git a/types/async-writer/tsconfig.json b/types/async-writer/tsconfig.json index 2b8771e48cdbf63..d6fc6f73bd81cd3 100644 --- a/types/async-writer/tsconfig.json +++ b/types/async-writer/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "async-writer-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/async-writer/tslint.json b/types/async-writer/tslint.json index 3d59f55fdabcf45..d5c66b34b823901 100644 --- a/types/async-writer/tslint.json +++ b/types/async-writer/tslint.json @@ -1,80 +1,16 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/async/index.d.ts b/types/async/index.d.ts index b471baf2eeb3964..adc37e01b9e4ada 100644 --- a/types/async/index.d.ts +++ b/types/async/index.d.ts @@ -106,7 +106,12 @@ export interface AsyncCargo { push(task: any, callback?: Function): void; saturated(): void; empty(): void; - drain(): void; + /** + * a function that sets a callback that is called when the last item from the queue has returned from the worker. + * If the callback is omitted, q.drain() returns a promise for the next occurrence. + */ + drain(): Promise; + drain(handler: () => void): void; idle(): boolean; pause(): void; resume(): void; @@ -114,15 +119,19 @@ export interface AsyncCargo { } // Collections -export function each(arr: IterableCollection, iterator: AsyncIterator, callback?: ErrorCallback): void; +export function each(arr: IterableCollection, iterator: AsyncIterator, callback: ErrorCallback): void; +export function each(arr: IterableCollection, iterator: AsyncIterator): Promise; export const eachSeries: typeof each; -export function eachLimit(arr: IterableCollection, limit: number, iterator: AsyncIterator, callback?: ErrorCallback): void; +export function eachLimit(arr: IterableCollection, limit: number, iterator: AsyncIterator, callback: ErrorCallback): void; +export function eachLimit(arr: IterableCollection, limit: number, iterator: AsyncIterator): Promise; export const forEach: typeof each; export const forEachSeries: typeof each; export const forEachLimit: typeof eachLimit; -export function forEachOf(obj: IterableCollection, iterator: AsyncForEachOfIterator, callback?: ErrorCallback): void; +export function forEachOf(obj: IterableCollection, iterator: AsyncForEachOfIterator, callback: ErrorCallback): void; +export function forEachOf(obj: IterableCollection, iterator: AsyncForEachOfIterator): Promise; export const forEachOfSeries: typeof forEachOf; -export function forEachOfLimit(obj: IterableCollection, limit: number, iterator: AsyncForEachOfIterator, callback?: ErrorCallback): void; +export function forEachOfLimit(obj: IterableCollection, limit: number, iterator: AsyncForEachOfIterator, callback: ErrorCallback): void; +export function forEachOfLimit(obj: IterableCollection, limit: number, iterator: AsyncForEachOfIterator): Promise; export const eachOf: typeof forEachOf; export const eachOfSeries: typeof forEachOf; export const eachOfLimit: typeof forEachOfLimit; @@ -147,9 +156,11 @@ export function mapValuesLimit( export function mapValues(obj: Dictionary, iteratee: (value: T, key: string, callback: AsyncResultCallback) => void, callback: AsyncResultObjectCallback): void; export function mapValues(obj: Dictionary, iteratee: (value: T, key: string, callback: AsyncResultCallback) => void): Promise; export const mapValuesSeries: typeof mapValues; -export function filter(arr: IterableCollection, iterator: AsyncBooleanIterator, callback?: AsyncResultArrayCallback): void; +export function filter(arr: IterableCollection, iterator: AsyncBooleanIterator, callback: AsyncResultArrayCallback): void; +export function filter(arr: IterableCollection, iterator: AsyncBooleanIterator): Promise; export const filterSeries: typeof filter; -export function filterLimit(arr: IterableCollection, limit: number, iterator: AsyncBooleanIterator, callback?: AsyncResultArrayCallback): void; +export function filterLimit(arr: IterableCollection, limit: number, iterator: AsyncBooleanIterator, callback: AsyncResultArrayCallback): void; +export function filterLimit(arr: IterableCollection, limit: number, iterator: AsyncBooleanIterator): Promise; export const select: typeof filter; export const selectSeries: typeof filter; export const selectLimit: typeof filterLimit; @@ -213,14 +224,26 @@ export function auto, E = Error>(tasks: AsyncAutoTasks export function autoInject(tasks: any, callback?: AsyncResultCallback): void; export function retry( - opts: number | { - times: number, - interval: number | ((retryCount: number) => number), - errorFilter?: (error: Error) => boolean - }, - task: (callback: AsyncResultCallback, results: any) => void, - callback: AsyncResultCallback - ): void; + opts?: + | number + | { + times?: number; + interval?: number | ((retryCount: number) => number); + errorFilter?: (error: Error) => boolean; + }, + task?: (callback: AsyncResultCallback, results: any) => void, +): Promise; +export function retry( + opts?: + | number + | { + times?: number; + interval?: number | ((retryCount: number) => number); + errorFilter?: (error: Error) => boolean; + }, + task?: (callback: AsyncResultCallback, results: any) => void, + callback?: AsyncResultCallback, +): void; export function retryable(opts: number | {times: number, interval: number}, task: AsyncFunction): AsyncFunction; export function apply(fn: Function, ...args: any[]): AsyncFunction; @@ -233,9 +256,11 @@ export function reflectAll(tasks: Array>): Arr export function timeout(fn: AsyncFunction, milliseconds: number, info?: any): AsyncFunction; export function timeout(fn: AsyncResultIterator, milliseconds: number, info?: any): AsyncResultIterator; -export function times(n: number, iterator: AsyncResultIterator, callback: AsyncResultArrayCallback): void; -export function timesSeries(n: number, iterator: AsyncResultIterator, callback: AsyncResultArrayCallback): void; +export function times(n: number, iterator: AsyncResultIterator, callback: AsyncResultArrayCallback): void; +export function times(n: number, iterator: AsyncResultIterator): Promise; +export const timesSeries: typeof times; export function timesLimit(n: number, limit: number, iterator: AsyncResultIterator, callback: AsyncResultArrayCallback): void; +export function timesLimit(n: number, limit: number, iterator: AsyncResultIterator): Promise; export function transform(arr: T[], iteratee: (acc: R[], item: T, key: number, callback: (error?: E) => void) => void, callback?: AsyncResultArrayCallback): void; export function transform(arr: T[], acc: R[], iteratee: (acc: R[], item: T, key: number, callback: (error?: E) => void) => void, callback?: AsyncResultArrayCallback): void; diff --git a/types/async/test/index.ts b/types/async/test/index.ts index 7516e491921b7ac..9569b768771adb5 100644 --- a/types/async/test/index.ts +++ b/types/async/test/index.ts @@ -256,6 +256,8 @@ const cargo = async.cargo((tasks, callback) => { } callback(); }, 2); +cargo.drain(); // $ExpectType Promise +cargo.drain(() => { console.log('done processing queue'); }); // $ExpectType void // add some items cargo.push({ name: 'foo' }, (err: Error) => { console.log('finished processing foo'); }); @@ -310,10 +312,31 @@ async.auto({ (err, results) => { console.log('finished auto'); } ); -async.retry(3, (callback, results) => { }, (err, result) => { }); -async.retry({ times: 3, interval: 200 }, (callback, results) => { }, (err, result) => { }); -async.retry({ times: 3, interval: (retryCount) => 200 * retryCount }, (callback, results) => { }, (err, result) => { }); -async.retry({ times: 3, interval: 200, errorFilter: (err) => true }, (callback, results) => { }, (err, result) => { }); +async.retry(); // $ExpectType Promise +async.retry(3); // $ExpectType Promise +// $ExpectType Promise +async.retry( + 3, + (callback, results) => {}, +); +// $ExpectType void +async.retry( + { times: 3, interval: 200 }, + (callback, results) => {}, + (err, result) => {}, +); +// $ExpectType void +async.retry( + { times: 3, interval: retryCount => 200 * retryCount }, + (callback, results) => {}, + (err, result) => {}, +); +// $ExpectType void +async.retry( + { times: 3, interval: 200, errorFilter: err => true }, + (callback, results) => {}, + (err, result) => {}, +); async.parallel([ (callback: (err: Error, val: string) => void) => { }, diff --git a/types/async/tslint.json b/types/async/tslint.json index 5612ed6657ca786..4a0c5408c66695e 100644 --- a/types/async/tslint.json +++ b/types/async/tslint.json @@ -1,8 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { - "ban-types": true, // PRODUCES ERRORS WHEN REMOVED - "callable-types": false, // HAS ISSUES - "no-unnecessary-generics": false // HAS ISSUES + "ban-types": false, + "callable-types": false, + "no-unnecessary-generics": false } -} +} \ No newline at end of file diff --git a/types/asynciterator/index.d.ts b/types/asynciterator/index.d.ts index 4fa18dc3a8754ea..0826d682ddf4851 100644 --- a/types/asynciterator/index.d.ts +++ b/types/asynciterator/index.d.ts @@ -8,7 +8,7 @@ import { EventEmitter } from "events"; -export abstract class AsyncIterator extends EventEmitter { +export abstract class AsyncIterator implements EventEmitter { static STATES: ['INIT', 'OPEN', 'CLOSING', 'CLOSED', 'ENDED']; static INIT: 0; static OPEN: 1; @@ -57,6 +57,24 @@ export abstract class AsyncIterator extends EventEmitter { clone(): ClonedIterator; static range(start?: number, end?: number, step?: number): IntegerIterator; + + // From EventEmitter + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + removeListener(event: string | symbol, listener: (...args: any[]) => void): this; + off(event: string | symbol, listener: (...args: any[]) => void): this; + removeAllListeners(event?: string | symbol): this; + setMaxListeners(n: number): this; + getMaxListeners(): number; + listeners(event: string | symbol): Array<() => void>; + rawListeners(event: string | symbol): Array<() => void>; + emit(event: string | symbol, ...args: any[]): boolean; + listenerCount(type: string | symbol): number; + // Added in Node 6... + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + eventNames(): Array; } export class EmptyIterator extends AsyncIterator { diff --git a/types/asynciterator/tslint.json b/types/asynciterator/tslint.json index 1c36270d4769b43..d0f2aab4e10bf17 100644 --- a/types/asynciterator/tslint.json +++ b/types/asynciterator/tslint.json @@ -1,6 +1,18 @@ { "extends": "dtslint/dt.json", "rules": { - "no-angle-bracket-type-assertion": false + "no-angle-bracket-type-assertion": false, + "npm-naming": [ + true, + { + "errors": [ + [ + "NeedsExportEquals", + false + ] + ], + "mode": "code" + } + ] } -} +} \ No newline at end of file diff --git a/types/atmosphere.js/tslint.json b/types/atmosphere.js/tslint.json index 3d59f55fdabcf45..bb507fb7d76581e 100644 --- a/types/atmosphere.js/tslint.json +++ b/types/atmosphere.js/tslint.json @@ -1,80 +1,23 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, + "no-var-keyword": false, + "npm-naming": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/atom/atom-tests.ts b/types/atom/atom-tests.ts index 9a04b9c7b6bdbc2..17c94b9ca9d568a 100644 --- a/types/atom/atom-tests.ts +++ b/types/atom/atom-tests.ts @@ -72,6 +72,7 @@ declare let workspaceCenter: Atom.WorkspaceCenter; declare let pixelPos: Atom.PixelPosition; declare let textEditorElement: Atom.TextEditorElement; declare let textEditorComponent: Atom.TextEditorComponent; +declare let timingMarkers: Atom.TimingMarker[]; // AtomEnvironment ============================================================ function testAtomEnvironment() { @@ -157,9 +158,11 @@ function testAtomEnvironment() { bool = atom.inDevMode(); bool = atom.inSafeMode(); bool = atom.inSpecMode(); + str = atom.getAppName(); str = atom.getVersion(); bool = atom.isReleasedVersion(); num = atom.getWindowLoadTime(); + timingMarkers = atom.getStartupMarkers(); obj = atom.getLoadSettings(); // Managing The Atom Window @@ -190,6 +193,9 @@ function testAtomEnvironment() { bool = atom.isFullScreen(); atom.setFullScreen(true); atom.toggleFullScreen(); + atom.displayWindow(); + obj = atom.getWindowDimensions(); + atom.setWindowDimensions({ x: 0, y: 0, width: 640, height: 480 }); // Messaging the User atom.beep(); @@ -1901,6 +1907,7 @@ function testSelection() { selection.setBufferRange([[0, 0], [0, 0]], {}); selection.setBufferRange(range, { autoscroll: true, preserveFolds: false }); selection.setBufferRange([pos, pos], { autoscroll: true }); + selection.setBufferRange(range, { reversed: true }); const [startingRow, endingRow ]: [number, number] = selection.getBufferRowRange(); @@ -3339,6 +3346,8 @@ function testWorkspace() { panel = atom.workspace.addModalPanel({ item: element }); panel = atom.workspace.addModalPanel({ item: element, priority: 100, visible: true }); + panel = atom.workspace.addModalPanel({ item: element, autoFocus: element }); + panel = atom.workspace.addModalPanel({ item: element, autoFocus: () => element }); const potentialPanel = atom.workspace.panelForItem(element); if (potentialPanel) { diff --git a/types/atom/index.d.ts b/types/atom/index.d.ts index fb230420c0c13ae..d71d6b76339ee04 100644 --- a/types/atom/index.d.ts +++ b/types/atom/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for non-npm package Atom 1.36 +// Type definitions for non-npm package Atom 1.40 // Project: https://github.com/atom/atom // Definitions by: GlenCFL // smhxx @@ -7,7 +7,7 @@ // TypeScript Version: 2.3 // NOTE: only those classes exported within this file should be retain that status below. -// https://github.com/atom/atom/blob/v1.36.0/exports/atom.js +// https://github.com/atom/atom/blob/v1.40.0/exports/atom.js /// @@ -121,14 +121,17 @@ export interface AtomEnvironment { /** Returns a boolean that is true if the current window is running specs. */ inSpecMode(): boolean; + /** Get the full name of this Atom release (e.g. "Atom", "Atom Beta") */ + getAppName(): string; + /** Get the version of the Atom application. */ getVersion(): string; /** * Gets the release channel of the Atom application. - * Returns the release channel, which can be 'dev', 'beta', or 'stable'. + * Returns the release channel, which can be 'dev', 'nightly', 'beta', or 'stable'. */ - getReleaseChannel(): "dev"|"beta"|"stable"; + getReleaseChannel(): "dev"|"nightly"|"beta"|"stable"; /** Returns a boolean that is true if the current version is an official release. */ isReleasedVersion(): boolean; @@ -136,6 +139,9 @@ export interface AtomEnvironment { /** Get the time taken to completely load the current window. */ getWindowLoadTime(): number; + /** Get the all the markers with the information about startup time. */ + getStartupMarkers(): TimingMarker[]; + /** Get the load settings for the current window. */ getLoadSettings(): WindowLoadSettings; @@ -199,6 +205,23 @@ export interface AtomEnvironment { /** Toggle the full screen state of the current window. */ toggleFullScreen(): void; + /** + * Restores the full screen and maximized state after the window has resized to prevent resize + * glitches. + */ + displayWindow(): Promise; + + /** Get the dimensions of this window. */ + getWindowDimensions(): { x: number, y: number, width: number, height: number }; + + /** Set the dimensions of the window. */ + setWindowDimensions(dimensions: { + x?: number, + y?: number, + width?: number, + height?: number + }): Promise; + // Messaging the User /** Visually and audibly trigger a beep. */ beep(): void; @@ -2952,7 +2975,7 @@ export interface Workspace { item: T, visible?: boolean, priority?: number, - autoFocus?: boolean, + autoFocus?: boolean | FocusableHTMLElement, }): Panel; /** @@ -4650,6 +4673,7 @@ export interface Selection { /** Modifies the buffer Range for the selection. */ setBufferRange(bufferRange: RangeCompatible, options?: { + reversed?: boolean, preserveFolds?: boolean, autoscroll?: boolean, }): void; @@ -5223,7 +5247,10 @@ export class TextBuffer { /** Determine whether the buffer is empty. */ isEmpty(): boolean; - /** Get the entire text of the buffer. */ + /** + * Get the entire text of the buffer. Avoid using this unless you know that + * the buffer's text is reasonably short. + */ getText(): string; /** Get the text in a range. */ @@ -5968,7 +5995,7 @@ export interface TextEditorObservedEvent { // information under certain contexts. // NOTE: the config schema with these defaults can be found here: -// https://github.com/atom/atom/blob/v1.36.0/src/config-schema.js +// https://github.com/atom/atom/blob/v1.40.0/src/config-schema.js /** * Allows you to strongly type Atom configuration variables. Additional key:value * pairings merged into this interface will result in configuration values under @@ -6083,7 +6110,7 @@ export interface ConfigValues { */ "core.fileSystemWatcher": "native"|"experimental"|"poll"|"atom"; - /** Experimental: Use the new Tree-sitter parsing system for supported languages. */ + /** Use the new Tree-sitter parsing system for supported languages. */ "core.useTreeSitterParsers": boolean; /** @@ -6387,7 +6414,7 @@ export interface CopyMarkerOptions { */ exclusive?: boolean; - /** -DEPRECATED- Custom properties to be associated with the marker. */ + /** Custom properties to be associated with the marker. */ properties?: object; } @@ -6841,6 +6868,14 @@ export interface JQueryCompatible extends It jquery: string; } +/** + * The type used by the `focus-trap` library to target a specific DOM node. + * + * A DOM node, a selector string (which will be passed to `document.querySelector()` + * to find the DOM node), or a function that returns a DOM node. + */ +export type FocusableHTMLElement = HTMLElement | string | { (): HTMLElement }; + /** The types usable when constructing a point via the Point::fromObject method. */ export type PointCompatible = PointLike|[number, number]; @@ -7061,6 +7096,11 @@ export interface TextChange { start: Point; } +export interface TimingMarker { + label: string; + time: number; +} + /** Result returned by `Grammar.tokenizeLine`. */ export interface TokenizeLineResult { /** The string of text that was tokenized. */ diff --git a/types/atpl/tslint.json b/types/atpl/tslint.json index 3d59f55fdabcf45..73bad6e72e6d890 100644 --- a/types/atpl/tslint.json +++ b/types/atpl/tslint.json @@ -1,80 +1,15 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/auth0-angular/tslint.json b/types/auth0-angular/tslint.json index 3d59f55fdabcf45..05913fe1b43e8f0 100644 --- a/types/auth0-angular/tslint.json +++ b/types/auth0-angular/tslint.json @@ -1,80 +1,16 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/auth0-js/auth0-js-tests.ts b/types/auth0-js/auth0-js-tests.ts index 1e08be48c689dcf..8f70c426eaa7177 100644 --- a/types/auth0-js/auth0-js-tests.ts +++ b/types/auth0-js/auth0-js-tests.ts @@ -2,7 +2,8 @@ import * as auth0 from 'auth0-js'; const webAuth = new auth0.WebAuth({ domain: 'mine.auth0.com', - clientID: 'dsa7d77dsa7d7' + clientID: 'dsa7d77dsa7d7', + maxAge: 40, }); webAuth.authorize({ @@ -149,7 +150,7 @@ webAuth.signupAndAuthorize({ password: '123456', scope: 'openid', username: "blabla", - user_metadata: { + userMetadata: { foo: 'bar' } }, (err, data) => {}); @@ -162,11 +163,14 @@ webAuth.client.login({ scope: 'read:order write:order', }, (err, authResult) => {/*Auth tokens in the result or an error*/}); -webAuth.popup.buildPopupHandler(); +webAuth.popup.buildPopupHandler(); // $ExpectError webAuth.popup.preload({}); -webAuth.popup.authorize({ domain: "", redirectUri: "", responseType: "code" }, (err, data) => { +webAuth.popup.authorize({ domain: "", redirectUri: "", responseType: "code" }, (err, result) => { if (err) /* handle error */ return; - // do something with data + // do something with results + if (result) { + // ... + } }); webAuth.popup.loginWithCredentials({}, (err, data) => { if (err) /* handle error */ return; @@ -183,7 +187,8 @@ webAuth.popup.signupAndLogin({ email: "", password: "", connection: "" }, (err, webAuth.login({username: 'bar', password: 'foo', state: '1234'}, (err, data) => {}); -webAuth.crossOriginAuthenticationCallback(); +// cross-origin verification +webAuth.crossOriginVerification(); webAuth.checkSession({ audience: 'https://mystore.com/api/v2', @@ -210,13 +215,20 @@ const authentication = new auth0.Authentication({ _sendTelemetry: false }); +// $ExpectError authentication.buildAuthorizeUrl({state: '1234'}); +// $ExpectError +authentication.buildAuthorizeUrl(); +// $ExpectType string authentication.buildAuthorizeUrl({ - responseType: 'token', + audience: 'audience', + clientID: 'clientID', + nonce: '1234', redirectUri: 'http://anotherpage.com/callback2', - prompt: 'none', + responseMode: 'query', + responseType: 'code token', + scope: 'openid email', state: '1234', - connection_scope: 'scope1,scope2' }); authentication.buildLogoutUrl({ clientID: 'asdfasdfds' }); @@ -251,9 +263,40 @@ authentication.getUserCountry((err, data) => {}); authentication.getSSOData(); authentication.getSSOData(true, (err, data) => {}); +// $ExpectError +authentication.dbConnection.signup(); +// $ExpectError +authentication.dbConnection.signup({}); +// $ExpectError +authentication.dbConnection.signup({ connection: 'bla', email: 'blabla' }); +// $ExpectError +authentication.dbConnection.signup({ connection: 'bla', email: 'blabla', password: '123456' }); authentication.dbConnection.signup( { connection: 'bla', email: 'blabla', password: '123456', username: 'blabla' }, - () => {} + (auth0Error, results) => { + if (auth0Error) { + const { error, errorDescription } = auth0Error; + } + if (results) { + const { email, emailVerified } = results; + } + }, +); +authentication.dbConnection.signup( + { + email: 'the email', + password: 'the password', + connection: 'the_connection', + userMetadata: { + firstName: 'Toon', + lastName: 'De Coninck', + last_location: 'Mexico', + }, + }, + (err, data) => { + console.assert(err === null); + console.assert(data.email !== null); + }, ); authentication.dbConnection.changePassword({connection: 'bla', email: 'blabla'}, () => {}); @@ -278,4 +321,9 @@ management.patchUserMetadata('asd', {role: 'admin'}, (err, user) => { if (!err && user.email_verified) return; // do something }); -management.linkUser('asd', 'eqwe', (err, user) => {}); +// tslint:disable-next-line: prefer-const +let user: auth0.Auth0UserProfile; +management.patchUserAttributes(); // $ExpectError +management.patchUserAttributes('...'); // $ExpectError +management.patchUserAttributes('...', {}); // $ExpectError +management.patchUserAttributes('auth0|123', user, (err, user) => {}); // $ExpectType void diff --git a/types/auth0-js/index.d.ts b/types/auth0-js/index.d.ts index dd1839395cfed71..199a05142fba3f7 100644 --- a/types/auth0-js/index.d.ts +++ b/types/auth0-js/index.d.ts @@ -1,12 +1,12 @@ -// Type definitions for Auth0.js 9.10 +// Type definitions for Auth0.js 9.12 // Project: https://github.com/auth0/auth0.js // Definitions by: Adrian Chia // Matt Durrant // Peter Blazejewicz // Bartosz Kotrys // Mark Nelissen +// Tyler Lindell // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 export as namespace auth0; @@ -19,9 +19,11 @@ export class Authentication { /** * Builds and returns the `/authorize` url in order to initialize a new authN/authZ transaction * - * @param options: https://auth0.com/docs/api/authentication#!#get--authorize_db + * @param options: https://auth0.github.io/auth0.js/global.html#buildAuthorizeUrl + * @see {@link https://auth0.com/docs/api/authentication#authorize-client} + * @see {@link https://auth0.com/docs/api/authentication#social} */ - buildAuthorizeUrl(options: any): string; + buildAuthorizeUrl(options: AuthorizeUrlOptions): string; /** * Builds and returns the Logout url in order to initialize a new authN/authZ transaction @@ -112,11 +114,10 @@ export class DBConnection { constructor(request: any, option: any); /** - * Signup a new user - * - * @param options: https://auth0.com/docs/api/authentication#!#post--dbconnections-signup + * Creates a new user in a Auth0 Database connection + * @param options https://auth0.com/docs/api/authentication#signup */ - signup(options: DbSignUpOptions, callback: Auth0Callback): void; + signup(options: DbSignUpOptions, callback: Auth0Callback): void; /** * Initializes the change password flow @@ -139,12 +140,17 @@ export class Management { getUser(userId: string, callback: Auth0Callback): void; /** - * Updates the user metdata. It will patch the user metdata with the attributes sent. + * Updates the user metadata. It will patch the user metadata with the attributes sent. * https://auth0.com/docs/api/management/v2#!/Users/patch_users_by_id * */ patchUserMetadata(userId: string, userMetadata: any, callback: Auth0Callback): void; - + /** + * Updates the user attributes. + * It will patch the root attributes that the server allows it. + * {@link https://auth0.com/docs/api/management/v2#!/Users/patch_users_by_id} + */ + patchUserAttributes(userId: string, user: Auth0UserProfile, callback: Auth0Callback): void; /** * Link two users. https://auth0.com/docs/api/management/v2#!/Users/post_identities * @@ -241,11 +247,18 @@ export class WebAuth { login(options: CrossOriginLoginOptions, callback: Auth0Callback): void; /** - * Runs the callback code for the cross origin authentication call. This method is meant to be called by the cross origin authentication callback url. - * + * Runs the callback code for the cross origin authentication call. + * This method is meant to be called by the cross origin authentication callback url. + * @deprecated Use {@link crossOriginVerification} instead. */ crossOriginAuthenticationCallback(): void; + /** + * Runs the callback code for the cross origin authentication call. + * This method is meant to be called by the cross origin authentication callback url. + */ + crossOriginVerification(): void; + /** * Redirects to the auth0 logout endpoint * @@ -332,9 +345,8 @@ export class Popup { /** * Returns a new instance of the popup handler - * */ - buildPopupHandler(): any; + private buildPopupHandler(): any; /** * Initializes the popup window and returns the instance to be used later in order to avoid being blocked by the browser. @@ -410,7 +422,7 @@ export class Popup { /** determines if Auth0 should render the relay page or not and the caller is responsible of handling the response. */ owp?: boolean, }, - callback: Auth0Callback, + callback: Auth0Callback, ): void; /** @@ -518,6 +530,11 @@ export interface AuthOptions { redirectUri?: string; scope?: string; audience?: string; + /** + * maximum elapsed time in seconds since the last time the user + * was actively authenticated by the authorization server. + */ + maxAge?: number; leeway?: number; plugins?: any[]; _disableDeprecationWarnings?: boolean; @@ -584,6 +601,30 @@ export interface Auth0Error { statusText?: string; } +/** + * result of the Auth request. + * If there is no token available, this value will be null. + */ +export interface Auth0Result { + /** + * token that allows access to the specified resource server (identified by the audience parameter + * or by default Auth0's /userinfo endpoint) + */ + accessToken?: string; + /** number of seconds until the access token expires */ + expiresIn?: number; + /** token that identifies the user */ + idToken?: string; + /** + * token that can be used to get new access tokens from Auth0. + * Note that not all Auth0 Applications can request them + * or the resource server might not allow them. + */ + refreshToken?: string; + /** values that you receive back on the authentication response */ + appState?: any; +} + export type Auth0ParseHashError = Auth0Error & { state?: string; }; @@ -692,6 +733,47 @@ export interface AdfsUserProfile extends Auth0UserProfile { issuer?: string; } +export interface AuthorizeUrlOptions { + /** + * your Auth0 client identifier obtained when creating the client in the Auth0 Dashboard + */ + clientID?: string; + /** + * url that the Auth0 will redirect after Auth with the Authorization Response + */ + redirectUri: string; + /** + * type of the response used by OAuth 2.0 flow. It can be any space separated + * list of the values `code`, `token`, `id_token`. + * {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0} + */ + responseType: string; + /** + * how the Auth response is encoded and redirected back to the client. + * Supported values are `query`, `fragment` and `form_post` + * {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0.html#ResponseModes} + */ + responseMode?: 'query' | 'fragment' | 'form_post'; + /** + * value used to mitigate XSRF attacks. + * {@link https://auth0.com/docs/protocols/oauth2/oauth-state} + */ + state?: string; + /** + * value used to mitigate replay attacks when using Implicit Grant. + * {@link https://auth0.com/docs/api-auth/tutorials/nonce} + */ + nonce?: string; + /** + * scopes to be requested during Auth. e.g. `openid email` + */ + scope?: string; + /** + * identifier of the resource server who will consume the access token issued after Auth + */ + audience?: string; +} + export interface Auth0Identity { connection: string; isSocial: boolean; @@ -752,13 +834,25 @@ export interface DelegationOptions { } export interface DbSignUpOptions { + /** user email address */ email: string; + /** user password */ password: string; + /** name of the connection where the user will be created */ connection: string; /** User desired username. Required if you use a database connection and you have enabled `Requires Username` */ username?: string; scope?: string; - user_metadata?: any; + /** additional signup attributes used for creating the user. Will be stored in `user_metadata` */ + userMetadata?: any; +} + +/** result of the signup request */ +export interface DbSignUpResults { + /** user's email */ + email: string; + /** if the user's email was verified */ + emailVerified: boolean; } export interface ParseHashOptions { @@ -857,6 +951,7 @@ export interface AuthorizeOptions { accessType?: string; approvalPrompt?: string; appState?: any; + connection_scope?: string | string[]; } export interface CheckSessionOptions extends AuthorizeOptions { diff --git a/types/auth0-js/v7/tslint.json b/types/auth0-js/v7/tslint.json index a41bf5d19a37606..6b55c6110631696 100644 --- a/types/auth0-js/v7/tslint.json +++ b/types/auth0-js/v7/tslint.json @@ -1,79 +1,13 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "prefer-method-signature": false } -} +} \ No newline at end of file diff --git a/types/auth0-lock/tslint.json b/types/auth0-lock/tslint.json index a4c0aed57aba04a..877d2671f9e719e 100644 --- a/types/auth0-lock/tslint.json +++ b/types/auth0-lock/tslint.json @@ -1,13 +1,13 @@ { - "extends": "dtslint/dt.json", - "rules": { - "only-arrow-functions": false, - "no-declare-current-package": false, - "no-misused-new": false, - "no-single-declare-module": false, - "prefer-method-signature": false, - "object-literal-shorthand": false, - "typedef-whitespace": false, - "no-var": false - } -} + "extends": "dtslint/dt.json", + "rules": { + "no-declare-current-package": false, + "no-misused-new": false, + "no-single-declare-module": false, + "no-var": false, + "object-literal-shorthand": false, + "only-arrow-functions": false, + "prefer-method-signature": false, + "typedef-whitespace": false + } +} \ No newline at end of file diff --git a/types/auth0.widget/tsconfig.json b/types/auth0.widget/tsconfig.json index d18a18213bbf986..a8081493efde149 100644 --- a/types/auth0.widget/tsconfig.json +++ b/types/auth0.widget/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "auth0.widget-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/auth0.widget/tslint.json b/types/auth0.widget/tslint.json index 3d59f55fdabcf45..7126f1c314fee3b 100644 --- a/types/auth0.widget/tslint.json +++ b/types/auth0.widget/tslint.json @@ -1,80 +1,15 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, + "npm-naming": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "prefer-method-signature": false } -} +} \ No newline at end of file diff --git a/types/auth0/tslint.json b/types/auth0/tslint.json index 3d59f55fdabcf45..e2aca31c3ec0e2f 100644 --- a/types/auth0/tslint.json +++ b/types/auth0/tslint.json @@ -3,78 +3,23 @@ "rules": { "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/autobahn/tslint.json b/types/autobahn/tslint.json index a0357daa6139b42..65345c75acea453 100644 --- a/types/autobahn/tslint.json +++ b/types/autobahn/tslint.json @@ -1,78 +1,23 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, - "eofline": false, "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, + "no-trailing-whitespace": false, "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "typedef-whitespace": false } -} +} \ No newline at end of file diff --git a/types/autoprefixer-core/tslint.json b/types/autoprefixer-core/tslint.json index 3d59f55fdabcf45..cbdcd03e47de94d 100644 --- a/types/autoprefixer-core/tslint.json +++ b/types/autoprefixer-core/tslint.json @@ -1,80 +1,15 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/autoprefixer/autoprefixer-tests.ts b/types/autoprefixer/autoprefixer-tests.ts index c8581b8da89be14..d730fcb55870d3b 100644 --- a/types/autoprefixer/autoprefixer-tests.ts +++ b/types/autoprefixer/autoprefixer-tests.ts @@ -6,7 +6,6 @@ const ap1: Transformer = autoprefixer(); // Default options const ap2: Transformer = autoprefixer({ - browsers: [], overrideBrowserslist: [], env: 'test', cascade: true, @@ -19,19 +18,21 @@ const ap2: Transformer = autoprefixer({ ignoreUnknownVersions: false, }); +const deprecationTest = autoprefixer({ + browser: 'defaults', + browsers: 'defaults', + browserslist: 'defaults', +}); + +autoprefixer.info(); // $ExpectedType () => void +autoprefixer.data; // $ExpectType { browsers: any; prefixes: any; } +autoprefixer.defaults; // $ExpectedType string + // Using environment map in "overrideBrowserslist" const ap3: Transformer = autoprefixer({ overrideBrowserslist: { - production: [ - '> 1%', - 'ie 10', - ], - modern: [ - 'last 1 chrome version', - 'last 1 firefox version', - ], - ssr: [ - 'node 12', - ], + production: ['> 1%', 'ie 10'], + modern: ['last 1 chrome version', 'last 1 firefox version'], + ssr: ['node 12'], }, }); diff --git a/types/autoprefixer/index.d.ts b/types/autoprefixer/index.d.ts index 95b0d99e9e731c6..c6afd3bc21699ba 100644 --- a/types/autoprefixer/index.d.ts +++ b/types/autoprefixer/index.d.ts @@ -1,8 +1,9 @@ -// Type definitions for autoprefixer 9.6 +// Type definitions for autoprefixer 9.7 // Project: https://github.com/postcss/autoprefixer // Definitions by: Armando Meziat // murt // Slava Fomin II +// Piotr Błażejewicz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.7 @@ -10,23 +11,58 @@ import { Plugin } from 'postcss'; import { Stats } from 'browserslist'; declare namespace autoprefixer { - type BrowserslistTarget = (string | string[] | { [key: string]: string[]; }); + type BrowserslistTarget = string | string[] | { [key: string]: string[] }; interface Options { + /** environment for `Browserslist` */ env?: string; + /** should Autoprefixer use Visual Cascade, if CSS is uncompressed */ cascade?: boolean; + /** should Autoprefixer add prefixes. */ add?: boolean; + /** should Autoprefixer [remove outdated] prefixes */ remove?: boolean; + /** should Autoprefixer add prefixes for @supports parameters. */ supports?: boolean; + /** should Autoprefixer add prefixes for flexbox properties */ flexbox?: boolean | 'no-2009'; + /** should Autoprefixer add IE 10-11 prefixes for Grid Layout properties */ grid?: false | 'autoplace' | 'no-autoplace'; + /** custom usage statistics for > 10% in my stats browsers query */ stats?: Stats; + /** @deprecated 'Change `browser` option to `overrideBrowserslist` in Autoprefixer */ + browser?: string; + /** + * @deprecated Replace Autoprefixer `browsers` option to Browserslist config. + * Use `browserslist` key in `package.json` or `.browserslistrc` file. + */ browsers?: string[] | string; + /** @deprecated Change `browserslist` option to `overrideBrowserslist` in Autoprefixer */ + browserslist?: string[] | string; + /** + * list of queries for target browsers. + * Try to not use it. + * The best practice is to use `.browserslistrc` config or `browserslist` key in `package.json` + * to share target browsers with Babel, ESLint and Stylelint + */ overrideBrowserslist?: BrowserslistTarget; + /** do not raise error on unknown browser version in `Browserslist` config. */ ignoreUnknownVersions?: boolean; } - type Autoprefixer = Plugin; + interface ExportedAPI { + /** Autoprefixer data */ + data: { + browsers: any; + prefixes: any; + }; + /** Autoprefixer default browsers */ + defaults: any; + /** Inspect with default Autoprefixer */ + info(): void; + } + + type Autoprefixer = Plugin & ExportedAPI; } declare const autoprefixer: autoprefixer.Autoprefixer; diff --git a/types/autosuggest-highlight/tslint.json b/types/autosuggest-highlight/tslint.json index 946997cb8733244..90cc21bf98b742e 100644 --- a/types/autosuggest-highlight/tslint.json +++ b/types/autosuggest-highlight/tslint.json @@ -3,4 +3,4 @@ "rules": { "no-useless-files": false } -} +} \ No newline at end of file diff --git a/types/avoscloud-sdk/tsconfig.json b/types/avoscloud-sdk/tsconfig.json index 2d3d9589f4f0868..8fdb94d48f0ef7f 100644 --- a/types/avoscloud-sdk/tsconfig.json +++ b/types/avoscloud-sdk/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "avoscloud-sdk-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/avoscloud-sdk/tslint.json b/types/avoscloud-sdk/tslint.json index 3d59f55fdabcf45..0be8684f787b4c1 100644 --- a/types/avoscloud-sdk/tslint.json +++ b/types/avoscloud-sdk/tslint.json @@ -3,78 +3,32 @@ "rules": { "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, "no-duplicate-variable": false, "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/awesomplete/tslint.json b/types/awesomplete/tslint.json index d9d49e375e0d310..c8ad3a678e8a599 100644 --- a/types/awesomplete/tslint.json +++ b/types/awesomplete/tslint.json @@ -3,4 +3,4 @@ "rules": { "no-any-union": false } -} +} \ No newline at end of file diff --git a/types/aws-iot-device-sdk/tslint.json b/types/aws-iot-device-sdk/tslint.json index 3d59f55fdabcf45..a9f2c483df054d1 100644 --- a/types/aws-iot-device-sdk/tslint.json +++ b/types/aws-iot-device-sdk/tslint.json @@ -1,80 +1,15 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "semicolon": false } -} +} \ No newline at end of file diff --git a/types/aws-lambda/README.md b/types/aws-lambda/README.md new file mode 100644 index 000000000000000..135d7a7a57c36c6 --- /dev/null +++ b/types/aws-lambda/README.md @@ -0,0 +1,189 @@ +Types helpful for implementing handlers in the AWS Lambda NodeJS runtimes, +the handler interface and types for AWS-defined trigger sources. + +Unrelated to the npm package `aws-lambda`, a CLI tool. + +## Contributing + +Follow all the rules for [modifying a type package](../../README.md#edit-an-existing-package), +of course, but as this package has gotten quite large, please +also follow the established conventions to keep things simple +for future contributors: + +### Common types + +The main entry point, [index.d.ts]() simply does `export * from "..."` +for all type declaration files in the package. Make sure if you are +adding any files for new trigger sources that you add the +re-export here; the user should only need to import from `"aws-lambda"`. + +Similarly, [aws-lambda-tests.ts]() has declarations for the common type and tests +for [handler.d.ts](), while the actual service specific tests are all in [test/]() + +The mentioned [handler.d.ts]() contains definitions for `Handler` +and its associated types like `Context` and `Callback`, +which describe the Lambda NodeJS runtime API. + +### Triggers + +Each trigger-specific event structure should have a separate file in [trigger/]() based +on the service name and optionally the trigger type, if it's not a clear "default". + +If multiple triggers for a service share types, the common types +should be in a file in [common/]() named for the containing service. + +For a service `foo` and trigger `bar`, there should ideally be +a file `trigger/foo-bar.d.ts` containing something like: + +```ts +import { Callback, Handler } from "../handler"; + +import { FooCommonType } from "../common/foo"; + +export type FooBarHandler = Handler; +export type FooBarCallback = Callback; +// or, if there is no FooBarResult: +export type FooBarHandler = Handler; + +export interface FooBarEvent { + // ... +} + +export interface FooBarEventSpecificType { + // ... +} + +export interface FooBarResult { + // ... +} + +export interface FooBarResultSpecificType { + // ... +} + +export interface FooBarCommonType { + // ... +} + +// ... +``` + +As implied, all names are exported flat, try to ensure that it's clear what service +or trigger a type is for. (Note that especially the earlier types are not always +consistent with this) + +### Tests + +Each trigger should have a type test that exercises the type roughly as the user +would, in particular reading properties from the event, and creating each +valid result structure in general. When making any change: adding a property, +to a new trigger, also add the change to the tests. + +Tests are grouped by each service in [test/](), and must also be explicitly +added to `tsconfig.json`'s `files` list (use of `include` is banned by +DefinitelyTyped at the moment). + +The test file for a service `foo` with two triggers `bar` and `baz` may look like: + +```ts +import { + FooBarHandler, + FooBarResult, + // ... + } from "aws-lambda"; + +const barHandler: FooBarHandler = async (event, context, callback) => { + // Check event type + // Declarations for e.g. strOrNull, bool are in aws-lambda-tests.ts + strOrNull = event.body; + str = event.headers[str]; + str = event.multiValueHeaders[str][num]; + str = event.httpMethod; + bool = event.isBase64Encoded; + // this property is of a named type, validate that: + let requestContext: FooBarEventRequestContext; + requestContext = event.requestContext; + // for each accessible property declared in FooBarEvent... + + // recurse into each declared type + str = requestContext.accountId; + str = requestContext.apiId; + const authContext: AuthResponseContext | null | undefined = requestContext.authorizer; + numOrUndefined = requestContext.connectedAt; + strOrUndefined = requestContext.connectionId; + // ... + + + // Check result type + let result: FooBarResult; + // check minimally assignable case + result = { + statusCode: num, + body: str, + }; + // check maximally assignable case + result = { + statusCode: num, + headers: { + [str]: str, + [str]: bool, + [str]: num, + }, + multiValueHeaders: { + [str]: [str, bool, num], + }, + isBase64Encoded: true, + body: str, + }; + + // check reasonable result-returning styles + callback(new Error()); + callback(null, result); + return result; +}; + +const bazHandler: FooBazHandler = async (event, context, callback) => { + // ... as above, for each untested type + + // for handlers without a result + callback(); + callback(new Error()); +}; + +... +``` + +Not that currently many tests have not been updated to this style. +As always, PRs welcome, but simply adding your change in the new style +is a start. + +Ideally the existing test should still pass with your new change: if it doesn't that +implies that your change is incompatible with existing user code (if the +test is done correctly) This isn't always the wrong thing to do, but be +prepared to make a decently strong case for why this is an exception. + +## Future ideas + +* Adding JSDocs for types and properties (copied from AWS docs?). Many + triggers have unintuitive formats and requirements. + +* Splitting `import { Context, FooBarHandler, FooCommonType } from "aws-lambda"` into + + * `import { Context } from "@aws-lambda/runtime"` and + * `import { BarHandler, CommonType } from "@aws-lambda/foo"` + + With forwarding from the current package to preserve back-compat. + This would allow not only more fine-grained dependencies, but also + support backward-incompatible changes to triggers as they could be + independently major versioned. + + It's a lot of busywork to do all that renaming though, and ensuring + compatibility is kept. + +* Possibly related to the above, migrating this to, or somehow in support of, + an npm package with runtime support for implementing handlers correctly. + For example, catching and formatting `ClientError` into an API Gateway + 400 error, or parsing CloudWatch log payloads. + + This one is much more fraught, as it by default loses all the existing + DefinitelyTyped tooling and community support (e.g. cross package typing). diff --git a/types/aws-lambda/aws-lambda-tests.ts b/types/aws-lambda/aws-lambda-tests.ts index f1ffa8973d1f95b..d055f28ed70bc5f 100644 --- a/types/aws-lambda/aws-lambda-tests.ts +++ b/types/aws-lambda/aws-lambda-tests.ts @@ -1,3 +1,9 @@ +// Declare a bunch of basic types up front. Since this file has no imports +// or exports, typescript treats these as global declarations that can be +// used in tests/* files. +// Don't add declarations for service-specific types here; i.e. not from +// common/ or trigger/, but handler.d.ts is fine. Those can be in the +// service-specific tests in tests/{service}-tests.ts declare let str: string; declare let strOrNull: string | null; declare let strOrUndefined: string | undefined; @@ -10,533 +16,15 @@ declare let bool: boolean; declare let boolOrUndefined: boolean | undefined; declare let boolOrNumOrStr: boolean | number | string; declare let numOrUndefined: number | undefined; -declare let apiGwEvtReqCtx: AWSLambda.APIGatewayEventRequestContext; -declare let apiGwEvtReqCtxOpt: AWSLambda.APIGatewayEventRequestContext | null | undefined; -declare let apiGwEvt: AWSLambda.APIGatewayEvent; -declare let albEvtReqCtx: AWSLambda.ALBEventRequestContext; -declare let albEvt: AWSLambda.ALBEvent; -declare let albRes: AWSLambda.ALBResult; -declare let customAuthorizerEvt: AWSLambda.CustomAuthorizerEvent; + +// handler.d.ts types +declare let context: AWSLambda.Context; declare let clientCtx: AWSLambda.ClientContext; declare let clientCtxOrUndefined: AWSLambda.ClientContext | undefined; declare let clientContextEnv: AWSLambda.ClientContextEnv; declare let clientContextClient: AWSLambda.ClientContextClient; -declare let context: AWSLambda.Context; declare let identity: AWSLambda.CognitoIdentity; declare let identityOrUndefined: AWSLambda.CognitoIdentity | undefined; -declare let proxyResult: AWSLambda.ProxyResult; -declare let authResponse: AWSLambda.AuthResponse; -declare let policyDocument: AWSLambda.PolicyDocument; -declare let statement: AWSLambda.Statement; -declare let authResponseContext: AWSLambda.AuthResponseContext; -declare let authResponseContextOpt: AWSLambda.AuthResponseContext | null | undefined; -declare let snsEvt: AWSLambda.SNSEvent; -declare let snsEvtRecs: AWSLambda.SNSEventRecord[]; -declare let snsEvtRec: AWSLambda.SNSEventRecord; -declare let snsMsg: AWSLambda.SNSMessage; -declare let snsMsgAttr: AWSLambda.SNSMessageAttribute; -declare let snsMsgAttrs: AWSLambda.SNSMessageAttributes; -const S3EvtRec: AWSLambda.S3EventRecord = { - eventVersion: '2.1', - eventSource: 'aws:s3', - awsRegion: 'us-east-1', - eventTime: '1970-01-01T00:00:00.000Z', - eventName: 'ObjectRestore:Completed', - userIdentity: { - principalId: 'AIDAJDPLRKLG7UEXAMPLE', - }, - requestParameters: { - sourceIPAddress: '127.0.0.1', - }, - responseElements: { - 'x-amz-request-id': 'C3D13FE58DE4C810', - 'x-amz-id-2': 'FMyUVURIY8/IgAtTv8xRjskZQpcIZ9KG4V5Wp6S7S/JRWeUWerMUE5JgHvANOjpD', - }, - s3: { - s3SchemaVersion: '1.0', - configurationId: 'testConfigRule', - bucket: { - name: 'mybucket', - ownerIdentity: { - principalId: 'A3NL1KOZZKExample', - }, - arn: 'arn:aws:s3:::mybucket', - }, - object: { - key: 'HappyFace.jpg', - size: 1024, - eTag: 'd41d8cd98f00b204e9800998ecf8427e', - versionId: '096fKKXTRTtl3on89fVO.nfljtsv6qko', - sequencer: '0055AED6DCD90281E5', - }, - }, - glacierEventData: { - restoreEventData: { - lifecycleRestorationExpiryTime: '1970-01-01T00:00:00.000Z', - lifecycleRestoreStorageClass: 'glacier-deep-archive', - }, - }, -}; - -const S3CreateEvent: AWSLambda.S3CreateEvent = { - Records: [S3EvtRec], -}; - -declare const cognitoUserPoolEvent: AWSLambda.CognitoUserPoolEvent; -declare const cloudformationCustomResourceEvent: AWSLambda.CloudFormationCustomResourceEvent; -declare const cloudformationCustomResourceResponse: AWSLambda.CloudFormationCustomResourceResponse; -declare const cloudwatchLogsEvent: AWSLambda.CloudWatchLogsEvent; -declare const cloudwatchLogsDecodedData: AWSLambda.CloudWatchLogsDecodedData; -declare const scheduledEvent: AWSLambda.ScheduledEvent; - -/* API Gateway Event request context */ -str = apiGwEvtReqCtx.accountId; -str = apiGwEvtReqCtx.apiId; -authResponseContextOpt = apiGwEvtReqCtx.authorizer; -numOrUndefined = apiGwEvtReqCtx.connectedAt; -strOrUndefined = apiGwEvtReqCtx.connectionId; -strOrUndefined = apiGwEvtReqCtx.domainName; -strOrUndefined = apiGwEvtReqCtx.eventType; -strOrUndefined = apiGwEvtReqCtx.extendedRequestId; -str = apiGwEvtReqCtx.httpMethod; -strOrNull = apiGwEvtReqCtx.identity.accessKey; -strOrNull = apiGwEvtReqCtx.identity.accountId; -strOrNull = apiGwEvtReqCtx.identity.apiKey; -strOrNull = apiGwEvtReqCtx.identity.apiKeyId; -strOrNull = apiGwEvtReqCtx.identity.caller; -strOrNull = apiGwEvtReqCtx.identity.cognitoAuthenticationProvider; -strOrNull = apiGwEvtReqCtx.identity.cognitoAuthenticationType; -strOrNull = apiGwEvtReqCtx.identity.cognitoIdentityId; -strOrNull = apiGwEvtReqCtx.identity.cognitoIdentityPoolId; -strOrNull = apiGwEvtReqCtx.identity.principalOrgId; -str = apiGwEvtReqCtx.identity.sourceIp; -strOrNull = apiGwEvtReqCtx.identity.user; -strOrNull = apiGwEvtReqCtx.identity.userAgent; -strOrNull = apiGwEvtReqCtx.identity.userArn; -strOrUndefined = apiGwEvtReqCtx.messageDirection; -strOrUndefinedOrNull = apiGwEvtReqCtx.messageId; -str = apiGwEvtReqCtx.path; -str = apiGwEvtReqCtx.stage; -str = apiGwEvtReqCtx.requestId; -strOrUndefined = apiGwEvtReqCtx.requestTime; -str = apiGwEvtReqCtx.resourceId; -str = apiGwEvtReqCtx.resourcePath; -strOrUndefined = apiGwEvtReqCtx.routeKey; - -/* API Gateway Event */ -strOrNull = apiGwEvt.body; -str = apiGwEvt.headers['example']; -str = apiGwEvt.multiValueHeaders['example'][0]; -str = apiGwEvt.httpMethod; -bool = apiGwEvt.isBase64Encoded; -str = apiGwEvt.path; -str = apiGwEvt.pathParameters!['example']; -str = apiGwEvt.queryStringParameters!['example']; -str = apiGwEvt.multiValueQueryStringParameters!['example'][0]; -str = apiGwEvt.stageVariables!['example']; -apiGwEvtReqCtx = apiGwEvt.requestContext; -str = apiGwEvt.resource; - -/* Application Load Balancer Event Request Context */ -str = albEvtReqCtx.elb.targetGroupArn; - -/* Application Load Balancer Event */ -str = albEvt.httpMethod; -str = albEvt.path; -str = albEvt.queryStringParameters!['example']; -str = albEvt.headers!['example']; -str = albEvt.multiValueQueryStringParameters!['example'][0]; -str = albEvt.multiValueHeaders!['example'][0]; -strOrNull = albEvt.body; -bool = albEvt.isBase64Encoded; - -/* Application Load Balancer Result */ -num = albRes.statusCode; -str = albRes.statusDescription; -boolOrNumOrStr = albRes.headers!['example']; -boolOrNumOrStr = albRes.multiValueHeaders!['example'][0]; -str = albRes.body; -bool = albRes.isBase64Encoded; - -/* API Gateway CustomAuthorizer Event */ -str = customAuthorizerEvt.type; -str = customAuthorizerEvt.methodArn; -strOrUndefined = customAuthorizerEvt.authorizationToken; -strOrUndefined = customAuthorizerEvt.resource; -strOrUndefined = customAuthorizerEvt.path; -strOrUndefined = customAuthorizerEvt.httpMethod; -str = customAuthorizerEvt.headers!['example']; -str = customAuthorizerEvt.multiValueHeaders!['example'][0]; -str = customAuthorizerEvt.pathParameters!['example']; -str = customAuthorizerEvt.queryStringParameters!['example']; -str = customAuthorizerEvt.multiValueQueryStringParameters!['example'][0]; -str = customAuthorizerEvt.stageVariables!['example']; -apiGwEvtReqCtxOpt = customAuthorizerEvt.requestContext; -strOrUndefined = customAuthorizerEvt.domainName; -strOrUndefined = customAuthorizerEvt.apiId; - -/* DynamoDB Stream Event */ -const dynamoDBStreamEvent: AWSLambda.DynamoDBStreamEvent = { - Records: [ - { - eventID: '1', - eventVersion: '1.0', - dynamodb: { - Keys: { - Id: { - N: '101', - }, - }, - NewImage: { - Message: { - S: 'New item!', - }, - Id: { - N: '101', - }, - }, - StreamViewType: 'NEW_AND_OLD_IMAGES', - SequenceNumber: '111', - SizeBytes: 26, - }, - awsRegion: 'us-west-2', - eventName: 'INSERT', - eventSourceARN: - 'arn:aws:dynamodb:us-west-2:account-id:table/ExampleTableWithStream/stream/2015-06-27T00:48:05.899', - eventSource: 'aws:dynamodb', - }, - { - eventID: '2', - eventVersion: '1.0', - dynamodb: { - OldImage: { - Message: { - S: 'New item!', - }, - Id: { - N: '101', - }, - }, - SequenceNumber: '222', - Keys: { - Id: { - N: '101', - }, - }, - SizeBytes: 59, - NewImage: { - Message: { - S: 'This item has changed', - }, - Id: { - N: '101', - }, - }, - StreamViewType: 'NEW_AND_OLD_IMAGES', - }, - awsRegion: 'us-west-2', - eventName: 'MODIFY', - eventSourceARN: - 'arn:aws:dynamodb:us-west-2:account-id:table/ExampleTableWithStream/stream/2015-06-27T00:48:05.899', - eventSource: 'aws:dynamodb', - }, - { - eventID: '3', - eventVersion: '1.0', - dynamodb: { - Keys: { - Id: { - N: '101', - }, - }, - SizeBytes: 38, - SequenceNumber: '333', - OldImage: { - Message: { - S: 'This item has changed', - }, - Id: { - N: '101', - }, - }, - StreamViewType: 'NEW_AND_OLD_IMAGES', - }, - awsRegion: 'us-west-2', - eventName: 'REMOVE', - eventSourceARN: - 'arn:aws:dynamodb:us-west-2:account-id:table/ExampleTableWithStream/stream/2015-06-27T00:48:05.899', - eventSource: 'aws:dynamodb', - }, - ], -}; - -/* SNS Event */ -snsEvtRecs = snsEvt.Records; - -str = snsEvtRec.EventSource; -str = snsEvtRec.EventSubscriptionArn; -str = snsEvtRec.EventVersion; -snsMsg = snsEvtRec.Sns; - -str = snsMsg.SignatureVersion; -str = snsMsg.Timestamp; -str = snsMsg.Signature; -str = snsMsg.SigningCertUrl; -str = snsMsg.MessageId; -str = snsMsg.Message; -snsMsgAttrs = snsMsg.MessageAttributes; -str = snsMsg.Type; -str = snsMsg.UnsubscribeUrl; -str = snsMsg.TopicArn; -str = snsMsg.Subject; - -snsMsgAttrs['example'] = snsMsgAttr; - -str = snsMsgAttr.Type; -str = snsMsgAttr.Value; - -/* Lambda Proxy Result */ -num = proxyResult.statusCode; -proxyResult.headers!['example'] = str; -proxyResult.headers!['example'] = bool; -proxyResult.headers!['example'] = num; -proxyResult.multiValueHeaders!['example'][0] = str; -proxyResult.multiValueHeaders!['example'][0] = bool; -proxyResult.multiValueHeaders!['example'][0] = num; -boolOrUndefined = proxyResult.isBase64Encoded; -str = proxyResult.body; - -/* API Gateway CustomAuthorizer AuthResponse */ -authResponseContext = { - stringKey: str, - numberKey: num, - booleanKey: bool, -}; - -statement = { - Action: str, - Effect: str, - Resource: str, -}; - -// $ExpectError -statement = { Effect: str, Action: str, Principal: 123, }; - -// Bad Resource -// $ExpectError -statement = { Effect: str, Action: str, Resource: 123, }; - -// Bad Resource with valid Principal -// $ExpectError -statement = { Effect: str, Action: str, Principal: { Service: str }, Resource: 123, }; - -// Bad principal with valid Resource -// $ExpectError -statement = { Effect: str, Action: str, Principal: 123, Resource: str, }; - -// No Effect -// $ExpectError -statement = { - Action: str, - Principal: str, -}; - -statement = { - Sid: str, - Action: [str, str], - Effect: str, - Resource: [str, str], - Condition: { - condition1: { key: 'value' }, - condition2: [ - { - key1: 'value', - key2: 'value', - }, - { - key3: 'value', - }, - ], - }, - Principal: [str, str], - NotPrincipal: [str, str], -}; - -statement = { - Action: str, - Principal: str, - Effect: str, -}; - -statement = { - Action: str, - NotPrincipal: { - Service: str, - }, - Effect: str, -}; - -statement = { - Effect: str, - NotAction: str, - NotResource: str, -}; - -policyDocument = { - Version: str, - Statement: [statement], -}; - -policyDocument = { - Version: str, - Statement: [statement, statement], -}; - -authResponse = { - principalId: str, - policyDocument, - context: authResponseContext, -}; - -authResponse = { - principalId: str, - policyDocument, -}; - -// CognitoUserPoolEvent -num = cognitoUserPoolEvent.version; -cognitoUserPoolEvent.triggerSource === 'PreSignUp_SignUp'; -cognitoUserPoolEvent.triggerSource === 'PreSignUp_ExternalProvider'; -cognitoUserPoolEvent.triggerSource === 'PostConfirmation_ConfirmSignUp'; -cognitoUserPoolEvent.triggerSource === 'PreAuthentication_Authentication'; -cognitoUserPoolEvent.triggerSource === 'PostAuthentication_Authentication'; -cognitoUserPoolEvent.triggerSource === 'CustomMessage_SignUp'; -cognitoUserPoolEvent.triggerSource === 'CustomMessage_AdminCreateUser'; -cognitoUserPoolEvent.triggerSource === 'CustomMessage_ResendCode'; -cognitoUserPoolEvent.triggerSource === 'CustomMessage_ForgotPassword'; -cognitoUserPoolEvent.triggerSource === 'CustomMessage_UpdateUserAttribute'; -cognitoUserPoolEvent.triggerSource === 'CustomMessage_VerifyUserAttribute'; -cognitoUserPoolEvent.triggerSource === 'CustomMessage_Authentication'; -cognitoUserPoolEvent.triggerSource === 'DefineAuthChallenge_Authentication'; -cognitoUserPoolEvent.triggerSource === 'CreateAuthChallenge_Authentication'; -cognitoUserPoolEvent.triggerSource === 'VerifyAuthChallengeResponse_Authentication'; -cognitoUserPoolEvent.triggerSource === 'PreSignUp_AdminCreateUser'; -cognitoUserPoolEvent.triggerSource === 'PostConfirmation_ConfirmForgotPassword'; -cognitoUserPoolEvent.triggerSource === 'TokenGeneration_HostedAuth'; -cognitoUserPoolEvent.triggerSource === 'TokenGeneration_Authentication'; -cognitoUserPoolEvent.triggerSource === 'TokenGeneration_NewPasswordChallenge'; -cognitoUserPoolEvent.triggerSource === 'TokenGeneration_AuthenticateDevice'; -cognitoUserPoolEvent.triggerSource === 'TokenGeneration_RefreshTokens'; -cognitoUserPoolEvent.triggerSource === 'UserMigration_Authentication'; -cognitoUserPoolEvent.triggerSource === 'UserMigration_ForgotPassword'; -str = cognitoUserPoolEvent.region; -str = cognitoUserPoolEvent.userPoolId; -strOrUndefined = cognitoUserPoolEvent.userName; -str = cognitoUserPoolEvent.callerContext.awsSdkVersion; -str = cognitoUserPoolEvent.callerContext.clientId; -str = cognitoUserPoolEvent.request.userAttributes['email']; -str = cognitoUserPoolEvent.request.validationData!['k1']; -strOrUndefined = cognitoUserPoolEvent.request.codeParameter; -strOrUndefined = cognitoUserPoolEvent.request.linkParameter; -strOrUndefined = cognitoUserPoolEvent.request.usernameParameter; -boolOrUndefined = cognitoUserPoolEvent.request.newDeviceUsed; -cognitoUserPoolEvent.request.session![0].challengeName === 'CUSTOM_CHALLENGE'; -cognitoUserPoolEvent.request.session![0].challengeName === 'PASSWORD_VERIFIER'; -cognitoUserPoolEvent.request.session![0].challengeName === 'SMS_MFA'; -cognitoUserPoolEvent.request.session![0].challengeName === 'DEVICE_SRP_AUTH'; -cognitoUserPoolEvent.request.session![0].challengeName === 'DEVICE_PASSWORD_VERIFIER'; -cognitoUserPoolEvent.request.session![0].challengeName === 'ADMIN_NO_SRP_AUTH'; -bool = cognitoUserPoolEvent.request.session![0].challengeResult; -strOrUndefined = cognitoUserPoolEvent.request.session![0].challengeMetadata; -strOrUndefined = cognitoUserPoolEvent.request.challengeName; -str = cognitoUserPoolEvent.request.privateChallengeParameters!['answer']; -str = cognitoUserPoolEvent.request.challengeAnswer!; -strOrUndefined = cognitoUserPoolEvent.request.password; -boolOrUndefined = cognitoUserPoolEvent.response.answerCorrect; -strOrUndefined = cognitoUserPoolEvent.response.smsMessage; -strOrUndefined = cognitoUserPoolEvent.response.emailMessage; -strOrUndefined = cognitoUserPoolEvent.response.emailSubject; -strOrUndefined = cognitoUserPoolEvent.response.challengeName; -boolOrUndefined = cognitoUserPoolEvent.response.issueTokens; -boolOrUndefined = cognitoUserPoolEvent.response.failAuthentication; -str = cognitoUserPoolEvent.response.publicChallengeParameters!['captchaUrl']; -str = cognitoUserPoolEvent.response.privateChallengeParameters!['answer']; -strOrUndefined = cognitoUserPoolEvent.response.challengeMetadata; -boolOrUndefined = cognitoUserPoolEvent.response.answerCorrect; -str = cognitoUserPoolEvent.response.userAttributes!['username']; -cognitoUserPoolEvent.response.finalUserStatus === 'CONFIRMED'; -cognitoUserPoolEvent.response.finalUserStatus === 'RESET_REQUIRED'; -cognitoUserPoolEvent.response.messageAction === 'SUPPRESS'; -cognitoUserPoolEvent.response.desiredDeliveryMediums === ['EMAIL']; -cognitoUserPoolEvent.response.desiredDeliveryMediums === ['SMS']; -cognitoUserPoolEvent.response.desiredDeliveryMediums === ['SMS', 'EMAIL']; -boolOrUndefined = cognitoUserPoolEvent.response.forceAliasCreation; -// From AWS examples -cognitoUserPoolEvent.response = { - claimsOverrideDetails: { - claimsToAddOrOverride: { - attribute_key2: 'attribute_value2', - attribute_key: 'attribute_value', - }, - claimsToSuppress: ['email'], - }, -}; -cognitoUserPoolEvent.response = { - claimsOverrideDetails: { - claimsToAddOrOverride: { - attribute_key2: 'attribute_value2', - attribute_key: 'attribute_value', - }, - claimsToSuppress: ['email'], - groupOverrideDetails: { - groupsToOverride: ['group-A', 'group-B', 'group-C'], - iamRolesToOverride: [ - 'arn:aws:iam::XXXXXXXXXXXX:role/sns_callerA', - 'arn:aws:iam::XXXXXXXXX:role/sns_callerB', - 'arn:aws:iam::XXXXXXXXXX:role/sns_callerC', - ], - preferredRole: 'arn:aws:iam::XXXXXXXXXXX:role/sns_caller', - }, - }, -}; -cognitoUserPoolEvent.response.claimsOverrideDetails!.groupOverrideDetails = null; - -// CloudFormation Custom Resource -switch (cloudformationCustomResourceEvent.RequestType) { - case 'Create': - str = cloudformationCustomResourceEvent.LogicalResourceId; - str = cloudformationCustomResourceEvent.RequestId; - anyObj = cloudformationCustomResourceEvent.ResourceProperties; - str = cloudformationCustomResourceEvent.ResourceProperties.ServiceToken; - str = cloudformationCustomResourceEvent.ResourceType; - str = cloudformationCustomResourceEvent.ResponseURL; - str = cloudformationCustomResourceEvent.ServiceToken; - str = cloudformationCustomResourceEvent.StackId; - break; - case 'Update': - anyObj = cloudformationCustomResourceEvent.OldResourceProperties; - break; - case 'Delete': - str = cloudformationCustomResourceEvent.PhysicalResourceId; - break; -} -anyObj = cloudformationCustomResourceResponse.Data; -str = cloudformationCustomResourceResponse.LogicalResourceId; -str = cloudformationCustomResourceResponse.PhysicalResourceId; -strOrUndefined = cloudformationCustomResourceResponse.Reason; -str = cloudformationCustomResourceResponse.RequestId; -str = cloudformationCustomResourceResponse.StackId; -str = cloudformationCustomResourceResponse.Status; -boolOrUndefined = cloudformationCustomResourceResponse.NoEcho; - -/* ScheduledEvent */ -str = scheduledEvent.account; -anyObj = scheduledEvent.detail; -str = scheduledEvent.id; -str = scheduledEvent.region; -str = scheduledEvent.resources[0]; -str = scheduledEvent.source; -str = scheduledEvent.time; /* Context */ bool = context.callbackWaitsForEmptyEventLoop; @@ -550,23 +38,9 @@ str = context.logStreamName; identityOrUndefined = context.identity; clientCtxOrUndefined = context.clientContext; -/* CognitoIdentity */ str = identity.cognitoIdentityId; str = identity.cognitoIdentityPoolId; -/* CloudWatch Logs */ -str = cloudwatchLogsEvent.awslogs.data; - -str = cloudwatchLogsDecodedData.owner; -str = cloudwatchLogsDecodedData.logGroup; -str = cloudwatchLogsDecodedData.logStream; -str = cloudwatchLogsDecodedData.subscriptionFilters[0]; -str = cloudwatchLogsDecodedData.messageType; -str = cloudwatchLogsDecodedData.logEvents[0].id; -num = cloudwatchLogsDecodedData.logEvents[0].timestamp; -str = cloudwatchLogsDecodedData.logEvents[0].message; -str = cloudwatchLogsDecodedData.logEvents[0].extractedFields!['example']; - /* ClientContext */ clientContextClient = clientCtx.client; anyObj = clientCtx.Custom; @@ -586,304 +60,35 @@ str = clientContextClient.appVersionCode; str = clientContextClient.appVersionName; str = clientContextClient.installationId; -/* Callback */ -function callback(cb: AWSLambda.Callback) { - cb(); - cb(null); - cb(error); - cb(str); // https://docs.aws.amazon.com/apigateway/latest/developerguide/handle-errors-in-lambda-integration.html - cb(null, anyObj); - cb(null, bool); - cb(null, str); - cb(null, num); -} - -/* Proxy Callback */ -function proxyCallback(cb: AWSLambda.ProxyCallback) { - cb(); - cb(null); - cb(error); - cb(null, proxyResult); -} - -/* CustomAuthorizerCallback */ -function customAuthorizerCallback(cb: AWSLambda.CustomAuthorizerCallback) { - cb(); - cb(null); - cb(error); - cb(null, authResponse); -} - -/* CodePipeline events https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-invoke-lambda-function.html#actions-invoke-lambda-function-json-event-example */ -const CodePipelineEvent: AWSLambda.CodePipelineEvent = { - 'CodePipeline.job': { - id: '11111111-abcd-1111-abcd-111111abcdef', - accountId: '111111111111', - data: { - actionConfiguration: { - configuration: { - FunctionName: 'MyLambdaFunctionForAWSCodePipeline', - UserParameters: 'some-input-such-as-a-URL', - }, - }, - inputArtifacts: [ - { - location: { - s3Location: { - bucketName: - 'the name of the bucket configured as the pipeline artifact store in Amazon S3, for example codepipeline-us-east-2-1234567890', - objectKey: 'the name of the application, for example CodePipelineDemoApplication.zip', - }, - type: 'S3', - }, - revision: null, - name: 'ArtifactName', - }, - ], - outputArtifacts: [], - artifactCredentials: { - secretAccessKey: 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY', - sessionToken: `MIICiTCCAfICCQD6m7oRw0uXOjANBgkqhkiG9w - 0BAQUFADCBiDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdTZ - WF0dGxlMQ8wDQYDVQQKEwZBbWF6b24xFDASBgNVBAsTC0lBTSBDb25zb2xlMRIw - EAYDVQQDEwlUZXN0Q2lsYWMxHzAdBgkqhkiG9w0BCQEWEG5vb25lQGFtYXpvbi5 - jb20wHhcNMTEwNDI1MjA0NTIxWhcNMTIwNDI0MjA0NTIxWjCBiDELMAkGA1UEBh - MCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdTZWF0dGxlMQ8wDQYDVQQKEwZBb - WF6b24xFDASBgNVBAsTC0lBTSBDb25zb2xlMRIwEAYDVQQDEwlUZXN0Q2lsYWMx - HzAdBgkqhkiG9w0BCQEWEG5vb25lQGFtYXpvbi5jb20wgZ8wDQYJKoZIhvcNAQE - BBQADgY0AMIGJAoGBAMaK0dn+a4GmWIWJ21uUSfwfEvySWtC2XADZ4nB+BLYgVI - k60CpiwsZ3G93vUEIO3IyNoH/f0wYK8m9TrDHudUZg3qX4waLG5M43q7Wgc/MbQ - ITxOUSQv7c7ugFFDzQGBzZswY6786m86gpEIbb3OhjZnzcvQAaRHhdlQWIMm2nr - AgMBAAEwDQYJKoZIhvcNAQEFBQADgYEAtCu4nUhVVxYUntneD9+h8Mg9q6q+auN - KyExzyLwaxlAoo7TJHidbtS4J5iNmZgXL0FkbFFBjvSfpJIlJ00zbhNYS5f6Guo - EDmFJl0ZxBHjJnyp378OD8uTs7fLvjx79LjSTbNYiytVbZPQUQ5Yaxu2jXnimvw - 3rrszlaEXAMPLE=`, - accessKeyId: 'AKIAIOSFODNN7EXAMPLE', - }, - continuationToken: 'A continuation token if continuing job', - }, - }, -}; - -CodePipelineEvent['CodePipeline.job'].data.encryptionKey = { type: 'KMS', id: 'key' }; - -/* CodePipeline CloudWatch Events - * see https://docs.aws.amazon.com/codepipeline/latest/userguide/detect-state-changes-cloudwatch-events.html - * Their documentation says that detail.version is a string, but it is actually an integer - */ -const CodePipelineCloudWatchEvent: AWSLambda.CodePipelineCloudWatchEvent = { - version: '0', - id: 'event_Id', - 'detail-type': 'CodePipeline Pipeline Execution State Change', - source: 'aws.codepipeline', - account: 'Pipeline_Account', - time: 'TimeStamp', - region: 'us-east-1', - resources: ['arn:aws:codepipeline:us-east-1:account_ID:myPipeline'], - detail: { - pipeline: 'myPipeline', - version: 1, - state: 'STARTED', - 'execution-id': 'execution_Id', - }, -}; - -/* CloudFront events, see http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html */ -const CloudFrontRequestWithCustomOriginEvent: AWSLambda.CloudFrontRequestEvent = { - Records: [ - { - cf: { - config: { - distributionDomainName: 'd123.cloudfront.net', - distributionId: 'EDFDVBD6EXAMPLE', - eventType: 'viewer-request', - requestId: 'MRVMF7KydIvxMWfJIglgwHQwZsbG2IhRJ07sn9AkKUFSHS9EXAMPLE==', - }, - request: { - body: { - action: 'read-only', - data: 'eyJ1c2VybmFtZSI6IkxhbWJkYUBFZGdlIiwiY29tbWVudCI6IlRoaXMgaXMgcmVxdWVzdCBib2R5In0=', - encoding: 'base64', - inputTruncated: false, - }, - clientIp: '2001:0db8:85a3:0:0:8a2e:0370:7334', - querystring: 'size=large', - uri: '/picture.jpg', - method: 'GET', - headers: { - host: [ - { - key: 'Host', - value: 'd111111abcdef8.cloudfront.net', - }, - ], - 'user-agent': [ - { - key: 'User-Agent', - value: 'curl/7.51.0', - }, - ], - }, - origin: { - custom: { - customHeaders: { - 'my-origin-custom-header': [ - { - key: 'My-Origin-Custom-Header', - value: 'Test', - }, - ], - }, - domainName: 'example.com', - keepaliveTimeout: 5, - path: '/custom_path', - port: 443, - protocol: 'https', - readTimeout: 5, - sslProtocols: ['TLSv1', 'TLSv1.1'], - }, - }, - }, - }, - }, - ], -}; - -const CloudFrontRequestWithS3OriginEvent: AWSLambda.CloudFrontRequestEvent = { - Records: [ - { - cf: { - config: { - distributionDomainName: 'd123.cloudfront.net', - distributionId: 'EDFDVBD6EXAMPLE', - eventType: 'viewer-request', - requestId: 'MRVMF7KydIvxMWfJIglgwHQwZsbG2IhRJ07sn9AkKUFSHS9EXAMPLE==', - }, - request: { - body: { - action: 'read-only', - data: 'eyJ1c2VybmFtZSI6IkxhbWJkYUBFZGdlIiwiY29tbWVudCI6IlRoaXMgaXMgcmVxdWVzdCBib2R5In0=', - encoding: 'base64', - inputTruncated: false, - }, - clientIp: '2001:0db8:85a3:0:0:8a2e:0370:7334', - querystring: 'size=large', - uri: '/picture.jpg', - method: 'GET', - headers: { - host: [ - { - key: 'Host', - value: 'd111111abcdef8.cloudfront.net', - }, - ], - 'user-agent': [ - { - key: 'User-Agent', - value: 'curl/7.51.0', - }, - ], - }, - origin: { - s3: { - authMethod: 'origin-access-identity', - customHeaders: { - 'my-origin-custom-header': [ - { - key: 'My-Origin-Custom-Header', - value: 'Test', - }, - ], - }, - domainName: 'my-bucket.s3.amazonaws.com', - path: '/s3_path', - region: 'us-east-1', - }, - }, - }, - }, - }, - ], -}; - -const CloudFrontResponseEvent: AWSLambda.CloudFrontResponseEvent = { - Records: [ - { - cf: { - config: { - distributionDomainName: 'd123.cloudfront.net', - distributionId: 'EDFDVBD6EXAMPLE', - eventType: 'viewer-response', - requestId: 'xGN7KWpVEmB9Dp7ctcVFQC4E-nrcOcEKS3QyAez--06dV7TEXAMPLE==', - }, - request: { - clientIp: '2001:0db8:85a3:0:0:8a2e:0370:7334', - method: 'GET', - uri: '/picture.jpg', - querystring: 'size=large', - headers: { - host: [ - { - key: 'Host', - value: 'd111111abcdef8.cloudfront.net', - }, - ], - 'user-agent': [ - { - key: 'User-Agent', - value: 'curl/7.18.1', - }, - ], - }, - }, - response: { - status: '200', - statusDescription: 'OK', - headers: { - server: [ - { - key: 'Server', - value: 'MyCustomOrigin', - }, - ], - 'set-cookie': [ - { - key: 'Set-Cookie', - value: 'theme=light', - }, - { - key: 'Set-Cookie', - value: 'sessionToken=abc123; Expires=Wed, 09 Jun 2021 10:18:14 GMT', - }, - ], - }, - }, - }, - }, - ], -}; - -/* Kinesis Data Stream Events */ -declare let kinesisStreamEvent: AWSLambda.KinesisStreamEvent; -declare let kinesisStreamRecord: AWSLambda.KinesisStreamRecord; -declare let kinesisStreamRecordPayload: AWSLambda.KinesisStreamRecordPayload; - -kinesisStreamRecord = kinesisStreamEvent.Records[0]; - -str = kinesisStreamRecord.awsRegion; -str = kinesisStreamRecord.eventID; -str = kinesisStreamRecord.eventName; -str = kinesisStreamRecord.eventSource; -str = kinesisStreamRecord.eventSourceARN; -str = kinesisStreamRecord.eventVersion; -str = kinesisStreamRecord.invokeIdentityArn; -kinesisStreamRecordPayload = kinesisStreamRecord.kinesis; - -num = kinesisStreamRecordPayload.approximateArrivalTimestamp; -str = kinesisStreamRecordPayload.data; -str = kinesisStreamRecordPayload.kinesisSchemaVersion; -str = kinesisStreamRecordPayload.partitionKey; -str = kinesisStreamRecordPayload.sequenceNumber; +declare const untypedCallback: AWSLambda.Callback; +untypedCallback(); +untypedCallback(undefined); +untypedCallback(null); +untypedCallback(error); +untypedCallback(str); // https://docs.aws.amazon.com/apigateway/latest/developerguide/handle-errors-in-lambda-integration.html +untypedCallback(null, anyObj); +untypedCallback(undefined, bool); +untypedCallback(null, bool); +untypedCallback(null, str); +untypedCallback(null, num); +untypedCallback(null, { foo: 123 }); +untypedCallback(null, { bar: 123 }); +// $ExpectError +untypedCallback(null, anyObj, anyObj); + +interface TestResult { foo: number; } +declare const typedCallback: AWSLambda.Callback; +typedCallback(); +typedCallback(undefined); +typedCallback(null); +typedCallback(error); +typedCallback(str); // https://docs.aws.amazon.com/apigateway/latest/developerguide/handle-errors-in-lambda-integration.html +typedCallback(null, anyObj); +typedCallback(null, { foo: 123 }); +// $ExpectError +typedCallback(null, str); +// $ExpectError +typedCallback(null, { bar: 123 }); /* Compatibility functions */ context.done(); @@ -895,231 +100,6 @@ context.succeed(str, anyObj); context.fail(error); context.fail(str); -/* Handler */ -const handler: AWSLambda.Handler = (event: any, context: AWSLambda.Context, cb: AWSLambda.Callback) => {}; - -/* In node8.10 runtime, handlers may return a promise for the result value, so existing async - * handlers that return Promise before calling the callback will now have a `null` result. - * Be safe and make that badly typed with a major verson bump to 8.10 so users expect the breaking change, - * since the upgrade effort should be pretty low in most cases, and it points them at a nicer solution. - */ -// $ExpectError -const legacyAsyncHandler: AWSLambda.APIGatewayProxyHandler = async ( - event: AWSLambda.APIGatewayProxyEvent, - context: AWSLambda.Context, - cb: AWSLambda.Callback, -) => { - cb(null, { statusCode: 200, body: 'No longer valid' }); -}; - -const node8AsyncHandler: AWSLambda.APIGatewayProxyHandler = async ( - event: AWSLambda.APIGatewayProxyEvent, - context: AWSLambda.Context, - cb: AWSLambda.Callback, -) => { - return { statusCode: 200, body: 'Is now valid!' }; -}; - -const inferredHandler: AWSLambda.S3Handler = (event, context, cb) => { - // $ExpectType S3Event - event; - str = event.Records[0].eventName; - // $ExpectType Context - context; - str = context.functionName; - // $ExpectType Callback - cb; - cb(); - cb(null); - cb(new Error()); - // $ExpectError - cb(null, {}); -}; - -// Test using default Callback type still works. -const defaultCallbackHandler: AWSLambda.APIGatewayProxyHandler = ( - event: AWSLambda.APIGatewayEvent, - context: AWSLambda.Context, - cb: AWSLambda.Callback, -) => {}; - -const albSyncHandler: AWSLambda.ALBHandler = ( - event: AWSLambda.ALBEvent, - context: AWSLambda.Context, - cb: AWSLambda.ALBCallback, -) => { - cb(null, { - statusCode: 200, - statusDescription: '200 OK', - headers: {}, - body: '', - isBase64Encoded: false, - }); -}; -const albAsyncHandler: AWSLambda.ALBHandler = async ( - event: AWSLambda.ALBEvent, - context: AWSLambda.Context, - cb: AWSLambda.ALBCallback, -) => { - return { - statusCode: 200, - statusDescription: '200 OK', - headers: {}, - body: '', - isBase64Encoded: false, - }; -}; - -// Specific types -let s3Handler: AWSLambda.S3Handler = ( - event: AWSLambda.S3Event, - context: AWSLambda.Context, - cb: AWSLambda.Callback, -) => {}; -// Test old name -const s3CreateHandler: AWSLambda.S3Handler = ( - event: AWSLambda.S3CreateEvent, - context: AWSLambda.Context, - cb: AWSLambda.Callback, -) => {}; -s3Handler = s3CreateHandler; - -const dynamoDBStreamHandler: AWSLambda.DynamoDBStreamHandler = ( - event: AWSLambda.DynamoDBStreamEvent, - context: AWSLambda.Context, - cb: AWSLambda.Callback, -) => {}; - -const snsHandler: AWSLambda.SNSHandler = ( - event: AWSLambda.SNSEvent, - context: AWSLambda.Context, - cb: AWSLambda.Callback, -) => {}; - -const cognitoUserPoolHandler: AWSLambda.CognitoUserPoolTriggerHandler = ( - event: AWSLambda.CognitoUserPoolEvent, - context: AWSLambda.Context, - cb: AWSLambda.Callback, -) => {}; - -const cloudFormationCustomResourceHandler: AWSLambda.CloudFormationCustomResourceHandler = ( - event: AWSLambda.CloudFormationCustomResourceEvent, - context: AWSLambda.Context, - cb: AWSLambda.Callback, -) => {}; - -const cloudWatchLogsHandler: AWSLambda.CloudWatchLogsHandler = ( - event: AWSLambda.CloudWatchLogsEvent, - context: AWSLambda.Context, - cb: AWSLambda.Callback, -) => {}; - -const scheduledHandler: AWSLambda.ScheduledHandler = ( - event: AWSLambda.ScheduledEvent, - context: AWSLambda.Context, - cb: AWSLambda.Callback, -) => {}; - -let apiGtwProxyHandler: AWSLambda.APIGatewayProxyHandler = ( - event: AWSLambda.APIGatewayProxyEvent, - context: AWSLambda.Context, - cb: AWSLambda.APIGatewayProxyCallback, -) => {}; -// Test old names -const proxyHandler: AWSLambda.ProxyHandler = ( - event: AWSLambda.APIGatewayEvent, - context: AWSLambda.Context, - cb: AWSLambda.ProxyCallback, -) => {}; -apiGtwProxyHandler = proxyHandler; - -const codePipelineHandler: AWSLambda.CodePipelineHandler = ( - event: AWSLambda.CodePipelineEvent, - context: AWSLambda.Context, - cb: AWSLambda.Callback, -) => {}; - -const cloudFrontRequestHandler: AWSLambda.CloudFrontRequestHandler = ( - event: AWSLambda.CloudFrontRequestEvent, - context: AWSLambda.Context, - cb: AWSLambda.CloudFrontRequestCallback, -) => { - event = CloudFrontRequestWithCustomOriginEvent; - // $ExpectType CloudFrontRequestEvent - event; - let request = event.Records[0].cf.request; - - let s3Origin: AWSLambda.CloudFrontS3Origin = { - authMethod: 'none', - customHeaders: {}, - domainName: 'example.com', - path: '/', - region: 'us-east-1', - }; - - if (request.origin && request.origin.custom) { - request.origin.custom.domainName; - request.origin.custom.domainName = 'example2.com'; - - // $ExpectError - s3Origin = request.origin.s3; - - // $ExpectError - request.origin.s3.path = '/'; - } - - let customOrigin: AWSLambda.CloudFrontCustomOrigin = { - customHeaders: {}, - domainName: 'example.com', - keepaliveTimeout: 60, - path: '/', - port: 80, - protocol: 'http', - readTimeout: 30, - sslProtocols: [], - }; - - event = CloudFrontRequestWithS3OriginEvent; - // $ExpectType CloudFrontRequestEvent - event; - request = event.Records[0].cf.request; - if (request.origin && request.origin.s3) { - request.origin.s3.path; - request.origin.s3.path = '/new_path'; - - // $ExpectError - customOrigin = request.origin.custom; - - // $ExpectError - request.origin.custom.path = '/'; - } - - cb(); - cb(null); - cb(new Error('')); - cb(null, { clientIp: str, method: str, uri: str, querystring: str, headers: {} }); - cb(null, { status: str }); - // $ExpectError - cb(null, {}); -}; - -const cloudFrontResponseHandler: AWSLambda.CloudFrontResponseHandler = ( - event: AWSLambda.CloudFrontResponseEvent, - context: AWSLambda.Context, - cb: AWSLambda.CloudFrontResponseCallback, -) => {}; - -const cloudFrontHeaders: AWSLambda.CloudFrontHeaders = { - 'content-type': [{ value: 'text/plain' }], - 'x-foo-bar': [{ key: 'X-Foo-Bar', value: 'example' }], -}; - -const customAuthorizerHandler: AWSLambda.CustomAuthorizerHandler = ( - event: AWSLambda.CustomAuthorizerEvent, - context: AWSLambda.Context, - cb: AWSLambda.CustomAuthorizerCallback, -) => {}; - interface CustomEvent { eventString: string; eventBool: boolean; @@ -1128,281 +108,89 @@ interface CustomResult { resultString: string; resultBool?: boolean; } +type CustomHandler = AWSLambda.Handler; type CustomCallback = AWSLambda.Callback; -const customHandler: AWSLambda.Handler = (event, context, cb) => { - // $ExpectType CustomEvent + +// Untyped handlers should work +const untypedAsyncHandler: AWSLambda.Handler = async (event, context, cb) => { + // $ExpectType any event; - str = event.eventString; - bool = event.eventBool; // $ExpectType Context context; - // $ExpectType Callback + // $ExpectType Callback cb; - cb(null, { resultString: str, resultBool: bool }); - // $ExpectError - cb(null, { resultString: bool }); -}; - -const kinesisStreamHandler: AWSLambda.KinesisStreamHandler = ( - event: AWSLambda.KinesisStreamEvent, - context: AWSLambda.Context, - cb: AWSLambda.Callback, -) => {}; - -const SQSMessageHandler: AWSLambda.SQSHandler = ( - event: AWSLambda.SQSEvent, - context: AWSLambda.Context, - cb: AWSLambda.Callback, -) => {}; - -// See https://docs.aws.amazon.com/lambda/latest/dg/eventsources.html#eventsources-sqs -const SQSEvent: AWSLambda.SQSEvent = { - Records: [ - { - messageId: 'c80e8021-a70a-42c7-a470-796e1186f753', - receiptHandle: 'AQEBJQ+/u6NsnT5t8Q/VbVxgdUl4TMKZ5FqhksRdIQvLBhwNvADoBxYSOVeCBXdnS9P+', - body: '{"foo":"bar"}', - attributes: { - ApproximateReceiveCount: '3', - SentTimestamp: '1529104986221', - SenderId: '594035263019', - ApproximateFirstReceiveTimestamp: '1529104986230', - }, - messageAttributes: { - testAttr: { - stringValue: '100', - binaryValue: 'base64Str', - stringListValues: [], - binaryListValues: [], - dataType: 'Number', - }, - }, - md5OfBody: '9bb58f26192e4ba00f01e2e7b136bbd8', - eventSource: 'aws:sqs', - eventSourceARN: 'arn:aws:sqs:us-west-2:594035263019:NOTFIFOQUEUE', - awsRegion: 'us-west-2', - }, - ], + // Can still use callback + cb(null, { resultString: str }); + if (bool) { + // Uncaught error + return { resultString: bool }; + } + return { resultString: str }; }; -const SQSMessageLegacyAsyncHandler: AWSLambda.SQSHandler = async ( - event: AWSLambda.SQSEvent, - context: AWSLambda.Context, - cb: AWSLambda.Callback, -) => { - // $ExpectType SQSEvent +const untypedCallbackHandler: AWSLambda.Handler = (event, context, cb) => { + // $ExpectType any event; - str = event.Records[0].messageId; - anyObj = event.Records[0].body; // $ExpectType Context context; - str = context.functionName; - // $ExpectType Callback + // $ExpectType Callback cb; - cb(); - cb(null); - cb(new Error()); + cb(null, { resultString: str }); + // Uncaught error + cb(null, { resultString: bool }); }; -const SQSMessageNode8AsyncHandler: AWSLambda.SQSHandler = async ( - event: AWSLambda.SQSEvent, - context: AWSLambda.Context, -) => { - // $ExpectType SQSEvent - event; - str = event.Records[0].messageId; - anyObj = event.Records[0].body; - strOrUndefined = event.Records[0].messageAttributes.testAttr.stringValue; - strOrUndefined = event.Records[0].messageAttributes.testAttr.binaryValue; - str = event.Records[0].messageAttributes.testAttr.dataType; +/* In node8.10 runtime, handlers may return a promise for the result value, so existing async + * handlers that return Promise before calling the callback will now have a `null` result. + * Be safe and make that badly typed with a major verson bump to 8.10 so users expect the breaking change, + * since the upgrade effort should be pretty low in most cases, and it points them at a nicer solution. + */ - // $ExpectType Context - context; - str = context.functionName; - return; +// Test we get error for unsafe old style +// $ExpectError +const unsafeAsyncHandler: CustomHandler = async (event, context, cb) => { + cb(null, { resultString: 'No longer valid' }); }; -const firehoseEventHandler: AWSLambda.FirehoseTransformationHandler = ( - event: AWSLambda.FirehoseTransformationEvent, - context: AWSLambda.Context, - callback: AWSLambda.FirehoseTransformationCallback, -) => { - // $ExpectType FirehoseTransformationEvent +// Test safe old style still works +const typedCallbackHandler: CustomHandler = (event, context, cb) => { + // $ExpectType CustomEvent event; - str = event.records[0].recordId; - + str = event.eventString; // $ExpectType Context context; str = context.functionName; - callback(null, { - records: [ - { - recordId: event.records[0].recordId, - result: 'Ok' as AWSLambda.FirehoseRecordTransformationStatus, - data: 'eyJmb28iOiJiYXIifQ==', - }, - ], - }); -}; - -declare let lexEvent: AWSLambda.LexEvent; -lexEvent = { - currentIntent: { - name: 'intent-name', - slots: { - slot1: null, - slot2: 'value2', - }, - slotDetails: { - slot1: { - resolutions: [{ value: 'value1' }], - originalValue: 'originalValue', - }, - }, - confirmationStatus: 'None', - }, - bot: { - name: 'bot name', - alias: 'bot alias', - version: 'bot version', - }, - userId: 'User ID specified in the POST request to Amazon Lex.', - inputTranscript: 'Text used to process the request', - invocationSource: 'FulfillmentCodeHook', - outputDialogMode: 'Text', - messageVersion: '1.0', - sessionAttributes: { - key1: 'value1', - key2: 'value2', - }, - requestAttributes: { - key1: 'value1', - key2: 'value2', - }, -}; - -declare let lexResult: AWSLambda.LexResult; -declare let lexDialogAction: AWSLambda.LexDialogAction; -declare let lexDialogActionBase: AWSLambda.LexDialogActionBase; -declare let lexDialogActionClose: AWSLambda.LexDialogActionClose; -declare let lexDialogActionConfirmIntent: AWSLambda.LexDialogActionConfirmIntent; -declare let lexDialogActionDelegate: AWSLambda.LexDialogActionDelegate; -declare let lexDialogActionElicitIntent: AWSLambda.LexDialogActionElicitIntent; -declare let lexDialogActionElicitSlot: AWSLambda.LexDialogActionElicitSlot; -declare let lexGenericAttachment: AWSLambda.LexGenericAttachment; - -lexResult = { - sessionAttributes: { - attrib1: 'Value One', - }, - dialogAction: { - type: 'Close', - fulfillmentState: 'Failed', - }, + // $ExpectType Callback + cb; + cb(); + cb(null); + cb(new Error()); + // $ExpectError + cb(null, {}); + cb(null, { resultString: str }); + // $ExpectError + cb(null, { resultString: bool }); }; -str = lexGenericAttachment.title; -str = lexGenericAttachment.subTitle; -str = lexGenericAttachment.imageUrl; -str = lexGenericAttachment.attachmentLinkUrl; -str = lexGenericAttachment.buttons[0].text; -str = lexGenericAttachment.buttons[0].value; - -lexDialogAction.type === 'Close'; -lexDialogAction.type === 'ConfirmIntent'; -lexDialogAction.type === 'Delegate'; -lexDialogAction.type === 'ElicitIntent'; -lexDialogAction.type === 'ElicitSlot'; - -lexDialogActionBase.message!.contentType === 'CustomPayload'; -lexDialogActionBase.message!.contentType === 'PlainText'; -lexDialogActionBase.message!.contentType === 'SSML'; -str = lexDialogActionBase.message!.content; -num = lexDialogActionBase.responseCard!.version; -lexDialogActionBase.responseCard!.contentType === 'application/vnd.amazonaws.card.generic'; -// $ExpectType LexGenericAttachment -lexDialogActionBase.responseCard!.genericAttachments[0]; - -lexDialogActionClose.type === 'Close'; -lexDialogActionClose.fulfillmentState === 'Failed'; -lexDialogActionClose.fulfillmentState === 'Fulfilled'; - -lexDialogActionConfirmIntent.type === 'ConfirmIntent'; -str = lexDialogActionConfirmIntent.intentName; -strOrNull = lexDialogActionConfirmIntent.slots['example']; - -lexDialogActionDelegate.type === 'Delegate'; -strOrNull = lexDialogActionDelegate.slots['example']; - -lexDialogActionElicitIntent.type === 'ElicitIntent'; -lexDialogActionElicitSlot.type === 'ElicitSlot'; -strOrNull = lexDialogActionElicitSlot.slots['example']; -str = lexDialogActionElicitSlot.slotToElicit; -str = lexDialogActionElicitSlot.intentName; - -const lexEventHandler: AWSLambda.LexHandler = async (event: AWSLambda.LexEvent, context: AWSLambda.Context) => { - // $ExpectType LexEvent +// Test preferred new type +const typedAsyncHandler: CustomHandler = async (event, context, cb) => { + // $ExpectType CustomEvent event; - // $ExpectType Context context; - str = context.functionName; - return lexResult; -}; - -/** - * S3 Batch Operations event - * https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-invoke-lambda.html - */ -const S3BatchEvent: AWSLambda.S3BatchEvent = { - invocationSchemaVersion: '1.0', - invocationId: 'foo_invocation_id', - job: { id: 'foo_job_id' }, - tasks: [ - { - taskId: '11111', - s3Key: 'example.json', - s3BucketArn: 'arn:aws:s3:::foo-bucket', - s3VersionId: null, - }, - { - taskId: '11111', - s3Key: 'example.json', - s3BucketArn: 'arn:aws:s3:::foo-bucket', - s3VersionId: 'asdf', - }, - ], -}; - -const S3BatchResult: AWSLambda.S3BatchResult = { - invocationSchemaVersion: '1.0', - treatMissingKeysAs: 'PermanentFailure', - invocationId: 'foo_invocation_id', - results: [ - { - taskId: '11111', - resultCode: 'Succeeded', - resultString: 'foo', - }, - { - taskId: '22222', - resultCode: 'TemporaryFailure', - resultString: 'Error: failure', - }, - { - taskId: '33333', - resultCode: 'PermanentFailure', - resultString: 'Error: failure', - }, - ], + // $ExpectType Callback + cb; + // Can still use callback + cb(null, { resultString: str }); + return { resultString: 'Is now valid!' }; }; -const S3BatchHandler: AWSLambda.S3BatchHandler = async (event: AWSLambda.S3BatchEvent, context: AWSLambda.Context) => { - // $ExpectType S3BatchEvent - event; +// $ExpectError +const badTypedAsyncHandler: CustomHandler = async (event, context, cb) => ({ resultString: bool }); - // $ExpectType Context - context; - str = context.functionName; - return S3BatchResult; -}; +// Test using untyped Callback type still works. +const mixedUntypedCallbackTypedHandler: CustomHandler = ( + event: CustomEvent, + context: AWSLambda.Context, + cb: AWSLambda.Callback, +) => {}; diff --git a/types/aws-lambda/common/api-gateway.d.ts b/types/aws-lambda/common/api-gateway.d.ts new file mode 100644 index 000000000000000..15f6e921e62b303 --- /dev/null +++ b/types/aws-lambda/common/api-gateway.d.ts @@ -0,0 +1,67 @@ +// Types shared between trigger/api-gateway-authorizer.d.ts and api-gateway-proxy.d.ts + +// Poorly documented, but API Gateway will just fail internally if +// the context type does not match this. +// Note that although non-string types will be accepted, they will be +// coerced to strings on the other side. +export interface APIGatewayAuthorizerResultContext { + [name: string]: string | number | boolean | null | undefined; +} + +// Default authorizer type, prefer using a specific type with the "...WithAuthorizer..." variant types. +// Note that this doesn't have to be a context from a custom lambda outhorizer, AWS also has a cognito +// authorizer type and could add more, so the property won't always be a string. +export type APIGatewayEventDefaultAuthorizerContext = undefined | null | { + [name: string]: any; +}; + +export type APIGatewayEventRequestContext = + APIGatewayEventRequestContextWithAuthorizer; + +// The requestContext property of both request authorizer and proxy integration events. +export interface APIGatewayEventRequestContextWithAuthorizer { + accountId: string; + apiId: string; + // This one is a bit confusing: it is not actually present in authorizer calls + // and proxy calls without an authorizer. We model this by allowing undefined in the type, + // since it ends up the same and avoids breaking users that are testing the property. + // This lets us allow parameterizing the authorizer for proxy events that know what authorizer + // context values they have. + authorizer: TAuthorizerContext; + connectedAt?: number; + connectionId?: string; + domainName?: string; + domainPrefix?: string; + eventType?: string; + extendedRequestId?: string; + protocol: string; + httpMethod: string; + identity: APIGatewayEventIdentity; + messageDirection?: string; + messageId?: string | null; + path: string; + stage: string; + requestId: string; + requestTime?: string; + requestTimeEpoch: number; + resourceId: string; + resourcePath: string; + routeKey?: string; +} + +export interface APIGatewayEventIdentity { + accessKey: string | null; + accountId: string | null; + apiKey: string | null; + apiKeyId: string | null; + caller: string | null; + cognitoAuthenticationProvider: string | null; + cognitoAuthenticationType: string | null; + cognitoIdentityId: string | null; + cognitoIdentityPoolId: string | null; + principalOrgId: string | null; + sourceIp: string; + user: string | null; + userAgent: string | null; + userArn: string | null; +} diff --git a/types/aws-lambda/common/cloudfront.d.ts b/types/aws-lambda/common/cloudfront.d.ts new file mode 100644 index 000000000000000..f0ebbae8f5301a9 --- /dev/null +++ b/types/aws-lambda/common/cloudfront.d.ts @@ -0,0 +1,79 @@ +/** + * CloudFront events + * http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html + * Bear in mind that the "example" event structure in the page above includes + * both an S3 and a Custom origin, which is not strictly allowed. Only one + * of these per event may be present. + */ +export interface CloudFrontHeaders { + [name: string]: Array<{ + key?: string; + value: string; + }>; +} + +export type CloudFrontOrigin = + | { s3: CloudFrontS3Origin; custom?: never } + | { custom: CloudFrontCustomOrigin; s3?: never }; + +export interface CloudFrontCustomOrigin { + customHeaders: CloudFrontHeaders; + domainName: string; + keepaliveTimeout: number; + path: string; + port: number; + protocol: 'http' | 'https'; + readTimeout: number; + sslProtocols: string[]; +} + +export interface CloudFrontS3Origin { + authMethod: 'origin-access-identity' | 'none'; + customHeaders: CloudFrontHeaders; + domainName: string; + path: string; + region: string; +} + +export interface CloudFrontResponse { + status: string; + statusDescription: string; + headers: CloudFrontHeaders; +} + +export interface CloudFrontRequest { + body?: { + action: 'read-only' | 'replace'; + data: string; + encoding: 'base64' | 'text'; + readonly inputTruncated: boolean; + }; + readonly clientIp: string; + readonly method: string; + uri: string; + querystring: string; + headers: CloudFrontHeaders; + origin?: CloudFrontOrigin; +} + +export interface CloudFrontEvent { + config: { + readonly distributionDomainName: string; + readonly distributionId: string; + } & ( + | { readonly eventType: 'origin-request' | 'origin-response' } + | { readonly eventType: 'viewer-request' | 'viewer-response'; readonly requestId: string }); +} + +/** + * Generated HTTP response in viewer request event or origin request event + * + * https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-generating-http-responses-in-requests.html#lambda-generating-http-responses-object + */ +export interface CloudFrontResultResponse { + status: string; + statusDescription?: string; + headers?: CloudFrontHeaders; + bodyEncoding?: 'text' | 'base64'; + body?: string; +} diff --git a/types/aws-lambda/handler.d.ts b/types/aws-lambda/handler.d.ts new file mode 100644 index 000000000000000..54c270a24616945 --- /dev/null +++ b/types/aws-lambda/handler.d.ts @@ -0,0 +1,171 @@ +/** + * The interface that AWS Lambda will invoke your handler with. + * There are more specialized types for many cases where AWS services + * invoke your lambda, but you can directly use this type for when you are invoking + * your lambda directly. + * + * See tme {@link http://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-handler.html AWS documentation} + * for more information about the runtime behavior, and the + * {@link https://aws.amazon.com/blogs/compute/node-js-8-10-runtime-now-available-in-aws-lambda/ AWS Blog post} + * introducing the async handler behavior in the 8.10 runtime. + * + * @example Defining a custom handler type + * import { Handler } from 'aws-lambda' + * + * interface NameEvent { + * fullName: string + * } + * interface NameResult { + * firstName: string + * middleNames: string + * lastName: string + * } + * type PersonHandler = Handler + * + * export const handler: PersonHandler = async (event) => { + * const names = event.fullName.split(' ') + * const firstName = names.shift() + * const lastName = names.pop() + * return { firstName, middleNames: names, lastName } + * } + * + * @example Logs the contents of the event object and returns the location of the logs + * import { Handler } from 'aws-lambda' + * + * export const handler: Handler = async (event, context) => { + * console.log("EVENT: \n" + JSON.stringify(event, null, 2)) + * return context.logStreamName + * } + * + * @example AWS SDK with Async Function and Promises + * import { Handler } from 'aws-lambda' + * import AWS from 'aws-sdk' + * + * const s3 = new AWS.S3() + * + * export const handler: Handler = async (event) => { + * const response = await s3.listBuckets().promise() + * return response?.Buckets.map((bucket) => bucket.Name) + * } + * + * @example HTTP Request with Callback + * import { Handler } from 'aws-lambda' + * import https from 'https' + * + * let url = "https://docs.aws.amazon.com/lambda/latest/dg/welcome.html" + * + * export const handler: Handler = (event, context, callback) => { + * https.get(url, (res) => { + * callback(null, res.statusCode) + * }).on('error', (e) => { + * callback(Error(e)) + * }) + * } + * + * @param event + * Parsed JSON data in the lambda request payload. For an AWS service triggered + * lambda this should be in the format of a type ending in Event, for example the + * S3Handler receives an event of type S3Event. + * @param context + * Runtime contextual information of the current invocation, for example the caller + * identity, available memory and time remaining, legacy completion callbacks, and + * a mutable property controlling when the lambda execution completes. + * @param callback + * NodeJS-style completion callback that the AWS Lambda runtime will provide that can + * be used to provide the lambda result payload value, or any execution error. Can + * instead return a promise that resolves with the result payload value or rejects + * with the execution error. + * @return + * A promise that resolves with the lambda result payload value, or rejects with the + * execution error. Note that if you implement your handler as an async function, + * you will automatically return a promise that will resolve with a returned value, + * or reject with a thrown value. + */ +export type Handler = ( + event: TEvent, + context: Context, + callback: Callback, +) => void | Promise; + +/** + * {@link Handler} context parameter. + * See {@link https://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-context.html AWS documentation}. + */ +export interface Context { + callbackWaitsForEmptyEventLoop: boolean; + functionName: string; + functionVersion: string; + invokedFunctionArn: string; + memoryLimitInMB: string; + awsRequestId: string; + logGroupName: string; + logStreamName: string; + identity?: CognitoIdentity; + clientContext?: ClientContext; + + getRemainingTimeInMillis(): number; + + // Functions for compatibility with earlier Node.js Runtime v0.10.42 + // No longer documented, so they are deprecated, but they still work + // as of the 12.x runtime, so they are not removed from the types. + + /** @deprecated Use handler callback or promise result */ + done(error?: Error, result?: any): void; + /** @deprecated Use handler callback with first argument or reject a promise result */ + fail(error: Error | string): void; + /** @deprecated Use handler callback with second argument or resolve a promise result */ + succeed(messageOrObject: any): void; + // Unclear what behavior this is supposed to have, I couldn't find any still extant reference, + // and it behaves like the above, ignoring the object parameter. + /** @deprecated Use handler callback or promise result */ + succeed(message: string, object: any): void; +} + +export interface CognitoIdentity { + cognitoIdentityId: string; + cognitoIdentityPoolId: string; +} + +export interface ClientContext { + client: ClientContextClient; + Custom?: any; + env: ClientContextEnv; +} + +export interface ClientContextClient { + installationId: string; + appTitle: string; + appVersionName: string; + appVersionCode: string; + appPackageName: string; +} + +export interface ClientContextEnv { + platformVersion: string; + platform: string; + make: string; + model: string; + locale: string; +} + +/** + * NodeJS-style callback parameter for the {@link Handler} type. + * Can be used instead of returning a promise, see the + * {@link https://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-handler.html AWS documentation} + * for the handler programming model. + * + * @param error + * Parameter to use to provide the error payload for a failed lambda execution. + * See {@link https://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-mode-exceptions.html AWS documentation} + * for error handling. + * If an Error instance is passed, the error payload uses the `name` property as the `errorType`, + * the `message` property as the `errorMessage`, and parses the `stack` property string into + * the `trace` array. + * For other values, the `errorType` is `typeof value`, the `errorMessage` is `String(value)`, and + * `trace` is an empty array. + * + * @param result + * Parameter to use to provide the result payload for a successful lambda execution. + * Pass `null` or `undefined` for the `error` parameter to use this parameter. + */ +export type Callback = (error?: Error | string | null, result?: TResult) => void; diff --git a/types/aws-lambda/index.d.ts b/types/aws-lambda/index.d.ts index 4b99367956ff666..d5a38f51f43d8a6 100644 --- a/types/aws-lambda/index.d.ts +++ b/types/aws-lambda/index.d.ts @@ -1,8 +1,8 @@ // Type definitions for AWS Lambda 8.10 // Project: http://docs.aws.amazon.com/lambda -// Definitions by: James Darbyshire +// Definitions by: James Darbyshire // Michael Skarum -// Stef Heyenrath +// Stef Heyenrath // Toby Hede // Rich Buggy // Yoriki Yamaguchi @@ -34,1172 +34,42 @@ // Marian Zange // Alexander Pepper // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.8 - -// API Gateway "event" request context -export interface APIGatewayEventRequestContext { - accountId: string; - apiId: string; - authorizer?: AuthResponseContext | null; - connectedAt?: number; - connectionId?: string; - domainName?: string; - domainPrefix?: string; - eventType?: string; - extendedRequestId?: string; - httpMethod: string; - identity: { - accessKey: string | null; - accountId: string | null; - apiKey: string | null; - apiKeyId: string | null; - caller: string | null; - cognitoAuthenticationProvider: string | null; - cognitoAuthenticationType: string | null; - cognitoIdentityId: string | null; - cognitoIdentityPoolId: string | null; - principalOrgId: string | null; - sourceIp: string; - user: string | null; - userAgent: string | null; - userArn: string | null; - }; - messageDirection?: string; - messageId?: string | null; - path: string; - stage: string; - requestId: string; - requestTime?: string; - requestTimeEpoch: number; - resourceId: string; - resourcePath: string; - routeKey?: string; -} - -// API Gateway "event" -export interface APIGatewayProxyEvent { - body: string | null; - headers: { [name: string]: string }; - multiValueHeaders: { [name: string]: string[] }; - httpMethod: string; - isBase64Encoded: boolean; - path: string; - pathParameters: { [name: string]: string } | null; - queryStringParameters: { [name: string]: string } | null; - multiValueQueryStringParameters: { [name: string]: string[] } | null; - stageVariables: { [name: string]: string } | null; - requestContext: APIGatewayEventRequestContext; - resource: string; -} -export type APIGatewayEvent = APIGatewayProxyEvent; // Old name - -// https://docs.aws.amazon.com/elasticloadbalancing/latest/application/lambda-functions.html -export interface ALBEventRequestContext { - elb: { - targetGroupArn: string; - }; -} -export interface ALBEvent { - requestContext: ALBEventRequestContext; - httpMethod: string; - path: string; - queryStringParameters?: { [parameter: string]: string }; // URL encoded - headers?: { [header: string]: string }; - multiValueQueryStringParameters?: { [parameter: string]: string[] }; // URL encoded - multiValueHeaders?: { [header: string]: string[] }; - body: string | null; - isBase64Encoded: boolean; -} - -// API Gateway CustomAuthorizer "event" -export interface CustomAuthorizerEvent { - type: string; - methodArn: string; - authorizationToken?: string; - resource?: string; - path?: string; - httpMethod?: string; - headers?: { [name: string]: string }; - multiValueHeaders?: { [name: string]: string[] }; - pathParameters?: { [name: string]: string } | null; - queryStringParameters?: { [name: string]: string } | null; - multiValueQueryStringParameters?: { [name: string]: string[] } | null; - stageVariables?: { [name: string]: string }; - requestContext?: APIGatewayEventRequestContext; - domainName?: string; - apiId?: string; -} - -// Context -// http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_AttributeValue.html -export interface AttributeValue { - B?: string; - BS?: string[]; - BOOL?: boolean; - L?: AttributeValue[]; - M?: { [id: string]: AttributeValue }; - N?: string; - NS?: string[]; - NULL?: boolean; - S?: string; - SS?: string[]; -} - -// Context -// http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_StreamRecord.html -export interface StreamRecord { - ApproximateCreationDateTime?: number; - Keys?: { [key: string]: AttributeValue }; - NewImage?: { [key: string]: AttributeValue }; - OldImage?: { [key: string]: AttributeValue }; - SequenceNumber?: string; - SizeBytes?: number; - StreamViewType?: 'KEYS_ONLY' | 'NEW_IMAGE' | 'OLD_IMAGE' | 'NEW_AND_OLD_IMAGES'; -} - -// Context -// http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_Record.html -export interface DynamoDBRecord { - awsRegion?: string; - dynamodb?: StreamRecord; - eventID?: string; - eventName?: 'INSERT' | 'MODIFY' | 'REMOVE'; - eventSource?: string; - eventSourceARN?: string; - eventVersion?: string; - userIdentity?: any; -} - -// AWS Lambda Stream event -// Context -// http://docs.aws.amazon.com/lambda/latest/dg/eventsources.html#eventsources-ddb-update -export interface DynamoDBStreamEvent { - Records: DynamoDBRecord[]; -} - -// SNS "event" -export interface SNSMessageAttribute { - Type: string; - Value: string; -} - -export interface SNSMessageAttributes { - [name: string]: SNSMessageAttribute; -} - -export interface SNSMessage { - SignatureVersion: string; - Timestamp: string; - Signature: string; - SigningCertUrl: string; - MessageId: string; - Message: string; - MessageAttributes: SNSMessageAttributes; - Type: string; - UnsubscribeUrl: string; - TopicArn: string; - Subject: string; -} - -export interface SNSEventRecord { - EventVersion: string; - EventSubscriptionArn: string; - EventSource: string; - Sns: SNSMessage; -} - -export interface SNSEvent { - Records: SNSEventRecord[]; -} - -/** - * S3Create event - * https://docs.aws.amazon.com/AmazonS3/latest/dev/notification-content-structure.html - */ - -export interface S3EventRecordGlacierRestoreEventData { - lifecycleRestorationExpiryTime: string; - lifecycleRestoreStorageClass: string; -} - -export interface S3EventRecordGlacierEventData { - restoreEventData: S3EventRecordGlacierRestoreEventData; -} - -export interface S3EventRecord { - eventVersion: string; - eventSource: string; - awsRegion: string; - eventTime: string; - eventName: string; - userIdentity: { - principalId: string; - }; - requestParameters: { - sourceIPAddress: string; - }; - responseElements: { - 'x-amz-request-id': string; - 'x-amz-id-2': string; - }; - s3: { - s3SchemaVersion: string; - configurationId: string; - bucket: { - name: string; - ownerIdentity: { - principalId: string; - }; - arn: string; - }; - object: { - key: string; - size: number; - eTag: string; - versionId?: string; - sequencer: string; - }; - }; - glacierEventData?: S3EventRecordGlacierEventData; -} - -export interface S3Event { - Records: S3EventRecord[]; -} - -export type S3CreateEvent = S3Event; // old name - -/** - * S3 Batch Operations event - * https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-invoke-lambda.html - */ - -export interface S3BatchEvent { - invocationSchemaVersion: string; - invocationId: string; - job: S3BatchEventJob; - tasks: S3BatchEventTask[]; -} - -export interface S3BatchEventJob { - id: string; -} - -export interface S3BatchEventTask { - taskId: string; - s3Key: string; - s3VersionId: string | null; - s3BucketArn: string; -} - -export interface S3BatchResult { - invocationSchemaVersion: string; - treatMissingKeysAs: S3BatchResultResultCode; - invocationId: string; - results: S3BatchResultResult[]; -} - -export type S3BatchResultResultCode = 'Succeeded' | 'TemporaryFailure' | 'PermanentFailure'; - -export interface S3BatchResultResult { - taskId: string; - resultCode: S3BatchResultResultCode; - resultString: string; -} - -/** - * Cognito User Pool event - * http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html - */ -export interface CognitoUserPoolTriggerEvent { - version: number; - triggerSource: - | 'PreSignUp_SignUp' - | 'PreSignUp_ExternalProvider' - | 'PostConfirmation_ConfirmSignUp' - | 'PreAuthentication_Authentication' - | 'PostAuthentication_Authentication' - | 'CustomMessage_SignUp' - | 'CustomMessage_AdminCreateUser' - | 'CustomMessage_ResendCode' - | 'CustomMessage_ForgotPassword' - | 'CustomMessage_UpdateUserAttribute' - | 'CustomMessage_VerifyUserAttribute' - | 'CustomMessage_Authentication' - | 'DefineAuthChallenge_Authentication' - | 'CreateAuthChallenge_Authentication' - | 'VerifyAuthChallengeResponse_Authentication' - | 'PreSignUp_AdminCreateUser' - | 'PostConfirmation_ConfirmForgotPassword' - | 'TokenGeneration_HostedAuth' - | 'TokenGeneration_Authentication' - | 'TokenGeneration_NewPasswordChallenge' - | 'TokenGeneration_AuthenticateDevice' - | 'TokenGeneration_RefreshTokens' - | 'UserMigration_Authentication' - | 'UserMigration_ForgotPassword'; - region: string; - userPoolId: string; - userName?: string; - callerContext: { - awsSdkVersion: string; - clientId: string; - }; - request: { - userAttributes: { [key: string]: string }; - validationData?: { [key: string]: string }; - codeParameter?: string; - linkParameter?: string; - usernameParameter?: string; - newDeviceUsed?: boolean; - session?: Array<{ - challengeName: - | 'CUSTOM_CHALLENGE' - | 'PASSWORD_VERIFIER' - | 'SMS_MFA' - | 'DEVICE_SRP_AUTH' - | 'DEVICE_PASSWORD_VERIFIER' - | 'ADMIN_NO_SRP_AUTH'; - challengeResult: boolean; - challengeMetadata?: string; - }>; - challengeName?: string; - privateChallengeParameters?: { [key: string]: string }; - challengeAnswer?: string; - password?: string; - }; - response: { - autoConfirmUser?: boolean; - autoVerifyPhone?: boolean; - autoVerifyEmail?: boolean; - smsMessage?: string; - emailMessage?: string; - emailSubject?: string; - challengeName?: string; - issueTokens?: boolean; - failAuthentication?: boolean; - publicChallengeParameters?: { [key: string]: string }; - privateChallengeParameters?: { [key: string]: string }; - challengeMetadata?: string; - answerCorrect?: boolean; - userAttributes?: { [key: string]: string }; - finalUserStatus?: 'CONFIRMED' | 'RESET_REQUIRED'; - messageAction?: 'SUPPRESS'; - desiredDeliveryMediums?: Array<'EMAIL' | 'SMS'>; - forceAliasCreation?: boolean; - claimsOverrideDetails?: { - claimsToAddOrOverride?: { [key: string]: string }; - claimsToSuppress?: string[]; - groupOverrideDetails?: null | { - groupsToOverride?: string[]; - iamRolesToOverride?: string[]; - preferredRole?: string; - }; - }; - }; -} -export type CognitoUserPoolEvent = CognitoUserPoolTriggerEvent; - -/** - * CloudFormation Custom Resource event and response - * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/crpg-ref.html - */ -export interface CloudFormationCustomResourceEventCommon { - ServiceToken: string; - ResponseURL: string; - StackId: string; - RequestId: string; - LogicalResourceId: string; - ResourceType: string; - ResourceProperties: { - ServiceToken: string; - [Key: string]: any; - }; -} - -export interface CloudFormationCustomResourceCreateEvent extends CloudFormationCustomResourceEventCommon { - RequestType: 'Create'; -} - -export interface CloudFormationCustomResourceUpdateEvent extends CloudFormationCustomResourceEventCommon { - RequestType: 'Update'; - PhysicalResourceId: string; - OldResourceProperties: { - [Key: string]: any; - }; -} - -export interface CloudFormationCustomResourceDeleteEvent extends CloudFormationCustomResourceEventCommon { - RequestType: 'Delete'; - PhysicalResourceId: string; -} - -export type CloudFormationCustomResourceEvent = - | CloudFormationCustomResourceCreateEvent - | CloudFormationCustomResourceUpdateEvent - | CloudFormationCustomResourceDeleteEvent; - -export interface CloudFormationCustomResourceResponseCommon { - PhysicalResourceId: string; - StackId: string; - RequestId: string; - LogicalResourceId: string; - Data?: { - [Key: string]: any; - }; - NoEcho?: boolean; -} - -export interface CloudFormationCustomResourceSuccessResponse extends CloudFormationCustomResourceResponseCommon { - Status: 'SUCCESS'; - Reason?: string; -} - -export interface CloudFormationCustomResourceFailedResponse extends CloudFormationCustomResourceResponseCommon { - Status: 'FAILED'; - Reason: string; -} - -export type CloudFormationCustomResourceResponse = - | CloudFormationCustomResourceSuccessResponse - | CloudFormationCustomResourceFailedResponse; - -/** - * See https://docs.aws.amazon.com/lambda/latest/dg/eventsources.html#eventsources-scheduled-event - */ -export interface ScheduledEvent { - account: string; - region: string; - detail: any; - 'detail-type': string; - source: string; - time: string; - id: string; - resources: string[]; -} - -/** - * See http://docs.aws.amazon.com/lambda/latest/dg/eventsources.html#eventsources-cloudwatch-logs - */ -export interface CloudWatchLogsEvent { - awslogs: CloudWatchLogsEventData; -} - -export interface CloudWatchLogsEventData { - data: string; -} - -export interface CloudWatchLogsDecodedData { - owner: string; - logGroup: string; - logStream: string; - subscriptionFilters: string[]; - messageType: string; - logEvents: CloudWatchLogsLogEvent[]; -} - -/** - * See http://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/SubscriptionFilters.html#LambdaFunctionExample - */ -export interface CloudWatchLogsLogEvent { - id: string; - timestamp: number; - message: string; - extractedFields?: { [key: string]: string }; -} - -// Context -// http://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-context.html -export interface Context { - // Properties - callbackWaitsForEmptyEventLoop: boolean; - functionName: string; - functionVersion: string; - invokedFunctionArn: string; - memoryLimitInMB: string; - awsRequestId: string; - logGroupName: string; - logStreamName: string; - identity?: CognitoIdentity; - clientContext?: ClientContext; - - // Functions - getRemainingTimeInMillis(): number; - - // Functions for compatibility with earlier Node.js Runtime v0.10.42 - // For more details see http://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-using-old-runtime.html#nodejs-prog-model-oldruntime-context-methods - done(error?: Error, result?: any): void; - fail(error: Error | string): void; - succeed(messageOrObject: any): void; - succeed(message: string, object: any): void; -} - -export interface CognitoIdentity { - cognitoIdentityId: string; - cognitoIdentityPoolId: string; -} - -export interface ClientContext { - client: ClientContextClient; - Custom?: any; - env: ClientContextEnv; -} - -export interface ClientContextClient { - installationId: string; - appTitle: string; - appVersionName: string; - appVersionCode: string; - appPackageName: string; -} - -export interface ClientContextEnv { - platformVersion: string; - platform: string; - make: string; - model: string; - locale: string; -} - -export interface APIGatewayProxyResult { - statusCode: number; - headers?: { - [header: string]: boolean | number | string; - }; - multiValueHeaders?: { - [header: string]: Array; - }; - body: string; - isBase64Encoded?: boolean; -} -export type ProxyResult = APIGatewayProxyResult; // Old name - -export interface ALBResult { - statusCode: number; - statusDescription: string; - headers?: { [header: string]: boolean | number | string }; - multiValueHeaders?: { [header: string]: Array }; - body: string; - isBase64Encoded: boolean; -} - -/** - * API Gateway CustomAuthorizer AuthResponse. - * http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output - */ -export interface CustomAuthorizerResult { - principalId: string; - policyDocument: PolicyDocument; - context?: AuthResponseContext; - usageIdentifierKey?: string; -} -export type AuthResponse = CustomAuthorizerResult; - -/** - * API Gateway CustomAuthorizer AuthResponse.PolicyDocument. - * https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-lambda-authorizer-output.html - * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html#Condition - */ -export interface PolicyDocument { - Version: string; - Id?: string; - Statement: Statement[]; -} - -/** - * API Gateway CustomAuthorizer AuthResponse.PolicyDocument.Condition. - * https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-control-access-policy-language-overview.html - * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html - */ -export interface ConditionBlock { - [condition: string]: Condition | Condition[]; -} - -export interface Condition { - [key: string]: string | string[]; -} - -/** - * API Gateway CustomAuthorizer AuthResponse.PolicyDocument.Statement. - * https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-control-access-policy-language-overview.html - * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html - */ -export type Statement = BaseStatement & StatementAction & (StatementResource | StatementPrincipal); - -export interface BaseStatement { - Effect: string; - Sid?: string; - Condition?: ConditionBlock; -} - -export type PrincipalValue = { [key: string]: string | string[] } | string | string[]; -export interface MaybeStatementPrincipal { - Principal?: PrincipalValue; - NotPrincipal?: PrincipalValue; -} -export interface MaybeStatementResource { - Resource?: string | string[]; - NotResource?: string | string[]; -} -export type StatementAction = { Action: string | string[] } | { NotAction: string | string[] }; -export type StatementResource = MaybeStatementPrincipal & - ({ Resource: string | string[] } | { NotResource: string | string[] }); -export type StatementPrincipal = MaybeStatementResource & - ({ Principal: PrincipalValue } | { NotPrincipal: PrincipalValue }); -/** - * API Gateway CustomAuthorizer AuthResponse.PolicyDocument.Statement. - * http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output - */ -export interface AuthResponseContext { - [name: string]: any; -} - -/** - * CodePipeline events - * https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-invoke-lambda-function.html - */ -export interface S3ArtifactLocation { - bucketName: string; - objectKey: string; -} -export interface S3ArtifactStore { - type: 'S3'; - s3Location: S3ArtifactLocation; -} - -export type ArtifactLocation = S3ArtifactStore; - -export interface Artifact { - name: string; - revision: string | null; - location: ArtifactLocation; -} - -export interface Credentials { - accessKeyId: string; - secretAccessKey: string; - sessionToken?: string; -} - -export interface EncryptionKey { - type: string; - id: string; -} - -export interface CodePipelineEvent { - 'CodePipeline.job': { - id: string; - accountId: string; - data: { - actionConfiguration: { - configuration: { - FunctionName: string; - UserParameters: string; - }; - }; - inputArtifacts: Artifact[]; - outputArtifacts: Artifact[]; - artifactCredentials: Credentials; - encryptionKey?: EncryptionKey & { type: 'KMS' }; - continuationToken?: string; - }; - }; -} - -/** - * CodePipeline CloudWatch Events - * https://docs.aws.amazon.com/codepipeline/latest/userguide/detect-state-changes-cloudwatch-events.html - * - * The above CodePipelineEvent is when a lambda is invoked by a CodePipeline. - * These events are when you subscribe to CodePipeline events in CloudWatch. - * - * Their documentation says that detail.version is a string, but it is actually an integer - */ -export type CodePipelineState = 'STARTED' | 'SUCCEEDED' | 'RESUMED' | 'FAILED' | 'CANCELED' | 'SUPERSEDED'; - -export type CodePipelineStageState = 'STARTED' | 'SUCCEEDED' | 'RESUMED' | 'FAILED' | 'CANCELED'; - -export type CodePipelineActionState = 'STARTED' | 'SUCCEEDED' | 'FAILED' | 'CANCELED'; - -export interface CodePipelineCloudWatchPipelineEvent { - version: string; - id: string; - 'detail-type': 'CodePipeline Pipeline Execution State Change'; - source: 'aws.codepipeline'; - account: string; - time: string; - region: string; - resources: string[]; - detail: { - pipeline: string; - version: number; - state: CodePipelineState; - 'execution-id': string; - }; -} - -export interface CodePipelineCloudWatchStageEvent { - version: string; - id: string; - 'detail-type': 'CodePipeline Stage Execution State Change'; - source: 'aws.codepipeline'; - account: string; - time: string; - region: string; - resources: string[]; - detail: { - pipeline: string; - version: number; - 'execution-id': string; - stage: string; - state: CodePipelineStageState; - }; -} - -export type CodePipelineActionCategory = 'Approval' | 'Build' | 'Deploy' | 'Invoke' | 'Source' | 'Test'; - -export interface CodePipelineCloudWatchActionEvent { - version: string; - id: string; - 'detail-type': 'CodePipeline Action Execution State Change'; - source: 'aws.codepipeline'; - account: string; - time: string; - region: string; - resources: string[]; - detail: { - pipeline: string; - version: number; - 'execution-id': string; - stage: string; - action: string; - state: CodePipelineActionState; - type: { - owner: 'AWS' | 'Custom' | 'ThirdParty'; - category: CodePipelineActionCategory; - provider: string; - version: number; - }; - }; -} - -export type CodePipelineCloudWatchEvent = - | CodePipelineCloudWatchPipelineEvent - | CodePipelineCloudWatchStageEvent - | CodePipelineCloudWatchActionEvent; - -/** - * CloudFront events - * http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html - * Bear in mind that the "example" event structure in the page above includes - * both an S3 and a Custom origin, which is not strictly allowed. Only one - * of these per event may be present. - */ -export interface CloudFrontHeaders { - [name: string]: Array<{ - key?: string; - value: string; - }>; -} - -export type CloudFrontOrigin = - | { s3: CloudFrontS3Origin; custom?: never } - | { custom: CloudFrontCustomOrigin; s3?: never }; - -export interface CloudFrontCustomOrigin { - customHeaders: CloudFrontHeaders; - domainName: string; - keepaliveTimeout: number; - path: string; - port: number; - protocol: 'http' | 'https'; - readTimeout: number; - sslProtocols: string[]; -} - -export interface CloudFrontS3Origin { - authMethod: 'origin-access-identity' | 'none'; - customHeaders: CloudFrontHeaders; - domainName: string; - path: string; - region: string; -} - -export interface CloudFrontResponse { - status: string; - statusDescription: string; - headers: CloudFrontHeaders; -} - -export interface CloudFrontRequest { - body?: { - action: 'read-only' | 'replace'; - data: string; - encoding: 'base64' | 'text'; - readonly inputTruncated: boolean; - }; - readonly clientIp: string; - readonly method: string; - uri: string; - querystring: string; - headers: CloudFrontHeaders; - origin?: CloudFrontOrigin; -} - -export interface CloudFrontEvent { - config: { - readonly distributionDomainName: string; - readonly distributionId: string; - } & ( - | { readonly eventType: 'origin-request' | 'origin-response' } - | { readonly eventType: 'viewer-request' | 'viewer-response'; readonly requestId: string }); -} - -/** - * Generated HTTP response in viewer request event or origin request event - * - * https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-generating-http-responses-in-requests.html#lambda-generating-http-responses-object - */ -export interface CloudFrontResultResponse { - status: string; - statusDescription?: string; - headers?: CloudFrontHeaders; - bodyEncoding?: 'text' | 'base64'; - body?: string; -} - -/** - * CloudFront viewer response or origin response event - * - * https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html#lambda-event-structure-response - */ -export interface CloudFrontResponseEvent { - Records: Array<{ - cf: CloudFrontEvent & { - readonly request: Pick>; - response: CloudFrontResponse; - }; - }>; -} - -export type CloudFrontRequestResult = undefined | null | CloudFrontResultResponse | CloudFrontRequest; - -/** - * CloudFront viewer request or origin request event - * - * https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html#lambda-event-structure-request - */ -export interface CloudFrontRequestEvent { - Records: Array<{ - cf: CloudFrontEvent & { - request: CloudFrontRequest; - }; - }>; -} - -export type CloudFrontResponseResult = undefined | null | CloudFrontResultResponse; - -// Kinesis Streams -// https://docs.aws.amazon.com/lambda/latest/dg/eventsources.html#eventsources-kinesis-streams -export interface KinesisStreamRecordPayload { - approximateArrivalTimestamp: number; - data: string; - kinesisSchemaVersion: string; - partitionKey: string; - sequenceNumber: string; -} - -export interface KinesisStreamRecord { - awsRegion: string; - eventID: string; - eventName: string; - eventSource: string; - eventSourceARN: string; - eventVersion: string; - invokeIdentityArn: string; - kinesis: KinesisStreamRecordPayload; -} - -export interface KinesisStreamEvent { - Records: KinesisStreamRecord[]; -} - -// Kinesis Data Firehose Event -// https://docs.aws.amazon.com/lambda/latest/dg/eventsources.html#eventsources-kinesis-firehose -// https://docs.aws.amazon.com/firehose/latest/dev/data-transformation.html -// https://aws.amazon.com/blogs/compute/amazon-kinesis-firehose-data-transformation-with-aws-lambda/ -// Examples in the lambda blueprints -export interface FirehoseTransformationEvent { - invocationId: string; - deliveryStreamArn: string; - region: string; - records: FirehoseTransformationEventRecord[]; -} - -export interface FirehoseTransformationEventRecord { - recordId: string; - approximateArrivalTimestamp: number; - /** Base64 encoded */ - data: string; - kinesisRecordMetadata?: FirehoseRecordMetadata; -} - -export interface FirehoseRecordMetadata { - shardId: string; - partitionKey: string; - approximateArrivalTimestamp: string; - sequenceNumber: string; - subsequenceNumber: string; -} - -export type FirehoseRecordTransformationStatus = 'Ok' | 'Dropped' | 'ProcessingFailed'; - -export interface FirehoseTransformationResultRecord { - recordId: string; - result: FirehoseRecordTransformationStatus; - /** Encode in Base64 */ - data: string; -} - -export interface FirehoseTransformationResult { - records: FirehoseTransformationResultRecord[]; -} - -// SQS -// https://docs.aws.amazon.com/lambda/latest/dg/invoking-lambda-function.html#supported-event-source-sqs -export interface SQSRecord { - messageId: string; - receiptHandle: string; - body: string; - attributes: SQSRecordAttributes; - messageAttributes: SQSMessageAttributes; - md5OfBody: string; - eventSource: string; - eventSourceARN: string; - awsRegion: string; -} - -export interface SQSEvent { - Records: SQSRecord[]; -} - -export interface SQSRecordAttributes { - ApproximateReceiveCount: string; - SentTimestamp: string; - SenderId: string; - ApproximateFirstReceiveTimestamp: string; -} - -export type SQSMessageAttributeDataType = 'String' | 'Number' | 'Binary' | string; - -export interface SQSMessageAttribute { - stringValue?: string; - binaryValue?: string; - stringListValues: never[]; // Not implemented. Reserved for future use. - binaryListValues: never[]; // Not implemented. Reserved for future use. - dataType: SQSMessageAttributeDataType; -} - -export interface SQSMessageAttributes { - [name: string]: SQSMessageAttribute; -} - -// Lex -// https://docs.aws.amazon.com/lambda/latest/dg/invoking-lambda-function.html#supported-event-source-lex -export interface LexEvent { - currentIntent: { - name: string; - slots: { [name: string]: string | null }; - slotDetails: LexSlotDetails; - confirmationStatus: 'None' | 'Confirmed' | 'Denied'; - }; - bot: { - name: string; - alias: string; - version: string; - }; - userId: string; - inputTranscript: string; - invocationSource: 'DialogCodeHook' | 'FulfillmentCodeHook'; - outputDialogMode: 'Text' | 'Voice'; - messageVersion: '1.0'; - sessionAttributes: { [key: string]: string }; - requestAttributes: { [key: string]: string } | null; -} - -export interface LexSlotResolution { - value: string; -} - -export interface LexSlotDetails { - [name: string]: { - // The following line only works in TypeScript Version: 3.0, The array should have at least 1 and no more than 5 items - // resolutions: [LexSlotResolution, LexSlotResolution?, LexSlotResolution?, LexSlotResolution?, LexSlotResolution?]; - resolutions: LexSlotResolution[]; - originalValue: string; - }; -} - -export interface LexGenericAttachment { - title: string; - subTitle: string; - imageUrl: string; - attachmentLinkUrl: string; - buttons: Array<{ - text: string; - value: string; - }>; -} - -export interface LexDialogActionBase { - type: 'Close' | 'ElicitIntent' | 'ElicitSlot' | 'ConfirmIntent'; - message?: { - contentType: 'PlainText' | 'SSML' | 'CustomPayload'; - content: string; - }; - responseCard?: { - version: number; - contentType: 'application/vnd.amazonaws.card.generic'; - genericAttachments: LexGenericAttachment[]; - }; -} - -export interface LexDialogActionClose extends LexDialogActionBase { - type: 'Close'; - fulfillmentState: 'Fulfilled' | 'Failed'; -} - -export interface LexDialogActionElicitIntent extends LexDialogActionBase { - type: 'ElicitIntent'; -} - -export interface LexDialogActionElicitSlot extends LexDialogActionBase { - type: 'ElicitSlot'; - intentName: string; - slots: { [name: string]: string | null }; - slotToElicit: string; -} - -export interface LexDialogActionConfirmIntent extends LexDialogActionBase { - type: 'ConfirmIntent'; - intentName: string; - slots: { [name: string]: string | null }; -} - -export interface LexDialogActionDelegate { - type: 'Delegate'; - slots: { [name: string]: string | null }; -} - -export type LexDialogAction = - | LexDialogActionClose - | LexDialogActionElicitIntent - | LexDialogActionElicitSlot - | LexDialogActionConfirmIntent - | LexDialogActionDelegate; - -export interface LexResult { - sessionAttributes?: { [key: string]: string }; - dialogAction: LexDialogAction; -} - -/** - * AWS Lambda handler function. - * http://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-handler.html - * - * @param event – event data. - * @param context – runtime information of the Lambda function that is executing. - * @param callback – optional callback to return information to the caller, otherwise return value is null. - * @return In the node8.10 runtime, a promise for the lambda result. - */ -export type Handler = ( - event: TEvent, - context: Context, - callback: Callback, -) => void | Promise; - -/** - * Optional callback parameter. - * http://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-handler.html - * - * @param error – an optional parameter that you can use to provide results of the failed Lambda function execution. - * It can be a string for Lambda Proxy Integrations - * https://docs.aws.amazon.com/apigateway/latest/developerguide/handle-errors-in-lambda-integration.html - * @param result – an optional parameter that you can use to provide the result of a successful function execution. The result provided must be JSON.stringify compatible. - */ -export type Callback = (error?: Error | null | string, result?: TResult) => void; - -// Begin defining Handler and Callback types for each API trigger type. -// Ordered by https://docs.aws.amazon.com/lambda/latest/dg/invoking-lambda-function.html -// though that list is incomplete. - -export type S3Handler = Handler; - -export type DynamoDBStreamHandler = Handler; - -export type SNSHandler = Handler; - -// No SESHandler: SES event source is delivered as SNS notifications -// https://docs.aws.amazon.com/lambda/latest/dg/invoking-lambda-function.html#supported-event-source-ses - -// Result type is weird: docs and samples say to return the mutated event, but it only requires an object -// with a "response" field, the type of which is specific to the event.triggerType. Leave as any for now. -export type CognitoUserPoolTriggerHandler = Handler; -// TODO: Different event/handler types for each event trigger so we can type the result? - -export type SQSHandler = Handler; - -// TODO: CognitoSync - -export type CloudFormationCustomResourceHandler = Handler; - -// TODO: CloudWatchEvents - -export type CloudWatchLogsHandler = Handler; - -// TODO: CodeCommit - -export type ScheduledHandler = Handler; - -// TODO: AWS Config - -// TODO: Alexa - -export type LexHandler = Handler; -export type LexCallback = Callback; - -export type APIGatewayProxyHandler = Handler; -export type APIGatewayProxyCallback = Callback; -export type ProxyHandler = APIGatewayProxyHandler; // Old name -export type ProxyCallback = APIGatewayProxyCallback; // Old name - -export type ALBHandler = Handler; -export type ALBCallback = Callback; - -// TODO: IoT - -export type CodePipelineHandler = Handler; - -export type CodePipelineCloudWatchHandler = Handler; -export type CodePipelineCloudWatchPipelineHandler = Handler; -export type CodePipelineCloudWatchStageHandler = Handler; -export type CodePipelineCloudWatchActionHandler = Handler; - -export type CloudFrontRequestHandler = Handler; -export type CloudFrontRequestCallback = Callback; - -export type CloudFrontResponseHandler = Handler; -export type CloudFrontResponseCallback = Callback; - -export type KinesisStreamHandler = Handler; - -export type FirehoseTransformationCallback = Callback; -export type FirehoseTransformationHandler = Handler; - -export type CustomAuthorizerHandler = Handler; -export type CustomAuthorizerCallback = Callback; - -export type S3BatchHandler = Handler; -export type S3BatchCallback = Callback; +// TypeScript Version: 3.0 + +export * from "./handler"; +export * from "./common/api-gateway"; +export * from "./common/cloudfront"; +export * from "./trigger/alb"; +// TODO: export * from "./trigger/alexa"; +export * from "./trigger/api-gateway-authorizer"; +export * from "./trigger/api-gateway-proxy"; +// CloudTrail section just describes using S3 to trigger on cloudtrail changes. +export * from "./trigger/cloudformation-custom-resource"; +export * from "./trigger/cloudfront-request"; +export * from "./trigger/cloudfront-response"; +export * from "./trigger/cloudwatch-events"; +export * from "./trigger/cloudwatch-logs"; +// TODO: export * from "./trigger/codecommit"; +export * from "./trigger/codepipeline"; +export * from "./trigger/codepipeline-cloudwatch"; +export * from "./trigger/codepipeline-cloudwatch-action"; +export * from "./trigger/codepipeline-cloudwatch-pipeline"; +export * from "./trigger/codepipeline-cloudwatch-stage"; +// TODO: export * from "./trigger/cognito-sync"; +export * from "./trigger/cognito-user-pool-trigger"; +// TODO: export * from "./trigger/config"; +export * from "./trigger/dynamodb-stream"; +// ElastiCache section just describes using lambdas in an ElastiCache context (VPC issues, etc.) +// EC2 events are delivered using cloudwatch events... +// TODO: export * from "./trigger/iot"; for "IoT Events" +export * from "./trigger/kinesis-firehose-transformation"; +export * from "./trigger/kinesis-stream"; +export * from "./trigger/lex"; +// RDS events are delivered using SNS events... +export * from "./trigger/s3"; +export * from "./trigger/s3-batch"; +// SES events are delivered using SNS events... +export * from "./trigger/sns"; +export * from "./trigger/sqs"; export as namespace AWSLambda; diff --git a/types/aws-lambda/test/alb-tests.ts b/types/aws-lambda/test/alb-tests.ts new file mode 100644 index 000000000000000..ceeea83fa618404 --- /dev/null +++ b/types/aws-lambda/test/alb-tests.ts @@ -0,0 +1,30 @@ +import { ALBHandler, ALBResult } from "aws-lambda"; + +const handler: ALBHandler = async (event, context, callback) => { + str = event.httpMethod; + str = event.path; + str = event.queryStringParameters![str]; + str = event.headers![str]; + str = event.multiValueQueryStringParameters![str][num]; + str = event.multiValueHeaders![str][num]; + strOrNull = event.body; + bool = event.isBase64Encoded; + str = event.requestContext.elb.targetGroupArn; + + let result: ALBResult = { + statusCode: num, + statusDescription: str, + isBase64Encoded: bool, + }; + result = { + statusCode: num, + statusDescription: str, + headers: { [str]: boolOrNumOrStr }, + multiValueHeaders: { [str]: [boolOrNumOrStr] }, + body: str, + isBase64Encoded: bool, + }; + callback(new Error()); + callback(null, result); + return result; +}; diff --git a/types/aws-lambda/test/api-gateway-tests.ts b/types/aws-lambda/test/api-gateway-tests.ts new file mode 100644 index 000000000000000..540e9aee88a45d8 --- /dev/null +++ b/types/aws-lambda/test/api-gateway-tests.ts @@ -0,0 +1,467 @@ +import { + APIGatewayAuthorizerHandler, + APIGatewayAuthorizerResult, + APIGatewayAuthorizerResultContext, + APIGatewayAuthorizerWithContextHandler, + APIGatewayAuthorizerWithContextResult, + APIGatewayEvent, + APIGatewayEventDefaultAuthorizerContext, + APIGatewayEventLambdaAuthorizerContext, + APIGatewayEventRequestContext, + APIGatewayEventRequestContextWithAuthorizer, + APIGatewayProxyEvent, + APIGatewayProxyHandler, + APIGatewayProxyResult, + APIGatewayProxyWithLambdaAuthorizerEventRequestContext, + APIGatewayProxyWithLambdaAuthorizerHandler, + APIGatewayRequestAuthorizerHandler, + APIGatewayRequestAuthorizerWithContextHandler, + APIGatewayTokenAuthorizerHandler, + APIGatewayTokenAuthorizerWithContextHandler, + AuthResponseContext, + Context, + CustomAuthorizerHandler, + CustomAuthorizerResult, + PolicyDocument, + ProxyCallback, + ProxyHandler, + Statement, +} from "aws-lambda"; + +interface CustomAuthorizerContext extends APIGatewayAuthorizerResultContext { + valid: string | number | boolean | null | undefined; + str: string; + num: number; + bool: boolean; + numOrNull: number | null; + numOrUndefined: number | undefined; + und: undefined; +} + +// Can't serialize objects in the response from an authorizer +interface CustomAuthorizerInvalidResponseContext extends APIGatewayAuthorizerResultContext { + valid: string | number | boolean | null | undefined; + // $ExpectError + invalid: { + id: number; + }; +} + +// Enforce custom response contexts extend APIGatewayAuthorizerResultContext for use in authorizer, +// $ExpectError +type InvalidCustomAuthorizerHandler = APIGatewayAuthorizerWithContextHandler<{ + valid: string | number | boolean | null | undefined; + invalid: { + id: number; + }; +}>; + +// but don't care about in proxy, since it's overkill to force extending an interface if +// its not defined in the same codebase +type ProbablyInvalidCustomProxyHandler = APIGatewayProxyWithLambdaAuthorizerHandler<{ + valid: string | number | boolean | null | undefined; + invalid: { + id: number; + }; +}>; + +let proxyHandler: APIGatewayProxyHandler = async (event, context, callback) => { + strOrNull = event.body; + str = event.headers['example']; + str = event.multiValueHeaders['example'][0]; + str = event.httpMethod; + bool = event.isBase64Encoded; + str = event.path; + str = event.pathParameters!['example']; + str = event.queryStringParameters!['example']; + str = event.multiValueQueryStringParameters!['example'][0]; + str = event.stageVariables!['example']; + let requestContext: APIGatewayEventRequestContext; + requestContext = event.requestContext; + let requestContextWithCustomAuthorizer: APIGatewayEventRequestContextWithAuthorizer; + // $ExpectError + requestContextWithCustomAuthorizer = event.requestContext; + str = event.resource; + + str = requestContext.protocol; + str = requestContext.accountId; + str = requestContext.apiId; + const authContext: APIGatewayEventDefaultAuthorizerContext = requestContext.authorizer; + if (authContext) { + // Anything goes by default + str = authContext.claims[str]; + str = authContext.principalId; + num = authContext.integrationLatency; + // Even probable mistakes: lambda contexts properties are converted to string + num = authContext.num; + } + numOrUndefined = requestContext.connectedAt; + strOrUndefined = requestContext.connectionId; + strOrUndefined = requestContext.domainName; + strOrUndefined = requestContext.eventType; + strOrUndefined = requestContext.extendedRequestId; + str = requestContext.httpMethod; + strOrNull = requestContext.identity.accessKey; + strOrNull = requestContext.identity.accountId; + strOrNull = requestContext.identity.apiKey; + strOrNull = requestContext.identity.apiKeyId; + strOrNull = requestContext.identity.caller; + strOrNull = requestContext.identity.cognitoAuthenticationProvider; + strOrNull = requestContext.identity.cognitoAuthenticationType; + strOrNull = requestContext.identity.cognitoIdentityId; + strOrNull = requestContext.identity.cognitoIdentityPoolId; + strOrNull = requestContext.identity.principalOrgId; + str = requestContext.identity.sourceIp; + strOrNull = requestContext.identity.user; + strOrNull = requestContext.identity.userAgent; + strOrNull = requestContext.identity.userArn; + strOrUndefined = requestContext.messageDirection; + strOrUndefinedOrNull = requestContext.messageId; + str = requestContext.path; + str = requestContext.stage; + str = requestContext.requestId; + strOrUndefined = requestContext.requestTime; + str = requestContext.resourceId; + str = requestContext.resourcePath; + strOrUndefined = requestContext.routeKey; + + const result = createProxyResult(); + + callback(new Error()); + callback(null, result); + return result; +}; + +const proxyHandlerWithCustomAuthorizer: APIGatewayProxyWithLambdaAuthorizerHandler = async (event, context, callback) => { + // standard fields... + strOrNull = event.body; + str = event.headers['example']; + str = event.multiValueHeaders['example'][0]; + + // It seems like it would be easy to make this mistake, but it's still a useful type. + let requestContextWithAuthorizerDirectly: APIGatewayEventRequestContextWithAuthorizer; + // $ExpectError + requestContextWithAuthorizerDirectly = event.requestContext; + + // Check assignable to named types + let requestContext: APIGatewayProxyWithLambdaAuthorizerEventRequestContext; + requestContext = event.requestContext; + + let authorizer: APIGatewayEventLambdaAuthorizerContext; + authorizer = requestContext.authorizer; + + // And it can be converted down to the basic type + const basicEvent: APIGatewayProxyEvent = event; + const basicRequestContext: APIGatewayEventRequestContext = event.requestContext; + + // All non-null or undefined types are converted to string. + str = authorizer.valid; + str = authorizer.str; + str = authorizer.num; + str = authorizer.bool; + strOrNull = authorizer.numOrNull; + strOrUndefined = authorizer.numOrUndefined; + // And these extra properties are added + str = authorizer.principalId; + num = authorizer.integrationLatency; + + const result = createProxyResult(); + + callback(new Error()); + callback(null, result); + + return result; +}; + +function createProxyResult(): APIGatewayProxyResult { + let result: APIGatewayProxyResult = { + statusCode: num, + body: str, + }; + result = { + statusCode: num, + headers: { + [str]: str, + [str]: bool, + [str]: num, + }, + multiValueHeaders: { + [str]: [str, bool, num], + }, + isBase64Encoded: true, + body: str, + }; + return result; +} + +const authorizer: APIGatewayAuthorizerHandler = async (event, context, callback) => { + if (event.type === "TOKEN") { + str = event.methodArn; + str = event.authorizationToken; + str = event.resource; // $ExpectError + } else { + event.type; // $ExpectType "REQUEST" + str = event.methodArn; // $ExpectError + str = event.resource; + } + + let result: APIGatewayAuthorizerResult = createAuthorizerResult(); + // Can convert down to existing type + result = createAuthorizerResultWithCustomContext(); + + callback(new Error()); + callback(null, result); + return result; +}; + +const authorizerWithCustomContext: APIGatewayAuthorizerWithContextHandler = async (event, context, callback) => { + if (event.type === "TOKEN") { + str = event.methodArn; + str = event.authorizationToken; + str = event.resource; // $ExpectError + } else { + event.type; // $ExpectType "REQUEST" + str = event.methodArn; // $ExpectError + str = event.resource; + } + + let result: APIGatewayAuthorizerWithContextResult; + result = createAuthorizerResultWithCustomContext(); + + // Can't convert up from existing type + // $ExpectError + result = createAuthorizerResult(); + + callback(new Error()); + callback(null, result); + return result; +}; + +const tokenAuthorizer: APIGatewayTokenAuthorizerHandler = async (event, context, callback) => { + event.type; // $ExpectType "TOKEN" + + str = event.type; + str = event.methodArn; + str = event.authorizationToken; + strOrUndefined = event.resource; // $ExpectError + // etc... + + const result = createAuthorizerResult(); + + callback(new Error()); + callback(null, result); + return result; +}; + +const tokenAuthorizerWithCustomContext: APIGatewayTokenAuthorizerWithContextHandler = async (event, context, callback) => { + event.type; // $ExpectType "TOKEN" + + str = event.type; + str = event.methodArn; + str = event.authorizationToken; + strOrUndefined = event.resource; // $ExpectError + // etc... + + const result = createAuthorizerResultWithCustomContext(); + + callback(new Error()); + callback(null, result); + return result; +}; + +const requestAuthorizer: APIGatewayRequestAuthorizerHandler = async (event, context, callback) => { + event.type; // $ExpectType "REQUEST" + + str = event.type; + str = event.methodArn; // $ExpectError + str = event.authorizationToken; // $ExpectError + str = event.resource; + str = event.path; + str = event.httpMethod; + if (event.headers !== null) + str = event.headers[str]; + if (event.multiValueHeaders !== null) + str = event.multiValueHeaders[str][num]; + if (event.pathParameters !== null) + str = event.pathParameters[str]; + if (event.queryStringParameters !== null) + str = event.queryStringParameters[str]; + if (event.multiValueQueryStringParameters !== null) + str = event.multiValueQueryStringParameters[str][num]; + if (event.stageVariables !== null) + str = event.stageVariables[str]; + const requestContext: APIGatewayEventRequestContext = event.requestContext; + str = event.domainName; + str = event.apiId; + + const result = createAuthorizerResult(); + + callback(new Error()); + callback(null, result); + return result; +}; + +const requestAuthorizerWithCustomContext: APIGatewayRequestAuthorizerWithContextHandler = async (event, context, callback) => { + event.type; // $ExpectType "REQUEST" + + str = event.type; + str = event.methodArn; // $ExpectError + str = event.authorizationToken; // $ExpectError + + const result = createAuthorizerResultWithCustomContext(); + + callback(new Error()); + callback(null, result); + return result; +}; + +const legacyAuthorizerHandler: CustomAuthorizerHandler = async (event, context, callback) => { + str = event.type; + str = event.methodArn; + strOrUndefined = event.authorizationToken; + strOrUndefined = event.resource; + strOrUndefined = event.path; + strOrUndefined = event.httpMethod; + str = event.headers![str]; + str = event.multiValueHeaders![str][num]; + str = event.pathParameters![str]; + str = event.queryStringParameters![str]; + str = event.multiValueQueryStringParameters![str][num]; + str = event.stageVariables![str]; + let requestContext: APIGatewayEventRequestContext; + requestContext = event.requestContext!; + strOrUndefined = event.domainName; + strOrUndefined = event.apiId; + + const result = createAuthorizerResult(); + + callback(new Error()); + callback(null, result); + return result; +}; + +function createPolicyDocument(): PolicyDocument { + let statement: Statement = { + Action: str, + Effect: str, + Resource: str, + }; + + // $ExpectError + statement = { Effect: str, Action: str, Principal: 123, }; + + // Bad Resource + // $ExpectError + statement = { Effect: str, Action: str, Resource: 123, }; + + // Bad Resource with valid Principal + // $ExpectError + statement = { Effect: str, Action: str, Principal: { Service: str }, Resource: 123, }; + + // Bad principal with valid Resource + // $ExpectError + statement = { Effect: str, Action: str, Principal: 123, Resource: str, }; + + // No Effect + // $ExpectError + statement = { Action: str, Principal: str }; + + statement = { + Sid: str, + Action: [str, str], + Effect: str, + Resource: [str, str], + Condition: { + condition1: { key: 'value' }, + condition2: [ + { + key1: 'value', + key2: 'value', + }, + { + key3: 'value', + }, + ], + }, + Principal: [str, str], + NotPrincipal: [str, str], + }; + + statement = { Action: str, Principal: str, Effect: str }; + + statement = { Action: str, NotPrincipal: { Service: str }, Effect: str }; + + statement = { Effect: str, NotAction: str, NotResource: str }; + + let policyDocument: PolicyDocument = { Version: str, Statement: [statement] }; + + policyDocument = { Version: str, Statement: [statement, statement] }; + + return policyDocument; +} + +function createAuthorizerResultWithCustomContext(): APIGatewayAuthorizerWithContextResult { + let result: APIGatewayAuthorizerWithContextResult; + + // Requires context + // $ExpectError + result = { + principalId: str, + policyDocument: createPolicyDocument(), + usageIdentifierKey: strOrUndefinedOrNull, + }; + + // Invalid context + result = { + principalId: str, + policyDocument: createPolicyDocument(), + context: {}, // $ExpectError + usageIdentifierKey: strOrUndefinedOrNull, + }; + + result = { + principalId: str, + policyDocument: createPolicyDocument(), + context: { + valid: [str, num, bool, null, undefined][num], + str, + num, + bool, + numOrNull: [num, null][num], + numOrUndefined: [num, undefined][num], + und: undefined, + }, + }; + + return result; +} + +function createAuthorizerResult(): APIGatewayAuthorizerResult { + const policyDocument = createPolicyDocument(); + + const authResponseContext: AuthResponseContext = { + stringKey: str, + numberKey: num, + booleanKey: bool, + [str]: [str, num, bool][num], // string | number | bool + }; + + let result: CustomAuthorizerResult = { + principalId: str, + policyDocument, + context: authResponseContext, + usageIdentifierKey: strOrUndefinedOrNull, + }; + + result = { + principalId: str, + policyDocument, + }; + + return result; +} + +// Test old names +const oldNameProxyHandler: ProxyHandler = (event: APIGatewayEvent, context: Context, cb: ProxyCallback) => {}; + +proxyHandler = oldNameProxyHandler; diff --git a/types/aws-lambda/test/cloudformation-tests.ts b/types/aws-lambda/test/cloudformation-tests.ts new file mode 100644 index 000000000000000..ffcceca2d0dc38b --- /dev/null +++ b/types/aws-lambda/test/cloudformation-tests.ts @@ -0,0 +1,74 @@ +import { + CloudFormationCustomResourceFailedResponse, + CloudFormationCustomResourceHandler, + CloudFormationCustomResourceResponse, CloudFormationCustomResourceSuccessResponse, +} from "aws-lambda"; + +const handler: CloudFormationCustomResourceHandler = async (event, context, callback) => { + switch (event.RequestType) { + case 'Create': + str = event.LogicalResourceId; + str = event.RequestId; + anyObj = event.ResourceProperties; + str = event.ResourceProperties.ServiceToken; + str = event.ResourceType; + str = event.ResponseURL; + str = event.ServiceToken; + str = event.StackId; + break; + case 'Update': + anyObj = event.OldResourceProperties; + break; + case 'Delete': + str = event.PhysicalResourceId; + break; + } + + let response: CloudFormationCustomResourceResponse; + response = { + Data: { + [str]: anyObj, + }, + LogicalResourceId: str, + PhysicalResourceId: str, + Reason: strOrUndefined, + RequestId: str, + StackId: str, + Status: "SUCCESS", + NoEcho: boolOrUndefined, + }; + + let successResponse: CloudFormationCustomResourceSuccessResponse; + let failedResponse: CloudFormationCustomResourceFailedResponse; + successResponse = { + LogicalResourceId: str, + PhysicalResourceId: str, + RequestId: str, + StackId: str, + Status: "SUCCESS", + }; + successResponse = { + Data: anyObj, + LogicalResourceId: str, + PhysicalResourceId: str, + Reason: strOrUndefined, + RequestId: str, + StackId: str, + Status: "SUCCESS", + NoEcho: boolOrUndefined, + }; + failedResponse = { + Data: anyObj, + LogicalResourceId: str, + PhysicalResourceId: str, + Reason: str, + RequestId: str, + StackId: str, + Status: "FAILED", + }; + response = successResponse; + response = failedResponse; + + callback(); + callback(new Error()); +}; diff --git a/types/aws-lambda/test/cloudfront-tests.ts b/types/aws-lambda/test/cloudfront-tests.ts new file mode 100644 index 000000000000000..5b141ae205af2fe --- /dev/null +++ b/types/aws-lambda/test/cloudfront-tests.ts @@ -0,0 +1,279 @@ +import { + CloudFrontHeaders, + CloudFrontRequestEvent, + CloudFrontRequestHandler, + CloudFrontRequestResult, + CloudFrontResponseEvent, + CloudFrontResponseHandler, + CloudFrontResponseResult, + CloudFrontS3Origin, + CloudFrontCustomOrigin, +} from "aws-lambda"; + +// TODO: Update test to read all event properties, and write all result +// properties, like the user will. + +const cloudFrontHeaders: CloudFrontHeaders = { + 'content-type': [{ value: 'text/plain' }], + 'x-foo-bar': [{ key: 'X-Foo-Bar', value: 'example' }], +}; + +const requestHandler: CloudFrontRequestHandler = async (event, context, cb) => { + event = requestWithCustomOriginEvent; + // $ExpectType CloudFrontRequestEvent + event; + let request = event.Records[0].cf.request; + + let s3Origin: CloudFrontS3Origin = { + authMethod: 'none', + customHeaders: {}, + domainName: 'example.com', + path: '/', + region: 'us-east-1', + }; + + if (request.origin && request.origin.custom) { + request.origin.custom.domainName; + request.origin.custom.domainName = 'example2.com'; + + // $ExpectError + s3Origin = request.origin.s3; + + // $ExpectError + request.origin.s3.path = '/'; + } + + let customOrigin: CloudFrontCustomOrigin = { + customHeaders: {}, + domainName: 'example.com', + keepaliveTimeout: 60, + path: '/', + port: 80, + protocol: 'http', + readTimeout: 30, + sslProtocols: [], + }; + + event = requestWithS3OriginEvent; + // $ExpectType CloudFrontRequestEvent + event; + request = event.Records[0].cf.request; + if (request.origin && request.origin.s3) { + request.origin.s3.path; + request.origin.s3.path = '/new_path'; + + // $ExpectError + customOrigin = request.origin.custom; + + // $ExpectError + request.origin.custom.path = '/'; + } + + let result: CloudFrontRequestResult; + // Result can be either nullish (use current request), a replaced request, or an immediate response + result = undefined; + result = null; + result = { clientIp: str, method: str, uri: str, querystring: str, headers: cloudFrontHeaders }; + result = { status: str }; + result = { status: str, statusDescription: str, headers: cloudFrontHeaders, bodyEncoding: "text", body: str }; + // $ExpectError + result = {}; + + cb(new Error()); + cb(null, result); + return result; +}; + +const responseHandler: CloudFrontResponseHandler = async (event, context, callback) => { + let result: CloudFrontResponseResult; + // Result can be either nullish (use current response) or a replaced response, but not a request + result = undefined; + result = null; + result = { status: str }; + // $ExpectError + result = { clientIp: str, method: str, uri: str, querystring: str, headers: cloudFrontHeaders }; + result = { status: str, statusDescription: str, headers: cloudFrontHeaders, bodyEncoding: "text", body: str }; + result = { status: str, bodyEncoding: "base64", body: str }; + // $ExpectError + result = { status: str, bodyEncoding: "invalid-encoding", body: str }; + + callback(new Error()); + callback(null, result); + return result; +}; + +/* CloudFront events, see http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html */ + +const requestWithCustomOriginEvent: CloudFrontRequestEvent = { + Records: [ + { + cf: { + config: { + distributionDomainName: 'd123.cloudfront.net', + distributionId: 'EDFDVBD6EXAMPLE', + eventType: 'viewer-request', + requestId: 'MRVMF7KydIvxMWfJIglgwHQwZsbG2IhRJ07sn9AkKUFSHS9EXAMPLE==', + }, + request: { + body: { + action: 'read-only', + data: 'eyJ1c2VybmFtZSI6IkxhbWJkYUBFZGdlIiwiY29tbWVudCI6IlRoaXMgaXMgcmVxdWVzdCBib2R5In0=', + encoding: 'base64', + inputTruncated: false, + }, + clientIp: '2001:0db8:85a3:0:0:8a2e:0370:7334', + querystring: 'size=large', + uri: '/picture.jpg', + method: 'GET', + headers: { + host: [ + { + key: 'Host', + value: 'd111111abcdef8.cloudfront.net', + }, + ], + 'user-agent': [ + { + key: 'User-Agent', + value: 'curl/7.51.0', + }, + ], + }, + origin: { + custom: { + customHeaders: { + 'my-origin-custom-header': [ + { + key: 'My-Origin-Custom-Header', + value: 'Test', + }, + ], + }, + domainName: 'example.com', + keepaliveTimeout: 5, + path: '/custom_path', + port: 443, + protocol: 'https', + readTimeout: 5, + sslProtocols: ['TLSv1', 'TLSv1.1'], + }, + }, + }, + }, + }, + ], +}; + +const requestWithS3OriginEvent: CloudFrontRequestEvent = { + Records: [ + { + cf: { + config: { + distributionDomainName: 'd123.cloudfront.net', + distributionId: 'EDFDVBD6EXAMPLE', + eventType: 'viewer-request', + requestId: 'MRVMF7KydIvxMWfJIglgwHQwZsbG2IhRJ07sn9AkKUFSHS9EXAMPLE==', + }, + request: { + body: { + action: 'read-only', + data: 'eyJ1c2VybmFtZSI6IkxhbWJkYUBFZGdlIiwiY29tbWVudCI6IlRoaXMgaXMgcmVxdWVzdCBib2R5In0=', + encoding: 'base64', + inputTruncated: false, + }, + clientIp: '2001:0db8:85a3:0:0:8a2e:0370:7334', + querystring: 'size=large', + uri: '/picture.jpg', + method: 'GET', + headers: { + host: [ + { + key: 'Host', + value: 'd111111abcdef8.cloudfront.net', + }, + ], + 'user-agent': [ + { + key: 'User-Agent', + value: 'curl/7.51.0', + }, + ], + }, + origin: { + s3: { + authMethod: 'origin-access-identity', + customHeaders: { + 'my-origin-custom-header': [ + { + key: 'My-Origin-Custom-Header', + value: 'Test', + }, + ], + }, + domainName: 'my-bucket.s3.amazonaws.com', + path: '/s3_path', + region: 'us-east-1', + }, + }, + }, + }, + }, + ], +}; + +const responseEvent: CloudFrontResponseEvent = { + Records: [ + { + cf: { + config: { + distributionDomainName: 'd123.cloudfront.net', + distributionId: 'EDFDVBD6EXAMPLE', + eventType: 'viewer-response', + requestId: 'xGN7KWpVEmB9Dp7ctcVFQC4E-nrcOcEKS3QyAez--06dV7TEXAMPLE==', + }, + request: { + clientIp: '2001:0db8:85a3:0:0:8a2e:0370:7334', + method: 'GET', + uri: '/picture.jpg', + querystring: 'size=large', + headers: { + host: [ + { + key: 'Host', + value: 'd111111abcdef8.cloudfront.net', + }, + ], + 'user-agent': [ + { + key: 'User-Agent', + value: 'curl/7.18.1', + }, + ], + }, + }, + response: { + status: '200', + statusDescription: 'OK', + headers: { + server: [ + { + key: 'Server', + value: 'MyCustomOrigin', + }, + ], + 'set-cookie': [ + { + key: 'Set-Cookie', + value: 'theme=light', + }, + { + key: 'Set-Cookie', + value: 'sessionToken=abc123; Expires=Wed, 09 Jun 2021 10:18:14 GMT', + }, + ], + }, + }, + }, + }, + ], +}; diff --git a/types/aws-lambda/test/cloudwatch-tests.ts b/types/aws-lambda/test/cloudwatch-tests.ts new file mode 100644 index 000000000000000..815d2bc61c0801c --- /dev/null +++ b/types/aws-lambda/test/cloudwatch-tests.ts @@ -0,0 +1,45 @@ +/// + +import { + CloudWatchLogsDecodedData, + CloudWatchLogsHandler, + CloudWatchLogsLogEvent, + ScheduledHandler, +} from "aws-lambda"; + +import { gunzipSync } from "zlib"; + +const logsHandler: CloudWatchLogsHandler = async (event, context, callback) => { + const data: CloudWatchLogsDecodedData = JSON.parse( + gunzipSync(Buffer.from(event.awslogs.data, "base64")).toString() + ); + + str = data.owner; + str = data.logGroup; + str = data.logStream; + str = data.subscriptionFilters[0]; + str = data.messageType; + + const logEvent: CloudWatchLogsLogEvent = data.logEvents[0]; + str = logEvent.id; + num = logEvent.timestamp; + str = logEvent.message; + str = logEvent.extractedFields!['example']; + + callback(); + callback(new Error()); +}; + +// Technically part of cloudwatch +const scheduledHandler: ScheduledHandler = async (event, context, callback) => { + str = event.account; + anyObj = event.detail; + str = event.id; + str = event.region; + str = event.resources[0]; + str = event.source; + str = event.time; + + callback(); + callback(new Error()); +}; diff --git a/types/aws-lambda/test/codepipeline-tests.ts b/types/aws-lambda/test/codepipeline-tests.ts new file mode 100644 index 000000000000000..7d481dd9a0de074 --- /dev/null +++ b/types/aws-lambda/test/codepipeline-tests.ts @@ -0,0 +1,77 @@ +import { CodePipelineCloudWatchEvent, CodePipelineEvent } from "aws-lambda"; + +// TODO + +/* CodePipeline events https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-invoke-lambda-function.html#actions-invoke-lambda-function-json-event-example */ +const CodePipelineEvent: CodePipelineEvent = { + 'CodePipeline.job': { + id: '11111111-abcd-1111-abcd-111111abcdef', + accountId: '111111111111', + data: { + actionConfiguration: { + configuration: { + FunctionName: 'MyLambdaFunctionForAWSCodePipeline', + UserParameters: 'some-input-such-as-a-URL', + }, + }, + inputArtifacts: [ + { + location: { + s3Location: { + bucketName: + 'the name of the bucket configured as the pipeline artifact store in Amazon S3, for example codepipeline-us-east-2-1234567890', + objectKey: 'the name of the application, for example CodePipelineDemoApplication.zip', + }, + type: 'S3', + }, + revision: null, + name: 'ArtifactName', + }, + ], + outputArtifacts: [], + artifactCredentials: { + secretAccessKey: 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY', + sessionToken: `MIICiTCCAfICCQD6m7oRw0uXOjANBgkqhkiG9w + 0BAQUFADCBiDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdTZ + WF0dGxlMQ8wDQYDVQQKEwZBbWF6b24xFDASBgNVBAsTC0lBTSBDb25zb2xlMRIw + EAYDVQQDEwlUZXN0Q2lsYWMxHzAdBgkqhkiG9w0BCQEWEG5vb25lQGFtYXpvbi5 + jb20wHhcNMTEwNDI1MjA0NTIxWhcNMTIwNDI0MjA0NTIxWjCBiDELMAkGA1UEBh + MCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdTZWF0dGxlMQ8wDQYDVQQKEwZBb + WF6b24xFDASBgNVBAsTC0lBTSBDb25zb2xlMRIwEAYDVQQDEwlUZXN0Q2lsYWMx + HzAdBgkqhkiG9w0BCQEWEG5vb25lQGFtYXpvbi5jb20wgZ8wDQYJKoZIhvcNAQE + BBQADgY0AMIGJAoGBAMaK0dn+a4GmWIWJ21uUSfwfEvySWtC2XADZ4nB+BLYgVI + k60CpiwsZ3G93vUEIO3IyNoH/f0wYK8m9TrDHudUZg3qX4waLG5M43q7Wgc/MbQ + ITxOUSQv7c7ugFFDzQGBzZswY6786m86gpEIbb3OhjZnzcvQAaRHhdlQWIMm2nr + AgMBAAEwDQYJKoZIhvcNAQEFBQADgYEAtCu4nUhVVxYUntneD9+h8Mg9q6q+auN + KyExzyLwaxlAoo7TJHidbtS4J5iNmZgXL0FkbFFBjvSfpJIlJ00zbhNYS5f6Guo + EDmFJl0ZxBHjJnyp378OD8uTs7fLvjx79LjSTbNYiytVbZPQUQ5Yaxu2jXnimvw + 3rrszlaEXAMPLE=`, + accessKeyId: 'AKIAIOSFODNN7EXAMPLE', + }, + continuationToken: 'A continuation token if continuing job', + }, + }, +}; + +CodePipelineEvent['CodePipeline.job'].data.encryptionKey = { type: 'KMS', id: 'key' }; + +/* CodePipeline CloudWatch Events + * see https://docs.aws.amazon.com/codepipeline/latest/userguide/detect-state-changes-cloudwatch-events.html + * Their documentation says that detail.version is a string, but it is actually an integer + */ +const CodePipelineCloudWatchEvent: CodePipelineCloudWatchEvent = { + version: '0', + id: 'event_Id', + 'detail-type': 'CodePipeline Pipeline Execution State Change', + source: 'aws.codepipeline', + account: 'Pipeline_Account', + time: 'TimeStamp', + region: 'us-east-1', + resources: ['arn:aws:codepipeline:us-east-1:account_ID:myPipeline'], + detail: { + pipeline: 'myPipeline', + version: 1, + state: 'STARTED', + 'execution-id': 'execution_Id', + }, +}; diff --git a/types/aws-lambda/test/cognito-tests.ts b/types/aws-lambda/test/cognito-tests.ts new file mode 100644 index 000000000000000..c8330a03d1b66a1 --- /dev/null +++ b/types/aws-lambda/test/cognito-tests.ts @@ -0,0 +1,115 @@ +// TODO: Update test to read all event properties, and write all result +// properties, like the user will. + +import { CognitoUserPoolTriggerHandler } from "aws-lambda"; + +const handler: CognitoUserPoolTriggerHandler = async (event, context, callback) => { + num = event.version; + event.triggerSource === 'PreSignUp_SignUp'; + event.triggerSource === 'PreSignUp_ExternalProvider'; + event.triggerSource === 'PostConfirmation_ConfirmSignUp'; + event.triggerSource === 'PreAuthentication_Authentication'; + event.triggerSource === 'PostAuthentication_Authentication'; + event.triggerSource === 'CustomMessage_SignUp'; + event.triggerSource === 'CustomMessage_AdminCreateUser'; + event.triggerSource === 'CustomMessage_ResendCode'; + event.triggerSource === 'CustomMessage_ForgotPassword'; + event.triggerSource === 'CustomMessage_UpdateUserAttribute'; + event.triggerSource === 'CustomMessage_VerifyUserAttribute'; + event.triggerSource === 'CustomMessage_Authentication'; + event.triggerSource === 'DefineAuthChallenge_Authentication'; + event.triggerSource === 'CreateAuthChallenge_Authentication'; + event.triggerSource === 'VerifyAuthChallengeResponse_Authentication'; + event.triggerSource === 'PreSignUp_AdminCreateUser'; + event.triggerSource === 'PostConfirmation_ConfirmForgotPassword'; + event.triggerSource === 'TokenGeneration_HostedAuth'; + event.triggerSource === 'TokenGeneration_Authentication'; + event.triggerSource === 'TokenGeneration_NewPasswordChallenge'; + event.triggerSource === 'TokenGeneration_AuthenticateDevice'; + event.triggerSource === 'TokenGeneration_RefreshTokens'; + event.triggerSource === 'UserMigration_Authentication'; + event.triggerSource === 'UserMigration_ForgotPassword'; + // $ExpectError + event.triggerSource === 'NoSuch_Trigger'; + + str = event.region; + str = event.userPoolId; + strOrUndefined = event.userName; + str = event.callerContext.awsSdkVersion; + str = event.callerContext.clientId; + str = event.request.userAttributes['email']; + str = event.request.validationData!['k1']; + strOrUndefined = event.request.codeParameter; + strOrUndefined = event.request.linkParameter; + strOrUndefined = event.request.usernameParameter; + boolOrUndefined = event.request.newDeviceUsed; + event.request.session![0].challengeName === 'CUSTOM_CHALLENGE'; + event.request.session![0].challengeName === 'PASSWORD_VERIFIER'; + event.request.session![0].challengeName === 'SMS_MFA'; + event.request.session![0].challengeName === 'DEVICE_SRP_AUTH'; + event.request.session![0].challengeName === 'DEVICE_PASSWORD_VERIFIER'; + event.request.session![0].challengeName === 'ADMIN_NO_SRP_AUTH'; + bool = event.request.session![0].challengeResult; + strOrUndefined = event.request.session![0].challengeMetadata; + strOrUndefined = event.request.challengeName; + str = event.request.privateChallengeParameters!['answer']; + str = event.request.challengeAnswer!; + strOrUndefined = event.request.password; + str = event.request.clientMetadata!['action']; + boolOrUndefined = event.response.answerCorrect; + strOrUndefined = event.response.smsMessage; + strOrUndefined = event.response.emailMessage; + strOrUndefined = event.response.emailSubject; + strOrUndefined = event.response.challengeName; + boolOrUndefined = event.response.issueTokens; + boolOrUndefined = event.response.failAuthentication; + str = event.response.publicChallengeParameters!['captchaUrl']; + str = event.response.privateChallengeParameters!['answer']; + strOrUndefined = event.response.challengeMetadata; + boolOrUndefined = event.response.answerCorrect; + str = event.response.userAttributes!['username']; + event.response.finalUserStatus === 'CONFIRMED'; + event.response.finalUserStatus === 'RESET_REQUIRED'; + event.response.messageAction === 'SUPPRESS'; + event.response.desiredDeliveryMediums === ['EMAIL']; + event.response.desiredDeliveryMediums === ['SMS']; + event.response.desiredDeliveryMediums === ['SMS', 'EMAIL']; + boolOrUndefined = event.response.forceAliasCreation; + + // From AWS examples + event.response = { + claimsOverrideDetails: { + claimsToAddOrOverride: { + attribute_key2: 'attribute_value2', + attribute_key: 'attribute_value', + }, + claimsToSuppress: ['email'], + }, + }; + event.response = { + claimsOverrideDetails: { + claimsToAddOrOverride: { + attribute_key2: 'attribute_value2', + attribute_key: 'attribute_value', + }, + claimsToSuppress: ['email'], + groupOverrideDetails: { + groupsToOverride: ['group-A', 'group-B', 'group-C'], + iamRolesToOverride: [ + 'arn:aws:iam::XXXXXXXXXXXX:role/sns_callerA', + 'arn:aws:iam::XXXXXXXXX:role/sns_callerB', + 'arn:aws:iam::XXXXXXXXXX:role/sns_callerC', + ], + preferredRole: 'arn:aws:iam::XXXXXXXXXXX:role/sns_caller', + }, + }, + }; + event.response.claimsOverrideDetails!.groupOverrideDetails = null; + + callback(new Error()); + callback(null, event); + callback(null, { + response: event.response, + }); + return event; +}; diff --git a/types/aws-lambda/test/dynamodb-tests.ts b/types/aws-lambda/test/dynamodb-tests.ts new file mode 100644 index 000000000000000..9f043de9cede87f --- /dev/null +++ b/types/aws-lambda/test/dynamodb-tests.ts @@ -0,0 +1,98 @@ +import { DynamoDBStreamEvent } from "aws-lambda"; + +// TODO: Update test to read all event properties, and write all result +// properties, like the user will. + +const event: DynamoDBStreamEvent = { + Records: [ + { + eventID: '1', + eventVersion: '1.0', + dynamodb: { + Keys: { + Id: { + N: '101', + }, + }, + NewImage: { + Message: { + S: 'New item!', + }, + Id: { + N: '101', + }, + }, + StreamViewType: 'NEW_AND_OLD_IMAGES', + SequenceNumber: '111', + SizeBytes: 26, + }, + awsRegion: 'us-west-2', + eventName: 'INSERT', + eventSourceARN: + 'arn:aws:dynamodb:us-west-2:account-id:table/ExampleTableWithStream/stream/2015-06-27T00:48:05.899', + eventSource: 'aws:dynamodb', + }, + { + eventID: '2', + eventVersion: '1.0', + dynamodb: { + OldImage: { + Message: { + S: 'New item!', + }, + Id: { + N: '101', + }, + }, + SequenceNumber: '222', + Keys: { + Id: { + N: '101', + }, + }, + SizeBytes: 59, + NewImage: { + Message: { + S: 'This item has changed', + }, + Id: { + N: '101', + }, + }, + StreamViewType: 'NEW_AND_OLD_IMAGES', + }, + awsRegion: 'us-west-2', + eventName: 'MODIFY', + eventSourceARN: + 'arn:aws:dynamodb:us-west-2:account-id:table/ExampleTableWithStream/stream/2015-06-27T00:48:05.899', + eventSource: 'aws:dynamodb', + }, + { + eventID: '3', + eventVersion: '1.0', + dynamodb: { + Keys: { + Id: { + N: '101', + }, + }, + SizeBytes: 38, + SequenceNumber: '333', + OldImage: { + Message: { + S: 'This item has changed', + }, + Id: { + N: '101', + }, + }, + StreamViewType: 'NEW_AND_OLD_IMAGES', + }, + awsRegion: 'us-west-2', + eventName: 'REMOVE', + eventSourceARN: + 'arn:aws:dynamodb:us-west-2:account-id:table/ExampleTableWithStream/stream/2015-06-27T00:48:05.899', + eventSource: 'aws:dynamodb', + }, + ], +}; diff --git a/types/aws-lambda/test/kinesis-tests.ts b/types/aws-lambda/test/kinesis-tests.ts new file mode 100644 index 000000000000000..f04dc17a6aa938e --- /dev/null +++ b/types/aws-lambda/test/kinesis-tests.ts @@ -0,0 +1,50 @@ +import { + FirehoseRecordTransformationStatus, + FirehoseTransformationHandler, FirehoseTransformationResult, + KinesisStreamHandler, + KinesisStreamRecord, + KinesisStreamRecordPayload, +} from "aws-lambda"; + +const handler: KinesisStreamHandler = async (event, context, callback) => { + let kinesisStreamRecord: KinesisStreamRecord; + let kinesisStreamRecordPayload: KinesisStreamRecordPayload; + + kinesisStreamRecord = event.Records[num]; + + str = kinesisStreamRecord.awsRegion; + str = kinesisStreamRecord.eventID; + str = kinesisStreamRecord.eventName; + str = kinesisStreamRecord.eventSource; + str = kinesisStreamRecord.eventSourceARN; + str = kinesisStreamRecord.eventVersion; + str = kinesisStreamRecord.invokeIdentityArn; + kinesisStreamRecordPayload = kinesisStreamRecord.kinesis; + + num = kinesisStreamRecordPayload.approximateArrivalTimestamp; + str = kinesisStreamRecordPayload.data; + str = kinesisStreamRecordPayload.kinesisSchemaVersion; + str = kinesisStreamRecordPayload.partitionKey; + str = kinesisStreamRecordPayload.sequenceNumber; + + callback(); + callback(new Error()); +}; + +const firehoseHandler: FirehoseTransformationHandler = async (event, context, callback) => { + str = event.records[0].recordId; + + const result: FirehoseTransformationResult = { + records: [ + { + recordId: event.records[0].recordId, + result: 'Ok' as FirehoseRecordTransformationStatus, + data: 'eyJmb28iOiJiYXIifQ==', + }, + ], + }; + + callback(new Error()); + callback(null, result); + return result; +}; diff --git a/types/aws-lambda/test/lex-tests.ts b/types/aws-lambda/test/lex-tests.ts new file mode 100644 index 000000000000000..408bf451a0eeb39 --- /dev/null +++ b/types/aws-lambda/test/lex-tests.ts @@ -0,0 +1,122 @@ +import { + LexDialogAction, + LexDialogActionBase, + LexDialogActionClose, + LexDialogActionConfirmIntent, + LexDialogActionDelegate, + LexDialogActionElicitIntent, + LexDialogActionElicitSlot, + LexEvent, + LexGenericAttachment, + LexHandler, + LexResult, +} from "aws-lambda"; + +// TODO: Update test to read all event properties, and write all result +// properties, like the user will. + +const handler: LexHandler = async (event, context, callback) => { + lexEvent = event; + + let result: LexResult; + result = { + dialogAction: lexDialogAction, + }; + result = { + sessionAttributes: { + attrib1: 'Value One', + }, + dialogAction: { + type: 'Close', + fulfillmentState: 'Failed', + }, + }; + + callback(new Error()); + callback(null, result); + return result; +}; + +declare let lexEvent: LexEvent; +lexEvent = { + currentIntent: { + name: 'intent-name', + slots: { + slot1: null, + slot2: 'value2', + }, + slotDetails: { + slot1: { + resolutions: [{ value: 'value1' }], + originalValue: 'originalValue', + }, + }, + confirmationStatus: 'None', + }, + bot: { + name: 'bot name', + alias: 'bot alias', + version: 'bot version', + }, + userId: 'User ID specified in the POST request to Amazon Lex.', + inputTranscript: 'Text used to process the request', + invocationSource: 'FulfillmentCodeHook', + outputDialogMode: 'Text', + messageVersion: '1.0', + sessionAttributes: { + key1: 'value1', + key2: 'value2', + }, + requestAttributes: { + key1: 'value1', + key2: 'value2', + }, +}; + +declare let lexDialogAction: LexDialogAction; +declare let lexDialogActionBase: LexDialogActionBase; +declare let lexDialogActionClose: LexDialogActionClose; +declare let lexDialogActionConfirmIntent: LexDialogActionConfirmIntent; +declare let lexDialogActionDelegate: LexDialogActionDelegate; +declare let lexDialogActionElicitIntent: LexDialogActionElicitIntent; +declare let lexDialogActionElicitSlot: LexDialogActionElicitSlot; +declare let lexGenericAttachment: LexGenericAttachment; + +str = lexGenericAttachment.title; +str = lexGenericAttachment.subTitle; +str = lexGenericAttachment.imageUrl; +str = lexGenericAttachment.attachmentLinkUrl; +str = lexGenericAttachment.buttons[0].text; +str = lexGenericAttachment.buttons[0].value; + +lexDialogAction.type === 'Close'; +lexDialogAction.type === 'ConfirmIntent'; +lexDialogAction.type === 'Delegate'; +lexDialogAction.type === 'ElicitIntent'; +lexDialogAction.type === 'ElicitSlot'; + +lexDialogActionBase.message!.contentType === 'CustomPayload'; +lexDialogActionBase.message!.contentType === 'PlainText'; +lexDialogActionBase.message!.contentType === 'SSML'; +str = lexDialogActionBase.message!.content; +num = lexDialogActionBase.responseCard!.version; +lexDialogActionBase.responseCard!.contentType === 'application/vnd.amazonaws.card.generic'; +// $ExpectType LexGenericAttachment +lexDialogActionBase.responseCard!.genericAttachments[0]; + +lexDialogActionClose.type === 'Close'; +lexDialogActionClose.fulfillmentState === 'Failed'; +lexDialogActionClose.fulfillmentState === 'Fulfilled'; + +lexDialogActionConfirmIntent.type === 'ConfirmIntent'; +str = lexDialogActionConfirmIntent.intentName; +strOrNull = lexDialogActionConfirmIntent.slots['example']; + +lexDialogActionDelegate.type === 'Delegate'; +strOrNull = lexDialogActionDelegate.slots['example']; + +lexDialogActionElicitIntent.type === 'ElicitIntent'; +lexDialogActionElicitSlot.type === 'ElicitSlot'; +strOrNull = lexDialogActionElicitSlot.slots['example']; +str = lexDialogActionElicitSlot.slotToElicit; +str = lexDialogActionElicitSlot.intentName; diff --git a/types/aws-lambda/test/s3-tests.ts b/types/aws-lambda/test/s3-tests.ts new file mode 100644 index 000000000000000..65cfa9b78d522c7 --- /dev/null +++ b/types/aws-lambda/test/s3-tests.ts @@ -0,0 +1,102 @@ +import { Callback, Context, S3BatchEvent, S3BatchResult, S3CreateEvent, S3EventRecord, S3Handler } from "aws-lambda"; + +// TODO: Update test to read event properties, like the user will +let handler: S3Handler = async (event, context, callback) => { + callback(new Error()); +}; + +// Test old event name +handler = (event: S3CreateEvent, context: Context, cb: Callback) => {}; + +const record: S3EventRecord = { + eventVersion: '2.1', + eventSource: 'aws:s3', + awsRegion: 'us-east-1', + eventTime: '1970-01-01T00:00:00.000Z', + eventName: 'ObjectRestore:Completed', + userIdentity: { + principalId: 'AIDAJDPLRKLG7UEXAMPLE', + }, + requestParameters: { + sourceIPAddress: '127.0.0.1', + }, + responseElements: { + 'x-amz-request-id': 'C3D13FE58DE4C810', + 'x-amz-id-2': 'FMyUVURIY8/IgAtTv8xRjskZQpcIZ9KG4V5Wp6S7S/JRWeUWerMUE5JgHvANOjpD', + }, + s3: { + s3SchemaVersion: '1.0', + configurationId: 'testConfigRule', + bucket: { + name: 'mybucket', + ownerIdentity: { + principalId: 'A3NL1KOZZKExample', + }, + arn: 'arn:aws:s3:::mybucket', + }, + object: { + key: 'HappyFace.jpg', + size: 1024, + eTag: 'd41d8cd98f00b204e9800998ecf8427e', + versionId: '096fKKXTRTtl3on89fVO.nfljtsv6qko', + sequencer: '0055AED6DCD90281E5', + }, + }, + glacierEventData: { + restoreEventData: { + lifecycleRestorationExpiryTime: '1970-01-01T00:00:00.000Z', + lifecycleRestoreStorageClass: 'glacier-deep-archive', + }, + }, +}; + +const event: S3CreateEvent = { + Records: [record], +}; + +/** + * S3 Batch Operations event + * https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-invoke-lambda.html + */ +const batchEvent: S3BatchEvent = { + invocationSchemaVersion: '1.0', + invocationId: 'foo_invocation_id', + job: { id: 'foo_job_id' }, + tasks: [ + { + taskId: '11111', + s3Key: 'example.json', + s3BucketArn: 'arn:aws:s3:::foo-bucket', + s3VersionId: null, + }, + { + taskId: '11111', + s3Key: 'example.json', + s3BucketArn: 'arn:aws:s3:::foo-bucket', + s3VersionId: 'asdf', + }, + ], +}; + +const batchResult: S3BatchResult = { + invocationSchemaVersion: '1.0', + treatMissingKeysAs: 'PermanentFailure', + invocationId: 'foo_invocation_id', + results: [ + { + taskId: '11111', + resultCode: 'Succeeded', + resultString: 'foo', + }, + { + taskId: '22222', + resultCode: 'TemporaryFailure', + resultString: 'Error: failure', + }, + { + taskId: '33333', + resultCode: 'PermanentFailure', + resultString: 'Error: failure', + }, + ], +}; diff --git a/types/aws-lambda/test/sns-tests.ts b/types/aws-lambda/test/sns-tests.ts new file mode 100644 index 000000000000000..9235de7cff63dbf --- /dev/null +++ b/types/aws-lambda/test/sns-tests.ts @@ -0,0 +1,29 @@ +import { SNSEventRecord, SNSHandler, SNSMessage, SNSMessageAttribute, SNSMessageAttributes } from "aws-lambda"; + +const handler: SNSHandler = async (event, context, callback) => { + const record: SNSEventRecord = event.Records[num]; + + str = record.EventSource; + str = record.EventSubscriptionArn; + str = record.EventVersion; + const message: SNSMessage = record.Sns; + + str = message.SignatureVersion; + str = message.Timestamp; + str = message.Signature; + str = message.SigningCertUrl; + str = message.MessageId; + str = message.Message; + const attributes: SNSMessageAttributes = message.MessageAttributes; + str = message.Type; + str = message.UnsubscribeUrl; + str = message.TopicArn; + str = message.Subject; + + const attribute: SNSMessageAttribute = attributes[str]; + str = attribute.Type; + str = attribute.Value; + + callback(); + callback(new Error()); +}; diff --git a/types/aws-lambda/test/sqs-tests.ts b/types/aws-lambda/test/sqs-tests.ts new file mode 100644 index 000000000000000..a54a1ae346464bb --- /dev/null +++ b/types/aws-lambda/test/sqs-tests.ts @@ -0,0 +1,45 @@ +import { SQSEvent, SQSHandler } from "aws-lambda"; + +// TODO: Update test to read all event properties, like the user will. + +const handler: SQSHandler = async (event, context, callback) => { + str = event.Records[0].messageId; + anyObj = event.Records[0].body; + strOrUndefined = event.Records[0].messageAttributes.testAttr.stringValue; + strOrUndefined = event.Records[0].messageAttributes.testAttr.binaryValue; + str = event.Records[0].messageAttributes.testAttr.dataType; + + callback(); + callback(new Error()); +}; + +// See https://docs.aws.amazon.com/lambda/latest/dg/eventsources.html#eventsources-sqs +const event: SQSEvent = { + Records: [ + { + messageId: 'c80e8021-a70a-42c7-a470-796e1186f753', + receiptHandle: 'AQEBJQ+/u6NsnT5t8Q/VbVxgdUl4TMKZ5FqhksRdIQvLBhwNvADoBxYSOVeCBXdnS9P+', + body: '{"foo":"bar"}', + attributes: { + AWSTraceHeader: 'Root=1-5e58e4c3-71b539e3d6bd4aa29600bf67;Sampled=1', + ApproximateReceiveCount: '3', + SentTimestamp: '1529104986221', + SenderId: '594035263019', + ApproximateFirstReceiveTimestamp: '1529104986230', + }, + messageAttributes: { + testAttr: { + stringValue: '100', + binaryValue: 'base64Str', + stringListValues: [], + binaryListValues: [], + dataType: 'Number', + }, + }, + md5OfBody: '9bb58f26192e4ba00f01e2e7b136bbd8', + eventSource: 'aws:sqs', + eventSourceARN: 'arn:aws:sqs:us-west-2:594035263019:NOTFIFOQUEUE', + awsRegion: 'us-west-2', + }, + ], +}; diff --git a/types/aws-lambda/trigger/alb.d.ts b/types/aws-lambda/trigger/alb.d.ts new file mode 100644 index 000000000000000..9e8408a8e3b9aea --- /dev/null +++ b/types/aws-lambda/trigger/alb.d.ts @@ -0,0 +1,32 @@ +import { Handler, Callback } from "../handler"; + +export type ALBHandler = Handler; +export type ALBCallback = Callback; + +// https://docs.aws.amazon.com/elasticloadbalancing/latest/application/lambda-functions.html +export interface ALBEventRequestContext { + elb: { + targetGroupArn: string; + }; +} + +export interface ALBEvent { + requestContext: ALBEventRequestContext; + httpMethod: string; + path: string; + queryStringParameters?: { [parameter: string]: string }; // URL encoded + headers?: { [header: string]: string }; + multiValueQueryStringParameters?: { [parameter: string]: string[] }; // URL encoded + multiValueHeaders?: { [header: string]: string[] }; + body: string | null; + isBase64Encoded: boolean; +} + +export interface ALBResult { + statusCode: number; + statusDescription: string; + headers?: { [header: string]: boolean | number | string }; + multiValueHeaders?: { [header: string]: Array }; + body?: string; + isBase64Encoded: boolean; +} diff --git a/types/aws-lambda/trigger/api-gateway-authorizer.d.ts b/types/aws-lambda/trigger/api-gateway-authorizer.d.ts new file mode 100644 index 000000000000000..f5a004075efb6df --- /dev/null +++ b/types/aws-lambda/trigger/api-gateway-authorizer.d.ts @@ -0,0 +1,149 @@ +import { + APIGatewayAuthorizerResultContext, + APIGatewayEventDefaultAuthorizerContext, + APIGatewayEventRequestContextWithAuthorizer, +} from "../common/api-gateway"; +import { Callback, Handler } from "../handler"; + +export type APIGatewayAuthorizerHandler = Handler; +export type APIGatewayAuthorizerWithContextHandler = + Handler>; + +export type APIGatewayAuthorizerCallback = Callback; +export type APIGatewayAuthorizerWithContextCallback = + Callback>; + +export type APIGatewayTokenAuthorizerHandler = + Handler; +export type APIGatewayTokenAuthorizerWithContextHandler = + Handler>; + +export type APIGatewayRequestAuthorizerHandler = + Handler; +export type APIGatewayRequestAuthorizerWithContextHandler = + Handler>; + +export type APIGatewayAuthorizerEvent = APIGatewayTokenAuthorizerEvent | APIGatewayRequestAuthorizerEvent; + +export interface APIGatewayTokenAuthorizerEvent { + type: "TOKEN"; + methodArn: string; + authorizationToken: string; +} + +// Note, when invoked by the tester in the AWS web console, the map values can be null, +// but they will be empty objects in the real object. +// Worse, it will include "body" and "isBase64Encoded" properties, unlike the real call! +export interface APIGatewayRequestAuthorizerEvent { + type: "REQUEST"; + resource: string; + path: string; + httpMethod: string; + headers: { [name: string]: string } | null; + multiValueHeaders: { [name: string]: string[] } | null; + pathParameters: { [name: string]: string } | null; + queryStringParameters: { [name: string]: string } | null; + multiValueQueryStringParameters: { [name: string]: string[] } | null; + stageVariables: { [name: string]: string } | null; + requestContext: APIGatewayEventRequestContextWithAuthorizer; + domainName: string; + apiId: string; +} + +export interface APIGatewayAuthorizerResult { + principalId: string; + policyDocument: PolicyDocument; + context?: APIGatewayAuthorizerResultContext | null; + usageIdentifierKey?: string | null; +} + +// Separate type so the context property is required, without pulling complex type magic. +export interface APIGatewayAuthorizerWithContextResult { + principalId: string; + policyDocument: PolicyDocument; + context: TAuthorizerContext; + usageIdentifierKey?: string | null; +} + +// Legacy event / names + +/** @deprecated Use APIGatewayAuthorizerHandler or a subtype */ +export type CustomAuthorizerHandler = Handler; + +// This one is actually fine. +export type CustomAuthorizerCallback = APIGatewayAuthorizerCallback; + +/** @deprecated Use APIGatewayAuthorizerEvent or a subtype */ +export interface CustomAuthorizerEvent { + type: string; + methodArn: string; + authorizationToken?: string; + resource?: string; + path?: string; + httpMethod?: string; + headers?: { [name: string]: string }; + multiValueHeaders?: { [name: string]: string[] }; + pathParameters?: { [name: string]: string } | null; + queryStringParameters?: { [name: string]: string } | null; + multiValueQueryStringParameters?: { [name: string]: string[] } | null; + stageVariables?: { [name: string]: string }; + requestContext?: APIGatewayEventRequestContextWithAuthorizer; + domainName?: string; + apiId?: string; +} + +export type CustomAuthorizerResult = APIGatewayAuthorizerResult; +export type AuthResponse = APIGatewayAuthorizerResult; +export type AuthResponseContext = APIGatewayAuthorizerResultContext; + +/** + * API Gateway CustomAuthorizer AuthResponse.PolicyDocument. + * https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-lambda-authorizer-output.html + * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html#Condition + */ +export interface PolicyDocument { + Version: string; + Id?: string; + Statement: Statement[]; +} + +/** + * API Gateway CustomAuthorizer AuthResponse.PolicyDocument.Condition. + * https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-control-access-policy-language-overview.html + * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html + */ +export interface ConditionBlock { + [condition: string]: Condition | Condition[]; +} + +export interface Condition { + [key: string]: string | string[]; +} + +/** + * API Gateway CustomAuthorizer AuthResponse.PolicyDocument.Statement. + * https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-control-access-policy-language-overview.html + * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html + */ +export type Statement = BaseStatement & StatementAction & (StatementResource | StatementPrincipal); + +export interface BaseStatement { + Effect: string; + Sid?: string; + Condition?: ConditionBlock; +} + +export type PrincipalValue = { [key: string]: string | string[] } | string | string[]; +export interface MaybeStatementPrincipal { + Principal?: PrincipalValue; + NotPrincipal?: PrincipalValue; +} +export interface MaybeStatementResource { + Resource?: string | string[]; + NotResource?: string | string[]; +} +export type StatementAction = { Action: string | string[] } | { NotAction: string | string[] }; +export type StatementResource = MaybeStatementPrincipal & + ({ Resource: string | string[] } | { NotResource: string | string[] }); +export type StatementPrincipal = MaybeStatementResource & + ({ Principal: PrincipalValue } | { NotPrincipal: PrincipalValue }); diff --git a/types/aws-lambda/trigger/api-gateway-proxy.d.ts b/types/aws-lambda/trigger/api-gateway-proxy.d.ts new file mode 100644 index 000000000000000..b072956c63cd19d --- /dev/null +++ b/types/aws-lambda/trigger/api-gateway-proxy.d.ts @@ -0,0 +1,73 @@ +import { + APIGatewayEventDefaultAuthorizerContext, + APIGatewayEventRequestContextWithAuthorizer, +} from "../common/api-gateway"; +import { Callback, Handler } from "../handler"; + +export type APIGatewayProxyHandler = Handler; +export type APIGatewayProxyCallback = Callback; + +export type APIGatewayProxyEvent = APIGatewayProxyEventBase; + +export type APIGatewayProxyWithLambdaAuthorizerHandler = + Handler, APIGatewayProxyResult>; + +export type APIGatewayProxyWithCognitoAuthorizerHandler = + Handler; + +export type APIGatewayProxyWithLambdaAuthorizerEvent = + APIGatewayProxyEventBase>; + +export type APIGatewayProxyWithLambdaAuthorizerEventRequestContext = + APIGatewayEventRequestContextWithAuthorizer>; + +// API Gateway proxy integration mangles the context from a custom authorizer, +// converting all number or boolean properties to string, and adding some extra properties. +export type APIGatewayEventLambdaAuthorizerContext = { + [P in keyof TAuthorizerContext]: TAuthorizerContext[P] extends null ? null : string; +} & { + principalId: string; + integrationLatency: number; +}; + +export type APIGatewayProxyWithCognitoAuthorizerEvent = APIGatewayProxyEventBase; + +// All claims are coerced into strings. +export interface APIGatewayProxyCognitoAuthorizer { + claims: { + [name: string]: string; + }; +} + +export interface APIGatewayProxyEventBase { + body: string | null; + headers: { [name: string]: string }; + multiValueHeaders: { [name: string]: string[] }; + httpMethod: string; + isBase64Encoded: boolean; + path: string; + pathParameters: { [name: string]: string } | null; + queryStringParameters: { [name: string]: string } | null; + multiValueQueryStringParameters: { [name: string]: string[] } | null; + stageVariables: { [name: string]: string } | null; + requestContext: APIGatewayEventRequestContextWithAuthorizer; + resource: string; +} + +export interface APIGatewayProxyResult { + statusCode: number; + headers?: { + [header: string]: boolean | number | string; + }; + multiValueHeaders?: { + [header: string]: Array; + }; + body: string; + isBase64Encoded?: boolean; +} + +// Legacy names +export type ProxyHandler = APIGatewayProxyHandler; +export type ProxyCallback = APIGatewayProxyCallback; +export type APIGatewayEvent = APIGatewayProxyEvent; +export type ProxyResult = APIGatewayProxyResult; diff --git a/types/aws-lambda/trigger/cloudformation-custom-resource.d.ts b/types/aws-lambda/trigger/cloudformation-custom-resource.d.ts new file mode 100644 index 000000000000000..a91f5d59a579a3a --- /dev/null +++ b/types/aws-lambda/trigger/cloudformation-custom-resource.d.ts @@ -0,0 +1,68 @@ +import { Handler } from "../handler"; + +// Note, responses are *not* lambda results, they are sent to the event ResponseURL. +export type CloudFormationCustomResourceHandler = Handler; + +export type CloudFormationCustomResourceEvent = + | CloudFormationCustomResourceCreateEvent + | CloudFormationCustomResourceUpdateEvent + | CloudFormationCustomResourceDeleteEvent; + +export type CloudFormationCustomResourceResponse = + | CloudFormationCustomResourceSuccessResponse + | CloudFormationCustomResourceFailedResponse; + +/** + * CloudFormation Custom Resource event and response + * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/crpg-ref.html + */ +export interface CloudFormationCustomResourceEventCommon { + ServiceToken: string; + ResponseURL: string; + StackId: string; + RequestId: string; + LogicalResourceId: string; + ResourceType: string; + ResourceProperties: { + ServiceToken: string; + [Key: string]: any; + }; +} + +export interface CloudFormationCustomResourceCreateEvent extends CloudFormationCustomResourceEventCommon { + RequestType: 'Create'; +} + +export interface CloudFormationCustomResourceUpdateEvent extends CloudFormationCustomResourceEventCommon { + RequestType: 'Update'; + PhysicalResourceId: string; + OldResourceProperties: { + [Key: string]: any; + }; +} + +export interface CloudFormationCustomResourceDeleteEvent extends CloudFormationCustomResourceEventCommon { + RequestType: 'Delete'; + PhysicalResourceId: string; +} + +export interface CloudFormationCustomResourceResponseCommon { + PhysicalResourceId: string; + StackId: string; + RequestId: string; + LogicalResourceId: string; + Data?: { + [Key: string]: any; + }; + NoEcho?: boolean; +} + +export interface CloudFormationCustomResourceSuccessResponse extends CloudFormationCustomResourceResponseCommon { + Status: 'SUCCESS'; + Reason?: string; +} + +export interface CloudFormationCustomResourceFailedResponse extends CloudFormationCustomResourceResponseCommon { + Status: 'FAILED'; + Reason: string; +} diff --git a/types/aws-lambda/trigger/cloudfront-request.d.ts b/types/aws-lambda/trigger/cloudfront-request.d.ts new file mode 100644 index 000000000000000..7fea48c8c071b65 --- /dev/null +++ b/types/aws-lambda/trigger/cloudfront-request.d.ts @@ -0,0 +1,20 @@ +import { CloudFrontEvent, CloudFrontRequest, CloudFrontResultResponse } from "../common/cloudfront"; +import { Handler, Callback } from "../handler"; + +export type CloudFrontRequestHandler = Handler; +export type CloudFrontRequestCallback = Callback; + +/** + * CloudFront viewer request or origin request event + * + * https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html#lambda-event-structure-request + */ +export interface CloudFrontRequestEvent { + Records: Array<{ + cf: CloudFrontEvent & { + request: CloudFrontRequest; + }; + }>; +} + +export type CloudFrontRequestResult = undefined | null | CloudFrontResultResponse | CloudFrontRequest; diff --git a/types/aws-lambda/trigger/cloudfront-response.d.ts b/types/aws-lambda/trigger/cloudfront-response.d.ts new file mode 100644 index 000000000000000..293da879b95adfb --- /dev/null +++ b/types/aws-lambda/trigger/cloudfront-response.d.ts @@ -0,0 +1,21 @@ +import { CloudFrontEvent, CloudFrontRequest, CloudFrontResponse, CloudFrontResultResponse } from "../common/cloudfront"; +import { Callback, Handler } from "../handler"; + +export type CloudFrontResponseHandler = Handler; +export type CloudFrontResponseCallback = Callback; + +/** + * CloudFront viewer response or origin response event + * + * https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html#lambda-event-structure-response + */ +export interface CloudFrontResponseEvent { + Records: Array<{ + cf: CloudFrontEvent & { + readonly request: Pick>; + response: CloudFrontResponse; + }; + }>; +} + +export type CloudFrontResponseResult = undefined | null | CloudFrontResultResponse; diff --git a/types/aws-lambda/trigger/cloudwatch-events.d.ts b/types/aws-lambda/trigger/cloudwatch-events.d.ts new file mode 100644 index 000000000000000..e4c1678261e06d6 --- /dev/null +++ b/types/aws-lambda/trigger/cloudwatch-events.d.ts @@ -0,0 +1,19 @@ +import { Handler } from "../handler"; + +export type ScheduledHandler = Handler; + +// TODO: generic cloudwatch event types. + +/** + * https://docs.aws.amazon.com/lambda/latest/dg/with-scheduled-events.html + */ +export interface ScheduledEvent { + account: string; + region: string; + detail: any; + 'detail-type': string; + source: string; + time: string; + id: string; + resources: string[]; +} diff --git a/types/aws-lambda/trigger/cloudwatch-logs.d.ts b/types/aws-lambda/trigger/cloudwatch-logs.d.ts new file mode 100644 index 000000000000000..7244f5a9d308c9a --- /dev/null +++ b/types/aws-lambda/trigger/cloudwatch-logs.d.ts @@ -0,0 +1,33 @@ +import { Handler } from "../handler"; + +export type CloudWatchLogsHandler = Handler; + +/** + * See http://docs.aws.amazon.com/lambda/latest/dg/eventsources.html#eventsources-cloudwatch-logs + */ +export interface CloudWatchLogsEvent { + awslogs: CloudWatchLogsEventData; +} + +export interface CloudWatchLogsEventData { + data: string; +} + +export interface CloudWatchLogsDecodedData { + owner: string; + logGroup: string; + logStream: string; + subscriptionFilters: string[]; + messageType: string; + logEvents: CloudWatchLogsLogEvent[]; +} + +/** + * See http://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/SubscriptionFilters.html#LambdaFunctionExample + */ +export interface CloudWatchLogsLogEvent { + id: string; + timestamp: number; + message: string; + extractedFields?: { [key: string]: string }; +} diff --git a/types/aws-lambda/trigger/codepipeline-cloudwatch-action.d.ts b/types/aws-lambda/trigger/codepipeline-cloudwatch-action.d.ts new file mode 100644 index 000000000000000..2d7fd4a334328c2 --- /dev/null +++ b/types/aws-lambda/trigger/codepipeline-cloudwatch-action.d.ts @@ -0,0 +1,31 @@ +import { Handler } from "../handler"; + +export type CodePipelineCloudWatchActionHandler = Handler; + +export type CodePipelineActionCategory = 'Approval' | 'Build' | 'Deploy' | 'Invoke' | 'Source' | 'Test'; +export type CodePipelineActionState = 'STARTED' | 'SUCCEEDED' | 'FAILED' | 'CANCELED'; + +export interface CodePipelineCloudWatchActionEvent { + version: string; + id: string; + 'detail-type': 'CodePipeline Action Execution State Change'; + source: 'aws.codepipeline'; + account: string; + time: string; + region: string; + resources: string[]; + detail: { + pipeline: string; + version: number; + 'execution-id': string; + stage: string; + action: string; + state: CodePipelineActionState; + type: { + owner: 'AWS' | 'Custom' | 'ThirdParty'; + category: CodePipelineActionCategory; + provider: string; + version: number; + }; + }; +} diff --git a/types/aws-lambda/trigger/codepipeline-cloudwatch-pipeline.d.ts b/types/aws-lambda/trigger/codepipeline-cloudwatch-pipeline.d.ts new file mode 100644 index 000000000000000..483a896f01918b5 --- /dev/null +++ b/types/aws-lambda/trigger/codepipeline-cloudwatch-pipeline.d.ts @@ -0,0 +1,32 @@ +import { Handler } from "../handler"; + +export type CodePipelineCloudWatchPipelineHandler = Handler; + +export type CodePipelineState = 'STARTED' | 'SUCCEEDED' | 'RESUMED' | 'FAILED' | 'CANCELED' | 'SUPERSEDED'; + +/** + * CodePipeline CloudWatch Events + * https://docs.aws.amazon.com/codepipeline/latest/userguide/detect-state-changes-cloudwatch-events.html + * + * The above CodePipelineEvent is when a lambda is invoked by a CodePipeline. + * These events are when you subscribe to CodePipeline events in CloudWatch. + * + * Their documentation says that detail.version is a string, but it is actually an integer + */ + +export interface CodePipelineCloudWatchPipelineEvent { + version: string; + id: string; + 'detail-type': 'CodePipeline Pipeline Execution State Change'; + source: 'aws.codepipeline'; + account: string; + time: string; + region: string; + resources: string[]; + detail: { + pipeline: string; + version: number; + state: CodePipelineState; + 'execution-id': string; + }; +} diff --git a/types/aws-lambda/trigger/codepipeline-cloudwatch-stage.d.ts b/types/aws-lambda/trigger/codepipeline-cloudwatch-stage.d.ts new file mode 100644 index 000000000000000..457116d7aa65dbc --- /dev/null +++ b/types/aws-lambda/trigger/codepipeline-cloudwatch-stage.d.ts @@ -0,0 +1,23 @@ +import { Handler } from "../handler"; + +export type CodePipelineCloudWatchStageHandler = Handler; + +export type CodePipelineStageState = 'STARTED' | 'SUCCEEDED' | 'RESUMED' | 'FAILED' | 'CANCELED'; + +export interface CodePipelineCloudWatchStageEvent { + version: string; + id: string; + 'detail-type': 'CodePipeline Stage Execution State Change'; + source: 'aws.codepipeline'; + account: string; + time: string; + region: string; + resources: string[]; + detail: { + pipeline: string; + version: number; + 'execution-id': string; + stage: string; + state: CodePipelineStageState; + }; +} diff --git a/types/aws-lambda/trigger/codepipeline-cloudwatch.d.ts b/types/aws-lambda/trigger/codepipeline-cloudwatch.d.ts new file mode 100644 index 000000000000000..60cde8bac22388d --- /dev/null +++ b/types/aws-lambda/trigger/codepipeline-cloudwatch.d.ts @@ -0,0 +1,11 @@ +import { Handler } from "../handler"; +import { CodePipelineCloudWatchActionEvent } from "./codepipeline-cloudwatch-action"; +import { CodePipelineCloudWatchPipelineEvent } from "./codepipeline-cloudwatch-pipeline"; +import { CodePipelineCloudWatchStageEvent } from "./codepipeline-cloudwatch-stage"; + +export type CodePipelineCloudWatchHandler = Handler; + +export type CodePipelineCloudWatchEvent = + | CodePipelineCloudWatchPipelineEvent + | CodePipelineCloudWatchStageEvent + | CodePipelineCloudWatchActionEvent; diff --git a/types/aws-lambda/trigger/codepipeline.d.ts b/types/aws-lambda/trigger/codepipeline.d.ts new file mode 100644 index 000000000000000..bce384a3bf27af9 --- /dev/null +++ b/types/aws-lambda/trigger/codepipeline.d.ts @@ -0,0 +1,55 @@ +import { Handler } from "../handler"; + +export type CodePipelineHandler = Handler; + +/** + * CodePipeline events + * https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-invoke-lambda-function.html + */ +export interface S3ArtifactLocation { + bucketName: string; + objectKey: string; +} +export interface S3ArtifactStore { + type: 'S3'; + s3Location: S3ArtifactLocation; +} + +export type ArtifactLocation = S3ArtifactStore; + +export interface Artifact { + name: string; + revision: string | null; + location: ArtifactLocation; +} + +export interface Credentials { + accessKeyId: string; + secretAccessKey: string; + sessionToken?: string; +} + +export interface EncryptionKey { + type: string; + id: string; +} + +export interface CodePipelineEvent { + 'CodePipeline.job': { + id: string; + accountId: string; + data: { + actionConfiguration: { + configuration: { + FunctionName: string; + UserParameters: string; + }; + }; + inputArtifacts: Artifact[]; + outputArtifacts: Artifact[]; + artifactCredentials: Credentials; + encryptionKey?: EncryptionKey & { type: 'KMS' }; + continuationToken?: string; + }; + }; +} diff --git a/types/aws-lambda/trigger/cognito-user-pool-trigger.d.ts b/types/aws-lambda/trigger/cognito-user-pool-trigger.d.ts new file mode 100644 index 000000000000000..b0b878102c68cce --- /dev/null +++ b/types/aws-lambda/trigger/cognito-user-pool-trigger.d.ts @@ -0,0 +1,100 @@ +import { Handler } from "../handler"; + +// Result type is weird: docs and samples say to return the mutated event, but it only requires an object +// with a "response" field, the type of which is specific to the event.triggerType. Leave as any for now. +export type CognitoUserPoolTriggerHandler = Handler; +// TODO: Different event/handler types for each event trigger so we can type the result? + +/** + * Cognito User Pool event + * http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html + */ +export interface CognitoUserPoolTriggerEvent { + version: number; + triggerSource: + | 'PreSignUp_SignUp' + | 'PreSignUp_ExternalProvider' + | 'PostConfirmation_ConfirmSignUp' + | 'PreAuthentication_Authentication' + | 'PostAuthentication_Authentication' + | 'CustomMessage_SignUp' + | 'CustomMessage_AdminCreateUser' + | 'CustomMessage_ResendCode' + | 'CustomMessage_ForgotPassword' + | 'CustomMessage_UpdateUserAttribute' + | 'CustomMessage_VerifyUserAttribute' + | 'CustomMessage_Authentication' + | 'DefineAuthChallenge_Authentication' + | 'CreateAuthChallenge_Authentication' + | 'VerifyAuthChallengeResponse_Authentication' + | 'PreSignUp_AdminCreateUser' + | 'PostConfirmation_ConfirmForgotPassword' + | 'TokenGeneration_HostedAuth' + | 'TokenGeneration_Authentication' + | 'TokenGeneration_NewPasswordChallenge' + | 'TokenGeneration_AuthenticateDevice' + | 'TokenGeneration_RefreshTokens' + | 'UserMigration_Authentication' + | 'UserMigration_ForgotPassword'; + region: string; + userPoolId: string; + userName?: string; + callerContext: { + awsSdkVersion: string; + clientId: string; + }; + request: { + userAttributes: { [key: string]: string }; + validationData?: { [key: string]: string }; + codeParameter?: string; + linkParameter?: string; + usernameParameter?: string; + newDeviceUsed?: boolean; + session?: Array<{ + challengeName: + | 'CUSTOM_CHALLENGE' + | 'PASSWORD_VERIFIER' + | 'SMS_MFA' + | 'DEVICE_SRP_AUTH' + | 'DEVICE_PASSWORD_VERIFIER' + | 'ADMIN_NO_SRP_AUTH'; + challengeResult: boolean; + challengeMetadata?: string; + }>; + challengeName?: string; + privateChallengeParameters?: { [key: string]: string }; + challengeAnswer?: string; + password?: string; + clientMetadata?: { [key: string]: string }; + }; + response: { + autoConfirmUser?: boolean; + autoVerifyPhone?: boolean; + autoVerifyEmail?: boolean; + smsMessage?: string; + emailMessage?: string; + emailSubject?: string; + challengeName?: string; + issueTokens?: boolean; + failAuthentication?: boolean; + publicChallengeParameters?: { [key: string]: string }; + privateChallengeParameters?: { [key: string]: string }; + challengeMetadata?: string; + answerCorrect?: boolean; + userAttributes?: { [key: string]: string }; + finalUserStatus?: 'CONFIRMED' | 'RESET_REQUIRED'; + messageAction?: 'SUPPRESS'; + desiredDeliveryMediums?: Array<'EMAIL' | 'SMS'>; + forceAliasCreation?: boolean; + claimsOverrideDetails?: { + claimsToAddOrOverride?: { [key: string]: string }; + claimsToSuppress?: string[]; + groupOverrideDetails?: null | { + groupsToOverride?: string[]; + iamRolesToOverride?: string[]; + preferredRole?: string; + }; + }; + }; +} +export type CognitoUserPoolEvent = CognitoUserPoolTriggerEvent; diff --git a/types/aws-lambda/trigger/dynamodb-stream.d.ts b/types/aws-lambda/trigger/dynamodb-stream.d.ts new file mode 100644 index 000000000000000..474c0481042ef93 --- /dev/null +++ b/types/aws-lambda/trigger/dynamodb-stream.d.ts @@ -0,0 +1,45 @@ +import { Handler } from "../handler"; + +export type DynamoDBStreamHandler = Handler; + +// http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_AttributeValue.html +export interface AttributeValue { + B?: string; + BS?: string[]; + BOOL?: boolean; + L?: AttributeValue[]; + M?: { [id: string]: AttributeValue }; + N?: string; + NS?: string[]; + NULL?: boolean; + S?: string; + SS?: string[]; +} + +// http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_StreamRecord.html +export interface StreamRecord { + ApproximateCreationDateTime?: number; + Keys?: { [key: string]: AttributeValue }; + NewImage?: { [key: string]: AttributeValue }; + OldImage?: { [key: string]: AttributeValue }; + SequenceNumber?: string; + SizeBytes?: number; + StreamViewType?: 'KEYS_ONLY' | 'NEW_IMAGE' | 'OLD_IMAGE' | 'NEW_AND_OLD_IMAGES'; +} + +// http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_Record.html +export interface DynamoDBRecord { + awsRegion?: string; + dynamodb?: StreamRecord; + eventID?: string; + eventName?: 'INSERT' | 'MODIFY' | 'REMOVE'; + eventSource?: string; + eventSourceARN?: string; + eventVersion?: string; + userIdentity?: any; +} + +// http://docs.aws.amazon.com/lambda/latest/dg/eventsources.html#eventsources-ddb-update +export interface DynamoDBStreamEvent { + Records: DynamoDBRecord[]; +} diff --git a/types/aws-lambda/trigger/kinesis-firehose-transformation.d.ts b/types/aws-lambda/trigger/kinesis-firehose-transformation.d.ts new file mode 100644 index 000000000000000..57c2b9002459531 --- /dev/null +++ b/types/aws-lambda/trigger/kinesis-firehose-transformation.d.ts @@ -0,0 +1,45 @@ +import { Callback, Handler } from "../handler"; + +export type FirehoseTransformationHandler = Handler; +export type FirehoseTransformationCallback = Callback; + +// Kinesis Data Firehose Event +// https://docs.aws.amazon.com/lambda/latest/dg/eventsources.html#eventsources-kinesis-firehose +// https://docs.aws.amazon.com/firehose/latest/dev/data-transformation.html +// https://aws.amazon.com/blogs/compute/amazon-kinesis-firehose-data-transformation-with-aws-lambda/ +// Examples in the lambda blueprints +export interface FirehoseTransformationEvent { + invocationId: string; + deliveryStreamArn: string; + region: string; + records: FirehoseTransformationEventRecord[]; +} + +export interface FirehoseTransformationEventRecord { + recordId: string; + approximateArrivalTimestamp: number; + /** Base64 encoded */ + data: string; + kinesisRecordMetadata?: FirehoseRecordMetadata; +} + +export interface FirehoseRecordMetadata { + shardId: string; + partitionKey: string; + approximateArrivalTimestamp: string; + sequenceNumber: string; + subsequenceNumber: string; +} + +export type FirehoseRecordTransformationStatus = 'Ok' | 'Dropped' | 'ProcessingFailed'; + +export interface FirehoseTransformationResultRecord { + recordId: string; + result: FirehoseRecordTransformationStatus; + /** Encode in Base64 */ + data: string; +} + +export interface FirehoseTransformationResult { + records: FirehoseTransformationResultRecord[]; +} diff --git a/types/aws-lambda/trigger/kinesis-stream.d.ts b/types/aws-lambda/trigger/kinesis-stream.d.ts new file mode 100644 index 000000000000000..b2de5189c0272b0 --- /dev/null +++ b/types/aws-lambda/trigger/kinesis-stream.d.ts @@ -0,0 +1,28 @@ +import { Handler } from "../handler"; + +export type KinesisStreamHandler = Handler; + +// Kinesis Streams +// https://docs.aws.amazon.com/lambda/latest/dg/eventsources.html#eventsources-kinesis-streams +export interface KinesisStreamRecordPayload { + approximateArrivalTimestamp: number; + data: string; + kinesisSchemaVersion: string; + partitionKey: string; + sequenceNumber: string; +} + +export interface KinesisStreamRecord { + awsRegion: string; + eventID: string; + eventName: string; + eventSource: string; + eventSourceARN: string; + eventVersion: string; + invokeIdentityArn: string; + kinesis: KinesisStreamRecordPayload; +} + +export interface KinesisStreamEvent { + Records: KinesisStreamRecord[]; +} diff --git a/types/aws-lambda/trigger/lex.d.ts b/types/aws-lambda/trigger/lex.d.ts new file mode 100644 index 000000000000000..d69c080e5959f13 --- /dev/null +++ b/types/aws-lambda/trigger/lex.d.ts @@ -0,0 +1,103 @@ +import { Callback, Handler } from "../handler"; + +export type LexHandler = Handler; +export type LexCallback = Callback; + +// Lex +// https://docs.aws.amazon.com/lambda/latest/dg/invoking-lambda-function.html#supported-event-source-lex +export interface LexEvent { + currentIntent: { + name: string; + slots: { [name: string]: string | null }; + slotDetails: LexSlotDetails; + confirmationStatus: 'None' | 'Confirmed' | 'Denied'; + }; + bot: { + name: string; + alias: string; + version: string; + }; + userId: string; + inputTranscript: string; + invocationSource: 'DialogCodeHook' | 'FulfillmentCodeHook'; + outputDialogMode: 'Text' | 'Voice'; + messageVersion: '1.0'; + sessionAttributes: { [key: string]: string }; + requestAttributes: { [key: string]: string } | null; +} + +export interface LexSlotResolution { + value: string; +} + +export interface LexSlotDetails { + [name: string]: { + // The following line only works in TypeScript Version: 3.0, The array should have at least 1 and no more than 5 items + // resolutions: [LexSlotResolution, LexSlotResolution?, LexSlotResolution?, LexSlotResolution?, LexSlotResolution?]; + resolutions: LexSlotResolution[]; + originalValue: string; + }; +} + +export interface LexGenericAttachment { + title: string; + subTitle: string; + imageUrl: string; + attachmentLinkUrl: string; + buttons: Array<{ + text: string; + value: string; + }>; +} + +export interface LexDialogActionBase { + type: 'Close' | 'ElicitIntent' | 'ElicitSlot' | 'ConfirmIntent'; + message?: { + contentType: 'PlainText' | 'SSML' | 'CustomPayload'; + content: string; + }; + responseCard?: { + version: number; + contentType: 'application/vnd.amazonaws.card.generic'; + genericAttachments: LexGenericAttachment[]; + }; +} + +export interface LexDialogActionClose extends LexDialogActionBase { + type: 'Close'; + fulfillmentState: 'Fulfilled' | 'Failed'; +} + +export interface LexDialogActionElicitIntent extends LexDialogActionBase { + type: 'ElicitIntent'; +} + +export interface LexDialogActionElicitSlot extends LexDialogActionBase { + type: 'ElicitSlot'; + intentName: string; + slots: { [name: string]: string | null }; + slotToElicit: string; +} + +export interface LexDialogActionConfirmIntent extends LexDialogActionBase { + type: 'ConfirmIntent'; + intentName: string; + slots: { [name: string]: string | null }; +} + +export interface LexDialogActionDelegate { + type: 'Delegate'; + slots: { [name: string]: string | null }; +} + +export type LexDialogAction = + | LexDialogActionClose + | LexDialogActionElicitIntent + | LexDialogActionElicitSlot + | LexDialogActionConfirmIntent + | LexDialogActionDelegate; + +export interface LexResult { + sessionAttributes?: { [key: string]: string }; + dialogAction: LexDialogAction; +} diff --git a/types/aws-lambda/trigger/s3-batch.d.ts b/types/aws-lambda/trigger/s3-batch.d.ts new file mode 100644 index 000000000000000..58ef48c8cbf5200 --- /dev/null +++ b/types/aws-lambda/trigger/s3-batch.d.ts @@ -0,0 +1,41 @@ +import { Handler, Callback } from "../handler"; + +/** + * S3 Batch Operations event + * https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-invoke-lambda.html + */ +export type S3BatchHandler = Handler; +export type S3BatchCallback = Callback; + +export interface S3BatchEvent { + invocationSchemaVersion: string; + invocationId: string; + job: S3BatchEventJob; + tasks: S3BatchEventTask[]; +} + +export interface S3BatchEventJob { + id: string; +} + +export interface S3BatchEventTask { + taskId: string; + s3Key: string; + s3VersionId: string | null; + s3BucketArn: string; +} + +export interface S3BatchResult { + invocationSchemaVersion: string; + treatMissingKeysAs: S3BatchResultResultCode; + invocationId: string; + results: S3BatchResultResult[]; +} + +export type S3BatchResultResultCode = 'Succeeded' | 'TemporaryFailure' | 'PermanentFailure'; + +export interface S3BatchResultResult { + taskId: string; + resultCode: S3BatchResultResultCode; + resultString: string; +} diff --git a/types/aws-lambda/trigger/s3.d.ts b/types/aws-lambda/trigger/s3.d.ts new file mode 100644 index 000000000000000..1b1206b7e3d450b --- /dev/null +++ b/types/aws-lambda/trigger/s3.d.ts @@ -0,0 +1,60 @@ +import { Handler } from "../handler"; + +export type S3Handler = Handler; + +/** + * S3Create event + * https://docs.aws.amazon.com/AmazonS3/latest/dev/notification-content-structure.html + */ + +export interface S3EventRecordGlacierRestoreEventData { + lifecycleRestorationExpiryTime: string; + lifecycleRestoreStorageClass: string; +} + +export interface S3EventRecordGlacierEventData { + restoreEventData: S3EventRecordGlacierRestoreEventData; +} + +export interface S3EventRecord { + eventVersion: string; + eventSource: string; + awsRegion: string; + eventTime: string; + eventName: string; + userIdentity: { + principalId: string; + }; + requestParameters: { + sourceIPAddress: string; + }; + responseElements: { + 'x-amz-request-id': string; + 'x-amz-id-2': string; + }; + s3: { + s3SchemaVersion: string; + configurationId: string; + bucket: { + name: string; + ownerIdentity: { + principalId: string; + }; + arn: string; + }; + object: { + key: string; + size: number; + eTag: string; + versionId?: string; + sequencer: string; + }; + }; + glacierEventData?: S3EventRecordGlacierEventData; +} + +export interface S3Event { + Records: S3EventRecord[]; +} + +export type S3CreateEvent = S3Event; // old name diff --git a/types/aws-lambda/trigger/sns.d.ts b/types/aws-lambda/trigger/sns.d.ts new file mode 100644 index 000000000000000..490a4ff16b81817 --- /dev/null +++ b/types/aws-lambda/trigger/sns.d.ts @@ -0,0 +1,38 @@ +import { Handler } from "../handler"; + +export type SNSHandler = Handler; + +// SNS "event" +export interface SNSMessageAttribute { + Type: string; + Value: string; +} + +export interface SNSMessageAttributes { + [name: string]: SNSMessageAttribute; +} + +export interface SNSMessage { + SignatureVersion: string; + Timestamp: string; + Signature: string; + SigningCertUrl: string; + MessageId: string; + Message: string; + MessageAttributes: SNSMessageAttributes; + Type: string; + UnsubscribeUrl: string; + TopicArn: string; + Subject: string; +} + +export interface SNSEventRecord { + EventVersion: string; + EventSubscriptionArn: string; + EventSource: string; + Sns: SNSMessage; +} + +export interface SNSEvent { + Records: SNSEventRecord[]; +} diff --git a/types/aws-lambda/trigger/sqs.d.ts b/types/aws-lambda/trigger/sqs.d.ts new file mode 100644 index 000000000000000..c625272763702ca --- /dev/null +++ b/types/aws-lambda/trigger/sqs.d.ts @@ -0,0 +1,43 @@ +import { Handler } from "../handler"; + +export type SQSHandler = Handler; + +// SQS +// https://docs.aws.amazon.com/lambda/latest/dg/invoking-lambda-function.html#supported-event-source-sqs +export interface SQSRecord { + messageId: string; + receiptHandle: string; + body: string; + attributes: SQSRecordAttributes; + messageAttributes: SQSMessageAttributes; + md5OfBody: string; + eventSource: string; + eventSourceARN: string; + awsRegion: string; +} + +export interface SQSEvent { + Records: SQSRecord[]; +} + +export interface SQSRecordAttributes { + AWSTraceHeader?: string; + ApproximateReceiveCount: string; + SentTimestamp: string; + SenderId: string; + ApproximateFirstReceiveTimestamp: string; +} + +export type SQSMessageAttributeDataType = 'String' | 'Number' | 'Binary' | string; + +export interface SQSMessageAttribute { + stringValue?: string; + binaryValue?: string; + stringListValues: never[]; // Not implemented. Reserved for future use. + binaryListValues: never[]; // Not implemented. Reserved for future use. + dataType: SQSMessageAttributeDataType; +} + +export interface SQSMessageAttributes { + [name: string]: SQSMessageAttribute; +} diff --git a/types/aws-lambda/tsconfig.json b/types/aws-lambda/tsconfig.json index 79e058b7ab4a69b..598e7b0fbaef8ef 100644 --- a/types/aws-lambda/tsconfig.json +++ b/types/aws-lambda/tsconfig.json @@ -18,6 +18,19 @@ }, "files": [ "index.d.ts", - "aws-lambda-tests.ts" + "aws-lambda-tests.ts", + "test/alb-tests.ts", + "test/api-gateway-tests.ts", + "test/cloudformation-tests.ts", + "test/cloudfront-tests.ts", + "test/cloudwatch-tests.ts", + "test/codepipeline-tests.ts", + "test/cognito-tests.ts", + "test/dynamodb-tests.ts", + "test/kinesis-tests.ts", + "test/lex-tests.ts", + "test/s3-tests.ts", + "test/sns-tests.ts", + "test/sqs-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/aws-lambda/tslint.json b/types/aws-lambda/tslint.json index f6fabe418091786..159b250765146f1 100644 --- a/types/aws-lambda/tslint.json +++ b/types/aws-lambda/tslint.json @@ -1,8 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - // TODO - "npm-naming": false, - "dt-header": false + "npm-naming": false } -} +} \ No newline at end of file diff --git a/types/aws-serverless-express/aws-serverless-express-tests.ts b/types/aws-serverless-express/aws-serverless-express-tests.ts index 30b6cd354c0e96c..1b04f5a0f1850ba 100644 --- a/types/aws-serverless-express/aws-serverless-express-tests.ts +++ b/types/aws-serverless-express/aws-serverless-express-tests.ts @@ -2,14 +2,7 @@ import * as awsServerlessExpress from 'aws-serverless-express'; import express = require('express'); import { eventContext } from 'aws-serverless-express/middleware'; -const app = express(); -app.use(eventContext()); - -const server = awsServerlessExpress.createServer(app, () => {}, []); - -const mockEvent = { - key: 'value' -}; +declare let mockEvent: AWSLambda.APIGatewayEvent; const mockContext = { callbackWaitsForEmptyEventLoop: true, @@ -26,6 +19,17 @@ const mockContext = { succeed: (message: string) => false }; +const app = express(); +app.use(eventContext()); +app.get('/', (req, res) => { + if (req.apiGateway) { + req.apiGateway.event; + req.apiGateway.context; + } +}); + +const server = awsServerlessExpress.createServer(app, () => {}, []); + awsServerlessExpress.proxy(server, mockEvent, mockContext); awsServerlessExpress.proxy(server, mockEvent, mockContext, 'CALLBACK', () => {}); awsServerlessExpress.proxy(server, mockEvent, mockContext, 'CONTEXT_SUCCEED'); diff --git a/types/aws-serverless-express/index.d.ts b/types/aws-serverless-express/index.d.ts index 4fa301d2d54ed8e..68253f6b164a019 100644 --- a/types/aws-serverless-express/index.d.ts +++ b/types/aws-serverless-express/index.d.ts @@ -5,7 +5,7 @@ // Matthias Meyer // Alberto Vasquez // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.8 +// TypeScript Version: 3.5 /// import * as http from 'http'; @@ -29,20 +29,20 @@ export function createServer( export function proxy( server: http.Server, - event: any, + event: lambda.APIGatewayProxyEvent, context: lambda.Context, ): http.Server; export function proxy( server: http.Server, - event: any, + event: lambda.APIGatewayProxyEvent, context: lambda.Context, resolutionMode: 'CONTEXT_SUCCEED' | 'PROMISE', ): ProxyResult; export function proxy( server: http.Server, - event: any, + event: lambda.APIGatewayProxyEvent, context: lambda.Context, resolutionMode: 'CALLBACK', callback?: (error: any, response: Response) => void diff --git a/types/aws-serverless-express/middleware.d.ts b/types/aws-serverless-express/middleware.d.ts index ff33b4c6ea7132d..f5b5bb924af764c 100644 --- a/types/aws-serverless-express/middleware.d.ts +++ b/types/aws-serverless-express/middleware.d.ts @@ -1,8 +1,24 @@ +import { IncomingMessage } from 'http'; +import { APIGatewayProxyEvent, Context } from 'aws-lambda'; import { RequestHandler } from 'express'; +type NonFunctionPropertyNames = { [K in keyof T]: T[K] extends Function ? never : K }[keyof T]; // tslint:disable-line:ban-types +type NonFunctionProperties = Pick>; + +declare module 'http' { + interface IncomingMessage { + apiGateway?: { + event: Omit; + context: NonFunctionProperties; + }; + } +} + export interface Options { reqPropKey?: string; deleteHeaders?: boolean; } export function eventContext(options?: Options): RequestHandler; + +export {}; diff --git a/types/aws-serverless-express/tsconfig.json b/types/aws-serverless-express/tsconfig.json index 7740a9b5d29b8a5..c9d9eeddcd7bd69 100644 --- a/types/aws-serverless-express/tsconfig.json +++ b/types/aws-serverless-express/tsconfig.json @@ -7,7 +7,7 @@ "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, - "strictFunctionTypes": false, + "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ "../" @@ -20,4 +20,4 @@ "index.d.ts", "aws-serverless-express-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/aws4/tslint.json b/types/aws4/tslint.json index 3d59f55fdabcf45..1a5c041273779bc 100644 --- a/types/aws4/tslint.json +++ b/types/aws4/tslint.json @@ -1,80 +1,10 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "prefer-method-signature": false } -} +} \ No newline at end of file diff --git a/types/axe-webdriverjs/tslint.json b/types/axe-webdriverjs/tslint.json index 3db14f85eaf7b98..d086f8e13f785e5 100644 --- a/types/axe-webdriverjs/tslint.json +++ b/types/axe-webdriverjs/tslint.json @@ -1 +1,17 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "npm-naming": [ + true, + { + "errors": [ + [ + "NeedsExportEquals", + false + ] + ], + "mode": "code" + } + ] + } +} \ No newline at end of file diff --git a/types/axel/tsconfig.json b/types/axel/tsconfig.json index a3e2b5e015df74e..d2ec57d599fdca9 100644 --- a/types/axel/tsconfig.json +++ b/types/axel/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "axel-tests.ts", "index.d.ts" ] -} \ No newline at end of file +} diff --git a/types/axel/tslint.json b/types/axel/tslint.json index 3d59f55fdabcf45..29a538f6d20e74b 100644 --- a/types/axel/tslint.json +++ b/types/axel/tslint.json @@ -1,80 +1,15 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/azdata/azdata-tests.ts b/types/azdata/azdata-tests.ts new file mode 100644 index 000000000000000..1dc88ff2f1f416e --- /dev/null +++ b/types/azdata/azdata-tests.ts @@ -0,0 +1,16 @@ +import * as azdata from 'azdata'; + +azdata.dataprotocol.registerConnectionProvider({ + providerId: 'MyProvider', + connect(connectionUri: string, connectionInfo: azdata.ConnectionInfo): Thenable { return Promise.resolve(true); }, + disconnect(connectionUri: string): Thenable { return Promise.resolve(true); }, + cancelConnect(connectionUri: string): Thenable { return Promise.resolve(true); }, + listDatabases(connectionUri: string): Thenable { return Promise.resolve({ databaseNames: [] }); }, + changeDatabase(connectionUri: string, newDatabase: string): Thenable { return Promise.resolve(true); }, + rebuildIntelliSenseCache(connectionUri: string): Thenable { return Promise.resolve(); }, + getConnectionString(connectionUri: string, includePassword: boolean): Thenable { return Promise.resolve(''); }, + buildConnectionInfo(connectionString: string): Thenable { return Promise.resolve({ options: {} }); }, + registerOnConnectionComplete(handler: (connSummary: azdata.ConnectionInfoSummary) => any): void { }, + registerOnIntelliSenseCacheComplete(handler: (connectionUri: string) => any): void { }, + registerOnConnectionChanged(handler: (changedConnInfo: azdata.ChangedConnectionInfo) => any): void { } +}); diff --git a/types/azdata/index.d.ts b/types/azdata/index.d.ts new file mode 100644 index 000000000000000..2a9e0bdce3f0b79 --- /dev/null +++ b/types/azdata/index.d.ts @@ -0,0 +1,5250 @@ +// Type definitions for Azure Data Studio 1.15 +// Project: https://github.com/microsoft/azuredatastudio +// Definitions by: Charles Gagnon +// Anthony Dresser: +// Karl Burtram: +// Ken Van Hyning: +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + * See https://github.com/microsoft/azuredatastudio/blob/master/LICENSE.txt for license information. + *--------------------------------------------------------------------------------------------*/ + +/** + * Type Definition for Azure Data Studio 1.15 Extension API + * See https://docs.microsoft.com/sql/azure-data-studio/extensibility-apis for more information + */ + +declare module 'azdata' { + import * as vscode from 'vscode'; + + // EXPORTED NAMESPACES ///////////////////////////////////////////////// + /** + * Namespace for Data Management Protocol global methods + */ + export namespace dataprotocol { + export function registerConnectionProvider(provider: ConnectionProvider): vscode.Disposable; + + export function registerBackupProvider(provider: BackupProvider): vscode.Disposable; + + export function registerRestoreProvider(provider: RestoreProvider): vscode.Disposable; + + export function registerScriptingProvider(provider: ScriptingProvider): vscode.Disposable; + + export function registerObjectExplorerProvider(provider: ObjectExplorerProvider): vscode.Disposable; + + export function registerObjectExplorerNodeProvider(provider: ObjectExplorerNodeProvider): vscode.Disposable; + + export function registerIconProvider(provider: IconProvider): vscode.Disposable; + + export function registerTaskServicesProvider(provider: TaskServicesProvider): vscode.Disposable; + + export function registerFileBrowserProvider(provider: FileBrowserProvider): vscode.Disposable; + + export function registerProfilerProvider(provider: ProfilerProvider): vscode.Disposable; + + export function registerMetadataProvider(provider: MetadataProvider): vscode.Disposable; + + export function registerQueryProvider(provider: QueryProvider, isLiveShare?: boolean): vscode.Disposable; + + export function registerAdminServicesProvider(provider: AdminServicesProvider): vscode.Disposable; + + export function registerAgentServicesProvider(provider: AgentServicesProvider): vscode.Disposable; + + export function registerCapabilitiesServiceProvider(provider: CapabilitiesProvider): vscode.Disposable; + + /** + * Get the provider corresponding to the given provider ID and type + * @param providerId The ID that the provider was registered with + * @param providerType The type of the provider + */ + export function getProvider(providerId: string, providerType: DataProviderType): DataProvider; + + /** + * Get all registered providers of the given type + * @param providerType The type of the providers + */ + export function getProvidersByType(providerType: DataProviderType): T[]; + + /** + * An [event](#Event) which fires when the specific flavor of a language used in DMP + * connections has changed. And example is for a SQL connection, the flavor changes + * to MSSQL + */ + export const onDidChangeLanguageFlavor: vscode.Event; + } + + /** + * Namespace for credentials management global methods, available to all extensions + */ + export namespace credentials { + /** + * Register a credential provider to handle credential requests. + * @param provider The provider to register + * @return Handle to the provider for disposal + */ + export function registerProvider(provider: CredentialProvider): vscode.Disposable; + + /** + * Retrieves a provider from the extension host if one has been registered. Any credentials + * accessed with the returned provider will have the namespaceId appended to credential ID + * to prevent extensions from trampling over each others' credentials. + * @param namespaceId ID that will be appended to credential IDs. + * @return Promise that returns the namespaced provider + */ + export function getProvider(namespaceId: string): Thenable; + } + + /** + * Namespace for connection management + */ + export namespace connection { + /** + * Connection profile primary class + */ + export class ConnectionProfile { + providerId: string; + connectionId: string; + connectionName: string; + serverName: string; + databaseName: string; + userName: string; + password: string; + authenticationType: string; + savePassword: boolean; + groupFullName: string; + groupId: string; + saveProfile: boolean; + azureTenantId?: string; + options: { [name: string]: any }; + + static createFrom(options: { [key: string]: any }): ConnectionProfile; + } + + /** + * Get the current connection based on the active editor or Object Explorer selection + */ + export function getCurrentConnection(): Thenable; + + /** + * Get known connection profiles including active connections, recent connections and saved connections. + * @param activeConnectionsOnly Indicates whether only get the active connections, default value is false. + * @returns array of connections + */ + export function getConnections(activeConnectionsOnly?: boolean): Thenable; + + /** + * Get all active connections + */ + export function getActiveConnections(): Thenable; + + /** + * Get connection string + */ + export function getConnectionString(connectionId: string, includePassword: boolean): Thenable; + + /** + * Get the credentials for an active connection + * @param connectionId The id of the connection + * @returns A dictionary containing the credentials as they would be included in the connection's options dictionary + */ + export function getCredentials(connectionId: string): Thenable<{ [name: string]: string }>; + + /** + * Get ServerInfo for a connectionId + * @param connectionId The id of the connection + * @returns ServerInfo + */ + export function getServerInfo(connectionId: string): Thenable; + + /** + * Interface for representing a connection when working with connection APIs + */ + export interface Connection extends ConnectionInfo { + /** + * The name of the provider managing the connection (e.g. MSSQL) + */ + providerName: string; + + /** + * A unique identifier for the connection + */ + connectionId: string; + } + + /** + * List the databases that can be accessed from the given connection + * @param connectionId The ID of the connection + * @returns An list of names of databases + */ + export function listDatabases(connectionId: string): Thenable; + + /** + * Get a URI corresponding to the given connection so that it can be used with data + * providers and other APIs that require a connection API. + * Note: If the given connection corresponds to multiple URIs this may return any of them + * @param connectionId The ID of the connection + */ + export function getUriForConnection(connectionId: string): Thenable; + + /** + * Opens the connection dialog, calls the callback with the result. If connection was successful + * returns the connection otherwise returns undefined + */ + export function openConnectionDialog( + providers?: string[], + initialConnectionProfile?: IConnectionProfile, + connectionCompletionOptions?: IConnectionCompletionOptions): Thenable; + + /** + * Opens the connection and add it to object explorer and opens the dashboard and returns the ConnectionResult + * @param connectionProfile connection profile + */ + export function connect(connectionProfile: IConnectionProfile, saveConnection?: boolean, showDashboard?: boolean): Thenable; + } + + /** + * Namespace for interacting with Object Explorer + */ + export namespace objectexplorer { + /** + * Get an Object Explorer node corresponding to the given connection and path. If no path + * is given, it returns the top-level node for the given connection. If there is no node at + * the given path, it returns undefined. + * @param connectionId The id of the connection that the node exists on + * @param nodePath The path of the node to get + * @returns The node corresponding to the given connection and path, + * or undefined if no such node exists. + */ + export function getNode(connectionId: string, nodePath?: string): Thenable; + + /** + * Get all active Object Explorer connection nodes + * @returns The Object Explorer nodes for each saved connection + */ + export function getActiveConnectionNodes(): Thenable; + + /** + * Find Object Explorer nodes that match the given information + * @param connectionId The id of the connection that the node exists on + * @param type The type of the object to retrieve + * @param schema The schema of the object, if applicable + * @param name The name of the object + * @param database The database the object exists under, if applicable + * @param parentObjectNames A list of names of parent objects in the tree, ordered from highest to lowest level + * (for example when searching for a table's column, provide the name of its parent table for this argument) + */ + export function findNodes(connectionId: string, type: string, schema: string, name: string, database: string, parentObjectNames: string[]): Thenable; + + /** + * Get connectionProfile from sessionId + * @param sessionId The id of the session that the node exists on + * @returns The IConnecitonProfile for the session + */ + export function getSessionConnectionProfile(sessionId: string): Thenable; + + /** + * Interface for representing and interacting with items in Object Explorer + */ + export interface ObjectExplorerNode extends NodeInfo { + /** + * The id of the connection that the node exists under + */ + connectionId: string; + + /** + * Whether the node is currently expanded in Object Explorer + */ + isExpanded(): Thenable; + + /** + * Set whether the node is expanded or collapsed + * @param expandedState The new state of the node. If 'None', the node will not be changed + */ + setExpandedState(expandedState: vscode.TreeItemCollapsibleState): Thenable; + + /** + * Set whether the node is selected + * @param selected Whether the node should be selected + * @param clearOtherSelections If true, clear any other selections. If false, leave any existing selections. + * Defaults to true when selected is true and false when selected is false. + */ + setSelected(selected: boolean, clearOtherSelections?: boolean): Thenable; + + /** + * Get all the child nodes. Returns an empty list if there are no children. + */ + getChildren(): Thenable; + + /** + * Get the parent node. Returns undefined if there is none. + */ + getParent(): Thenable; + + /** + * Refresh the node, expanding it if it has children + */ + refresh(): Thenable; + } + } + + // EXPORTED INTERFACES ///////////////////////////////////////////////// + export interface ConnectionInfo { + options: { [name: string]: any }; + } + + // Object Explorer interfaces ----------------------------------------------------------------------- + export interface ObjectExplorerSession { + success: boolean; + sessionId: string; + rootNode: NodeInfo; + errorMessage: string; + } + + /** + * A NodeInfo object represents an element in the Object Explorer tree under + * a connection. + */ + export interface NodeInfo { + nodePath: string; + nodeType: string; + nodeSubType: string; + nodeStatus: string; + label: string; + isLeaf: boolean; + metadata: ObjectMetadata; + errorMessage: string; + /** + * Optional iconType for the object in the tree. Currently this only supports + * an icon name or SqlThemeIcon name, rather than a path to an icon. + * If not defined, the nodeType + nodeStatus / nodeSubType values + * will be used instead. + */ + iconType?: string | SqlThemeIcon; + /** + * Informs who provides the children to a node, used by data explorer tree view api + */ + childProvider?: string; + /** + * Holds the connection profile for nodes, used by data explorer tree view api + */ + payload?: any; + } + + export interface IConnectionProfile extends ConnectionInfo { + connectionName: string; + serverName: string; + databaseName: string; + userName: string; + password: string; + authenticationType: string; + savePassword: boolean; + groupFullName?: string; + groupId: string; + providerName: string; + saveProfile: boolean; + id: string; + azureTenantId?: string; + } + + /** + * Options for the actions that could happen after connecting is complete + */ + export interface IConnectionCompletionOptions { + /** + * Save the connection to MRU and settings (only save to setting if profile.saveProfile is set to true) + * Default is true. + */ + saveConnection: boolean; + + /** + * If true, open the dashboard after connection is complete. + * If undefined / false, dashboard won't be opened after connection completes. + * Default is false. + */ + showDashboard?: boolean; + + /** + * If undefined / true, open the connection dialog if connection fails. + * If false, connection dialog won't be opened even if connection fails. + * Default is true. + */ + showConnectionDialogOnError?: boolean; + + /** + * If undefined / true, open the connection firewall rule dialog if connection fails. + * If false, connection firewall rule dialog won't be opened even if connection fails. + * Default is true. + */ + showFirewallRuleOnError?: boolean; + } + + export interface ConnectionInfoSummary { + /** + * URI identifying the owner of the connection + */ + ownerUri: string; + + /** + * connection id returned from service host. + */ + connectionId: string; + + /** + * any diagnostic messages return from the service host. + */ + messages: string; + + /** + * Error message returned from the engine, if any. + */ + errorMessage: string; + + /** + * Error number returned from the engine, if any. + */ + errorNumber: number; + /** + * Information about the connected server. + */ + serverInfo: ServerInfo; + /** + * information about the actual connection established + */ + connectionSummary: ConnectionSummary; + } + + /** + * Summary that identifies a unique database connection. + */ + export interface ConnectionSummary { + /** + * server name + */ + serverName: string; + /** + * database name + */ + databaseName: string; + /** + * user name + */ + userName: string; + } + + /** + * Information about a Server instance. + */ + export interface ServerInfo { + /** + * The major version of the instance. + */ + serverMajorVersion: number; + /** + * The minor version of the instance. + */ + serverMinorVersion: number; + /** + * The build of the instance. + */ + serverReleaseVersion: number; + /** + * The ID of the engine edition of the instance. + */ + engineEditionId: number; + /** + * String containing the full server version text. + */ + serverVersion: string; + /** + * String describing the product level of the server. + */ + serverLevel: string; + /** + * The edition of the instance. + */ + serverEdition: string; + /** + * Whether the instance is running in the cloud (Azure) or not. + */ + isCloud: boolean; + /** + * The version of Azure that the instance is running on, if applicable. + */ + azureVersion: number; + /** + * The Operating System version string of the machine running the instance. + */ + osVersion: string; + /** + * options for all new server properties. + */ + options: { [key: string]: any }; + } + + /** + * The possible values of the server engine edition + */ + export enum DatabaseEngineEdition { + Unknown = 0, + Personal = 1, + Standard = 2, + Enterprise = 3, + Express = 4, + SqlDatabase = 5, + SqlDataWarehouse = 6, + SqlStretchDatabase = 7, + SqlManagedInstance = 8, + SqlOnDemand = 11 + } + + export interface DataProvider { + handle?: number; + readonly providerId: string; + } + + export interface ConnectionProvider extends DataProvider { + connect(connectionUri: string, connectionInfo: ConnectionInfo): Thenable; + + disconnect(connectionUri: string): Thenable; + + cancelConnect(connectionUri: string): Thenable; + + listDatabases(connectionUri: string): Thenable; + + changeDatabase(connectionUri: string, newDatabase: string): Thenable; + + rebuildIntelliSenseCache(connectionUri: string): Thenable; + + getConnectionString(connectionUri: string, includePassword: boolean): Thenable; + + buildConnectionInfo?(connectionString: string): Thenable; + + registerOnConnectionComplete(handler: (connSummary: ConnectionInfoSummary) => any): void; + + registerOnIntelliSenseCacheComplete(handler: (connectionUri: string) => any): void; + + registerOnConnectionChanged(handler: (changedConnInfo: ChangedConnectionInfo) => any): void; + } + + export enum ServiceOptionType { + string = 'string', + multistring = 'multistring', + password = 'password', + number = 'number', + category = 'category', + boolean = 'boolean', + object = 'object' + } + + export enum ConnectionOptionSpecialType { + connectionName = 'connectionName', + serverName = 'serverName', + databaseName = 'databaseName', + authType = 'authType', + userName = 'userName', + password = 'password', + appName = 'appName' + } + + export interface CategoryValue { + displayName: string; + name: string; + } + + export interface ConnectionOption { + name: string; + + displayName: string; + + description: string; + + groupName: string; + + valueType: ServiceOptionType; + + specialValueType: ConnectionOptionSpecialType; + + defaultValue: string; + + categoryValues: CategoryValue[]; + + isIdentity: boolean; + + isRequired: boolean; + } + + export interface ConnectionProviderOptions { + options: ConnectionOption[]; + } + + export interface ServiceOption { + name: string; + + displayName: string; + + description: string; + + groupName: string; + + valueType: ServiceOptionType; + + defaultValue: string; + + objectType: string; + + categoryValues: CategoryValue[]; + + isRequired: boolean; + + isArray: boolean; + } + + export interface AdminServicesOptions { + databaseInfoOptions: ServiceOption[]; + + databaseFileInfoOptions: ServiceOption[]; + + fileGroupInfoOptions: ServiceOption[]; + } + + // List Databases Request ---------------------------------------------------------------------- + export interface ListDatabasesResult { + databaseNames: Array; + } + + /** + * Information about a connection changed event for a resource represented by a URI + */ + export interface ChangedConnectionInfo { + /** + * Owner URI of the connection that changed. + */ + connectionUri: string; + + /** + * Summary of details containing any connection changes. + */ + connection: ConnectionSummary; + } + + export interface FeatureMetadataProvider { + enabled: boolean; + + featureName: string; + + optionsMetadata: ServiceOption[]; + } + + export interface DataProtocolServerCapabilities { + protocolVersion: string; + + providerName: string; + + providerDisplayName: string; + + connectionProvider: ConnectionProviderOptions; + + adminServicesProvider: AdminServicesOptions; + + features: FeatureMetadataProvider[]; + } + + export interface DataProtocolClientCapabilities { + hostName: string; + + hostVersion: string; + } + + export interface CapabilitiesProvider extends DataProvider { + getServerCapabilities(client: DataProtocolClientCapabilities): Thenable; + } + + export enum MetadataType { + Table = 0, + View = 1, + SProc = 2, + Function = 3 + } + + export interface ObjectMetadata { + metadataType: MetadataType; + + metadataTypeName: string; + + urn: string; + + name: string; + + schema: string; + } + + export interface ColumnMetadata { + hasExtendedProperties: boolean; + + defaultValue: string; + + /// + /// Escaped identifier for the name of the column + /// + escapedName: string; + + /// + /// Whether or not the column is computed + /// + isComputed: boolean; + + /// + /// Whether or not the column is deterministically computed + /// + isDeterministic: boolean; + + /// + /// Whether or not the column is an identity column + /// + isIdentity: boolean; + + /// + /// The ordinal ID of the column + /// + ordinal: number; + + /// + /// Whether or not the column is calculated on the server side. This could be a computed + /// column or a identity column. + /// + isCalculated: boolean; + + /// + /// Whether or not the column is used in a key to uniquely identify a row + /// + isKey: boolean; + + /// + /// Whether or not the column can be trusted for uniqueness + /// + isTrustworthyForUniqueness: boolean; + } + + export interface TableMetadata { + columns: ColumnMetadata; + } + + export interface ProviderMetadata { + objectMetadata: ObjectMetadata[]; + } + + export interface MetadataProvider extends DataProvider { + getMetadata(connectionUri: string): Thenable; + + getDatabases(connectionUri: string): Thenable; + + getTableInfo(connectionUri: string, metadata: ObjectMetadata): Thenable; + + getViewInfo(connectionUri: string, metadata: ObjectMetadata): Thenable; + } + + export enum ScriptOperation { + Select = 0, + Create = 1, + Insert = 2, + Update = 3, + Delete = 4, + Execute = 5, + Alter = 6 + } + + export interface ScriptingResult { + operationId: string; + script: string; + } + + export interface ScriptingParamDetails { + filePath: string; + scriptCompatibilityOption: string; + targetDatabaseEngineEdition: string; + targetDatabaseEngineType: string; + } + + export interface ScriptingProvider extends DataProvider { + scriptAsOperation(connectionUri: string, operation: ScriptOperation, metadata: ObjectMetadata, paramDetails: ScriptingParamDetails): Thenable; + + registerOnScriptingComplete(handler: (scriptingCompleteResult: ScriptingCompleteResult) => any): void; + } + + export interface ScriptingCompleteResult { + errorDetails: string; + + errorMessage: string; + + hasError: boolean; + + canceled: boolean; + + success: boolean; + + operationId: string; + } + + /** + * Parameters to initialize a connection to a database + */ + export interface Credential { + /** + * Unique ID identifying the credential + */ + credentialId: string; + + /** + * password + */ + password: string; + } + + export interface CredentialProvider { + handle: number; + + saveCredential(credentialId: string, password: string): Thenable; + + readCredential(credentialId: string): Thenable; + + deleteCredential(credentialId: string): Thenable; + } + + export interface DidChangeLanguageFlavorParams { + uri: string; + language: string; + flavor: string; + } + + export interface QueryExecutionOptions { + options: { [option: string]: any; }; + } + + export interface QueryProvider extends DataProvider { + cancelQuery(ownerUri: string): Thenable; + runQuery(ownerUri: string, selection: ISelectionData, runOptions?: ExecutionPlanOptions): Thenable; + runQueryStatement(ownerUri: string, line: number, column: number): Thenable; + runQueryString(ownerUri: string, queryString: string): Thenable; + runQueryAndReturn(ownerUri: string, queryString: string): Thenable; + parseSyntax(ownerUri: string, query: string): Thenable; + getQueryRows(rowData: QueryExecuteSubsetParams): Thenable; + disposeQuery(ownerUri: string): Thenable; + saveResults(requestParams: SaveResultsRequestParams): Thenable; + setQueryExecutionOptions(ownerUri: string, options: QueryExecutionOptions): Thenable; + + // Notifications + registerOnQueryComplete(handler: (result: QueryExecuteCompleteNotificationResult) => any): void; + registerOnBatchStart(handler: (batchInfo: QueryExecuteBatchNotificationParams) => any): void; + registerOnBatchComplete(handler: (batchInfo: QueryExecuteBatchNotificationParams) => any): void; + registerOnResultSetAvailable(handler: (resultSetInfo: QueryExecuteResultSetNotificationParams) => any): void; + registerOnResultSetUpdated(handler: (resultSetInfo: QueryExecuteResultSetNotificationParams) => any): void; + registerOnMessage(handler: (message: QueryExecuteMessageParams) => any): void; + + // Edit Data Requests + commitEdit(ownerUri: string): Thenable; + createRow(ownerUri: string): Thenable; + deleteRow(ownerUri: string, rowId: number): Thenable; + disposeEdit(ownerUri: string): Thenable; + initializeEdit(ownerUri: string, schemaName: string, objectName: string, objectType: string, rowLimit: number, queryString: string): Thenable; + revertCell(ownerUri: string, rowId: number, columnId: number): Thenable; + revertRow(ownerUri: string, rowId: number): Thenable; + updateCell(ownerUri: string, rowId: number, columnId: number, newValue: string): Thenable; + getEditRows(rowData: EditSubsetParams): Thenable; + + // Edit Data Notifications + registerOnEditSessionReady(handler: (ownerUri: string, success: boolean, message: string) => any): void; + } + + export interface IDbColumn { + allowDBNull?: boolean; + baseCatalogName: string; + baseColumnName: string; + baseSchemaName: string; + baseServerName: string; + baseTableName: string; + columnName: string; + columnOrdinal?: number; + columnSize?: number; + isAliased?: boolean; + isAutoIncrement?: boolean; + isExpression?: boolean; + isHidden?: boolean; + isIdentity?: boolean; + isKey?: boolean; + isBytes?: boolean; + isChars?: boolean; + isSqlVariant?: boolean; + isUdt?: boolean; + dataType: string; + isXml?: boolean; + isJson?: boolean; + isLong?: boolean; + isReadOnly?: boolean; + isUnique?: boolean; + numericPrecision?: number; + numericScale?: number; + udtAssemblyQualifiedName: string; + dataTypeName: string; + } + + export interface IGridResultSet { + columns: IDbColumn[]; + rowsUri: string; + numberOfRows: number; + } + + export interface IResultMessage { + batchId?: number; + isError: boolean; + time?: string; + message: string; + } + + export interface ISelectionData { + startLine: number; + startColumn: number; + endLine: number; + endColumn: number; + } + + export interface ResultSetSummary { + id: number; + batchId: number; + rowCount: number; + columnInfo: IDbColumn[]; + complete: boolean; + } + + export interface BatchSummary { + hasError: boolean; + id: number; + selection: ISelectionData; + resultSetSummaries: ResultSetSummary[]; + executionElapsed: string; + executionEnd: string; + executionStart: string; + } + + export enum EditRowState { + clean = 0, + dirtyInsert = 1, + dirtyDelete = 2, + dirtyUpdate = 3 + } + + export interface EditRow { + cells: DbCellValue[]; + id: number; + isDirty: boolean; + state: EditRowState; + } + + export interface EditCell extends DbCellValue { + isDirty: boolean; + } + + export interface QueryExecuteCompleteNotificationResult { + ownerUri: string; + batchSummaries: BatchSummary[]; + } + + export interface ExecutionPlanOptions { + displayEstimatedQueryPlan?: boolean; + displayActualQueryPlan?: boolean; + } + + export interface SimpleExecuteParams { + queryString: string; + ownerUri: string; + } + + export interface SimpleExecuteResult { + rowCount: number; + columnInfo: IDbColumn[]; + rows: DbCellValue[][]; + } + + export interface SyntaxParseParams { + ownerUri: string; + query: string; + } + + export interface SyntaxParseResult { + parseable: boolean; + errors: string[]; + } + + // Query Batch Notification ----------------------------------------------------------------------- + export interface QueryExecuteBatchNotificationParams { + batchSummary: BatchSummary; + ownerUri: string; + } + + export interface QueryExecuteResultSetNotificationParams { + resultSetSummary: ResultSetSummary; + ownerUri: string; + } + + export interface QueryExecuteMessageParams { + message: IResultMessage; + ownerUri: string; + } + + export interface QueryExecuteSubsetParams { + ownerUri: string; + batchIndex: number; + resultSetIndex: number; + rowsStartIndex: number; + rowsCount: number; + } + + export interface DbCellValue { + displayValue: string; + isNull: boolean; + invariantCultureDisplayValue: string; + } + + export interface ResultSetSubset { + rowCount: number; + rows: DbCellValue[][]; + } + + export interface QueryExecuteSubsetResult { + message: string; + resultSubset: ResultSetSubset; + } + + export interface QueryCancelResult { + messages: string; + } + + // Save Results =============================================================================== + export interface SaveResultsRequestParams { + /** + * 'csv', 'json', 'excel', 'xml' + */ + resultFormat: string; + ownerUri: string; + filePath: string; + batchIndex: number; + resultSetIndex: number; + rowStartIndex: number; + rowEndIndex: number; + columnStartIndex: number; + columnEndIndex: number; + includeHeaders?: boolean; + delimiter?: string; + lineSeperator?: string; + textIdentifier?: string; + encoding?: string; + formatted?: boolean; + } + + export interface SaveResultRequestResult { + messages: string; + } + + // Edit Data ================================================================================== + // Shared Interfaces -------------------------------------------------------------------------- + export interface IEditSessionOperationParams { + ownerUri: string; + } + + export interface IEditRowOperationParams extends IEditSessionOperationParams { + rowId: number; + } + + export interface EditCellResult { + cell: EditCell; + isRowDirty: boolean; + } + + // edit/commit -------------------------------------------------------------------------------- + export interface EditCommitParams extends IEditSessionOperationParams { } + export interface EditCommitResult { } + + // edit/createRow ----------------------------------------------------------------------------- + export interface EditCreateRowParams extends IEditSessionOperationParams { } + export interface EditCreateRowResult { + defaultValues: string[]; + newRowId: number; + } + + // edit/deleteRow ----------------------------------------------------------------------------- + export interface EditDeleteRowParams extends IEditRowOperationParams { } + export interface EditDeleteRowResult { } + + // edit/dispose ------------------------------------------------------------------------------- + export interface EditDisposeParams extends IEditSessionOperationParams { } + export interface EditDisposeResult { } + + // edit/initialize ---------------------------------------------------------------------------- + export interface EditInitializeFiltering { + LimitResults?: number; + } + + export interface EditInitializeParams extends IEditSessionOperationParams { + filters: EditInitializeFiltering; + objectName: string; + schemaName: string; + objectType: string; + queryString: string; + } + + export interface EditInitializeResult { } + + // edit/revertCell ---------------------------------------------------------------------------- + export interface EditRevertCellParams extends IEditRowOperationParams { + columnId: number; + } + export interface EditRevertCellResult extends EditCellResult { + } + + // edit/revertRow ----------------------------------------------------------------------------- + export interface EditRevertRowParams extends IEditRowOperationParams { } + export interface EditRevertRowResult { } + + // edit/sessionReady Event -------------------------------------------------------------------- + export interface EditSessionReadyParams { + ownerUri: string; + success: boolean; + message: string; + } + + // edit/updateCell ---------------------------------------------------------------------------- + export interface EditUpdateCellParams extends IEditRowOperationParams { + columnId: number; + newValue: string; + } + + export interface EditUpdateCellResult extends EditCellResult { + } + + // edit/subset -------------------------------------------------------------------------------- + export interface EditSubsetParams extends IEditSessionOperationParams { + rowStartIndex: number; + rowCount: number; + } + export interface EditSubsetResult { + rowCount: number; + subset: EditRow[]; + } + + /** + * A reference to a named icon. Currently only a subset of the SQL icons are available. + * Using a theme icon is preferred over a custom icon as it gives theme authors the possibility to change the icons. + */ + export class SqlThemeIcon { + static readonly Folder: SqlThemeIcon; + static readonly Root: SqlThemeIcon; + static readonly Database: SqlThemeIcon; + static readonly Server: SqlThemeIcon; + static readonly ScalarValuedFunction: SqlThemeIcon; + static readonly TableValuedFunction: SqlThemeIcon; + static readonly AggregateFunction: SqlThemeIcon; + static readonly FileGroup: SqlThemeIcon; + static readonly StoredProcedure: SqlThemeIcon; + static readonly UserDefinedTableType: SqlThemeIcon; + static readonly View: SqlThemeIcon; + static readonly Table: SqlThemeIcon; + static readonly HistoryTable: SqlThemeIcon; + static readonly ServerLevelLinkedServerLogin: SqlThemeIcon; + static readonly ServerLevelServerAudit: SqlThemeIcon; + static readonly ServerLevelCryptographicProvider: SqlThemeIcon; + static readonly ServerLevelCredential: SqlThemeIcon; + static readonly ServerLevelServerRole: SqlThemeIcon; + static readonly ServerLevelLogin: SqlThemeIcon; + static readonly ServerLevelServerAuditSpecification: SqlThemeIcon; + static readonly ServerLevelServerTrigger: SqlThemeIcon; + static readonly ServerLevelLinkedServer: SqlThemeIcon; + static readonly ServerLevelEndpoint: SqlThemeIcon; + static readonly Synonym: SqlThemeIcon; + static readonly DatabaseTrigger: SqlThemeIcon; + static readonly Assembly: SqlThemeIcon; + static readonly MessageType: SqlThemeIcon; + static readonly Contract: SqlThemeIcon; + static readonly Queue: SqlThemeIcon; + static readonly Service: SqlThemeIcon; + static readonly Route: SqlThemeIcon; + static readonly DatabaseAndQueueEventNotification: SqlThemeIcon; + static readonly RemoteServiceBinding: SqlThemeIcon; + static readonly BrokerPriority: SqlThemeIcon; + static readonly FullTextCatalog: SqlThemeIcon; + static readonly FullTextStopList: SqlThemeIcon; + static readonly SqlLogFile: SqlThemeIcon; + static readonly PartitionFunction: SqlThemeIcon; + static readonly PartitionScheme: SqlThemeIcon; + static readonly SearchPropertyList: SqlThemeIcon; + static readonly User: SqlThemeIcon; + static readonly Schema: SqlThemeIcon; + static readonly AsymmetricKey: SqlThemeIcon; + static readonly Certificate: SqlThemeIcon; + static readonly SymmetricKey: SqlThemeIcon; + static readonly DatabaseEncryptionKey: SqlThemeIcon; + static readonly MasterKey: SqlThemeIcon; + static readonly DatabaseAuditSpecification: SqlThemeIcon; + static readonly Column: SqlThemeIcon; + static readonly Key: SqlThemeIcon; + static readonly Constraint: SqlThemeIcon; + static readonly Trigger: SqlThemeIcon; + static readonly Index: SqlThemeIcon; + static readonly Statistic: SqlThemeIcon; + static readonly UserDefinedDataType: SqlThemeIcon; + static readonly UserDefinedType: SqlThemeIcon; + static readonly XmlSchemaCollection: SqlThemeIcon; + static readonly SystemExactNumeric: SqlThemeIcon; + static readonly SystemApproximateNumeric: SqlThemeIcon; + static readonly SystemDateAndTime: SqlThemeIcon; + static readonly SystemCharacterString: SqlThemeIcon; + static readonly SystemUnicodeCharacterString: SqlThemeIcon; + static readonly SystemBinaryString: SqlThemeIcon; + static readonly SystemOtherDataType: SqlThemeIcon; + static readonly SystemClrDataType: SqlThemeIcon; + static readonly SystemSpatialDataType: SqlThemeIcon; + static readonly UserDefinedTableTypeColumn: SqlThemeIcon; + static readonly UserDefinedTableTypeKey: SqlThemeIcon; + static readonly UserDefinedTableTypeConstraint: SqlThemeIcon; + static readonly StoredProcedureParameter: SqlThemeIcon; + static readonly TableValuedFunctionParameter: SqlThemeIcon; + static readonly ScalarValuedFunctionParameter: SqlThemeIcon; + static readonly AggregateFunctionParameter: SqlThemeIcon; + static readonly DatabaseRole: SqlThemeIcon; + static readonly ApplicationRole: SqlThemeIcon; + static readonly FileGroupFile: SqlThemeIcon; + static readonly SystemMessageType: SqlThemeIcon; + static readonly SystemContract: SqlThemeIcon; + static readonly SystemService: SqlThemeIcon; + static readonly SystemQueue: SqlThemeIcon; + static readonly Sequence: SqlThemeIcon; + static readonly SecurityPolicy: SqlThemeIcon; + static readonly DatabaseScopedCredential: SqlThemeIcon; + static readonly ExternalResource: SqlThemeIcon; + static readonly ExternalDataSource: SqlThemeIcon; + static readonly ExternalFileFormat: SqlThemeIcon; + static readonly ExternalTable: SqlThemeIcon; + static readonly ColumnMasterKey: SqlThemeIcon; + static readonly ColumnEncryptionKey: SqlThemeIcon; + + private constructor(id: string); + + /** + * Gets the ID for the theme icon for help in cases where string comparison is needed + */ + public readonly id: string; + } + + export interface ObjectExplorerSessionResponse { + sessionId: string; + } + + export interface ObjectExplorerExpandInfo { + sessionId: string; + nodePath: string; + nodes: NodeInfo[]; + errorMessage: string; + } + + export interface ExpandNodeInfo { + sessionId: string; + nodePath: string; + } + + export interface FindNodesInfo { + sessionId: string; + type: string; + schema: string; + name: string; + database: string; + parentObjectNames: string[]; + } + + export interface ObjectExplorerCloseSessionInfo { + sessionId: string; + } + + export interface ObjectExplorerCloseSessionResponse { + sessionId: string; + success: boolean; + } + + export interface ObjectExplorerFindNodesResponse { + nodes: NodeInfo[]; + } + + export interface ObjectExplorerProviderBase extends DataProvider { + expandNode(nodeInfo: ExpandNodeInfo): Thenable; + + refreshNode(nodeInfo: ExpandNodeInfo): Thenable; + + findNodes(findNodesInfo: FindNodesInfo): Thenable; + + registerOnExpandCompleted(handler: (response: ObjectExplorerExpandInfo) => any): void; + } + + export interface ObjectExplorerProvider extends ObjectExplorerProviderBase { + createNewSession(connInfo: ConnectionInfo): Thenable; + + closeSession(closeSessionInfo: ObjectExplorerCloseSessionInfo): Thenable; + + registerOnSessionCreated(handler: (response: ObjectExplorerSession) => any): void; + + registerOnSessionDisconnected?(handler: (response: ObjectExplorerSession) => any): void; + } + + export interface ObjectExplorerNodeProvider extends ObjectExplorerProviderBase { + /** + * The providerId for whichever type of ObjectExplorer connection this can add folders and objects to + */ + readonly supportedProviderId: string; + + /** + * Optional group name used to sort nodes in the tree. If not defined, the node order will be added in order based on provider ID, with + * nodes from the main ObjectExplorerProvider for this provider type added first + */ + readonly group?: string; + + handleSessionOpen(session: ObjectExplorerSession): Thenable; + + handleSessionClose(closeSessionInfo: ObjectExplorerCloseSessionInfo): void; + } + + export interface IconProvider extends DataProvider { + getConnectionIconId(connection: IConnectionProfile, serverInfo: ServerInfo): Thenable; + } + + // Admin Services interfaces ----------------------------------------------------------------------- + export interface DatabaseInfo { + options: {}; + } + + export interface LoginInfo { + name: string; + } + + export interface CreateDatabaseResponse { + result: boolean; + taskId: number; + } + + export interface CreateLoginResponse { + result: boolean; + taskId: number; + } + + export interface AdminServicesProvider extends DataProvider { + createDatabase(connectionUri: string, database: DatabaseInfo): Thenable; + + createLogin(connectionUri: string, login: LoginInfo): Thenable; + + getDefaultDatabaseInfo(connectionUri: string): Thenable; + + getDatabaseInfo(connectionUri: string): Thenable; + } + + // Agent Services types + export enum WeekDays { + sunday = 1, + monday = 2, + tuesday = 4, + wednesday = 8, + thursday = 16, + friday = 32, + weekDays = 62, + saturday = 64, + weekEnds = 65, + everyDay = 127 + } + + export enum NotifyMethods { + none = 0, + notifyEmail = 1, + pager = 2, + netSend = 4, + notifyAll = 7 + } + + export enum AlertType { + sqlServerEvent = 1, + sqlServerPerformanceCondition = 2, + nonSqlServerEvent = 3, + wmiEvent = 4 + } + + export enum JobCompletionActionCondition { + Never = 0, + OnSuccess = 1, + OnFailure = 2, + Always = 3 + } + + export enum FrequencyTypes { + Unknown, + OneTime = 1 << 1, + Daily = 1 << 2, + Weekly = 1 << 3, + Monthly = 1 << 4, + MonthlyRelative = 1 << 5, + AutoStart = 1 << 6, + OnIdle = 1 << 7 + } + + export enum FrequencySubDayTypes { + Unknown = 0, + Once = 1, + Second = 2, + Minute = 4, + Hour = 8 + } + + export enum FrequencyRelativeIntervals { + First = 1, + Second = 2, + Third = 4, + Fourth = 8, + Last = 16 + } + + export enum JobExecutionStatus { + Executing = 1, + WaitingForWorkerThread = 2, + BetweenRetries = 3, + Idle = 4, + Suspended = 5, + WaitingForStepToFinish = 6, + PerformingCompletionAction = 7 + } + + export interface AgentJobInfo { + name: string; + owner: string; + description: string; + currentExecutionStatus: number; + lastRunOutcome: number; + currentExecutionStep: string; + enabled: boolean; + hasTarget: boolean; + hasSchedule: boolean; + hasStep: boolean; + runnable: boolean; + category: string; + categoryId: number; + categoryType: number; + lastRun: string; + nextRun: string; + jobId: string; + startStepId: number; + emailLevel: JobCompletionActionCondition; + pageLevel: JobCompletionActionCondition; + eventLogLevel: JobCompletionActionCondition; + deleteLevel: JobCompletionActionCondition; + operatorToEmail: string; + operatorToPage: string; + jobSteps: AgentJobStepInfo[]; + jobSchedules: AgentJobScheduleInfo[]; + alerts: AgentAlertInfo[]; + } + + export interface AgentNotebookInfo extends AgentJobInfo { + templateId: number; + targetDatabase: string; + lastRunNotebookError: string; + executeDatabase: string; + } + + export interface AgentNotebookMaterializedInfo { + materializedId: number; + targetDatabase: string; + materializedName: string; + favorite: boolean; + } + + export interface AgentJobScheduleInfo { + id: number; + name: string; + jobName: string; + isEnabled: boolean; + frequencyTypes: FrequencyTypes; + frequencySubDayTypes: FrequencySubDayTypes; + frequencySubDayInterval: number; + frequencyRelativeIntervals: FrequencyRelativeIntervals; + frequencyRecurrenceFactor: number; + frequencyInterval: number; + dateCreated: string; + activeStartTimeOfDay: string; + activeStartDate: string; + activeEndTimeOfDay: string; + jobCount: number; + activeEndDate: string; + scheduleUid: string; + description: string; + } + + export interface AgentJobStep { + jobId: string; + stepId: string; + stepName: string; + message: string; + runDate: string; + runStatus: number; + stepDetails: AgentJobStepInfo; + } + + export enum AgentSubSystem { + TransactSql = 1, + ActiveScripting = 2, + CmdExec = 3, + Snapshot = 4, + LogReader = 5, + Distribution = 6, + Merge = 7, + QueueReader = 8, + AnalysisQuery = 9, + AnalysisCommands = 10, + Ssis = 11, + PowerShell = 12 + } + + export enum StepCompletionAction { + QuitWithSuccess = 1, + QuitWithFailure = 2, + GoToNextStep = 3, + GoToStep = 4 + } + + export interface AgentJobStepInfo { + jobId: string; + jobName: string; + script: string; + scriptName: string; + stepName: string; + subSystem: AgentSubSystem; + id: number; + failureAction: StepCompletionAction; + successAction: StepCompletionAction; + failStepId: number; + successStepId: number; + command: string; + commandExecutionSuccessCode: number; + databaseName: string; + databaseUserName: string; + server: string; + outputFileName: string; + appendToLogFile: boolean; + appendToStepHist: boolean; + writeLogToTable: boolean; + appendLogToTable: boolean; + retryAttempts: number; + retryInterval: number; + proxyName: string; + } + + export interface AgentJobHistoryInfo { + instanceId: number; + sqlMessageId: string; + message: string; + stepId: string; + stepName: string; + sqlSeverity: string; + jobId: string; + jobName: string; + runStatus: number; + runDate: string; + runDuration: string; + operatorEmailed: string; + operatorNetsent: string; + operatorPaged: string; + retriesAttempted: string; + server: string; + steps: AgentJobStep[]; + } + + export interface AgentNotebookHistoryInfo extends AgentJobHistoryInfo { + materializedNotebookId: number; + materializedNotebookName: string; + materializedNotebookPin: boolean; + materializedNotebookErrorInfo: string; + materializedNotebookDeleted: boolean; + } + + export interface AgentProxyInfo { + id: number; + accountName: string; + description: string; + credentialName: string; + credentialIdentity: string; + credentialId: number; + isEnabled: boolean; + } + + export interface AgentAlertInfo { + id: number; + name: string; + delayBetweenResponses: number; + eventDescriptionKeyword: string; + eventSource: string; + hasNotification: number; + includeEventDescription: NotifyMethods; + isEnabled: boolean; + jobId: string; + jobName: string; + lastOccurrenceDate: string; + lastResponseDate: string; + messageId: number; + notificationMessage: string; + occurrenceCount: number; + performanceCondition: string; + severity: number; + databaseName: string; + countResetDate: string; + categoryName: string; + alertType: AlertType; + wmiEventNamespace: string; + wmiEventQuery: string; + } + + export interface AgentOperatorInfo { + name: string; + id: number; + emailAddress: string; + enabled: boolean; + lastEmailDate: string; + lastNetSendDate: string; + lastPagerDate: string; + pagerAddress: string; + categoryName: string; + pagerDays: WeekDays; + saturdayPagerEndTime: string; + saturdayPagerStartTime: string; + sundayPagerEndTime: string; + sundayPagerStartTime: string; + netSendAddress: string; + weekdayPagerStartTime: string; + weekdayPagerEndTime: string; + } + + export interface ResultStatus { + success: boolean; + errorMessage: string; + } + + export interface AgentJobsResult extends ResultStatus { + jobs: AgentJobInfo[]; + } + + export interface AgentJobHistoryResult extends ResultStatus { + histories: AgentJobHistoryInfo[]; + schedules: AgentJobScheduleInfo[]; + alerts: AgentAlertInfo[]; + steps: AgentJobStepInfo[]; + } + + export interface CreateAgentJobResult extends ResultStatus { + job: AgentJobInfo; + } + + export interface UpdateAgentJobResult extends ResultStatus { + job: AgentJobInfo; + } + + export interface AgentJobCategory { + id: string; + name: string; + } + + export interface AgentJobDefaultsResult extends ResultStatus { + owner: string; + categories: AgentJobCategory[]; + } + + export interface AgentNotebooksResult extends ResultStatus { + notebooks: AgentNotebookInfo[]; + } + + export interface AgentJobHistoryResult extends ResultStatus { + histories: AgentJobHistoryInfo[]; + schedules: AgentJobScheduleInfo[]; + alerts: AgentAlertInfo[]; + steps: AgentJobStepInfo[]; + } + + export interface AgentNotebookHistoryResult extends ResultStatus { + histories: AgentNotebookHistoryInfo[]; + schedules: AgentJobScheduleInfo[]; + steps: AgentJobStepInfo[]; + } + + export interface AgentNotebookMaterializedResult extends ResultStatus { + notebookMaterialized: string; + } + + export interface AgentNotebookTemplateResult extends ResultStatus { + notebookTemplate: string; + } + + export interface CreateAgentNotebookResult extends ResultStatus { + notebook: AgentNotebookInfo; + } + + export interface UpdateAgentNotebookResult extends ResultStatus { + notebook: AgentNotebookInfo; + } + + export interface CreateAgentJobStepResult extends ResultStatus { + step: AgentJobStepInfo; + } + + export interface UpdateAgentJobStepResult extends ResultStatus { + step: AgentJobStepInfo; + } + + export interface CreateAgentProxyResult extends ResultStatus { + step: AgentJobStepInfo; + } + + export interface UpdateAgentProxyResult extends ResultStatus { + step: AgentJobStepInfo; + } + + export interface AgentAlertsResult extends ResultStatus { + alerts: AgentAlertInfo[]; + } + + export interface CreateAgentAlertResult extends ResultStatus { + alert: AgentJobStepInfo; + } + + export interface UpdateAgentAlertResult extends ResultStatus { + alert: AgentJobStepInfo; + } + + export interface AgentOperatorsResult extends ResultStatus { + operators: AgentOperatorInfo[]; + } + + export interface CreateAgentOperatorResult extends ResultStatus { + operator: AgentOperatorInfo; + } + + export interface UpdateAgentOperatorResult extends ResultStatus { + operator: AgentOperatorInfo; + } + + export interface AgentProxiesResult extends ResultStatus { + proxies: AgentProxyInfo[]; + } + + export interface CreateAgentProxyResult extends ResultStatus { + proxy: AgentProxyInfo; + } + + export interface UpdateAgentProxyResult extends ResultStatus { + proxy: AgentProxyInfo; + } + + export interface AgentJobSchedulesResult extends ResultStatus { + schedules: AgentJobScheduleInfo[]; + } + + export interface CreateAgentJobScheduleResult extends ResultStatus { + schedule: AgentJobScheduleInfo; + } + + export interface UpdateAgentJobScheduleResult extends ResultStatus { + schedule: AgentJobScheduleInfo; + } + + export interface AgentServicesProvider extends DataProvider { + // Job management methods + getJobs(ownerUri: string): Thenable; + getJobHistory(ownerUri: string, jobId: string, jobName: string): Thenable; + jobAction(ownerUri: string, jobName: string, action: string): Thenable; + createJob(ownerUri: string, jobInfo: AgentJobInfo): Thenable; + updateJob(ownerUri: string, originalJobName: string, jobInfo: AgentJobInfo): Thenable; + deleteJob(ownerUri: string, jobInfo: AgentJobInfo): Thenable; + getJobDefaults(ownerUri: string): Thenable; + + // Notebook management methods + getNotebooks(ownerUri: string): Thenable; + getNotebookHistory(ownerUri: string, jobId: string, jobName: string, targetDatabase: string): Thenable; + getMaterializedNotebook(ownerUri: string, targetDatabase: string, notebookMaterializedId: number): Thenable; + getTemplateNotebook(ownerUri: string, targetDatabase: string, jobId: string): Thenable; + createNotebook(ownerUri: string, notebook: AgentNotebookInfo, templateFilePath: string): Thenable; + deleteNotebook(ownerUri: string, notebook: AgentNotebookInfo): Thenable; + updateNotebook(ownerUri: string, originialNotebookName: string, notebook: AgentNotebookInfo, templateFilePath: string): Thenable; + updateNotebookMaterializedName(ownerUri: string, agentNotebookHistory: AgentNotebookHistoryInfo, targetDatabase: string, name: string): Thenable; + updateNotebookMaterializedPin(ownerUri: string, agentNotebookHistory: AgentNotebookHistoryInfo, targetDatabase: string, pin: boolean): Thenable; + deleteMaterializedNotebook(ownerUri: string, agentNotebookHistory: AgentNotebookHistoryInfo, targetDatabase: string): Thenable; + + // Job Step management methods + createJobStep(ownerUri: string, stepInfo: AgentJobStepInfo): Thenable; + updateJobStep(ownerUri: string, originalJobStepName: string, stepInfo: AgentJobStepInfo): Thenable; + deleteJobStep(ownerUri: string, stepInfo: AgentJobStepInfo): Thenable; + + // Alert management methods + getAlerts(ownerUri: string): Thenable; + createAlert(ownerUri: string, alertInfo: AgentAlertInfo): Thenable; + updateAlert(ownerUri: string, originalAlertName: string, alertInfo: AgentAlertInfo): Thenable; + deleteAlert(ownerUri: string, alertInfo: AgentAlertInfo): Thenable; + + // Operator management methods + getOperators(ownerUri: string): Thenable; + createOperator(ownerUri: string, operatorInfo: AgentOperatorInfo): Thenable; + updateOperator(ownerUri: string, originalOperatorName: string, operatorInfo: AgentOperatorInfo): Thenable; + deleteOperator(ownerUri: string, operatorInfo: AgentOperatorInfo): Thenable; + + // Proxy management methods + getProxies(ownerUri: string): Thenable; + createProxy(ownerUri: string, proxyInfo: AgentProxyInfo): Thenable; + updateProxy(ownerUri: string, originalProxyName: string, proxyInfo: AgentProxyInfo): Thenable; + deleteProxy(ownerUri: string, proxyInfo: AgentProxyInfo): Thenable; + + // Credential method + getCredentials(ownerUri: string): Thenable; + + // Job Schedule management methods + getJobSchedules(ownerUri: string): Thenable; + createJobSchedule(ownerUri: string, scheduleInfo: AgentJobScheduleInfo): Thenable; + updateJobSchedule(ownerUri: string, originalScheduleName: string, scheduleInfo: AgentJobScheduleInfo): Thenable; + deleteJobSchedule(ownerUri: string, scheduleInfo: AgentJobScheduleInfo): Thenable; + + registerOnUpdated(handler: () => any): void; + } + + // DacFx interfaces ----------------------------------------------------------------------- + + // Security service interfaces ------------------------------------------------------------------------ + export interface CredentialInfo { + id: number; + identity: string; + name: string; + dateLastModified: string; + createDate: string; + providerName: string; + } + + export interface GetCredentialsResult extends ResultStatus { + credentials: CredentialInfo[]; + } + + // Task service interfaces ---------------------------------------------------------------------------- + export enum TaskStatus { + NotStarted = 0, + InProgress = 1, + Succeeded = 2, + SucceededWithWarning = 3, + Failed = 4, + Canceled = 5, + Canceling = 6 + } + + export enum TaskExecutionMode { + execute = 0, + script = 1, + executeAndScript = 2, + } + + export interface ListTasksParams { + listActiveTasksOnly: boolean; + } + + export interface TaskInfo { + connection?: connection.Connection; + taskId: string; + status: TaskStatus; + taskExecutionMode: TaskExecutionMode; + serverName: string; + databaseName: string; + name: string; + description: string; + providerName: string; + isCancelable: boolean; + } + + export interface ListTasksResponse { + tasks: TaskInfo[]; + } + + export interface CancelTaskParams { + taskId: string; + } + + export interface TaskProgressInfo { + taskId: string; + status: TaskStatus; + message: string; + script?: string; + } + + export interface TaskServicesProvider extends DataProvider { + getAllTasks(listTasksParams: ListTasksParams): Thenable; + + cancelTask(cancelTaskParams: CancelTaskParams): Thenable; + + registerOnTaskCreated(handler: (response: TaskInfo) => any): void; + + registerOnTaskStatusChanged(handler: (response: TaskProgressInfo) => any): void; + } + + // Disaster Recovery interfaces ----------------------------------------------------------------------- + + export interface BackupConfigInfo { + recoveryModel: string; + defaultBackupFolder: string; + backupEncryptors: {}; + } + + export interface BackupResponse { + result: boolean; + taskId: number; + } + + export interface BackupProvider extends DataProvider { + backup(connectionUri: string, backupInfo: { [key: string]: any }, taskExecutionMode: TaskExecutionMode): Thenable; + getBackupConfigInfo(connectionUri: string): Thenable; + } + + export interface RestoreProvider extends DataProvider { + getRestorePlan(connectionUri: string, restoreInfo: RestoreInfo): Thenable; + cancelRestorePlan(connectionUri: string, restoreInfo: RestoreInfo): Thenable; + restore(connectionUri: string, restoreInfo: RestoreInfo): Thenable; + getRestoreConfigInfo(connectionUri: string): Thenable; + } + + export interface RestoreInfo { + options: { [key: string]: any }; + taskExecutionMode: TaskExecutionMode; + } + + export interface RestoreDatabaseFileInfo { + fileType: string; + + logicalFileName: string; + + originalFileName: string; + + restoreAsFileName: string; + } + + export interface DatabaseFileInfo { + properties: LocalizedPropertyInfo[]; + id: string; + isSelected: boolean; + } + + export interface LocalizedPropertyInfo { + propertyName: string; + propertyValue: string; + propertyDisplayName: string; + propertyValueDisplayName: string; + } + + export interface RestorePlanDetailInfo { + name: string; + currentValue: any; + isReadOnly: boolean; + isVisible: boolean; + defaultValue: any; + } + + export interface RestorePlanResponse { + sessionId: string; + backupSetsToRestore: DatabaseFileInfo[]; + canRestore: boolean; + errorMessage: string; + dbFiles: RestoreDatabaseFileInfo[]; + databaseNamesFromBackupSets: string[]; + planDetails: { [key: string]: RestorePlanDetailInfo }; + } + + export interface RestoreConfigInfo { + configInfo: { [key: string]: any }; + } + + export interface RestoreResponse { + result: boolean; + taskId: string; + errorMessage: string; + } + + export interface ProfilerProvider extends DataProvider { + createSession(sessionId: string, sessionName: string, template: ProfilerSessionTemplate): Thenable; + startSession(sessionId: string, sessionName: string): Thenable; + stopSession(sessionId: string): Thenable; + pauseSession(sessionId: string): Thenable; + getXEventSessions(sessionId: string): Thenable; + connectSession(sessionId: string): Thenable; + disconnectSession(sessionId: string): Thenable; + + registerOnSessionEventsAvailable(handler: (response: ProfilerSessionEvents) => any): void; + registerOnSessionStopped(handler: (response: ProfilerSessionStoppedParams) => any): void; + registerOnProfilerSessionCreated(handler: (response: ProfilerSessionCreatedParams) => any): void; + } + + export interface IProfilerTableRow { + /** + * Name of the event; known issue this is not camel case, need to figure + * out a better way to determine column id's from rendered column names + */ + EventClass: string; + } + + export interface IProfilerMoreRowsNotificationParams { + uri: string; + rowCount: number; + data: IProfilerTableRow; + } + + /** + * Profiler Event + */ + export interface ProfilerEvent { + /** + * Event class name + */ + name: string; + + /** + * Event timestamp + */ + timestamp: string; + + /** + * Event values + */ + values: {}; + } + + /** + * Profiler Session Template + */ + export interface ProfilerSessionTemplate { + /** + * Template name + */ + name: string; + + /** + * Default view for template + */ + defaultView: string; + + /** + * TSQL for creating a session + */ + createStatement: string; + } + + export interface ProfilerSessionEvents { + sessionId: string; + + events: ProfilerEvent[]; + + eventsLost: boolean; + } + + export interface ProfilerSessionStoppedParams { + ownerUri: string; + + sessionId: number; + } + + export interface ProfilerSessionCreatedParams { + ownerUri: string; + sessionName: string; + templateName: string; + } + + // File browser interfaces ----------------------------------------------------------------------- + + export interface FileBrowserProvider extends DataProvider { + openFileBrowser(ownerUri: string, expandPath: string, fileFilters: string[], changeFilter: boolean): Thenable; + registerOnFileBrowserOpened(handler: (response: FileBrowserOpenedParams) => any): void; + expandFolderNode(ownerUri: string, expandPath: string): Thenable; + registerOnFolderNodeExpanded(handler: (response: FileBrowserExpandedParams) => any): void; + validateFilePaths(ownerUri: string, serviceType: string, selectedFiles: string[]): Thenable; + registerOnFilePathsValidated(handler: (response: FileBrowserValidatedParams) => any): void; + closeFileBrowser(ownerUri: string): Thenable; + } + + export interface FileTreeNode { + children: FileTreeNode[]; + isExpanded: boolean; + isFile: boolean; + name: string; + fullPath: string; + } + + export interface FileTree { + rootNode: FileTreeNode; + selectedNode: FileTreeNode; + } + + export interface FileBrowserOpenedParams { + ownerUri: string; + fileTree: FileTree; + succeeded: boolean; + message: string; + } + + export interface FileBrowserExpandedParams { + ownerUri: string; + expandPath: string; + children: FileTreeNode[]; + succeeded: boolean; + message: string; + } + + export interface FileBrowserValidatedParams { + succeeded: boolean; + message: string; + } + + export interface FileBrowserCloseResponse { + succeeded: boolean; + message: string; + } + + // ACCOUNT MANAGEMENT ////////////////////////////////////////////////// + export namespace accounts { + export function registerAccountProvider(providerMetadata: AccountProviderMetadata, provider: AccountProvider): vscode.Disposable; + + /** + * Launches a flyout dialog that will display the information on how to complete device + * code OAuth login to the user. Only one flyout can be opened at once and each must be closed + * by calling {@link endAutoOAuthDeviceCode}. + * @param providerId ID of the provider that's requesting the flyout be opened + */ + export function beginAutoOAuthDeviceCode(providerId: string, title: string, message: string, userCode: string, uri: string): Thenable; + + /** + * Closes the flyout dialog opened by {@link beginAutoOAuthDeviceCode} + */ + export function endAutoOAuthDeviceCode(): void; + + /** + * Notifies the account management service that an account has updated (usually due to the + * account going stale). + * @param updatedAccount Account object with updated properties + */ + export function accountUpdated(updatedAccount: Account): void; + + /** + * Gets all added accounts. + * @returns Promise to return the accounts + */ + export function getAllAccounts(): Thenable; + + /** + * Generates a security token by asking the account's provider + * @param account Account to generate security token for (defaults to + * AzureResource.ResourceManagement if not given) + * @return Promise to return the security token + */ + export function getSecurityToken(account: Account, resource?: AzureResource): Thenable<{}>; + + /** + * An [event](#Event) which fires when the accounts have changed. + */ + export const onDidChangeAccounts: vscode.Event; + } + + /** + * Represents display information for an account. + */ + export interface AccountDisplayInfo { + /** + * A display name that offers context for the account, such as "Contoso". + */ + contextualDisplayName: string; + + /** + * account provider (eg, Work/School vs Microsoft Account) + */ + accountType: string; + + /** + * A display name that identifies the account, such as "User Name". + */ + displayName: string; + + /** + * User id that identifies the account, such as "user@contoso.com". + */ + userId: string; + } + + /** + * Represents a key that identifies an account. + */ + export interface AccountKey { + /** + * Identifier of the provider + */ + providerId: string; + + /** + * Any arguments that identify an instantiation of the provider + */ + providerArgs?: any; + + /** + * Identifier for the account, unique to the provider + */ + accountId: string; + } + + /** + * Represents an account. + */ + export interface Account { + /** + * The key that identifies the account + */ + key: AccountKey; + + /** + * Display information for the account + */ + displayInfo: AccountDisplayInfo; + + /** + * Custom properties stored with the account + */ + properties: any; + + /** + * Indicates if the account needs refreshing + */ + isStale: boolean; + } + + export enum AzureResource { + ResourceManagement = 0, + Sql = 1 + } + + export interface DidChangeAccountsParams { + // Updated accounts + accounts: Account[]; + } + + // - ACCOUNT PROVIDER ////////////////////////////////////////////////// + /** + * Error to be used when the user has cancelled the prompt or refresh methods. When + * AccountProvider.refresh or AccountProvider.prompt are rejected with this error, the error + * will not be reported to the user. + */ + export interface PromptFailedResult { + /** + * Type guard for differentiating user cancelled sign in errors from other errors + */ + canceled: boolean; + } + + /** + * Represents a provider of accounts. + */ + export interface AccountProviderMetadata { + /** + * The identifier of the provider + */ + id: string; + + /** + * Display name of the provider + */ + displayName: string; + + /** + * Any arguments that identify an instantiation of the provider + */ + args?: any; + + /** + * Optional settings that identify an instantiation of a provider + */ + settings?: {}; + } + + /** + * Represents a provider of accounts for use with the account management service + */ + export interface AccountProvider { + /** + * Initializes the account provider with the accounts restored from the memento, + * @param storedAccounts Accounts restored from the memento + * @return Account objects after being rehydrated (if necessary) + */ + initialize(storedAccounts: Account[]): Thenable; + + /** + * Generates a security token for the provided account + * @param account The account to generate a security token for + * @param resource The resource to get the token for + * @return Promise to return a security token object + */ + getSecurityToken(account: Account, resource: AzureResource): Thenable<{}>; + + /** + * Prompts the user to enter account information. + * Returns an error if the user canceled the operation. + */ + prompt(): Thenable; + + /** + * Refreshes a stale account. + * Returns an error if the user canceled the operation. + * Otherwise, returns a new updated account instance. + * @param account - An account. + */ + refresh(account: Account): Thenable; + + /** + * Clears sensitive information for an account. To be called when account is removed + * @param accountKey - Key that uniquely identifies the account to clear + */ + clear(accountKey: AccountKey): Thenable; + + /** + * Called from the account management service when the user has cancelled an auto OAuth + * authorization process. Implementations should use this to cancel any polling process + * and call the end OAuth method. + */ + autoOAuthCancelled(): Thenable; + } + + // Resource provider interfaces ----------------------------------------------------------------------- + + // - ACCOUNT PROVIDER ////////////////////////////////////////////////// + /** + * Represents a provider of accounts. + */ + export interface ResourceProviderMetadata { + /** + * The identifier of the provider + */ + id: string; + + /** + * Display name of the provider + */ + displayName: string; + + /** + * Optional settings that identify an instantiation of a provider + */ + settings?: {}; + } + + export namespace resources { + /** + * Registers a resource provider that can suport + */ + export function registerResourceProvider(providerMetadata: ResourceProviderMetadata, provider: ResourceProvider): vscode.Disposable; + } + + /** + * Represents a provider of resource + */ + export interface ResourceProvider { + createFirewallRule(account: Account, firewallruleInfo: FirewallRuleInfo): Thenable; + handleFirewallRule(errorCode: number, errorMessage: string, connectionTypeId: string): Thenable; + } + + export interface FirewallRuleInfo { + startIpAddress: string; + endIpAddress: string; + serverName: string; + securityTokenMappings: {}; + } + + export interface CreateFirewallRuleResponse { + result: boolean; + errorMessage: string; + } + + export interface HandleFirewallRuleResponse { + result: boolean; + ipAddress: string; + } + + export interface ModalDialog { + /** + * Title of the webview. + */ + title: string; + + /** + * Contents of the dialog body. + */ + html: string; + + /** + * The caption of the OK button. + */ + okTitle: string; + + /** + * The caption of the Close button. + */ + closeTitle: string; + + /** + * Opens the dialog. + */ + open(): void; + + /** + * Closes the dialog. + */ + close(): void; + + /** + * Raised when the webview posts a message. + */ + readonly onMessage: vscode.Event; + + /** + * Raised when dialog closed. + */ + readonly onClosed: vscode.Event; + + /** + * Post a message to the dialog. + * + * @param message Body of the message. + */ + postMessage(message: any): Thenable; + } + + export interface DashboardWebview { + /** + * Raised when the webview posts a message. + */ + readonly onMessage: vscode.Event; + + /** + * Raised when the webview closed. + */ + readonly onClosed: vscode.Event; + + /** + * Post a message to the webview. + * + * @param message Body of the message. + */ + postMessage(message: any): Thenable; + + /** + * The connection info for the dashboard the webview exists on + */ + readonly connection: connection.Connection; + + /** + * The info on the server for the webview dashboard + */ + readonly serverInfo: ServerInfo; + + /** + * Contents of the dialog body. + */ + html: string; + } + + export namespace dashboard { + /** + * Register a provider for a webview widget + */ + export function registerWebviewProvider(widgetId: string, handler: (webview: DashboardWebview) => void): void; + } + + /** + * Namespace for interacting with the workspace + */ + export namespace workspace { + /** + * An event that is emitted when a [dashboard](#DashboardDocument) is opened. + */ + export const onDidOpenDashboard: vscode.Event; + + /** + * An event that is emitted when a [dashboard](#DashboardDocument) is focused. + */ + export const onDidChangeToDashboard: vscode.Event; + + /** + * Create a new model view editor + */ + export function createModelViewEditor(title: string, options?: ModelViewEditorOptions): ModelViewEditor; + + export interface ModelViewEditor extends window.ModelViewPanel { + /** + * `true` if there are unpersisted changes. + * This is editable to support extensions updating the dirty status. + */ + isDirty: boolean; + + /** + * Opens the editor + */ + openEditor(position?: vscode.ViewColumn): Thenable; + + /** + * Registers a save handler for this editor. This will be called if [supportsSave](#ModelViewEditorOptions.supportsSave) + * is set to true and the editor is marked as dirty + */ + registerSaveHandler(handler: () => Thenable): void; + } + } + + export interface DashboardDocument { + profile: IConnectionProfile; + serverInfo: ServerInfo; + } + + export enum ExtensionNodeType { + Server = 'Server', + Database = 'Database' + } + + export class TreeItem extends vscode.TreeItem { + payload?: IConnectionProfile; + childProvider?: string; + type?: ExtensionNodeType; + } + + export namespace tasks { + export interface ITaskHandler { + (profile: IConnectionProfile, ...args: any[]): any; + } + + /** + * Registers a task that can be invoked via a keyboard shortcut, + * a menu item, an action, or directly. + * + * Registering a task with an existing task identifier twice + * will cause an error. + * + * @param task A unique identifier for the task. + * @param callback A task handler function. + * @param thisArg The `this` context used when invoking the handler function. + * @return Disposable which unregisters this task on disposal. + */ + export function registerTask(task: string, callback: ITaskHandler, thisArg?: any): vscode.Disposable; + + /** + * Starts an operation to run in the background + * @param operationInfo Operation Information + */ + export function startBackgroundOperation(operationInfo: BackgroundOperationInfo): void; + } + + /** + * Supports defining a model that can be instantiated as a view in the UI + */ + export interface ModelBuilder { + navContainer(): ContainerBuilder; + divContainer(): DivBuilder; + flexContainer(): FlexBuilder; + splitViewContainer(): SplitViewBuilder; + dom(): ComponentBuilder; + /** + * @deprecated please use radioCardGroup component. + */ + card(): ComponentBuilder; + inputBox(): ComponentBuilder; + checkBox(): ComponentBuilder; + radioButton(): ComponentBuilder; + webView(): ComponentBuilder; + editor(): ComponentBuilder; + diffeditor(): ComponentBuilder; + text(): ComponentBuilder; + image(): ComponentBuilder; + button(): ComponentBuilder; + dropDown(): ComponentBuilder; + tree(): ComponentBuilder>; + listBox(): ComponentBuilder; + table(): ComponentBuilder; + declarativeTable(): ComponentBuilder; + dashboardWidget(widgetId: string): ComponentBuilder; + dashboardWebview(webviewId: string): ComponentBuilder; + formContainer(): FormBuilder; + groupContainer(): GroupBuilder; + toolbarContainer(): ToolbarBuilder; + loadingComponent(): LoadingComponentBuilder; + fileBrowserTree(): ComponentBuilder; + hyperlink(): ComponentBuilder; + } + + export interface TreeComponentDataProvider extends vscode.TreeDataProvider { + getTreeItem(element: T): TreeComponentItem | Thenable; + } + + export interface NodeCheckedEventParameters { + element: T; + checked: boolean; + } + + export interface TreeComponentView extends vscode.Disposable { + onNodeCheckedChanged: vscode.Event>; + onDidChangeSelection: vscode.Event>; + } + + export class TreeComponentItem extends vscode.TreeItem { + checked?: boolean; + enabled?: boolean; + } + + export interface ComponentBuilder { + component(): T; + withProperties(properties: U): ComponentBuilder; + withValidation(validation: (component: T) => boolean): ComponentBuilder; + } + export interface ContainerBuilder extends ComponentBuilder { + withLayout(layout: TLayout): ContainerBuilder; + withItems(components: Array, itemLayout?: TItemLayout): ContainerBuilder; + } + + export interface FlexBuilder extends ContainerBuilder { + } + + // Building on top of flex item + export interface SplitViewBuilder extends ContainerBuilder { + } + + export interface DivBuilder extends ContainerBuilder { + } + + export interface GroupBuilder extends ContainerBuilder { + } + + export interface ToolbarBuilder extends ContainerBuilder { + withToolbarItems(components: ToolbarComponent[]): ContainerBuilder; + + /** + * Creates a collection of child components and adds them all to this container + * + * @param toolbarComponents the definitions + */ + addToolbarItems(toolbarComponents: Array): void; + + /** + * Creates a child component and adds it to this container. + * + * @param toolbarComponent the component to be added + */ + addToolbarItem(toolbarComponent: ToolbarComponent): void; + } + + export interface LoadingComponentBuilder extends ComponentBuilder { + /** + * Set the component wrapped by the LoadingComponent + * @param component The component to wrap + */ + withItem(component: Component): LoadingComponentBuilder; + } + + export interface FormBuilder extends ContainerBuilder { + withFormItems(components: (FormComponent | FormComponentGroup)[], itemLayout?: FormItemLayout): FormBuilder; + + /** + * Creates a collection of child components and adds them all to this container + * + * @param formComponents the definitions + * @param [itemLayout] Optional layout for the child items + */ + addFormItems(formComponents: Array, itemLayout?: FormItemLayout): void; + + /** + * Creates a child component and adds it to this container. + * + * @param formComponent the component to be added + * @param [itemLayout] Optional layout for this child item + */ + addFormItem(formComponent: FormComponent | FormComponentGroup, itemLayout?: FormItemLayout): void; + + /** + * Inserts a from component in a given position in the form. Returns error given invalid index + * @param formComponent Form component + * @param index index to insert the component to + * @param itemLayout Item Layout + */ + insertFormItem(formComponent: FormComponent | FormComponentGroup, index?: number, itemLayout?: FormItemLayout): void; + + /** + * Removes a from item from the from + */ + removeFormItem(formComponent: FormComponent | FormComponentGroup): boolean; + } + + export interface Component extends ComponentProperties { + readonly id: string; + + /** + * Sends any updated properties of the component to the UI + * + * @returns Thenable that completes once the update + * has been applied in the UI + */ + updateProperties(properties: { [key: string]: any }): Thenable; + + /** + * Sends an updated property of the component to the UI + * + * @returns Thenable that completes once the update + * has been applied in the UI + */ + updateProperty(key: string, value: any): Thenable; + + /** + * Updates the specified CSS Styles and notifies the UI + * @param cssStyles The styles to update + * @returns Thenable that completes once the update has been applied to the UI + */ + updateCssStyles(cssStyles: { [key: string]: string }): Thenable; + + /** + * Event fired to notify that the component's validity has changed + */ + readonly onValidityChanged: vscode.Event; + + /** + * Whether the component is valid or not + */ + readonly valid: boolean; + + /** + * Run the component's validations + */ + validate(): Thenable; + + /** + * Focuses the component. + */ + focus(): Thenable; + } + + export interface FormComponent { + component: Component; + title: string; + actions?: Component[]; + required?: boolean; + } + + /** + * Used to create a group of components in a form layout + */ + export interface FormComponentGroup { + /** + * The form components to display in the group along with optional layouts for each item + */ + components: (FormComponent & { layout?: FormItemLayout })[]; + + /** + * The title of the group, displayed above its components + */ + title: string; + } + + export interface ToolbarComponent { + component: Component; + title?: string; + toolbarSeparatorAfter?: boolean; + } + + /** + * A component that contains other components + */ + export interface Container extends Component { + /** + * A copy of the child items array. This cannot be added to directly - + * components must be created using the create methods instead + */ + readonly items: Component[]; + + /** + * Removes all child items from this container + */ + clearItems(): void; + /** + * Creates a collection of child components and adds them all to this container + * + * @param itemConfigs the definitions + * @param [itemLayout] Optional layout for the child items + */ + addItems(itemConfigs: Array, itemLayout?: TItemLayout): void; + + /** + * Creates a child component and adds it to this container. + * Adding component to multiple containers is not supported + * + * @param component the component to be added + * @param [itemLayout] Optional layout for this child item + */ + addItem(component: Component, itemLayout?: TItemLayout): void; + + /** + * Creates a child component and inserts it to this container. Returns error given invalid index + * Adding component to multiple containers is not supported + * @param component the component to be added + * @param index the index to insert the component to + * @param [itemLayout] Optional layout for this child item + */ + insertItem(component: Component, index: number, itemLayout?: TItemLayout): void; + + /** + * + * @param component Removes a component from this container + */ + removeItem(component: Component): boolean; + + /** + * Defines the layout for this container + * + * @param layout object + */ + setLayout(layout: TLayout): void; + } + + export interface NavContainer extends Container { + } + + /** + * Valid values for the align-items CSS property + */ + export type AlignItemsType = + 'normal' | + 'stretch' | + 'center' | + 'start' | + 'end' | + 'flex-start' | + 'flex-end' | + 'baseline' | + 'first baseline' | + 'last baseline' | + 'safe center' | + 'unsafe center' | + 'inherit' | + 'initial' | + 'unset'; + + /** + * Valid values for the justify-content CSS property + */ + export type JustifyContentType = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'initial' | 'inherit'; + /** + * Valid values for the align-content CSS property + */ + export type AlignContentType = 'stretch' | 'center' | 'flex-start' | 'flex-end' | 'space-between' | 'space-around' | 'initial' | 'inherit'; + /** + * Valid values for flex-wrap CSS property + */ + export type FlexWrapType = 'nowrap' | 'wrap' | 'wrap-reverse'; + /** + * Valid values for the text-align CSS property + */ + export type TextAlignType = 'left' | 'right' | 'center' | 'justify' | 'initial' | 'inherit'; + /** + * Valid values for the position CSS property + */ + export type PositionType = 'static' | 'absolute' | 'fixed' | 'relative' | 'sticky' | 'initial' | 'inherit'; + /** + * Valid values for the display CSS property + */ + export type DisplayType = + 'inline' | + 'block' | + 'contents' | + 'flex' | + 'grid' | + 'inline-block' | + 'inline-flex' | + 'inline-grid' | + 'inline-table' | + 'list-item' | + 'run-in' | + 'table' | + 'table-caption' | + ' table-column-group' | + 'table-header-group' | + 'table-footer-group' | + 'table-row-group' | + 'table-cell' | + 'table-column' | + 'table-row' | + 'none' | + 'initial' | + 'inherit' | + ''; + + /** + * The config for a FlexBox-based container. This supports easy + * addition of content to a container with a flexible layout + * and use of space. + */ + export interface FlexLayout { + /** + * Matches the flex-flow CSS property and its available values. + * To layout as a vertical view use "column", and for horizontal + * use "row". + */ + flexFlow?: string; + /** + * Matches the justify-content CSS property. + */ + justifyContent?: JustifyContentType; + /** + * Matches the align-items CSS property. + */ + alignItems?: AlignItemsType; + /** + * Matches the align-content CSS property. + */ + alignContent?: AlignContentType; + /** + * Matches the flex-wrap CSS property. + */ + flexWrap?: FlexWrapType; + /** + * Container Height + */ + height?: number | string; + + /** + * Container Width + */ + width?: number | string; + + /** + * Matches the text-align CSS property. + */ + textAlign?: TextAlignType; + + /** + * The position CSS property. Empty by default. + * This is particularly useful if laying out components inside a FlexContainer and + * the size of the component is meant to be a fixed size. In this case the position must be + * set to 'absolute', with the parent FlexContainer having 'relative' position. + * Without this the component will fail to correctly size itself. + */ + position?: PositionType; + } + + export interface SplitViewLayout extends FlexLayout { + /** + * Orientation of the views inside split + */ + orientation: string; + + /** + * SplitView height + */ + splitViewHeight: number | string; + } + + export interface FlexItemLayout { + /** + * Matches the order CSS property and its available values. + */ + order?: number; + /** + * Matches the flex CSS property and its available values. + * Default is "1 1 auto". + */ + flex?: string; + /** + * Matches the CSS style key and its available values. + */ + CSSStyles?: { [key: string]: string }; + } + + export interface FormItemLayout { + horizontal?: boolean; + componentWidth?: number | string; + componentHeight?: number | string; + titleFontSize?: number | string; + info?: string; + } + + export interface FormLayout { + width?: number | string; + height?: number | string; + padding?: string; + } + + export interface GroupLayout { + width?: number | string; + header?: string; + collapsible?: boolean; + collapsed?: boolean; + } + + export interface GroupItemLayout { + } + + export interface DivLayout { + /** + * Container Height + */ + height?: number | string; + + /** + * Container Width + */ + width?: number | string; + } + + export interface DivItemLayout { + /** + * Matches the order CSS property and its available values. + */ + order?: number; + + /** + * Matches the CSS style key and its available values. + */ + CSSStyles?: { [key: string]: string }; + } + + export interface DivContainer extends Container, DivContainerProperties { + /** + * An event called when the div is clicked + */ + onDidClick: vscode.Event; + } + + export interface FlexContainer extends Container { + } + + export interface SplitViewContainer extends Container { + } + + export interface FormContainer extends Container { + } + + export interface GroupContainer extends Container, GroupContainerProperties { + } + + export enum Orientation { + Horizontal = 'horizontal', + Vertical = 'vertial' + } + + export interface ToolbarLayout { + orientation: Orientation; + } + export interface ToolbarContainer extends Container { + } + + /** + * Describes an action to be shown in the UI, with a user-readable label + * and a callback to execute the action + */ + export interface ActionDescriptor { + /** + * User-visible label to display + */ + label: string; + /** + * Name of the clickable action. If not defined then no action will be shown + */ + actionTitle?: string; + /** + * Data sent on callback being run. + */ + callbackData?: any; + } + + /** + * Defines status indicators that can be shown to the user as part of + * components such as the Card UI + */ + export enum StatusIndicator { + None = 0, + Ok = 1, + Warning = 2, + Error = 3 + } + + export enum CardType { + VerticalButton = 'VerticalButton', + Details = 'Details', + ListItem = 'ListItem' + } + + /** + * Properties representing the card component, can be used + * when using ModelBuilder to create the component + */ + export interface CardProperties extends ComponentProperties, ComponentWithIcon { + label: string; + value?: string; + actions?: ActionDescriptor[]; + descriptions?: CardDescriptionItem[]; + status?: StatusIndicator; + + /** + * Returns true if the card is selected + */ + selected?: boolean; + + /** + * Card Type, default: Details + */ + cardType?: CardType; + } + + export interface CardDescriptionItem { + label: string; + value?: string; + tooltip?: string; + fontWeight?: 'normal' | 'bold'; + } + + export type InputBoxInputType = 'color' | 'date' | 'datetime-local' | 'email' | 'month' | 'number' | 'password' | 'range' | 'search' | 'text' | 'time' | 'url' | 'week'; + + export interface ComponentProperties { + height?: number | string; + width?: number | string; + /** + * The position CSS property. Empty by default. + * This is particularly useful if laying out components inside a FlexContainer and + * the size of the component is meant to be a fixed size. In this case the position must be + * set to 'absolute', with the parent FlexContainer having 'relative' position. + * Without this the component will fail to correctly size itself + */ + position?: PositionType; + /** + * Whether the component is enabled in the DOM + */ + enabled?: boolean; + /** + * Corresponds to the display CSS property for the element + */ + display?: DisplayType; + /** + * Corresponds to the aria-label accessibility attribute for this component + */ + ariaLabel?: string; + /** + * Corresponds to the role accessibility attribute for this component + */ + ariaRole?: string; + /** + * Corresponds to the aria-selected accessibility attribute for this component + */ + ariaSelected?: boolean; + /** + * Matches the CSS style key and its available values. + */ + CSSStyles?: { [key: string]: string }; + } + + export interface ComponentWithIcon { + /** + * @deprecated This will be moved to `ComponentWithIconProperties` + */ + iconPath?: string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri }; + /** + * @deprecated This will be moved to `ComponentWithIconProperties` + */ + iconHeight?: number | string; + /** + * @deprecated This will be moved to `ComponentWithIconProperties` + */ + iconWidth?: number | string; + } + + export interface InputBoxProperties extends ComponentProperties { + value?: string; + ariaLive?: string; + placeHolder?: string; + inputType?: InputBoxInputType; + required?: boolean; + multiline?: boolean; + rows?: number; + columns?: number; + min?: number; + max?: number; + /** + * Whether to stop key event propagation when enter is pressed in the input box. Leaving this as false + * means the event will propagate up to any parents that have handlers (such as validate on Dialogs) + */ + stopEnterPropagation?: boolean; + } + + export interface TableColumn { + value: string; + width?: number; + cssClass?: string; + headerCssClass?: string; + toolTip?: string; + type?: ColumnType; + options?: CheckboxColumnOption | TextColumnOption; + } + + export enum ColumnType { + text = 0, + checkBox = 1, + button = 2 + } + + export interface CheckboxColumnOption { + actionOnCheckbox: ActionOnCellCheckboxCheck; + } + + export interface TextColumnOption { + } + + export enum ActionOnCellCheckboxCheck { + selectRow = 0, + customAction = 1 + } + + export enum ColumnSizingMode { + ForceFit = 0, // all columns will be sized to fit in viewable space, no horiz scroll bar + AutoFit = 1, // columns will be ForceFit up to a certain number; currently 3. At 4 or more the behavior will switch to NO force fit + DataFit = 2 // columns use sizing based on cell data, horiz scroll bar present if more cells than visible in view area + } + + export interface TableComponentProperties extends ComponentProperties { + data: any[][]; + columns: string[] | TableColumn[]; + fontSize?: number | string; + selectedRows?: number[]; + forceFitColumns?: ColumnSizingMode; + title?: string; + ariaRowCount?: number; + ariaColumnCount?: number; + updateCells?: TableCell[]; + moveFocusOutWithTab?: boolean; // accessibility requirement for tables with no actionable cells + } + + export interface CheckBoxCell extends TableCell { + checked: boolean; + columnName: string; + } + + export interface FileBrowserTreeProperties extends ComponentProperties { + ownerUri: string; + } + + export interface CheckBoxProperties extends ComponentProperties { + checked?: boolean; + label?: string; + } + + export interface TreeProperties extends ComponentProperties { + withCheckbox?: boolean; + } + + export enum DeclarativeDataType { + string = 'string', + category = 'category', + boolean = 'boolean', + editableCategory = 'editableCategory' + } + + export interface RadioButtonProperties { + name?: string; + label?: string; + value?: string; + checked?: boolean; + } + + export interface TextComponentProperties extends ComponentProperties, TitledComponentProperties { + value?: string; + links?: LinkArea[]; + description?: string; + requiredIndicator?: boolean; + } + + export interface ImageComponentProperties extends ComponentProperties, ComponentWithIcon { + } + + export interface GroupContainerProperties { + collapsed: boolean; + } + + export interface LinkArea { + text: string; + url: string; + } + + export interface HyperlinkComponentProperties extends ComponentProperties, TitledComponentProperties { + label: string; + url: string; + } + + export interface DropDownProperties extends ComponentProperties { + value?: string | CategoryValue; + values?: string[] | CategoryValue[]; + editable?: boolean; + fireOnTextChange?: boolean; + required?: boolean; + } + + export interface DeclarativeTableColumn { + displayName: string; + valueType: DeclarativeDataType; + isReadOnly: boolean; + width: number | string; + categoryValues?: CategoryValue[]; + } + + export interface DeclarativeTableProperties { + data: any[][]; + columns: DeclarativeTableColumn[]; + } + + export interface ListBoxProperties { + selectedRow?: number; + values?: string[]; + } + + export interface WebViewProperties extends ComponentProperties { + message?: any; + + /** + * Contents of the webview. + * + * Should be a complete html document. + */ + html?: string; + /** + * Content settings for the webview. + */ + options?: vscode.WebviewOptions; + } + + export interface DomProperties extends ComponentProperties { + /** + * Contents of the DOM component. + */ + html?: string; + } + + /** + * Editor properties for the editor component + */ + export interface EditorProperties extends ComponentProperties { + /** + * The content inside the text editor + */ + content?: string; + /** + * The languge mode for this text editor. The language mode is SQL by default. + */ + languageMode?: string; + /** + * Minimum height for editor component + */ + minimumHeight?: number; + } + + export interface ButtonProperties extends ComponentProperties, ComponentWithIcon { + /** + * The label for the button + */ + label?: string; + /** + * Whether the button opens the file browser dialog + */ + isFile?: boolean; + /** + * The content of the currently selected file + */ + fileContent?: string; + /** + * @deprecated This will be moved to `ComponentWithIconProperties` + * + * The title for the button. This title will show when hovered over + */ + title?: string; + } + + export interface LoadingComponentProperties { + loading?: boolean; + showText?: boolean; + loadingText?: string; + loadingCompletedText?: string; + } + + export interface DivContainerProperties extends ComponentProperties { + /** + * Matches the overflow-y CSS property and its available values. + */ + overflowY?: string; + + /** + * Setting the scroll based on the y offset + * This is used when its child component is webview + */ + yOffsetChange?: number; + + /** + * Indicates whether the element is clickable + */ + clickable?: boolean; + } + + export interface TitledComponentProperties { + /** + * The title for the component. This title will show when hovered over + */ + title?: string; + } + + export interface CardComponent extends Component, CardProperties { + onDidActionClick: vscode.Event; + onCardSelectedChanged: vscode.Event; + } + + export interface DomComponent extends Component, DomProperties { + } + + export interface TextComponent extends Component, TextComponentProperties { + } + + export interface ImageComponent extends Component, ImageComponentProperties { + } + + export interface HyperlinkComponent extends Component, HyperlinkComponentProperties { + } + + export interface InputBoxComponent extends Component, InputBoxProperties { + onTextChanged: vscode.Event; + /** + * Event that's fired whenever enter is pressed within the input box + */ + onEnterKeyPressed: vscode.Event; + } + + export interface RadioButtonComponent extends Component, RadioButtonProperties { + /** + * An event called when the radio button is clicked + */ + onDidClick: vscode.Event; + } + + export interface CheckBoxComponent extends Component, CheckBoxProperties { + onChanged: vscode.Event; + } + + export interface DropDownComponent extends Component, DropDownProperties { + onValueChanged: vscode.Event; + } + + export interface TableCell { + row: number; + column: number; + value: any; + } + + export interface DeclarativeTableComponent extends Component, DeclarativeTableProperties { + onDataChanged: vscode.Event; + } + + export interface ListBoxComponent extends Component, ListBoxProperties { + onRowSelected: vscode.Event; + } + + export interface ICheckboxCellActionEventArgs extends ICellActionEventArgs { + checked: boolean; + } + + interface ICellActionEventArgs { + row: number; + column: number; + columnName: number; + } + + export interface TableComponent extends Component, TableComponentProperties { + onRowSelected: vscode.Event; + onCellAction?: vscode.Event; + } + + export interface FileBrowserTreeComponent extends Component, FileBrowserTreeProperties { + onDidChange: vscode.Event; + } + + export interface TreeComponent extends Component, TreeProperties { + registerDataProvider(dataProvider: TreeComponentDataProvider): TreeComponentView; + } + + export interface WebViewComponent extends Component { + html: string; + message: any; + onMessage: vscode.Event; + readonly options: vscode.WebviewOptions; + } + + /** + * Editor component for displaying the text code editor + */ + export interface EditorComponent extends Component { + /** + * The content inside the text editor + */ + content: string; + /** + * The languge mode for this text editor. The language mode is SQL by default. + */ + languageMode: string; + /** + * The editor Uri which will be used as a reference for VSCode Language Service. + * Currently this is auto-generated by the framework but can be queried after + * view initialization is completed + */ + readonly editorUri: string; + /** + * An event called when the editor content is updated + */ + readonly onContentChanged: vscode.Event; + + /** + * An event called when the editor is created + */ + readonly onEditorCreated: vscode.Event; + + /** + * Toggle for whether the editor should be automatically resized or not + */ + isAutoResizable: boolean; + + /** + * Minimum height for editor component + */ + minimumHeight: number; + } + + export interface DiffEditorComponent extends Component { + /** + * The content inside the left text editor + */ + contentLeft: string; + /** + * The content inside the right text editor + */ + contentRight: string; + /** + * The languge mode for this text editor. The language mode is SQL by default. + */ + languageMode: string; + /** + * The left editor Uri which will be used as a reference for VSCode Language Service. + * Currently this is auto-generated by the framework but can be queried after + * view initialization is completed + */ + readonly editorUriLeft: string; + /** + * The right editor Uri which will be used as a reference for VSCode Language Service. + * Currently this is auto-generated by the framework but can be queried after + * view initialization is completed + */ + readonly editorUriRight: string; + /** + * An event called when the editor content is updated + */ + readonly onContentChanged: vscode.Event; + + /** + * An event called when the editor is created + */ + readonly onEditorCreated: vscode.Event; + + /** + * Toggle for whether the editor should be automatically resized or not + */ + isAutoResizable: boolean; + + /** + * Minimum height for editor component + */ + minimumHeight: number; + } + + export interface ButtonComponent extends Component, ButtonProperties { + /** + * An event called when the button is clicked + */ + onDidClick: vscode.Event; + } + + export interface DashboardWidgetComponent extends Component { + widgetId: string; + } + + export interface DashboardWebviewComponent extends Component { + webviewId: string; + } + + /** + * Component used to wrap another component that needs to be loaded, and show a loading spinner + * while the contained component is loading + */ + export interface LoadingComponent extends Component { + /** + * Whether to show the loading spinner instead of the contained component. True by default + */ + loading: boolean; + + /** + * The component displayed when the loading property is false + */ + component: Component; + } + + /** + * A view backed by a model provided by an extension. + * This model contains enough information to lay out the view + */ + export interface ModelView { + /** + * Raised when the view closed. + */ + readonly onClosed: vscode.Event; + + /** + * The connection info for the dashboard the webview exists on + */ + readonly connection: connection.Connection; + + /** + * The info on the server for the dashboard + */ + readonly serverInfo: ServerInfo; + + /** + * The model backing the model-based view + */ + readonly modelBuilder: ModelBuilder; + + /** + * Whether or not the model view's root component is valid + */ + readonly valid: boolean; + + /** + * Raised when the model view's valid property changes + */ + readonly onValidityChanged: vscode.Event; + + /** + * Run the model view root component's validations + */ + validate(): Thenable; + + /** + * Initializes the model with a root component definition. + * Once this has been done, the components will be laid out in the UI and + * can be accessed and altered as needed. + */ + initializeModel(root: T): Thenable; + } + + export namespace ui { + /** + * Register a provider for a model-view widget + */ + export function registerModelViewProvider(widgetId: string, handler: (view: ModelView) => void): void; + } + + export namespace window { + /** + * creates a web view dialog + */ + export function createWebViewDialog(title: string): ModalDialog; + + /** + * Create a dialog with the given title + * @param title The title of the dialog, displayed at the top + * @param isWide Indicates whether the dialog is wide or normal + */ + export function createModelViewDialog(title: string, dialogName?: string, isWide?: boolean): Dialog; + + /** + * Create a dialog tab which can be included as part of the content of a dialog + * @param title The title of the page, displayed on the tab to select the page + */ + export function createTab(title: string): DialogTab; + + /** + * Create a button which can be included in a dialog + * @param label The label of the button + */ + export function createButton(label: string, position?: DialogButtonPosition): Button; + + /** + * Opens the given dialog if it is not already open + */ + export function openDialog(dialog: Dialog): void; + + /** + * Closes the given dialog if it is open + */ + export function closeDialog(dialog: Dialog): void; + + /** + * Create a wizard page with the given title, for inclusion in a wizard + * @param title The title of the page + */ + export function createWizardPage(title: string): WizardPage; + + /** + * Create a wizard with the given title and pages + * @param title The title of the wizard + */ + export function createWizard(title: string): Wizard; + + /** + * Used to control whether a message in a dialog/wizard is displayed as an error, + * warning, or informational message. Default is error. + */ + export enum MessageLevel { + Error = 0, + Warning = 1, + Information = 2 + } + + /** + * A message shown in a dialog. If the level is not set it defaults to error. + */ + export type DialogMessage = { + readonly text: string, + readonly description?: string, + readonly level?: MessageLevel + }; + + export interface ModelViewPanel { + /** + * Register model view content for the dialog. + * Doesn't do anything if model view is already registered + */ + registerContent(handler: (view: ModelView) => Thenable): void; + + /** + * Returns the model view content if registered. Returns undefined if model review is not registered + */ + readonly modelView: ModelView; + + /** + * Whether the panel's content is valid + */ + readonly valid: boolean; + + /** + * Fired whenever the panel's valid property changes + */ + readonly onValidityChanged: vscode.Event; + } + + // Model view dialog classes + export interface Dialog extends ModelViewPanel { + /** + * The title of the dialog + */ + title: string; + + /** + * Indicates the width of the dialog + */ + isWide: boolean; + + /** + * The content of the dialog. If multiple tabs are given they will be displayed with tabs + * If a string is given, it should be the ID of the dialog's model view content + */ + content: string | DialogTab[]; + + /** + * The ok button + */ + okButton: Button; + + /** + * The cancel button + */ + cancelButton: Button; + + /** + * Any additional buttons that should be displayed + */ + customButtons: Button[]; + + /** + * Set the informational message shown in the dialog. Hidden when the message is + * undefined or the text is empty or undefined. The default level is error. + */ + message: DialogMessage; + + /** + * Set the dialog name when opening + * the dialog for telemetry + */ + dialogName?: string; + + /** + * Register a callback that will be called when the user tries to click done. Only + * one callback can be registered at once, so each registration call will clear + * the previous registration. + * @param validator The callback that gets executed when the user tries to click + * done. Return true to allow the dialog to close or false to block it from closing + */ + registerCloseValidator(validator: () => boolean | Thenable): void; + + /** + * Register an operation to run in the background when the dialog is done + * @param operationInfo Operation Information + */ + registerOperation(operationInfo: BackgroundOperationInfo): void; + } + + export interface DialogTab extends ModelViewPanel { + /** + * The title of the tab + */ + title: string; + + /** + * A string giving the ID of the tab's model view content + */ + content: string; + } + + export interface Button { + /** + * The label displayed on the button + */ + label: string; + + /** + * Whether the button is enabled + */ + enabled: boolean; + + /** + * Whether the button is hidden + */ + hidden: boolean; + + /** + * Whether the button is focused + */ + focused?: boolean; + + /** + * Raised when the button is clicked + */ + readonly onClick: vscode.Event; + + /** + * Position of the button on the dialog footer + */ + position?: DialogButtonPosition; + } + + export type DialogButtonPosition = 'left' | 'right'; + + export interface WizardPageChangeInfo { + /** + * The page number that the wizard changed from + */ + lastPage: number; + + /** + * The new page number or undefined if the user is closing the wizard + */ + newPage: number; + } + + export interface WizardPage extends ModelViewPanel { + /** + * The title of the page + */ + title: string; + + /** + * A string giving the ID of the page's model view content + */ + content: string; + + /** + * Any additional buttons that should be displayed while the page is open + */ + customButtons: Button[]; + + /** + * Whether the page is enabled. If the page is not enabled, the user will not be + * able to advance to it. Defaults to true. + */ + enabled: boolean; + + /** + * An optional description for the page. If provided it will be displayed underneath the page title. + */ + description: string; + } + + export interface Wizard { + /** + * The title of the wizard + */ + title: string; + + /** + * The wizard's pages. Pages can be added/removed while the dialog is open by using + * the addPage and removePage methods + */ + pages: WizardPage[]; + + /** + * The index in the pages array of the active page, or undefined if the wizard is + * not currently visible + */ + readonly currentPage: number; + + /** + * The done button + */ + doneButton: Button; + + /** + * The cancel button + */ + cancelButton: Button; + + /** + * The generate script button + */ + generateScriptButton: Button; + + /** + * The next button + */ + nextButton: Button; + + /** + * The back button + */ + backButton: Button; + + /** + * Any additional buttons that should be displayed for all pages of the dialog. If + * buttons are needed for specific pages they can be added using the customButtons + * property on each page. + */ + customButtons: Button[]; + + /** + * When set to false page titles and descriptions will not be displayed at the top + * of each wizard page. The default is true. + */ + displayPageTitles: boolean; + + /** + * Event fired when the wizard's page changes, containing information about the + * previous page and the new page + */ + onPageChanged: vscode.Event; + + /** + * Add a page to the wizard at the given index + * @param page The page to add + * @param index The index in the pages array to add the page at, or undefined to + * add it at the end + */ + addPage(page: WizardPage, index?: number): Thenable; + + /** + * Remove the page at the given index from the wizard + * @param index The index in the pages array to remove + */ + removePage(index: number): Thenable; + + /** + * Go to the page at the given index in the pages array. + * @param index The index of the page to go to + */ + setCurrentPage(index: number): Thenable; + + /** + * Open the wizard. Does nothing if the wizard is already open. + */ + open(): Thenable; + + /** + * Close the wizard. Does nothing if the wizard is not open. + */ + close(): Thenable; + + /** + * Register a callback that will be called when the user tries to navigate by + * changing pages or clicking done. Only one callback can be registered at once, so + * each registration call will clear the previous registration. + * @param validator The callback that gets executed when the user tries to + * navigate. Return true to allow the navigation to proceed, or false to + * cancel it. + */ + registerNavigationValidator(validator: (pageChangeInfo: WizardPageChangeInfo) => boolean | Thenable): void; + + /** + * Set the informational message shown in the wizard. Hidden when the message is + * undefined or the text is empty or undefined. The default level is error. + */ + message: DialogMessage; + + /** + * Register an operation to run in the background when the wizard is done + * @param operationInfo Operation Information + */ + registerOperation(operationInfo: BackgroundOperationInfo): void; + } + } + + /** + * Namespace for interacting with query editor + */ + export namespace queryeditor { + export type QueryEventType = + | 'queryStart' + | 'queryUpdate' + | 'queryStop' + | 'executionPlan' + | 'visualize'; + + /** + * args for each event type + * queryStart: undefined + * queryStop: undefined + * executionPlan: string + * visualize: ResultSetSummary + */ + export interface QueryEventListener { + onQueryEvent(type: QueryEventType, document: QueryDocument, args: ResultSetSummary | string | undefined): void; + } + + // new extensibility interfaces + export interface QueryDocument { + providerId: string; + + uri: string; + + // set the document's execution options + setExecutionOptions(options: Map): Thenable; + + // tab content is build using the modelview UI builder APIs + // probably should rename DialogTab class since it is useful outside dialogs + createQueryTab(tab: window.DialogTab): void; + + // connect the query document using the given connection profile + connect(connectionProfile: connection.ConnectionProfile): Thenable; + } + + /** + * Make connection for the query editor + * @param fileUri file URI for the query editor + * @param connectionId connection ID + */ + export function connect(fileUri: string, connectionId: string): Thenable; + + /** + * Run query if it is a query editor and it is already opened. + * @param fileUri file URI for the query editor + * @param options options + * @param runCurrentQuery true: run current query only, false: run all the queries in the file, default is true. + */ + export function runQuery(fileUri: string, options?: Map, runCurrentQuery?: boolean): void; + + /** + * Register a query event listener + */ + export function registerQueryEventListener(listener: QueryEventListener): void; + + /** + * Get a QueryDocument object for a file URI + */ + export function getQueryDocument(fileUri: string): Thenable; + } + + export interface ModelViewEditorOptions { + /** + * Should the model view editor's context be kept around even when the editor is no longer visible? It is false by default + */ + readonly retainContextWhenHidden?: boolean; + + /** + * Does this model view editor support save? + */ + readonly supportsSave?: boolean; + + /** + * Resource name for this editor + * File icons might depend on file extension, language id or resource name + * Resource name field needs to be set explitly if file icon for a particular Model View Editor depends on editor resource name + */ + readonly resourceName?: string; + } + + export enum DataProviderType { + ConnectionProvider = 'ConnectionProvider', + BackupProvider = 'BackupProvider', + RestoreProvider = 'RestoreProvider', + ScriptingProvider = 'ScriptingProvider', + ObjectExplorerProvider = 'ObjectExplorerProvider', + TaskServicesProvider = 'TaskServicesProvider', + FileBrowserProvider = 'FileBrowserProvider', + ProfilerProvider = 'ProfilerProvider', + MetadataProvider = 'MetadataProvider', + QueryProvider = 'QueryProvider', + AdminServicesProvider = 'AdminServicesProvider', + AgentServicesProvider = 'AgentServicesProvider', + CapabilitiesProvider = 'CapabilitiesProvider', + ObjectExplorerNodeProvider = 'ObjectExplorerNodeProvider', + IconProvider = 'IconProvider', + SerializationProvider = 'SerializationProvider' + } + + /** + * Context object passed as an argument to command callbacks. + * Defines properties that can be sent for any connected context, + * whether that is the Object Explorer context menu or a command line + * startup argument. + */ + + export interface ConnectedContext { + /** + * The connection information for the selected object. + * Note that the connection is not guaranteed to be in a connected + * state on click. + */ + connectionProfile: IConnectionProfile; + } + + /** + * Context object passed as an argument to command callbacks. + * Defines the key properties required to identify a node in the object + * explorer tree and take action against it. + */ + export interface ObjectExplorerContext extends ConnectedContext { + /** + * Defines whether this is a Connection-level object. + * If not, the object is expected to be a child object underneath + * one of the connections. + */ + isConnectionNode: boolean; + /** + * Node info for objects below a specific connection. This + * may be null for a Connection-level object + */ + nodeInfo: NodeInfo; + } + + /** + * Background Operation + */ + export interface BackgroundOperation { + /** + * Updates the operation status or adds progress message + * @param status Operation Status + * @param message Progress message + */ + updateStatus(status: TaskStatus, message?: string): void; + + /** + * Operation Id + */ + id: string; + + /** + * Event raised when operation is canceled in UI + */ + onCanceled: vscode.Event; + } + + /** + * Operation Information + */ + export interface BackgroundOperationInfo { + /** + * The operation id. A unique id will be assigned to it If not specified a + */ + operationId?: string; + /** + * Connection information + */ + connection?: connection.Connection; + + /** + * Operation Display Name + */ + displayName: string; + + /** + * Operation Description + */ + description: string; + + /** + * True if the operation is cancelable + */ + isCancelable: boolean; + + /** + * The actual operation to execute + */ + operation: (operation: BackgroundOperation) => void; + } + + export interface ConnectionResult { + connected: boolean; + connectionId: string; + errorMessage: string; + errorCode: number; + } + + export namespace nb { + /** + * All notebook documents currently known to the system. + */ + export let notebookDocuments: NotebookDocument[]; + + /** + * The currently active Notebook editor or `undefined`. The active editor is the one + * that currently has focus or, when none has focus, the one that has changed + * input most recently. + */ + export let activeNotebookEditor: NotebookEditor | undefined; + + /** + * The currently visible editors or an empty array. + */ + export let visibleNotebookEditors: NotebookEditor[]; + + /** + * An event that is emitted when a [notebook document](#NotebookDocument) is opened. + * + * To add an event listener when a visible text document is opened, use the [TextEditor](#TextEditor) events in the + * [window](#window) namespace. Note that: + * + * - The event is emitted before the [document](#NotebookDocument) is updated in the + * [active notebook editor](#nb.activeNotebookEditor) + * - When a [notebook document](#NotebookDocument) is already open (e.g.: open in another visible notebook editor) this event is not emitted + * + */ + export const onDidOpenNotebookDocument: vscode.Event; + + /** + * An event that is emitted when a [notebook's](#NotebookDocument) cell contents are changed. + */ + export const onDidChangeNotebookCell: vscode.Event; + + /** + * Show the given document in a notebook editor. A [column](#ViewColumn) can be provided + * to control where the editor is being shown. Might change the [active editor](#nb.activeNotebookEditor). + * + * The document is denoted by an [uri](#Uri). Depending on the [scheme](#Uri.scheme) the + * following rules apply: + * `file`-scheme: Open a file on disk, will be rejected if the file does not exist or cannot be loaded. + * `untitled`-scheme: A new file that should be saved on disk, e.g. `untitled:c:\frodo\new.js`. The language + * will be derived from the file name. + * For all other schemes the registered notebook providers are consulted. + * + * @param document A document to be shown. + * @param column A view column in which the [editor](#NotebookEditor) should be shown. The default is the [active](#ViewColumn.Active), other values + * are adjusted to be `Min(column, columnCount + 1)`, the [active](#ViewColumn.Active)-column is not adjusted. Use [`ViewColumn.Beside`](#ViewColumn.Beside) + * to open the editor to the side of the currently active one. + * @param preserveFocus When `true` the editor will not take focus. + * @return A promise that resolves to a [notebook editor](#NotebookEditor). + */ + export function showNotebookDocument(uri: vscode.Uri, showOptions?: NotebookShowOptions): Thenable; + + export interface NotebookDocument { + /** + * The associated uri for this notebook document. + * + * *Note* that most documents use the `file`-scheme, which means they are files on disk. However, **not** all documents are + * saved on disk and therefore the `scheme` must be checked before trying to access the underlying file or siblings on disk. + * + */ + readonly uri: vscode.Uri; + + /** + * The file system path of the associated resource. Shorthand + * notation for [TextDocument.uri.fsPath](#TextDocument.uri). Independent of the uri scheme. + */ + readonly fileName: string; + + /** + * Is this document representing an untitled file which has never been saved yet. *Note* that + * this does not mean the document will be saved to disk, use [`uri.scheme`](#Uri.scheme) + * to figure out where a document will be [saved](#FileSystemProvider), e.g. `file`, `ftp` etc. + */ + readonly isUntitled: boolean; + + /** + * The identifier of the Notebook provider associated with this document. + */ + readonly providerId: string; + + /** + * `true` if there are unpersisted changes. + */ + readonly isDirty: boolean; + /** + * `true` if the document have been closed. A closed document isn't synchronized anymore + * and won't be re-used when the same resource is opened again. + */ + readonly isClosed: boolean; + + /** + * All cells. + */ + readonly cells: NotebookCell[]; + + /** + * The spec for current kernel, if applicable. This will be undefined + * until a kernel has been started + */ + readonly kernelSpec: IKernelSpec; + + /** + * Save the underlying file. + * + * @return A promise that will resolve to true when the file + * has been saved. If the file was not dirty or the save failed, + * will return false. + */ + save(): Thenable; + + /** + * Ensure a cell range is completely contained in this document. + * + * @param range A cell range. + * @return The given range or a new, adjusted range. + */ + validateCellRange(range: CellRange): CellRange; + } + + /** + * A cell range represents an ordered pair of two positions in a list of cells. + * It is guaranteed that [start](#CellRange.start).isBeforeOrEqual([end](#CellRange.end)) + * + * CellRange objects are __immutable__. + */ + export class CellRange { + /** + * The start index. It is before or equal to [end](#CellRange.end). + */ + readonly start: number; + + /** + * The end index. It is after or equal to [start](#CellRange.start). + */ + readonly end: number; + + /** + * Create a new range from two positions. If `start` is not + * before or equal to `end`, the values will be swapped. + * + * @param start A number. + * @param end A number. + */ + constructor(start: number, end: number); + } + + export interface NotebookEditor { + /** + * The document associated with this editor. The document will be the same for the entire lifetime of this editor. + */ + readonly document: NotebookDocument; + /** + * The column in which this editor shows. Will be `undefined` in case this + * isn't one of the main editors, e.g an embedded editor, or when the editor + * column is larger than three. + */ + viewColumn?: vscode.ViewColumn; + + /** + * Perform an edit on the document associated with this notebook editor. + * + * The given callback-function is invoked with an [edit-builder](#NotebookEditorEdit) which must + * be used to make edits. Note that the edit-builder is only valid while the + * callback executes. + * + * @param callback A function which can create edits using an [edit-builder](#NotebookEditorEdit). + * @param options The undo/redo behavior around this edit. By default, undo stops will be created before and after this edit. + * @return A promise that resolves with a value indicating if the edits could be applied. + */ + edit(callback: (editBuilder: NotebookEditorEdit) => void, options?: { undoStopBefore: boolean; undoStopAfter: boolean; }): Thenable; + + /** + * Kicks off execution of a cell. Thenable will resolve only once the full execution is completed. + * + * + * @param cell An optional cell in this notebook which should be executed. If no cell is defined, it will run the active cell instead + * @return A promise that resolves with a value indicating if the cell was run or not. + */ + runCell(cell?: NotebookCell): Thenable; + + /** + * Kicks off execution of all code cells. Thenable will resolve only when full execution of all cells is completed. + */ + runAllCells(startCell?: NotebookCell, endCell?: NotebookCell): Thenable; + + /** + * Clears the outputs of the active code cell in a notebook. + */ + clearOutput(cell?: NotebookCell): Thenable; + + /** + * Clears the outputs of all code cells in a Notebook + * @return A promise that resolves with a value indicating if the outputs are cleared or not. + */ + clearAllOutputs(): Thenable; + + /** + * Changes the Notebook's kernel. Thenable will resolve only after kernel change is complete. + */ + changeKernel(kernel: IKernelSpec): Thenable; + } + + export interface NotebookCell { + contents: ICellContents; + uri?: vscode.Uri; + } + + export interface NotebookShowOptions { + /** + * An optional view column in which the [editor](#NotebookEditor) should be shown. + * The default is the [active](#ViewColumn.Active), other values are adjusted to + * be `Min(column, columnCount + 1)`, the [active](#ViewColumn.Active)-column is + * not adjusted. Use [`ViewColumn.Beside`](#ViewColumn.Beside) to open the + * editor to the side of the currently active one. + */ + viewColumn?: vscode.ViewColumn; + + /** + * An optional flag that when `true` will stop the [editor](#NotebookEditor) from taking focus. + */ + preserveFocus?: boolean; + + /** + * An optional flag that controls if an [editor](#NotebookEditor)-tab will be replaced + * with the next editor or if it will be kept. + */ + preview?: boolean; + + /** + * An optional string indicating which notebook provider to initially use + */ + providerId?: string; + + /** + * Optional profile indicating the initial connection to use for this editor + */ + connectionProfile?: IConnectionProfile; + + /** + * Default kernel for notebook + */ + defaultKernel?: IKernelSpec; + + /** + * Optional content used to give an initial notebook state + */ + initialContent?: INotebookContents | string; + + /** + * A optional boolean value indicating the dirty state after the initial content is loaded, default value is true + */ + initialDirtyState?: boolean; + } + + /** + * Represents an event describing the change in a [notebook document's cells](#NotebookDocument.cells). + */ + export interface NotebookCellChangeEvent { + /** + * The [notebook document](#NotebookDocument) for which the selections have changed. + */ + notebook: NotebookDocument; + /** + * The new value for the [notebook document's cells](#NotebookDocument.cells). + */ + cells: NotebookCell[]; + /** + * The [change kind](#NotebookChangeKind) which has triggered this + * event. Can be `undefined`. + */ + kind?: NotebookChangeKind; + } + + export enum NotebookChangeKind { + ContentUpdated = 0, + MetadataUpdated = 1, + Save = 2, + CellExecuted = 3 + } + + /** + * A complex edit that will be applied in one transaction on a TextEditor. + * This holds a description of the edits and if the edits are valid (i.e. no overlapping regions, document was not changed in the meantime, etc.) + * they can be applied on a [document](#TextDocument) associated with a [text editor](#TextEditor). + * + */ + export interface NotebookEditorEdit { + /** + * Replace a cell range with a new cell. + * + * @param location The range this operation should remove. + * @param value The new cell this operation should insert after removing `location`. + */ + replace(location: number | CellRange, value: ICellContents): void; + + /** + * Insert a cell (optionally) at a specific index. Any index outside of the length of the cells + * will result in the cell being added at the end. + * + * @param index The position where the new text should be inserted. + * @param value The new text this operation should insert. + * @param collapsed The collapsed state of the new cell. Default value is `false` if not provided. + */ + insertCell(value: ICellContents, index?: number, collapsed?: boolean): void; + + /** + * Delete a certain cell. + * + * @param index The index of the cell to remove. + */ + deleteCell(index: number): void; + } + + /** + * Register a notebook provider. The supported file types handled by this + * provider are defined in the `package.json: + * ```json + * { + * "contributes": { + * "notebook.providers": [{ + * "provider": "providername", + * "fileExtensions": ["FILEEXT"] + * }] + * } + * } + * ``` + * @param notebook provider + * @returns disposable + */ + export function registerNotebookProvider(provider: NotebookProvider): vscode.Disposable; + + export interface IStandardKernel { + readonly name: string; + readonly displayName: string; + readonly connectionProviderIds: string[]; + } + + export interface NotebookProvider { + readonly providerId: string; + readonly standardKernels: IStandardKernel[]; + getNotebookManager(notebookUri: vscode.Uri): Thenable; + handleNotebookClosed(notebookUri: vscode.Uri): void; + } + + export interface NotebookManager { + /** + * Manages reading and writing contents to/from files. + * Files may be local or remote, with this manager giving them a chance to convert and migrate + * from specific notebook file types to and from a standard type for this UI + */ + readonly contentManager: ContentManager; + /** + * A SessionManager that handles starting, stopping and handling notifications around sessions. + * Each notebook has 1 session associated with it, and the session is responsible + * for kernel management + */ + readonly sessionManager: SessionManager; + /** + * (Optional) ServerManager to handle server lifetime management operations. + * Depending on the implementation this may not be needed. + */ + readonly serverManager?: ServerManager; + } + + /** + * Defines the contracts needed to manage the lifetime of a notebook server. + */ + export interface ServerManager { + /** + * Indicates if the server is started at the current time + */ + readonly isStarted: boolean; + + /** + * Event sent when the server has started. This can be used to query + * the manager for server settings + */ + readonly onServerStarted: vscode.Event; + + /** + * Starts the server. Some server types may not support or require this. + * Should no-op if server is already started + */ + startServer(): Thenable; + + /** + * Stops the server. Some server types may not support or require this + */ + stopServer(): Thenable; + } + + //#region Content APIs + /** + * Handles interacting with file and folder contents + */ + export interface ContentManager { + /* Reads contents from a Uri representing a local or remote notebook and returns a + * JSON object containing the cells and metadata about the notebook + */ + getNotebookContents(notebookUri: vscode.Uri): Thenable; + + /** + * Save a file. + * + * @param notebookUri - The desired file path. + * + * @param notebook - notebook to be saved. + * + * @returns A thenable which resolves with the file content model when the + * file is saved. + */ + save(notebookUri: vscode.Uri, notebook: INotebookContents): Thenable; + } + + /** + * Interface defining the file format contents of a notebook, usually in a serializable + * format. This interface does not have any methods for manipulating or interacting + * with a notebook object. + * + */ + export interface INotebookContents { + readonly cells: ICellContents[]; + readonly metadata: INotebookMetadata; + readonly nbformat: number; + readonly nbformat_minor: number; + } + + export interface INotebookMetadata { + kernelspec: IKernelInfo; + language_info?: ILanguageInfo; + tags?: string[]; + } + + export interface IKernelInfo { + name: string; + language?: string; + display_name?: string; + } + + export interface ILanguageInfo { + name: string; + version?: string; + mimetype?: string; + codemirror_mode?: string | ICodeMirrorMode; + } + + export interface ICodeMirrorMode { + name: string; + version: string; + } + + /** + * Interface defining the file format contents of a notebook cell, usually in a serializable + * format. This interface does not have any methods for manipulating or interacting + * with a cell object. + * + */ + export interface ICellContents { + cell_type: CellType; + source: string | string[]; + metadata?: { + language?: string; + tags?: string[]; + azdata_cell_guid?: string; + }; + execution_count?: number; + outputs?: ICellOutput[]; + } + + export type CellType = 'code' | 'markdown' | 'raw'; + + export interface ICellOutput { + output_type: OutputTypeName; + } + + /** + * An alias for a stream type. + */ + export type StreamType = 'stdout' | 'stderr'; + + /** + * A multiline string. + */ + export type MultilineString = string | string[]; + + export interface IStreamResult extends ICellOutput { + output_type: 'stream'; + /** + * Stream output field defining the stream name, for example stdout + */ + name: StreamType; + /** + * Stream output field defining the multiline stream text + */ + text: MultilineString; + } + export interface IDisplayResult extends ICellOutput { + /** + * Mime bundle expected to contain mime type -> contents mappings. + * This is dynamic and is controlled by kernels, so cannot be more specific + */ + data: { [key: string]: any }; + /** + * Optional metadata, also a mime bundle + */ + metadata?: {}; + } + export interface IDisplayData extends IDisplayResult { + output_type: 'display_data'; + } + export interface IUpdateDisplayData extends IDisplayResult { + output_type: 'update_display_data'; + } + export interface IExecuteResult extends IDisplayResult { + /** + * Type of cell output. + */ + output_type: 'execute_result'; + /** + * Number of times the cell was executed + */ + execution_count: number; + } + export interface IErrorResult extends ICellOutput { + /** + * Type of cell output. + */ + output_type: 'error'; + /** + * Exception name + */ + ename: string; + /** + * Exception value + */ + evalue: string; + /** + * Stacktrace equivalent + */ + traceback?: string[]; + } + + export type OutputTypeName = + | 'execute_result' + | 'display_data' + | 'stream' + | 'error' + | 'update_display_data'; + + export type Output = IDisplayData | IUpdateDisplayData | IExecuteResult | IErrorResult | IStreamResult; + + //#endregion + + //#region Session APIs + export interface SessionManager { + /** + * Indicates whether the manager is ready. + */ + readonly isReady: boolean; + + /** + * A Thenable that is fulfilled when the manager is ready. + */ + readonly ready: Thenable; + + readonly specs: IAllKernels | undefined; + + startNew(options: ISessionOptions): Thenable; + + shutdown(id: string): Thenable; + } + + export interface ISession { + /** + * Is change of kernels supported for this session? + */ + canChangeKernels: boolean; + /* + * Unique id of the session. + */ + readonly id: string; + + /** + * The current path associated with the session. + */ + readonly path: string; + + /** + * The current name associated with the session. + */ + readonly name: string; + + /** + * The type of the session. + */ + readonly type: string; + + /** + * The status indicates if the kernel is healthy, dead, starting, etc. + */ + readonly status: KernelStatus; + + /** + * The kernel. + * + * #### Notes + * This is a read-only property, and can be altered by [changeKernel]. + */ + readonly kernel: IKernel; + + /** + * Tracks whether the default kernel failed to load + * This could be for a reason such as the kernel name not being recognized as a valid kernel; + */ + defaultKernelLoaded?: boolean; + + changeKernel(kernelInfo: IKernelSpec): Thenable; + + configureKernel(kernelInfo: IKernelSpec): Thenable; + + configureConnection(connection: IConnectionProfile): Thenable; + } + + export interface ISessionOptions { + /** + * The path (not including name) to the session. + */ + path: string; + /** + * The name of the session. + */ + name?: string; + /** + * The type of the session. + */ + type?: string; + /** + * The type of kernel (e.g. python3). + */ + kernelName?: string; + /** + * The id of an existing kernel. + */ + kernelId?: string; + } + + export interface IKernel { + readonly id: string; + readonly name: string; + readonly supportsIntellisense: boolean; + readonly requiresConnection?: boolean; + /** + * Test whether the kernel is ready. + */ + readonly isReady: boolean; + + /** + * A Thenable that is fulfilled when the kernel is ready. + */ + readonly ready: Thenable; + + /** + * The cached kernel info. + * + * #### Notes + * This value will be null until the kernel is ready. + */ + readonly info: IInfoReply | null; + + /** + * Gets the full specification for this kernel, which can be serialized to + * a noteobok file + */ + getSpec(): Thenable; + + /** + * Send an `execute_request` message. + * + * @param content - The content of the request. + * + * @param disposeOnDone - Whether to dispose of the future when done. + * + * @returns A kernel future. + * + * #### Notes + * See [Messaging in + * Jupyter](https://jupyter-client.readthedocs.io/en/latest/messaging.html#execute). + * + * This method returns a kernel future, rather than a Thenable, since execution may + * have many response messages (for example, many iopub display messages). + * + * Future `onReply` is called with the `execute_reply` content when the + * shell reply is received and validated. + * + * **See also:** [[IExecuteReply]] + */ + requestExecute(content: IExecuteRequest, disposeOnDone?: boolean): IFuture; + + /** + * Send a `complete_request` message. + * + * @param content - The content of the request. + * + * @returns A Thenable that resolves with the response message. + * + * #### Notes + * See [Messaging in Jupyter](https://jupyter-client.readthedocs.io/en/latest/messaging.html#completion). + * + * Fulfills with the `complete_reply` content when the shell reply is + * received and validated. + */ + requestComplete(content: ICompleteRequest): Thenable; + + /** + * Interrupt a kernel. + * + * #### Notes + * Uses the [Jupyter Notebook API](http://petstore.swagger.io/?url=https://raw.githubusercontent.com/jupyter/notebook/master/notebook/services/api/api.yaml#!/kernels). + * + * The promise is fulfilled on a valid response and rejected otherwise. + * + * It is assumed that the API call does not mutate the kernel id or name. + * + * The promise will be rejected if the kernel status is `Dead` or if the + * request fails or the response is invalid. + */ + interrupt(): Thenable; + } + + export interface IInfoReply { + protocol_version: string; + implementation: string; + implementation_version: string; + language_info: ILanguageInfo; + banner: string; + help_links: { + text: string; + url: string; + }[]; + } + + /** + * The contents of a requestExecute message sent to the server. + */ + export interface IExecuteRequest extends IExecuteOptions { + code: string | string[]; + } + + /** + * The options used to configure an execute request. + */ + export interface IExecuteOptions { + /** + * Whether to execute the code as quietly as possible. + * The default is `false`. + */ + silent?: boolean; + + /** + * Whether to store history of the execution. + * The default `true` if silent is False. + * It is forced to `false ` if silent is `true`. + */ + store_history?: boolean; + + /** + * A mapping of names to expressions to be evaluated in the + * kernel's interactive namespace. + */ + user_expressions?: {}; + + /** + * Whether to allow stdin requests. + * The default is `true`. + */ + allow_stdin?: boolean; + + /** + * Whether to the abort execution queue on an error. + * The default is `false`. + */ + stop_on_error?: boolean; + } + + /** + * The content of a `'complete_request'` message. + * + * See [Messaging in Jupyter](https://jupyter-client.readthedocs.io/en/latest/messaging.html#completion). + * + * **See also:** [[ICompleteReply]], [[IKernel.complete]] + */ + export interface ICompleteRequest { + code: string; + cursor_pos: number; + } + + export interface ICompletionContent { + matches: string[]; + cursor_start: number; + cursor_end: number; + metadata: any; + status: 'ok' | 'error'; + } + /** + * A `'complete_reply'` message on the `'stream'` channel. + * + * See [Messaging in Jupyter](https://jupyter-client.readthedocs.io/en/latest/messaging.html#completion). + * + * **See also:** [[ICompleteRequest]], [[IKernel.complete]] + */ + export interface ICompleteReplyMsg extends IShellMessage { + content: ICompletionContent; + } + + /** + * The valid Kernel status states. + */ + export type KernelStatus = + | 'unknown' + | 'starting' + | 'reconnecting' + | 'idle' + | 'busy' + | 'restarting' + | 'dead' + | 'connected'; + + /** + * An arguments object for the kernel changed event. + */ + export interface IKernelChangedArgs { + oldValue: IKernel | null; + newValue: IKernel | null; + } + + /// -------- JSON objects, and objects primarily intended not to have methods ----------- + export interface IAllKernels { + defaultKernel: string; + kernels: IKernelSpec[]; + } + export interface IKernelSpec { + name: string; + language?: string; + display_name?: string; + } + + export interface MessageHandler { + handle(message: T): void | Thenable; + } + + /** + * A Future interface for responses from the kernel. + * + * When a message is sent to a kernel, a Future is created to handle any + * responses that may come from the kernel. + */ + export interface IFuture extends vscode.Disposable { + /** + * The original outgoing message. + */ + readonly msg: IMessage; + + /** + * A Thenable that resolves when the future is done. + * + * #### Notes + * The future is done when there are no more responses expected from the + * kernel. + * + * The `done` Thenable resolves to the reply message if there is one, + * otherwise it resolves to `undefined`. + */ + readonly done: Thenable; + + /** + * Set the reply handler for the kernel future. + * + * #### Notes + * If the handler returns a Thenable, all kernel message processing pauses + * until the Thenable is resolved. If there is a reply message, the future + * `done` Thenable also resolves to the reply message after this handler has + * been called. + */ + setReplyHandler(handler: MessageHandler): void; + + /** + * Sets the stdin handler for the kernel future. + * + * #### Notes + * If the handler returns a Thenable, all kernel message processing pauses + * until the Thenable is resolved. + */ + setStdInHandler(handler: MessageHandler): void; + + /** + * Sets the iopub handler for the kernel future. + * + * #### Notes + * If the handler returns a Thenable, all kernel message processing pauses + * until the Thenable is resolved. + */ + setIOPubHandler(handler: MessageHandler): void; + + /** + * Register hook for IOPub messages. + * + * @param hook - The callback invoked for an IOPub message. + * + * #### Notes + * The IOPub hook system allows you to preempt the handlers for IOPub + * messages handled by the future. + * + * The most recently registered hook is run first. A hook can return a + * boolean or a Thenable to a boolean, in which case all kernel message + * processing pauses until the Thenable is fulfilled. If a hook return value + * resolves to false, any later hooks will not run and the function will + * return a Thenable resolving to false. If a hook throws an error, the error + * is logged to the console and the next hook is run. If a hook is + * registered during the hook processing, it will not run until the next + * message. If a hook is removed during the hook processing, it will be + * deactivated immediately. + */ + registerMessageHook( + hook: (msg: IIOPubMessage) => boolean | Thenable + ): void; + + /** + * Remove a hook for IOPub messages. + * + * @param hook - The hook to remove. + * + * #### Notes + * If a hook is removed during the hook processing, it will be deactivated immediately. + */ + removeMessageHook( + hook: (msg: IIOPubMessage) => boolean | Thenable + ): void; + + /** + * Send an `input_reply` message. + */ + sendInputReply(content: IInputReply): void; + } + + export interface IExecuteReplyMsg extends IShellMessage { + content: IExecuteReply; + } + + /** + * The content of an `execute-reply` message. + * + * See [Messaging in Jupyter](https://jupyter-client.readthedocs.io/en/latest/messaging.html#execution-results). + */ + export interface IExecuteReply { + status: 'ok' | 'error' | 'abort'; + execution_count: number | null; + } + + /** + * The valid channel names. + */ + export type Channel = 'shell' | 'iopub' | 'stdin' | 'execute_reply'; + + /** + * Kernel message header content. + * + * See [Messaging in Jupyter](https://jupyter-client.readthedocs.io/en/latest/messaging.html#general-message-format). + * + * **See also:** [[IMessage]] + */ + export interface IHeader { + username: string; + version: string; + session: string; + msg_id: string; + msg_type: string; + } + + /** + * A kernel message + */ + export interface IMessage { + type: Channel; + header: IHeader; + parent_header: IHeader | {}; + metadata: {}; + content: any; + } + + /** + * A kernel message on the `'shell'` channel. + */ + export interface IShellMessage extends IMessage { + channel: 'shell'; + } + + /** + * A kernel message on the `'iopub'` channel. + */ + export interface IIOPubMessage extends IMessage { + channel: 'iopub'; + } + + /** + * A kernel message on the `'stdin'` channel. + */ + export interface IStdinMessage extends IMessage { + channel: 'stdin'; + content: { + prompt: string; + password: boolean; + }; + } + + /** + * The content of an `'input_reply'` message. + */ + export interface IInputReply { + value: string; + } + + export function registerNavigationProvider(provider: NavigationProvider): vscode.Disposable; + + export interface NavigationProvider { + readonly providerId: string; + getNavigation(notebookUri: vscode.Uri): Thenable; + } + + export interface NavigationResult { + hasNavigation: boolean; + previous?: vscode.Uri; + next?: vscode.Uri; + } + + //#endregion + } +} diff --git a/types/azdata/tsconfig.json b/types/azdata/tsconfig.json new file mode 100644 index 000000000000000..5626cf2dc9489eb --- /dev/null +++ b/types/azdata/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": ["../"], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": ["index.d.ts", "azdata-tests.ts"] +} diff --git a/types/azdata/tslint.json b/types/azdata/tslint.json new file mode 100644 index 000000000000000..93f2f016c85009f --- /dev/null +++ b/types/azdata/tslint.json @@ -0,0 +1,15 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "array-type": false, + "interface-name": false, + "interface-over-type-literal": false, + "member-access": false, + "no-declare-current-package": false, + "no-empty-interface": false, + "no-single-declare-module": false, + "no-unnecessary-generics": false, + "npm-naming": false, + "strict-export-declare-modifiers": false + } +} \ No newline at end of file diff --git a/types/azure-kusto-data/tslint.json b/types/azure-kusto-data/tslint.json index 3db14f85eaf7b98..00089f9c20162d7 100644 --- a/types/azure-kusto-data/tslint.json +++ b/types/azure-kusto-data/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-outside-dependencies": false + } +} \ No newline at end of file diff --git a/types/azure-mobile-services-client/tslint.json b/types/azure-mobile-services-client/tslint.json index 3d59f55fdabcf45..4e25b2518d5ad3f 100644 --- a/types/azure-mobile-services-client/tslint.json +++ b/types/azure-mobile-services-client/tslint.json @@ -1,80 +1,29 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, + "no-var-keyword": false, + "npm-naming": false, "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, "prefer-for-of": false, "prefer-method-signature": false, "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/azure-sb/tsconfig.json b/types/azure-sb/tsconfig.json index b52a931bc908def..65e2d30d9d3da3d 100644 --- a/types/azure-sb/tsconfig.json +++ b/types/azure-sb/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "azure-sb-tests.ts", "index.d.ts" ] -} \ No newline at end of file +} diff --git a/types/azure-sb/tslint.json b/types/azure-sb/tslint.json index 3d59f55fdabcf45..6911a79068f71ce 100644 --- a/types/azure-sb/tslint.json +++ b/types/azure-sb/tslint.json @@ -1,80 +1,20 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/azure/tslint.json b/types/azure/tslint.json index 3d59f55fdabcf45..4952c6f0f33aa51 100644 --- a/types/azure/tslint.json +++ b/types/azure/tslint.json @@ -1,80 +1,24 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, + "no-var-keyword": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/babel-core/tsconfig.json b/types/babel-core/tsconfig.json index 41aee7120538bf1..40949bf274ffa9e 100644 --- a/types/babel-core/tsconfig.json +++ b/types/babel-core/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "babel-core-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/babel-generator/tsconfig.json b/types/babel-generator/tsconfig.json index 76d138f54d4ca42..af927b4c1a894d2 100644 --- a/types/babel-generator/tsconfig.json +++ b/types/babel-generator/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "babel-generator-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/babel-plugin-macros/babel-plugin-macros-tests.ts b/types/babel-plugin-macros/babel-plugin-macros-tests.ts index aa7a3858b933dd6..b0d993cb110771d 100644 --- a/types/babel-plugin-macros/babel-plugin-macros-tests.ts +++ b/types/babel-plugin-macros/babel-plugin-macros-tests.ts @@ -1,8 +1,8 @@ -import { createMacro, MacroError } from 'babel-plugin-macros'; +import { createMacro, MacroError, References, Options, MacroParams, MacroHandler } from 'babel-plugin-macros'; const macro = createMacro( ({ references, state, babel }) => { - references.forEach(() => {}); + Object.keys(references).forEach(() => {}); references.default.forEach(() => {}); state.abc = 123; babel.parse("console.log('Hello world!')"); diff --git a/types/babel-plugin-macros/index.d.ts b/types/babel-plugin-macros/index.d.ts index ef482809946fd58..4060dca09ff426c 100644 --- a/types/babel-plugin-macros/index.d.ts +++ b/types/babel-plugin-macros/index.d.ts @@ -1,36 +1,28 @@ -// Type definitions for babel-plugin-macros 2.6 +// Type definitions for babel-plugin-macros 2.8 // Project: https://github.com/kentcdodds/babel-plugin-macros // Definitions by: Billy Kwok +// Jake Runzer // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.9 +// Minimum TypeScript Version: 3.4 + import * as Babel from '@babel/core'; -type References = Babel.NodePath[]; +export interface References { + [key: string]: Babel.NodePath[]; +} -interface Options { +export interface Options { configName?: string; } -interface MacroParams { - references: { default: References } & References; +export interface MacroParams { + references: { default: Babel.NodePath[] } & References; state: any; babel: typeof Babel; } -type MacroHandler = (params: MacroParams) => void; - -declare function babel_plugin_macros( - babel: typeof Babel, - ref: { - require: (path: string) => any; - resolvePath: (src: string, baseDir: string) => any; - }, -): Babel.PluginObj; +export type MacroHandler = (params: MacroParams) => void; -declare namespace babel_plugin_macros { - class MacroError extends Error {} - - function createMacro(handler: MacroHandler, options?: Options): any; -} +export class MacroError extends Error {} -export = babel_plugin_macros; +export function createMacro(handler: MacroHandler, options?: Options): any; diff --git a/types/babel-plugin-macros/tslint.json b/types/babel-plugin-macros/tslint.json index 3db14f85eaf7b98..d086f8e13f785e5 100644 --- a/types/babel-plugin-macros/tslint.json +++ b/types/babel-plugin-macros/tslint.json @@ -1 +1,17 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "npm-naming": [ + true, + { + "errors": [ + [ + "NeedsExportEquals", + false + ] + ], + "mode": "code" + } + ] + } +} \ No newline at end of file diff --git a/types/babel-plugin-syntax-jsx/tsconfig.json b/types/babel-plugin-syntax-jsx/tsconfig.json index 6b52644488f4e73..9ce40e9882c17d0 100644 --- a/types/babel-plugin-syntax-jsx/tsconfig.json +++ b/types/babel-plugin-syntax-jsx/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "babel-plugin-syntax-jsx-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/babel-template/tsconfig.json b/types/babel-template/tsconfig.json index 96de23cec781c8a..2c0acac2fc615ab 100644 --- a/types/babel-template/tsconfig.json +++ b/types/babel-template/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "babel-template-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/babel__core/babel__core-tests.ts b/types/babel__core/babel__core-tests.ts index 4a42906fc8b87e8..85af8a46a1c03fb 100644 --- a/types/babel__core/babel__core-tests.ts +++ b/types/babel__core/babel__core-tests.ts @@ -58,6 +58,30 @@ checkOptions({ caller: { name: '', tomato: true } }); checkOptions({ rootMode: 'upward-optional' }); // $ExpectError checkOptions({ rootMode: 'potato' }); +checkOptions({ exclude: '../node_modules' }); +// $ExpectError +checkOptions({ exclude: 256 }); +checkOptions({ include: [/node_modules/, new RegExp('bower_components')] }); +// $ExpectError +checkOptions({ include: [null] }); +checkOptions({ test: (fileName) => fileName ? fileName.endsWith('mjs') : false }); +// $ExpectError +checkOptions({ test: (fileName) => fileName && fileName.endsWith('mjs') }); +checkOptions({ + overrides: [ + { + test: /^.*\.m?js$/, + compact: true, + } + ] +}); +checkOptions({ + overrides: { + // $ExpectError + test: /^.*\.m?js$/, + compact: true, + } +}); // $ExpectError checkConfigFunction(() => {}); diff --git a/types/babel__core/index.d.ts b/types/babel__core/index.d.ts index ef0b25d32ab2426..3225d5d29ca81a0 100644 --- a/types/babel__core/index.d.ts +++ b/types/babel__core/index.d.ts @@ -5,7 +5,7 @@ // Melvin Groenhoff // Jessica Franco // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.9 +// Minimum TypeScript Version: 3.4 import { GeneratorOptions } from "@babel/generator"; import traverse, { Visitor, NodePath } from "@babel/traverse"; @@ -96,6 +96,11 @@ export interface TransformOptions { */ envName?: string; + /** + * If any of patterns match, the current configuration object is considered inactive and is ignored during config processing. + */ + exclude?: MatchPattern | MatchPattern[]; + /** * Enable code generation * @@ -189,6 +194,11 @@ export interface TransformOptions { */ ignore?: string[] | null; + /** + * This option is a synonym for "test" + */ + include?: MatchPattern | MatchPattern[]; + /** * A source map object that the output source map will be based on * @@ -232,6 +242,12 @@ export interface TransformOptions { */ only?: string | RegExp | Array | null; + /** + * Allows users to provide an array of options that will be merged into the current configuration one at a time. + * This feature is best used alongside the "test"/"include"/"exclude" options to provide conditions for which an override should apply + */ + overrides?: TransformOptions[]; + /** * An object containing the options to be passed down to the babel parser, @babel/parser * @@ -297,6 +313,11 @@ export interface TransformOptions { */ sourceType?: "script" | "module" | "unambiguous" | null; + /** + * If all patterns fail to match, the current configuration object is considered inactive and is ignored during config processing. + */ + test?: MatchPattern | MatchPattern[]; + /** * An optional callback that can be used to wrap visitor methods. **NOTE**: This is useful for things like introspection, and not really needed for implementing anything. Called as * `wrapPluginVisitorMethod(pluginAlias, visitorType, callback)`. @@ -309,11 +330,19 @@ export interface TransformCaller { name: string; // e.g. set to true by `babel-loader` and false by `babel-jest` supportsStaticESM?: boolean; + supportsDynamicImport?: boolean; // augment this with a "declare module '@babel/core' { ... }" if you need more keys } export type FileResultCallback = (err: Error | null, result: BabelFileResult | null) => any; +export interface MatchPatternContext { + envName: string; + dirname: string; + caller: TransformCaller | undefined; +} +export type MatchPattern = string | RegExp | ((filename: string | undefined, context: MatchPatternContext) => boolean); + /** * Transforms the passed in code. Calling a callback with an object with the generated code, source map, and AST. */ diff --git a/types/babel__core/tslint.json b/types/babel__core/tslint.json index 3db14f85eaf7b98..aa1140f0ed33ff7 100644 --- a/types/babel__core/tslint.json +++ b/types/babel__core/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-unnecessary-type-assertion": false + } +} \ No newline at end of file diff --git a/types/babel__standalone/index.d.ts b/types/babel__standalone/index.d.ts index dc2716d230556f4..ae77350ff61c03d 100644 --- a/types/babel__standalone/index.d.ts +++ b/types/babel__standalone/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/babel/babel/tree/master/packages/babel-standalone // Definitions by: Matheus Goncalves da Silva // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.9 +// Minimum TypeScript Version: 3.4 import { TransformOptions, types, FileResultCallback } from '@babel/core'; diff --git a/types/babel__traverse/babel__traverse-tests.ts b/types/babel__traverse/babel__traverse-tests.ts index fc02a672bc326b1..9bc410d0ae0c594 100644 --- a/types/babel__traverse/babel__traverse-tests.ts +++ b/types/babel__traverse/babel__traverse-tests.ts @@ -99,6 +99,55 @@ const v1: Visitor = { path.scope.rename("n", "x"); path.scope.rename("n"); + }, + ExportDefaultDeclaration(path) { + { + const [stringPath, booleanPath] = path.replaceWithMultiple([ + t.stringLiteral('hello'), + t.booleanLiteral(false) + ]); + // $ExpectType NodePath + stringPath; + // $ExpectType NodePath + booleanPath; + } + { + const [stringPath, booleanPath] = path.replaceWithMultiple<[t.StringLiteral, t.BooleanLiteral]>([ + t.stringLiteral('hello'), + t.booleanLiteral(false) + ]); + // $ExpectType NodePath + stringPath; + // $ExpectType NodePath + booleanPath; + } + }, + Program(path) { + { + const [newPath] = path.unshiftContainer('body', t.stringLiteral('hello')); + // $ExpectType NodePath + newPath; + } + { + const [stringPath, booleanPath] = path.unshiftContainer('body', [ + t.stringLiteral('hello'), + t.booleanLiteral(false) + ]); + // $ExpectType NodePath + stringPath; + // $ExpectType NodePath + booleanPath; + } + { + const [stringPath, booleanPath] = path.unshiftContainer<[t.StringLiteral, t.BooleanLiteral]>('body', [ + t.stringLiteral('hello'), + t.booleanLiteral(false) + ]); + // $ExpectType NodePath + stringPath; + // $ExpectType NodePath + booleanPath; + } } }; diff --git a/types/babel__traverse/index.d.ts b/types/babel__traverse/index.d.ts index ae1af9966bf0583..a3537b9e3f1e701 100644 --- a/types/babel__traverse/index.d.ts +++ b/types/babel__traverse/index.d.ts @@ -6,7 +6,7 @@ // Melvin Groenhoff // Dean L. // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.9 +// Minimum TypeScript Version: 3.4 import * as t from "@babel/types"; @@ -171,6 +171,8 @@ export interface VisitNodeObject { exit?: VisitNodeFunction; } +export type NodePaths = T extends Node[] ? { [K in keyof T]: NodePath } : [NodePath]; + export class NodePath { constructor(hub: Hub, parent: Node); parent: Node; @@ -272,7 +274,7 @@ export class NodePath { * - Insert the provided nodes after the current node. * - Remove the current node. */ - replaceWithMultiple(nodes: Node[]): void; + replaceWithMultiple(nodes: Nodes): NodePaths; /** * Parse a string as an expression and replace the current node with the result. @@ -433,7 +435,7 @@ export class NodePath { * @param listKey - The key at which the child nodes are stored (usually body). * @param nodes - the nodes to insert. */ - unshiftContainer(listKey: string, nodes: Node | Node[]): void; + unshiftContainer(listKey: string, nodes: Nodes): NodePaths; /** * Insert child nodes at the end of the current node. diff --git a/types/babel__traverse/tslint.json b/types/babel__traverse/tslint.json index 3db14f85eaf7b98..aa1140f0ed33ff7 100644 --- a/types/babel__traverse/tslint.json +++ b/types/babel__traverse/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-unnecessary-type-assertion": false + } +} \ No newline at end of file diff --git a/types/babelify/tslint.json b/types/babelify/tslint.json index 3d59f55fdabcf45..8893b5d939d8036 100644 --- a/types/babelify/tslint.json +++ b/types/babelify/tslint.json @@ -1,80 +1,23 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/babylon-walk/tsconfig.json b/types/babylon-walk/tsconfig.json index 9e1d7c33b7f9673..d060f5e9b3c6b8f 100644 --- a/types/babylon-walk/tsconfig.json +++ b/types/babylon-walk/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -20,4 +20,4 @@ "index.d.ts", "babylon-walk-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/babylon/tsconfig.json b/types/babylon/tsconfig.json index 94d5c0bd5980e94..9da4610587f9d88 100644 --- a/types/babylon/tsconfig.json +++ b/types/babylon/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "babylon-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/babyparse/tslint.json b/types/babyparse/tslint.json index 3d59f55fdabcf45..bdfea5c9c5f2d05 100644 --- a/types/babyparse/tslint.json +++ b/types/babyparse/tslint.json @@ -1,80 +1,33 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, "no-trailing-whitespace": false, + "no-var-keyword": false, "object-literal-key-quotes": false, "object-literal-shorthand": false, "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, "prefer-for-of": false, "prefer-method-signature": false, "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, "triple-equals": false, "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/backbone-associations/tsconfig.json b/types/backbone-associations/tsconfig.json index 7f905ff5412dae2..d620c0a348725e3 100644 --- a/types/backbone-associations/tsconfig.json +++ b/types/backbone-associations/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": false, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "backbone-associations-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/backbone-associations/tslint.json b/types/backbone-associations/tslint.json index 3d59f55fdabcf45..f827a1cab94070f 100644 --- a/types/backbone-associations/tslint.json +++ b/types/backbone-associations/tslint.json @@ -1,80 +1,16 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "strict-export-declare-modifiers": false } -} +} \ No newline at end of file diff --git a/types/backbone-fetch-cache/tsconfig.json b/types/backbone-fetch-cache/tsconfig.json index 28c3240abc8871b..04e24203eb0bff3 100644 --- a/types/backbone-fetch-cache/tsconfig.json +++ b/types/backbone-fetch-cache/tsconfig.json @@ -5,9 +5,9 @@ "es6", "dom" ], - "noImplicitAny": false, + "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "backbone-fetch-cache-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/backbone-fetch-cache/tslint.json b/types/backbone-fetch-cache/tslint.json index 3d59f55fdabcf45..c739ab2dc0c30ce 100644 --- a/types/backbone-fetch-cache/tslint.json +++ b/types/backbone-fetch-cache/tslint.json @@ -1,80 +1,15 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/backbone-relational/tsconfig.json b/types/backbone-relational/tsconfig.json index 961582a08fd4d27..19d1c184cb11978 100644 --- a/types/backbone-relational/tsconfig.json +++ b/types/backbone-relational/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": false, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "backbone-relational-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/backbone-relational/tslint.json b/types/backbone-relational/tslint.json index fd5f6a3567ec8e3..837eabeaf42b4a2 100644 --- a/types/backbone-relational/tslint.json +++ b/types/backbone-relational/tslint.json @@ -1,14 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { - "array-type": false, "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, "jsdoc-format": false, - "max-line-length": false, - "member-access": false, "no-consecutive-blank-lines": false, "no-padding": false, "no-var-keyword": false, @@ -16,10 +10,9 @@ "one-line": false, "only-arrow-functions": false, "prefer-const": false, - "prefer-template": false, "space-before-function-paren": false, "typedef-whitespace": false, "unified-signatures": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/backbone.layoutmanager/tsconfig.json b/types/backbone.layoutmanager/tsconfig.json index 85b5e97b318da4b..a30c4d635b2ec5d 100644 --- a/types/backbone.layoutmanager/tsconfig.json +++ b/types/backbone.layoutmanager/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "backbone.layoutmanager-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/backbone.layoutmanager/tslint.json b/types/backbone.layoutmanager/tslint.json index 6c7fd03ccda21f4..9e7740f678ef648 100644 --- a/types/backbone.layoutmanager/tslint.json +++ b/types/backbone.layoutmanager/tslint.json @@ -1,81 +1,18 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, "no-angle-bracket-type-assertion": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/backbone.localstorage/tsconfig.json b/types/backbone.localstorage/tsconfig.json index 65302c1d16bf8a1..054e09568ec5b51 100644 --- a/types/backbone.localstorage/tsconfig.json +++ b/types/backbone.localstorage/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "backbone.localstorage-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/backbone.localstorage/tslint.json b/types/backbone.localstorage/tslint.json index 3d59f55fdabcf45..9aad3ef45775182 100644 --- a/types/backbone.localstorage/tslint.json +++ b/types/backbone.localstorage/tslint.json @@ -1,80 +1,12 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, + "npm-naming": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/backbone.marionette/tsconfig.json b/types/backbone.marionette/tsconfig.json index b31d3cbfa42b26f..e23df53cd8174f8 100644 --- a/types/backbone.marionette/tsconfig.json +++ b/types/backbone.marionette/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": false, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "backbone.marionette-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/backbone.marionette/tslint.json b/types/backbone.marionette/tslint.json index 3fc34b8203636c6..ad93d8fc0d9ca6b 100644 --- a/types/backbone.marionette/tslint.json +++ b/types/backbone.marionette/tslint.json @@ -1,7 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - // TODO "no-unnecessary-generics": false } -} +} \ No newline at end of file diff --git a/types/backbone.paginator/tslint.json b/types/backbone.paginator/tslint.json index 3d59f55fdabcf45..515d90fe13a901d 100644 --- a/types/backbone.paginator/tslint.json +++ b/types/backbone.paginator/tslint.json @@ -1,80 +1,22 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, "no-namespace": false, "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/backbone.radio/tslint.json b/types/backbone.radio/tslint.json index 3d59f55fdabcf45..84ad11ddce8de4b 100644 --- a/types/backbone.radio/tslint.json +++ b/types/backbone.radio/tslint.json @@ -1,80 +1,17 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "typedef-whitespace": false } -} +} \ No newline at end of file diff --git a/types/backbone/tslint.json b/types/backbone/tslint.json index f5ae3a6788be6f8..449a63885d7059e 100644 --- a/types/backbone/tslint.json +++ b/types/backbone/tslint.json @@ -7,11 +7,8 @@ "ban-types": false, "callable-types": false, "comment-format": false, - "dt-header": false, "export-just-namespace": false, - "interface-name": false, "jsdoc-format": false, - "max-line-length": false, "member-access": false, "new-parens": false, "no-angle-bracket-type-assertion": false, @@ -26,17 +23,13 @@ "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, "no-var-keyword": false, - "no-void-expression": false, - "object-literal-key-quotes": false, - "only-arrow-functions": false, "prefer-const": false, "prefer-method-signature": false, "prefer-template": false, "semicolon": false, - "space-before-function-paren": false, "strict-export-declare-modifiers": false, "typedef-whitespace": false, "unified-signatures": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/backgrid/tsconfig.json b/types/backgrid/tsconfig.json index f2db8efd4cf1c5e..671669d0efb9667 100644 --- a/types/backgrid/tsconfig.json +++ b/types/backgrid/tsconfig.json @@ -8,7 +8,7 @@ ], "noImplicitAny": false, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -22,4 +22,4 @@ "index.d.ts", "backgrid-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/backgrid/tslint.json b/types/backgrid/tslint.json index 3d59f55fdabcf45..64dfc2e871bcc3a 100644 --- a/types/backgrid/tslint.json +++ b/types/backgrid/tslint.json @@ -1,80 +1,21 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, "comment-format": false, - "dt-header": false, - "npm-naming": false, "eofline": false, "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, + "no-trailing-whitespace": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, + "npm-naming": false, "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/backlog-js/tsconfig.json b/types/backlog-js/tsconfig.json index 360392d4ca33296..8104317d0199475 100644 --- a/types/backlog-js/tsconfig.json +++ b/types/backlog-js/tsconfig.json @@ -5,9 +5,9 @@ "es6", "dom" ], - "noImplicitAny": false, + "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "backlog-js-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/backlog-js/tslint.json b/types/backlog-js/tslint.json index 3d59f55fdabcf45..e246b53b2a02549 100644 --- a/types/backlog-js/tslint.json +++ b/types/backlog-js/tslint.json @@ -1,80 +1,15 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, "interface-over-type-literal": false, - "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "strict-export-declare-modifiers": false } -} +} \ No newline at end of file diff --git a/types/backoff/tsconfig.json b/types/backoff/tsconfig.json index 1946d82f81de309..26fe294f6fc2e00 100644 --- a/types/backoff/tsconfig.json +++ b/types/backoff/tsconfig.json @@ -7,7 +7,7 @@ "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, - "strictFunctionTypes": false, + "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ "../" @@ -20,4 +20,4 @@ "index.d.ts", "backoff-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/backstopjs/tslint.json b/types/backstopjs/tslint.json index 3db14f85eaf7b98..d086f8e13f785e5 100644 --- a/types/backstopjs/tslint.json +++ b/types/backstopjs/tslint.json @@ -1 +1,17 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "npm-naming": [ + true, + { + "errors": [ + [ + "NeedsExportEquals", + false + ] + ], + "mode": "code" + } + ] + } +} \ No newline at end of file diff --git a/types/bagpipes/tslint.json b/types/bagpipes/tslint.json index 03a7f353ed1c9bc..eb788b7ff9a5754 100755 --- a/types/bagpipes/tslint.json +++ b/types/bagpipes/tslint.json @@ -1,8 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { - // TODOs "callable-types": false, "no-object-literal-type-assertion": false } -} +} \ No newline at end of file diff --git a/types/baidumap-web-sdk/tslint.json b/types/baidumap-web-sdk/tslint.json index 2efdae56f82a0ea..7427ec623adafb9 100644 --- a/types/baidumap-web-sdk/tslint.json +++ b/types/baidumap-web-sdk/tslint.json @@ -1,7 +1,7 @@ { - "extends": "dtslint/dt.json", - "rules": { - "dt-header": false, - "no-unnecessary-class": false - } + "extends": "dtslint/dt.json", + "rules": { + "dt-header": false, + "no-unnecessary-class": false + } } \ No newline at end of file diff --git a/types/balanced-match/balanced-match-tests.ts b/types/balanced-match/balanced-match-tests.ts index c0edcc89a88c02b..8690fdf27f7a14a 100644 --- a/types/balanced-match/balanced-match-tests.ts +++ b/types/balanced-match/balanced-match-tests.ts @@ -1,8 +1,6 @@ -import Balanced = require("balanced-match"); +import balanced = require('balanced-match'); -const balanced = new Balanced(); - -balanced.balanced('{', '}', 'pre{in{nested}}post'); -balanced.balanced('{', '}', 'pre{first}between{second}post'); -balanced.balanced(/\s+\{\s+/, /\s+\}\s+/, 'pre { in{nest} } post'); +balanced('{', '}', 'pre{in{nested}}post'); +balanced('{', '}', 'pre{first}between{second}post'); +balanced(/\s+\{\s+/, /\s+\}\s+/, 'pre { in{nest} } post'); balanced.range('{', '}', 'pre{in{nested}}post'); diff --git a/types/balanced-match/index.d.ts b/types/balanced-match/index.d.ts index 952eba8ffa2897c..d6de0e3e7322879 100644 --- a/types/balanced-match/index.d.ts +++ b/types/balanced-match/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for balanced-match 1.0 // Project: https://github.com/juliangruber/balanced-match // Definitions by: Adam Zerella +// Piotr Błażejewicz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Output { @@ -26,10 +27,27 @@ interface Output { post: string; } -declare class Balanced { - balanced(a: string|RegExp, b: string|RegExp, str: string): Output|void; +/** + * + * For the first non-nested matching pair of a and b in str, return an object with those keys: + * start the index of the first match of + * `end` the index of the matching b + * `pre` the preamble, a and b not included + * `body` the match, a and b not included + * `post` the postscript, a and b not included + * If there's no match, `undefined` will be returned. + * If the `str` contains more a than b / there are unmatched pairs, + * the first match that was closed will be used. + * For example, `{{a}` will match `['{', 'a', '']` and `{a}}` will match `['', 'a', '}']` + */ +declare function balanced(a: string | RegExp, b: string | RegExp, str: string): Output | void; - range(a: string|RegExp, b: string|RegExp, str: string): Output|void; +declare namespace balanced { + /** + * For the first non-nested matching pair of `a` and `b` in `str`, + * return an array with indexes: `[ , ]`. + */ + function range(a: string | RegExp, b: string | RegExp, str: string): Output | void; } -export = Balanced; +export = balanced; diff --git a/types/balanced-match/tsconfig.json b/types/balanced-match/tsconfig.json index d91bbdd539f2ce5..6dd016abd35e22c 100644 --- a/types/balanced-match/tsconfig.json +++ b/types/balanced-match/tsconfig.json @@ -1,25 +1,23 @@ { "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [ - - ], - "noEmit": true, - "forceConsistentCasingInFileNames": true + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true }, "files": [ - "index.d.ts", - "balanced-match-tests.ts" + "index.d.ts", + "balanced-match-tests.ts" ] } diff --git a/types/balanced-match/tslint.json b/types/balanced-match/tslint.json index e60c15844f1f82a..3db14f85eaf7b98 100644 --- a/types/balanced-match/tslint.json +++ b/types/balanced-match/tslint.json @@ -1,3 +1 @@ -{ - "extends": "dtslint/dt.json" -} \ No newline at end of file +{ "extends": "dtslint/dt.json" } diff --git a/types/barcode/tsconfig.json b/types/barcode/tsconfig.json index a66d2ab178cba3c..eb9744476602d6d 100644 --- a/types/barcode/tsconfig.json +++ b/types/barcode/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "barcode-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/barcode/tslint.json b/types/barcode/tslint.json index 3d59f55fdabcf45..f0f6c877f9d88b7 100644 --- a/types/barcode/tslint.json +++ b/types/barcode/tslint.json @@ -1,80 +1,16 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/bardjs/tsconfig.json b/types/bardjs/tsconfig.json index bd5226a5869a9f6..cc9c887b54253f1 100644 --- a/types/bardjs/tsconfig.json +++ b/types/bardjs/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": false, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "bardjs-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bardjs/tslint.json b/types/bardjs/tslint.json index 3d59f55fdabcf45..3f68eb10180cfcc 100644 --- a/types/bardjs/tslint.json +++ b/types/bardjs/tslint.json @@ -1,80 +1,17 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "semicolon": false } -} +} \ No newline at end of file diff --git a/types/base16/tsconfig.json b/types/base16/tsconfig.json index d354b0ba016fcf5..9b4e0c9e2816e95 100644 --- a/types/base16/tsconfig.json +++ b/types/base16/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "base16-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/base16/tslint.json b/types/base16/tslint.json index 3d59f55fdabcf45..2d5e8381643d460 100644 --- a/types/base16/tslint.json +++ b/types/base16/tslint.json @@ -1,80 +1,11 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "semicolon": false } -} +} \ No newline at end of file diff --git a/types/base64-stream/base64-stream-tests.ts b/types/base64-stream/base64-stream-tests.ts new file mode 100644 index 000000000000000..a7c884427ddae26 --- /dev/null +++ b/types/base64-stream/base64-stream-tests.ts @@ -0,0 +1,7 @@ +import { Base64Decode, Base64Encode } from 'base64-stream'; + +new Base64Decode(); +new Base64Encode({ + lineLength: 100, + prefix: 'data;' +}); diff --git a/types/base64-stream/index.d.ts b/types/base64-stream/index.d.ts new file mode 100644 index 000000000000000..8b9acb189db2318 --- /dev/null +++ b/types/base64-stream/index.d.ts @@ -0,0 +1,14 @@ +// Type definitions for base64-stream 1.0 +// Project: https://github.com/mazira/base64-stream +// Definitions by: Sean O'Brien +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/// + +import { Transform, TransformOptions } from "stream"; +export class Base64Decode extends Transform {} +export class Base64Encode extends Transform { + constructor(options?: TransformOptions & { + lineLength?: number, + prefix?: string + }); +} diff --git a/types/base64-stream/tsconfig.json b/types/base64-stream/tsconfig.json new file mode 100644 index 000000000000000..5de69e42bb84fcc --- /dev/null +++ b/types/base64-stream/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "base64-stream-tests.ts" + ] +} \ No newline at end of file diff --git a/types/base64-stream/tslint.json b/types/base64-stream/tslint.json new file mode 100644 index 000000000000000..2750cc01972ac76 --- /dev/null +++ b/types/base64-stream/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } \ No newline at end of file diff --git a/types/bases/tslint.json b/types/bases/tslint.json index 3d59f55fdabcf45..af73dccf6d475c9 100644 --- a/types/bases/tslint.json +++ b/types/bases/tslint.json @@ -1,80 +1,12 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/basic-auth/index.d.ts b/types/basic-auth/index.d.ts index 3af8f5a699e6c3b..ad1b09f7460fa1d 100644 --- a/types/basic-auth/index.d.ts +++ b/types/basic-auth/index.d.ts @@ -1,14 +1,15 @@ // Type definitions for basic-auth 1.1 // Project: https://github.com/jshttp/basic-auth -// Definitions by: Clément Bourgeois , Vesa Poikajärvi +// Definitions by: Clément Bourgeois , Vesa Poikajärvi , Ryo Ota // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// import * as http from 'http'; +import * as http2 from 'http2'; // See https://github.com/jshttp/basic-auth/blob/v1.1.0/index.js#L49 -declare function auth(req: http.IncomingMessage): auth.BasicAuthResult | undefined; +declare function auth(req: http.IncomingMessage | http2.Http2ServerRequest): auth.BasicAuthResult | undefined; declare namespace auth { interface BasicAuthResult { diff --git a/types/batch-stream/tsconfig.json b/types/batch-stream/tsconfig.json index e99f40b37609de2..f580a8c84ff9e75 100644 --- a/types/batch-stream/tsconfig.json +++ b/types/batch-stream/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "batch-stream-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/batch-stream/tslint.json b/types/batch-stream/tslint.json index 3d59f55fdabcf45..368672866ebeaba 100644 --- a/types/batch-stream/tslint.json +++ b/types/batch-stream/tslint.json @@ -1,80 +1,13 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "prefer-method-signature": false } -} +} \ No newline at end of file diff --git a/types/bazinga-translator/index.d.ts b/types/bazinga-translator/index.d.ts index a2e9f634eff2ef6..e7bb72909d97f75 100644 --- a/types/bazinga-translator/index.d.ts +++ b/types/bazinga-translator/index.d.ts @@ -1,99 +1,85 @@ -// Type definitions for Translator +// Type definitions for Translator 3.0 // Project: https://github.com/willdurand/BazingaJsTranslationBundle // Definitions by: Alex +// Piotr Błażejewicz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -interface BazingaTranslator { - /** - * The current locale. - * - * @type {String} - */ - locale: string; +declare namespace Translator { + interface BazingaTranslator { + /** + * The current locale. + */ + locale: string; - /** - * Fallback locale. - * - * @type {String} - */ - fallback: string; + /** + * Fallback locale. + */ + fallback: string; - /** - * Placeholder prefix. - * - * @type {String} - */ - placeHolderPrefix: string; + /** + * Placeholder prefix. + */ + placeHolderPrefix: string; - /** - * Placeholder suffix. - * - * @type {String} - */ - placeHolderSuffix: string; + /** + * Placeholder suffix. + */ + placeHolderSuffix: string; - /** - * Default domain. - * - * @type {String} - */ - defaultDomain: string; + /** + * Default domain. + */ + defaultDomain: string; - /** - * Plural separator. - * - * @type {String} - */ - pluralSeparator: string; + /** + * Plural separator. + */ + pluralSeparator: string; - /** - * Adds a translation entry. - * - * @param {String} id The message id - * @param {String} message The message to register for the given id - * @param {String} [domain] The domain for the message or null to use the default - * @param {String} [locale] The locale or null to use the default - * - * @return {Object} Translator - */ - add(id: string, message: string, domain?: string, locale?: string): BazingaTranslator; + /** + * Adds a translation entry. + * + * @param id The message id + * @param message The message to register for the given id + * @param domain The domain for the message or null to use the default + * @param locale The locale or null to use the default + */ + add(id: string, message: string, domain?: string, locale?: string): BazingaTranslator; + /** + * Translates the given message. + * + * @param id The message id + * @param parameters An array of parameters for the message + * @param domain The domain for the message or null to guess it + * @param locale The locale or null to use the default + */ + trans(id: string, parameters?: any, domain?: string, locale?: string): string; - /** - * Translates the given message. - * - * @param {String} id The message id - * @param {Object} [parameters] An array of parameters for the message - * @param {String} [domain] The domain for the message or null to guess it - * @param {String} [locale] The locale or null to use the default - * - * @return {String} The translated string - */ - trans(id: string, parameters?: any, domain?: string, locale?: string): string; + /** + * Translates the given choice message by choosing a translation according to a number. + * + * @param id The message id + * @param number The number to use to find the indice of the message + * @param parameters An array of parameters for the message + * @param domain The domain for the message or null to guess it + * @param locale The locale or null to use the default + */ + transChoice(id: string, number: number, parameters?: any, domain?: string, locale?: string): string; - /** - * Translates the given choice message by choosing a translation according to a number. - * - * @param {String} id The message id - * @param {Number} number The number to use to find the indice of the message - * @param {Object} [parameters] An array of parameters for the message - * @param {String} [domain] The domain for the message or null to guess it - * @param {String} [locale] The locale or null to use the default - * - * @return {String} The translated string - */ - transChoice(id: string, number: number, parameters?: any, domain?: string, locale?: string): string, + /** + * Loads translations from JSON. + * + * @param data A JSON string or object literal + */ + fromJSON(data: string): BazingaTranslator; - /** - * Loads translations from JSON. - * - * @param {String} data A JSON string or object literal - * - * @return {Object} Translator - */ - fromJSON(data: string): BazingaTranslator; - - reset(): void; + reset(): void; + } } -declare const Translator: BazingaTranslator; +declare const Translator: Translator.BazingaTranslator; + +export as namespace Translator; + +export = Translator; diff --git a/types/bazinga-translator/test/bazinga-translator-tests.commonjs.ts b/types/bazinga-translator/test/bazinga-translator-tests.commonjs.ts new file mode 100644 index 000000000000000..3353e56e28316b7 --- /dev/null +++ b/types/bazinga-translator/test/bazinga-translator-tests.commonjs.ts @@ -0,0 +1,14 @@ +import Translator = require('bazinga-translator'); + +Translator.fallback = 'en'; +Translator.defaultDomain = 'messages'; + +Translator.add('test key', "it work's", 'frontend', 'en'); +Translator.add('test key', 'message with default domain and local'); + +Translator.trans('test key', {}, 'frontend'); +Translator.trans('test key', { foo: 'bar' }, 'DOMAIN_NAME'); +Translator.trans('test key'); + +Translator.transChoice('test key', 1, {}, 'frontend'); +Translator.transChoice('test key', 123, { foo: 'bar' }, 'DOMAIN_NAME'); diff --git a/types/bazinga-translator/bazinga-translator-tests.ts b/types/bazinga-translator/test/bazinga-translator-tests.umd.ts similarity index 100% rename from types/bazinga-translator/bazinga-translator-tests.ts rename to types/bazinga-translator/test/bazinga-translator-tests.umd.ts diff --git a/types/bazinga-translator/tsconfig.json b/types/bazinga-translator/tsconfig.json index 1ca08ada9b27380..291937a80a17e76 100644 --- a/types/bazinga-translator/tsconfig.json +++ b/types/bazinga-translator/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -18,6 +18,7 @@ }, "files": [ "index.d.ts", - "bazinga-translator-tests.ts" + "test/bazinga-translator-tests.commonjs.ts", + "test/bazinga-translator-tests.umd.ts" ] -} \ No newline at end of file +} diff --git a/types/bazinga-translator/tslint.json b/types/bazinga-translator/tslint.json index 3d59f55fdabcf45..3db14f85eaf7b98 100644 --- a/types/bazinga-translator/tslint.json +++ b/types/bazinga-translator/tslint.json @@ -1,80 +1 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, - "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, - "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false - } -} +{ "extends": "dtslint/dt.json" } diff --git a/types/bcrypt-nodejs/bcrypt-nodejs-tests.ts b/types/bcrypt-nodejs/bcrypt-nodejs-tests.ts index a1a2944d528700a..ff97d61e5e5bbc8 100644 --- a/types/bcrypt-nodejs/bcrypt-nodejs-tests.ts +++ b/types/bcrypt-nodejs/bcrypt-nodejs-tests.ts @@ -1,29 +1,40 @@ - -import bCrypt = require("bcrypt-nodejs"); +import bcrypt = require('bcrypt-nodejs'); function test_sync() { - var salt1 = bCrypt.genSaltSync(); - var salt2 = bCrypt.genSaltSync(8); + const salt1 = bcrypt.genSaltSync(); + const salt2 = bcrypt.genSaltSync(8); - var hash1 = bCrypt.hashSync('super secret'); - var hash2 = bCrypt.hashSync('super secret', salt1); + const hash1 = bcrypt.hashSync('super secret'); + const hash2 = bcrypt.hashSync('super secret', salt1); - var compare1 = bCrypt.compareSync('super secret', hash1); + const compare1 = bcrypt.compareSync('super secret', hash1); - var rounds1 = bCrypt.getRounds(hash2); + const rounds1 = bcrypt.getRounds(hash2); } function test_async() { - var cbString = (error: Error, result: string) => {}; - var cbVoid = () => {}; - var cbBoolean = (error: Error, result: boolean) => {}; - - bCrypt.genSalt(8, cbString); - - var salt = bCrypt.genSaltSync(); - bCrypt.hash('super secret', salt, cbString); - bCrypt.hash('super secret', salt, cbVoid, cbString); - - var hash = bCrypt.hashSync('super secret'); - bCrypt.compare('super secret', hash, cbBoolean); -} \ No newline at end of file + const cbString = (error: Error, result: string) => {}; + const cbVoid = () => {}; + const cbBoolean = (error: Error, result: boolean) => {}; + + bcrypt.genSalt(8, cbString); + + const salt = bcrypt.genSaltSync(); + bcrypt.hash('super secret', salt, cbString); + bcrypt.hash('super secret', salt, cbVoid, cbString); + + const hash = bcrypt.hashSync('super secret'); + bcrypt.compare('super secret', hash, cbBoolean); + + bcrypt.hash('bacon', salt, null, (err, hash) => { + // Store hash in your password DB. + }); + + // Load hash from your password DB. + bcrypt.compare('bacon', hash, (err, res) => { + // res == true + }); + bcrypt.compare('veggies', hash, (err, res) => { + // res = false + }); +} diff --git a/types/bcrypt-nodejs/index.d.ts b/types/bcrypt-nodejs/index.d.ts index d6baffaffa69ac4..0003af799604802 100644 --- a/types/bcrypt-nodejs/index.d.ts +++ b/types/bcrypt-nodejs/index.d.ts @@ -1,22 +1,22 @@ -// Type definitions for bcrypt-nodejs +// Type definitions for bcrypt-nodejs 0.0 // Project: https://github.com/shaneGirish/bcrypt-nodejs -// Definitions by: David Broder-Rodgers +// Definitions by: David Broder-Rodgers +// Piotr Błażejewicz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - /** * Generate a salt synchronously * @param rounds Number of rounds to process the data for (default - 10) * @return Generated salt */ -export declare function genSaltSync(rounds?: number): string; +export function genSaltSync(rounds?: number): string; /** * Generate a salt asynchronously * @param rounds Number of rounds to process the data for (default - 10) * @param callback Callback with error and resulting salt, to be fired once the salt has been generated */ -export declare function genSalt(rounds: number, callback: (error: Error, result: string) => void): void; +export function genSalt(rounds: number, callback: (error: Error, result: string) => void): void; /** * Generate a hash synchronously @@ -24,7 +24,7 @@ export declare function genSalt(rounds: number, callback: (error: Error, result: * @param salt Salt to be used in encryption (default - new salt generated with 10 rounds) * @return Generated hash */ -export declare function hashSync(data: string, salt?: string): string; +export function hashSync(data: string, salt?: string): string; /** * Generate a hash asynchronously @@ -32,7 +32,7 @@ export declare function hashSync(data: string, salt?: string): string; * @param salt Salt to be used in encryption * @param callback Callback with error and hashed result, to be fired once the data has been encrypted */ -export declare function hash(data: string, salt: string, callback: (error: Error, result: string) => void): void; +export function hash(data: string, salt: string, callback: (error: Error, result: string) => void): void; /** * Generate a hash asynchronously @@ -41,7 +41,12 @@ export declare function hash(data: string, salt: string, callback: (error: Error * @param progressCallback Callback to be fired multiple times during the hash calculation to signify progress * @param callback Callback with error and hashed result, to be fired once the data has been encrypted */ -export declare function hash(data: string, salt: string, progressCallback: () => void, callback: (error: Error, result: string) => void): void; +export function hash( + data: string, + salt: string, + progressCallback: null | (() => void), + callback: (error: Error, result: string) => void, +): void; /** * Compares data with a hash synchronously @@ -49,7 +54,7 @@ export declare function hash(data: string, salt: string, progressCallback: () => * @param hash Hash to be compared to * @return true if matching, false otherwise */ -export declare function compareSync(data: string, hash: string): boolean; +export function compareSync(data: string, hash: string): boolean; /** * Compares data with a hash asynchronously @@ -57,11 +62,11 @@ export declare function compareSync(data: string, hash: string): boolean; * @param hash Hash to be compared to * @param callback Callback with error and match result, to be fired once the data has been compared */ -export declare function compare(data: string, hash: string, callback: (error: Error, result: boolean) => void): void; +export function compare(data: string, hash: string, callback: (error: Error, result: boolean) => void): void; /** * Get number of rounds used for hash * @param hash Hash from which the number of rounds used should be extracted * @return number of rounds used to encrypt a given hash */ -export declare function getRounds(hash: string): number; +export function getRounds(hash: string): number; diff --git a/types/bcrypt-nodejs/tsconfig.json b/types/bcrypt-nodejs/tsconfig.json index 1d7991ff5f05e69..f816ef568aafad1 100644 --- a/types/bcrypt-nodejs/tsconfig.json +++ b/types/bcrypt-nodejs/tsconfig.json @@ -6,8 +6,8 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, "strictFunctionTypes": true, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -20,4 +20,4 @@ "index.d.ts", "bcrypt-nodejs-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bcrypt-nodejs/tslint.json b/types/bcrypt-nodejs/tslint.json index 3d59f55fdabcf45..3db14f85eaf7b98 100644 --- a/types/bcrypt-nodejs/tslint.json +++ b/types/bcrypt-nodejs/tslint.json @@ -1,80 +1 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, - "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, - "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false - } -} +{ "extends": "dtslint/dt.json" } diff --git a/types/bcrypt/tslint.json b/types/bcrypt/tslint.json index 3d59f55fdabcf45..48e69ace6a9b72c 100644 --- a/types/bcrypt/tslint.json +++ b/types/bcrypt/tslint.json @@ -1,80 +1,13 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/bcryptjs/tsconfig.json b/types/bcryptjs/tsconfig.json index 094f87744c821ae..d2b06acb390e711 100644 --- a/types/bcryptjs/tsconfig.json +++ b/types/bcryptjs/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "bcryptjs-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bcryptjs/tslint.json b/types/bcryptjs/tslint.json index 3d59f55fdabcf45..28bd940ddc30d34 100644 --- a/types/bcryptjs/tslint.json +++ b/types/bcryptjs/tslint.json @@ -1,80 +1,12 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "strict-export-declare-modifiers": false } -} +} \ No newline at end of file diff --git a/types/bearcat-es6/bearcat-es6-tests.ts b/types/bearcat-es6/bearcat-es6-tests.ts new file mode 100644 index 000000000000000..19463c71a827026 --- /dev/null +++ b/types/bearcat-es6/bearcat-es6-tests.ts @@ -0,0 +1,131 @@ +import * as bearcat from 'bearcat-es6'; + +const EF = () => {}; + +bearcat.createApp({}); // $ExpectType Bearcat +bearcat.start(() => { + bearcat.getBeanByMeta({}); // $ExpectType object | null + bearcat.getBeanByFunc(EF); // $ExpectType object | null + bearcat.use('beanId'); + bearcat.module(EF, null); + bearcat.define('testId', EF, null); + bearcat.require('testId'); + bearcat.getBean('testId'); + bearcat.getFunction('testId'); // $ExpectType ConstructorFunction | null + bearcat.getClass('testId'); // $ExpectType ConstructorFunction | null + bearcat.extend('testSubId', 'testId'); + bearcat.call('testId', null); + bearcat.getModel('testSubId'); + bearcat.getRoute('testId', 'controllerEntry'); + + const applicationContext: bearcat.ApplicationContext = bearcat.getApplicationContext(); // $ExpectType ApplicationContext + applicationContext.init(); + applicationContext.setStartupDate(Date.now()); + applicationContext.getStartupDate(); // $ExpectType number + applicationContext.getResource('/a/c/b'); // $ExpectType object + applicationContext.getConfigLocations(); // $ExpectType string[] + applicationContext.addBeanFactoryPostProcessor({postProcessBeanFactory: EF}); + applicationContext.getBeanFactoryProcessors(); // $ExpectType BeanPostProcessor[] + applicationContext.refresh(); + applicationContext.refresh(() => {}); + applicationContext.isActive(); + applicationContext.getBean('testId'); + applicationContext.getBeanByMeta({}); + applicationContext.getBeanByFunc(EF); + applicationContext.getModel('mId'); + applicationContext.getModelDefinition('mId'); + applicationContext.getBeanFunction('testId'); + applicationContext.extendBean('testId', ['testParentId']); + applicationContext.doExtendBean('testId', 'testParentId'); + applicationContext.module(EF, null); + applicationContext.define('testNewId', EF, null); + applicationContext.require('testNewId'); + applicationContext.use(['testId']); + applicationContext.async(['testId']); + applicationContext.containsBean('testId'); // $ExpectType boolean + applicationContext.isSingleton('testId'); // $ExpectType boolean + applicationContext.isPrototype('testId'); // $ExpectType boolean + applicationContext.containsBeanDefinition('testId'); // $ExpectType boolean + applicationContext.isRunning(); // $ExpectType boolean + applicationContext.hasBeanFactory(); // $ExpectType boolean + applicationContext.getBeanDefinition('testId'); + applicationContext.removeBeanDefinition('testNewId'); + applicationContext.setEnv('testing'); + applicationContext.getEnv(); // $ExpectType string + applicationContext.setConfigPath('./config'); + applicationContext.getConfigPath(); + applicationContext.setHotPath('./src'); + applicationContext.getHotPath(); + applicationContext.getBase(); + + const asyncScriptLoader: bearcat.AsyncScriptLoader = applicationContext.getAsyncScriptLoader(); // $ExpectType AsyncScriptLoader + asyncScriptLoader.getLoadBeans(); + asyncScriptLoader.load(['abc'], () => {}); + asyncScriptLoader.save('/a/b', {}); + asyncScriptLoader.module('mId', {}); + asyncScriptLoader.resolve('mId', ''); // $ExpectType string + asyncScriptLoader.resolveDeps({}); + asyncScriptLoader.getPathById('mId'); + asyncScriptLoader.get('/a/b', []); + asyncScriptLoader.setApplicationContext(applicationContext); + + const bootStrapLoader: bearcat.BootStrapLoader = applicationContext.getBootStrapLoader(); // $ExpectType BootStrapLoader + bootStrapLoader.load(['a']); + + const resourceLoader: bearcat.ResourceLoader = applicationContext.getResourceLoader(); // $ExpectType ResourceLoader + resourceLoader.addLoadPath('./'); + resourceLoader.getConfigLoader(); + resourceLoader.load('./a'); + + const beanFactory: bearcat.BeanFactory = applicationContext.getBeanFactory(); // $ExpectType BeanFactory + const beanFactorySame = bearcat.getBeanFactory(); // $ExpectType BeanFactory + if (beanFactory !== beanFactorySame) { + return; // should not run here! + } + + beanFactory.getBean('testId'); + beanFactory.getBeanProxy('testId'); + beanFactory.getModelProxy('mId'); + beanFactory.getConstraint('cId'); + beanFactory.setParentBean('testParentBean'); + beanFactory.registerBeans({}); + beanFactory.registerBean('testNewId', {}); + beanFactory.registerModel('testId', 'mNewId', {}); + beanFactory.registerConstraint('testId', 'cNewId', {}); + beanFactory.preInstantiateSingletons(); + beanFactory.addBeanPostProcessor({postProcessBeanFactory: EF}); + beanFactory.getBeanPostProcessors(); + beanFactory.isSingleton('testId'); + beanFactory.isPrototype('testId'); + beanFactory.containsBean('testId'); + beanFactory.getBeanFunction('testId'); + beanFactory.setBeanFunction('testId', EF); + beanFactory.removeFunction('testId'); + beanFactory.getInitCb('testId'); + beanFactory.setInitCb('testId', EF); + beanFactory.getBeanDefinition('testId'); + beanFactory.getBeanDefinitions(); + beanFactory.removeBeanDefinition('testId'); + beanFactory.containsBeanDefinition('testId'); + beanFactory.getAspects(); // $ExpectType object[] + beanFactory.getModelDefinition('mId'); + beanFactory.getModelDefinitions(); + beanFactory.getConstraintDefinition('cId'); + beanFactory.setTableModelMap('tId', {}); + beanFactory.getModelDefinitionByTable('tId'); + + const moduleFactory: bearcat.ModuleFactory = applicationContext.getModuleFactory(); + moduleFactory.define('mId', {}); + moduleFactory.require('mId'); + + beanFactory.destroyBean('testId', {}); + beanFactory.destroySingleton('testNewId'); + beanFactory.destroySingletons(); + beanFactory.destroyBeanFactory(); + applicationContext.closeBeanFactory(); + applicationContext.cancelRefresh(); + applicationContext.destroy(); + bearcat.stop(); +}); + +bearcat.async('test', () => {}); diff --git a/types/bearcat-es6/index.d.ts b/types/bearcat-es6/index.d.ts new file mode 100644 index 000000000000000..d40728b3805aa21 --- /dev/null +++ b/types/bearcat-es6/index.d.ts @@ -0,0 +1,1203 @@ +// Type definitions for bearcat-es6 0.6 +// Project: https://github.com/ChrisPei/bearcat-es6 +// Definitions by: Xin Li +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 3.0 + +/// + +import { EventEmitter } from 'events'; + +declare namespace bearcat { + type CallbackFunc = () => void; + type ParamClassFunc = () => void; + type ConstructorFunction = (...params: any[]) => any; + interface BeanPostProcessor { + postProcessBeanFactory: CallbackFunc; + } + + interface Bearcat { + opts: object; + configLocations: string[]; + state: number; + startTime: number; + version: string; + applicationContext: ApplicationContext; + + /** + * Bearcat createApp constructor function. + * + * @param configLocations context path array + * @param opts + * @param opts.NODE_ENV setup env + * @param opts.BEARCAT_ENV setup env + * @param opts.NODE_CPATH setup config path + * @param opts.BEARCAT_CPATH setup config path + * @param opts.BEARCAT_HPATH setup hot reload path(s), usually it is the scan source directory(app by default) + * @param opts.BEARCAT_LOGGER setup 'off' to turn off bearcat logger configuration + * @param opts.BEARCAT_HOT setup 'on' to turn on bearcat hot code reload + * @param opts.BEARCAT_ANNOTATION setup 'off' to turn off bearcat $ based annotation + * @param opts.BEARCAT_GLOBAL setup bearcat to be global object + * @param opts.BEARCAT_FUNCTION_STRING setup bearcat to use func.toString for $ based annotation + * + * @return bearcat object + * @api public + */ + createApp(configLocations: string[], opts: object): Bearcat; + + createApp(opts: object): Bearcat; + + /** + * Bearcat start app. + * + * @param cb start callback function + * @api public + */ + start(cb?: CallbackFunc): void; + + /** + * Bearcat stop app. + * it will stop internal applicationContext, destroy all singletonBeans + * + * @api public + */ + stop(): void; + + /** + * Bearcat get beanFactory instance. + * + * @return beanFactory instance + * @api public + */ + getBeanFactory(): BeanFactory; + + /** + * Bearcat get applicationContext. + * + * @return applicationContext + * @api public + */ + getApplicationContext(): ApplicationContext; + + /** + * Bearcat get bean from IoC container through meta argument. + * + * @param meta meta object + * @api public + */ + getBeanByMeta(meta: object): object | null; + + /** + * Bearcat get bean from IoC container through $ annotation function. + * + * @param func $ annotation function + * @api public + */ + getBeanByFunc(func: ParamClassFunc): object | null; + + /** + * Bearcat add async loading beans, this just add beans needed to be loaded to bearcat. + * + * Examples: + * + * bearcat.use(['car']); + * bearcat.use('car'); + * + * @param ids async loading beans id + * @api public + */ + use(ids: string | string[]): void; + + /** + * Bearcat async loading beans. + * + * @param ids async loading beans id + * @param cb callback with loaded bean instances + * @api public + */ + async(ids: string | string[], cb?: CallbackFunc): void; + + /** + * Bearcat add module(bean) to IoC container through $ annotation function. + * + * @param func $ annotation function + * @param context context object + * @api public + */ + module(func: ParamClassFunc, context?: object | null): object | void; + + /** + * Bearcat define module(bean). + * + * @param id + * @param factory function + * @param context object + * @api public + */ + define(id: string, factory: ParamClassFunc, context: object | null): void; + + /** + * Bearcat add module(bean) to IoC container through $ annotation function. + * + * Examples: + * + * var Car = bearcat.require('car'); + * + * @param id + * @api public + */ + require(id: string): any; + + /** + * Bearcat get bean from IoC container through beanName or meta argument. + * + * @param beanName + * @return bean + * @api public + */ + getBean(beanName: string | object | ParamClassFunc): object | null; + + /** + * Bearcat get bean constructor function from IoC container through beanName. + * + * Examples: + * + * + * // through beanName + * var Car = bearcat.getFunction("car"); + * + * + * @param beanName + * @return bean constructor function + * @api public + */ + getFunction(beanName: string): ConstructorFunction | null; + + /** + * Bearcat get bean constructor function from IoC container through beanName, the same as bearcat.getFunction. + * + * Examples: + * + * + * // through beanName + * var Car = bearcat.getClass("car"); + * + * + * @param beanName + * @return bean constructor function + * @api public + */ + getClass(beanName: string): ConstructorFunction | null; + + /** + * Bearcat shim to enable function inherits. + * + * Examples: + * + * + * bearcat.extend("bus", "car"); + * + * + * @param beanName + * @param superBeanName or superBeanName array + * @api public + */ + extend(beanName: string, superBeanName: string | string[]): void; + + /** + * Bearcat call function used for inherits to call super constructor function. + * + * Examples: + * + * + * bearcat.call("car", this); + * + * + * @param beanName + * @param context + * @param args + * @api public + */ + call(beanName: string, context?: object | null, ...args: any[]): void; + + /** + * Bearcat get model from bearcat through modelId. + * + * Examples: + * + * + * // through modelId + * var carModel = bearcat.getModel("car"); + * + * + * @param modelId + * @return model + * @api public + */ + getModel(modelId: string): object; + + /** + * Bearcat convenient function for using in MVC route mapping. + * + * Examples: + * + * + * // express + * var app = express(); + * app.get('/', bearcat.getRoute('bearController', 'index')); + * + * + * @param beanName + * @param fnName routeName + * @api public + */ + getRoute(beanName: string, fnName: string): ConstructorFunction; + } + + interface ApplicationContext extends EventEmitter { + opts: object; + configLocations: string[]; + loadBeans: string[]; + active: boolean; + reloadMap: object; + beanFactory: BeanFactory; + startUpDate: number; + extendBeanMap: object; + extendedBeanMap: object; + extendBeanCurMap: object; + moduleFactory: ModuleFactory; + resourceLoader: ResourceLoader; + bootStrapLoader: BootStrapLoader; + asyncScriptLoader: AsyncScriptLoader; + cpath: string; + hpath: string; + env: string; + base: string; + beanFactoryPostProcessors: BeanPostProcessor[]; + + /** + * ApplicationContext init. + * + * @api public + */ + init(): void; + + /** + * ApplicationContext set container startUpDate. + * + * @param startUpDate + * @api public + */ + setStartupDate(startUpDate: number): void; + + /** + * ApplicationContext get container startUpDate. + * + * @return startUpDate + * @api public + */ + getStartupDate(): number; + + /** + * ApplicationContext get resourceLoader. + * + * @return resourceLoader + * @api public + */ + getResourceLoader(): ResourceLoader; + + /** + * ApplicationContext get asyncScriptLoader. + * + * @return asyncScriptLoader + * @api public + */ + getAsyncScriptLoader(): AsyncScriptLoader; + + /** + * ApplicationContext get bootStrapLoader. + * + * @return bootStrapLoader + * @api public + */ + getBootStrapLoader(): BootStrapLoader; + + /** + * ApplicationContext get metaObjects resource from contextPath. + * + * @param cpath contextPath + * @return metaObjects + * @api public + */ + getResource(cpath: string): object; + + /** + * ApplicationContext get contextPath locations. + * + * @return contextPath locations + * @api public + */ + getConfigLocations(): string[]; + + /** + * ApplicationContext add beanFactoryPostProcessor. + * + * @param beanFactoryPostProcessor + * @api public + */ + addBeanFactoryPostProcessor(beanFactoryPostProcessor: BeanPostProcessor): void; + + /** + * ApplicationContext get beanFactoryPostProcessors. + * + * @return beanFactoryPostProcessors + * @api public + */ + getBeanFactoryProcessors(): BeanPostProcessor[]; + + /** + * ApplicationContext do refresh actions. + * refresh beanFactory, preIntialize singleton Beans + * + * @param cb callback function + * @api public + */ + refresh(cb?: CallbackFunc): void; + + /** + * ApplicationContext cancel refresh. + * + * @api publish + */ + cancelRefresh(): void; + + /** + * ApplicationContext destroy. + * + * @api public + */ + destroy(): void; + + /** + * ApplicationContext check whether applicationContext is active or not. + * + * @api public + */ + isActive(): boolean; + + /** + * ApplicationContext getBean through beanName from applicationContext. + * + * @param beanName + * @return beanObject + * @api public + */ + getBean(beanName: string): object; + + /** + * ApplicationContext getBean through metaObject from applicationContext. + * + * @param meta metaObject + * @return beanObject + * @api public + */ + getBeanByMeta(meta: object): object; + + /** + * ApplicationContext getBean through $ annotation function from applicationContext. + * + * @param func $ annotation function + * @return beanObject + * @api public + */ + getBeanByFunc(func: ConstructorFunction): object; + + /** + * ApplicationContext getModel through modelId. + * + * @param modelId + * @return model + * @api public + */ + getModel(modelId: string): object; + + /** + * ApplicationContext getModelDefinition through modelId. + * + * @param modelId + * @return modelDefinition + * @api public + */ + getModelDefinition(modelId: string): object; + + /** + * ApplicationContext get bean contructor function. + * + * @param beanName + * @return bean constructor function + * @api public + */ + getBeanFunction(beanName: string): ConstructorFunction; + + /** + * ApplicationContext extend bean. + * + * @param beanName + * @param superBeanName or superBeanName array + * @api public + */ + extendBean(beanName: string, superBeanName: string | string[]): void; + + /** + * ApplicationContext do extend bean. + * + * @param beanName + * @param superBeanName + * @api public + */ + doExtendBean(beanName: string, superBeanName: string): void; + + /** + * ApplicationContext add module(bean) to IoC container through $ annotation function from applicationContext. + * + * @param func $ annotation function + * @param context + * @api public + */ + module(func: ConstructorFunction, context?: object | null): void; + + /** + * ApplicationContext service locator pattern define module. + * + * @param id + * @param factory factory function + * @param context context object + * @api public + */ + define(id: string, factory: ConstructorFunction, context?: object | null): void; + + /** + * ApplicationContext service locator pattern define module. + * + * @param id + * @api public + */ + require(id: string): any; + + /** + * ApplicationContext add startup loaded bean ids. + * + * @param ids loaded bean ids + * @api public + */ + use(ids: string[]): void; + + /** + * ApplicationContext async load bean with bean ids. + * + * @param ids bean ids + * @param cb callback function + * @api public + */ + async(ids: string[], cb?: CallbackFunc): void; + + /** + * ApplicationContext check ApplicationContext contains bean or not. + * + * @param beanName + * @return a boolean value that contains bean or not + * @api public + */ + containsBean(beanName: string): boolean; + + /** + * ApplicationContext check bean is a singleton or not. + * + * @param beanName + * @return a boolean value that is a singleton or not + * @api public + */ + isSingleton(beanName: string): boolean; + + /** + * ApplicationContext check bean is a prototype or not. + * + * @param beanName + * @return a boolean value that is a prototype or not + * @api public + */ + isPrototype(beanName: string): boolean; + + /** + * ApplicationContext check ApplicationContext contains beanName beanDefinition or not. + * + * @param beanName + * @return a boolean value that contains beanName beanDefinition or not + * @api public + */ + containsBeanDefinition(beanName: string): boolean; + + /** + * ApplicationContext check whether applicationContext is running or not. + * + * @return true|false + * @api public + */ + isRunning(): boolean; + + /** + * ApplicationContext close beanFactory. + * + * @api public + */ + closeBeanFactory(): void; + + /** + * ApplicationContext check whether applicationContext has beanFactory or not. + * + * @return true|false + * @api public + */ + hasBeanFactory(): boolean; + + /** + * ApplicationContext getBeanFactory. + * + * @return beanFactory + * @api public + */ + getBeanFactory(): BeanFactory; + + /** + * ApplicationContext getModuleFactory. + * + * @return moduleFactory + * @api public + */ + getModuleFactory(): ModuleFactory; + + /** + * ApplicationContext get beanDefinition. + * + * @param beanName + * @return beanDefinition + * @api public + */ + getBeanDefinition(beanName: string): object; + + /** + * ApplicationContext remove beanDefinition from ApplicationContext. + * + * @param beanName + * @api public + */ + removeBeanDefinition(beanName: string): void; + + /** + * ApplicationContext set env. + * + * @param env + * @api public + */ + setEnv(env: string): void; + + /** + * ApplicationContext get env. + * + * @return env + * @api public + */ + getEnv(): string; + + /** + * ApplicationContext set config path. + * + * @param cpath config path + * @api public + */ + setConfigPath(cpath: string): void; + + /** + * ApplicationContext get config path. + * + * @return config path + * @api public + */ + getConfigPath(): string; + + /** + * ApplicationContext set hot reload path. + * + * @param hpath hot reload path + * @api public + */ + setHotPath(hpath: string): void; + + /** + * ApplicationContext get hot reload path. + * + * @return hpath hot reload path + * @api public + */ + getHotPath(): string; + + /** + * ApplicationContext get base path. + * + * @return base path + * @api public + */ + getBase(): string; + } + + interface BeanFactory { + aspects: object[]; + modelMap: object; + initCbMap: object; + beanCurMap: object; + constraints: object; + tableModelMap: object; + beanFunctions: object; + beanDefinitions: object; + beanPostProcessors: BeanPostProcessor[]; + singletonBeanFactory: SingletonBeanFactory; + + /** + * BeanFactory get bean instance through BeanFactory IoC container. + * + * @param beanName + * @return bean object + * @api public + */ + getBean(beanName: string): object; + + /** + * BeanFactory get bean proxy through BeanFactory IoC container for lazy init bean. + * when invoke bean proxy, proxy will invoke getBean to get the target bean + * + * @param beanName + * @return bean proxy object + * @api public + */ + getBeanProxy(beanName: string): object; + + /** + * BeanFactory get model through BeanFactory IoC container. + * + * @param modelId + * @return model proxy object + * @api public + */ + getModelProxy(modelId: string): object; + + /** + * BeanFactory get constraint through BeanFactory IoC container. + * + * @param cid + * @return constraint bean object + * @api public + */ + getConstraint(cid: string): object; + + /** + * BeanFactory set parent bean. + * + * @param beanName + * @return beanDefinition + * @api public + */ + setParentBean(beanName: string): object; + + /** + * BeanFactory register beans through metaObjects into BeanFactory. + * + * @param metaObjects + * @api public + */ + registerBeans(metaObjects: object): void; + + /** + * BeanFactory register bean through metaObject into BeanFactory. + * + * @param beanName + * @param metaObject + * @api public + */ + registerBean(beanName: string, metaObject: object): void; + + /** + * BeanFactory register model through metaObject into BeanFactory. + * + * @param beanName bean id + * @param modelId model id + * @param metaObject + * @api public + */ + registerModel(beanName: string, modelId: string, metaObject: object): void; + + /** + * BeanFactory register constraint through metaObject into BeanFactory. + * + * @param beanName bean id + * @param cid constraint id + * @param metaObject + * @api public + */ + registerConstraint(beanName: string, cid: string, metaObject: object): void; + + /** + * BeanFactory instantiating singletion beans in advance. + * + * @param cb callback function + * @api public + */ + preInstantiateSingletons(cb?: CallbackFunc): void; + + /** + * BeanFactory add beanPostProcessor to BeanFactory. + * @param beanPostProcessor + * @api public + */ + addBeanPostProcessor(beanPostProcessor: BeanPostProcessor): void; + + /** + * BeanFactory get beanPostProcessors. + * @return beanPostProcessors + * @api public + */ + getBeanPostProcessors(): BeanPostProcessor[]; + + /** + * BeanFactory destroy singletons. + * + * @api public + */ + destroySingletons(): void; + + /** + * BeanFactory destroy BeanFactory. + * + * @api public + */ + destroyBeanFactory(): void; + + /** + * BeanFactory destroy singleton. + * + * @param beanName + * @api public + */ + destroySingleton(beanName: string): void; + + /** + * BeanFactory destroy bean. + * + * @param beanName + * @param beanObject + * @api public + */ + destroyBean(beanName: string, beanObject: object): void; + + /** + * BeanFactory check bean is a singleton or not. + * + * @param beanName + * @return true | false + * @api public + */ + isSingleton(beanName: string): boolean; + + /** + * BeanFactory check bean is a prototype or not. + * + * @param beanName + * @return true | false + * @api public + */ + isPrototype(beanName: string): boolean; + + /** + * BeanFactory check BeanFactory contains bean or not. + * + * @param beanName + * @return true | false + * @api public + */ + containsBean(beanName: string): boolean; + + /** + * BeanFactory get bean contructor function. + * + * @param beanName + * @return bean constructor function + * @api public + */ + getBeanFunction(beanName: string): ConstructorFunction; + + /** + * BeanFactory set bean contructor function. + * + * @param beanName + * @param func bean constructor function + * @api public + */ + setBeanFunction(beanName: string, func: ConstructorFunction): void; + + /** + * BeanFactory remove bean contructor function from BeanFactory. + * + * @param beanName + * @api public + */ + removeFunction(beanName: string): void; + + /** + * BeanFactory get init method. + * + * @param beanName + * @return bean init method + * @api public + */ + getInitCb(beanName: string): CallbackFunc; + + /** + * BeanFactory set init method. + * + * @param beanName + * @param initCb bean init method + * @api public + */ + setInitCb(beanName: string, initCb: CallbackFunc): void; + + /** + * BeanFactory get beanDefinition. + * + * @param beanName + * @return beanDefinition + * @api public + */ + getBeanDefinition(beanName: string): object; + + /** + * BeanFactory get beanDefinitions. + * + * @return beanDefinitions + * @api public + */ + getBeanDefinitions(): object; + + /** + * BeanFactory remove beanDefinition from BeanFactory. + * + * @param beanName + * @api public + */ + removeBeanDefinition(beanName: string): void; + + /** + * BeanFactory check BeanFactory contains beanName beanDefinition or not. + * + * @param beanName + * @return true | false + * @api public + */ + containsBeanDefinition(beanName: string): boolean; + + /** + * BeanFactory get aspects. + * + * @return aspects + * @api public + */ + getAspects(): object[]; + + /** + * BeanFactory get modelDefinition. + * + * @param modelId + * @return modelDefinition + * @api public + */ + getModelDefinition(modelId: string): object; + + /** + * BeanFactory get modelDefinitions. + * + * @return modelDefinition map + * @api public + */ + getModelDefinitions(): object; + + /** + * BeanFactory get getConstraintDefinition. + * + * @param cid + * @return getConstraintDefinition + * @api public + */ + getConstraintDefinition(cid: string): object; + + /** + * BeanFactory set table model map. + * + * @param table name + * @param modelDefinition + * @api public + */ + setTableModelMap(table: string, modelDefinition: object): void; + + /** + * BeanFactory get modelDefinition by table. + * + * @param table name + * @return modelDefinition + * @api public + */ + getModelDefinitionByTable(table: string): object; + } + + interface SingletonBeanFactory { + beanFactory: BeanFactory; + singletonObjects: object; + + /** + * SingletonBeanFactory add singleton to SingletonBeanFactory. + * + * @param beanName + * @param beanObject + * @api public + */ + addSingleton(beanName: string, beanObject: object): void; + + /** + * SingletonBeanFactory check SingletonBeanFactory contains singleton or not. + * + * @param beanName + * @return true | false + * @api public + */ + containsSingleton(beanName: string): boolean; + + /** + * SingletonBeanFactory get singleton from SingletonBeanFactory. + * + * @param beanName + * @return singletonObject + * @api public + */ + getSingleton(beanName: string): object; + + /** + * SingletonBeanFactory get all singleton names from SingletonBeanFactory. + * + * @api public + */ + getSingletonNames(): string[]; + + /** + * SingletonBeanFactory remove singleton from SingletonBeanFactory. + * + * @param beanName + * @api public + */ + removeSingleton(beanName: string): void; + } + + interface ModuleFactory { + factoryMap: object; + moduleMap: object; + + define(id: string, factory: object): void; + + require(id: string): any; + } + + interface ResourceLoader { + loadPathMap: object; + loadPaths: string; + + /** + * ResourceLoader get config loader. + * + * @return config loader + * @api public + */ + getConfigLoader(): ConfigLoader; + + /** + * ResourceLoader add context load path. + * + * @param cpath context load path + * @api public + */ + addLoadPath(cpath: string): void; + + /** + * ResourceLoader load metaObjects from context path. + * + * @param cpath context load path + * @return metaObjects + * @api public + */ + load(cpath: string): object; + } + + interface ConfigLoader { + /** + * ConfigLoader get meta loader. + * + * @return meta loader + * @api public + */ + getMetaLoader(): MetaLoader; + + /** + * ConfigLoader get meta objects from context path. + * + * @param cpath context path + * @return meta objects + * @api public + */ + getResources(cpath: string): object; + + /** + * ConfigLoader get recursive scan paths and metaObjects in context.json. + * + * @param cpath context path + * @param scanPaths scan paths + * @param metaObjects + * @api public + */ + getRecursiveScanPath(cpath: string, scanPaths: string[], metaObjects: object): void; + } + + interface MetaLoader { + metaObjects: object; + + /** + * MetaLoader load metaObjects from meta path. + * + * @param mpath + * @return meta objects + * @api public + */ + load(mpath: string): object; + + /** + * MetaLoader set metaObject to beanName. + * + * @param beanName + * @param metaObject + * @api public + */ + setMetaObject(beanName: string, metaObject: object): void; + + /** + * MetaLoader get metaObjects. + * + * @return metaObjects + * @api public + */ + getMetaObjects(): object; + } + + interface AsyncScriptLoader { + cacheModules: object; + loaderDir: string; + applicationContext: ApplicationContext; + + /** + * AsyncScriptLoader get loaded beans list. + * + * @return loaded beans + * @api public + */ + getLoadBeans(): object[]; + + /** + * AsyncScriptLoader load beans asynchronously. + * + * @param ids loaded beans ids + * @param cb callback function + * @api public + */ + load(ids: string[], cb?: CallbackFunc): void; + + /** + * AsyncScriptLoader save load script with uri meta. + * + * @param uri + * @param meta + * @api public + */ + save(uri: string, meta: object): void; + + /** + * AsyncScriptLoader register script with id, meta. + * + * @param id + * @param beanMeta + * @api public + */ + module(id: string, beanMeta: object): void; + + /** + * AsyncScriptLoader resolve uri path with refUri. + * + * @param id + * @param refUri + * @return resolved path + * @api public + */ + resolve(id: string, refUri: string): string; + + /** + * AsyncScriptLoader resolve deps through bean meta. + * + * @param beanMeta + * @return resolved deps + * @api public + */ + resolveDeps(beanMeta: object): string[]; + + /** + * AsyncScriptLoader get bean path through bean id. + * + * @param id + * @return bean path + * @api public + */ + getPathById(id: string): string; + + /** + * AsyncScriptLoader get script from cache or new. + * + * @param uri + * @param deps id + * @return module + * @api public + */ + get(uri: string, deps: string[]): object; + + /** + * AsyncScriptLoader set applicationContext reference. + * + * @param applicationContext + * @api public + */ + setApplicationContext(applicationContext: ApplicationContext): void; + } + + interface BootStrapLoader { + /** + * BootStrapLoader load script files. + * + * @param idPaths + * @api public + */ + load(idPaths: string[]): void; + } +} + +declare var bearcat: bearcat.Bearcat; +export = bearcat; diff --git a/types/jest-docblock/tsconfig.json b/types/bearcat-es6/tsconfig.json similarity index 93% rename from types/jest-docblock/tsconfig.json rename to types/bearcat-es6/tsconfig.json index 4b1181bdad52a88..c93fa9052c10360 100644 --- a/types/jest-docblock/tsconfig.json +++ b/types/bearcat-es6/tsconfig.json @@ -18,6 +18,6 @@ }, "files": [ "index.d.ts", - "jest-docblock-tests.ts" + "bearcat-es6-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/hapi__topo/tslint.json b/types/bearcat-es6/tslint.json similarity index 100% rename from types/hapi__topo/tslint.json rename to types/bearcat-es6/tslint.json diff --git a/types/bech32/bech32-tests.ts b/types/bech32/bech32-tests.ts index 7fd04abe560e4cf..a7ecfb9db11113c 100644 --- a/types/bech32/bech32-tests.ts +++ b/types/bech32/bech32-tests.ts @@ -9,7 +9,7 @@ decoded.prefix; decoded.words; // Test convert from/to words -const words: Buffer = bech32.toWords(Buffer.from('foobar', 'utf8')); +const words: number[] = bech32.toWords(Buffer.from('foobar', 'utf8')); bech32.fromWords(words); // Test encode diff --git a/types/bech32/index.d.ts b/types/bech32/index.d.ts index 878d56a6a62e957..220680e19fe6b7e 100644 --- a/types/bech32/index.d.ts +++ b/types/bech32/index.d.ts @@ -5,10 +5,10 @@ /// -export function decode(str: string, LIMIT?: number): { prefix: string, words: Buffer }; +export function decode(str: string, LIMIT?: number): { prefix: string, words: number[] }; -export function encode(prefix: string, words: Buffer, LIMIT?: number): string; +export function encode(prefix: string, words: ArrayLike, LIMIT?: number): string; -export function fromWords(words: Buffer): Buffer; +export function fromWords(words: ArrayLike): number[]; -export function toWords(bytes: Buffer): Buffer; +export function toWords(bytes: ArrayLike): number[]; diff --git a/types/bell/tslint.json b/types/bell/tslint.json index 843d627f89f95c9..c7d87e32cc18186 100644 --- a/types/bell/tslint.json +++ b/types/bell/tslint.json @@ -1,6 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "unified-signatures": false // Disabling as it prevents me from using overloaded doctags + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/benchmark/tslint.json b/types/benchmark/tslint.json index 3d59f55fdabcf45..00e4578d9d4e73e 100644 --- a/types/benchmark/tslint.json +++ b/types/benchmark/tslint.json @@ -1,80 +1,24 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, "object-literal-key-quotes": false, "object-literal-shorthand": false, - "one-line": false, "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/bent/index.d.ts b/types/bent/index.d.ts index 6730590d8c34e2a..61943b623b053e7 100644 --- a/types/bent/index.d.ts +++ b/types/bent/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for bent 7.0 // Project: https://github.com/mikeal/bent#readme -// Definitions by: Ovyerus +// Definitions by: Ovyerus // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.7 @@ -11,7 +11,9 @@ import { PassThrough, Stream } from 'stream'; type HttpMethod = 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH' | 'HEAD' | 'OPTIONS' | 'CONNECT' | 'TRACE'; type StatusCode = number; type BaseUrl = string; -interface Headers { [key: string]: any; } +interface Headers { + [key: string]: any; +} // Type first declare function bent(type: 'string', ...args: bent.Options[]): bent.RequestFunction; @@ -20,7 +22,11 @@ declare function bent(type: 'json', ...args: bent.Options[]): bent.RequestFuncti // Method or url first declare function bent(baseUrl: string, type: 'string', ...args: bent.Options[]): bent.RequestFunction; -declare function bent(baseUrl: string, type: 'buffer', ...args: bent.Options[]): bent.RequestFunction; +declare function bent( + baseUrl: string, + type: 'buffer', + ...args: bent.Options[] +): bent.RequestFunction; declare function bent(baseUrl: string, type: 'json', ...args: bent.Options[]): bent.RequestFunction; declare function bent(baseUrl: string, ...args: bent.Options[]): bent.RequestFunction; @@ -33,18 +39,18 @@ declare function bent(...args: bent.Options[]): bent.RequestFunction; declare namespace bent { - type RequestFunction = (url: string, body?: RequestBody) => Promise; + type RequestFunction = (url: string, body?: RequestBody, headers?: Headers) => Promise; type Options = HttpMethod | StatusCode | Headers | BaseUrl; type RequestBody = string | Stream | Buffer | ArrayBuffer | Json; type NodeResponse = PassThrough & { statusCode: number; statusMessage: string; - headers: Headers + headers: Headers; }; - type FetchResponse = Response & {statusCode: number}; + type FetchResponse = Response & { statusCode: number }; type BentResponse = NodeResponse | FetchResponse; - type Json = { [key: string]: any; [key: number]: any; } | any[]; + type Json = { [key: string]: any; [key: number]: any } | any[]; type ValidResponse = BentResponse | string | Buffer | ArrayBuffer | Json; } diff --git a/types/better-curry/tslint.json b/types/better-curry/tslint.json index 3d59f55fdabcf45..d618e10acfc78bd 100644 --- a/types/better-curry/tslint.json +++ b/types/better-curry/tslint.json @@ -1,80 +1,23 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/bezier-js/tslint.json b/types/bezier-js/tslint.json index 3d59f55fdabcf45..029b1ae3d6d631c 100644 --- a/types/bezier-js/tslint.json +++ b/types/bezier-js/tslint.json @@ -1,80 +1,23 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/bgiframe/tsconfig.json b/types/bgiframe/tsconfig.json index 82e62843769c48e..71e6b79545f5b8d 100644 --- a/types/bgiframe/tsconfig.json +++ b/types/bgiframe/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "files": [ "index.d.ts" ] -} \ No newline at end of file +} diff --git a/types/bgiframe/tslint.json b/types/bgiframe/tslint.json index 3d59f55fdabcf45..f4aacebb07f52f0 100644 --- a/types/bgiframe/tslint.json +++ b/types/bgiframe/tslint.json @@ -1,80 +1,10 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "npm-naming": false, + "prefer-method-signature": false } -} +} \ No newline at end of file diff --git a/types/big.js/tslint.json b/types/big.js/tslint.json index 3224b40b8b4935b..ed91c31f9c1973b 100644 --- a/types/big.js/tslint.json +++ b/types/big.js/tslint.json @@ -3,4 +3,4 @@ "rules": { "no-const-enum": false } -} +} \ No newline at end of file diff --git a/types/bigint/tslint.json b/types/bigint/tslint.json index 3d59f55fdabcf45..bc86f5598ecf371 100644 --- a/types/bigint/tslint.json +++ b/types/bigint/tslint.json @@ -1,80 +1,17 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, + "npm-naming": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/bignum/tsconfig.json b/types/bignum/tsconfig.json index 15cb8a7b4f7e646..4005c7bab895c51 100644 --- a/types/bignum/tsconfig.json +++ b/types/bignum/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "bignum-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bignum/tslint.json b/types/bignum/tslint.json index 3d59f55fdabcf45..141e737d80700ff 100644 --- a/types/bignum/tslint.json +++ b/types/bignum/tslint.json @@ -1,80 +1,16 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, + "no-trailing-whitespace": false, "no-var-keyword": false, "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/bigscreen/tsconfig.json b/types/bigscreen/tsconfig.json index 71230cc8e1a9ee9..bcd14e1cc63791a 100644 --- a/types/bigscreen/tsconfig.json +++ b/types/bigscreen/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "bigscreen-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bigscreen/tslint.json b/types/bigscreen/tslint.json index 3d59f55fdabcf45..702d217c1ff9fdf 100644 --- a/types/bigscreen/tslint.json +++ b/types/bigscreen/tslint.json @@ -1,80 +1,12 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "semicolon": false } -} +} \ No newline at end of file diff --git a/types/binary-parser/binary-parser-tests.ts b/types/binary-parser/binary-parser-tests.ts index 9eca89211c1200c..089e429177a1bb3 100644 --- a/types/binary-parser/binary-parser-tests.ts +++ b/types/binary-parser/binary-parser-tests.ts @@ -118,3 +118,17 @@ const result = parser6.parse(Buffer.from([0x01, 0x02, 0x03, 0x04, 0x05])); result.nested.points[0].x; result.nested.points[1].y; result.optional.number; + +const parser7 = new Parser() + // Signed 64-bit integer + .int64('a') + // Unsigned 64-bit integer + .uint64('b') + // Signed 64-bit integer (little endian) + .int64le('c') + // Signed 64-bit integer (big endian) + .int64be('d') + // Unsigned 64-bit integer (little endian) + .uint64le('e') + // Unsigned 64-bit integer (big endian) + .uint64be('f'); diff --git a/types/binary-parser/index.d.ts b/types/binary-parser/index.d.ts index b16f433e5591692..3127a84c386a2a8 100644 --- a/types/binary-parser/index.d.ts +++ b/types/binary-parser/index.d.ts @@ -1,10 +1,11 @@ -// Type definitions for binary-parser 1.3 +// Type definitions for binary-parser 1.5 // Project: https://github.com/keichi/binary-parser // Definitions by: Benjamin Riggs , // Dolan Miu , -// Yu Shimura +// Yu Shimura , +// John Mark Gabriel Caguicla // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.8 +// TypeScript Version: 3.2 /// @@ -30,6 +31,13 @@ export interface Parser { uint32le(name: N, options?: Parser.Options): Parser.Next; uint32be(name: N, options?: Parser.Options): Parser.Next; + int64(name: N, options?: Parser.Options): Parser.Next; + uint64(name: N, options?: Parser.Options): Parser.Next; + int64le(name: N, options?: Parser.Options): Parser.Next; + int64be(name: N, options?: Parser.Options): Parser.Next; + uint64le(name: N, options?: Parser.Options): Parser.Next; + uint64be(name: N, options?: Parser.Options): Parser.Next; + bit1(name: N, options?: Parser.Options): Parser.Next; bit2(name: N, options?: Parser.Options): Parser.Next; bit3(name: N, options?: Parser.Options): Parser.Next; @@ -109,6 +117,8 @@ export interface Parser { skip(length: number): Parser; + seek(length: number): Parser; + endianess(endianess: Parser.Endianness): Parser; /* [sic] */ namely(alias: string): Parser; diff --git a/types/bind-ponyfill/tslint.json b/types/bind-ponyfill/tslint.json index 3d59f55fdabcf45..6ae459e8429ecc1 100644 --- a/types/bind-ponyfill/tslint.json +++ b/types/bind-ponyfill/tslint.json @@ -1,80 +1,12 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "prefer-method-signature": false } -} +} \ No newline at end of file diff --git a/types/bintrees/tsconfig.json b/types/bintrees/tsconfig.json index d21ec38c1e10839..353ae2631e75c46 100644 --- a/types/bintrees/tsconfig.json +++ b/types/bintrees/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "bintrees-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bintrees/tslint.json b/types/bintrees/tslint.json index 3d59f55fdabcf45..14d12caf85b776a 100644 --- a/types/bintrees/tslint.json +++ b/types/bintrees/tslint.json @@ -1,80 +1,19 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/bip21/tsconfig.json b/types/bip21/tsconfig.json index be0b0177220ce51..0d0fac549191a50 100644 --- a/types/bip21/tsconfig.json +++ b/types/bip21/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "bip21-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bip21/tslint.json b/types/bip21/tslint.json index 3d59f55fdabcf45..8869aba1e37568e 100644 --- a/types/bip21/tslint.json +++ b/types/bip21/tslint.json @@ -1,80 +1,16 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/bit-array/tsconfig.json b/types/bit-array/tsconfig.json index ba2e9e32a2a2199..35d0f28aaf16dfb 100644 --- a/types/bit-array/tsconfig.json +++ b/types/bit-array/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "bit-array-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bit-array/tslint.json b/types/bit-array/tslint.json index 3d59f55fdabcf45..c1de3f26d493fa9 100644 --- a/types/bit-array/tslint.json +++ b/types/bit-array/tslint.json @@ -1,80 +1,13 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "prefer-method-signature": false } -} +} \ No newline at end of file diff --git a/types/bittorrent-protocol/tslint.json b/types/bittorrent-protocol/tslint.json index 62d24860324b6b9..c8ad3a678e8a599 100644 --- a/types/bittorrent-protocol/tslint.json +++ b/types/bittorrent-protocol/tslint.json @@ -1,8 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - // TODOs - "no-misused-new": false, "no-any-union": false } -} +} \ No newline at end of file diff --git a/types/bl/tslint.json b/types/bl/tslint.json index 3d59f55fdabcf45..38cecda989e2fbe 100644 --- a/types/bl/tslint.json +++ b/types/bl/tslint.json @@ -1,80 +1,15 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/blazor__javascript-interop/blazor__javascript-interop-tests.ts b/types/blazor__javascript-interop/blazor__javascript-interop-tests.ts new file mode 100644 index 000000000000000..b3aad9d652f671c --- /dev/null +++ b/types/blazor__javascript-interop/blazor__javascript-interop-tests.ts @@ -0,0 +1,47 @@ +/// +// +// see {@link https://docs.microsoft.com/en-us/aspnet/core/blazor/javascript-interop?view=aspnetcore-3.1} +// +const exampleJsFunctions = { + showPrompt(text: string | undefined) { + return prompt(text, 'Type your name here'); + }, + displayWelcome(welcomeMessage: string) { + document.getElementById('welcome')!.innerText = welcomeMessage; + }, + returnArrayAsyncJs() { + DotNet.invokeMethodAsync('BlazorSample', 'ReturnArrayAsync').then(data => { + data.push(4); + console.log(data); + }); + }, + sayHello(dotnetHelper: DotNet.DotNetObject) { + return dotnetHelper.invokeMethodAsync('SayHello').then(r => console.log(r)); + }, +}; + +interface ColorFlags { + red: boolean; + green: boolean; + blue: boolean; +} + +const testInteropApi = async (dotNetRef: DotNet.DotNetObject) => { + // validate api patterns + const tokens = [1, 2, 3]; + DotNet.invokeMethod('MyCoolApp.Core', 'Foo', 'First', 'Second'); // $ExpectType string + DotNet.invokeMethod('MyCoolApp.Core', 'Foo', 1, 2); // $ExpectType number + const fooResults = await DotNet.invokeMethodAsync('MyCoolApp.Core', 'Foo', 'First', 'Second'); // $ExpectType string + DotNet.invokeMethodAsync('MyCoolApp.Core', 'Foo', 'First', 'Second'); // $ExpectType Promise + DotNet.invokeMethodAsync('MyCoolApp.Core', 'Foo', 'First', 'Second'); // $ExpectType Promise + DotNet.invokeMethodAsync('MyCoolApp.Core', 'Foo', ...tokens); // $ExpectType Promise + DotNet.invokeMethodAsync('MyCoolApp.Core', 'Foo', 5, ...tokens, 20, ...[25]); // $ExpectType Promise + DotNet.invokeMethodAsync('MyCoolApp.Core', 'Foo', 1, 2, 3); // $ExpectType Promise + dotNetRef.invokeMethod('MyCoolApp.Core', 'Foo', 'First', 'Second'); // $ExpectType string + dotNetRef.invokeMethod('MyCoolApp.Core', 'Foo', 1, 2); // $ExpectType number + const fooResults2 = await dotNetRef.invokeMethodAsync('MyCoolApp.Core', 'Foo', 'First', 'Second'); // $ExpectType string + dotNetRef.invokeMethodAsync('MyCoolApp.Core', 'Foo', 'First', 'Second'); // $ExpectType Promise + dotNetRef.invokeMethodAsync('MyCoolApp.Core', 'Foo', ...tokens); // $ExpectType Promise + dotNetRef.invokeMethodAsync('MyCoolApp.Core', 'Foo', 5, ...tokens, 20, ...[25]); // $ExpectType Promise + dotNetRef.invokeMethodAsync('MyCoolApp.Core', 'Foo', 1, 2, 3); // $ExpectType Promise +}; diff --git a/types/blazor__javascript-interop/index.d.ts b/types/blazor__javascript-interop/index.d.ts new file mode 100644 index 000000000000000..dc5d42dfaa25a10 --- /dev/null +++ b/types/blazor__javascript-interop/index.d.ts @@ -0,0 +1,56 @@ +// Type definitions for non-npm package blazor__javascript-interop 3.1 +// Project: https://docs.microsoft.com/en-us/aspnet/core/blazor/javascript-interop?view=aspnetcore-3.1 +// Definitions by: Piotr Błażejewicz (Peter Blazejewicz) +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// Minimum TypeScript Version: 3.0 + +// Here be dragons! +// This is community-maintained definition file intended to ease the process of developing +// high quality JavaScript interop code to be used in Blazor application from your C# .Net code. +// Could be removed without a notice in case official definition types ships with Blazor itself. + +// tslint:disable:no-unnecessary-generics + +declare namespace DotNet { + /** + * Invokes the specified .NET public method synchronously. Not all hosting scenarios support + * synchronous invocation, so if possible use invokeMethodAsync instead. + * + * @param assemblyName The short name (without key/version or .dll extension) of the .NET assembly containing the method. + * @param methodIdentifier The identifier of the method to invoke. The method must have a [JSInvokable] attribute specifying this identifier. + * @param args Arguments to pass to the method, each of which must be JSON-serializable. + * @returns The result of the operation. + */ + function invokeMethod(assemblyName: string, methodIdentifier: string, ...args: any[]): T; + /** + * Invokes the specified .NET public method asynchronously. + * + * @param assemblyName The short name (without key/version or .dll extension) of the .NET assembly containing the method. + * @param methodIdentifier The identifier of the method to invoke. The method must have a [JSInvokable] attribute specifying this identifier. + * @param args Arguments to pass to the method, each of which must be JSON-serializable. + * @returns A promise representing the result of the operation. + */ + function invokeMethodAsync(assemblyName: string, methodIdentifier: string, ...args: any[]): Promise; + /** + * Represents the .NET instance passed by reference to JavaScript. + */ + interface DotNetObject { + /** + * Invokes the specified .NET instance public method synchronously. Not all hosting scenarios support + * synchronous invocation, so if possible use invokeMethodAsync instead. + * + * @param methodIdentifier The identifier of the method to invoke. The method must have a [JSInvokable] attribute specifying this identifier. + * @param args Arguments to pass to the method, each of which must be JSON-serializable. + * @returns The result of the operation. + */ + invokeMethod(methodIdentifier: string, ...args: any[]): T; + /** + * Invokes the specified .NET instance public method asynchronously. + * + * @param methodIdentifier The identifier of the method to invoke. The method must have a [JSInvokable] attribute specifying this identifier. + * @param args Arguments to pass to the method, each of which must be JSON-serializable. + * @returns A promise representing the result of the operation. + */ + invokeMethodAsync(methodIdentifier: string, ...args: any[]): Promise; + } +} diff --git a/types/hapi__accept/tsconfig.json b/types/blazor__javascript-interop/tsconfig.json similarity index 77% rename from types/hapi__accept/tsconfig.json rename to types/blazor__javascript-interop/tsconfig.json index b12e8076ef90435..5ce184b12750d34 100644 --- a/types/hapi__accept/tsconfig.json +++ b/types/blazor__javascript-interop/tsconfig.json @@ -6,16 +6,14 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": true, "strictFunctionTypes": true, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" ], - "paths": { - "@hapi/accept": [ - "hapi__accept" - ] + "paths":{ + "@blazor/javascript-interop": ["blazor__javascript-interop"] }, "types": [], "noEmit": true, @@ -23,6 +21,6 @@ }, "files": [ "index.d.ts", - "hapi__accept-tests.ts" + "blazor__javascript-interop-tests.ts" ] } diff --git a/types/hast-format/tslint.json b/types/blazor__javascript-interop/tslint.json similarity index 100% rename from types/hast-format/tslint.json rename to types/blazor__javascript-interop/tslint.json diff --git a/types/blazy/tsconfig.json b/types/blazy/tsconfig.json index e452d910eccf785..0d077a55fef7081 100644 --- a/types/blazy/tsconfig.json +++ b/types/blazy/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": false, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "blazy-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/blazy/tslint.json b/types/blazy/tslint.json index 3d59f55fdabcf45..2dee0395ccea4bb 100644 --- a/types/blazy/tslint.json +++ b/types/blazy/tslint.json @@ -1,80 +1,18 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, "object-literal-shorthand": false, "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/bleno/tslint.json b/types/bleno/tslint.json index d895c355d8ee798..8743c597618b860 100644 --- a/types/bleno/tslint.json +++ b/types/bleno/tslint.json @@ -1,8 +1,7 @@ { - "extends": "dtslint/dt.json", - "rules": { - "dt-header": false, - "npm-naming": false, - "unified-signatures": false - } -} + "extends": "dtslint/dt.json", + "rules": { + "dt-header": false, + "unified-signatures": false + } +} \ No newline at end of file diff --git a/types/blessed/index.d.ts b/types/blessed/index.d.ts index ec9fddf70bff9de..59065b150070439 100644 --- a/types/blessed/index.d.ts +++ b/types/blessed/index.d.ts @@ -5,6 +5,7 @@ // Max Brauer // Nathan Rajlich // Daniel Berlanga +// Jeff Huijsmans // Definitions: https://github.com/borisyankov/DefinitelyTyped // TypeScript Version: 2.1 @@ -2335,7 +2336,7 @@ export namespace Widgets { /** * Removes an item from the list. Child can be an element, index, or string. */ - removeItem(child: BlessedElement): BlessedElement; + removeItem(child: BlessedElement | number | string): BlessedElement; /** * Push an item onto the list. @@ -2360,12 +2361,12 @@ export namespace Widgets { /** * 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 | number | string): void; /** * Returns the item element. Child can be an element, index, or string. */ - getItem(child: BlessedElement): BlessedElement; + getItem(child: BlessedElement | number | string): BlessedElement; /** * Set item to content. @@ -2390,7 +2391,7 @@ export namespace Widgets { /** * Returns the item index from the list. Child can be an element, index, or string. */ - getItemIndex(child: BlessedElement): number; + getItemIndex(child: BlessedElement | number | string): number; /** * Select an index of an item. diff --git a/types/blessed/tslint.json b/types/blessed/tslint.json index 3d59f55fdabcf45..2a076d744051302 100644 --- a/types/blessed/tslint.json +++ b/types/blessed/tslint.json @@ -1,80 +1,27 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, + "npm-naming": [ + true, + { + "errors": [ + [ + "NeedsExportEquals", + false + ] + ], + "mode": "code" + } + ], "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/blip-sdk/index.d.ts b/types/blip-sdk/index.d.ts index b33dcc86f3fd8eb..62c8abaac9960e6 100644 --- a/types/blip-sdk/index.d.ts +++ b/types/blip-sdk/index.d.ts @@ -86,5 +86,17 @@ export namespace BlipSdk.Extensions { setWordSet(wordSet: object): Promise; deleteWordSet(id: string): Promise; analyseWordSet(analysis: object): Promise; + + // Content Assistant + + analyseContent(analysis: object): Promise; + matchContent(combination: object): Promise; + getContents(skip?: number, take?: number, ascending?: boolean, intents?: string[], entities?: string[], text?: string, beginDate?: string, endDate?: string): Promise; + getContent(id: string): Promise; + setContent(content: object): Promise; + setContentResult(id: string, content: object): Promise; + setContentCombination(id: string, combination: object): Promise; + setContentCombinations(id: string, combinations: object[]): Promise; + deleteContent(id: string): Promise; } } diff --git a/types/blissfuljs/tslint.json b/types/blissfuljs/tslint.json index 3d59f55fdabcf45..eb264925c108bd9 100644 --- a/types/blissfuljs/tslint.json +++ b/types/blissfuljs/tslint.json @@ -8,73 +8,26 @@ "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, "object-literal-key-quotes": false, "object-literal-shorthand": false, "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/blob-stream/tsconfig.json b/types/blob-stream/tsconfig.json index 2ebe6cacb90ba6c..d6c9ee367f5bf55 100644 --- a/types/blob-stream/tsconfig.json +++ b/types/blob-stream/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "blob-stream-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/blob-stream/tslint.json b/types/blob-stream/tslint.json index 3d59f55fdabcf45..f368e573ef0df14 100644 --- a/types/blob-stream/tslint.json +++ b/types/blob-stream/tslint.json @@ -1,80 +1,15 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "prefer-method-signature": false } -} +} \ No newline at end of file diff --git a/types/blocks/tslint.json b/types/blocks/tslint.json index 3d59f55fdabcf45..fb15119698697fd 100644 --- a/types/blocks/tslint.json +++ b/types/blocks/tslint.json @@ -1,80 +1,29 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, "no-duplicate-variable": false, "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, "no-trailing-whitespace": false, - "object-literal-key-quotes": false, + "no-var-keyword": false, "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/blue-tape/tslint.json b/types/blue-tape/tslint.json index 3d59f55fdabcf45..d7fc19a9f1a787a 100644 --- a/types/blue-tape/tslint.json +++ b/types/blue-tape/tslint.json @@ -1,80 +1,14 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "space-within-parens": false } -} +} \ No newline at end of file diff --git a/types/bluebird-global/tslint.json b/types/bluebird-global/tslint.json index 20ba85abb7cfb25..fa46035d64010ef 100644 --- a/types/bluebird-global/tslint.json +++ b/types/bluebird-global/tslint.json @@ -1,13 +1,12 @@ { "extends": "dtslint/dt.json", "rules": { - "max-line-length": false, - "no-empty-interface": false, "array-type": false, - "unified-signatures": false, "ban-types": false, + "max-line-length": false, "no-redundant-undefined": false, "no-unnecessary-generics": false, - "npm-naming": false + "npm-naming": false, + "unified-signatures": false } } \ No newline at end of file diff --git a/types/bluebird-retry/tsconfig.json b/types/bluebird-retry/tsconfig.json index 5ae2b487db2ec5c..bec2b85692af618 100644 --- a/types/bluebird-retry/tsconfig.json +++ b/types/bluebird-retry/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "bluebird-retry-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bluebird/bluebird-tests.ts b/types/bluebird/bluebird-tests.ts index 77589f30bf9c680..0e37fdbeda192d2 100644 --- a/types/bluebird/bluebird-tests.ts +++ b/types/bluebird/bluebird-tests.ts @@ -1,4 +1,4 @@ -// Tests by: Bart van der Schoor , thislooksfun +// Tests by: Bart van der Schoor // Note: replicate changes to all overloads in both definition and test file // Note: keep both static and instance members inline (so similar) diff --git a/types/bluebird/index.d.ts b/types/bluebird/index.d.ts index 80fa032b350119f..f3da731e6ecd4bb 100644 --- a/types/bluebird/index.d.ts +++ b/types/bluebird/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for bluebird 3.5 // Project: https://github.com/petkaantonov/bluebird -// Definitions by: Leonard Hecker , thislooksfun +// Definitions by: Leonard Hecker // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.2 diff --git a/types/bluebird/tslint.json b/types/bluebird/tslint.json index 6bdbed508346dde..7e264ba4606bee6 100644 --- a/types/bluebird/tslint.json +++ b/types/bluebird/tslint.json @@ -4,4 +4,4 @@ "no-unnecessary-generics": false, "prefer-const": false } -} +} \ No newline at end of file diff --git a/types/bluebird/v1/tsconfig.json b/types/bluebird/v1/tsconfig.json index 3e22a6a885d2720..bcd9dc027a24af8 100644 --- a/types/bluebird/v1/tsconfig.json +++ b/types/bluebird/v1/tsconfig.json @@ -7,7 +7,7 @@ "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": false, - "strictFunctionTypes": false, + "strictFunctionTypes": true, "baseUrl": "../../", "typeRoots": [ "../../" @@ -25,4 +25,4 @@ "index.d.ts", "bluebird-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bluebird/v1/tslint.json b/types/bluebird/v1/tslint.json index a41bf5d19a37606..4092e819e7a4701 100644 --- a/types/bluebird/v1/tslint.json +++ b/types/bluebird/v1/tslint.json @@ -3,77 +3,28 @@ "rules": { "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/bluebird/v2/tsconfig.json b/types/bluebird/v2/tsconfig.json index 773747fb4a46a3d..5318908bd6e623e 100644 --- a/types/bluebird/v2/tsconfig.json +++ b/types/bluebird/v2/tsconfig.json @@ -7,7 +7,7 @@ "noImplicitAny": true, "noImplicitThis": false, "strictNullChecks": false, - "strictFunctionTypes": false, + "strictFunctionTypes": true, "baseUrl": "../../", "typeRoots": [ "../../" @@ -25,4 +25,4 @@ "index.d.ts", "bluebird-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bluebird/v2/tslint.json b/types/bluebird/v2/tslint.json index a41bf5d19a37606..d9db9947234b99e 100644 --- a/types/bluebird/v2/tslint.json +++ b/types/bluebird/v2/tslint.json @@ -3,77 +3,30 @@ "rules": { "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, "unified-signatures": false, "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/blueimp-md5/tsconfig.json b/types/blueimp-md5/tsconfig.json index 286b0abda2daa1c..73f3dd89d726f9f 100644 --- a/types/blueimp-md5/tsconfig.json +++ b/types/blueimp-md5/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "blueimp-md5-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/blueimp-md5/tslint.json b/types/blueimp-md5/tslint.json index 3d59f55fdabcf45..6637d44b0129cbe 100644 --- a/types/blueimp-md5/tslint.json +++ b/types/blueimp-md5/tslint.json @@ -1,80 +1,9 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "prefer-method-signature": false } -} +} \ No newline at end of file diff --git a/types/bn.js/tslint.json b/types/bn.js/tslint.json index c35e49511a2a477..9cac3c9f526e873 100644 --- a/types/bn.js/tslint.json +++ b/types/bn.js/tslint.json @@ -1,11 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "no-duplicate-imports": { - "severity": "error", - "options": { - "allow-namespace-imports": true - } - } + "no-duplicate-imports": false } -} +} \ No newline at end of file diff --git a/types/body-parser/body-parser-tests.ts b/types/body-parser/body-parser-tests.ts index 89d905ead02bd7d..e040dbb0dd1d791 100644 --- a/types/body-parser/body-parser-tests.ts +++ b/types/body-parser/body-parser-tests.ts @@ -1,11 +1,6 @@ import * as http from 'http'; import express = require('express'); -import { - json, - raw, - text, - urlencoded, -} from 'body-parser'; +import { json, raw, text, urlencoded } from 'body-parser'; const app = express(); @@ -14,22 +9,29 @@ app.use(raw()); app.use(text()); app.use(urlencoded()); -const jsonParser = app.use(json({ - inflate: true, - limit: '100kb', - type: 'application/*', - verify: ( - req: http.IncomingMessage, - res: http.ServerResponse, - buf: Buffer, - encoding: string - ) => { - return true; - } -})); +const jsonParser = app.use( + json({ + inflate: true, + limit: '100kb', + type: 'application/*', + verify: (req: http.IncomingMessage, res: http.ServerResponse, buf: Buffer, encoding: string) => { + return true; + }, + }), +); +app.post('/api/users', jsonParser, (req, res) => {}); app.use(jsonParser); -// send any data, it should be parsed and printed +const urlencodedParser = urlencoded({ extended: false }); +app.post('/login', urlencodedParser, (req, res) => { + res.send('welcome, ' + req.body.username); +}); +app.use(urlencodedParser); + +app.use(json({ type: 'application/*+json' })); +app.use(raw({ type: 'application/vnd.custom-type' })); +app.use(text({ type: 'text/html' })); + app.all('/', (req, res, next) => { console.log(req.body); res.json(req.body); diff --git a/types/body-parser/index.d.ts b/types/body-parser/index.d.ts index 62f8f5bd824777a..c3196bb911d3f75 100644 --- a/types/body-parser/index.d.ts +++ b/types/body-parser/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for body-parser 1.17 +// Type definitions for body-parser 1.19 // Project: https://github.com/expressjs/body-parser // Definitions by: Santi Albo // Vilic Vane @@ -6,47 +6,98 @@ // Gevik Babakhani // Tomasz Łaziuk // Jason Walton +// Piotr Błażejewicz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 /// import { NextHandleFunction } from 'connect'; import * as http from 'http'; -// for docs go to https://github.com/expressjs/body-parser/tree/1.16.0#body-parser +// for docs go to https://github.com/expressjs/body-parser/tree/1.19.0#body-parser -// @deprecated -declare function bodyParser(options?: bodyParser.OptionsJson & bodyParser.OptionsText & bodyParser.OptionsUrlencoded): NextHandleFunction; +/** @deprecated */ +declare function bodyParser( + options?: bodyParser.OptionsJson & bodyParser.OptionsText & bodyParser.OptionsUrlencoded, +): NextHandleFunction; declare namespace bodyParser { interface Options { + /** When set to true, then deflated (compressed) bodies will be inflated; when false, deflated bodies are rejected. Defaults to true. */ inflate?: boolean; + /** + * Controls the maximum request body size. If this is a number, + * then the value specifies the number of bytes; if it is a string, + * the value is passed to the bytes library for parsing. Defaults to '100kb'. + */ limit?: number | string; + /** + * The type option is used to determine what media type the middleware will parse + */ type?: string | string[] | ((req: http.IncomingMessage) => any); + /** + * The verify option, if supplied, is called as verify(req, res, buf, encoding), + * where buf is a Buffer of the raw request body and encoding is the encoding of the request. + */ verify?(req: http.IncomingMessage, res: http.ServerResponse, buf: Buffer, encoding: string): void; } interface OptionsJson extends Options { + /** + * + * The reviver option is passed directly to JSON.parse as the second argument. + */ reviver?(key: string, value: any): any; + /** + * When set to `true`, will only accept arrays and objects; + * when `false` will accept anything JSON.parse accepts. Defaults to `true`. + */ strict?: boolean; } interface OptionsText extends Options { + /** + * Specify the default character set for the text content if the charset + * is not specified in the Content-Type header of the request. + * Defaults to `utf-8`. + */ defaultCharset?: string; } interface OptionsUrlencoded extends Options { + /** + * The extended option allows to choose between parsing the URL-encoded data + * with the querystring library (when `false`) or the qs library (when `true`). + */ extended?: boolean; + /** + * The parameterLimit option controls the maximum number of parameters + * that are allowed in the URL-encoded data. If a request contains more parameters than this value, + * a 413 will be returned to the client. Defaults to 1000. + */ parameterLimit?: number; } + /** + * Returns middleware that only parses json and only looks at requests + * where the Content-Type header matches the type option. + */ function json(options?: OptionsJson): NextHandleFunction; - + /** + * Returns middleware that parses all bodies as a Buffer and only looks at requests + * where the Content-Type header matches the type option. + */ function raw(options?: Options): NextHandleFunction; + /** + * Returns middleware that parses all bodies as a string and only looks at requests + * where the Content-Type header matches the type option. + */ function text(options?: OptionsText): NextHandleFunction; - + /** + * Returns middleware that only parses urlencoded bodies and only looks at requests + * where the Content-Type header matches the type option + */ function urlencoded(options?: OptionsUrlencoded): NextHandleFunction; } diff --git a/types/body-parser/tsconfig.json b/types/body-parser/tsconfig.json index 9c0314a5577dc25..00bc9ee8dddd16e 100644 --- a/types/body-parser/tsconfig.json +++ b/types/body-parser/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "body-parser-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/body-parser/tslint.json b/types/body-parser/tslint.json index d0f71205ded6bbc..3db14f85eaf7b98 100644 --- a/types/body-parser/tslint.json +++ b/types/body-parser/tslint.json @@ -1,6 +1 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "max-line-length": false - } -} +{ "extends": "dtslint/dt.json" } diff --git a/types/bonjour/index.d.ts b/types/bonjour/index.d.ts index 61b97e4ee846632..471ff059eb44745 100644 --- a/types/bonjour/index.d.ts +++ b/types/bonjour/index.d.ts @@ -30,7 +30,7 @@ declare namespace bonjour { on(event: 'up' | 'down', listener: (service: Service) => void): this; once(event: 'up' | 'down', listener: (service: Service) => void): this; removeListener(event: 'up' | 'down', listener: (service: Service) => void): this; - removeAllListeners(event: 'up' | 'down'): this; + removeAllListeners(event?: 'up' | 'down'): this; } interface BrowserOptions { type?: string; @@ -47,6 +47,7 @@ declare namespace bonjour { subtypes?: string[]; protocol?: 'udp'|'tcp'; txt?: Object; + probe?: boolean; } interface Service extends NodeJS.EventEmitter { @@ -64,6 +65,7 @@ declare namespace bonjour { start(): void; } interface BonjourOptions { + type?: 'udp4' | 'udp6'; multicast?: boolean; interface?: string; port?: number; diff --git a/types/bonjour/tslint.json b/types/bonjour/tslint.json index a62d0d4e68d5582..b607c302551f83a 100644 --- a/types/bonjour/tslint.json +++ b/types/bonjour/tslint.json @@ -3,4 +3,4 @@ "rules": { "ban-types": false } -} +} \ No newline at end of file diff --git a/types/bookshelf/tslint.json b/types/bookshelf/tslint.json index 6c7fd03ccda21f4..003e1ac2ca12caf 100644 --- a/types/bookshelf/tslint.json +++ b/types/bookshelf/tslint.json @@ -1,81 +1,29 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, "new-parens": false, "no-angle-bracket-type-assertion": false, "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, "no-duplicate-variable": false, "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, "no-unnecessary-class": false, "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/boolify-string/tsconfig.json b/types/boolify-string/tsconfig.json index fcc1b150387e66c..5afedf6c20f7508 100644 --- a/types/boolify-string/tsconfig.json +++ b/types/boolify-string/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "boolify-string-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/boolify-string/tslint.json b/types/boolify-string/tslint.json index 3d59f55fdabcf45..9e408db7089ec61 100644 --- a/types/boolify-string/tslint.json +++ b/types/boolify-string/tslint.json @@ -1,80 +1,11 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/boom/v3/tsconfig.json b/types/boom/v3/tsconfig.json index 1f8b8e7f4a72821..1d322f63a9dcc48 100644 --- a/types/boom/v3/tsconfig.json +++ b/types/boom/v3/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../../", "typeRoots": [ @@ -25,4 +25,4 @@ "index.d.ts", "boom-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/boom/v3/tslint.json b/types/boom/v3/tslint.json index a41bf5d19a37606..0fc4a040d407b78 100644 --- a/types/boom/v3/tslint.json +++ b/types/boom/v3/tslint.json @@ -1,79 +1,13 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "eofline": false, "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/boom/v4/tslint.json b/types/boom/v4/tslint.json index a41bf5d19a37606..85d1bda7a1b8e5c 100644 --- a/types/boom/v4/tslint.json +++ b/types/boom/v4/tslint.json @@ -1,79 +1,15 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "eofline": false, "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/bootbox/tsconfig.json b/types/bootbox/tsconfig.json index 75da35b2bc8c21f..4b89e67b2b7bf63 100644 --- a/types/bootbox/tsconfig.json +++ b/types/bootbox/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "bootbox-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bootbox/tslint.json b/types/bootbox/tslint.json index 3d59f55fdabcf45..b97b46ba17a3d86 100644 --- a/types/bootbox/tslint.json +++ b/types/bootbox/tslint.json @@ -1,80 +1,22 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, "object-literal-key-quotes": false, "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "typedef-whitespace": false } -} +} \ No newline at end of file diff --git a/types/bootpag/tsconfig.json b/types/bootpag/tsconfig.json index 69b09cc3a65997c..438c683e394a69d 100644 --- a/types/bootpag/tsconfig.json +++ b/types/bootpag/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "bootpag-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bootpag/tslint.json b/types/bootpag/tslint.json index 3d59f55fdabcf45..e577baa2920ecea 100644 --- a/types/bootpag/tslint.json +++ b/types/bootpag/tslint.json @@ -1,80 +1,12 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "strict-export-declare-modifiers": false } -} +} \ No newline at end of file diff --git a/types/bootstrap-colorpicker/tslint.json b/types/bootstrap-colorpicker/tslint.json index 8be13c269576936..95b398882a06d59 100644 --- a/types/bootstrap-colorpicker/tslint.json +++ b/types/bootstrap-colorpicker/tslint.json @@ -1,9 +1,9 @@ -{ +{ "extends": "dtslint/dt.json", "rules": { - "no-consecutive-blank-lines": false, "eofline": false, - "unified-signatures": false, - "no-trailing-whitespace": [true, "ignore-comments"] + "no-consecutive-blank-lines": false, + "no-trailing-whitespace": false, + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/bootstrap-datepicker/bootstrap-datepicker-tests.ts b/types/bootstrap-datepicker/bootstrap-datepicker-tests.ts index 372967ec21d21e5..387f4e7d6406050 100644 --- a/types/bootstrap-datepicker/bootstrap-datepicker-tests.ts +++ b/types/bootstrap-datepicker/bootstrap-datepicker-tests.ts @@ -77,3 +77,28 @@ $(function () { $('#dp5').datepicker('hide'); }); }); + +$("#dp6").datepicker({ + startView: "days", + daysOfWeekDisabled: "12345" +}) +$("#dp6").datepicker({ + startView: "months", + daysOfWeekDisabled: [1, 2, 3, 4, 5] +}) +$("#dp6").datepicker({ + startView: "years", + daysOfWeekDisabled: "12345" +}) +$("#dp6").datepicker({ + startView: "decades", + daysOfWeekDisabled: "12345" +}) +$("#dp6").datepicker({ + startView: "centuries", + daysOfWeekDisabled: "12345" +}) +$("#dp6").datepicker({ + startView: "millenium", + daysOfWeekDisabled: "12345" +}) diff --git a/types/bootstrap-datepicker/index.d.ts b/types/bootstrap-datepicker/index.d.ts index b841fe07ab64bd1..6ec594606518c2d 100644 --- a/types/bootstrap-datepicker/index.d.ts +++ b/types/bootstrap-datepicker/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for bootstrap-datepicker // Project: https://github.com/eternicode/bootstrap-datepicker // Definitions by: Boris Yankov +// Jannik Keye // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -35,43 +36,45 @@ type DatepickerOrientations = * https://bootstrap-datepicker.readthedocs.io/en/latest/options.html */ interface DatepickerOptions { - format?: string | DatepickerCustomFormatOptions; - weekStart?: number; - startDate?: Date|string; - endDate?: Date|string; autoclose?: boolean; - startView?: number; - todayBtn?: boolean|"linked"; - todayHighlight?: boolean; - keyboardNavigation?: boolean; - language?: string; - beforeShowDay?: (date: Date) => undefined|string|boolean|DatepickerBeforeShowDayResponse; - beforeShowYear?: (date: Date) => undefined|string|boolean|DatepickerBeforeShowResponse; - beforeShowDecade?: (date: Date) => undefined|string|boolean|DatepickerBeforeShowResponse; - beforeShowCentury?: (date: Date) => undefined|string|boolean|DatepickerBeforeShowResponse; + assumeNearbyYear?: boolean | number; + beforeShowDay?: (date: Date) => undefined | string | boolean | DatepickerBeforeShowDayResponse; + beforeShowMonth?: (date: Date) => undefined | string | boolean | DatepickerBeforeShowResponse; + beforeShowYear?: (date: Date) => undefined | string | boolean | DatepickerBeforeShowResponse; + beforeShowDecade?: (date: Date) => undefined | string | boolean | DatepickerBeforeShowResponse; + beforeShowCentury?: (date: Date) => undefined | string | boolean | DatepickerBeforeShowResponse; calendarWeeks?: boolean; clearBtn?: boolean; - daysOfWeekDisabled?: number[]; + container?: string; + datesDisabled?: string | string[]; + daysOfWeekDisabled?: string | number[]; + daysOfWeekHighlighted?: string | number[]; + defaultViewDate?: Date | string | DatepickerViewDate; + enableOnReadonly?: boolean; + endDate?: Date | string; forceParse?: boolean; + format?: string | DatepickerCustomFormatOptions; + immediateUpdates?: boolean; inputs?: any[]; - minViewMode?: DatepickerViewModes; + keepEmptyValues?: boolean; + keyboardNavigation?: boolean; + language?: string; maxViewMode?: DatepickerViewModes; - multidate?: boolean|number; + minViewMode?: DatepickerViewModes; + multidate?: boolean | number; multidateSeparator?: string; orientation?: DatepickerOrientations; - assumeNearbyYear?: boolean|number; - viewMode?: string; - templates?: any; - zIndexOffset?: number; showOnFocus?: boolean; - immediateUpdates?: boolean; + startDate?: Date | string; + startView?: DatepickerViewModes; + templates?: any; + showWeekDays?: boolean; title?: string; - container?: string; - datesDisabled?:string|string[]; - daysOfWeekHighlighted?:string|number[]; - defaultViewDate?:Date|string|DatepickerViewDate; - updateViewDate?:boolean; - enableOnReadonly?: boolean; + todayBtn?: boolean | "linked"; + todayHighlight?: boolean; + updateViewDate?: boolean; + weekStart?: number; + zIndexOffset?: number; } interface DatepickerViewDate { diff --git a/types/bootstrap-datepicker/tsconfig.json b/types/bootstrap-datepicker/tsconfig.json index 6770944b4254fbe..0fae11394bd38c7 100644 --- a/types/bootstrap-datepicker/tsconfig.json +++ b/types/bootstrap-datepicker/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "bootstrap-datepicker-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bootstrap-datepicker/tslint.json b/types/bootstrap-datepicker/tslint.json index 3d59f55fdabcf45..c6d9523a043d5cf 100644 --- a/types/bootstrap-datepicker/tslint.json +++ b/types/bootstrap-datepicker/tslint.json @@ -1,80 +1,18 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/bootstrap-fileinput/tsconfig.json b/types/bootstrap-fileinput/tsconfig.json index fa1c069762584a2..71e6b79545f5b8d 100644 --- a/types/bootstrap-fileinput/tsconfig.json +++ b/types/bootstrap-fileinput/tsconfig.json @@ -5,9 +5,9 @@ "es6", "dom" ], - "noImplicitAny": false, + "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "files": [ "index.d.ts" ] -} \ No newline at end of file +} diff --git a/types/bootstrap-fileinput/tslint.json b/types/bootstrap-fileinput/tslint.json index 3d59f55fdabcf45..696b1dc99d41d30 100644 --- a/types/bootstrap-fileinput/tslint.json +++ b/types/bootstrap-fileinput/tslint.json @@ -1,80 +1,16 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "semicolon": false } -} +} \ No newline at end of file diff --git a/types/bootstrap-maxlength/tsconfig.json b/types/bootstrap-maxlength/tsconfig.json index 403883963cc736a..ba4c754fd6710e2 100644 --- a/types/bootstrap-maxlength/tsconfig.json +++ b/types/bootstrap-maxlength/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": false, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "bootstrap-maxlength-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bootstrap-maxlength/tslint.json b/types/bootstrap-maxlength/tslint.json index 3d59f55fdabcf45..b9f2f8aad99c501 100644 --- a/types/bootstrap-maxlength/tslint.json +++ b/types/bootstrap-maxlength/tslint.json @@ -1,80 +1,22 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, + "npm-naming": false, "object-literal-shorthand": false, "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/bootstrap-notify/tslint.json b/types/bootstrap-notify/tslint.json index 3d59f55fdabcf45..308b206048d4f36 100644 --- a/types/bootstrap-notify/tslint.json +++ b/types/bootstrap-notify/tslint.json @@ -1,80 +1,14 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/bootstrap-select/tslint.json b/types/bootstrap-select/tslint.json index 3d59f55fdabcf45..d15d9f8554e5720 100644 --- a/types/bootstrap-select/tslint.json +++ b/types/bootstrap-select/tslint.json @@ -1,80 +1,14 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/bootstrap-switch/tsconfig.json b/types/bootstrap-switch/tsconfig.json index 794d73cac9df743..16e1a9c6b698937 100644 --- a/types/bootstrap-switch/tsconfig.json +++ b/types/bootstrap-switch/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "bootstrap-switch-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bootstrap-switch/tslint.json b/types/bootstrap-switch/tslint.json index 3d59f55fdabcf45..748308b338c1b98 100644 --- a/types/bootstrap-switch/tslint.json +++ b/types/bootstrap-switch/tslint.json @@ -1,80 +1,15 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/bootstrap-touchspin/tsconfig.json b/types/bootstrap-touchspin/tsconfig.json index 1ce86dec76abbec..9d28ee47a0e6bf8 100644 --- a/types/bootstrap-touchspin/tsconfig.json +++ b/types/bootstrap-touchspin/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "bootstrap-touchspin-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bootstrap-touchspin/tslint.json b/types/bootstrap-touchspin/tslint.json index 3d59f55fdabcf45..61136ee1ae9b4ca 100644 --- a/types/bootstrap-touchspin/tslint.json +++ b/types/bootstrap-touchspin/tslint.json @@ -1,80 +1,13 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/bootstrap.paginator/tsconfig.json b/types/bootstrap.paginator/tsconfig.json index 82e62843769c48e..71e6b79545f5b8d 100644 --- a/types/bootstrap.paginator/tsconfig.json +++ b/types/bootstrap.paginator/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "files": [ "index.d.ts" ] -} \ No newline at end of file +} diff --git a/types/bootstrap.paginator/tslint.json b/types/bootstrap.paginator/tslint.json index 3d59f55fdabcf45..6de942b2e210847 100644 --- a/types/bootstrap.paginator/tslint.json +++ b/types/bootstrap.paginator/tslint.json @@ -1,80 +1,10 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "npm-naming": false, + "prefer-method-signature": false } -} +} \ No newline at end of file diff --git a/types/bootstrap.timepicker/tsconfig.json b/types/bootstrap.timepicker/tsconfig.json index 82e62843769c48e..71e6b79545f5b8d 100644 --- a/types/bootstrap.timepicker/tsconfig.json +++ b/types/bootstrap.timepicker/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "files": [ "index.d.ts" ] -} \ No newline at end of file +} diff --git a/types/bootstrap.timepicker/tslint.json b/types/bootstrap.timepicker/tslint.json index 3d59f55fdabcf45..9a52c5de4d317d4 100644 --- a/types/bootstrap.timepicker/tslint.json +++ b/types/bootstrap.timepicker/tslint.json @@ -1,80 +1,11 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, + "npm-naming": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/bootstrap.v3.datetimepicker/tslint.json b/types/bootstrap.v3.datetimepicker/tslint.json index 5b3c4f7877021ce..ff291fe181c6b6d 100644 --- a/types/bootstrap.v3.datetimepicker/tslint.json +++ b/types/bootstrap.v3.datetimepicker/tslint.json @@ -1,7 +1,12 @@ { "extends": "dtslint/dt.json", "rules": { - "no-any-union": false, // TODO - "quotemark": [true, "double", "avoid-escape"] + "no-any-union": false, + "no-outside-dependencies": false, + "quotemark": [ + true, + "double", + "avoid-escape" + ] } -} +} \ No newline at end of file diff --git a/types/bootstrap.v3.datetimepicker/v3/tslint.json b/types/bootstrap.v3.datetimepicker/v3/tslint.json index a41bf5d19a37606..c2166f56bfa595c 100644 --- a/types/bootstrap.v3.datetimepicker/v3/tslint.json +++ b/types/bootstrap.v3.datetimepicker/v3/tslint.json @@ -3,77 +3,10 @@ "rules": { "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, + "no-outside-dependencies": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/bounce.js/tsconfig.json b/types/bounce.js/tsconfig.json index a0f704872996b82..b03b6aa245628ae 100644 --- a/types/bounce.js/tsconfig.json +++ b/types/bounce.js/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "bounce.js-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bounce.js/tslint.json b/types/bounce.js/tslint.json index 3d59f55fdabcf45..44191e4b7b21cbe 100644 --- a/types/bounce.js/tslint.json +++ b/types/bounce.js/tslint.json @@ -1,80 +1,23 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, + "npm-naming": [ + true, + { + "mode": "name-only" + } + ], "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/box-intersect/box-intersect-tests.ts b/types/box-intersect/box-intersect-tests.ts new file mode 100644 index 000000000000000..10bdbd79a800886 --- /dev/null +++ b/types/box-intersect/box-intersect-tests.ts @@ -0,0 +1,36 @@ +import boxIntersect from 'box-intersect'; + +type Box2D = [number, number, number, number]; +type Box3D = [number, number, number, number, number, number]; + +const red2d: Box2D[] = [ + [1, 1, 2, 2], + [0, -1, 3, 2], +]; + +const blue2d: Box2D[] = [ + [2, 1, 4, 5], + [0.5, 3, 1, 10], +]; + +boxIntersect(red2d); +boxIntersect(red2d, (r, b) => {}); +boxIntersect(red2d, blue2d); +boxIntersect(red2d, blue2d, (r, b) => {}); + +const red3d: Box3D[] = [ + [0, 0, 0, 8, 1, 1], + [0, 0, 0, 1, 8, 1], + [0, 0, 0, 1, 1, 8], +]; + +const blue3d: Box3D[] = [ + [5, 0, 0, 6, 10, 10], + [0, 5, 0, 10, 6, 10], + [0, 0, 5, 10, 10, 10], +]; + +boxIntersect(red3d); +boxIntersect(red3d, (r, b) => {}); +boxIntersect(red3d, blue3d); +boxIntersect(red3d, blue3d, (r, b) => {}); diff --git a/types/box-intersect/index.d.ts b/types/box-intersect/index.d.ts new file mode 100644 index 000000000000000..1bcfe2b40891f37 --- /dev/null +++ b/types/box-intersect/index.d.ts @@ -0,0 +1,17 @@ +// Type definitions for box-intersect 1.0 +// Project: https://github.com/mikolalysenko/box-intersect +// Definitions by: Sankaku +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = boxIntersect; + +declare function boxIntersect( + x: ReadonlyArray>, + visit?: (i: number, j: number) => void, +): Array<[number, number]>; + +declare function boxIntersect( + red: ReadonlyArray, + blue?: ReadonlyArray, + visit?: (i: number, j: number) => void, +): Array<[number, number]>; diff --git a/types/box-intersect/tsconfig.json b/types/box-intersect/tsconfig.json new file mode 100644 index 000000000000000..bd2bf0b5188c37f --- /dev/null +++ b/types/box-intersect/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true + }, + "files": [ + "index.d.ts", + "box-intersect-tests.ts" + ] +} diff --git a/types/box-intersect/tslint.json b/types/box-intersect/tslint.json new file mode 100644 index 000000000000000..f93cf8562ad24db --- /dev/null +++ b/types/box-intersect/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} diff --git a/types/box2d/tslint.json b/types/box2d/tslint.json index 3d59f55fdabcf45..9beab893554c9a9 100644 --- a/types/box2d/tslint.json +++ b/types/box2d/tslint.json @@ -1,80 +1,25 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, "max-line-length": false, "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/brainhubeu__react-carousel/index.d.ts b/types/brainhubeu__react-carousel/index.d.ts index dc4aca10771eb78..747f0a758da0f56 100644 --- a/types/brainhubeu__react-carousel/index.d.ts +++ b/types/brainhubeu__react-carousel/index.d.ts @@ -21,7 +21,7 @@ export class Dots extends React.Component { export interface CarouselProps { value?: number; onChange?(value: number): void; - slides?: ImgProps[]; + slides?: JSX.Element[]; slidesPerPage?: number; slidesPerScroll?: number; itemWidth?: number; diff --git a/types/braintree-web/tslint.json b/types/braintree-web/tslint.json index 3d59f55fdabcf45..181c9a1e649da5a 100644 --- a/types/braintree-web/tslint.json +++ b/types/braintree-web/tslint.json @@ -1,80 +1,30 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, "object-literal-key-quotes": false, "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/braintree/braintree-tests.ts b/types/braintree/braintree-tests.ts index 2de2377a94fdae6..6c25834e57b1ccd 100644 --- a/types/braintree/braintree-tests.ts +++ b/types/braintree/braintree-tests.ts @@ -14,9 +14,8 @@ import { PaymentMethod, PaymentMethodNonce, Transaction, - SampleNotification, - WebhookNotification, WebhookNotificationKind, + MerchantAccountCreateRequest } from 'braintree'; /** @@ -106,8 +105,82 @@ const gateway: BraintreeGateway = new braintree.BraintreeGateway({ const sampleResponse = await gateway.webhookTesting.sampleNotification(kind, subscriptionId).catch(console.error); if (!sampleResponse) return; - const notificationResponse = await gateway.webhookNotification.parse(sampleResponse.bt_signature, sampleResponse.bt_payload).catch(console.error); - if (!notificationResponse) return; + const notification = await gateway.webhookNotification.parse(sampleResponse.bt_signature, sampleResponse.bt_payload).catch(console.error); + if (!notification) return; - const notification: WebhookNotification = notificationResponse; + // this should cause the type of `notification` to be narrowed to `SubscriptionNotification` + if (notification.kind !== kind) return; + + const subscription = notification.subscription; +})(); + +(async () => { + const kind: WebhookNotificationKind = 'payment_method_revoked_by_customer'; + const subscriptionId = '123456'; + + const sampleResponse = await gateway.webhookTesting.sampleNotification(kind, subscriptionId).catch(console.error); + if (!sampleResponse) return; + + const notification = await gateway.webhookNotification.parse(sampleResponse.bt_signature, sampleResponse.bt_payload).catch(console.error); + if (!notification) return; + + // this should cause the type of `notification` to be narrowed to `PaymentMethodNotification` + if (notification.kind !== kind) return; + + const metadata = notification.revokedPaymentMethodMetadata; + if (!metadata.revokedPaymentMethod) return; +})(); + +(async () => { + const kind: WebhookNotificationKind = 'account_updater_daily_report'; + const subscriptionId = '123456'; + + const sampleResponse = await gateway.webhookTesting.sampleNotification(kind, subscriptionId).catch(console.error); + if (!sampleResponse) return; + + const notification = await gateway.webhookNotification.parse(sampleResponse.bt_signature, sampleResponse.bt_payload).catch(console.error); + if (!notification) return; + + // this should cause the type of `notification` to be narrowed to `AccountUpdaterNotification` + if (notification.kind !== kind) return; + + const reportUrl = notification.accountUpdaterDailyReport.reportUrl; + if (!reportUrl) return; +})(); + +/** + * Gateway function helper + */ +const gateway2: BraintreeGateway = braintree.connect({ + environment: braintree.Environment.Sandbox, + merchantId: 'abc123', + publicKey: 'def456', + privateKey: 'xyz789', +}); + +(async () => { + const merchantAccount: MerchantAccountCreateRequest = { + individual: { + address: { + locality: 'New York', + postalCode: '10001', + region: 'New York', + streetAddress: '222 Oak Street' + }, + dateOfBirth: '20200214', + email: 'merchant@example.com', + firstName: 'Jane', + lastName: 'Doe' + }, + funding: { + destination: 'Bank', + accountNumber: '123456789', + routingNumber: '021000021' + }, + masterMerchantAccountId: 'master_merchant', + tosAccepted: true + }; + const response = await gateway2.merchantAccount.create(merchantAccount); + if (!response) return; + const id = response.merchantAccount.masterMerchantAccount?.id; })(); diff --git a/types/braintree/index.d.ts b/types/braintree/index.d.ts index 750396f8e39d26b..9c63615dd6f9fd3 100644 --- a/types/braintree/index.d.ts +++ b/types/braintree/index.d.ts @@ -1,10 +1,11 @@ -// Type definitions for braintree 2.20 +// Type definitions for braintree 2.22 // Project: https://github.com/braintree/braintree_node // Definitions by: Sam Rubin , // Mohamed Elsharnouby , // Aaron Rose +// Sanders DeNardi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 3.6 +// TypeScript Version: 3.7 /// @@ -42,7 +43,7 @@ declare namespace braintree { customer: CustomerGateway; discount: DiscountGateway; dispute: DisputeGateway; - merchantAccountGateway: MerchantAccountGateway; + merchantAccount: MerchantAccountGateway; paymentMethod: PaymentMethodGateway; paymentMethodNonce: PaymentMethodNonceGateway; plan: PlanGateway; @@ -55,6 +56,8 @@ declare namespace braintree { webhookTesting: WebhookTestingGateway; } + export function connect(config: GatewayConfig): BraintreeGateway; + interface ValidatedResponse { success: boolean; errors: ValidationErrorsCollection; @@ -634,37 +637,41 @@ declare namespace braintree { */ export class MerchantAccount { - business?: MerchantBusiness; + business?: MerchantBusinessResponse; currencyIsoCode: string; default: boolean; funding: MerchantFunding; id: string; - individual: MerchantIndividual; + individual: MerchantIndividualResponse; masterMerchantAccount?: MerchantAccount; status: MerchantAccountStatus; } export interface MerchantAccountCreateRequest { - business?: MerchantBusiness; + business?: MerchantBusinessRequest; funding: MerchantFunding; - id: string; - individual: MerchantIndividual; + id?: string; + individual: MerchantIndividualRequest; masterMerchantAccountId: string; - status: MerchantAccountStatus; tosAccepted: boolean; } export interface MerchantAccountUpdateRequest { - business?: MerchantBusiness; + business?: MerchantBusinessRequest; funding: MerchantFunding; id: string; - individual: MerchantIndividual; + individual: MerchantIndividualRequest; masterMerchantAccountId: string; - status: MerchantAccountStatus; } - export interface MerchantBusiness { + export interface MerchantBusinessRequest { address?: MerchantAddressDetails; + dbaName?: string; + legalName?: string; + taxId?: string; + } + + export interface MerchantBusinessResponse { addressDetails?: MerchantAddressDetails; dbaName?: string; legalName?: string; @@ -688,7 +695,18 @@ declare namespace braintree { routingNumber?: string; } - export interface MerchantIndividual { + export interface MerchantIndividualRequest { + address: MerchantAddressDetails; + dateOfBirth: string; + email: string; + firstName: string; + lastName: string; + phone?: string; + ssn?: string; + ssnLast4?: string; + } + + export interface MerchantIndividualResponse { addressDetails: MerchantAddressDetails; dateOfBirth: string; email: string; @@ -827,55 +845,128 @@ declare namespace braintree { | 'VisaCheckoutCard' | 'SamsungPayCard'; + /** + * Account Updater + */ + export class AccountUpdaterDailyReport { + reportDate: Date; + reportUrl: string; + } + /** * Webhooks */ - export class SampleNotification { + export interface SampleNotification { bt_signature: string; bt_payload: string; } - export class WebhookNotification { + export interface BaseWebhookNotification { kind: WebhookNotificationKind; timestamp: Date; - subscription?: Subscription; - merchantAccount?: MerchantAccount; - transaction?: Transaction; - dispute?: Dispute; } + export interface TransactionNotification extends BaseWebhookNotification { + kind: TransactionNotificationKind; + transaction: Transaction; + } + + export interface SubMerchantAccountApprovedNotification extends BaseWebhookNotification { + kind: SubMerchantAccountApprovedNotificationKind; + merchantAccount: MerchantAccount; + } + + export interface SubMerchantAccountDeclinedNotification extends BaseWebhookNotification { + kind: SubMerchantAccountDeclinedNotificationKind; + merchantAccount: MerchantAccount; + } + + export interface SubscriptionNotification extends BaseWebhookNotification { + kind: SubscriptionNotificationKind; + subscription: Subscription; + } + + export interface DisputeNotification extends BaseWebhookNotification { + kind: DisputeNotificationKind; + dispute: Dispute; + } + + export interface AccountUpdaterNotification extends BaseWebhookNotification { + kind: AccountUpdaterNotificationKind; + accountUpdaterDailyReport: AccountUpdaterDailyReport; + } + + export interface PaymentMethodNotification extends BaseWebhookNotification { + kind: PaymentMethodNotificationKind; + revokedPaymentMethodMetadata: { + token: string; + customerId: string; + revokedPaymentMethod: PaymentMethod; + }; + } + + export type WebhookNotification = + | TransactionNotification + | SubMerchantAccountApprovedNotification + | SubMerchantAccountDeclinedNotification + | SubscriptionNotification + | DisputeNotification + | AccountUpdaterNotification + | PaymentMethodNotification; + + export type AccountUpdaterNotificationKind = + | 'account_updater_daily_report'; + + export type DisputeNotificationKind = + | 'dispute_opened' + | 'dispute_lost' + | 'dispute_won'; + + export type SubscriptionNotificationKind = + | 'subscription_canceled' + | 'subscription_charged_successfully' + | 'subscription_charged_unsuccessfully' + | 'subscription_expired' + | 'subscription_trial_ended' + | 'subscription_went_active' + | 'subscription_went_past_due'; + + export type SubMerchantAccountApprovedNotificationKind = + | 'sub_merchant_account_approved'; + + export type SubMerchantAccountDeclinedNotificationKind = + | 'sub_merchant_account_declined'; + + export type TransactionNotificationKind = + | 'transaction_disbursed' + | 'transaction_settled' + | 'transaction_settlement_declined'; + + export type PaymentMethodNotificationKind = + | 'payment_method_revoked_by_customer'; + export type WebhookNotificationKind = - | 'account_updater_daily_report' + | AccountUpdaterNotificationKind + | DisputeNotificationKind + | SubscriptionNotificationKind + | SubMerchantAccountApprovedNotificationKind + | SubMerchantAccountDeclinedNotificationKind + | TransactionNotificationKind + | PaymentMethodNotificationKind | 'check' | 'connected_merchant_paypal_status_changed' | 'connected_merchant_status_transitioned' | 'disbursement' | 'disbursement_exception' - | 'dispute_opened' - | 'dispute_lost' - | 'dispute_won' | 'grantor_updated_granted_payment_method' | 'granted_payment_method_revoked' | 'local_payment_completed' | 'partner_merchant_connected' | 'partner_merchant_disconnected' | 'partner_merchant_declined' - | 'payment_method_revoked_by_customer' | 'oauth_access_revoked' - | 'recipient_updated_granted_payment_method' - | 'subscription_canceled' - | 'subscription_charged_successfully' - | 'subscription_charged_unsuccessfully' - | 'subscription_expired' - | 'subscription_trial_ended' - | 'subscription_went_active' - | 'subscription_went_past_due' - | 'sub_merchant_account_approved' - | 'sub_merchant_account_declined' - | 'transaction_disbursed' - | 'transaction_settled' - | 'transaction_settlement_declined'; + | 'recipient_updated_granted_payment_method'; /** * Plan @@ -958,8 +1049,8 @@ declare namespace braintree { update?: DiscountUpdateRequest[]; }; firstBillingDate?: Date; - id: string; - merchantAccountId: string; + id?: string; + merchantAccountId?: string; neverExpires?: boolean; numberOfBillingCycles?: number; options?: { diff --git a/types/braintree/tslint.json b/types/braintree/tslint.json index 3ebf34ad6604a69..3194be35d03dd80 100644 --- a/types/braintree/tslint.json +++ b/types/braintree/tslint.json @@ -5,4 +5,4 @@ "no-empty-interface": false, "strict-export-declare-modifiers": false } -} +} \ No newline at end of file diff --git a/types/breeze/tslint.json b/types/breeze/tslint.json index 3d59f55fdabcf45..06f81a14d1311f7 100644 --- a/types/breeze/tslint.json +++ b/types/breeze/tslint.json @@ -1,71 +1,34 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, "no-duplicate-variable": false, "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, + "no-trailing-whitespace": false, "no-unnecessary-class": false, "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, + "npm-naming": false, "object-literal-shorthand": false, "one-line": false, "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, "space-within-parens": false, @@ -74,7 +37,6 @@ "triple-equals": false, "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/bresenham/bresenham-tests.ts b/types/bresenham/bresenham-tests.ts new file mode 100644 index 000000000000000..d59e8cca366e901 --- /dev/null +++ b/types/bresenham/bresenham-tests.ts @@ -0,0 +1,12 @@ +import bresenham = require('bresenham'); +import generatorFn = require('bresenham/generator'); + +// $ExpectType Point[] +bresenham(0, 0, 10, 12); + +// $ExpectType void +bresenham(0, 0, 10, 12, (x: number, y: number) => { +}); + +// $ExpectType Generator +generatorFn(0, 0, 10, 12); diff --git a/types/bresenham/generator.d.ts b/types/bresenham/generator.d.ts new file mode 100644 index 000000000000000..a83f3f701389589 --- /dev/null +++ b/types/bresenham/generator.d.ts @@ -0,0 +1,11 @@ +interface Point { + x: number; + y: number; +} + +declare function generator( + x0: number, y0: number, + x1: number, y1: number +): Generator; + +export = generator; diff --git a/types/bresenham/index.d.ts b/types/bresenham/index.d.ts new file mode 100644 index 000000000000000..da995b1618d5035 --- /dev/null +++ b/types/bresenham/index.d.ts @@ -0,0 +1,22 @@ +// Type definitions for bresenham 0.0 +// Project: https://github.com/madbence/node-bresenham +// Definitions by: Richard +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// Minimum TypeScript Version: 3.6 + +interface Point { + x: number; + y: number; +} + +declare function bresenham( + x0: number, y0: number, + x1: number, y1: number +): Point[]; +declare function bresenham( + x0: number, y0: number, + x1: number, y1: number, + fn: (x: number, y: number) => void +): void; + +export = bresenham; diff --git a/types/jest-validate/tsconfig.json b/types/bresenham/tsconfig.json similarity index 93% rename from types/jest-validate/tsconfig.json rename to types/bresenham/tsconfig.json index 5b8abec385889fd..6a7f9ab8fd9bea8 100644 --- a/types/jest-validate/tsconfig.json +++ b/types/bresenham/tsconfig.json @@ -6,8 +6,8 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": true, "strictFunctionTypes": true, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -18,6 +18,6 @@ }, "files": [ "index.d.ts", - "jest-validate-tests.ts" + "bresenham-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/jest-docblock/tslint.json b/types/bresenham/tslint.json similarity index 100% rename from types/jest-docblock/tslint.json rename to types/bresenham/tslint.json diff --git a/types/brorand/tsconfig.json b/types/brorand/tsconfig.json index 52e7dbf24c9d69d..043676b7cc9acd3 100644 --- a/types/brorand/tsconfig.json +++ b/types/brorand/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "brorand-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/brorand/tslint.json b/types/brorand/tslint.json index 3d59f55fdabcf45..e1d414e260d13c2 100644 --- a/types/brorand/tslint.json +++ b/types/brorand/tslint.json @@ -1,80 +1,12 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "prefer-method-signature": false } -} +} \ No newline at end of file diff --git a/types/brotli-webpack-plugin/brotli-webpack-plugin-tests.ts b/types/brotli-webpack-plugin/brotli-webpack-plugin-tests.ts new file mode 100644 index 000000000000000..d1ee2c369df9c61 --- /dev/null +++ b/types/brotli-webpack-plugin/brotli-webpack-plugin-tests.ts @@ -0,0 +1,22 @@ +import * as webpack from 'webpack'; +import BrotliWebpackPlugin = require('brotli-webpack-plugin'); + +new BrotliWebpackPlugin(); // $ExpectType BrotliWebpackPlugin + +const optionsEmpty: BrotliWebpackPlugin.Options = {}; + +const optionsFull: BrotliWebpackPlugin.Options = { + asset: '[path].br[query]', + test: /\.js$/, + threshold: 1024, + minRatio: 0.9, + deleteOriginalAssets: true, +}; + +const config: webpack.Configuration = { + plugins: [ + new BrotliWebpackPlugin(), + new BrotliWebpackPlugin(optionsEmpty), + new BrotliWebpackPlugin(optionsFull), + ] +}; diff --git a/types/brotli-webpack-plugin/index.d.ts b/types/brotli-webpack-plugin/index.d.ts new file mode 100644 index 000000000000000..aded1818e5bffcc --- /dev/null +++ b/types/brotli-webpack-plugin/index.d.ts @@ -0,0 +1,44 @@ +// Type definitions for brotli-webpack-plugin 1.1 +// Project: https://github.com/mynameiswhm/brotli-webpack-plugin +// Definitions by: Karol Majewski +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.7 + +import * as webpack from 'webpack'; + +declare class BrotliWebpackPlugin extends webpack.Plugin { + constructor(options?: BrotliWebpackPlugin.Options); +} + +declare namespace BrotliWebpackPlugin { + interface Options { + /** + * The target asset name. Defaults to `'[path].br[query]'`. + * + * - `[file]` is replaced with the original asset file name. + * - `[fileWithoutExt]` is replaced with the file name minus its extension, e.g. the `style` of `style.css`. + * - `[ext]` is replaced with the file name extension, e.g. the `css` of `style.css`. + * - `[path]` is replaced with the path of the original asset. + * - `[query]` is replaced with the query. + */ + asset?: string; + /** + * All assets matching this RegExp are processed. Defaults to every asset. + */ + test?: RegExp; + /** + * Only assets bigger than this size (in bytes) are processed. Defaults to `0`. + */ + threshold?: number; + /** + * Only assets that compress better that this ratio are processed. Defaults to `0.8`. + */ + minRatio?: number; + /** + * Remove original files that were compressed with brotli. Default: `false`. + */ + deleteOriginalAssets?: boolean; + } +} + +export = BrotliWebpackPlugin; diff --git a/types/brotli-webpack-plugin/tsconfig.json b/types/brotli-webpack-plugin/tsconfig.json new file mode 100644 index 000000000000000..8a8bf9be390ffbc --- /dev/null +++ b/types/brotli-webpack-plugin/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "brotli-webpack-plugin-tests.ts" + ] +} diff --git a/types/jest-matchers/tslint.json b/types/brotli-webpack-plugin/tslint.json similarity index 100% rename from types/jest-matchers/tslint.json rename to types/brotli-webpack-plugin/tslint.json diff --git a/types/browser-bunyan/tsconfig.json b/types/browser-bunyan/tsconfig.json index ab3fb51bd21862c..104fb5d59111deb 100644 --- a/types/browser-bunyan/tsconfig.json +++ b/types/browser-bunyan/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "browser-bunyan-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/browser-harness/tsconfig.json b/types/browser-harness/tsconfig.json index 1694e52c081d59c..5597c2e6a0e83dc 100644 --- a/types/browser-harness/tsconfig.json +++ b/types/browser-harness/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": false, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "browser-harness-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/browser-harness/tslint.json b/types/browser-harness/tslint.json index 3d59f55fdabcf45..933322192af329f 100644 --- a/types/browser-harness/tslint.json +++ b/types/browser-harness/tslint.json @@ -1,80 +1,23 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, "object-literal-shorthand": false, "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/browser-or-node/browser-or-node-tests.ts b/types/browser-or-node/browser-or-node-tests.ts new file mode 100644 index 000000000000000..bdf3f639f3f378d --- /dev/null +++ b/types/browser-or-node/browser-or-node-tests.ts @@ -0,0 +1,13 @@ +import { isBrowser, isWebWorker, isNode } from 'browser-or-node'; + +if (isBrowser) { + console.log('isBrowser'); +} + +if (isWebWorker) { + console.log('isBrowser'); +} + +if (isNode) { + console.log('isBrowser'); +} diff --git a/types/browser-or-node/index.d.ts b/types/browser-or-node/index.d.ts new file mode 100644 index 000000000000000..2dbe78490bc9a6f --- /dev/null +++ b/types/browser-or-node/index.d.ts @@ -0,0 +1,9 @@ +// Type definitions for browser-or-node 1.2 +// Project: https://github.com/flexdinesh/browser-or-node +// Definitions by: Jussi Kinnula +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.8 + +export const isBrowser: boolean; +export const isWebWorker: boolean; +export const isNode: boolean; diff --git a/types/browser-or-node/tsconfig.json b/types/browser-or-node/tsconfig.json new file mode 100644 index 000000000000000..ffcb46571de8f94 --- /dev/null +++ b/types/browser-or-node/tsconfig.json @@ -0,0 +1,24 @@ +{ + "files": [ + "index.d.ts", + "browser-or-node-tests.ts" + ], + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + } +} diff --git a/types/browser-or-node/tslint.json b/types/browser-or-node/tslint.json new file mode 100644 index 000000000000000..b4b47a03789f6d8 --- /dev/null +++ b/types/browser-or-node/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} diff --git a/types/browser-pack/tslint.json b/types/browser-pack/tslint.json index 3d59f55fdabcf45..0d3f63870df5eaa 100644 --- a/types/browser-pack/tslint.json +++ b/types/browser-pack/tslint.json @@ -1,80 +1,20 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "strict-export-declare-modifiers": false } -} +} \ No newline at end of file diff --git a/types/browser-report/tsconfig.json b/types/browser-report/tsconfig.json index f0bb076ca92c3e6..b9741dc22fbea91 100644 --- a/types/browser-report/tsconfig.json +++ b/types/browser-report/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "browser-report-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/browser-report/tslint.json b/types/browser-report/tslint.json index 3d59f55fdabcf45..ae093fe0a469482 100644 --- a/types/browser-report/tslint.json +++ b/types/browser-report/tslint.json @@ -1,80 +1,17 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, + "no-var-keyword": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "typedef-whitespace": false } -} +} \ No newline at end of file diff --git a/types/browser-resolve/tslint.json b/types/browser-resolve/tslint.json index 3d59f55fdabcf45..373848ed015436c 100644 --- a/types/browser-resolve/tslint.json +++ b/types/browser-resolve/tslint.json @@ -1,80 +1,15 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "strict-export-declare-modifiers": false } -} +} \ No newline at end of file diff --git a/types/browser-sync/tsconfig.json b/types/browser-sync/tsconfig.json index 830268a3a6924c3..947fde75bcead6c 100644 --- a/types/browser-sync/tsconfig.json +++ b/types/browser-sync/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "paths": { @@ -25,4 +25,4 @@ "index.d.ts", "browser-sync-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/browser-sync/tslint.json b/types/browser-sync/tslint.json index 3d59f55fdabcf45..291af186cfdbd7a 100644 --- a/types/browser-sync/tslint.json +++ b/types/browser-sync/tslint.json @@ -1,80 +1,22 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/browserify/tsconfig.json b/types/browserify/tsconfig.json index df71b7fb3be2f85..4c8155cf7950a8c 100644 --- a/types/browserify/tsconfig.json +++ b/types/browserify/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "browserify-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/browserify/tslint.json b/types/browserify/tslint.json index 3d59f55fdabcf45..09d4ba48298a741 100644 --- a/types/browserify/tslint.json +++ b/types/browserify/tslint.json @@ -1,80 +1,22 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, "no-var-requires": false, "no-void-expression": false, - "no-trailing-whitespace": false, "object-literal-key-quotes": false, "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/browserslist/browserslist-tests.ts b/types/browserslist/browserslist-tests.ts index 4617fc24902e203..c1274cee40e751a 100644 --- a/types/browserslist/browserslist-tests.ts +++ b/types/browserslist/browserslist-tests.ts @@ -1,25 +1,35 @@ -import browserslist from "browserslist"; -import BrowserslistError from "browserslist/error"; +import browserslist from 'browserslist'; +import BrowserslistError from 'browserslist/error'; browserslist(); // $ExpectType string[] -browserslist(""); // $ExpectType string[] -browserslist([""]); // $ExpectType string[] +browserslist(''); // $ExpectType string[] +browserslist(['']); // $ExpectType string[] const opts: browserslist.Options[] = [ {}, - { path: "" }, - { env: "" }, - { stats: { "": { "": 0 } } }, - { config: "" }, + { path: '' }, + { env: '' }, + { stats: { '': { '': 0 } } }, + { config: '' }, { ignoreUnknownVersions: false }, - { dangerousExtend: false } + { dangerousExtend: false }, + { mobileToDesktop: true }, ]; for (const opt of opts) { - browserslist("", opt); // $ExpectType string[] - browserslist([""], opt); // $ExpectType string[] + browserslist('', opt); // $ExpectType string[] + browserslist([''], opt); // $ExpectType string[] } -browserslist.coverage([""]); // $ExpectType number -browserslist.coverage([""], { "": { "": 0 } }); // $ExpectType number +const stats: browserslist.Stats = {}; + +browserslist.coverage(['']); // $ExpectType number +browserslist.coverage([''], { '': { '': 0 } }); // $ExpectType number + +browserslist.coverage(browserslist('> 1%')); // $ExpectType number +browserslist.coverage(browserslist('> 1% in US'), 'US'); // $ExpectType number +browserslist.coverage(browserslist('> 1% in US'), 'my stats'); // $ExpectType number +browserslist.coverage(browserslist('> 1% in my stats', { stats }), stats); // $ExpectType number + +browserslist.clearCaches(); // $ExpectType void new BrowserslistError('error'); // $ExpectType BrowserslistError diff --git a/types/browserslist/index.d.ts b/types/browserslist/index.d.ts index 8850a451298670a..9e8e11637557334 100644 --- a/types/browserslist/index.d.ts +++ b/types/browserslist/index.d.ts @@ -1,15 +1,27 @@ -// Type definitions for browserslist 4.4 +// Type definitions for browserslist 4.8 // Project: https://github.com/browserslist/browserslist#readme // Definitions by: Dave Cardwell // Andrew Leedham +// Piotr Błażejewicz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.7 declare namespace browserslist { + /** statistics from `Browserslist` files */ + type MyStats = 'my stats'; + /** + * Which statistics should be used. + * Country code or custom statistics. + * Pass `"my stats"` to load statistics + * from `Browserslist` files + */ + type StatsOptions = string | MyStats | Stats; + interface Browserslist { (queries?: string | ReadonlyArray, opts?: Options): string[]; - coverage: (browsers: ReadonlyArray, stats?: Stats) => number; + /** Return browsers market coverage */ + coverage: (browsers: ReadonlyArray, stats?: StatsOptions) => number; clearCaches: () => void; } @@ -21,12 +33,20 @@ declare namespace browserslist { } interface Options { + /** file or a directory path to look for config file */ path?: string; + /** what environment section use from config */ env?: string; + /** custom usage statistics data */ stats?: Stats; + /** path to config if you want to set it manually */ config?: string; + /** do not throw on direct query (like ie 12). */ ignoreUnknownVersions?: boolean; + /** Disable security checks for extend query. */ dangerousExtend?: boolean; + /** Use desktop browsers if Can I Use doesn’t have data about this mobile version */ + mobileToDesktop?: boolean; } } diff --git a/types/bson/tslint.json b/types/bson/tslint.json index 3d59f55fdabcf45..848e3dd1048fdd2 100644 --- a/types/bson/tslint.json +++ b/types/bson/tslint.json @@ -1,80 +1,21 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, + "no-unnecessary-class": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/bucks/tslint.json b/types/bucks/tslint.json index 3d59f55fdabcf45..b191fc094f5f706 100644 --- a/types/bucks/tslint.json +++ b/types/bucks/tslint.json @@ -1,80 +1,18 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/buffer-compare/tsconfig.json b/types/buffer-compare/tsconfig.json index 76638cae6e693a8..155af16191d911e 100644 --- a/types/buffer-compare/tsconfig.json +++ b/types/buffer-compare/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "buffer-compare-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/buffer-compare/tslint.json b/types/buffer-compare/tslint.json index 3d59f55fdabcf45..e0c8ffc9bd91db2 100644 --- a/types/buffer-compare/tslint.json +++ b/types/buffer-compare/tslint.json @@ -1,80 +1,13 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/buffer-equal/tslint.json b/types/buffer-equal/tslint.json index 3d59f55fdabcf45..ff5b956e003e61b 100644 --- a/types/buffer-equal/tslint.json +++ b/types/buffer-equal/tslint.json @@ -1,80 +1,13 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/buffer-split/buffer-split-tests.ts b/types/buffer-split/buffer-split-tests.ts new file mode 100644 index 000000000000000..48bf67e1acab66a --- /dev/null +++ b/types/buffer-split/buffer-split-tests.ts @@ -0,0 +1,7 @@ +import bufferSplit = require('buffer-split'); + +const buf = Buffer.from('Hello world!'); +const delimiter = Buffer.from(' '); + +bufferSplit(buf, delimiter); // $ExpectType Buffer[] +bufferSplit(buf, delimiter, true); // $ExpectType Buffer[] diff --git a/types/buffer-split/index.d.ts b/types/buffer-split/index.d.ts new file mode 100644 index 000000000000000..f98b794e72f411e --- /dev/null +++ b/types/buffer-split/index.d.ts @@ -0,0 +1,10 @@ +// Type definitions for buffer-split 1.0 +// Project: https://github.com/soldair/node-buffer-split#readme +// Definitions by: Ciffelia +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare function bufferSplit(buf: Buffer, splitBuf: Buffer, includeDelim?: boolean): Buffer[]; + +export = bufferSplit; diff --git a/types/buffer-split/tsconfig.json b/types/buffer-split/tsconfig.json new file mode 100644 index 000000000000000..c00b85595cc732b --- /dev/null +++ b/types/buffer-split/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "buffer-split-tests.ts" + ] +} diff --git a/types/jest-validate/tslint.json b/types/buffer-split/tslint.json similarity index 100% rename from types/jest-validate/tslint.json rename to types/buffer-split/tslint.json diff --git a/types/buffers/tslint.json b/types/buffers/tslint.json index 3d59f55fdabcf45..834badc7b520147 100644 --- a/types/buffers/tslint.json +++ b/types/buffers/tslint.json @@ -1,80 +1,12 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/bufferstream/tsconfig.json b/types/bufferstream/tsconfig.json index 65f456535757585..adf515914686b73 100644 --- a/types/bufferstream/tsconfig.json +++ b/types/bufferstream/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "bufferstream-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bull-board/bull-board-tests.ts b/types/bull-board/bull-board-tests.ts new file mode 100644 index 000000000000000..3dd417398c771c8 --- /dev/null +++ b/types/bull-board/bull-board-tests.ts @@ -0,0 +1,14 @@ +import BullBoard from 'bull-board'; +import express from 'express'; +import Queue from 'bull'; + +const redis = 'redis://127.0.0.1:6379'; + +const queueList = [new Queue('video transcoding', redis), new Queue('audio transcoding', redis)]; +const queue = BullBoard.createQueues(redis); +const app = express(); + +BullBoard.setQueues(queueList); + +app.use('/queues', BullBoard.UI); +queue.add('pdf transcoding', { redis: { host: redis } }); diff --git a/types/bull-board/index.d.ts b/types/bull-board/index.d.ts new file mode 100644 index 000000000000000..7199b68f0926661 --- /dev/null +++ b/types/bull-board/index.d.ts @@ -0,0 +1,23 @@ +// Type definitions for bull-board 0.6 +// Project: https://github.com/vcapretz/bull-board +// Definitions by: Keven Leone +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import { Express } from 'express'; +import { Queue, QueueOptions } from 'bull'; + +declare const BullBoard: BullBoard.Options; + +declare namespace BullBoard { + interface CreateQueue { + add(name: string, opts: QueueOptions): Queue; + } + + interface Options { + UI(): Express; + setQueues(bullQueues: Queue | Queue[]): Queue; + createQueues(redisURL: string): CreateQueue; + } +} + +export = BullBoard; diff --git a/types/bull-board/tsconfig.json b/types/bull-board/tsconfig.json new file mode 100644 index 000000000000000..3b8f31b2f8e55aa --- /dev/null +++ b/types/bull-board/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "esModuleInterop": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "bull-board-tests.ts" + ] +} diff --git a/types/markerclustererplus/tslint.json b/types/bull-board/tslint.json similarity index 100% rename from types/markerclustererplus/tslint.json rename to types/bull-board/tslint.json diff --git a/types/bull/bull-tests.tsx b/types/bull/bull-tests.tsx index 2314b065462d4c0..55f65f43d91744e 100644 --- a/types/bull/bull-tests.tsx +++ b/types/bull/bull-tests.tsx @@ -165,6 +165,11 @@ videoQueue.add({ video: 'http://example.com/video1.mov' }, { jobId: 1 }) // error }); +pdfQueue.whenCurrentJobsFinished() +.then(() => { + // Jobs finished +}); + ////////////////////////////////////////////////////////////////////////////////// // // Typed Event Handlers @@ -245,3 +250,8 @@ new Queue('profile'); new Queue('profile', 'url'); new Queue('profile', { prefix: 'test' }); new Queue('profile', 'url', { prefix: 'test' }); + +// Use low-level API +const multi = myQueue.multi(); +multi.del(myQueue.toKey('repeat')); +multi.exec(); diff --git a/types/bull/index.d.ts b/types/bull/index.d.ts index eb2a5b3f08b7c7c..bec7be8986e3e44 100644 --- a/types/bull/index.d.ts +++ b/types/bull/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for bull 3.10 +// Type definitions for bull 3.12 // Project: https://github.com/OptimalBits/bull // Definitions by: Bruno Grieder // Cameron Crothers @@ -17,6 +17,7 @@ // DoYoung Ha // Borys Kupar // Remko Klein +// Levi Bostian // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -745,6 +746,16 @@ declare namespace Bull { */ clean(grace: number, status?: JobStatusClean, limit?: number): Promise>>; + /** + * Returns a promise that marks the start of a transaction block. + */ + multi(): Redis.Pipeline; + + /** + * Returns the queue specific key. + */ + toKey(queueType: string): string; + /** * Listens to queue events */ @@ -846,6 +857,11 @@ declare namespace Bull { * @param list String with all redis clients */ parseClientList(list: string): Redis.Redis[]; + + /** + * Returns a promise that resolves when active jobs are finished + */ + whenCurrentJobsFinished(): Promise; } type EventCallback = () => void; diff --git a/types/bull/v2/tslint.json b/types/bull/v2/tslint.json index a41bf5d19a37606..05414bda5f29f1a 100644 --- a/types/bull/v2/tslint.json +++ b/types/bull/v2/tslint.json @@ -1,79 +1,23 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/bulma-calendar/bulma-calendar-tests.ts b/types/bulma-calendar/bulma-calendar-tests.ts new file mode 100644 index 000000000000000..32b7a21e356fc2d --- /dev/null +++ b/types/bulma-calendar/bulma-calendar-tests.ts @@ -0,0 +1,92 @@ +import BulmaCalendar from 'bulma-calendar'; + +new BulmaCalendar('.selector'); +BulmaCalendar.attach('.selector'); + +new BulmaCalendar(document.body); +BulmaCalendar.attach(document.body); + +const calendar = new BulmaCalendar('.selector', { + type: 'date', + color: '#ffffff', + isRange: false, + allowSameDayRange: false, + lang: 'nl', + dateFormat: 'DD', + timeFormat: 'HH', + displayMode: 'dialog', + position: 'bottom', + showHeader: false, + headerPosition: 'bottom', + showFooter: false, + showButtons: false, + showTodayButton: false, + showClearButton: false, + cancelLabel: '', + clearLabel: '', + todayLabel: '', + nowLabel: '', + validateLabel: '', + enableMonthSwitch: false, + enableYearSwitch: false, + startDate: new Date(), + endDate: new Date(), + minDate: new Date(), + maxDate: new Date(), + disabledDates: [], + disabledWeekDays: [], + weekStart: 1, + startTime: new Date(), + endTime: new Date(), + minuteSteps: 10, + labelFrom: '', + labelTo: '', + closeOnOverlayClick: false, + closeOnSelect: false, + toggleOnInputClick: false, + onReady: () => {}, + icons: { + previous: '', + next: '', + time: '', + date: '', + }, +}); + +calendar.show(); +calendar.hide(); +calendar.isOpen() ? 'yep' : 'nope'; +calendar.isRange() ? 'yep' : 'nope'; +calendar.value('1970-01-01T00:00:00Z').startDate; +calendar.value('1970-01-01T00:00:00Z').endDate; +calendar.value().startDate; +calendar.value().endDate; +calendar.refresh(); +calendar.save(); + +console.log(calendar.id); + +calendar.lang = calendar.lang; +calendar.date = calendar.date; +calendar.startDate = calendar.startDate; +calendar.endDate = calendar.endDate; +calendar.minDate = calendar.minDate; +calendar.maxDate = calendar.maxDate; +calendar.dateFormat = calendar.dateFormat; +calendar.time = calendar.time; +calendar.startTime = calendar.startTime; +calendar.endTime = calendar.endTime; +calendar.timeFormat = calendar.timeFormat; + +calendar.on('show', event => { + event.type === 'show'; +}); +calendar.on('hide', event => { + event.type === 'hide'; +}); +calendar.on('select', event => { + event.type === 'select'; +}); +calendar.on('select:start', event => { + event.type === 'select:start'; +}); diff --git a/types/bulma-calendar/index.d.ts b/types/bulma-calendar/index.d.ts new file mode 100644 index 000000000000000..c79ad5d44d84338 --- /dev/null +++ b/types/bulma-calendar/index.d.ts @@ -0,0 +1,472 @@ +// Type definitions for bulma-calendar 6.0 +// Project: https://creativebulma.net/product/calendar/demo +// Definitions by: Remco Haszing +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// Minimum TypeScript Version: 3.6 + +export interface BulmaCalendarOptions { + /** + * Component type + * + * @default 'datetime' + */ + type?: 'date' | 'time' | 'datetime'; + + /** + * Picker dominant color + * + * @default 'primary' + */ + color?: string; + + /** + * Range capability (start and end date/time selection + * + * @default false + */ + isRange?: boolean; + + /** + * Possibility to select same date as start and end date in range mode + * + * @default true + */ + allowSameDayRange?: boolean; + + /** + * Display lang (from language supported by date-fns) + * + * @default navigator.language.substring(0, 2) || "en" + */ + lang?: string; + + /** + * Date format pattern + * + * @default 'MM/DD/YYYY' + */ + dateFormat?: string; + + /** + * Time format pattern + * + * @default 'HH:mm' + */ + timeFormat?: string; + + /** + * Display mode + * + * @default 'default' + */ + displayMode?: 'default' | 'dialog' | 'inline'; + + /** + * @default 'auto' + */ + position?: string; + + /** + * Show/Hide header block (with current selection) + * + * @default true + */ + showHeader?: boolean; + + /** + * Header block position + * + * @default 'top' + */ + headerPosition?: 'top' | 'bottom'; + + /** + * Show/Hide footer block + * + * @default true + */ + showFooter?: boolean; + + /** + * Show/Hide buttons + * + * @default true + */ + showButtons?: boolean; + + /** + * Show/Hide Today Button + * + * @default true + */ + showTodayButton?: boolean; + + /** + * Show/Hide Clear Button + * + * @default true + */ + showClearButton?: boolean; + + /** + * Cancel button label + * + * @default 'Cancel' + */ + cancelLabel?: string; + + /** + * Clear button label + * + * @default 'Clear' + */ + clearLabel?: string; + + /** + * Today button label + * + * @default 'Today' + */ + todayLabel?: string; + + /** + * Now button label + * + * @default 'Now' + */ + nowLabel?: string; + + /** + * Validate button label + * + * @default 'Validate' + */ + validateLabel?: string; + + /** + * Enable/disable month switch + * + * @default true + */ + enableMonthSwitch?: boolean; + + /** + * Enable/disable year switch + * + * @default true + */ + enableYearSwitch?: boolean; + + /** + * Pre-selected start date + */ + startDate?: Date; + + /** + * Pre-selected end date + */ + endDate?: Date; + + /** + * Minimum date allowed + */ + minDate?: Date; + + /** + * Maximum date allowed + */ + maxDate?: Date; + + /** + * List of disabled dates + */ + disabledDates?: any[]; + + /** + * List of disabled week days + */ + disabledWeekDays?: string | any[]; + + /** + * Default weekstart day number + * + * @default 0 // sunday + */ + weekStart?: number; + + /** + * Pre-selected start time + */ + startTime?: Date; + + /** + * Pre-selected end time + */ + endTime?: Date; + + /** + * Steps for minutes selector + * + * @default 5 + */ + minuteSteps?: number; + + /** + * From label + */ + labelFrom?: string; + + /** + * To label + */ + labelTo?: string; + + /** + * Close picker on overlay click (only for dialog display style) + * + * @default true + */ + closeOnOverlayClick?: boolean; + + /** + * Automatically close the datePicker when date selected (or range date selected) - not available + * for inline display style. If set to False then a validate button will be displayed into the + * footer section. + * + * @default true + */ + closeOnSelect?: boolean; + + /** + * Automatically open datepicker when click into input element + * + * @default true + */ + toggleOnInputClick?: boolean; + + /** + * Callback to trigger once picker initiated + */ + onReady?: () => void; + icons?: { + /** + * Previous button icon + */ + previous?: string; + + /** + * Next button icon + */ + next?: string; + + /** + * Time icon + */ + time?: string; + + /** + * Date icon + */ + date?: string; + }; +} + +export type EventType = 'show' | 'hide' | 'select' | 'select:start'; + +export interface Event { + type: T; + timeStamp: number; + data: bulmaCalendar; +} + +export default class bulmaCalendar { + // Custom EventEmitter implementation + listenerCount(eventName: EventType): void; + + removeListeners(eventName: EventType, middleware?: boolean): void; + + middleware(eventName: T, fn: (event: Event) => void): void; + + removeMiddleware(eventName: EventType): void; + + on(name: T, callback: (event: Event) => void, once?: boolean): void; + + once(name: T, callback: (event: Event) => void): void; + + emit(name: EventType, data: bulmaCalendar, silent?: boolean): void; + + // Constructors + constructor(selector: string | HTMLElement, options?: BulmaCalendarOptions); + + static attach(selector?: string | HTMLElement, options?: BulmaCalendarOptions): bulmaCalendar[]; + + // Methods + /** + * Open date picker (not available with "inline" display style) + */ + show(): void; + + /** + * Close date picker (not available with "inline" display style) + */ + hide(): void; + + /** + * Check if date picker is open or not + * + * @returns True if date picker is open else False + */ + isOpen(): boolean; + + /** + * Check if current instance is a range date picker + * + * @returns True if the instance is a range date picker + */ + isRange(): boolean; + + /** + * Get the date picker value as formatted string if no parameter else set the passed value + * + * @param value Formatted date value if no parameter passed else null + * + * @returns Date picker selected date (if not range calendar then endDate is undefined) + */ + value( + value?: string, + ): { + startDate: Date; + endDate?: Date; + }; + + /** + * Force calendar refresh + */ + refresh(): void; + + /** + * Force to set calendar data into UI inputs + */ + save(): void; + + /** + * Clear date selection (startDate and endDate are set to undefined) + */ + clear(): void; + + // Getters + /** + * Get component instance ID + */ + get id(): any; + + /** + * Get active lang + */ + get lang(): string; + + /** + * Set component lang + */ + set lang(lang: string); + + /** + * Get selected date + */ + get date(): { start?: Date; end?: Date }; + + /** + * Set date + */ + set date(date: { start?: Date; end?: Date }); + + /** + * Get selected start date + */ + get startDate(): Date; + + /** + * Se start date + */ + set startDate(startDate: Date); + + /** + * Get selected end date + */ + get endDate(): Date; + + /** + * Set end date + */ + set endDate(endDate: Date); + + /** + * Get min possible date + */ + get minDate(): Date; + + /** + * Set min possible date + */ + set minDate(minDate: Date); + + /** + * Get max possible date + */ + get maxDate(): Date; + + /** + * Set max possible date + */ + set maxDate(maxDate: Date); + + /** + * Get date format pattern + */ + get dateFormat(): string; + + /** + * Set date format pattern + */ + set dateFormat(dateFormat: string); + + /** + * Get selected time + */ + get time(): Date; + + /** + * Set time + */ + set time(time: Date); + + /** + * Get selected start time + */ + get startTime(): Date; + + /** + * Set start time + */ + set startTime(startTime: Date); + + /** + * Get selected end time + */ + get endTime(): Date; + + /** + * Set end time + */ + set endTime(endTime: Date); + + /** + * Get time format pattern + */ + get timeFormat(): string; + + /** + * Set time format pattern + */ + set timeFormat(timeFormat: string); +} diff --git a/types/bulma-calendar/tsconfig.json b/types/bulma-calendar/tsconfig.json new file mode 100644 index 000000000000000..fe702b45294dc5e --- /dev/null +++ b/types/bulma-calendar/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "dom", + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "bulma-calendar-tests.ts" + ] +} diff --git a/types/mkdirp-promise/tslint.json b/types/bulma-calendar/tslint.json similarity index 100% rename from types/mkdirp-promise/tslint.json rename to types/bulma-calendar/tslint.json diff --git a/types/bunnymq/tsconfig.json b/types/bunnymq/tsconfig.json index d1a470e451a01be..30d30e1ccff5ab4 100644 --- a/types/bunnymq/tsconfig.json +++ b/types/bunnymq/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": false, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "bunnymq-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bunnymq/tslint.json b/types/bunnymq/tslint.json index 71ee04c4e1a2104..ad93d8fc0d9ca6b 100644 --- a/types/bunnymq/tslint.json +++ b/types/bunnymq/tslint.json @@ -3,4 +3,4 @@ "rules": { "no-unnecessary-generics": false } -} +} \ No newline at end of file diff --git a/types/bunyan-blackhole/tsconfig.json b/types/bunyan-blackhole/tsconfig.json index 0266e86bae1cb4d..c7fc8e1051af202 100644 --- a/types/bunyan-blackhole/tsconfig.json +++ b/types/bunyan-blackhole/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "bunyan-blackhole-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bunyan-config/tsconfig.json b/types/bunyan-config/tsconfig.json index 7866deb22e32fa1..dc3646abe011b51 100644 --- a/types/bunyan-config/tsconfig.json +++ b/types/bunyan-config/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "bunyan-config-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bunyan-config/tslint.json b/types/bunyan-config/tslint.json index 3d59f55fdabcf45..daa9668e0e27a72 100644 --- a/types/bunyan-config/tslint.json +++ b/types/bunyan-config/tslint.json @@ -1,80 +1,16 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "semicolon": false } -} +} \ No newline at end of file diff --git a/types/bunyan-logentries/tsconfig.json b/types/bunyan-logentries/tsconfig.json index f367f2fff80457e..3bb3f6d43b1e956 100644 --- a/types/bunyan-logentries/tsconfig.json +++ b/types/bunyan-logentries/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "bunyan-logentries-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bunyan-logentries/tslint.json b/types/bunyan-logentries/tslint.json index 3d59f55fdabcf45..4970ad016620cc6 100644 --- a/types/bunyan-logentries/tslint.json +++ b/types/bunyan-logentries/tslint.json @@ -1,80 +1,12 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "strict-export-declare-modifiers": false } -} +} \ No newline at end of file diff --git a/types/bunyan-prettystream/tsconfig.json b/types/bunyan-prettystream/tsconfig.json index ac589169ba189b5..5fc0a32669500d6 100644 --- a/types/bunyan-prettystream/tsconfig.json +++ b/types/bunyan-prettystream/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "bunyan-prettystream-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bunyan-prettystream/tslint.json b/types/bunyan-prettystream/tslint.json index 3d59f55fdabcf45..ff5b956e003e61b 100644 --- a/types/bunyan-prettystream/tslint.json +++ b/types/bunyan-prettystream/tslint.json @@ -1,80 +1,13 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/bunyan/tsconfig.json b/types/bunyan/tsconfig.json index 290ffc3a6d087f2..86b8453492760e0 100644 --- a/types/bunyan/tsconfig.json +++ b/types/bunyan/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "bunyan-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bunyan/tslint.json b/types/bunyan/tslint.json index 2204f23ff38aa85..5edd1a6f00615af 100644 --- a/types/bunyan/tslint.json +++ b/types/bunyan/tslint.json @@ -1,8 +1,7 @@ { - "extends": "dtslint/dt.json", - "rules": { - // ban-types needs to be disabled to support TypeScript <2.2 - "ban-types": false, - "unified-signatures": false - } -} + "extends": "dtslint/dt.json", + "rules": { + "ban-types": false, + "unified-signatures": false + } +} \ No newline at end of file diff --git a/types/busboy/tsconfig.json b/types/busboy/tsconfig.json index 6e60377b237e9d0..aef618c7f94043c 100644 --- a/types/busboy/tsconfig.json +++ b/types/busboy/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "busboy-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/busboy/tslint.json b/types/busboy/tslint.json index 3d59f55fdabcf45..0619f8d0dc0f07a 100644 --- a/types/busboy/tslint.json +++ b/types/busboy/tslint.json @@ -1,80 +1,17 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/business-rules-engine/tsconfig.json b/types/business-rules-engine/tsconfig.json index 0827a0c44cec28d..e085eaec433a9c7 100644 --- a/types/business-rules-engine/tsconfig.json +++ b/types/business-rules-engine/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -25,4 +25,4 @@ "index.d.ts", "business-rules-engine-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/business-rules-engine/tslint.json b/types/business-rules-engine/tslint.json index 3d59f55fdabcf45..ceb5bc4e736f992 100644 --- a/types/business-rules-engine/tslint.json +++ b/types/business-rules-engine/tslint.json @@ -1,80 +1,22 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, + "no-outside-dependencies": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, "no-unnecessary-class": false, "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/bwip-js/tslint.json b/types/bwip-js/tslint.json index 3d59f55fdabcf45..67ded2d7a1face7 100644 --- a/types/bwip-js/tslint.json +++ b/types/bwip-js/tslint.json @@ -1,80 +1,18 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/byline/tsconfig.json b/types/byline/tsconfig.json index f21fc8983d8c126..adf5ed3a76dcab0 100644 --- a/types/byline/tsconfig.json +++ b/types/byline/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "byline-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/byline/tslint.json b/types/byline/tslint.json index 3d59f55fdabcf45..e6358dcddada918 100644 --- a/types/byline/tslint.json +++ b/types/byline/tslint.json @@ -1,80 +1,26 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, "no-duplicate-variable": false, "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/bytebuffer/tsconfig.json b/types/bytebuffer/tsconfig.json index 5fdc833e9b8615d..626dce1e46f5955 100644 --- a/types/bytebuffer/tsconfig.json +++ b/types/bytebuffer/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "bytebuffer-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bytebuffer/tslint.json b/types/bytebuffer/tslint.json index 3d59f55fdabcf45..b46b0f16c7535e1 100644 --- a/types/bytebuffer/tslint.json +++ b/types/bytebuffer/tslint.json @@ -1,80 +1,21 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/cache-manager/cache-manager-tests.ts b/types/cache-manager/cache-manager-tests.ts index 47ca62c020efdf9..41a4723d8a52bec 100644 --- a/types/cache-manager/cache-manager-tests.ts +++ b/types/cache-manager/cache-manager-tests.ts @@ -48,3 +48,27 @@ memoryCache.wrap<{ id: number, name: string }>(key, (cb: any) => { }); }); + +if (memoryCache.store.keys) { + memoryCache.store.keys().then((result) => { + //console.log(result); + }); +} + +const multiCache = cacheManager.multiCaching([memoryCache]); + +multiCache.set('foo', 'bar', { ttl: ttl }, (err) => { + + if (err) { + throw err; + } + + multiCache.get('foo', (err, result) => { + + // console.log(result); + + multiCache.del('foo', (err) => { + }); + + }); +}); diff --git a/types/cache-manager/index.d.ts b/types/cache-manager/index.d.ts index cd86e851bd24592..dc0b3b8eb73ad4f 100644 --- a/types/cache-manager/index.d.ts +++ b/types/cache-manager/index.d.ts @@ -56,7 +56,31 @@ export interface Cache { set(key: string, value: T, ttl: number): Promise; set(key: string, value: T, options: CachingConfig, callback: (error: any) => void): void; set(key: string, value: T, ttl: number, callback: (error: any) => void): void; - + + // Because the library accepts multiple keys as arguments but not as an array and rather as individual parameters + // of the function, the type definition had to be changed to this rather than specific ones + // actual definitions would looks like this (impossible in typescript): + // wrap(...keys: string[], work: (callback: (error: any, result: T) => void) => void, options: CachingConfig, callback: (error: any, result: T) => void): void + // wrap(...keys: string[], work: (callback: (error: any, result: T) => void) => void, callback: (error: any, result: T) => void): void + // wrap(...keys: string[], work: (callback: (error: any, result: T) => void) => void, options: CachingConfig): void + // wrap(...keys: string[], work: (callback: (error: any, result: T) => void) => void): Promise; + wrap(...args: WrapArgsType[]): Promise; + + get(key: string, callback: (error: any, result: T) => void): void; + get(key: string): Promise; + + del(key: string, callback: (error: any) => void): void; + del(key: string): Promise; + + store: Store; +} + +export interface MultiCache { + set(key: string, value: T, options: CachingConfig): Promise; + set(key: string, value: T, ttl: number): Promise; + set(key: string, value: T, options: CachingConfig, callback: (error: any) => void): void; + set(key: string, value: T, ttl: number, callback: (error: any) => void): void; + // Because the library accepts multiple keys as arguments but not as an array and rather as individual parameters // of the function, the type definition had to be changed to this rather than specific ones // actual definitions would looks like this (impossible in typescript): @@ -74,4 +98,4 @@ export interface Cache { } export function caching(IConfig: StoreConfig & CacheOptions): Cache; -export function multiCaching(Caches: Cache[], options?: CacheOptions): Cache; +export function multiCaching(Caches: Cache[], options?: CacheOptions): MultiCache; diff --git a/types/cache-manager/tsconfig.json b/types/cache-manager/tsconfig.json index f754de4a67360da..5cd49dfa8d07830 100644 --- a/types/cache-manager/tsconfig.json +++ b/types/cache-manager/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "cache-manager-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/cache-manager/tslint.json b/types/cache-manager/tslint.json index 3d59f55fdabcf45..cc7a57024aac998 100644 --- a/types/cache-manager/tslint.json +++ b/types/cache-manager/tslint.json @@ -1,80 +1,19 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, "no-trailing-whitespace": false, - "object-literal-key-quotes": false, + "no-unnecessary-generics": false, "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/cal-heatmap/tslint.json b/types/cal-heatmap/tslint.json index 3d59f55fdabcf45..2cf05888e277f4f 100644 --- a/types/cal-heatmap/tslint.json +++ b/types/cal-heatmap/tslint.json @@ -1,80 +1,20 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, "object-literal-shorthand": false, "one-line": false, - "one-variable-per-declaration": false, "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "semicolon": false } -} +} \ No newline at end of file diff --git a/types/callsite/tsconfig.json b/types/callsite/tsconfig.json index 473c5c08fd518d8..0e754d5a631da58 100644 --- a/types/callsite/tsconfig.json +++ b/types/callsite/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "callsite-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/callsite/tslint.json b/types/callsite/tslint.json index 3d59f55fdabcf45..d1e42440ed35aca 100644 --- a/types/callsite/tslint.json +++ b/types/callsite/tslint.json @@ -1,80 +1,15 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "trim-file": false } -} +} \ No newline at end of file diff --git a/types/calq/tsconfig.json b/types/calq/tsconfig.json index 595f095f7479510..0562d6ac9601162 100644 --- a/types/calq/tsconfig.json +++ b/types/calq/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "calq-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/calq/tslint.json b/types/calq/tslint.json index 3d59f55fdabcf45..c96a6231a1662ce 100644 --- a/types/calq/tslint.json +++ b/types/calq/tslint.json @@ -1,80 +1,16 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, "object-literal-key-quotes": false, - "object-literal-shorthand": false, "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, "space-within-parens": false, - "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/camo/tslint.json b/types/camo/tslint.json index 3d59f55fdabcf45..739341dc8c629b9 100644 --- a/types/camo/tslint.json +++ b/types/camo/tslint.json @@ -1,80 +1,19 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "strict-export-declare-modifiers": false } -} +} \ No newline at end of file diff --git a/types/camunda-external-task-client-js/camunda-external-task-client-js-tests.ts b/types/camunda-external-task-client-js/camunda-external-task-client-js-tests.ts index 0b7a4309f9c89c1..ea17aeba39307e2 100644 --- a/types/camunda-external-task-client-js/camunda-external-task-client-js-tests.ts +++ b/types/camunda-external-task-client-js/camunda-external-task-client-js-tests.ts @@ -1,5 +1,47 @@ -import { Client, Variables } from 'camunda-external-task-client-js'; +import { Client, HandlerArgs, Task, TaskService, TopicSubscription, Variables } from 'camunda-external-task-client-js'; new Client({ baseUrl: '' }); // $ExpectType Client new Variables(); // $ExpectType Variables new Variables().set('a', 42).getAllTyped(); // $ExpectType TypedValue[] + +const client: Client = new Client({ baseUrl: '' }); // $ExpectType Client +client.on('subscribe', (topic: string, topicSubscription: TopicSubscription) => {}); +client.on('unsubscribe', (topic: string, topicSubscription: TopicSubscription) => {}); + +client.on('poll:start', () => {}); +client.on('poll:stop', () => {}); + +client.on('poll:success', (tasks: Task[]) => {}); + +client.on('complete:success', (task: Task) => {}); +client.on('handleFailure:success', (task: Task) => {}); +client.on('handleBpmnError:success', (task: Task) => {}); +client.on('extendLock:success', (task: Task) => {}); +client.on('unlock:success', (task: Task) => {}); + +client.on('handleFailure:error', (task: Task, error: any) => {}); +client.on('handleBpmnError:error', (task: Task, error: any) => {}); +client.on('extendLock:error', (task: Task, error: any) => {}); +client.on('unlock:error', (task: Task, error: any) => {}); + +client.on('complete:error', (error: any) => {}); +client.on('poll:error', (error: any) => {}); + +client.start(); +client.stop(); +client.subscribe('', {}, (args: HandlerArgs) => { + const task: Task = args.task; + const taskService: TaskService = args.taskService; + task.businessKey; + task.processInstanceId; + task.id; + task.executionId; + task.activityId; + task.activityInstanceId; + task.tenantId; + task.topicName; + task.workerId; + + taskService.handleFailure(task, {}); + taskService.complete(task); +}); diff --git a/types/camunda-external-task-client-js/index.d.ts b/types/camunda-external-task-client-js/index.d.ts index 0700281b3222fed..8fba91a1c122e35 100644 --- a/types/camunda-external-task-client-js/index.d.ts +++ b/types/camunda-external-task-client-js/index.d.ts @@ -1,6 +1,7 @@ -// Type definitions for camunda-external-task-client-js 1.2 +// Type definitions for camunda-external-task-client-js 1.3 // Project: https://github.com/camunda/camunda-external-task-client-js#readme // Definitions by: MacRusher +// DoYoung Ha // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -10,6 +11,13 @@ export class Client { stop(): void; subscribe(topic: string, options: SubscribeOptions, handler: Handler): TopicSubscription; subscribe(topic: string, handler: Handler): TopicSubscription; + + on(name: TopicEvent, callback: (topic: string, topicSubscription: TopicSubscription) => void): void; + on(name: PollEvent, callback: () => void): void; + on(name: SuccessWithTasksEvent, callback: (tasks: Task[]) => void): void; + on(name: SuccessWithTaskEvent, callback: (task: Task) => void): void; + on(name: ErrorWithTaskEvent, callback: (task: Task, error: any) => void): void; + on(name: ErrorEvent, callback: (error: any) => void): void; } export interface ClientConfig { @@ -114,4 +122,11 @@ export type Logger = Middleware & { error(text: string): void; }; +export type TopicEvent = "subscribe" | "unsubscribe"; +export type PollEvent = "poll:start" | "poll:stop"; +export type SuccessWithTasksEvent = "poll:success"; +export type SuccessWithTaskEvent = "complete:success" | "handleFailure:success" | "handleBpmnError:success" | "extendLock:success" | "unlock:success"; +export type ErrorWithTaskEvent = "handleFailure:error" | "handleBpmnError:error" | "extendLock:error" | "unlock:error"; +export type ErrorEvent = "poll:error" | "complete:error"; + export const logger: Logger; diff --git a/types/cannon/tslint.json b/types/cannon/tslint.json index 3d59f55fdabcf45..ba321ab1dae6c23 100644 --- a/types/cannon/tslint.json +++ b/types/cannon/tslint.json @@ -1,80 +1,24 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, + "npm-naming": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, "trim-file": false, - "triple-equals": false, "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, "whitespace": false } -} +} \ No newline at end of file diff --git a/types/canvas-confetti/canvas-confetti-tests.ts b/types/canvas-confetti/canvas-confetti-tests.ts index 2415b91b85675c3..39f06bf9bc0ae6c 100644 --- a/types/canvas-confetti/canvas-confetti-tests.ts +++ b/types/canvas-confetti/canvas-confetti-tests.ts @@ -41,7 +41,8 @@ confetti({ particleCount: r(50, 100), origin: { y: 0.6 - } + }, + shapes: ['square', 'circle', 'square'] }); const canvas = document.createElement('canvas'); @@ -49,6 +50,10 @@ const myConfetti = confetti.create(canvas); myConfetti(); +confetti.reset(); + +myConfetti.reset(); + myConfetti({ particleCount: 150 }); diff --git a/types/canvas-confetti/index.d.ts b/types/canvas-confetti/index.d.ts index f9dd65ea127afcf..dbf053ab4501af2 100644 --- a/types/canvas-confetti/index.d.ts +++ b/types/canvas-confetti/index.d.ts @@ -1,6 +1,7 @@ -// Type definitions for canvas-confetti 0.1 +// Type definitions for canvas-confetti 1.0 // Project: https://github.com/catdad/canvas-confetti#readme // Definitions by: Martin Tracey +// Josh Batley // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** @@ -24,6 +25,8 @@ declare namespace confetti { */ let Promise: any; + type shape = 'square' | 'circle'; + interface Options { /** * The number of confetti to launch. More is always fun... but be cool, there's a lot of math involved. @@ -63,12 +66,18 @@ declare namespace confetti { * An array of color strings, in the HEX format... you know, like #bada55. */ colors?: string[]; + /** + * The possible values are square and circle. The default is to use both shapes in an even mix. + * @default ['square','circle'] + */ + shapes?: shape[]; /** * The confetti should be on top, after all. But if you have a crazy high page, you can set it even higher. * @default 100 */ zIndex?: number; } + interface Origin { /** * The x position on the page, with 0 being the left edge and 1 being the right edge. @@ -81,14 +90,37 @@ declare namespace confetti { */ y?: number; } + interface GlobalOptions { - resize: boolean; + /** + * Whether to allow setting the canvas image size, as well as keep it correctly sized if the window changes size + * @default false + */ + resize?: boolean; + /** + * Whether to use an asynchronous web worker to render the confetti animation, whenever possible + * @default false + */ + useWorker?: boolean; } + /** + * Stops the animation and clears all confetti, as well as immediately resolves any outstanding promises. + */ + type Reset = () => void; + function reset(): Reset; + + interface CreateTypes { + (options?: Options): () => Promise | null; + reset: Reset; + } + /** + * This method creates an instance of the confetti function that uses a custom canvas. + */ function create( canvas: HTMLCanvasElement, options?: GlobalOptions - ): (options?: Options) => Promise | null; + ): CreateTypes; } export = confetti; diff --git a/types/canvas-gauges/canvas-gauges-tests.ts b/types/canvas-gauges/canvas-gauges-tests.ts index dc989245981123e..5b87a4c3c5c1c1e 100644 --- a/types/canvas-gauges/canvas-gauges-tests.ts +++ b/types/canvas-gauges/canvas-gauges-tests.ts @@ -14,7 +14,41 @@ let radialOptions: RadialGaugeOptions = { fontNumbersWeight: 'bold' }; -new LinearGauge(linearOptions); -new RadialGauge(radialOptions); +const linearGauge = new LinearGauge(linearOptions); +const radialGauge = new RadialGauge(radialOptions); + +linearGauge.on('init', () => {}); +linearGauge.on('render', () => {}); +linearGauge.on('destroy', () => {}); +linearGauge.on('animationStart', () => {}); +linearGauge.on('animate', (percent, value) => console.log(percent, value)); +linearGauge.on('animationEnd', () => {}); +linearGauge.on('beforePlate', () => {}); +linearGauge.on('beforeHighlights', () => {}); +linearGauge.on('beforeMinorTicks', () => {}); +linearGauge.on('beforeMajorTicks', () => {}); +linearGauge.on('beforeNumbers', () => {}); +linearGauge.on('beforeTitle', () => {}); +linearGauge.on('beforeUnits', () => {}); +linearGauge.on('beforeProgressBar', () => {}); +linearGauge.on('beforeValueBox', () => {}); +linearGauge.on('beforeNeedle', () => {}); + +radialGauge.on('init', () => {}); +radialGauge.on('render', () => {}); +radialGauge.on('destroy', () => {}); +radialGauge.on('animationStart', () => {}); +radialGauge.on('animate', (percent, value) => console.log(percent, value)); +radialGauge.on('animationEnd', () => {}); +radialGauge.on('beforePlate', () => {}); +radialGauge.on('beforeHighlights', () => {}); +radialGauge.on('beforeMinorTicks', () => {}); +radialGauge.on('beforeMajorTicks', () => {}); +radialGauge.on('beforeNumbers', () => {}); +radialGauge.on('beforeTitle', () => {}); +radialGauge.on('beforeUnits', () => {}); +radialGauge.on('beforeProgressBar', () => {}); +radialGauge.on('beforeValueBox', () => {}); +radialGauge.on('beforeNeedle', () => {}); console.log(document.gauges.length); diff --git a/types/canvas-gauges/index.d.ts b/types/canvas-gauges/index.d.ts index 3c3a617ed7c3d0f..5f1ad13d7c603b2 100644 --- a/types/canvas-gauges/index.d.ts +++ b/types/canvas-gauges/index.d.ts @@ -118,7 +118,7 @@ declare namespace CanvasGauges { barProgress?: boolean, barShadow?: number } - + export const GenericOptions: GenericOptions; export interface RadialGaugeOptions extends GenericOptions { @@ -247,6 +247,22 @@ declare namespace CanvasGauges { constructor(options: GenericOptions); + public on(event: 'init', listeners: () => void): void; + public on(event: 'render', listeners: () => void): void; + public on(event: 'destroy', listeners: () => void): void; + public on(event: 'animationStart', listeners: () => void): void; + public on(event: 'animate', listeners: (percent: number, value: number) => void): void; + public on(event: 'animationEnd', listeners: () => void): void; + public on(event: 'beforePlate', listeners: () => void): void; + public on(event: 'beforeHighlights', listeners: () => void): void; + public on(event: 'beforeMinorTicks', listeners: () => void): void; + public on(event: 'beforeMajorTicks', listeners: () => void): void; + public on(event: 'beforeNumbers', listeners: () => void): void; + public on(event: 'beforeTitle', listeners: () => void): void; + public on(event: 'beforeUnits', listeners: () => void): void; + public on(event: 'beforeProgressBar', listeners: () => void): void; + public on(event: 'beforeValueBox', listeners: () => void): void; + public on(event: 'beforeNeedle', listeners: () => void): void; public update(options: GenericOptions): BaseGauge; public destroy(): any; public abstract draw(): BaseGauge; diff --git a/types/canvas-gauges/tsconfig.json b/types/canvas-gauges/tsconfig.json index 07055c34bb25014..88ef95bcfd50853 100644 --- a/types/canvas-gauges/tsconfig.json +++ b/types/canvas-gauges/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "canvas-gauges-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/canvas-gauges/tslint.json b/types/canvas-gauges/tslint.json index 3d59f55fdabcf45..dbb0452ea7455f0 100644 --- a/types/canvas-gauges/tslint.json +++ b/types/canvas-gauges/tslint.json @@ -1,80 +1,18 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, "array-type": false, - "arrow-return-shorthand": false, "ban-types": false, "callable-types": false, - "comment-format": false, "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, "prefer-method-signature": false, - "prefer-template": false, - "radix": false, "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } -} +} \ No newline at end of file diff --git a/types/canvasjs/tsconfig.json b/types/canvasjs/tsconfig.json index 57f76052a9057ae..5a0661ce7ff79c2 100644 --- a/types/canvasjs/tsconfig.json +++ b/types/canvasjs/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -20,4 +20,4 @@ "index.d.ts", "canvasjs-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/canvaskit-wasm/tslint.json b/types/canvaskit-wasm/tslint.json index f93cf8562ad24db..d086f8e13f785e5 100644 --- a/types/canvaskit-wasm/tslint.json +++ b/types/canvaskit-wasm/tslint.json @@ -1,3 +1,17 @@ { - "extends": "dtslint/dt.json" -} + "extends": "dtslint/dt.json", + "rules": { + "npm-naming": [ + true, + { + "errors": [ + [ + "NeedsExportEquals", + false + ] + ], + "mode": "code" + } + ] + } +} \ No newline at end of file diff --git a/types/capitalize/tslint.json b/types/capitalize/tslint.json index 939faba9c2fa680..9cac3c9f526e873 100644 --- a/types/capitalize/tslint.json +++ b/types/capitalize/tslint.json @@ -1,7 +1,6 @@ { - "extends": "dtslint/dt.json", - "rules": { - // TODO - "no-duplicate-imports": false - } + "extends": "dtslint/dt.json", + "rules": { + "no-duplicate-imports": false + } } \ No newline at end of file diff --git a/types/carbon-components-react/carbon-components-react-tests.tsx b/types/carbon-components-react/carbon-components-react-tests.tsx index fd63b7a78994869..e248e933abd1f5b 100644 --- a/types/carbon-components-react/carbon-components-react-tests.tsx +++ b/types/carbon-components-react/carbon-components-react-tests.tsx @@ -1,15 +1,44 @@ import * as React from 'react'; import { + AccordionItem, DataTable, + DataTableCustomRenderProps, DataTableHeader, DataTableRow, + Dropdown, + FileUploader, + NumberInput, + Slider, + Tab, Table, TableBatchActions, TableHeader, TableRow, + TileGroup, + TooltipDefinition, + TextArea, + TextInput, } from 'carbon-components-react'; import Link from 'carbon-components-react/lib/components/UIShell/Link'; +// AccordionItem +const titleNode = ( +

+ SomethingA heading +

+); +const accordionItemOne = ( + + Lorem ipsum. + +); +const accordionTitle = 'Hello World!'; +const accordionItemTwo = ( + + Lorem ipsum. + +); + interface Row1 extends DataTableRow { rowProp: string; } @@ -147,6 +176,63 @@ const t4 = ( }} /> ); +// RenderProps are compatible with sub-elements +interface T5RowType extends DataTableRow { + col1: number; + col2: number; +} +const t5RowItems: T5RowType[] = [ + { id: "row0", col1: 0, col2: 0}, + { id: "row1", col1: 1, col2: 1}, +]; +const t5Headers: DataTableHeader[] = [ + {key: 'col1', header: 'First column'}, + {key: 'col2', header: 'Second column'} +]; +const t5 = ( + ) => ( + + + + + + {renderProps.headers.map(header => ( + + {header.header} + + ))} + + + + + {renderProps.rows.map(row => ( + + + + {row.cells.map(cell => ( + + {cell.value} + + ))} + + + + ))} + + + + )} + /> +); // UIShell - Link interface TestCompProps { @@ -184,3 +270,137 @@ const TestComp3 = (props: TestCompPropsOverwrite) => (
); const uisLinkT5 = ( element={TestComp3} someProp="asdf">Testing Overwrite ); + +// Dropdown +const dropdownItemCanBeElement = ( + (
This is my rich content
)} + itemToString={item => "Selected: " + item} + /> +); + +// TileGroup +// Value nor name can be undefined +let value: string|number = 5; +let name = "old name"; +const tileGroupA = ( + { + value = newVal; + name = newName; + }} + /> +); + +// TooltipDefinition +const tooltipDefHasAlign = ( + +); + +const tooltipDefHasTriggerClassName = ( + +); + +// Tabs +const tabCanBeDisabled = ( + {}} + handleTabClick={() => {}} + handleTabKeyDown={() => {}} + href="#" + tabIndex={0} + disabled + /> +); + +// Slider +const SliderHasOnChange = ( + newValue.value} + /> +); + +// TextArea +const textAreaWithDefaultRef = ( +