diff --git a/notNeededPackages.json b/notNeededPackages.json index e3483b3c4b..be57d76a49 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -576,11 +576,17 @@ "sourceRepoURL": "https://github.com/fastify/fastify-jwt", "asOfVersion": "0.8.1" }, + { + "libraryName": "fastify-multipart", + "typingsPackageName": "fastify-multipart", + "sourceRepoURL": "https://github.com/fastify/fastify-multipart", + "asOfVersion": "0.7.0" + }, { "libraryName": "fastify-static", "typingsPackageName": "fastify-static", "sourceRepoURL": "https://github.com/fastify/fastify-static", - "asOfVersion": "2.2.0" + "asOfVersion": "2.2.1" }, { "libraryName": "fecha", @@ -720,6 +726,12 @@ "sourceRepoURL": "https://github.com/prettymuchbryce/node-http-status", "asOfVersion": "1.2.0" }, + { + "libraryName": "i18next-xhr-backend", + "typingsPackageName": "i18next-xhr-backend", + "sourceRepoURL": "https://github.com/i18next/i18next-xhr-backend", + "asOfVersion": "1.4.2" + }, { "libraryName": "iconv-lite", "typingsPackageName": "iconv-lite", @@ -1278,6 +1290,12 @@ "sourceRepoURL": "https://github.com/i18next/react-i18next", "asOfVersion": "8.1.0" }, + { + "libraryName": "React Icons", + "typingsPackageName": "react-icons", + "sourceRepoURL": "https://www.npmjs.com/package/react-icons", + "asOfVersion": "3.0.0" + }, { "libraryName": "react-monaco-editor", "typingsPackageName": "react-monaco-editor", @@ -1626,6 +1644,12 @@ "sourceRepoURL": "http://gcanti.github.io/tcomb/guide/index.html", "asOfVersion": "2.6.0" }, + { + "libraryName": "terser", + "typingsPackageName": "terser", + "sourceRepoURL": "https://github.com/terser-js/terser", + "asOfVersion": "3.12.0" + }, { "libraryName": "timezonecomplete", "typingsPackageName": "timezonecomplete", diff --git a/types/abs/index.d.ts b/types/abs/index.d.ts index b5e8d23636..b1f31899d9 100644 --- a/types/abs/index.d.ts +++ b/types/abs/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for abs 1.3 -// Project: https://github.com/IonicaBizau/node-abs +// Project: https://github.com/ionicabizau/abs // Definitions by: Aya Morisawa // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/acorn/index.d.ts b/types/acorn/index.d.ts index e6a9291d1c..7fb55f4472 100644 --- a/types/acorn/index.d.ts +++ b/types/acorn/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Acorn 4.0 -// Project: https://github.com/marijnh/acorn +// Project: https://github.com/acornjs/acorn // Definitions by: RReverser , e-cloud // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activestorage/index.d.ts b/types/activestorage/index.d.ts index 2d749c84ec..e8214d2d8e 100644 --- a/types/activestorage/index.d.ts +++ b/types/activestorage/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for ActiveStorage 5.2 -// Project: https://github.com/rails/rails/tree/master/activestorage/app/javascipt +// Project: https://github.com/rails/rails/tree/master/activestorage/app/javascript, http://rubyonrails.org // Definitions by: Cameron Bothner // Definitions: https://github.com/cbothner/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/activex-access/index.d.ts b/types/activex-access/index.d.ts index d0bf798652..a1dae561bf 100644 --- a/types/activex-access/index.d.ts +++ b/types/activex-access/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Microsoft Access 14.0 Object Library - Access 14.0 +// Type definitions for non-npm package Microsoft Access 14.0 Object Library - Access 14.0 // Project: https://msdn.microsoft.com/en-us/library/dn142571.aspx // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activex-adodb/index.d.ts b/types/activex-adodb/index.d.ts index 580042cfa6..7c5fabd082 100644 --- a/types/activex-adodb/index.d.ts +++ b/types/activex-adodb/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Microsoft ActiveX Data Objects 6.0 Library - ADODB 6.1 +// Type definitions for non-npm package Microsoft ActiveX Data Objects 6.0 Library - ADODB 6.1 // Project: https://msdn.microsoft.com/en-us/library/jj249010.aspx // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activex-adox/index.d.ts b/types/activex-adox/index.d.ts index fd502684e4..87d273de52 100644 --- a/types/activex-adox/index.d.ts +++ b/types/activex-adox/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Microsoft ADO Extensions 6.0 for DDL and Security - ADOX 6.0 +// Type definitions for non-npm package Microsoft ADO Extensions 6.0 for DDL and Security - ADOX 6.0 // Project: https://docs.microsoft.com/en-us/sql/ado/reference/adox-api/adox-object-model // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activex-dao/index.d.ts b/types/activex-dao/index.d.ts index 0a13747514..c9cf55a367 100644 --- a/types/activex-dao/index.d.ts +++ b/types/activex-dao/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Microsoft Office 16.0 Access Database Engine Object Library - DAO 16.0 +// Type definitions for non-npm package Microsoft Office 16.0 Access Database Engine Object Library - DAO 16.0 // Project: https://msdn.microsoft.com/en-us/library/dn124645.aspx // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activex-diskquota/index.d.ts b/types/activex-diskquota/index.d.ts index 71b534ee0c..c47fc7bb46 100644 --- a/types/activex-diskquota/index.d.ts +++ b/types/activex-diskquota/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for DiskQuotaTypeLibrary 1.0 +// Type definitions for non-npm package DiskQuotaTypeLibrary 1.0 // Project: https://msdn.microsoft.com/en-us/library/windows/desktop/bb773938(v=vs.85).aspx // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activex-excel/index.d.ts b/types/activex-excel/index.d.ts index 6243d25e05..84144fa8dd 100644 --- a/types/activex-excel/index.d.ts +++ b/types/activex-excel/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Microsoft Excel 14.0 Object Library - Excel 14.0 +// Type definitions for non-npm package Microsoft Excel 14.0 Object Library - Excel 14.0 // Project: https://msdn.microsoft.com/en-us/library/fp179694.aspx // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activex-faxcomexlib/index.d.ts b/types/activex-faxcomexlib/index.d.ts index ffd2412ef3..17c9bded5f 100644 --- a/types/activex-faxcomexlib/index.d.ts +++ b/types/activex-faxcomexlib/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Microsoft Fax Service Extended COM Type Library - FAXCOMEXLib 1.0 +// Type definitions for non-npm package Microsoft Fax Service Extended COM Type Library - FAXCOMEXLib 1.0 // Project: https://msdn.microsoft.com/en-us/library/windows/desktop/ms684513(v=vs.85).aspx // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activex-infopath/index.d.ts b/types/activex-infopath/index.d.ts index 9cace4ec2e..fde4242456 100644 --- a/types/activex-infopath/index.d.ts +++ b/types/activex-infopath/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Microsoft InfoPath 3.0 Type Library - InfoPath 3.0 +// Type definitions for non-npm package Microsoft InfoPath 3.0 Type Library - InfoPath 3.0 // Project: https://msdn.microsoft.com/en-us/library/jj602751.aspx // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activex-interop/index.d.ts b/types/activex-interop/index.d.ts index d59b315fcb..15cd1ce260 100644 --- a/types/activex-interop/index.d.ts +++ b/types/activex-interop/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Javascript Automation interop 0.0 +// Type definitions for non-npm package Javascript Automation interop 0.0 // Project: https://msdn.microsoft.com/en-us/library/ff521046(v=vs.85).aspx // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activex-iwshruntimelibrary/index.d.ts b/types/activex-iwshruntimelibrary/index.d.ts index fad992e185..7553cbf7e0 100644 --- a/types/activex-iwshruntimelibrary/index.d.ts +++ b/types/activex-iwshruntimelibrary/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Windows Script Host Runtime Object Model 0.0 +// Type definitions for non-npm package Windows Script Host Runtime Object Model 0.0 // Project: https://msdn.microsoft.com/en-us/library/9bbdkx3k.aspx // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activex-libreoffice/index.d.ts b/types/activex-libreoffice/index.d.ts index 7d8e109861..08f1ea5bdc 100644 --- a/types/activex-libreoffice/index.d.ts +++ b/types/activex-libreoffice/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for LibreOffice 5.3 +// Type definitions for non-npm package LibreOffice 5.3 // Project: https://api.libreoffice.org/ // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activex-msforms/index.d.ts b/types/activex-msforms/index.d.ts index a9b5e8f8ac..01f2788b5b 100644 --- a/types/activex-msforms/index.d.ts +++ b/types/activex-msforms/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Microsoft Forms 2.0 Object Library - MSForms 2.0 +// Type definitions for non-npm package Microsoft Forms 2.0 Object Library - MSForms 2.0 // Project: https://msdn.microsoft.com/VBA/Language-Reference-VBA/articles/reference-microsoft-forms // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activex-mshtml/index.d.ts b/types/activex-mshtml/index.d.ts index 93b307d3ba..e2a2192990 100644 --- a/types/activex-mshtml/index.d.ts +++ b/types/activex-mshtml/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Microsoft HTML Object Library - MSHTML 4.0 +// Type definitions for non-npm package Microsoft HTML Object Library - MSHTML 4.0 // Project: https://msdn.microsoft.com/en-us/library/aa741317(v=vs.85).aspx // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activex-msxml2/index.d.ts b/types/activex-msxml2/index.d.ts index 3ee2b1f050..f4c5143b25 100644 --- a/types/activex-msxml2/index.d.ts +++ b/types/activex-msxml2/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Microsoft XML, v6.0 - MSXML2 6.0 +// Type definitions for non-npm package Microsoft XML, v6.0 - MSXML2 6.0 // Project: https://msdn.microsoft.com/en-us/library/ms763742.aspx // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activex-office/index.d.ts b/types/activex-office/index.d.ts index 6df01eb16e..37eaacec1a 100644 --- a/types/activex-office/index.d.ts +++ b/types/activex-office/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Microsoft Office 16.0 Object Library - Office 16.0 +// Type definitions for non-npm package Microsoft Office 16.0 Object Library - Office 16.0 // Project: https://msdn.microsoft.com/VBA/Office-Shared-VBA/articles/office-vba-object-library-reference // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activex-outlook/index.d.ts b/types/activex-outlook/index.d.ts index 4789c10e19..a0910c380f 100644 --- a/types/activex-outlook/index.d.ts +++ b/types/activex-outlook/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Microsoft Outlook 14.0 Object Library - Outlook 14.0 +// Type definitions for non-npm package Microsoft Outlook 14.0 Object Library - Outlook 14.0 // Project: https://msdn.microsoft.com/en-us/vba/vba-outlook // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activex-powerpoint/index.d.ts b/types/activex-powerpoint/index.d.ts index 34e722a8a0..de32768dda 100644 --- a/types/activex-powerpoint/index.d.ts +++ b/types/activex-powerpoint/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Microsoft PowerPoint 14.0 Object Library - PowerPoint 14.0 +// Type definitions for non-npm package Microsoft PowerPoint 14.0 Object Library - PowerPoint 14.0 // Project: https://msdn.microsoft.com/en-us/library/fp161225.aspx // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activex-scripting/index.d.ts b/types/activex-scripting/index.d.ts index 0d2ae52343..7d3e5a4404 100644 --- a/types/activex-scripting/index.d.ts +++ b/types/activex-scripting/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Microsoft Scripting Runtime 1.0 +// Type definitions for non-npm package Microsoft Scripting Runtime 1.0 // Project: https://msdn.microsoft.com/en-us/library/bstcxhf7(v=vs.84).aspx // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activex-shdocvw/index.d.ts b/types/activex-shdocvw/index.d.ts index f450ea6112..bb5ce25509 100644 --- a/types/activex-shdocvw/index.d.ts +++ b/types/activex-shdocvw/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Microsoft Internet Controls - SHDocVw 1.1 +// Type definitions for non-npm package Microsoft Internet Controls - SHDocVw 1.1 // Project: https://msdn.microsoft.com/en-us/library/aa752040(v=vs.85).aspx // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activex-shell/index.d.ts b/types/activex-shell/index.d.ts index f12d135979..1f5946f8b8 100644 --- a/types/activex-shell/index.d.ts +++ b/types/activex-shell/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Microsoft Shell Controls And Automation - Shell32 1.0 +// Type definitions for non-npm package Microsoft Shell Controls And Automation - Shell32 1.0 // Project: https://msdn.microsoft.com/en-us/library/windows/desktop/bb773938(v=vs.85).aspx // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activex-stdole/index.d.ts b/types/activex-stdole/index.d.ts index 070a84a30a..403a1b012e 100644 --- a/types/activex-stdole/index.d.ts +++ b/types/activex-stdole/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for OLE Automation - stdole 2.0 +// Type definitions for non-npm package OLE Automation - stdole 2.0 // Project: https://msdn.microsoft.com/en-us/library/hh272953.aspx // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activex-vbide/index.d.ts b/types/activex-vbide/index.d.ts index 88594969e6..8d854043df 100644 --- a/types/activex-vbide/index.d.ts +++ b/types/activex-vbide/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Microsoft Visual Basic for Applications Extensibility 5.3 - VBIDE 14.0 +// Type definitions for non-npm package Microsoft Visual Basic for Applications Extensibility 5.3 - VBIDE 14.0 // Project: https://msdn.microsoft.com/en-us/vba/language-reference-vba/articles/collections-visual-basic-add-in-model // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activex-wia/index.d.ts b/types/activex-wia/index.d.ts index 5a06471ff8..6438d4d87f 100644 --- a/types/activex-wia/index.d.ts +++ b/types/activex-wia/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Windows Image Acquisition 2.0 +// Type definitions for non-npm package Windows Image Acquisition 2.0 // Project: https://msdn.microsoft.com/en-us/library/windows/desktop/ms630368(v=vs.85).aspx // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/activex-word/index.d.ts b/types/activex-word/index.d.ts index f6f559ae16..5059f7feb0 100644 --- a/types/activex-word/index.d.ts +++ b/types/activex-word/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Microsoft Word 14.0 Object Library - Word 14.0 +// Type definitions for non-npm package Microsoft Word 14.0 Object Library - Word 14.0 // Project: https://msdn.microsoft.com/en-us/library/fp179696.aspx // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/adlib/index.d.ts b/types/adlib/index.d.ts index 8866ab7809..5bad2bac2e 100644 --- a/types/adlib/index.d.ts +++ b/types/adlib/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for adlib 3.0 -// Project: https://github.com/Esri/adlib +// Project: https://github.com/Esri/adlib, https://arcgis.github.io/ember-arcgis-adlib-service // Definitions by: Esri // Mike Tschudi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/ajv-merge-patch/ajv-merge-patch-tests.ts b/types/ajv-merge-patch/ajv-merge-patch-tests.ts new file mode 100644 index 0000000000..bc09e41aa0 --- /dev/null +++ b/types/ajv-merge-patch/ajv-merge-patch-tests.ts @@ -0,0 +1,7 @@ +import * as Ajv from "ajv"; + +import ajvMergePatch = require("ajv-merge-patch"); + +const ajv = new Ajv(); + +ajvMergePatch(ajv); // $ExpectType void diff --git a/types/ajv-merge-patch/index.d.ts b/types/ajv-merge-patch/index.d.ts new file mode 100644 index 0000000000..9371031667 --- /dev/null +++ b/types/ajv-merge-patch/index.d.ts @@ -0,0 +1,11 @@ +// Type definitions for ajv-merge-patch 4.1 +// Project: https://github.com/epoberezkin/ajv-merge-patch#readme +// Definitions by: Zhu Zijia +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +import { Ajv } from "ajv"; + +declare function ajvMergePatch(ajv: Ajv): void; + +export = ajvMergePatch; diff --git a/types/ajv-merge-patch/package.json b/types/ajv-merge-patch/package.json new file mode 100644 index 0000000000..8babfde009 --- /dev/null +++ b/types/ajv-merge-patch/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "ajv": ">=4.1.0" + } +} diff --git a/types/ajv-merge-patch/tsconfig.json b/types/ajv-merge-patch/tsconfig.json new file mode 100644 index 0000000000..2bce6577de --- /dev/null +++ b/types/ajv-merge-patch/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", + "ajv-merge-patch-tests.ts" + ] +} diff --git a/types/fastify-multipart/tslint.json b/types/ajv-merge-patch/tslint.json similarity index 100% rename from types/fastify-multipart/tslint.json rename to types/ajv-merge-patch/tslint.json diff --git a/types/alexa-sdk/index.d.ts b/types/alexa-sdk/index.d.ts index 56278df11c..dd2aa5ce99 100644 --- a/types/alexa-sdk/index.d.ts +++ b/types/alexa-sdk/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Alexa SDK for Node.js 1.1 -// Project: https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs +// Project: https://github.com/alexa/alexa-skill-sdk-for-nodejs // Definitions by: Pete Beegle // Huw // pascalwhoop diff --git a/types/alexa-voice-service/index.d.ts b/types/alexa-voice-service/index.d.ts index eb639729fd..dd75ab3fa1 100644 --- a/types/alexa-voice-service/index.d.ts +++ b/types/alexa-voice-service/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for alexa-voice-service 0.0 -// Project: https://github.com/miguelmota/alexa-voice-service.js +// Project: https://github.com/miguelmota/alexa-voice-service // Definitions by: Dolan Miu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/algoliasearch-helper/algoliasearch-helper-tests.ts b/types/algoliasearch-helper/algoliasearch-helper-tests.ts new file mode 100644 index 0000000000..9f056d3610 --- /dev/null +++ b/types/algoliasearch-helper/algoliasearch-helper-tests.ts @@ -0,0 +1,325 @@ +import * as algoliasearch from 'algoliasearch'; +import * as algoliasearchHelper from 'algoliasearch-helper'; +// tslint:disable-next-line:no-duplicate-imports +import { SearchResults, SearchParameters } from 'algoliasearch-helper'; + +// https://community.algolia.com/algoliasearch-helper-js/reference.html#module:algoliasearchHelper + +const client = algoliasearch('latency', '6be0576ff61c053d5f9a3225e2a90f76'); +const helper = algoliasearchHelper(client, 'bestbuy', { + facets: ['shipping'], + disjunctiveFacets: ['category'] +}); +helper.on('result', (result) => { + console.log(result); +}); +helper.toggleRefine('Movies & TV Shows') + .toggleRefine('Free shipping') + .search(); + +const updateTheResult = (results: SearchResults, state: SearchParameters) => { + console.log(results, state); +}; +helper.on('result', updateTheResult); +helper.once('result', updateTheResult); +helper.removeListener('result', updateTheResult); +helper.removeAllListeners('result'); + +() => { + // Changing the number of records returned per page to 1 + // This example uses the callback API + const state = helper.searchOnce({hitsPerPage: 1}, + (error, content: SearchResults, state: SearchParameters) => {}); + + // Changing the number of records returned per page to 1 + // This example uses the promise API + const state1 = helper.searchOnce({hitsPerPage: 1}) + .then(promiseHandler); + + function promiseHandler(res: {content: SearchResults, state: SearchParameters}) { + // res contains + // { + // content : SearchResults + // state : SearchParameters (the one used for this specific search) + // } + } +}; + +helper.setIndex('highestPrice_products').getIndex(); +helper.setPage(0).nextPage().getPage(); +helper.setPage(1).previousPage().getPage(); +helper.setQueryParameter('hitsPerPage', 20).search(); +const hitsPerPage = helper.getQueryParameter('hitsPerPage'); +helper.addFacetRefinement('film-genre', 'comedy'); +helper.addFacetRefinement('film-genre', 'science-fiction'); + +() => { + const indexName = 'test'; + const helper2 = algoliasearchHelper(client, indexName, { + facets: ['nameOfTheAttribute'] + }); +}; + +// Removing all the refinements +helper.clearRefinements().search(); + +// Removing all the filters on a the category attribute. +helper.clearRefinements('category').search(); + +// Removing only the exclude filters on the category facet. +helper.clearRefinements((value, attribute, type) => { + return type === 'exclude' && attribute === 'category'; +}).search(); + +// https://community.algolia.com/algoliasearch-helper-js/reference.html#AlgoliaSearchHelper#hasRefinements + +helper.hasRefinements('price'); // false +helper.addNumericRefinement('price', '>', 100); +helper.hasRefinements('price'); // true + +helper.hasRefinements('color'); // false +helper.addFacetRefinement('color', 'blue'); +helper.hasRefinements('color'); // true + +helper.hasRefinements('material'); // false +helper.addDisjunctiveFacetRefinement('material', 'plastic'); +helper.hasRefinements('material'); // true + +helper.hasRefinements('categories'); // false +helper.toggleFacetRefinement('categories', 'kitchen > knife'); +helper.hasRefinements('categories'); // true + +// https://community.algolia.com/algoliasearch-helper-js/reference.html#AlgoliaSearchHelper#getRefinements + +helper.addNumericRefinement('price', '>', 100); +helper.getRefinements('price'); + +helper.addFacetRefinement('color', 'blue'); +helper.addFacetExclusion('color', 'red'); +helper.getRefinements('color'); + +helper.addDisjunctiveFacetRefinement('material', 'plastic'); + +helper.addDisjunctiveFacetRefinement('tech', 'crt'); +helper.addDisjunctiveFacetRefinement('tech', 'led'); +helper.addDisjunctiveFacetRefinement('tech', 'plasma'); + +() => { + const helper2 = algoliasearchHelper(client, 'test', { + disjunctiveFacets: ['nameOfTheAttribute'] + }); +}; + +// https://community.algolia.com/algoliasearch-helper-js/reference.html#AlgoliaSearchHelper#hasRefinements + +// hasRefinements works with numeric, conjunctive, disjunctive and hierarchical filters +helper.hasRefinements('price'); // false +helper.addNumericRefinement('price', '>', 100); +helper.hasRefinements('price'); // true + +helper.hasRefinements('color'); // false +helper.addFacetRefinement('color', 'blue'); +helper.hasRefinements('color'); // true + +helper.hasRefinements('material'); // false +helper.addDisjunctiveFacetRefinement('material', 'plastic'); +helper.hasRefinements('material'); // true + +helper.hasRefinements('categories'); // false +helper.toggleFacetRefinement('categories', 'kitchen > knife'); +helper.hasRefinements('categories'); // true + +// https://community.algolia.com/algoliasearch-helper-js/reference.html#SearchResults#getFacetValues +helper.on('result', (content) => { + // get values ordered only by name ascending using the string predicate + content.getFacetValues('city', {sortBy: ['name:asc']}); + // get values ordered only by count ascending using a function + content.getFacetValues('city', { + // this is equivalent to ['count:asc'] + sortBy(a: { count: number }, b: { count: number }) { + if (a.count === b.count) return 0; + if (a.count > b.count) return 1; + if (b.count > a.count) return -1; + } + }); +}); + +// https://community.algolia.com/algoliasearch-helper-js/reference.html#SearchParameters#addTagRefinement + +const searchparameter = new SearchParameters(); + +// for price = 50 or 40 +searchparameter.addNumericRefinement('price', '=', [50, 40]); + +// for size = 38 and 40 +searchparameter.addNumericRefinement('size', '=', 38); +searchparameter.addNumericRefinement('size', '=', 40); + +let queryParameters = new SearchParameters({}); // everything is optional +queryParameters = new SearchParameters({ + advancedSyntax: true, + allowTyposOnNumericTokens: true, + analytics: true, + analyticsTags: ['test'], + aroundLatLng: 'latitude', + aroundLatLngViaIP: true, + aroundPrecision: 1, + aroundRadius: 1, + attributesToHighlight: ['test'], + attributesToRetrieve: ['test'], + attributesToSnippet: ['test'], + disableExactOnAttributes: ['test'], + disjunctiveFacets: ['test'], + disjunctiveFacetsRefinements: { test: ['test'] }, + distinct: 2, + enableExactOnSingleWordQuery: true, + facets: ['test'], + facetsExcludes: { test: ['test'] }, + facetsRefinements: { test: ['test'] }, + getRankingInfo: true, + hierarchicalFacets: ['test'], + hierarchicalFacetsRefinements: { test: ['test'] }, + highlightPostTag: 'test', + highlightPreTag: 'test', + hitsPerPage: 1, + ignorePlurals: true, + index: 'test', + insideBoundingBox: [[1, 2, 3, 4]], + insidePolygon: [[1, 2, 3, 4]], + length: 2, + maxValuesPerFacet: 1, + minimumAroundRadius: 1, + minProximity: 1, + minWordSizefor1Typo: 1, + minWordSizefor2Typos: 1, + numericFilters: ['test'], + numericRefinements: { test: { '=': [1], '>': [[2, 3]] } }, + offset: 1, + optionalFacetFilters: 'test', + optionalTagFilters: 'test', + optionalWords: ['test'], + page: 1, + query: 'test', + queryType: 'prefixAll', + removeWordsIfNoResults: 'none', + replaceSynonymsInHighlight: true, + restrictSearchableAttributes: ['test'], + snippetEllipsisText: '...', + synonyms: true, + tagFilters: ['test'], + tagRefinements: ['test'], + typoTolerance: true, +}); + +queryParameters.advancedSyntax; +queryParameters.allowTyposOnNumericTokens; +queryParameters.analytics; +queryParameters.analyticsTags; +queryParameters.aroundLatLng; +queryParameters.aroundLatLngViaIP; +queryParameters.aroundPrecision; +queryParameters.aroundRadius; +queryParameters.attributesToHighlight; +queryParameters.attributesToRetrieve; +queryParameters.attributesToSnippet; +queryParameters.disableExactOnAttributes; +queryParameters.disjunctiveFacets; +queryParameters.disjunctiveFacetsRefinements; +queryParameters.distinct; +queryParameters.enableExactOnSingleWordQuery; +queryParameters.facets; +queryParameters.facetsExcludes; +queryParameters.facetsRefinements; +queryParameters.getRankingInfo; +queryParameters.hierarchicalFacets; +queryParameters.hierarchicalFacetsRefinements; +queryParameters.highlightPostTag; +queryParameters.highlightPreTag; +queryParameters.hitsPerPage; +queryParameters.ignorePlurals; +queryParameters.index; +queryParameters.insideBoundingBox; +queryParameters.insidePolygon; +queryParameters.length; +queryParameters.maxValuesPerFacet; +queryParameters.minimumAroundRadius; +queryParameters.minProximity; +queryParameters.minWordSizefor1Typo; +queryParameters.minWordSizefor2Typos; +queryParameters.numericFilters; +queryParameters.numericRefinements; +queryParameters.offset; +queryParameters.optionalFacetFilters; +queryParameters.optionalTagFilters; +queryParameters.optionalWords; +queryParameters.page; +queryParameters.query; +queryParameters.queryType; +queryParameters.removeWordsIfNoResults; +queryParameters.replaceSynonymsInHighlight; +queryParameters.restrictSearchableAttributes; +queryParameters.snippetEllipsisText; +queryParameters.synonyms; +queryParameters.tagFilters; +queryParameters.tagRefinements; +queryParameters.typoTolerance; + +queryParameters.addDisjunctiveFacet('test'); +queryParameters.addDisjunctiveFacetRefinement('test', 'test'); +queryParameters.addExcludeRefinement('test', 'test'); +queryParameters.addFacet('test'); +queryParameters.addFacetRefinement('test', 'test'); +queryParameters.addHierarchicalFacet({}); +queryParameters.addHierarchicalFacetRefinement('test', 'test'); +queryParameters.addNumericRefinement('test', '>', [7]); +queryParameters.addTagRefinement('test'); +queryParameters.clearRefinements('test'); +queryParameters.clearTags(); +queryParameters.filter(['test']); +queryParameters.getConjunctiveRefinements('test'); +queryParameters.getDisjunctiveRefinements('test'); +queryParameters.getExcludeRefinements('test'); +queryParameters.getHierarchicalFacetBreadcrumb('test'); +queryParameters.getHierarchicalFacetByName('test'); +queryParameters.getHierarchicalRefinement('test'); +queryParameters.getNumericRefinement('test', '='); +queryParameters.getNumericRefinements('test'); +queryParameters.getQueryParameter('test'); +queryParameters.getRefinedDisjunctiveFacets('test', {}); +queryParameters.getRefinedHierarchicalFacets('test', {}); +queryParameters.getUnrefinedDisjunctiveFacets(); +queryParameters.isConjunctiveFacet('test'); +queryParameters.isDisjunctiveFacet('test'); +queryParameters.isDisjunctiveFacetRefined('test', 'test'); +queryParameters.isExcludeRefined('test', 'test'); +queryParameters.isFacetRefined('test', 'test'); +queryParameters.isHierarchicalFacet('test'); +queryParameters.isHierarchicalFacetRefined('test', 'test'); +queryParameters.isNumericRefined('test', '>', 'test'); +queryParameters.isTagRefined('test'); +queryParameters.removeDisjunctiveFacet('test'); +queryParameters.removeDisjunctiveFacetRefinement('test', 'test'); +queryParameters.removeExcludeRefinement('test', 'test'); +queryParameters.removeFacet('test'); +queryParameters.removeFacetRefinement('test', 'test'); +queryParameters.removeHierarchicalFacet('test'); +queryParameters.removeHierarchicalFacetRefinement('test'); +queryParameters.removeTagRefinement('test'); +queryParameters.setDisjunctiveFacets(['test']); +queryParameters.setFacets(['test']); +queryParameters.setHitsPerPage(1); +queryParameters.setPage(1); +queryParameters.setQuery('test'); +queryParameters.setQueryParameter('test', {}); +queryParameters.setQueryParameters({ test: {} }); +queryParameters.setTypoTolerance('test'); +queryParameters.toggleConjunctiveFacetRefinement('test', {}); +queryParameters.toggleDisjunctiveFacetRefinement('test', {}); +queryParameters.toggleExcludeFacetRefinement('test', {}); +queryParameters.toggleFacetRefinement('test', {}); +queryParameters.toggleHierarchicalFacetRefinement('test', {}); +queryParameters.toggleTagRefinement('test'); + +// static methods +SearchParameters.make(queryParameters); +SearchParameters.validate(queryParameters, { queryType: 'prefixAll' }); diff --git a/types/algoliasearch-helper/index.d.ts b/types/algoliasearch-helper/index.d.ts new file mode 100644 index 0000000000..eb92a2118f --- /dev/null +++ b/types/algoliasearch-helper/index.d.ts @@ -0,0 +1,747 @@ +// Type definitions for algoliasearch-helper 2.26 +// Project: https://community.algolia.com/algoliasearch-helper-js/ +// Definitions by: Gordon Burgett +// Haroen Viaene +// Samuel Vaillant +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.8 + +import { Client } from 'algoliasearch'; +import { EventEmitter } from 'events'; +import algoliasearch = require('algoliasearch'); + +/** + * The algoliasearchHelper module is the function that will let its + * contains everything needed to use the Algoliasearch + * Helper. It is a also a function that instanciate the helper. + * To use the helper, you also need the Algolia JS client v3. + * @param client an AlgoliaSearch client + * @param index the name of the index to query + * @param opts + */ +declare function algoliasearchHelper(client: Client, index: string, opts: algoliasearchHelper.QueryParameters): algoliasearchHelper.AlgoliaSearchHelper; + +declare namespace algoliasearchHelper { + export const version: string; + + export class AlgoliaSearchHelper extends EventEmitter { + state: SearchParameters; + lastResults: SearchResults; + derivedHelpers: AlgoliaSearchHelper[]; + + on(event: 'change' | 'search', cb: (state: SearchParameters, lastResults: SearchResults | null) => any): this; + on(event: 'searchForFacetValues', cb: (state: SearchParameters, facet: string, query: string) => any): this; + on(event: 'searchOnce', cb: (state: SearchParameters) => any): this; + on(event: 'result', cb: (results: SearchResults, state: SearchParameters) => any): this; + on(event: 'error', cb: (error: any) => any): this; + on(event: 'searchQueueEmpty', cb: () => any): this; + + /** + * Start the search with the parameters set in the state. When the + * method is called, it triggers a `search` event. The results will + * be available through the `result` event. If an error occurs, an + * `error` will be fired instead. + * @return + * @fires search + * @fires result + * @fires error + * @chainable + */ + search(): this; + + /** + * Gets the search query parameters that would be sent to the Algolia Client + * for the hits + * @return Query Parameters + */ + getQuery(): QueryParameters; + + /** + * Start a search using a modified version of the current state. This method does + * not trigger the helper lifecycle and does not modify the state kept internally + * by the helper. This second aspect means that the next search call will be the + * same as a search call before calling searchOnce. + * @param options can contain all the parameters that can be set to SearchParameters + * plus the index + * @param [callback] optional callback executed when the response from the + * server is back. + * @return if a callback is passed the method returns undefined + * otherwise it returns a promise containing an object with two keys : + * - content with a SearchResults + * - state with the state used for the query as a SearchParameters + * @example + * // Changing the number of records returned per page to 1 + * // This example uses the callback API + * var state = helper.searchOnce({hitsPerPage: 1}, + * function(error, content, state) { + * // if an error occurred it will be passed in error, otherwise its value is null + * // content contains the results formatted as a SearchResults + * // state is the instance of SearchParameters used for this search + * }); + * @example + * // Changing the number of records returned per page to 1 + * // This example uses the promise API + * var state1 = helper.searchOnce({hitsPerPage: 1}) + * .then(promiseHandler); + * + * function promiseHandler(res) { + * // res contains + * // { + * // content : SearchResults + * // state : SearchParameters (the one used for this specific search) + * // } + * } + */ + searchOnce(options: QueryParameters): Promise<{ content: SearchResults, state: SearchParameters }>; + searchOnce(options: QueryParameters, cb: (error: any, content: SearchResults, state: SearchParameters) => any): undefined; + + /** + * Search for facet values based on an query and the name of a faceted attribute. This + * triggers a search and will return a promise. On top of using the query, it also sends + * the parameters from the state so that the search is narrowed down to only the possible values. + * + * See the description of [FacetSearchResult](reference.html#FacetSearchResult) + * @param facet the name of the faceted attribute + * @param query the string query for the search + * @param [maxFacetHits] the maximum number values returned. Should be > 0 and <= 100 + * @param [userState] the set of custom parameters to use on top of the current state. Setting a property to `undefined` removes + * it in the generated query. + * @return the results of the search + */ + searchForFacetValues(facet: string, query: string, maxFacetHits: number, userState: any): Promise; + + /** + * Sets the text query used for the search. + * + * This method resets the current page to 0. + * @param q the user query + * @return + * @fires change + * @chainable + */ + setQuery(q: string): this; + + /** + * Remove all the types of refinements except tags. A string can be provided to remove + * only the refinements of a specific attribute. For more advanced use case, you can + * provide a function instead. This function should follow the + * [clearCallback definition](#SearchParameters.clearCallback). + * + * This method resets the current page to 0. + * @param [name] optional name of the facet / attribute on which we want to remove all refinements + * @return + * @fires change + * @chainable + * @example + * // Removing all the refinements + * helper.clearRefinements().search(); + * @example + * // Removing all the filters on a the category attribute. + * helper.clearRefinements('category').search(); + * @example + * // Removing only the exclude filters on the category facet. + * helper.clearRefinements(function(value, attribute, type) { + * return type === 'exclude' && attribute === 'category'; + * }).search(); + */ + clearRefinements(name?: string): this; + clearRefinements(func: (value: any, attribute: string, type: string) => boolean): this; + + /** + * Remove all the tag filters. + * + * This method resets the current page to 0. + * @return + * @fires change + * @chainable + */ + clearTags(): this; + + /** + * Updates the name of the index that will be targeted by the query. + * + * This method resets the current page to 0. + * @param name the index name + * @return + * @fires change + * @chainable + */ + setIndex(name: string): this; + + addDisjunctiveFacetRefinement(...args: any[]): any; + addDisjunctiveRefine(...args: any[]): any; + addHierarchicalFacetRefinement(...args: any[]): any; + addNumericRefinement(...args: any[]): any; + addFacetRefinement(...args: any[]): any; + addRefine(...args: any[]): any; + addFacetExclusion(...args: any[]): any; + addExclude(...args: any[]): any; + addTag(...args: any[]): any; + removeNumericRefinement(...args: any[]): any; + removeDisjunctiveFacetRefinement(...args: any[]): any; + removeDisjunctiveRefine(...args: any[]): any; + removeHierarchicalFacetRefinement(...args: any[]): any; + removeFacetRefinement(...args: any[]): any; + removeRefine(...args: any[]): any; + removeFacetExclusion(...args: any[]): any; + removeExclude(...args: any[]): any; + removeTag(...args: any[]): any; + toggleFacetExclusion(...args: any[]): any; + toggleExclude(...args: any[]): any; + toggleRefinement(...args: any[]): any; + toggleFacetRefinement(...args: any[]): any; + toggleRefine(...args: any[]): any; + toggleTag(...args: any[]): any; + nextPage(...args: any[]): any; + previousPage(...args: any[]): any; + setCurrentPage(...args: any[]): any; + setPage(...args: any[]): any; + setQueryParameter(...args: any[]): any; + + /** + * Set the whole state (warning: will erase previous state) + * @param newState the whole new state + * @return + * @fires change + * @chainable + */ + setState(newState: QueryParameters): this; + + /** + * Get the current search state stored in the helper. This object is immutable. + * @param [filters] optional filters to retrieve only a subset of the state + * @return if filters is specified a plain object is + * returned containing only the requested fields, otherwise return the unfiltered + * state + * @example + * // Get the complete state as stored in the helper + * helper.getState(); + * @example + * // Get a part of the state with all the refinements on attributes and the query + * helper.getState(['query', 'attribute:category']); + */ + getState(): SearchParameters; + getState(filters: string[]): QueryParameters; + + getStateAsQueryString(...args: any[]): any; + setStateFromQueryString(...args: any[]): any; + overrideStateWithoutTriggeringChangeEvent(...args: any[]): any; + isRefined(...args: any[]): any; + hasRefinements(...args: any[]): any; + isExcluded(...args: any[]): any; + isDisjunctiveRefined(...args: any[]): any; + hasTag(...args: any[]): any; + isTagRefined(...args: any[]): any; + getIndex(...args: any[]): any; + getCurrentPage(...args: any[]): any; + getPage(...args: any[]): any; + getTags(...args: any[]): any; + getQueryParameter(...args: any[]): any; + getRefinements(...args: any[]): any; + getNumericRefinement(...args: any[]): any; + getHierarchicalFacetBreadcrumb(...args: any[]): any; + containsRefinement(...args: any[]): any; + clearCache(...args: any[]): any; + setClient(...args: any[]): any; + getClient(...args: any[]): any; + derive(...args: any[]): any; + detachDerivedHelper(...args: any[]): any; + hasPendingRequests(...args: any[]): any; + } + + namespace AlgoliaSearchHelper { + /** + * Structure of each result when using + * [`searchForFacetValues()`](reference.html#AlgoliaSearchHelper#searchForFacetValues) + */ + interface FacetSearchHit { + value: string; + highlighted: string; + count: number; + isRefined: boolean; + } + + /** + * Structure of the data resolved by the + * [`searchForFacetValues()`](reference.html#AlgoliaSearchHelper#searchForFacetValues) + * promise. + */ + interface FacetSearchResult { + facetHits: FacetSearchHit; + processingTimeMS: number; + } + } + + export interface QueryParameters extends algoliasearch.QueryParameters { + /** + * Targeted index. This parameter is mandatory. + */ + index?: string; + /** + * This attribute contains the list of all the disjunctive facets + * used. This list will be added to requested facets in the + * [facets attribute](https://www.algolia.com/doc/rest-api/search#param-facets) sent to algolia. + */ + disjunctiveFacets?: string[]; + /** + * This attribute contains the list of all the hierarchical facets + * used. This list will be added to requested facets in the + * [facets attribute](https://www.algolia.com/doc/rest-api/search#param-facets) sent to algolia. + * Hierarchical facets are a sub type of disjunctive facets that + * let you filter faceted attributes hierarchically. + */ + hierarchicalFacets?: string[] | object[]; + + // Refinements + /** + * This attribute contains all the filters that need to be + * applied on the conjunctive facets. Each facet must be properly + * defined in the `facets` attribute. + * + * The key is the name of the facet, and the `FacetList` contains all + * filters selected for the associated facet name. + * + * When querying algolia, the values stored in this attribute will + * be translated into the `facetFilters` attribute. + */ + facetsRefinements?: { [facet: string]: SearchParameters.FacetList }; + /** + * This attribute contains all the filters that need to be + * excluded from the conjunctive facets. Each facet must be properly + * defined in the `facets` attribute. + * + * The key is the name of the facet, and the `FacetList` contains all + * filters excluded for the associated facet name. + * + * When querying algolia, the values stored in this attribute will + * be translated into the `facetFilters` attribute. + */ + facetsExcludes?: { [facet: string]: SearchParameters.FacetList }; + /** + * This attribute contains all the filters that need to be + * applied on the disjunctive facets. Each facet must be properly + * defined in the `disjunctiveFacets` attribute. + * + * The key is the name of the facet, and the `FacetList` contains all + * filters selected for the associated facet name. + * + * When querying algolia, the values stored in this attribute will + * be translated into the `facetFilters` attribute. + */ + disjunctiveFacetsRefinements?: { [facet: string]: SearchParameters.FacetList }; + /** + * This attribute contains all the filters that need to be + * applied on the numeric attributes. + * + * The key is the name of the attribute, and the value is the + * filters to apply to this attribute. + * + * When querying algolia, the values stored in this attribute will + * be translated into the `numericFilters` attribute. + */ + numericRefinements?: { [facet: string]: SearchParameters.OperatorList }; + /** + * This attribute contains all the tags used to refine the query. + * + * When querying algolia, the values stored in this attribute will + * be translated into the `tagFilters` attribute. + */ + tagRefinements?: string[]; + /** + * This attribute contains all the filters that need to be + * applied on the hierarchical facets. Each facet must be properly + * defined in the `hierarchicalFacets` attribute. + * + * The key is the name of the facet, and the `FacetList` contains all + * filters selected for the associated facet name. The FacetList values + * are structured as a string that contain the values for each level + * separated by the configured separator. + * + * When querying algolia, the values stored in this attribute will + * be translated into the `facetFilters` attribute. + */ + hierarchicalFacetsRefinements?: { [facet: string]: SearchParameters.FacetList }; + + /** + * Contains the optional tag filters in the raw format of the Algolia API. + * @see https://www.algolia.com/doc/rest#param-tagFilters + */ + optionalTagFilters?: string; + + /** + * Contains the optional facet filters in the raw format of the Algolia API. + * @see https://www.algolia.com/doc/rest#param-tagFilters + */ + optionalFacetFilters?: string; + + // Misc. parameters + /** + * Applies 'exact' on single word queries if the word contains at least 3 characters + * and is not a stop word. + * Can take two values?: true or false. + * By default, its set to false. + * @see https://www.algolia.com/doc/rest#param-enableExactOnSingleWordQuery + */ + enableExactOnSingleWordQuery?: boolean; + } + + export class SearchParameters implements QueryParameters { + index?: string ; + disjunctiveFacets?: string[] ; + hierarchicalFacets?: string[] | object[] ; + facetsRefinements?: { [facet: string]: string[]; } ; + facetsExcludes?: { [facet: string]: string[]; } ; + disjunctiveFacetsRefinements?: { [facet: string]: string[]; } ; + numericRefinements?: { [facet: string]: SearchParameters.OperatorList }; + tagRefinements?: string[] ; + hierarchicalFacetsRefinements?: { [facet: string]: string[]; } ; + optionalTagFilters?: string ; + optionalFacetFilters?: string ; + hitsPerPage?: number ; + maxValuesPerFacet?: number ; + minWordSizefor1Typo?: number ; + minWordSizefor2Typos?: number ; + minProximity?: any; + allowTyposOnNumericTokens?: boolean ; + ignorePlurals?: boolean ; + advancedSyntax?: boolean ; + analytics?: boolean ; + synonyms?: boolean ; + replaceSynonymsInHighlight?: boolean ; + highlightPreTag?: string ; + highlightPostTag?: string ; + distinct?: number | boolean ; + aroundLatLng?: string ; + aroundRadius?: number ; + minimumAroundRadius?: number ; + aroundPrecision?: number ; + snippetEllipsisText?: string; + enableExactOnSingleWordQuery?: boolean ; + query?: string ; + filters?: string ; + attributesToRetrieve?: string[] ; + restrictSearchableAttributes?: string[] ; + facets?: string[] ; + facetingAfterDistinct?: boolean ; + attributesToHighlight?: string[] ; + attributesToSnippet?: string[] ; + restrictHighlightAndSnippetArrays?: boolean ; + page?: number ; + offset?: number ; + length?: number ; + typoTolerance?: boolean ; + disableTypoToleranceOnAttributes?: string[] ; + aroundLatLngViaIP?: boolean ; + insideBoundingBox?: number[][] ; + queryType?: "prefixAll" | "prefixLast" | "prefixNone" ; + insidePolygon?: number[][] ; + removeWordsIfNoResults?: "none" | "lastWords" | "firstWords" | "allOptional" ; + optionalWords?: string[] ; + removeStopWords?: boolean | string[] ; + disableExactOnAttributes?: string[] ; + exactOnSingleWordQuery?: "none" | "attribute" | "word" ; + alternativesAsExact?: Array<"ignorePlurals" | "singleWordSynonym" | "multiWordsSynonym"> ; + getRankingInfo?: boolean ; + numericAttributesToIndex?: string[] ; + numericAttributesForFiltering?: string[] ; + numericFilters?: string[] ; + tagFilters?: string[] ; + facetFilters?: string[] | string[][] ; + analyticsTags?: string[] ; + nbShards?: number ; + userData?: string | object ; + + constructor(newParameters?: QueryParameters) + + /* Add a disjunctive facet to the disjunctiveFacets attribute of the helper configuration, if it isn't already present. */ + addDisjunctiveFacet(facet: string): SearchParameters; + /* Adds a refinement on a disjunctive facet. */ + addDisjunctiveFacetRefinement(facet: string, value: string): SearchParameters; + /* Exclude a value from a "normal" facet */ + addExcludeRefinement(facet: string, value: string): SearchParameters; + /* Add a facet to the facets attribute of the helper configuration, if it isn't already present. */ + addFacet(facet: string): SearchParameters; + /* Add a refinement on a "normal" facet */ + addFacetRefinement(facet: string, value: string): SearchParameters; + addHierarchicalFacet(facet: any): SearchParameters; + addHierarchicalFacetRefinement(facet: string, path: string): SearchParameters; + addNumericRefinement(attribute: string, operator: SearchParameters.Operator, value: number | number[]): SearchParameters; + addTagRefinement(tag: string): SearchParameters; + clearRefinements(attribute?: string | ((value: any, attribute: string, type: string) => any)): SearchParameters; + clearTags(): SearchParameters; + filter(filters: string[]): any; + getConjunctiveRefinements(facetName: string): string[]; + getDisjunctiveRefinements(facetName: string): string[]; + getExcludeRefinements(facetName: string): string[]; + getHierarchicalFacetBreadcrumb(facetName: string): string[]; + getHierarchicalFacetByName(hierarchicalFacetName: string): any; + getHierarchicalRefinement(facetName: string): string[]; + getNumericRefinements(facetName: string): SearchParameters.OperatorList[]; + getNumericRefinement(attribute: string, operator: SearchParameters.Operator): Array; + getQueryParameter(paramName: string): any; + getRefinedDisjunctiveFacets(facet: string, value: any): string[]; + getRefinedHierarchicalFacets(facet: string, value: any): string[]; + getUnrefinedDisjunctiveFacets(): string[]; + isConjunctiveFacet(facet: string): boolean; + isDisjunctiveFacetRefined(facet: string, value?: string): boolean; + isDisjunctiveFacet(facet: string): boolean; + isExcludeRefined(facet: string, value?: string): boolean; + isFacetRefined(facet: string, value?: string): boolean; + isHierarchicalFacetRefined(facet: string, value?: string): boolean; + isHierarchicalFacet(facet: string): boolean; + isNumericRefined(attribute: string, operator: SearchParameters.Operator, value?: string): boolean; + isTagRefined(tag: string): boolean; + static make(newParameters: QueryParameters): SearchParameters; + removeExcludeRefinement(facet: string, value: string): SearchParameters; + removeFacet(facet: string): SearchParameters; + removeFacetRefinement(facet: string, value?: string): SearchParameters; + removeDisjunctiveFacet(facet: string): SearchParameters; + removeDisjunctiveFacetRefinement(facet: string, value?: string): SearchParameters; + removeHierarchicalFacet(facet: string): SearchParameters; + removeHierarchicalFacetRefinement(facet: string): SearchParameters; + removeTagRefinement(tag: string): SearchParameters; + setDisjunctiveFacets(facets: string[]): SearchParameters; + setFacets(facets: string[]): SearchParameters; + setHitsPerPage(n: number): SearchParameters; + setPage(newPage: number): SearchParameters; + setQueryParameters(params: { [key: string]: any }): SearchParameters; + setQueryParameter(parameter: string, value: any): SearchParameters; + setQuery(newQuery: string): SearchParameters; + setTypoTolerance(typoTolerance: string): SearchParameters; + toggleDisjunctiveFacetRefinement(facet: string, value: any): SearchParameters; + toggleExcludeFacetRefinement(facet: string, value: any): SearchParameters; + toggleConjunctiveFacetRefinement(facet: string, value: any): SearchParameters; + toggleHierarchicalFacetRefinement(facet: string, value: any): SearchParameters; + toggleFacetRefinement(facet: string, value: any): SearchParameters; + toggleTagRefinement(tag: string): SearchParameters; + static validate(currentState: SearchParameters, parameters: QueryParameters): null | Error; + } + + namespace SearchParameters { + type FacetList = string[]; + + type OperatorList = { + [k in Operator]?: Array + }; + type Operator = '=' | '>' | '>=' | '<' | '<=' | '!='; + } + + export class SearchResults { + /** + * query used to generate the results + */ + query: string; + /** + * The query as parsed by the engine given all the rules. + */ + parsedQuery: string; + /** + * all the records that match the search parameters. Each record is + * augmented with a new attribute `_highlightResult` + * which is an object keyed by attribute and with the following properties: + * - `value` : the value of the facet highlighted (html) + * - `matchLevel`: full, partial or none depending on how the query terms match + */ + hits: any[]; + /** + * index where the results come from + */ + index: string; + /** + * number of hits per page requested + */ + hitsPerPage: number; + /** + * total number of hits of this query on the index + */ + nbHits: number; + /** + * total number of pages with respect to the number of hits per page and the total number of hits + */ + nbPages: number; + /** + * current page + */ + page: number; + /** + * sum of the processing time of all the queries + */ + processingTimeMS: number; + /** + * The position if the position was guessed by IP. + * @example "48.8637,2.3615", + */ + aroundLatLng: string; + /** + * The radius computed by Algolia. + * @example "126792922", + */ + automaticRadius: string; + /** + * String identifying the server used to serve this request. + * @example "c7-use-2.algolia.net", + */ + serverUsed: string; + /** + * Boolean that indicates if the computation of the counts did time out. + * @deprecated + */ + timeoutCounts: boolean; + /** + * Boolean that indicates if the computation of the hits did time out. + * @deprecated + */ + timeoutHits: boolean; + + /** + * True if the counts of the facets is exhaustive + */ + exhaustiveFacetsCount: boolean; + + /** + * True if the number of hits is exhaustive + */ + exhaustiveNbHits: boolean; + + /** + * Contains the userData if they are set by a [query rule](https://www.algolia.com/doc/guides/query-rules/query-rules-overview/). + */ + userData: any[]; + + /** + * queryID is the unique identifier of the query used to generate the current search results. + * This value is only available if the `clickAnalytics` search parameter is set to `true`. + */ + queryID: string; + + /** + * disjunctive facets results + */ + disjunctiveFacets: SearchResults.Facet[]; + /** + * disjunctive facets results + */ + hierarchicalFacets: SearchResults.HierarchicalFacet[]; + + /** + * other facets results + */ + facets: SearchResults.Facet[]; + + _rawResults: any; + _state: SearchParameters; + + constructor(state: SearchParameters, results: any[]) + + /** + * Get a facet object with its name + * @deprecated + * @param name name of the faceted attribute + * @return the facet object + */ + getFacetByName(name: string): SearchResults.Facet; + + /** + * Get a the list of values for a given facet attribute. Those values are sorted + * refinement first, descending count (bigger value on top), and name ascending + * (alphabetical order). The sort formula can overridden using either string based + * predicates or a function. + * + * This method will return all the values returned by the Algolia engine plus all + * the values already refined. This means that it can happen that the + * `maxValuesPerFacet` [configuration](https://www.algolia.com/doc/rest-api/search#param-maxValuesPerFacet) + * might not be respected if you have facet values that are already refined. + * @param attribute attribute name + * @param opts configuration options. + * @param opts.sortBy + * When using strings, it consists of + * the name of the [FacetValue](#SearchResults.FacetValue) or the + * [HierarchicalFacet](#SearchResults.HierarchicalFacet) attributes with the + * order (`asc` or `desc`). For example to order the value by count, the + * argument would be `['count:asc']`. + * + * If only the attribute name is specified, the ordering defaults to the one + * specified in the default value for this attribute. + * + * When not specified, the order is + * ascending. This parameter can also be a function which takes two facet + * values and should return a number, 0 if equal, 1 if the first argument is + * bigger or -1 otherwise. + * + * The default value for this attribute `['isRefined:desc', 'count:desc', 'name:asc']` + * @return depending on the type of facet of + * the attribute requested (hierarchical, disjunctive or conjunctive) + * @example + * helper.on('results', function(content){ + * //get values ordered only by name ascending using the string predicate + * content.getFacetValues('city', {sortBy: ['name:asc']}); + * //get values ordered only by count ascending using a function + * content.getFacetValues('city', { + * // this is equivalent to ['count:asc'] + * sortBy: function(a, b) { + * if (a.count === b.count) return 0; + * if (a.count > b.count) return 1; + * if (b.count > a.count) return -1; + * } + * }); + * }); + */ + getFacetValues(attribute: string, opts: any): SearchResults.FacetValue[] | SearchResults.HierarchicalFacet; + + /** + * Returns the facet stats if attribute is defined and the facet contains some. + * Otherwise returns undefined. + * @param attribute name of the faceted attribute + * @return The stats of the facet + */ + getFacetStats(attribute: string): any; + + /** + * Returns all refinements for all filters + tags. It also provides + * additional information: count and exhausistivity for each filter. + * + * See the [refinement type](#Refinement) for an exhaustive view of the available + * data. + * + * @return all the refinements + */ + getRefinements(): SearchResults.Refinement[]; + } + + namespace SearchResults { + interface Facet { + name: string; + data: object; + stats: object; + } + + interface HierarchicalFacet { + name: string; + count: number; + path: string; + isRefined: boolean; + data: HierarchicalFacet[]; + } + + interface FacetValue { + name: string; + count: number; + isRefined: boolean; + isExcluded: boolean; + } + + interface Refinement { + type: `numeric` | `facet` | `exclude` | `disjunctive` | `hierarchical`; + attributeName: string; + name: string; + numericValue: number; + operator: string; + count: number; + exhaustive: boolean; + } + } + + export {}; +} + +export = algoliasearchHelper; diff --git a/types/algoliasearch-helper/tsconfig.json b/types/algoliasearch-helper/tsconfig.json new file mode 100644 index 0000000000..223c0136ef --- /dev/null +++ b/types/algoliasearch-helper/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "algoliasearch-helper-tests.ts" + ] +} diff --git a/types/i18next-xhr-backend/tslint.json b/types/algoliasearch-helper/tslint.json similarity index 100% rename from types/i18next-xhr-backend/tslint.json rename to types/algoliasearch-helper/tslint.json diff --git a/types/algoliasearch/algoliasearch-tests.ts b/types/algoliasearch/algoliasearch-tests.ts index cbd98d253a..92c090d179 100644 --- a/types/algoliasearch/algoliasearch-tests.ts +++ b/types/algoliasearch/algoliasearch-tests.ts @@ -124,7 +124,7 @@ let _algoliaQueryParameters: QueryParameters = { ignorePlurals: false, disableTypoToleranceOnAttributes: [''], aroundLatLng: '', - aroundLatLngViaIP: '', + aroundLatLngViaIP: true, aroundRadius: 0, aroundPrecision: 0, minimumAroundRadius: 0, diff --git a/types/algoliasearch/index.d.ts b/types/algoliasearch/index.d.ts index 633b681432..5478fedbac 100644 --- a/types/algoliasearch/index.d.ts +++ b/types/algoliasearch/index.d.ts @@ -1279,7 +1279,7 @@ declare namespace algoliasearch { * default: "" * https://www.algolia.com/doc/api-reference/api-parameters/aroundLatLngViaIP/ */ - aroundLatLngViaIP?: string; + aroundLatLngViaIP?: boolean; /** * Control the radius associated with a geo search. Defined in meters. * default: null diff --git a/types/ali-oss/index.d.ts b/types/ali-oss/index.d.ts index e4f9e09e7c..952a1df20c 100644 --- a/types/ali-oss/index.d.ts +++ b/types/ali-oss/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for ali-oss 6.0 -// Project: https://github.com/ali-sdk/ali-oss +// Project: https://github.com/aliyun/oss-nodejs-sdk // Definitions by: Ptrdu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/alt/index.d.ts b/types/alt/index.d.ts index 515a67986a..573fbdbac1 100644 --- a/types/alt/index.d.ts +++ b/types/alt/index.d.ts @@ -148,7 +148,7 @@ declare module "alt/AltContainer" { stores?:Array>; inject?:{[key:string]:any}; actions?:{[key:string]:Object}; - render?:(...props:Array) => React.ReactElement; + render?:(...props:Array) => React.ReactElement; flux?:AltJS.Alt; transform?:(store:AltJS.AltStore, actions:any) => any; shouldComponentUpdate?:(props:any) => boolean; diff --git a/types/amap-js-sdk/index.d.ts b/types/amap-js-sdk/index.d.ts index a1b93e6cb3..8cb12530f2 100644 --- a/types/amap-js-sdk/index.d.ts +++ b/types/amap-js-sdk/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for amap-js-sdk 1.4 +// Type definitions for non-npm package amap-js-sdk 1.4 // Project: http://lbs.amap.com/api/javascript-api/summary/ // Definitions by: Bian Zhongjie // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/amazon-cognito-auth-js/index.d.ts b/types/amazon-cognito-auth-js/index.d.ts index d828fccfc8..00f5ab3214 100644 --- a/types/amazon-cognito-auth-js/index.d.ts +++ b/types/amazon-cognito-auth-js/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for amazon-cognito-auth-js 1.2 -// Project: https://github.com/aws/amazon-cognito-auth-js +// Project: https://github.com/aws/amazon-cognito-auth-js, http://aws.amazon.com/cognito // Definitions by: Scott Escue // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/amcharts/index.d.ts b/types/amcharts/index.d.ts index 759e22e942..7188bd95de 100644 --- a/types/amcharts/index.d.ts +++ b/types/amcharts/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for amCharts 3.21 -// Project: http://www.amcharts.com/ +// Project: https://amcharts.com // Definitions by: ldrick // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/amplify-deferred/index.d.ts b/types/amplify-deferred/index.d.ts index 508cb5bb11..6daf4b1124 100644 --- a/types/amplify-deferred/index.d.ts +++ b/types/amplify-deferred/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for AmplifyJs (using JQuery Deferred) 1.1 -// Project: http://amplifyjs.com/ +// Project: http://amplifyjs.com/, https://github.com/laurentiustamate94/amplify-deferred // Definitions by: Jonas Eriksson , Laurentiu Stamate // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/amqplib/index.d.ts b/types/amqplib/index.d.ts index 2ea088f841..7087d74edc 100644 --- a/types/amqplib/index.d.ts +++ b/types/amqplib/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for amqplib 0.5 -// Project: https://github.com/squaremo/amqp.node +// Project: https://github.com/squaremo/amqp.node, http://squaremo.github.io/amqp.node // Definitions by: Michael Nahkies , Ab Reitsma , Nicolás Fantone , Nick Zelei // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/analytics-node/index.d.ts b/types/analytics-node/index.d.ts index 168e0f17ea..d46fc09189 100644 --- a/types/analytics-node/index.d.ts +++ b/types/analytics-node/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for analytics-node 3.1 -// Project: https://segment.com/docs/libraries/node/ +// Project: https://segment.com/docs/libraries/node/, https://github.com/segmentio/analytics-node // Definitions by: Andrew Fong // Thomas Thiebaud // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/angular-gridster/index.d.ts b/types/angular-gridster/index.d.ts index 27e664f1e8..bcf2e7e4d2 100644 --- a/types/angular-gridster/index.d.ts +++ b/types/angular-gridster/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for angular-gridster (gridster module) 0.13 -// Project: https://github.com/ManifestWebDesign/angular-gridster +// Project: https://github.com/ManifestWebDesign/angular-gridster, http://manifestwebdesign.github.io/angular-gridster // Definitions by: Joao Monteiro // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/angular-hotkeys/index.d.ts b/types/angular-hotkeys/index.d.ts index 360e2cefbe..4456864b41 100644 --- a/types/angular-hotkeys/index.d.ts +++ b/types/angular-hotkeys/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for angular-hotkeys 1.7 -// Project: https://github.com/chieffancypants/angular-hotkeys +// Project: https://github.com/chieffancypants/angular-hotkeys, https://chieffancypants.github.io/angular-hotkeys // Definitions by: Jason Zhao // Stefan Steinhart // Cyril Gandon diff --git a/types/angular-material/index.d.ts b/types/angular-material/index.d.ts index 19c6dcc9e5..acc7341a84 100644 --- a/types/angular-material/index.d.ts +++ b/types/angular-material/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for angular-material 1.1 -// Project: https://github.com/angular/material +// Project: https://github.com/angular/material, https://material.angularjs.org // Definitions by: Blake Bigelow , Peter Hajdu , Davide Donadello , Geert Jansen , Edward Knowles // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/angular-oauth2/index.d.ts b/types/angular-oauth2/index.d.ts index ef11ee3680..3db23073a8 100644 --- a/types/angular-oauth2/index.d.ts +++ b/types/angular-oauth2/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for angular-oauth2 4.1 -// Project: https://github.com/oauthjs/angular-oauth2 +// Project: https://github.com/oauthjs/angular-oauth2, https://github.com/seegno/angular-oauth2 // Definitions by: Antério Vieira // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/angular-websocket/index.d.ts b/types/angular-websocket/index.d.ts index 0b26bd2cfd..46242e65b9 100644 --- a/types/angular-websocket/index.d.ts +++ b/types/angular-websocket/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for angular-websocket 2.0 -// Project: https://github.com/AngularClass/angular-websocket +// Project: https://github.com/gdi2290/angular-websocket, https://github.com/angular-class/angular-websocket // Definitions by: Nick Veys // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/ansi/index.d.ts b/types/ansi/index.d.ts index 4e486d61ef..a7173030b0 100644 --- a/types/ansi/index.d.ts +++ b/types/ansi/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for ansi 0.3 -// Project: https://www.npmjs.com/package/ansi +// Project: https://github.com/tootallnate/ansi.js // Definitions by: Gustavo6046 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/anymatch/index.d.ts b/types/anymatch/index.d.ts index 4eb90734a4..ac247fd832 100644 --- a/types/anymatch/index.d.ts +++ b/types/anymatch/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for anymatch 1.3 -// Project: https://github.com/es128/anymatch +// Project: https://github.com/micromatch/anymatch // Definitions by: BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/aos/index.d.ts b/types/aos/index.d.ts index 1e1a9f7cc6..446c2935f1 100644 --- a/types/aos/index.d.ts +++ b/types/aos/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for aos 3.0 -// Project: https://github.com/michalsnik/aos +// Project: https://github.com/michalsnik/aos, https://michalsnik.github.io/aos // Definitions by: Rostislav Shermenyov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/arangodb/index.d.ts b/types/arangodb/index.d.ts index c5e83a1cfc..d9ec1a752c 100644 --- a/types/arangodb/index.d.ts +++ b/types/arangodb/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for ArangoDB 3.4 +// Type definitions for non-npm package ArangoDB 3.4 // Project: https://github.com/arangodb/arangodb // Definitions by: Alan Plum // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/arcgis-rest-api/index.d.ts b/types/arcgis-rest-api/index.d.ts index ade4b7a857..49e3151b5e 100644 --- a/types/arcgis-rest-api/index.d.ts +++ b/types/arcgis-rest-api/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for ArcGIS REST API 10.4 +// Type definitions for non-npm package ArcGIS REST API 10.4 // Project: http://resources.arcgis.com/en/help/arcgis-rest-api/ // Definitions by: Jeff Jacobson // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/artillery/index.d.ts b/types/artillery/index.d.ts index fbc5d41917..b901692106 100644 --- a/types/artillery/index.d.ts +++ b/types/artillery/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for artillery 1.6 -// Project: https://github.com/shoreditch-ops/artillery#readme +// Project: https://github.com/artilleryio/artillery // Definitions by: Kira McCoan // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/assert/index.d.ts b/types/assert/index.d.ts index f04158bbd3..6e1dded3f3 100644 --- a/types/assert/index.d.ts +++ b/types/assert/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for commonjs-assert 1.4 -// Project: https://github.com/browserify/commonjs-assert +// Project: https://github.com/browserify/commonjs-assert, https://github.com/defunctzombie/commonjs-assert // Definitions by: Nico Gallinal // Linus Unnebäck // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/assets-webpack-plugin/index.d.ts b/types/assets-webpack-plugin/index.d.ts index 7644d8f9ad..63563d6298 100644 --- a/types/assets-webpack-plugin/index.d.ts +++ b/types/assets-webpack-plugin/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for assets-webpack-plugin 3.5 -// Project: https://github.com/sporto/assets-webpack-plugin +// Project: https://github.com/ztoben/assets-webpack-plugin // Definitions by: Michael Strobel // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/async-lock/index.d.ts b/types/async-lock/index.d.ts index cd2b1e4b40..3c358c744c 100644 --- a/types/async-lock/index.d.ts +++ b/types/async-lock/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for async-lock 1.1 -// Project: https://github.com/rain1017/async-lock +// Project: https://github.com/rain1017/async-lock, https://github.com/rogierschouten/async-lock // Definitions by: Elisée MAURER // Alejandro // Anatoly diff --git a/types/async.nexttick/index.d.ts b/types/async.nexttick/index.d.ts index a8572cc087..9ed5d1f626 100644 --- a/types/async.nexttick/index.d.ts +++ b/types/async.nexttick/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for async.nexttick 0.5 -// Project: https://www.npmjs.com/package/async.nexttick +// Project: https://github.com/caolan/async // Definitions by: Damien "pyrho" Rajon // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/async/index.d.ts b/types/async/index.d.ts index 05d99e5968..1d9054e5e1 100644 --- a/types/async/index.d.ts +++ b/types/async/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Async 2.4 -// Project: https://github.com/caolan/async +// Project: https://github.com/caolan/async, https://caolan.github.io/async // Definitions by: Boris Yankov // Arseniy Maximov // Joe Herman diff --git a/types/atlaskit__button/index.d.ts b/types/atlaskit__button/index.d.ts index 95ac1e0961..915417945c 100644 --- a/types/atlaskit__button/index.d.ts +++ b/types/atlaskit__button/index.d.ts @@ -42,9 +42,9 @@ export interface ButtonProps { /** Provides a url for buttons being used as a link. */ readonly href?: string; /** Places an icon within the button, after the button's text. */ - readonly iconAfter?: ReactElement; + readonly iconAfter?: ReactElement; /** Places an icon within the button, before the button's text. */ - readonly iconBefore?: ReactElement; + readonly iconBefore?: ReactElement; /** Pass a reference on to the styled component */ readonly innerRef?: (instance: any) => void; /** Provide a unique id to the button. */ diff --git a/types/atlaskit__calendar/index.d.ts b/types/atlaskit__calendar/index.d.ts index e1c76eb397..bf45c8969f 100644 --- a/types/atlaskit__calendar/index.d.ts +++ b/types/atlaskit__calendar/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for atlaskit__calendar 5.0 -// Project: https://bitbucket.org/atlassian/atlaskit-mk-2/src/master/ +// Project: https://bitbucket.org/atlassian/atlaskit-mk-2/src/master/, https://bitbucket.org/atlassian/atlaskit-mk-2 // Definitions by: Lee Standen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/atlaskit__inline-edit/index.d.ts b/types/atlaskit__inline-edit/index.d.ts index d2d706c5a4..b9371f6a69 100644 --- a/types/atlaskit__inline-edit/index.d.ts +++ b/types/atlaskit__inline-edit/index.d.ts @@ -12,9 +12,9 @@ export interface BaseProps { /** Label above the input. */ label?: string; /** Component to be shown when reading only */ - readView: ReactElement; + readView: ReactElement; /** Component to be shown when editing. Should be an @atlaskit/input. */ - editView?: ReactElement; + editView?: ReactElement; /** Set whether the read view should fit width, most obvious when hovered. */ isFitContainerWidthReadView?: boolean; /** Greys out text and shows spinner. Does not disable input. */ @@ -38,7 +38,7 @@ export interface BaseProps { /** Set whether default stylings should be disabled when editing. */ disableEditViewFieldBase?: boolean; /** Component to be shown in an @atlaskit/inline-dialog when edit view is open. */ - invalidMessage?: ReactElement; + invalidMessage?: ReactElement; } export interface StatelessProps extends BaseProps { diff --git a/types/atlaskit__layer/index.d.ts b/types/atlaskit__layer/index.d.ts index 03673c47a3..bfc131bfe6 100644 --- a/types/atlaskit__layer/index.d.ts +++ b/types/atlaskit__layer/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @atlaskit/layer 3.1 -// Project: https://bitbucket.org/atlassian/atlaskit-mk-2/src/master/ +// Project: https://bitbucket.org/atlassian/atlaskit-mk-2/src/master/, https://bitbucket.org/atlassian/atlaskit-mk-2 // Definitions by: Lee Standen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/atlaskit__single-select/index.d.ts b/types/atlaskit__single-select/index.d.ts index 4910c10a11..d2085c998c 100644 --- a/types/atlaskit__single-select/index.d.ts +++ b/types/atlaskit__single-select/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @atlaskit/single-select 4.0 -// Project: https://bitbucket.org/atlassian/atlaskit-mk-2/src/master/ +// Project: https://bitbucket.org/atlassian/atlaskit-mk-2/src/master/, https://bitbucket.org/atlassian/atlaskit-mk-2 // Definitions by: Lee Standen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/atom/index.d.ts b/types/atom/index.d.ts index d77663c460..d1394d1586 100644 --- a/types/atom/index.d.ts +++ b/types/atom/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Atom 1.31 +// Type definitions for non-npm package Atom 1.31 // Project: https://github.com/atom/atom // Definitions by: GlenCFL // smhxx diff --git a/types/auth0-lock/index.d.ts b/types/auth0-lock/index.d.ts index 32a3228e56..6abb5069ad 100644 --- a/types/auth0-lock/index.d.ts +++ b/types/auth0-lock/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for auth0-lock 11.4 -// Project: http://auth0.com +// Project: http://auth0.com, https://github.com/auth0/lock // Definitions by: Brian Caruso // Dan Caddigan // Larry Faudree diff --git a/types/auto-launch/index.d.ts b/types/auto-launch/index.d.ts index 1ea4fcc25a..e0cabe59f6 100644 --- a/types/auto-launch/index.d.ts +++ b/types/auto-launch/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for auto-launch 5.0 -// Project: https://github.com/Teamwork/node-auto-launch +// Project: https://github.com/Teamwork/node-auto-launch, https://github.com/4ver/node-auto-launch // Definitions by: rhysd , Daniel Perez Alvarez // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/auto-sni/index.d.ts b/types/auto-sni/index.d.ts index 19272446a6..d365165128 100644 --- a/types/auto-sni/index.d.ts +++ b/types/auto-sni/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for auto-sni 2.1 -// Project: https://www.npmjs.com/package/auto-sni +// Project: https://github.com/dylanpiercey/auto-sni // Definitions by: Jan Wolf // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/autobahn/index.d.ts b/types/autobahn/index.d.ts index 7a518e0fd4..9c1d66fb85 100644 --- a/types/autobahn/index.d.ts +++ b/types/autobahn/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for AutobahnJS 0.9 -// Project: http://autobahn.ws/js/ +// Project: http://autobahn.ws/js/, https://github.com/crossbario/autobahn-js // Definitions by: Elad Zelingher , Andy Hawkins , Wladimir Totino , Mathias Teier // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/axios-case-converter/index.d.ts b/types/axios-case-converter/index.d.ts index 2071ee4dbc..d1dce4d7f3 100644 --- a/types/axios-case-converter/index.d.ts +++ b/types/axios-case-converter/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for axios-case-converter 0.3 -// Project: https://github.com/mpyw/axios-case-converter +// Project: https://github.com/mpyw/axios-case-converter, https://github.com/mpyw/axios-interceptor-change-case // Definitions by: Derek Kniffin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { AxiosInstance } from "axios"; diff --git a/types/babel-code-frame/index.d.ts b/types/babel-code-frame/index.d.ts index 19d18b6df8..7b3f3a2f37 100644 --- a/types/babel-code-frame/index.d.ts +++ b/types/babel-code-frame/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for babel-code-frame 6.20 -// Project: https://github.com/babel/babel/tree/master/packages +// Project: https://github.com/babel/babel/tree/master/packages, https://babeljs.io // Definitions by: Mohsen Azimi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/babel-core/index.d.ts b/types/babel-core/index.d.ts index 3a6da1b49d..e1ff0114c1 100644 --- a/types/babel-core/index.d.ts +++ b/types/babel-core/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for babel-core 6.25 -// Project: https://github.com/babel/babel/tree/master/packages/babel-core +// Project: https://github.com/babel/babel/tree/master/packages/babel-core, https://babeljs.io // Definitions by: Troy Gerwien // Marvin Hagemeister // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/babel-generator/index.d.ts b/types/babel-generator/index.d.ts index 8afeca4cd1..6eef6fd899 100644 --- a/types/babel-generator/index.d.ts +++ b/types/babel-generator/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for babel-generator 6.25 -// Project: https://github.com/babel/babel/tree/master/packages/babel-generator +// Project: https://github.com/babel/babel/tree/master/packages/babel-generator, https://babeljs.io // Definitions by: Troy Gerwien // Johnny Estilles // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/babel-template/index.d.ts b/types/babel-template/index.d.ts index 50b759c3f5..176d02ddec 100644 --- a/types/babel-template/index.d.ts +++ b/types/babel-template/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for babel-template 6.25 -// Project: https://github.com/babel/babel/tree/master/packages/babel-template +// Project: https://github.com/babel/babel/tree/master/packages/babel-template, https://babeljs.io // Definitions by: Troy Gerwien // Marvin Hagemeister // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/babel-traverse/index.d.ts b/types/babel-traverse/index.d.ts index 5c18c3ff29..fa754107af 100644 --- a/types/babel-traverse/index.d.ts +++ b/types/babel-traverse/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for babel-traverse 6.25 -// Project: https://github.com/babel/babel/tree/master/packages/babel-traverse +// Project: https://github.com/babel/babel/tree/master/packages/babel-traverse, https://babeljs.io // Definitions by: Troy Gerwien // Marvin Hagemeister // Ryan Petrich diff --git a/types/babel-types/index.d.ts b/types/babel-types/index.d.ts index c464c4bc3f..d37cdf0a76 100644 --- a/types/babel-types/index.d.ts +++ b/types/babel-types/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for babel-types 7.0 -// Project: https://github.com/babel/babel/tree/master/packages/babel-types +// Project: https://github.com/babel/babel/tree/master/packages/babel-types, https://babeljs.io // Definitions by: Troy Gerwien // Sam Baxter // Marvin Hagemeister diff --git a/types/babel__code-frame/index.d.ts b/types/babel__code-frame/index.d.ts index 5a32040bb2..8941e7ff49 100644 --- a/types/babel__code-frame/index.d.ts +++ b/types/babel__code-frame/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @babel/code-frame 7.0 -// Project: https://github.com/babel/babel/tree/master/packages/babel-code-frame +// Project: https://github.com/babel/babel/tree/master/packages/babel-code-frame, https://babeljs.io // Definitions by: Mohsen Azimi // Forbes Lindesay // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/babel__core/index.d.ts b/types/babel__core/index.d.ts index eb39d90a58..66501d24db 100644 --- a/types/babel__core/index.d.ts +++ b/types/babel__core/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @babel/core 7.0 -// Project: https://github.com/babel/babel/tree/master/packages/babel-core +// Project: https://github.com/babel/babel/tree/master/packages/babel-core, https://babeljs.io // Definitions by: Troy Gerwien // Marvin Hagemeister // Melvin Groenhoff diff --git a/types/babel__generator/index.d.ts b/types/babel__generator/index.d.ts index 9b6a9fbc1c..d229c9855f 100644 --- a/types/babel__generator/index.d.ts +++ b/types/babel__generator/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @babel/generator 7.0 -// Project: https://github.com/babel/babel/tree/master/packages/babel-generator +// Project: https://github.com/babel/babel/tree/master/packages/babel-generator, https://babeljs.io // Definitions by: Troy Gerwien // Johnny Estilles // Melvin Groenhoff diff --git a/types/babel__template/index.d.ts b/types/babel__template/index.d.ts index 8750e52d8e..05084359f6 100644 --- a/types/babel__template/index.d.ts +++ b/types/babel__template/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @babel/template 7.0 -// Project: https://github.com/babel/babel/tree/master/packages/babel-template +// Project: https://github.com/babel/babel/tree/master/packages/babel-template, https://babeljs.io // Definitions by: Troy Gerwien // Marvin Hagemeister // Melvin Groenhoff diff --git a/types/babel__traverse/index.d.ts b/types/babel__traverse/index.d.ts index fe817d5daf..148f5dd7af 100644 --- a/types/babel__traverse/index.d.ts +++ b/types/babel__traverse/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @babel/traverse 7.0 -// Project: https://github.com/babel/babel/tree/master/packages/babel-traverse +// Project: https://github.com/babel/babel/tree/master/packages/babel-traverse, https://babeljs.io // Definitions by: Troy Gerwien // Marvin Hagemeister // Ryan Petrich diff --git a/types/babylon/index.d.ts b/types/babylon/index.d.ts index b179f6f357..90c9e3a90d 100644 --- a/types/babylon/index.d.ts +++ b/types/babylon/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for babylon 6.16 -// Project: https://github.com/babel/babylon +// Project: https://github.com/babel/babylon, https://babeljs.io // Definitions by: Troy Gerwien // Marvin Hagemeister // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/backbone-associations/index.d.ts b/types/backbone-associations/index.d.ts index d0681c6651..c93eb965e8 100644 --- a/types/backbone-associations/index.d.ts +++ b/types/backbone-associations/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Backbone-associations 0.6.4 -// Project: https://github.com/dhruvaray/backbone-associations/ +// Project: http://dhruvaray.github.io/backbone-associations // Definitions by: Craig Brett // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/backbone-relational/index.d.ts b/types/backbone-relational/index.d.ts index f19cfa8daa..e9cc5e71ff 100644 --- a/types/backbone-relational/index.d.ts +++ b/types/backbone-relational/index.d.ts @@ -7,180 +7,163 @@ /// -import { Events, EventsHash, Model as BModel, Collection } from 'backbone'; +import { EventsMixin, Events, Model as BModel, Collection } from 'backbone'; -declare module 'backbone-relational' { - class Model extends BModel { - /** - * Do not use, prefer TypeScript's extend functionality. - **/ - //private static extend(properties:any, classProperties?:any):any; +export class Model extends BModel { + /** + * Do not use, prefer TypeScript's extend functionality. + **/ + //private static extend(properties:any, classProperties?:any):any; - relations:any; - subModelTypes:any; - subModelTypeAttribute:any; + relations:any; + subModelTypes:any; + subModelTypeAttribute:any; - initializeRelations(options:any):void; + initializeRelations(options:any):void; - updateRelations(options:any):void; + updateRelations(options:any):void; - queue(func:any):void; + queue(func:any):void; - processQueue():void; + processQueue():void; - getRelation(name:string):Relation; + getRelation(name:string):Relation; - getRelations():Relation[]; + getRelations():Relation[]; - fetchRelated(key:string, options?:any, update?:boolean):any; + fetchRelated(key:string, options?:any, update?:boolean):any; - toJSON(options?: any):any; + toJSON(options?: any):any; - static setup(); + static setup(); - static build(attributes:any, options?:any); + static build(attributes:any, options?:any); - static findOrCreate(attributes:string, options?:any); + static findOrCreate(attributes:string, options?:any); - static findOrCreate(attributes:number, options?:any); + static findOrCreate(attributes:number, options?:any); - static findOrCreate(attributes:any, options?:any); - } + static findOrCreate(attributes:any, options?:any); +} - export class Relation extends BModel { +export class Relation extends BModel { - options:any; - instance:any; - key:any; - keyContents:any; - relatedModel:any; - relatedCollection:any; - reverseRelation:any; - related:any; + options:any; + instance:any; + key:any; + keyContents:any; + relatedModel:any; + relatedCollection:any; + reverseRelation:any; + related:any; - checkPreconditions():boolean; + checkPreconditions():boolean; - setRelated(related:BModel):void; + setRelated(related:BModel):void; - setRelated(related:Collection):void; + setRelated(related:Collection):void; - getReverseRelations(model:Model):Relation; + getReverseRelations(model:Model):Relation; - destroy():void; - } + destroy():void; +} - export class HasOne extends Relation { - collectionType:any; +export class HasOne extends Relation { + collectionType:any; - findRelated(options:any):BModel; + findRelated(options:any):BModel; - setKeyContents(keyContents:string):void; + setKeyContents(keyContents:string):void; - setKeyContents(keyContents:string[]):void; + setKeyContents(keyContents:string[]):void; - setKeyContents(keyContents:number):void; + setKeyContents(keyContents:number):void; - setKeyContents(keyContents:number[]):void; + setKeyContents(keyContents:number[]):void; - setKeyContents(keyContents:Collection):void; + setKeyContents(keyContents:Collection):void; - onChange(model:BModel, attr:any, options:any):void; + onChange(model:BModel, attr:any, options:any):void; - handleAddition(model:BModel, coll:Collection, options:any):void; + handleAddition(model:BModel, coll:Collection, options:any):void; - handleRemoval(model:BModel, coll:Collection, options:any):void; + handleRemoval(model:BModel, coll:Collection, options:any):void; - handleReset(coll:Collection, options:any):void; + handleReset(coll:Collection, options:any):void; - tryAddRelated(model:BModel, coll:any, options:any):void; + tryAddRelated(model:BModel, coll:any, options:any):void; - addRelated(model:BModel, options:any):void; + addRelated(model:BModel, options:any):void; - removeRelated(model:BModel, coll:any, options:any):void; - - } - - - export class HasMany extends Relation { - collectionType:any; - - findRelated(options:any):BModel; - - setKeyContents(keyContents:string):void; - - setKeyContents(keyContents:number):void; - - setKeyContents(keyContents:BModel):void; - - onChange(model:BModel, attr:any, options:any):void; - - tryAddRelated(model:BModel, coll:any, options:any):void; - - addRelated(model:BModel, options:any):void; - - removeRelated(model:BModel, coll:any, options:any):void; - - } - - export class Store implements Events { - on(eventName: string, callback?: (...args: any[]) => void, context?: any): any; - on(eventMap: EventsHash): any; - on(eventName: any, callback?: any, context?: any): any; - off(eventName?: string, callback?: (...args: any[]) => void, context?: any): any; - trigger(eventName: string, ...args: any[]): any; - bind(eventName: string, callback: (...args: any[]) => void, context?: any): any; - unbind(eventName?: string, callback?: (...args: any[]) => void, context?: any): any; - once(events: string, callback: (...args: any[]) => void, context?: any): any; - listenTo(object: any, events: string, callback: (...args: any[]) => void): any; - listenToOnce(object: any, events: string, callback: (...args: any[]) => void): any; - stopListening(object?: any, events?: string, callback?: (...args: any[]) => void): any; - - initializeRelation(model, relation, options); - - addModelScope(scope:any):void; - - removeModelScope(scope):void; - - addSubModels(subModelTypes:Model, superModelType:Model):void; - - setupSuperModel(modelType:Model):void; - - addReverseRelation(relation:any):void; - - addOrphanRelation(relation:any):void; - - processOrphanRelations():void; - - retroFitRelation(relation:Model, create:boolean):Collection; - - getCollection(type:Model, create:boolean):Collection; - - getObjectByName(name:string):any; - - - resolveIdForItem(type:any, item:any):any; - - static find(type:any, item:string):Model; - - static find(type:any, item:number):Model; - - static find(type:any, item:Model):Model; - - static find(type:any, item:any):Model; - - register(model:Model):void; - - checkId(model:Model, id:any):void; - - update(model:Model):void; - - unregister(model:Model, collection:Collection, options:any):void; - - reset():void; - - - } + removeRelated(model:BModel, coll:any, options:any):void; } + +export class HasMany extends Relation { + collectionType:any; + + findRelated(options:any):BModel; + + setKeyContents(keyContents:string):void; + + setKeyContents(keyContents:number):void; + + setKeyContents(keyContents:BModel):void; + + onChange(model:BModel, attr:any, options:any):void; + + tryAddRelated(model:BModel, coll:any, options:any):void; + + addRelated(model:BModel, options:any):void; + + removeRelated(model:BModel, coll:any, options:any):void; + +} + +export class Store extends EventsMixin implements Events { + initializeRelation(model, relation, options); + + addModelScope(scope:any):void; + + removeModelScope(scope):void; + + addSubModels(subModelTypes:Model, superModelType:Model):void; + + setupSuperModel(modelType:Model):void; + + addReverseRelation(relation:any):void; + + addOrphanRelation(relation:any):void; + + processOrphanRelations():void; + + retroFitRelation(relation:Model, create:boolean):Collection; + + getCollection(type:Model, create:boolean):Collection; + + getObjectByName(name:string):any; + + + resolveIdForItem(type:any, item:any):any; + + static find(type:any, item:string):Model; + + static find(type:any, item:number):Model; + + static find(type:any, item:Model):Model; + + static find(type:any, item:any):Model; + + register(model:Model):void; + + checkId(model:Model, id:any):void; + + update(model:Model):void; + + unregister(model:Model, collection:Collection, options:any):void; + + reset():void; + +} diff --git a/types/backbone-relational/tslint.json b/types/backbone-relational/tslint.json index a41bf5d19a..65e27fce52 100644 --- a/types/backbone-relational/tslint.json +++ b/types/backbone-relational/tslint.json @@ -1,79 +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, "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 } } diff --git a/types/backbone.marionette/index.d.ts b/types/backbone.marionette/index.d.ts index 4edaba87b7..f24d80ff4d 100644 --- a/types/backbone.marionette/index.d.ts +++ b/types/backbone.marionette/index.d.ts @@ -1,11 +1,12 @@ // Type definitions for Marionette 3.3 -// Project: https://github.com/marionettejs/ +// Project: https://github.com/marionettejs/, https://marionettejs.com // Definitions by: Zeeshan Hamid , // Natan Vivo , // Sven Tschui , // Volker Nauruhn , // Ard Timmerman , // J. Joe Koullas +// Julian Gonggrijp // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -407,20 +408,14 @@ export interface ObjectOptions extends RadioMixinOptions { * A base class which other classes can extend from. Object incorporates many * backbone conventions and utilities like initialize and Backbone.Events. */ -export class Object implements CommonMixin, RadioMixin, Backbone.Events { +export class Object extends Backbone.EventsMixin implements CommonMixin, RadioMixin, Backbone.Events { constructor(options?: ObjectOptions); - on(eventName: string, callback?: (...args: any[]) => void, context?: any): any; - on(eventMap: EventsHash): any; + /** + * Faulty overgeneralization of Backbone.Events.on, for historical + * reasons. + */ on(eventName: any, callback?: any, context?: any): any; - off(eventName?: string, callback?: (...args: any[]) => void, context?: any): any; - trigger(eventName: string, ...args: any[]): any; - bind(eventName: string, callback: (...args: any[]) => void, context?: any): any; - unbind(eventName?: string, callback?: (...args: any[]) => void, context?: any): any; - once(events: string, callback: (...args: any[]) => void, context?: any): any; - listenTo(object: any, events: string, callback: (...args: any[]) => void): any; - listenToOnce(object: any, events: string, callback: (...args: any[]) => void): any; - stopListening(object?: any, events?: string, callback?: (...args: any[]) => void): any; /** * Receives a hash of event names and functions and/or function names, diff --git a/types/backbone.radio/index.d.ts b/types/backbone.radio/index.d.ts index ac953aa00b..e6682bd52e 100644 --- a/types/backbone.radio/index.d.ts +++ b/types/backbone.radio/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for Backbone.Radio v0.8.3 // Project: https://github.com/marionettejs/backbone.radio // Definitions by: Peter Palotas +// Julian Gonggrijp // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -71,18 +72,12 @@ declare module "backbone" { stopReplying(commandName?: string, callback?: (...args: any[]) => any, context?: any): Requests; } - class Channel implements Commands, Requests, Backbone.Events { - on(eventName: string, callback?: (...args: any[]) => void, context?: any): any; - on(eventMap: EventsHash): any; + class Channel extends Backbone.EventsMixin implements Commands, Requests, Backbone.Events { + /** + * Faulty overgeneralization of Backbone.Events.on, for historical + * reasons. + */ on(eventName: any, callback?: any, context?: any): any; - off(eventName?: string, callback?: (...args: any[]) => void, context?: any): any; - trigger(eventName: string, ...args: any[]): any; - bind(eventName: string, callback: (...args: any[]) => void, context?: any): any; - unbind(eventName?: string, callback?: (...args: any[]) => void, context?: any): any; - once(events: string, callback: (...args: any[]) => void, context?: any): any; - listenTo(object: any, events: string, callback: (...args: any[]) => void): any; - listenToOnce(object: any, events: string, callback: (...args: any[]) => void): any; - stopListening(object?: any, events?: string, callback?: (...args: any[]) => void): any; channelName: string; reset(): Channel; diff --git a/types/backbone/backbone-tests.ts b/types/backbone/backbone-tests.ts index 563c21634c..c36b92ff3f 100644 --- a/types/backbone/backbone-tests.ts +++ b/types/backbone/backbone-tests.ts @@ -15,6 +15,50 @@ function test_events() { object.off(); } +class PubSub implements Backbone.Events { + on: Backbone.Events_On; + off: Backbone.Events_Off; + trigger: Backbone.Events_Trigger; + bind: Backbone.Events_On; + unbind: Backbone.Events_Off; + + once: Backbone.Events_On; + listenTo: Backbone.Events_Listen; + listenToOnce: Backbone.Events_Listen; + stopListening: Backbone.Events_Stop; +} + +Object.assign(PubSub.prototype, Backbone.Events); + +function test_events_shorthands() { + let channel1 = new PubSub(); + let channel2 = new PubSub(); + let onChange = () => alert('whatever'); + + channel1.on("alert", (eventName: string) => alert("Triggered " + eventName)); + channel1.trigger("alert", "an event"); + + channel1.once('invalid', () => { }, this); + channel1.once('invalid', () => { }); + channel1.once({invalid: () => { }, success: () => { }}, this); + channel1.once({invalid: () => { }, success: () => { }}); + + channel1.off("change", onChange); + channel1.off("change"); + channel1.off(null, onChange); + channel1.off(null, null, this); + channel1.off(); + + channel2.listenTo(channel1, 'invalid', () => { }); + channel2.listenTo(channel1, {invalid: () => { }, success: () => { }}); + channel2.listenToOnce(channel1, 'invalid', () => { }); + channel2.listenToOnce(channel1, {invalid: () => { }, success: () => { }}); + + channel2.stopListening(channel1, 'invalid', () => { }); + channel2.stopListening(channel1, 'invalid'); + channel2.stopListening(channel1); +} + class SettingDefaults extends Backbone.Model { // 'defaults' could be set in one of the following ways: @@ -272,18 +316,22 @@ namespace v1Changes { var model = new Employee; model.once('invalid', () => { }, this); model.once('invalid', () => { }); + model.once({invalid: () => { }, success: () => { }}, this); + model.once({invalid: () => { }, success: () => { }}); } function test_listenTo() { var model = new Employee; var view = new Backbone.View(); view.listenTo(model, 'invalid', () => { }); + view.listenTo(model, {invalid: () => { }, success: () => { }}); } function test_listenToOnce() { var model = new Employee; var view = new Backbone.View(); view.listenToOnce(model, 'invalid', () => { }); + view.listenToOnce(model, {invalid: () => { }, success: () => { }}); } function test_stopListening() { @@ -398,7 +446,7 @@ namespace v1Changes { namespace Collection { function test_fetch() { var collection = new EmployeeCollection; - collection.fetch({ + collection.fetch({ reset: true, remove: false }); diff --git a/types/backbone/index.d.ts b/types/backbone/index.d.ts index a881284c8f..58e3735f2b 100644 --- a/types/backbone/index.d.ts +++ b/types/backbone/index.d.ts @@ -1,9 +1,11 @@ // Type definitions for Backbone 1.3.3 // Project: http://backbonejs.org/ +// https://github.com/jashkenas/backbone // Definitions by: Boris Yankov // Natan Vivo // kenjiru // jjoekoullas +// Julian Gonggrijp // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -91,44 +93,113 @@ declare namespace Backbone { [routePattern: string]: string | {(...urlParts: string[]): void}; } + /** + * DOM events (used in the events property of a View) + */ interface EventsHash { [selector: string]: string | {(eventObject: JQuery.TriggeredEvent): void}; } - export const Events: Events; - interface Events { - on(eventName: string, callback?: (...args: any[]) => void, context?: any): any; - on(eventMap: EventsHash): any; - off(eventName?: string, callback?: (...args: any[]) => void, context?: any): any; - trigger(eventName: string, ...args: any[]): any; - bind(eventName: string, callback: (...args: any[]) => void, context?: any): any; - unbind(eventName?: string, callback?: (...args: any[]) => void, context?: any): any; - - once(events: string, callback: (...args: any[]) => void, context?: any): any; - listenTo(object: any, events: string, callback: (...args: any[]) => void): any; - listenToOnce(object: any, events: string, callback: (...args: any[]) => void): any; - stopListening(object?: any, events?: string, callback?: (...args: any[]) => void): any; + /** + * JavaScript events (used in the methods of the Events interface) + */ + interface EventHandler { + (...args: any[]): void; + } + interface EventMap { + [event: string]: EventHandler; } - class ModelBase implements Events { - on(eventName: string, callback?: Function, context?: any): any; - on(eventMap: EventsHash): any; - on(eventName: any, callback?: any, context?: any): any - off(eventName?: string, callback?: Function, context?: any): any - trigger(eventName: string, ...args: any[]): any - bind(eventName: string, callback: Function, context?: any): any - unbind(eventName?: string, callback?: Function, context?: any): any - once(events: string, callback: Function, context?: any): any - listenTo(object: any, events: string, callback: Function):any - listenToOnce(object: any, events: string, callback: Function): any - stopListening(object?: any, events?: string, callback?: Function): any + export const Events: Events; + interface Events extends EventsMixin { } + /** + * Helper shorthands for classes that implement the Events interface. + * Define your class like this: + * + * import { + * Events, + * Events_On, + * Events_Off, + * Events_Trigger, + * Events_Listen, + * Events_Stop, + * } from 'backbone'; + * + * class YourClass implements Events { + * on: Events_On; + * off: Events_Off; + * trigger: Events_Trigger; + * bind: Events_On; + * unbind: Events_Off; + * + * once: Events_On; + * listenTo: Events_Listen; + * listenToOnce: Events_Listen; + * stopListening: Events_Stop; + * + * // ... (other methods) + * } + * + * Object.assign(YourClass.prototype, Events); // can also use _.extend + * + * If you are just writing a class type declaration that doesn't already + * extend some other base class, you can use the EventsMixin instead; + * see below. + */ + interface Events_On { + (this: T, eventName: string, callback: EventHandler, context?: any): T; + (this: T, eventMap: EventMap, context?: any): T; + } + interface Events_Off { + (this: T, eventName?: string, callback?: EventHandler, context?: any): T; + } + interface Events_Trigger { + (this: T, eventName: string, ...args: any[]): T; + } + interface Events_Listen { + (this: T, object: any, events: string, callback: EventHandler): T; + (this: T, object: any, eventMap: EventMap): T; + } + interface Events_Stop { + (this: T, object?: any, events?: string, callback?: EventHandler): T; + } + + /** + * Helper to avoid code repetition in type declarations. + * Backbone.Events cannot be extended, hence a separate abstract + * class with a different name. Both classes and interfaces can + * extend from this helper class to reuse the signatures. + * + * For class type declarations that already extend another base + * class, and for actual class definitions, please see the + * Events_* interfaces above. + */ + abstract class EventsMixin implements Events { + on(eventName: string, callback: EventHandler, context?: any): this; + on(eventMap: EventMap, context?: any): this; + off(eventName?: string, callback?: EventHandler, context?: any): this; + trigger(eventName: string, ...args: any[]): this; + bind(eventName: string, callback: EventHandler, context?: any): this; + bind(eventMap: EventMap, context?: any): this; + unbind(eventName?: string, callback?: EventHandler, context?: any): this; + + once(events: string, callback: EventHandler, context?: any): this; + once(eventMap: EventMap, context?: any): this; + listenTo(object: any, events: string, callback: EventHandler): this; + listenTo(object: any, eventMap: EventMap): this; + listenToOnce(object: any, events: string, callback: EventHandler): this; + listenToOnce(object: any, eventMap: EventMap): this; + stopListening(object?: any, events?: string, callback?: EventHandler): this; + } + + class ModelBase extends EventsMixin { parse(response: any, options?: any): any; toJSON(options?: any): any; sync(...arg: any[]): JQueryXHR; } - class Model extends ModelBase { + class Model extends ModelBase implements Events { /** * Do not use, prefer TypeScript's extend functionality. @@ -229,7 +300,7 @@ declare namespace Backbone { matches(attrs: any): boolean; } - class Collection extends ModelBase { + class Collection extends ModelBase implements Events { /** * Do not use, prefer TypeScript's extend functionality. @@ -367,7 +438,7 @@ declare namespace Backbone { without(...values: TModel[]): TModel[]; } - class Router extends EventSignatures { + class Router extends EventsMixin implements Events { /** * Do not use, prefer TypeScript's extend functionality. @@ -396,7 +467,7 @@ declare namespace Backbone { var history: History; - class History extends EventSignatures { + class History extends EventsMixin implements Events { handlers: any[]; interval: number; @@ -433,7 +504,7 @@ declare namespace Backbone { attributes?: {[id: string]: any}; } - class View extends EventSignatures { + class View extends EventsMixin implements Events { /** * Do not use, prefer TypeScript's extend functionality. @@ -485,21 +556,3 @@ declare namespace Backbone { function noConflict(): typeof Backbone; var $: JQueryStatic; } - -/** - * This is not for external use and is only here as a convenient way to - * specify signatures for internal implementers of Backbone.Events - */ -declare abstract class EventSignatures implements Backbone.Events { - on(eventName: string, callback?: (...args: any[]) => void, context?: any): any; - on(eventMap: Backbone.EventsHash): any; - off(eventName?: string, callback?: (...args: any[]) => void, context?: any): any; - trigger(eventName: string, ...args: any[]): any; - bind(eventName: string, callback: (...args: any[]) => void, context?: any): any; - unbind(eventName?: string, callback?: (...args: any[]) => void, context?: any): any; - - once(events: string, callback: (...args: any[]) => void, context?: any): any; - listenTo(object: any, events: string, callback: (...args: any[]) => void): any; - listenToOnce(object: any, events: string, callback: (...args: any[]) => void): any; - stopListening(object?: any, events?: string, callback?: (...args: any[]) => void): any; -} \ No newline at end of file diff --git a/types/backbone/tslint.json b/types/backbone/tslint.json index d67ffb3a73..f5ae3a6788 100644 --- a/types/backbone/tslint.json +++ b/types/backbone/tslint.json @@ -8,73 +8,35 @@ "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-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 } } diff --git a/types/baidu-app/index.d.ts b/types/baidu-app/index.d.ts index 244e9dd473..ff71f9c012 100644 --- a/types/baidu-app/index.d.ts +++ b/types/baidu-app/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for swan-app 2.2 +// Type definitions for non-npm package swan-app 2.2 // Project: https://smartprogram.baidu.com/docs/develop/tutorial/codedir/ // Definitions by: taoqf // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/bandagedbd__bdapi/index.d.ts b/types/bandagedbd__bdapi/index.d.ts index 4792992374..d5b309d39f 100644 --- a/types/bandagedbd__bdapi/index.d.ts +++ b/types/bandagedbd__bdapi/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for bdapi 0.2 +// Type definitions for non-npm package bdapi 0.2 // Project: https://github.com/rauenzi/BetterDiscordApp // Definitions by: Ari Seyhun // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/base-64/index.d.ts b/types/base-64/index.d.ts index 26cb9c4a41..7dc6af6f1d 100644 --- a/types/base-64/index.d.ts +++ b/types/base-64/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for base-64 0.1 -// Project: https://github.com/mathiasbynens/base64 +// Project: https://github.com/mathiasbynens/base64, http://mths.be/base64 // Definitions by: Dolan Miu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/behavior3/index.d.ts b/types/behavior3/index.d.ts index 7cb3ad9deb..2188ec02cf 100644 --- a/types/behavior3/index.d.ts +++ b/types/behavior3/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for behavior3 0.2 +// Type definitions for non-npm package behavior3 0.2 // Project: https://github.com/behavior3/behavior3js // Definitions by: carry.wu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/bip38/index.d.ts b/types/bip38/index.d.ts index 8842c6a241..b38794f694 100644 --- a/types/bip38/index.d.ts +++ b/types/bip38/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for bip38 2.0 -// Project: https://github.com/bitcoinjs/bip38 +// Project: https://github.com/bitcoinjs/bip38, http://cryptocoinjs.com/modules/currency/bip38 // Definitions by: Satana Charuwichitratana // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/bip39/index.d.ts b/types/bip39/index.d.ts index 6894ac3b30..0cfbbe4f4d 100644 --- a/types/bip39/index.d.ts +++ b/types/bip39/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for bip39 2.4 -// Project: https://github.com/bitcoinjs/bip39 +// Project: https://github.com/bitcoinjs/bip39, https://github.com/weilu/bip39 // Definitions by: Satana Charuwichitratana // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/bittorrent-protocol/index.d.ts b/types/bittorrent-protocol/index.d.ts index 7c205edc33..778eee25e1 100644 --- a/types/bittorrent-protocol/index.d.ts +++ b/types/bittorrent-protocol/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for bittorrent-protocol 2.2 -// Project: https://github.com/feross/bittorrent-protocol#readme +// Project: https://github.com/webtorrent/bittorrent-protocol // Definitions by: Feross Aboukhadijeh , Tomasz Łaziuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/bluebird-global/index.d.ts b/types/bluebird-global/index.d.ts index c82f91fc30..da33188dd1 100644 --- a/types/bluebird-global/index.d.ts +++ b/types/bluebird-global/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for bluebird 3.5 -// Project: https://github.com/petkaantonov/bluebird +// Project: https://github.com/kaatt/bluebird-global // Definitions by: d-ph // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/bluebird-retry/index.d.ts b/types/bluebird-retry/index.d.ts index 7192ff90a3..f2c930b6e0 100644 --- a/types/bluebird-retry/index.d.ts +++ b/types/bluebird-retry/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for bluebird-retry 0.11 -// Project: https://github.com/jut-io/bluebird-retry +// Project: https://github.com/demmer/bluebird-retry // Definitions by: Pascal Vomhoff // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/bootstrap-colorpicker/index.d.ts b/types/bootstrap-colorpicker/index.d.ts index d4a9fa9870..e0a0396d0c 100644 --- a/types/bootstrap-colorpicker/index.d.ts +++ b/types/bootstrap-colorpicker/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for bootstrap-colorpicker 2.5 -// Project: https://github.com/farbelous/bootstrap-colorpicker/tree/v2.x +// Project: https://github.com/farbelous/bootstrap-colorpicker/tree/v2.x, https://farbelous.github.io/bootstrap-colorpicker // Definitions by: Aleksandar Manukov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/bootstrap-slider/index.d.ts b/types/bootstrap-slider/index.d.ts index 5559e12f12..fe1578b8ca 100644 --- a/types/bootstrap-slider/index.d.ts +++ b/types/bootstrap-slider/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for bootstrap-slider.js 9.9 -// Project: https://github.com/seiyria/bootstrap-slider +// Project: http://github.com/seiyria/bootstrap-slider // Definitions by: Daniel Beckwith // Leonard Thieu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/bootstrap-toggle/index.d.ts b/types/bootstrap-toggle/index.d.ts index 51dcec9446..e5b5256c77 100644 --- a/types/bootstrap-toggle/index.d.ts +++ b/types/bootstrap-toggle/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for bootstrap-toggle 2.2 -// Project: https://github.com/minhur/bootstrap-toggle +// Project: https://github.com/minhur/bootstrap-toggle, http://www.bootstraptoggle.com // Definitions by: Mitchell Grice // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/bootstrap.v3.datetimepicker/index.d.ts b/types/bootstrap.v3.datetimepicker/index.d.ts index c588943afd..410ef1f861 100644 --- a/types/bootstrap.v3.datetimepicker/index.d.ts +++ b/types/bootstrap.v3.datetimepicker/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Bootstrap 3 Datepicker 4.17 +// Type definitions for non-npm package Bootstrap 3 Datepicker 4.17 // Project: http://eonasdan.github.io/bootstrap-datetimepicker // Definitions by: Katona Péter // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/bootstrap/index.d.ts b/types/bootstrap/index.d.ts index d42cf5c524..2fb473fc29 100755 --- a/types/bootstrap/index.d.ts +++ b/types/bootstrap/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Bootstrap 4.2 -// Project: https://github.com/twbs/bootstrap/ +// Project: https://github.com/twbs/bootstrap/, https://getbootstrap.com // Definitions by: denisname // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/bson/bson-tests.ts b/types/bson/bson-tests.ts index f75ee94523..16f39ae759 100644 --- a/types/bson/bson-tests.ts +++ b/types/bson/bson-tests.ts @@ -1,10 +1,12 @@ -import * as bson from 'bson'; +import * as BSON from 'bson'; // enable hex string caching -bson.ObjectID.cacheHexString = true +BSON.ObjectId.cacheHexString = true -let BSON = new bson.BSON(); -let Long = bson.Long; +// Verify that legacy name ObjectID still works +BSON.ObjectID.cacheHexString = true + +let Long = BSON.Long; let doc = { long: Long.fromNumber(100) } @@ -16,13 +18,34 @@ console.log("data:", data); let doc_2 = BSON.deserialize(data); console.log("doc_2:", doc_2); -BSON = new bson.BSON(); data = BSON.serialize(doc); doc_2 = BSON.deserialize(data); // Calculate Object Size -BSON = new bson.BSON(); console.log("Calculated Object size - no options object:", BSON.calculateObjectSize(doc)); console.log("Calculated Object size - empty options object:", BSON.calculateObjectSize(doc, {})); console.log("Calculated Object size - custom options object:", BSON.calculateObjectSize(doc, { ignoreUndefined: false, serializeFunctions: true })); + +const { EJSON, Int32, ObjectId } = BSON; + +console.log(EJSON.stringify(doc, { relaxed: false })); +console.log(EJSON.stringify(doc, ['int32'], { relaxed: false })); +console.log(EJSON.stringify(doc, ['int32'], 2, { relaxed: false })); +console.log(EJSON.stringify(doc)); +console.log(EJSON.stringify(doc, ['int32'])); +console.log(EJSON.stringify(doc, ['int32'], 2)); + +let doc2 = { int32: new Int32(10), _id: new ObjectId() }; +const text = '{ "int32": { "$numberInt": "10" } }'; + +let o: {} +o = EJSON.parse (text, { relaxed: false }); +console.log(EJSON.stringify(o)); + +console.log (EJSON.parse (text)); + +o = EJSON.serialize(doc2); +let o2 = EJSON.deserialize (o); +console.log(o); +console.log(o2); \ No newline at end of file diff --git a/types/bson/index.d.ts b/types/bson/index.d.ts index e6afab65a5..40f9ade9da 100644 --- a/types/bson/index.d.ts +++ b/types/bson/index.d.ts @@ -1,7 +1,8 @@ -// Type definitions for bson 1.0.6 +// Type definitions for bson 4.0 // Project: https://github.com/mongodb/js-bson // Definitions by: Hiroki Horiuchi // Federico Caselli +// Justin Grant // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -42,6 +43,8 @@ export interface DeserializeOptions { fieldsAsRaw?: { readonly [fieldName: string]: boolean }; /** {default:false}, return BSON regular expressions as BSONRegExp instances. */ bsonRegExp?: boolean; + /** {default:false}, allows the buffer to be larger than the parsed BSON object. */ + allowObjectSmallerThanBufferSize?: boolean; } export interface CalculateObjectSizeOptions { @@ -51,67 +54,64 @@ export interface CalculateObjectSizeOptions { ignoreUndefined?: boolean; } -export class BSON { - /** - * Serialize a Javascript object. - * - * @param object The Javascript object to serialize. - * @param options Serialize options. - * @return The Buffer object containing the serialized object. - */ - serialize(object: any, options?: SerializeOptions): Buffer; +/** + * Serialize a Javascript object. + * + * @param object The Javascript object to serialize. + * @param options Serialize options. + * @return The Buffer object containing the serialized object. + */ +export function serialize(object: any, options?: SerializeOptions): Buffer; - /** - * Serialize a Javascript object using a predefined Buffer and index into the buffer, useful when pre-allocating the space for serialization. - * - * @param object The Javascript object to serialize. - * @param buffer The Buffer you pre-allocated to store the serialized BSON object. - * @param options Serialize options. - * @returns The index pointing to the last written byte in the buffer - */ - serializeWithBufferAndIndex(object: any, buffer: Buffer, options?: SerializeWithBufferAndIndexOptions): number; +/** + * Serialize a Javascript object using a predefined Buffer and index into the buffer, useful when pre-allocating the space for serialization. + * + * @param object The Javascript object to serialize. + * @param buffer The Buffer you pre-allocated to store the serialized BSON object. + * @param options Serialize options. + * @returns The index pointing to the last written byte in the buffer + */ +export function serializeWithBufferAndIndex(object: any, buffer: Buffer, options?: SerializeWithBufferAndIndexOptions): number; - /** - * Deserialize data as BSON. - * - * @param buffer The buffer containing the serialized set of BSON documents. - * @param options Deserialize options. - * @returns The deserialized Javascript Object. - */ - deserialize(buffer: Buffer, options?: DeserializeOptions): any; +/** + * Deserialize data as BSON. + * + * @param buffer The buffer containing the serialized set of BSON documents. + * @param options Deserialize options. + * @returns The deserialized Javascript Object. + */ +export function deserialize(buffer: Buffer, options?: DeserializeOptions): any; - /** - * Calculate the bson size for a passed in Javascript object. - * - * @param {Object} object the Javascript object to calculate the BSON byte size for. - * @param {CalculateObjectSizeOptions} Options - * @return {Number} returns the number of bytes the BSON object will take up. - */ - calculateObjectSize(object: any, options?: CalculateObjectSizeOptions): number; - - /** - * Deserialize stream data as BSON documents. - * - * @param data The buffer containing the serialized set of BSON documents. - * @param startIndex The start index in the data Buffer where the deserialization is to start. - * @param numberOfDocuments Number of documents to deserialize - * @param documents An array where to store the deserialized documents - * @param docStartIndex The index in the documents array from where to start inserting documents - * @param options Additional options used for the deserialization - * @returns The next index in the buffer after deserialization of the `numberOfDocuments` - */ - deserializeStream( - data: Buffer, - startIndex: number, - numberOfDocuments: number, - documents: Array, - docStartIndex: number, - options?: DeserializeOptions - ): number; - -} +/** + * Calculate the bson size for a passed in Javascript object. + * + * @param {Object} object the Javascript object to calculate the BSON byte size for. + * @param {CalculateObjectSizeOptions} Options + * @return {Number} returns the number of bytes the BSON object will take up. + */ +export function calculateObjectSize(object: any, options?: CalculateObjectSizeOptions): number; +/** + * Deserialize stream data as BSON documents. + * + * @param data The buffer containing the serialized set of BSON documents. + * @param startIndex The start index in the data Buffer where the deserialization is to start. + * @param numberOfDocuments Number of documents to deserialize + * @param documents An array where to store the deserialized documents + * @param docStartIndex The index in the documents array from where to start inserting documents + * @param options Additional options used for the deserialization + * @returns The next index in the buffer after deserialization of the `numberOfDocuments` + */ +export function deserializeStream( + data: Buffer, + startIndex: number, + numberOfDocuments: number, + documents: Array, + docStartIndex: number, + options?: DeserializeOptions +): number; + /** A class representation of the BSON Binary type. */ export class Binary { @@ -167,13 +167,12 @@ export class Code { export class DBRef { /** * @param namespace The collection name. - * @param oid The reference ObjectID. + * @param oid The reference ObjectId. * @param db Optional db name, if omitted the reference is local to the current db */ - constructor(namespace: string, oid: ObjectID, db?: string); - + constructor(namespace: string, oid: ObjectId, db?: string); namespace: string; - oid: ObjectID; + oid: ObjectId; db?: string; } @@ -349,60 +348,64 @@ export class MinKey { constructor(); } -/** A class representation of the BSON ObjectID type. */ -export class ObjectID { +/** A class representation of the BSON ObjectId type. */ +export class ObjectId { /** - * Create a new ObjectID instance - * @param {(string|number|ObjectID)} id Can be a 24 byte hex string, 12 byte binary string or a Number. + * Create a new ObjectId instance + * @param {(string|number|ObjectId)} id Can be a 24 byte hex string, 12 byte binary string or a Number. */ - constructor(id?: string | number | ObjectID); - /** The generation time of this ObjectID instance */ + constructor(id?: string | number | ObjectId); + /** The generation time of this ObjectId instance */ generationTime: number; - /** If true cache the hex string representation of ObjectID */ + /** If true cache the hex string representation of ObjectId */ static cacheHexString?: boolean; /** - * Creates an ObjectID from a hex string representation of an ObjectID. - * @param {string} hexString create a ObjectID from a passed in 24 byte hexstring. - * @return {ObjectID} return the created ObjectID + * Creates an ObjectId from a hex string representation of an ObjectId. + * @param {string} hexString create a ObjectId from a passed in 24 byte hexstring. + * @return {ObjectId} return the created ObjectId */ - static createFromHexString(hexString: string): ObjectID; + static createFromHexString(hexString: string): ObjectId; /** - * Creates an ObjectID from a second based number, with the rest of the ObjectID zeroed out. Used for comparisons or sorting the ObjectID. + * Creates an ObjectId from a second based number, with the rest of the ObjectId zeroed out. Used for comparisons or sorting the ObjectId. * @param {number} time an integer number representing a number of seconds. - * @return {ObjectID} return the created ObjectID + * @return {ObjectId} return the created ObjectId */ - static createFromTime(time: number): ObjectID; + static createFromTime(time: number): ObjectId; /** - * Checks if a value is a valid bson ObjectID + * Checks if a value is a valid bson ObjectId * - * @return {boolean} return true if the value is a valid bson ObjectID, return false otherwise. + * @return {boolean} return true if the value is a valid bson ObjectId, return false otherwise. */ - static isValid(id: string | number | ObjectID): boolean; + static isValid(id: string | number | ObjectId): boolean; /** - * Compares the equality of this ObjectID with `otherID`. - * @param {ObjectID|string} otherID ObjectID instance to compare against. - * @return {boolean} the result of comparing two ObjectID's + * Compares the equality of this ObjectId with `otherID`. + * @param {ObjectId|string} otherID ObjectId instance to compare against. + * @return {boolean} the result of comparing two ObjectId's */ - equals(otherID: ObjectID | string): boolean; + equals(otherID: ObjectId | string): boolean; /** - * Generate a 12 byte id string used in ObjectID's + * Generate a 12 byte id string used in ObjectId's * @param {number} time optional parameter allowing to pass in a second based timestamp. * @return {string} return the 12 byte id binary string. */ - generate(time?: number): Buffer; + static generate(time?: number): Buffer; /** * Returns the generation date (accurate up to the second) that this ID was generated. * @return {Date} the generation date */ getTimestamp(): Date; /** - * Return the ObjectID id as a 24 byte hex string representation + * Return the ObjectId id as a 24 byte hex string representation * @return {string} return the 24 byte hex string representation. */ toHexString(): string; } -export { ObjectID as ObjectId }; +/** + * ObjectID (with capital "D") is deprecated. Use ObjectId (lowercase "d") instead. + * @deprecated + */ +export { ObjectId as ObjectID }; /** A class representation of the BSON RegExp type. */ export class BSONRegExp { @@ -453,3 +456,139 @@ export class Timestamp extends LongLike { static fromString(str: string, opt_radix?: number): Timestamp; } + +/** + * Functions for serializing JavaScript objects into Mongodb Extended JSON (EJSON). + * @namespace EJSON + */ +export namespace EJSON { + + /** + * Parse an Extended JSON string, constructing the JavaScript value or object described by that + * string. + * + * @memberof EJSON + * @param {string} text + * @param {object} [options] Optional settings + * @param {boolean} [options.relaxed=true] Attempt to return native JS types where possible, rather than BSON types (if true) + * @return {object} + * + * @example + * const { EJSON } = require('bson'); + * const text = '{ "int32": { "$numberInt": "10" } }'; + * + * // prints { int32: { [String: '10'] _bsontype: 'Int32', value: '10' } } + * console.log(EJSON.parse(text, { relaxed: false })); + * + * // prints { int32: 10 } + * console.log(EJSON.parse(text)); + */ + export function parse(text: string, options?: {relaxed?: boolean;}): {}; + + /** + * Deserializes an Extended JSON object into a plain JavaScript object with native/BSON types + * + * @memberof EJSON + * @param {object} ejson The Extended JSON object to deserialize + * @param {object} [options] Optional settings passed to the parse method + * @return {object} + */ + export function deserialize(ejson: {}, options?: {relaxed?: boolean;}): {}; + + /** + * Serializes an object to an Extended JSON string, and reparse it as a JavaScript object. + * + * @memberof EJSON + * @param {object} bson The object to serialize + * @param {object} [options] Optional settings passed to the `stringify` function + * @return {object} + */ + export function serialize(bson: {}, options?: {relaxed?: boolean;}): {}; + + /** + * Converts a BSON document to an Extended JSON string, optionally replacing values if a replacer + * function is specified or optionally including only the specified properties if a replacer array + * is specified. + * + * @memberof EJSON + * @param {object} value The value to convert to extended JSON + * @param {function|array} [replacer] A function that alters the behavior of the stringification process, or an array of String and Number objects that serve as a whitelist for selecting/filtering the properties of the value object to be included in the JSON string. If this value is null or not provided, all properties of the object are included in the resulting JSON string + * @param {string|number} [space] A String or Number object that's used to insert white space into the output JSON string for readability purposes. + * @param {object} [options] Optional settings. + * @param {boolean} [options.relaxed=true] Enabled Extended JSON's `relaxed` mode + * @returns {string} + * + * @example + * const { EJSON, Int32 } = require('bson'); + * const doc = { int32: new Int32(10) }; + * + * // prints '{"int32":{"$numberInt":"10"}}' + * console.log(EJSON.stringify(doc, { relaxed: false })); + * + * // prints '{"int32":10}' + * console.log(EJSON.stringify(doc)); + */ + export function stringify( + value: {}, + options?: {relaxed?: boolean;} + ): string; + + /** + * Converts a BSON document to an Extended JSON string, optionally replacing values if a replacer + * function is specified or optionally including only the specified properties if a replacer array + * is specified. + * + * @memberof EJSON + * @param {object} value The value to convert to extended JSON + * @param {function|array} [replacer] A function that alters the behavior of the stringification process, or an array of String and Number objects that serve as a whitelist for selecting/filtering the properties of the value object to be included in the JSON string. If this value is null or not provided, all properties of the object are included in the resulting JSON string + * @param {string|number} [space] A String or Number object that's used to insert white space into the output JSON string for readability purposes. + * @param {object} [options] Optional settings. + * @param {boolean} [options.relaxed=true] Enabled Extended JSON's `relaxed` mode + * @returns {string} + * + * @example + * const { EJSON, Int32 } = require('bson'); + * const doc = { int32: new Int32(10) }; + * + * // prints '{"int32":{"$numberInt":"10"}}' + * console.log(EJSON.stringify(doc, { relaxed: false })); + * + * // prints '{"int32":10}' + * console.log(EJSON.stringify(doc)); + */ + + export function stringify( + value: {}, + replacer: ((key: string, value: any) => any) | Array, + options?: {relaxed?: boolean;} + ): string; + /** + * Converts a BSON document to an Extended JSON string, optionally replacing values if a replacer + * function is specified or optionally including only the specified properties if a replacer array + * is specified. + * + * @memberof EJSON + * @param {object} value The value to convert to extended JSON + * @param {function|array} [replacer] A function that alters the behavior of the stringification process, or an array of String and Number objects that serve as a whitelist for selecting/filtering the properties of the value object to be included in the JSON string. If this value is null or not provided, all properties of the object are included in the resulting JSON string + * @param {string|number} [space] A String or Number object that's used to insert white space into the output JSON string for readability purposes. + * @param {object} [options] Optional settings. + * @param {boolean} [options.relaxed=true] Enabled Extended JSON's `relaxed` mode + * @returns {string} + * + * @example + * const { EJSON, Int32 } = require('bson'); + * const doc = { int32: new Int32(10) }; + * + * // prints '{"int32":{"$numberInt":"10"}}' + * console.log(EJSON.stringify(doc, { relaxed: false })); + * + * // prints '{"int32":10}' + * console.log(EJSON.stringify(doc)); + */ + export function stringify( + value: {}, + replacer: ((key: string, value: any) => any) | Array, + indents?: string | number, + options?: {relaxed?: boolean;} + ): string; +} diff --git a/types/btoa/index.d.ts b/types/btoa/index.d.ts index bdb02b5b59..4f16b77328 100644 --- a/types/btoa/index.d.ts +++ b/types/btoa/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for btoa 1.2 -// Project: https://git.coolaj86.com/coolaj86/btoa.js +// Project: https://git.coolaj86.com/coolaj86/btoa.js.git // Definitions by: John Wright // Alex Brick // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/bull/index.d.ts b/types/bull/index.d.ts index bbafa0301c..aab2385ea4 100644 --- a/types/bull/index.d.ts +++ b/types/bull/index.d.ts @@ -228,6 +228,25 @@ declare namespace Bull { * Takes a lock for this job so that no other queue worker can process it at the same time. */ takeLock(): Promise; + + /** + * Get job properties as Json Object + */ + toJSON(): { + id: JobId, + name: string, + data: T, + opts: JobOptions, + progress: number, + delay: number, + timestamp: number, + attemptsMade: number, + failedReason: any, + stacktrace: string[] | null, + returnvalue: any, + finishedOn: number | null, + processedOn: number | null + }; } type JobStatus = 'completed' | 'waiting' | 'active' | 'delayed' | 'failed'; diff --git a/types/bunyan-seq/index.d.ts b/types/bunyan-seq/index.d.ts index 2520c93339..6d2a29fb1c 100644 --- a/types/bunyan-seq/index.d.ts +++ b/types/bunyan-seq/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for bunyan-blackhole 0.2 -// Project: https://github.com/datalust/bunyan-seq +// Project: https://github.com/datalust/bunyan-seq, https://github.com/continuousit/bunyan-seq // Definitions by: Ray Booysen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/c3/index.d.ts b/types/c3/index.d.ts index e047b22c7e..7aea852837 100644 --- a/types/c3/index.d.ts +++ b/types/c3/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for C3js 0.6 -// Project: http://c3js.org/ +// Project: http://c3js.org/, https://github.com/c3js/c3 // Definitions by: Marc Climent // Gerin Jacob // Bernd Hacker diff --git a/types/canvasjs/index.d.ts b/types/canvasjs/index.d.ts index e1b74a7606..c3c68712bf 100644 --- a/types/canvasjs/index.d.ts +++ b/types/canvasjs/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for CanvasJS 1.9 -// Project: http://canvasjs.com/ +// Project: http://canvasjs.com/, https://github.com/tsur/canvasjs // Definitions by: ShuYin Zhang // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/cassandra-driver/index.d.ts b/types/cassandra-driver/index.d.ts index 18527ed8c5..86073ec888 100644 --- a/types/cassandra-driver/index.d.ts +++ b/types/cassandra-driver/index.d.ts @@ -116,7 +116,7 @@ export namespace policies { onUnavailable(requestInfo: RequestInfo, consistency: types.consistencies, required: number, alive: number): DecisionInfo; onWriteTimeout(requestInfo: RequestInfo, consistency: types.consistencies, received: number, blockFor: number, writeType: string): DecisionInfo; rethrowResult(): { decision: retryDecision }; - retryResult(): { decision: retryDecision, consistency: types.consistencies, useCurrentHost: boolean }; + retryResult(consistency?: types.consistencies, useCurrentHost?: boolean): { decision: retryDecision, consistency: types.consistencies, useCurrentHost: boolean }; } } diff --git a/types/chai-json-schema/index.d.ts b/types/chai-json-schema/index.d.ts index 69aec8bec7..04e841bc91 100644 --- a/types/chai-json-schema/index.d.ts +++ b/types/chai-json-schema/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for chai-json-schema 1.4 -// Project: https://github.com/chaijs/chai-json-schema/ +// Project: https://github.com/chaijs/chai-json-schema/, http://chaijs.com // Definitions by: Ulrich Heiniger // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/chai-subset/index.d.ts b/types/chai-subset/index.d.ts index 615f9f52e4..d02efb5844 100644 --- a/types/chai-subset/index.d.ts +++ b/types/chai-subset/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for chai-subset 1.3 -// Project: https://github.com/e-conomic/chai-subset +// Project: https://github.com/debitoor/chai-subset // Definitions by: Sam Noedel , Andrew Brown // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/chart.js/index.d.ts b/types/chart.js/index.d.ts index 8e795ed77c..7745713c84 100644 --- a/types/chart.js/index.d.ts +++ b/types/chart.js/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Chart.js 2.7 -// Project: https://github.com/nnnick/Chart.js +// Project: https://github.com/nnnick/Chart.js, http://www.chartjs.org // Definitions by: Alberto Nuti // Fabien Lavocat // KentarouTakeda @@ -417,6 +417,7 @@ declare namespace Chart { } interface ChartLineOptions { + cubicInterpolationMode?: 'default' | 'monotone'; tension?: number; backgroundColor?: ChartColor; borderWidth?: number; diff --git a/types/chayns/index.d.ts b/types/chayns/index.d.ts index a1989a1c51..388d25d463 100644 --- a/types/chayns/index.d.ts +++ b/types/chayns/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for chayns 3.1 +// Type definitions for non-npm package chayns 3.1 // Project: https://github.com/TobitSoftware/chayns-js // Definitions by: Henning Kuehl // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/check-types/index.d.ts b/types/check-types/index.d.ts index fad987692f..a7b67b6863 100644 --- a/types/check-types/index.d.ts +++ b/types/check-types/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for check-types 7.3 -// Project: https://github.com/philbooth/check-types.js +// Project: https://gitlab.com/philbooth/check-types.js // Definitions by: idchlife // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/ // TypeScript Version: 2.2 diff --git a/types/chessboardjs/index.d.ts b/types/chessboardjs/index.d.ts index f6228f748e..0839c618ea 100644 --- a/types/chessboardjs/index.d.ts +++ b/types/chessboardjs/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for chessboardjs 0.3 -// Project: https://github.com/oakmac/chessboardjs/ +// Project: https://github.com/oakmac/chessboardjs/, https://github.com/deanius/chessboardjs // Definitions by: Bayo Olatunji // David Paz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/chosen-js/index.d.ts b/types/chosen-js/index.d.ts index e9a67550db..227d3795ad 100644 --- a/types/chosen-js/index.d.ts +++ b/types/chosen-js/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Chosen 1.8 -// Project: http://harvesthq.github.com/chosen/ +// Project: https://harvesthq.github.io/chosen // Definitions by: Boris Yankov , denisname // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/chrome/index.d.ts b/types/chrome/index.d.ts index 9f174ecb84..058bfd78ea 100644 --- a/types/chrome/index.d.ts +++ b/types/chrome/index.d.ts @@ -2486,6 +2486,33 @@ declare namespace chrome.enterprise.deviceAttributes { * function(string deviceId) {...}; */ export function getDirectoryDeviceId(callback: (deviceId: string) => void): void; + /** + * @since Chrome 66. + * @description + * Fetches the device's serial number. + * Please note the purpose of this API is to administrate the device + * (e.g. generating Certificate Sign Requests for device-wide certificates). + * This API may not be used for tracking devices without the consent of the device's administrator. + * If the current user is not affiliated, returns an empty string. + * @param callback Called with the serial number of the device. + */ + export function getDeviceSerialNumber(callback: (serialNumber: string) => void): void; + /** + * @since Chrome 66. + * @description + * Fetches the administrator-annotated Asset Id. + * If the current user is not affiliated or no Asset Id has been set by the administrator, returns an empty string. + * @param callback Called with the Asset ID of the device. + */ + export function getDeviceAssetId(callback: (assetId: string) => void): void; + /** + * @since Chrome 66. + * @description + * Fetches the administrator-annotated Location. + * If the current user is not affiliated or no Annotated Location has been set by the administrator, returns an empty string. + * @param callback Called with the Annotated Location of the device. + */ + export function getDeviceAnnotatedLocation(callback: (annotatedLocation: string) => void): void; } //////////////////// @@ -5999,6 +6026,480 @@ declare namespace chrome.system.storage { export var onDetached: SystemStorageDetachedEvent; } +//////////////////// +// System Display // +//////////////////// +/** + * Use the system.display API to query display metadata. + * Permissions: 'system.display' + * @since Chrome 30. + */ +declare namespace chrome.system.display { + + export const DisplayPosition: { + TOP: 'top', + RIGHT: 'right', + BOTTOM: 'bottom', + LEFT: 'left' + }; + export const MirrorMode: { + OFF: 'off', + NORMAL: 'normal', + MIXED: 'mixed' + }; + export interface Bounds { + /** The x-coordinate of the upper-left corner. */ + left: number; + /** The y-coordinate of the upper-left corner. */ + top: number; + /** The width of the display in pixels. */ + width: number; + /** The height of the display in pixels. */ + height: number; + } + + export interface Insets { + /** The x-axis distance from the left bound. */ + left: number; + /** The y-axis distance from the top bound. */ + top: number; + /** The x-axis distance from the right bound. */ + right: number; + /** The y-axis distance from the bottom bound. */ + bottom: number; + } + + /** + * @since Chrome 57 + */ + export interface Point { + /** The x-coordinate of the point. */ + x: number; + /** The y-coordinate of the point. */ + y: number; + } + + /** + * @since Chrome 57 + */ + export interface TouchCalibrationPair { + /** The coordinates of the display point. */ + displayPoint: Point; + /** The coordinates of the touch point corresponding to the display point. */ + touchPoint: Point; + } + + /** + * @since Chrome 52 + */ + export interface DisplayMode { + /** The display mode width in device independent (user visible) pixels. */ + width: number; + + /** The display mode height in device independent (user visible) pixels. */ + height: number; + + /** The display mode width in native pixels. */ + widthInNativePixels: number; + + /** The display mode height in native pixels. */ + heightInNativePixels: number; + + /** + * @deprecated Deprecated since Chrome 70. Use `displayZoomFactor` + * @description The display mode UI scale factor. + **/ + uiScale: number; + + /** The display mode device scale factor. */ + deviceScaleFactor: number; + + /** + * The display mode refresh rate in hertz. + * @since Chrome 67 + */ + refreshRate: number; + + /** True if the mode is the display's native mode. */ + isNative: boolean; + + /** True if the display mode is currently selected. */ + isSelected: boolean; + } + + /** + * @since Chrome 53 + */ + export interface DisplayLayout { + + /** The unique identifier of the display. */ + id: string; + /** The unique identifier of the parent display. Empty if this is the root. */ + parentId: string; + /** + * The layout position of this display relative to the parent. + * This will be ignored for the root. + * @see enum + */ + position: typeof DisplayPosition[keyof typeof DisplayPosition]; + /** The offset of the display along the connected edge. 0 indicates that the topmost or leftmost corners are aligned. */ + offset: number; + } + + /** + * The pairs of point used to calibrate the display. + */ + export interface TouchCalibrationPairs { + /** First pair of touch and display point required for touch calibration. */ + pair1: TouchCalibrationPair, + /** Second pair of touch and display point required for touch calibration. */ + pair2: TouchCalibrationPair, + /** Third pair of touch and display point required for touch calibration. */ + pair3: TouchCalibrationPair, + /** Fourth pair of touch and display point required for touch calibration. */ + pair4: TouchCalibrationPair + } + + /** + * Representation of info data to be used in chrome.system.display.setDisplayProperties() + */ + export interface DisplayPropertiesInfo { + /** + * @requires(CrOS) Chrome OS only. + * @description + * If set to true, changes the display mode to unified desktop. + * If set to false, unified desktop mode will be disabled. + * This is only valid for the primary display. + * If provided, mirroringSourceId must not be provided and other properties may not apply. + * This is has no effect if not provided. + * @see(See `enableUnifiedDesktop` for details). + * @since Chrome 59 + * */ + isUnified?: boolean; + + /** + * @requires(CrOS) Chrome OS only. + * @deprecated Deprecated since Chrome 68. Use ´setMirrorMode´ + * @see setMirrorMode + * @description + * If set and not empty, enables mirroring for this display. + * Otherwise disables mirroring for this display. + * This value should indicate the id of the source display to mirror, + * which must not be the same as the id passed to setDisplayProperties. + * If set, no other property may be set. + */ + mirroringSourceId?: string; + + /** + * If set to true, makes the display primary. + * No-op if set to false. + */ + isPrimary?: boolean; + + /** + * If set, sets the display's overscan insets to the provided values. + * Note that overscan values may not be negative or larger than a half of the screen's size. + * Overscan cannot be changed on the internal monitor. It's applied after isPrimary parameter. + */ + overscan?: Insets; + + /** + * If set, updates the display's rotation. + * Legal values are [0, 90, 180, 270]. + * The rotation is set clockwise, relative to the display's vertical position. + * It's applied after overscan parameter. + */ + rotation?: 0 | 90 | 180 | 270; + + /** + * If set, updates the display's logical bounds origin along x-axis. + * Applied together with boundsOriginY, if boundsOriginY is set. + * Note that, when updating the display origin, some constraints will be applied, + * so the final bounds origin may be different than the one set. + * The final bounds can be retrieved using getInfo. The bounds origin is applied + * after rotation. The bounds origin cannot be changed on the primary display. + * Note that is also invalid to set bounds origin values if isPrimary is also set + * (as isPrimary parameter is applied first). + */ + boundsOriginX?: number; + + /** + * If set, updates the display's logical bounds origin along y-axis. + * @see[See documentation for boundsOriginX parameter.] + */ + boundsOriginY: number; + + /** + * If set, updates the display mode to the mode matching this value. + * @since Chrome 52 + */ + displayMode?: DisplayMode; + + /** + * @since Chrome 65. + * @description + * If set, updates the zoom associated with the display. + * This zoom performs re-layout and repaint thus resulting + * in a better quality zoom than just performing + * a pixel by pixel stretch enlargement. + */ + displayZoomFactor?: number; + } + + /** + * Options affecting how the information is returned. + * @since Chrome 59 + */ + export interface DisplayInfoFlags { + /** + * If set to true, only a single DisplayUnitInfo will be returned by getInfo when in unified desktop mode. + * @see[enableUnifiedDesktop] + * @default false + */ + singleUnified?: boolean; + } + + /** Information about display properties. */ + export interface DisplayInfo { + /** The unique identifier of the display. */ + id: string; + /** The user-friendly name (e.g. 'HP LCD monitor'). */ + name: string; + /** + * @requires(CrOS Kiosk app) Only available in Chrome OS Kiosk apps + */ + edid?: { + /** + * 3 character manufacturer code. + */ + manufacturerId: string; + /** + * 2 byte manufacturer-assigned code. + */ + productId: string; + /** + * Year of manufacturer. + */ + yearOfManufacture?: string; + } + /** + * @requires(CrOS) Only working properly on Chrome OS. + * Identifier of the display that is being mirrored on the display unit. + * If mirroring is not in progress, set to an empty string + * Currently exposed only on ChromeOS. + * Will be empty string on other platforms. + */ + mirroringSourceId: string; + /** + * @requires(CrOS) Only available on Chrome OS. + * Identifiers of the displays to which the source display is being mirrored. + * Empty if no displays are being mirrored. This will be set to the same value + * for all displays. + * ❗ This must not include *mirroringSourceId*. ❗ + */ + mirroringDestinationIds: string[]; + /** True if this is the primary display. */ + isPrimary: boolean; + /** True if this is an internal display. */ + isInternal: boolean; + /** True if this display is enabled. */ + isEnabled: boolean; + /** The number of pixels per inch along the x-axis. */ + dpiX: number; + /** The number of pixels per inch along the y-axis. */ + dpiY: number; + /** The display's clockwise rotation in degrees relative to the vertical position. Currently exposed only on ChromeOS. Will be set to 0 on other platforms. */ + rotation: number; + /** The display's logical bounds. */ + bounds: Bounds; + /** The display's insets within its screen's bounds. Currently exposed only on ChromeOS. Will be set to empty insets on other platforms. */ + overscan: Insets; + /** The usable work area of the display within the display bounds. The work area excludes areas of the display reserved for OS, for example taskbar and launcher. */ + workArea: Bounds; + /** + * @requires(CrOS) Only available on Chrome OS. + * The list of available display modes. + * The current mode will have isSelected=true. + * Only available on Chrome OS. + * Will be set to an empty array on other platforms. + */ + modes: DisplayMode[]; + /** True if this display has a touch input device associated with it. */ + hasTouchSupport: boolean; + /** A list of zoom factor values that can be set for the display. */ + availableDisplayZoomFactors: number[]; + /** + * The ratio between the display's current and default zoom. + * For example, value 1 is equivalent to 100% zoom, and value 1.5 is equivalent to 150% zoom. + * */ + displayZoomFactor: number; + } + + export interface MirrorModeInfo { + /** + * The mirror mode that should be set. + * **off** + * Use the default mode (extended or unified desktop). + * **normal** + * The default source display will be mirrored to all other displays. + * **mixed** + * The specified source display will be mirrored to the provided destination displays. All other connected displays will be extended. + */ + mode?: 'off' | 'normal' | 'mixed'; + } + export interface MirrorModeInfoMixed extends MirrorModeInfo { + mode: 'mixed'; + mirroringSourceId?: string; + /** The ids of the mirroring destination displays. */ + mirroringDestinationIds?: string[]; + } + + /** + * Requests the information for all attached display devices. + * @param callback The callback to invoke with the results. + */ + export function getInfo(callback: (info: DisplayInfo[]) => void): void; + /** + * Requests the information for all attached display devices. + * @since Chrome 59 + * @param flags Options affecting how the information is returned. + * @param callback The callback to invoke with the results. + */ + export function getInfo(flags: DisplayInfoFlags, callback: (info: DisplayInfo[]) => void): void; + + /** + * @requires(CrOS Kiosk apps | WebUI) This is only available to Chrome OS Kiosk apps and Web UI. + * @description Requests the layout info for all displays. + * @since Chrome 53 + * @export + * @param callback The callback to invoke with the results. + */ + export function getDisplayLayout(callback: (layouts: DisplayLayout[]) => void): void; + + /** + * @requires(CrOS Kiosk apps | WebUI) This is only available to Chrome OS Kiosk apps and Web UI. + * @description + * Updates the properties for the display specified by **id**, + * according to the information provided in **info**. + * On failure, runtime.lastError will be set. + * @param {string} id The display's unique identifier. + * @param {DisplayPropertiesInfo} info The information about display properties that should be changed. A property will be changed only if a new value for it is specified in |info|. + * @param {() => void} [callback] Empty function called when the function finishes. To find out whether the function succeeded, runtime.lastError should be queried. + */ + export function setDisplayProperties(id: string, info: DisplayPropertiesInfo, callback?: () => void): void; + + /** + * @requires(CrOS Kiosk apps | WebUI) This is only available to Chrome OS Kiosk apps and Web UI. + * @description + * Set the layout for all displays. + * Any display not included will use the default layout. + * If a layout would overlap or be otherwise invalid it will be adjusted to a valid layout. + * After layout is resolved, an onDisplayChanged event will be triggered. + * @since Chrome 53 + * @param layouts The layout information, required for all displays except the primary display. + * @param callback Empty function called when the function finishes. To find out whether the function succeeded, runtime.lastError should be queried. + */ + export function setDisplayLayout(layouts: DisplayLayout[], callback?: () => void): void; + + /** + * @requires(CrOS Kiosk apps | WebUI) This is only available to Chrome OS Kiosk apps and Web UI. + * @description + * Enables/disables the unified desktop feature. + * Note that this simply enables the feature, but will not change the actual desktop mode. + * (That is, if the desktop is in mirror mode, it will stay in mirror mode) + * @since Chrome 46 + * @param {boolean} enabled True if unified desktop should be enabled. + */ + export function enableUnifiedDesktop(enabled: boolean): void; + /** + * Starts overscan calibration for a display. + * This will show an overlay on the screen indicating the current overscan insets. + * If overscan calibration for display **id** is in progress this will reset calibration. + * @since Chrome 53 + * @param id The display's unique identifier. + */ + export function overscanCalibrationStart(id: string): void; + /** + * Adjusts the current overscan insets for a display. + * Typically this should etiher move the display along an axis (e.g. left+right have the same value) + * or scale it along an axis (e.g. top+bottom have opposite values). + * Each Adjust call is cumulative with previous calls since Start. + * @since Chrome 53 + * @param id The display's unique identifier. + * @param delta The amount to change the overscan insets. + */ + export function overscanCalibrationAdjust(id: string, delta: Insets): void; + + /** + * Resets the overscan insets for a display to the last saved value (i.e before Start was called). + * @since Chrome 53 + * @param id The display's unique identifier. + */ + export function overscanCalibrationReset(id: string): void; + + /** + * Complete overscan adjustments for a display by saving the current values and hiding the overlay. + * @since Chrome 53 + * @param id The display's unique identifier. + */ + export function overscanCalibrationComplete(id: string): void; + + /** + * Displays the native touch calibration UX for the display with **id** as display id. + * This will show an overlay on the screen with required instructions on how to proceed. + * The callback will be invoked in case of successful calibraion only. + * If the calibration fails, this will throw an error. + * @since Chrome 57 + * @param id The display's unique identifier. + * @param callback Optional callback to inform the caller that the touch calibration has ended. The argument of the callback informs if the calibration was a success or not. + */ + export function showNativeTouchCalibration(id: string, callback: (success: boolean) => void): void; + + /** + * Starts custom touch calibration for a display. + * This should be called when using a custom UX for collecting calibration data. + * If another touch calibration is already in progress this will throw an error. + * @since Chrome 57 + * @param id The display's unique identifier. + */ + export function startCustomTouchCalibration(id: string): void; + + /** + * Sets the touch calibration pairs for a display. + * These **pairs** would be used to calibrate the touch screen for display with **id** called in startCustomTouchCalibration(). + * Always call **startCustomTouchCalibration** before calling this method. + * If another touch calibration is already in progress this will throw an error. + * @since Chrome 57 + * @param pairs The pairs of point used to calibrate the display. + * @param bounds Bounds of the display when the touch calibration was performed. |bounds.left| and |bounds.top| values are ignored. + * @throws Error + */ + export function completeCustomTouchCalibration(pairs: TouchCalibrationPairs, bounds: Bounds): void; + + /** + * Resets the touch calibration for the display and brings it back to its default state by clearing any touch calibration data associated with the display. + * @since Chrome 57 + * @param id The display's unique identifier. + */ + export function clearTouchCalibration(id: string): void; + + /** + * @requires(CrOS Kiosk app) Chrome OS Kiosk apps only + * @since Chrome 65. + * @description + * Sets the display mode to the specified mirror mode. + * Each call resets the state from previous calls. + * Calling setDisplayProperties() will fail for the + * mirroring destination displays. + */ + export function setMirrorMode(info: MirrorModeInfo | MirrorModeInfoMixed, callback: () => void): void; + + /** + * Fired when anything changes to the display configuration. + */ + export const onDisplayChanged: chrome.events.Event<() => void>; +} + //////////////////// // TabCapture //////////////////// diff --git a/types/chromecast-caf-receiver/index.d.ts b/types/chromecast-caf-receiver/index.d.ts index 444dba0af4..f1b2b4a512 100644 --- a/types/chromecast-caf-receiver/index.d.ts +++ b/types/chromecast-caf-receiver/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for chromecast-caf-receiver 3.x +// Type definitions for non-npm package chromecast-caf-receiver 3.x // Project: https://github.com/googlecast // Definitions by: Craig Bruce // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/chromecast-caf-sender/index.d.ts b/types/chromecast-caf-sender/index.d.ts index de152b0715..10f2845316 100644 --- a/types/chromecast-caf-sender/index.d.ts +++ b/types/chromecast-caf-sender/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Cast Application Framework Sender API 1.0 +// Type definitions for non-npm package Cast Application Framework Sender API 1.0 // Project: https://developers.google.com/cast/docs/caf_receiver_overview // Definitions by: Samuel Maddock // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/ckeditor/index.d.ts b/types/ckeditor/index.d.ts index 910d62f2d7..3d35877b9d 100644 --- a/types/ckeditor/index.d.ts +++ b/types/ckeditor/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for CKEditor 4.9 -// Project: https://ckeditor.com/ckeditor-4/ +// Project: https://ckeditor.com/ckeditor-4/, http://ckeditor.com // Definitions by: Thomas Wittwer // Stuart Long // Viktor Pegy diff --git a/types/ckeditor__ckeditor5-core/index.d.ts b/types/ckeditor__ckeditor5-core/index.d.ts index 63ae237739..e3de076471 100644 --- a/types/ckeditor__ckeditor5-core/index.d.ts +++ b/types/ckeditor__ckeditor5-core/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @ckeditor/ckeditor5-core 11.0 -// Project: https://github.com/ckeditor/ckeditor5-core +// Project: https://github.com/ckeditor/ckeditor5-core, https://ckeditor.com // Definitions by: denisname // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/ckeditor__ckeditor5-engine/index.d.ts b/types/ckeditor__ckeditor5-engine/index.d.ts index 280b6ea213..4d3e3f4a97 100644 --- a/types/ckeditor__ckeditor5-engine/index.d.ts +++ b/types/ckeditor__ckeditor5-engine/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @ckeditor/ckeditor5-engine 11.0 -// Project: https://github.com/ckeditor/ckeditor5-engine +// Project: https://github.com/ckeditor/ckeditor5-engine, https://ckeditor.com // Definitions by: denisname // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/ckeditor__ckeditor5-utils/index.d.ts b/types/ckeditor__ckeditor5-utils/index.d.ts index 50571483f8..3d943969de 100644 --- a/types/ckeditor__ckeditor5-utils/index.d.ts +++ b/types/ckeditor__ckeditor5-utils/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @ckeditor/ckeditor5-utils 10.2 -// Project: https://github.com/ckeditor/ckeditor5-utils +// Project: https://github.com/ckeditor/ckeditor5-utils, https://ckeditor.com // Definitions by: denisname // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/clear-require/index.d.ts b/types/clear-require/index.d.ts index 4b9118a008..1ee315c5b4 100644 --- a/types/clear-require/index.d.ts +++ b/types/clear-require/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for clear-require 2.0 -// Project: https://github.com/sindresorhus/clear-module +// Project: https://github.com/sindresorhus/clear-module, https://github.com/sindresorhus/clear-require // Definitions by: dan-j // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/clearbladejs-client/index.d.ts b/types/clearbladejs-client/index.d.ts index fa27a5d076..0eb8e789d9 100644 --- a/types/clearbladejs-client/index.d.ts +++ b/types/clearbladejs-client/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for clearbladejs-client 1.1 +// Type definitions for non-npm package clearbladejs-client 1.1 // Project: https://github.com/ClearBlade/JavaScript-API // Definitions by: Jim Bouquet // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/clearbladejs-node/index.d.ts b/types/clearbladejs-node/index.d.ts index 192b1a97ee..d4f71d4b64 100644 --- a/types/clearbladejs-node/index.d.ts +++ b/types/clearbladejs-node/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for clearbladejs-node 1.0 +// Type definitions for non-npm package clearbladejs-node 1.0 // Project: https://github.com/ClearBlade/Node-SDK // Definitions by: Jim Bouquet // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/clearbladejs-server/index.d.ts b/types/clearbladejs-server/index.d.ts index 2f6e8d672b..89a5f7a9a1 100644 --- a/types/clearbladejs-server/index.d.ts +++ b/types/clearbladejs-server/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for clearbladejs-server 1.1 +// Type definitions for non-npm package clearbladejs-server 1.1 // Project: https://docs.clearblade.com/v/3/4-developer_reference/platformsdk/ClearBlade.js/ // Definitions by: Jim Bouquet // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/clockpicker/index.d.ts b/types/clockpicker/index.d.ts index d9dbd444e8..ce279c668c 100644 --- a/types/clockpicker/index.d.ts +++ b/types/clockpicker/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for ClockPicker 0.0 -// Project: https://github.com/weareoutman/clockpicker +// Project: https://github.com/weareoutman/clockpicker, http://weareoutman.github.io/clockpicker // Definitions by: jfcere // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/cloudflare-apps/index.d.ts b/types/cloudflare-apps/index.d.ts index 6223a5e8ca..06163d46d8 100644 --- a/types/cloudflare-apps/index.d.ts +++ b/types/cloudflare-apps/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for cloudflare-apps 0.1 +// Type definitions for non-npm package cloudflare-apps 0.1 // Project: https://www.cloudflare.com/apps/ // Definitions by: MartynasZilinskas // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/co/co-tests.ts b/types/co/co-tests.ts new file mode 100644 index 0000000000..159a2e90fb --- /dev/null +++ b/types/co/co-tests.ts @@ -0,0 +1,30 @@ +import co = require('co'); + +function* gen(num: number, str: string, arr: number[], obj: object, fun: () => void) { + return num; +} + +co(gen, 42, 'forty-two', [42], { value: 42 }, () => {}) + .then((num: number) => {}, (err: Error) => {}) + .catch((err: Error) => {}); + +co.default(gen, 42, 'forty-two', [42], { value: 42 }, () => {}) + .then((num: number) => {}, (err: Error) => {}) + .catch((err: Error) => {}); + +co.co(gen, 42, 'forty-two', [42], { value: 42 }, () => {}) + .then((num: number) => {}, (err: Error) => {}) + .catch((err: Error) => {}); + +co.wrap(gen)(42, 'forty-two', [42], { value: 42 }, () => {}) + .then((num: number) => {}, (err: Error) => {}) + .catch((err: Error) => {}); + +// $ExpectError +co(gen, 42, 'forty-two', [42], { value: 42 }, () => {}).then((str: string) => {}); + +// $ExpectError +co.wrap(gen)(); + +// $ExpectError +co.wrap(gen)('forty-two'); diff --git a/types/co/index.d.ts b/types/co/index.d.ts new file mode 100644 index 0000000000..958c222a14 --- /dev/null +++ b/types/co/index.d.ts @@ -0,0 +1,18 @@ +// Type definitions for co 4.6 +// Project: https://github.com/tj/co#readme +// Definitions by: Doniyor Aliyev +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 3.1 + +type ExtractType = T extends IterableIterator ? R : never; + +interface Co { + Generator>(fn: F, ...args: Parameters): Promise>>; + default: Co; + co: Co; + wrap: Generator>(fn: F) => (...args: Parameters) => Promise>>; +} + +declare const co: Co; + +export = co; diff --git a/types/co/tsconfig.json b/types/co/tsconfig.json new file mode 100644 index 0000000000..bc5a88eb32 --- /dev/null +++ b/types/co/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", + "co-tests.ts" + ] +} diff --git a/types/shipit/tslint.json b/types/co/tslint.json similarity index 100% rename from types/shipit/tslint.json rename to types/co/tslint.json diff --git a/types/codemirror/index.d.ts b/types/codemirror/index.d.ts index bfef4c5e88..730e35b3f0 100644 --- a/types/codemirror/index.d.ts +++ b/types/codemirror/index.d.ts @@ -357,7 +357,7 @@ declare namespace CodeMirror { It will call the function, buffering up all changes, and only doing the expensive update after the function returns. This can be a lot faster. The return value from this method will be the return value of your function. */ operation(fn: ()=> T): T; - + /** In normal circumstances, use the above operation method. But if you want to buffer operations happening asynchronously, or that can't all be wrapped in a callback function, you can call startOperation to tell CodeMirror to start buffering changes, and endOperation to actually render all the updates. Be careful: if you use this API and forget to call endOperation, the editor will just never update. */ @@ -783,8 +783,8 @@ declare namespace CodeMirror { } interface PositionConstructor { - new (line: number, ch?: number): Position; - (line: number, ch?: number): Position; + new (line: number, ch?: number, sticky?: string): Position; + (line: number, ch?: number, sticky?: string): Position; } interface Range { @@ -797,6 +797,7 @@ declare namespace CodeMirror { interface Position { ch: number; line: number; + sticky?: string; } interface EditorConfiguration { diff --git a/types/color-name/index.d.ts b/types/color-name/index.d.ts index 65b4ecc8fb..b5bff4717a 100644 --- a/types/color-name/index.d.ts +++ b/types/color-name/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for color-name 1.1 -// Project: https://www.npmjs.com/package/color-name +// Project: https://github.com/colorjs/color-name // Definitions by: Junyoung Clare Jang // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/com.wikitude.phonegap.wikitudeplugin/index.d.ts b/types/com.wikitude.phonegap.wikitudeplugin/index.d.ts index 50307d57c8..10b5d58b5b 100644 --- a/types/com.wikitude.phonegap.wikitudeplugin/index.d.ts +++ b/types/com.wikitude.phonegap.wikitudeplugin/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for com.wikitude.phonegap.wikitudeplugin 7.2 -// Project: https://github.com/Wikitude/wikitude-cordova-plugin +// Project: https://github.com/Wikitude/wikitude-cordova-plugin, https://github.com/wikitude/wikitude-phonegap // Definitions by: zbarbuto // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/cometd/AckExtension/index.d.ts b/types/cometd/AckExtension/index.d.ts new file mode 100644 index 0000000000..49a007a8f8 --- /dev/null +++ b/types/cometd/AckExtension/index.d.ts @@ -0,0 +1,12 @@ +import * as m from '..'; + +declare class AckExtension implements m.Extension { + constructor(); + + incoming: m.Listener; + outgoing: m.Listener; + registered: (name: string, cometd: m.CometD) => void; + unregistered: () => void; +} + +export default AckExtension; diff --git a/types/cometd/TimeSyncExtension/index.d.ts b/types/cometd/TimeSyncExtension/index.d.ts new file mode 100644 index 0000000000..74ebe4ef3e --- /dev/null +++ b/types/cometd/TimeSyncExtension/index.d.ts @@ -0,0 +1,40 @@ +import * as m from '..'; + +declare class TimeSyncExtension implements m.Extension { + constructor(); + + incoming: m.Listener; + outgoing: m.Listener; + registered: (name: string, cometd: m.CometD) => void; + unregistered: () => void; + + /** + * Get the estimated offset in ms from the clients clock to the + * servers clock. The server time is the client time plus the offset. + */ + getTimeOffset: () => number; + + /** + * Get an array of multiple offset samples used to calculate + * the offset. + */ + getTimeOffsetSamples: () => [number]; + + /** + * Get the estimated network lag in ms from the client to the server. + */ + getNetworkLag: () => number; + + /** + * Get the estimated server time in ms since the epoch. + */ + getServerTime: () => number; + + /** + * + * Get the estimated server time as a Date object + */ + getServerDate: () => Date; +} + +export default TimeSyncExtension; diff --git a/types/cometd/cometd-tests.ts b/types/cometd/cometd-tests.ts index ef56879d6f..e82cf16323 100644 --- a/types/cometd/cometd-tests.ts +++ b/types/cometd/cometd-tests.ts @@ -1,4 +1,6 @@ import { CometD, Listener, Message, SubscriptionHandle } from "cometd"; +import TimeSyncExtension from 'cometd/TimeSyncExtension'; +import AckExtension from 'cometd/AckExtension'; const cometd = new CometD(); @@ -11,7 +13,23 @@ cometd.configure({ url: "http://localhost:8080/cometd" }); -cometd.registerExtension("ack", { incoming: () => {}, outgoing: () => {} }); +cometd.registerExtension("ack", new AckExtension()); + +const timesync = new TimeSyncExtension(); +cometd.registerExtension("timesync", timesync); + +const timeSyncSubscription = cometd.addListener("/foo/bar", () => { + if (timesync.getNetworkLag() > 1000) { + cometd.publish("/mychannel", { timesyncStats: { + lag: timesync.getNetworkLag(), + serverTime: timesync.getServerTime(), + serverDate: timesync.getServerDate(), + timeOffset: timesync.getTimeOffset(), + timeOffsetSamples: timesync.getTimeOffsetSamples() + } + }); + } +}); cometd.unregisterTransport("websocket"); diff --git a/types/cometd/index.d.ts b/types/cometd/index.d.ts index cd829d444c..d7103f15cd 100644 --- a/types/cometd/index.d.ts +++ b/types/cometd/index.d.ts @@ -1,6 +1,9 @@ // Type definitions for CometD 4.0 -// Project: http://cometd.org -// Definitions by: Derek Cicerone , Daniel Perez Alvarez , Alex Henry +// Project: https://cometd.org +// Definitions by: Derek Cicerone +// Daniel Perez Alvarez +// Alex Henry +// Harald Gliebe // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -88,6 +91,8 @@ export interface SubscriptionHandle { export interface Extension { incoming?: Listener; outgoing?: Listener; + registered?: (name: string, cometd: CometD) => void; + unregistered?: () => void; } export class CometD { diff --git a/types/cometd/tsconfig.json b/types/cometd/tsconfig.json index 6533a1a225..da1896488a 100644 --- a/types/cometd/tsconfig.json +++ b/types/cometd/tsconfig.json @@ -18,6 +18,8 @@ }, "files": [ "index.d.ts", - "cometd-tests.ts" + "cometd-tests.ts", + "AckExtension/index.d.ts", + "TimeSyncExtension/index.d.ts" ] -} \ No newline at end of file +} diff --git a/types/commonmark/index.d.ts b/types/commonmark/index.d.ts index 2f2899b44a..7ceb1fd2c5 100644 --- a/types/commonmark/index.d.ts +++ b/types/commonmark/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for commonmark.js 0.27 -// Project: https://github.com/jgm/commonmark.js +// Project: https://github.com/jgm/commonmark.js, http://commonmark.org // Definitions by: Nico Jansen // Leonard Thieu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/component-emitter/component-emitter-tests.ts b/types/component-emitter/component-emitter-tests.ts index ed49d799c3..3d2ed7252a 100644 --- a/types/component-emitter/component-emitter-tests.ts +++ b/types/component-emitter/component-emitter-tests.ts @@ -48,3 +48,5 @@ emitter.emit('some-recurring-event', event_data) emitter.listeners('some-recurring-event') emitter.hasListeners('some-recurring-event') + +emitter.emit('some-event').emit("I can use chaining!") diff --git a/types/component-emitter/index.d.ts b/types/component-emitter/index.d.ts index b55a1673ab..16332270e1 100644 --- a/types/component-emitter/index.d.ts +++ b/types/component-emitter/index.d.ts @@ -3,19 +3,20 @@ // Definitions by: Peter Snider // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/emitter-component +// TypeScript Version: 2.2 interface Emitter { on(event: string, listener: Function): Emitter; once(event: string, listener: Function): Emitter; off(event?: string, listener?: Function): Emitter; - emit(event: string, ...args: any[]): boolean; + emit(event: string, ...args: any[]): Emitter; listeners(event: string): Function[]; hasListeners(event: string): boolean; } declare const Emitter: { - (obj?: any): Emitter; - new (obj?: any): Emitter; + (obj?: object): Emitter; + new (obj?: object): Emitter; }; export = Emitter; diff --git a/types/content-type/index.d.ts b/types/content-type/index.d.ts index c81c78c966..246113c7b2 100644 --- a/types/content-type/index.d.ts +++ b/types/content-type/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for content-type 1.1 -// Project: https://www.npmjs.com/package/content-type +// Project: https://github.com/jshttp/content-type // Definitions by: Hiroki Horiuchi // BendingBender // Definitions: https://github.com/borisyankov/DefinitelyTyped diff --git a/types/cookie-signature/index.d.ts b/types/cookie-signature/index.d.ts index cb044f4636..19246a9965 100644 --- a/types/cookie-signature/index.d.ts +++ b/types/cookie-signature/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for cookie-signature 1.0 -// Project: https://github.com/tj/node-cookie-signature +// Project: https://github.com/tj/node-cookie-signature, https://github.com/visionmedia/node-cookie-signature // Definitions by: François Nguyen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/copy-webpack-plugin/index.d.ts b/types/copy-webpack-plugin/index.d.ts index 59c1b8d0cb..bc0fc5066a 100644 --- a/types/copy-webpack-plugin/index.d.ts +++ b/types/copy-webpack-plugin/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for copy-webpack-plugin 4.4 -// Project: https://github.com/kevlened/copy-webpack-plugin +// Project: https://github.com/webpack-contrib/copy-webpack-plugin // Definitions by: flying-sheep // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/cordova-plugin-bluetoothclassic-serial/index.d.ts b/types/cordova-plugin-bluetoothclassic-serial/index.d.ts index 2dfe8c94ae..1d54e82b2a 100644 --- a/types/cordova-plugin-bluetoothclassic-serial/index.d.ts +++ b/types/cordova-plugin-bluetoothclassic-serial/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for cordova-plugin-bluetoothClassic-serial 0.9 +// Type definitions for non-npm package cordova-plugin-bluetoothClassic-serial 0.9 // Project: https://github.com/soltius/BluetoothClassicSerial // Definitions by: Wouter Roosendaal // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/cordova-plugin-canvascamera/index.d.ts b/types/cordova-plugin-canvascamera/index.d.ts index f9d2a1717e..5c2f371d0f 100644 --- a/types/cordova-plugin-canvascamera/index.d.ts +++ b/types/cordova-plugin-canvascamera/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for CanvasCameraPlugin 1.0 +// Type definitions for non-npm package CanvasCameraPlugin 1.0 // Project: https://github.com/VirtuoWorks/CanvasCameraPlugin // Definitions by: Ricardo Azzi Silva // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/create-subscription/index.d.ts b/types/create-subscription/index.d.ts index 8c7d8c1ced..bf88af759b 100644 --- a/types/create-subscription/index.d.ts +++ b/types/create-subscription/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for create-subscription 16.4 -// Project: https://github.com/facebook/react/tree/master/packages/create-subscription +// Project: https://github.com/facebook/react/tree/master/packages/create-subscription, https://github.com/facebook/react // Definitions by: Asana // Vincent Siao // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/cropperjs/index.d.ts b/types/cropperjs/index.d.ts index d444c20705..8d3108bc7e 100644 --- a/types/cropperjs/index.d.ts +++ b/types/cropperjs/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for cropperjs 1.1 -// Project: https://github.com/fengyuanchen/cropperjs +// Project: https://github.com/fengyuanchen/cropperjs, https://fengyuanchen.github.io/cropperjs // Definitions by: Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/croppie/index.d.ts b/types/croppie/index.d.ts index a8b53c54e5..c3e0627c08 100644 --- a/types/croppie/index.d.ts +++ b/types/croppie/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for croppie 2.5 -// Project: https://github.com/Foliotek/Croppie +// Project: https://github.com/Foliotek/Croppie, http://foliotek.github.io/croppie // Definitions by: Connor Peet // dklmuc // Sarun Intaralawan diff --git a/types/csprng/index.d.ts b/types/csprng/index.d.ts index 90aa83b017..796294db0c 100644 --- a/types/csprng/index.d.ts +++ b/types/csprng/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for csprng 0.1 -// Project: https://github.com/jcoglan/node-csprng +// Project: http://github.com/jcoglan/node-csprng // Definitions by: Wink Saville // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = csprng; diff --git a/types/cssesc/cssesc-tests.ts b/types/cssesc/cssesc-tests.ts new file mode 100644 index 0000000000..61475ed447 --- /dev/null +++ b/types/cssesc/cssesc-tests.ts @@ -0,0 +1,35 @@ +import cssesc = require("cssesc"); + +// $ExpectType string +cssesc('Ich ♥ Bücher'); + +// $ExpectType string +cssesc('123a2b', { + isIdentifier: true +}); + +// $ExpectType string +cssesc('Lorem ipsum "dolor" sit \'amet\' etc.', { + quotes: 'single' +}); + +// $ExpectType string +cssesc('Lorem ipsum "dolor" sit \'amet\' etc.', { + quotes: 'double' +}); + +// $ExpectType string +cssesc('Lorem ipsum "dolor" sit \'amet\' etc.', { + quotes: 'single', + wrap: true +}); + +// $ExpectType string +cssesc('lolwat"foo\'bar', { + escapeEverything: true +}); + +cssesc.options.escapeEverything = false; + +// $ExpectType string +cssesc.version; diff --git a/types/cssesc/index.d.ts b/types/cssesc/index.d.ts new file mode 100644 index 0000000000..25a9e1f455 --- /dev/null +++ b/types/cssesc/index.d.ts @@ -0,0 +1,22 @@ +// Type definitions for cssesc 3.0 +// Project: https://mths.be/cssesc +// Definitions by: Daniel Cassidy +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 + +export = cssesc; + +declare function cssesc(string: string, options?: Readonly>): string; + +declare namespace cssesc { + interface Options { + escapeEverything: boolean; + isIdentifier: boolean; + quotes: string; + wrap: boolean; + } + + const options: Options; + + const version: string; +} diff --git a/types/cssesc/tsconfig.json b/types/cssesc/tsconfig.json new file mode 100644 index 0000000000..16acf5e56a --- /dev/null +++ b/types/cssesc/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", + "cssesc-tests.ts" + ] +} diff --git a/types/cssesc/tslint.json b/types/cssesc/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/cssesc/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/csv-parse/index.d.ts b/types/csv-parse/index.d.ts index e85742c1c9..5ecaeea77b 100644 --- a/types/csv-parse/index.d.ts +++ b/types/csv-parse/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for csv-parse 1.1 -// Project: https://github.com/wdavidw/node-csv-parse +// Project: https://github.com/wdavidw/node-csv-parse, https://csv.js.org/parse // Definitions by: David Muller // Jan Sziegaud // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/csv-stringify/index.d.ts b/types/csv-stringify/index.d.ts index 2b74a8c864..c7cd4fd900 100644 --- a/types/csv-stringify/index.d.ts +++ b/types/csv-stringify/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for csv-stringify 1.4 -// Project: https://github.com/wdavidw/node-csv-stringify +// Project: https://github.com/wdavidw/node-csv-stringify, https://csv.js.org/stringify // Definitions by: Rogier Schouten // Arjen van der Ende // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/cucumber/index.d.ts b/types/cucumber/index.d.ts index 8cfed3ef31..aff42c73da 100644 --- a/types/cucumber/index.d.ts +++ b/types/cucumber/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for cucumber-js 4.0 -// Project: https://github.com/cucumber/cucumber-js +// Project: http://github.com/cucumber/cucumber-js // Definitions by: Abraão Alves // Jan Molak // Isaiah Soung diff --git a/types/custom-functions-runtime/index.d.ts b/types/custom-functions-runtime/index.d.ts index c907fe327e..5afc7fbdb9 100644 --- a/types/custom-functions-runtime/index.d.ts +++ b/types/custom-functions-runtime/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Custom Functions 1.4 +// Type definitions for non-npm package Custom Functions 1.4 // Project: https://github.com/OfficeDev/office-js // Definitions by: OfficeDev , // Adam Krantz , diff --git a/types/d3-array/index.d.ts b/types/d3-array/index.d.ts index 11b9e0de35..16a0e659cb 100644 --- a/types/d3-array/index.d.ts +++ b/types/d3-array/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-array module 1.2 -// Project: https://github.com/d3/d3-array +// Project: https://github.com/d3/d3-array, https://d3js.org/d3-array // Definitions by: Alex Ford // Boris Yankov // Tom Wanzek diff --git a/types/d3-axis/index.d.ts b/types/d3-axis/index.d.ts index 62d0503419..a9d21e887b 100644 --- a/types/d3-axis/index.d.ts +++ b/types/d3-axis/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-axis module 1.0 -// Project: https://github.com/d3/d3-axis/ +// Project: https://github.com/d3/d3-axis/, https://d3js.org/d3-axis // Definitions by: Tom Wanzek // Alex Ford // Boris Yankov diff --git a/types/d3-brush/index.d.ts b/types/d3-brush/index.d.ts index 0d558fe385..89731cb3d2 100644 --- a/types/d3-brush/index.d.ts +++ b/types/d3-brush/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-brush module 1.0 -// Project: https://github.com/d3/d3-brush/ +// Project: https://github.com/d3/d3-brush/, https://d3js.org/d3-brush // Definitions by: Tom Wanzek , Alex Ford , Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/d3-chord/index.d.ts b/types/d3-chord/index.d.ts index 80577f3528..7066f712ca 100644 --- a/types/d3-chord/index.d.ts +++ b/types/d3-chord/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-chord module 1.0 -// Project: https://github.com/d3/d3-chord/ +// Project: https://github.com/d3/d3-chord/, https://d3js.org/d3-chord // Definitions by: Tom Wanzek , Alex Ford , Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/d3-collection/index.d.ts b/types/d3-collection/index.d.ts index 89ac8d6153..ebaa04a226 100644 --- a/types/d3-collection/index.d.ts +++ b/types/d3-collection/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-collection module 1.0 -// Project: https://github.com/d3/d3-collection/ +// Project: https://github.com/d3/d3-collection/, https://d3js.org/d3-collection // Definitions by: Tom Wanzek , Alex Ford , Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/d3-color/index.d.ts b/types/d3-color/index.d.ts index 05cd974c1f..8416e6a569 100644 --- a/types/d3-color/index.d.ts +++ b/types/d3-color/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-color module 1.2 -// Project: https://github.com/d3/d3-color/ +// Project: https://github.com/d3/d3-color/, https://d3js.org/d3-color // Definitions by: Tom Wanzek , // Alex Ford , // Boris Yankov , diff --git a/types/d3-contour/d3-contour-tests.ts b/types/d3-contour/d3-contour-tests.ts index 2d23017040..2d18ebe957 100644 --- a/types/d3-contour/d3-contour-tests.ts +++ b/types/d3-contour/d3-contour-tests.ts @@ -25,10 +25,10 @@ import { randomNormal } from 'd3-random'; const n = 256; const m = 256; const values: number[] = new Array(n * m); -for (let j = 0.5, k = 0; j < m; ++j) { - for (let i = 0.5; i < n; i++) { +for (let j = 0.5, k = 0; j < m; j += 1) { + for (let i = 0.5; i < n; i += 1) { values[k] = goldsteinPrice(i / n * 4 - 2, 1 - j / m * 3); - k++; + k += 1; } } @@ -193,7 +193,7 @@ num = contDensCustom.bandwidth(); const indNorm: CustomDatum[] = []; const rX = randomNormal(); const rY = randomNormal(1, 2); -for (let i = 0; i < 1000; i++) { +for (let i = 0; i < 1000; i += 1) { indNorm.push({ x: rX(), y: rY() diff --git a/types/d3-dispatch/index.d.ts b/types/d3-dispatch/index.d.ts index c8beb28a5a..3e5b511646 100644 --- a/types/d3-dispatch/index.d.ts +++ b/types/d3-dispatch/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-dispatch module 1.0 -// Project: https://github.com/d3/d3-dispatch/ +// Project: https://github.com/d3/d3-dispatch/, https://d3js.org/d3-dispatch // Definitions by: Tom Wanzek // Alex Ford // Boris Yankov diff --git a/types/d3-drag/index.d.ts b/types/d3-drag/index.d.ts index 3e76a2f976..101c301dfc 100644 --- a/types/d3-drag/index.d.ts +++ b/types/d3-drag/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-drag module 1.2 -// Project: https://github.com/d3/d3-drag/ +// Project: https://github.com/d3/d3-drag/, https://d3js.org/d3-drag // Definitions by: Tom Wanzek , Alex Ford , Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/d3-dsv/index.d.ts b/types/d3-dsv/index.d.ts index fcfaa67339..f865bb8bdf 100644 --- a/types/d3-dsv/index.d.ts +++ b/types/d3-dsv/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-dsv module 1.0 -// Project: https://github.com/d3/d3-dsv/ +// Project: https://github.com/d3/d3-dsv/, https://d3js.org/d3-dsv // Definitions by: Tom Wanzek // Alex Ford // Boris Yankov diff --git a/types/d3-ease/index.d.ts b/types/d3-ease/index.d.ts index 1f2b5f4cdd..749367b539 100644 --- a/types/d3-ease/index.d.ts +++ b/types/d3-ease/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-ease module 1.0 -// Project: https://github.com/d3/d3-ease/ +// Project: https://github.com/d3/d3-ease/, https://d3js.org/d3-ease // Definitions by: Tom Wanzek , Alex Ford , Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/d3-force/index.d.ts b/types/d3-force/index.d.ts index 563ca925c3..61b3ca6f6d 100644 --- a/types/d3-force/index.d.ts +++ b/types/d3-force/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-force module 1.2 -// Project: https://github.com/d3/d3-force/ +// Project: https://github.com/d3/d3-force/, https://d3js.org/d3-force // Definitions by: Tom Wanzek // Alex Ford // Boris Yankov diff --git a/types/d3-format/index.d.ts b/types/d3-format/index.d.ts index 0508606148..e680c10a5c 100644 --- a/types/d3-format/index.d.ts +++ b/types/d3-format/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-format module 1.3 -// Project: https://github.com/d3/d3-format/ +// Project: https://github.com/d3/d3-format/, https://d3js.org/d3-format // Definitions by: Tom Wanzek // Alex Ford // Boris Yankov diff --git a/types/d3-geo/index.d.ts b/types/d3-geo/index.d.ts index 16c51dfae6..ee24b50d38 100644 --- a/types/d3-geo/index.d.ts +++ b/types/d3-geo/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-geo module 1.11 -// Project: https://github.com/d3/d3-geo/ +// Project: https://github.com/d3/d3-geo/, https://d3js.org/d3-geo // Definitions by: Hugues Stefanski , Tom Wanzek , Alex Ford , Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/d3-hierarchy/index.d.ts b/types/d3-hierarchy/index.d.ts index fb5ebd5656..3b9e59d065 100644 --- a/types/d3-hierarchy/index.d.ts +++ b/types/d3-hierarchy/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-hierarchy module 1.1 -// Project: https://github.com/d3/d3-hierarchy/ +// Project: https://github.com/d3/d3-hierarchy/, https://d3js.org/d3-hierarchy // Definitions by: Tom Wanzek // Alex Ford // Boris Yankov diff --git a/types/d3-hsv/index.d.ts b/types/d3-hsv/index.d.ts index 1728af0874..232b0ba2a5 100644 --- a/types/d3-hsv/index.d.ts +++ b/types/d3-hsv/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-hsv module 0.1 -// Project: https://github.com/d3/d3-hsv/ +// Project: https://github.com/d3/d3-hsv/, https://d3js.org/d3-hsv // Definitions by: Yuri Feldman , denisname // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/d3-interpolate/index.d.ts b/types/d3-interpolate/index.d.ts index 82d4100650..bb3f6374e0 100644 --- a/types/d3-interpolate/index.d.ts +++ b/types/d3-interpolate/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-interpolate module 1.3 -// Project: https://github.com/d3/d3-interpolate/ +// Project: https://github.com/d3/d3-interpolate/, https://d3js.org/d3-interpolate // Definitions by: Tom Wanzek // Alex Ford // Boris Yankov diff --git a/types/d3-path/index.d.ts b/types/d3-path/index.d.ts index 4c1f124962..4b75aad61d 100644 --- a/types/d3-path/index.d.ts +++ b/types/d3-path/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-path module 1.0 -// Project: https://github.com/d3/d3-path/ +// Project: https://github.com/d3/d3-path/, https://d3js.org/d3-path // Definitions by: Tom Wanzek , Alex Ford , Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/d3-polygon/index.d.ts b/types/d3-polygon/index.d.ts index b9f8711335..8e92d63657 100644 --- a/types/d3-polygon/index.d.ts +++ b/types/d3-polygon/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-polygon module 1.0 -// Project: https://github.com/d3/d3-polygon/ +// Project: https://github.com/d3/d3-polygon/, https://d3js.org/d3-polygon // Definitions by: Tom Wanzek , Alex Ford , Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/d3-quadtree/index.d.ts b/types/d3-quadtree/index.d.ts index 8e66ba411c..4706b39693 100644 --- a/types/d3-quadtree/index.d.ts +++ b/types/d3-quadtree/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-quadtree module 1.0 -// Project: https://github.com/d3/d3-quadtree/ +// Project: https://github.com/d3/d3-quadtree/, https://d3js.org/d3-quadtree // Definitions by: Tom Wanzek // Alex Ford // Boris Yankov diff --git a/types/d3-queue/index.d.ts b/types/d3-queue/index.d.ts index 094a62ab03..f47b28aaed 100644 --- a/types/d3-queue/index.d.ts +++ b/types/d3-queue/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-queue module 3.0 -// Project: https://github.com/d3/d3-queue/ +// Project: https://github.com/d3/d3-queue/, https://d3js.org/d3-queue // Definitions by: Tom Wanzek // Alex Ford // Boris Yankov diff --git a/types/d3-random/index.d.ts b/types/d3-random/index.d.ts index c6335a694b..f8a4479175 100644 --- a/types/d3-random/index.d.ts +++ b/types/d3-random/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-random module 1.1 -// Project: https://github.com/d3/d3-random/ +// Project: https://github.com/d3/d3-random/, https://d3js.org/d3-random // Definitions by: Tom Wanzek , Alex Ford , Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/d3-request/index.d.ts b/types/d3-request/index.d.ts index 65ac3849b7..47953ce649 100644 --- a/types/d3-request/index.d.ts +++ b/types/d3-request/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-request module 1.0 -// Project: https://github.com/d3/d3-request/ +// Project: https://github.com/d3/d3-request/, https://d3js.org/d3-request // Definitions by: Hugues Stefanski // Alex Ford // Boris Yankov diff --git a/types/d3-scale-chromatic/index.d.ts b/types/d3-scale-chromatic/index.d.ts index 70d180420a..5b08147a8f 100644 --- a/types/d3-scale-chromatic/index.d.ts +++ b/types/d3-scale-chromatic/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-scale-chromatic module 1.3 -// Project: https://github.com/d3/d3-scale-chromatic/ +// Project: https://github.com/d3/d3-scale-chromatic/, https://d3js.org/d3-scale-chromatic // Definitions by: Hugues Stefanski , // Alex Ford , // Boris Yankov , diff --git a/types/d3-scale/index.d.ts b/types/d3-scale/index.d.ts index db6f6a8761..969b634c58 100644 --- a/types/d3-scale/index.d.ts +++ b/types/d3-scale/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-scale module 2.1 -// Project: https://github.com/d3/d3-scale/ +// Project: https://github.com/d3/d3-scale/, https://d3js.org/d3-scale // Definitions by: Tom Wanzek // Alex Ford // Boris Yankov diff --git a/types/d3-selection/d3-selection-tests.ts b/types/d3-selection/d3-selection-tests.ts index 092e8bfa5a..57c30ef9aa 100644 --- a/types/d3-selection/d3-selection-tests.ts +++ b/types/d3-selection/d3-selection-tests.ts @@ -604,7 +604,7 @@ d3Selection.select('#svg-1') // irrelevant typing to get contextual typing in la .classed('has-transform-property', function(d) { console.log('Color of first data element array', d.length > 0 ? d[0].color : 'Data array empty'); // CircleDatumAlternative type // $ExpectError - return this.transform !== undefined; + return this!.transform !== undefined; }); // SCENARIO 3: Only inferred typing (To have datum-type in 'classed' method call, no need for DOM object access) @@ -649,6 +649,7 @@ const startCircleData: CircleDatumAlternative[] = [ color: 'slateblue' } ]; + const endCircleData: CircleDatumAlternative[] = [ { nodeId: 'n1', @@ -1169,3 +1170,134 @@ predefinedNamespaces['dummy'] = 'http://www.w3.org/2020/dummynamespace'; xWindow = d3Selection.window(xElement); xWindow = d3Selection.window(xDoc); xWindow = d3Selection.window(xWindow); + +// --------------------------------------------------------------------------------------- +// JOIN - Convenient alternative to explicit enter update and exit methods +// --------------------------------------------------------------------------------------- + +interface OldDatum { + oldData: number; +} + +interface Datum { + data: string; +} + +let selText: d3Selection.Selection; +let selTextAndCircle: d3Selection.Selection; + +const text = svgEl.selectAll('text').data([{data: 'a'}]); + +declare const r: () => boolean; + +// with only enter param + +selText = text.join('text'); +selText = text.join('custom'); +selText = text.join(enter => enter.append('text').text(d => d.data)); + +selText = text.join('circle'); // $ExpectError +selText = text.join('custom'); // $ExpectError +selText = text.join(enter => enter.append('circle')); // $ExpectError + +selTextAndCircle = text.join('circle'); +selTextAndCircle = text.join('custom'); +selTextAndCircle = text.join(enter => enter.append('circle').text(d => d.data)); + +// with all param + +selText = text.join( + 'text', + update => r ? undefined : update.text(d => d.data).attr('fill', 'gray'), + exit => exit.text(d => d.data).remove(), +); + +selText = text.join( + 'custom', + update => r ? undefined : update.text(d => d.data).attr('fill', 'gray'), + exit => exit.text(d => d.data).remove(), +); + +selText = text.join( + enter => enter.append('text').text(d => d.data), + update => r ? undefined : update.text(d => d.data).attr('fill', 'gray'), + exit => exit.text(d => d.data).remove(), +); + +selTextAndCircle = text.join( + 'circle', + update => r ? undefined : update.text(d => d.data).attr('fill', 'gray'), + exit => exit.text(d => d.data).remove(), +); + +selTextAndCircle = text.join( + 'custom', + update => r ? undefined : update.text(d => d.data).attr('fill', 'gray'), + exit => exit.text(d => d.data).remove(), +); + +selTextAndCircle = text.join( + enter => enter.append('circle').text(d => d.data), + update => r ? undefined : update.text(d => d.data).attr('fill', 'gray'), + exit => exit.text(d => d.data).remove(), +); + +// with all param and old datum + +selText = text.join<'text', OldDatum>( + 'text', + update => r ? undefined : update.text(d => d.data).attr('fill', 'gray'), + exit => exit.text(d => `Bye ${d.oldData}`).remove(), +); + +selText = text.join( + 'custom', + update => r ? undefined : update.text(d => d.data).attr('fill', 'gray'), + exit => exit.text(d => `Bye ${d.oldData}`).remove(), +); + +selText = text.join( + enter => enter.append('text').text(d => d.data), + update => r ? undefined : update.text(d => d.data).attr('fill', 'gray'), + exit => exit.text(d => d.oldData).remove(), +); + +selTextAndCircle = text.join<'circle', OldDatum>( + 'circle', + update => r ? undefined : update.text(d => d.data).attr('fill', 'gray'), + exit => exit.text(d => d.oldData).remove(), +); + +selTextAndCircle = text.join( + 'circle', + update => r ? undefined : update.text(d => d.data).attr('fill', 'gray'), + exit => exit.text(d => d.oldData).remove(), +); + +selTextAndCircle = text.join( + enter => enter.append('circle').text(d => d.data), + update => r ? undefined : update.text(d => d.data).attr('fill', 'gray'), + exit => exit.text(d => d.oldData).remove(), +); + +// Example from: https://github.com/d3/d3-selection/issues/194#issuecomment-427577484 +const groups = svgEl.selectAll('g') + .data([{r: 10, text: 'hi'}]) + .join( + (enter) => { + const g = enter.append('g').attr('class', 'tick'); + g.append('circle'); + g.append('text'); + return g; + }, + () => undefined, + (exit) => exit.remove() + ) + .attr('transform', (_, i) => `translate(0, ${i})`); + + groups.select('circle') + .attr('r', d => d.r); + + groups.select('text') + .text(d => d.text) + .attr('dy', '0.32em'); diff --git a/types/d3-selection/index.d.ts b/types/d3-selection/index.d.ts index c29f7aa952..6f9e2f93be 100644 --- a/types/d3-selection/index.d.ts +++ b/types/d3-selection/index.d.ts @@ -1,5 +1,5 @@ -// Type definitions for D3JS d3-selection module 1.3 -// Project: https://github.com/d3/d3-selection/ +// Type definitions for D3JS d3-selection module 1.4 +// Project: https://github.com/d3/d3-selection/, https://d3js.org/d3-selection // Definitions by: Tom Wanzek // Alex Ford // Boris Yankov @@ -7,7 +7,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 -// Last module patch version validated against: 1.3.0 +// Last module patch version validated against: 1.4.0 // -------------------------------------------------------------------------- // Shared Type Definitions and Interfaces @@ -782,6 +782,40 @@ export interface Selection(data: ValueFn, key?: ValueFn): Selection; + /** + * Appends, removes and reorders elements as necessary to match the data that was previously bound by `selection.data`, returning the merged enter and update selection. + * This method is a convenient alternative to the more explicit `selection.enter`, `selection.exit`, `selection.append` and `selection.remove`. + * + * The "matching" logic is determined by the key function passed to `selection.data`. + */ + join( + enter: K, + update?: (elem: Selection) => Selection | undefined, + exit?: (elem: Selection) => void + ): Selection; + /** + * Appends, removes and reorders elements as necessary to match the data that was previously bound by `selection.data`, returning the merged enter and update selection. + * This method is a convenient alternative to the more explicit `selection.enter`, `selection.exit`, `selection.append` and `selection.remove`. + * + * The "matching" logic is determined by the key function passed to `selection.data`. + */ + join( + enter: string, + update?: (elem: Selection) => Selection | undefined, + exit?: (elem: Selection) => void + ): Selection; + /** + * Appends, removes and reorders elements as necessary to match the data that was previously bound by `selection.data`, returning the merged enter and update selection. + * This method is a convenient alternative to the more explicit `selection.enter`, `selection.exit`, `selection.append` and `selection.remove`. + * + * The "matching" logic is determined by the key function passed to `selection.data`. + */ + join( + enter: (elem: Selection) => Selection, + update?: (elem: Selection) => Selection | undefined, + exit?: (elem: Selection) => void + ): Selection; + /** * Return the enter selection: placeholder nodes for each datum that had no corresponding DOM element * in the selection. (The enter selection is empty for selections not returned by selection.data.) @@ -828,9 +862,9 @@ export interface Selection // Alex Ford // Boris Yankov diff --git a/types/d3-time-format/index.d.ts b/types/d3-time-format/index.d.ts index 4ac6fc8469..a50d3394e0 100644 --- a/types/d3-time-format/index.d.ts +++ b/types/d3-time-format/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for d3JS d3-time-format module 2.1 -// Project: https://github.com/d3/d3-time-format/ +// Project: https://github.com/d3/d3-time-format/, https://d3js.org/d3-time-format // Definitions by: Tom Wanzek , Alex Ford , Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/d3-time/index.d.ts b/types/d3-time/index.d.ts index 65aaf3af7e..c16dfabee5 100644 --- a/types/d3-time/index.d.ts +++ b/types/d3-time/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-time module 1.0 -// Project: https://github.com/d3/d3-time/ +// Project: https://github.com/d3/d3-time/, https://d3js.org/d3-time // Definitions by: Tom Wanzek // Alex Ford // Boris Yankov diff --git a/types/d3-timer/index.d.ts b/types/d3-timer/index.d.ts index af7b1a15b2..cf23e01844 100644 --- a/types/d3-timer/index.d.ts +++ b/types/d3-timer/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for d3JS d3-timer module 1.0 -// Project: https://github.com/d3/d3-timer/ +// Project: https://github.com/d3/d3-timer/, https://d3js.org/d3-timer // Definitions by: Tom Wanzek // Alex Ford // Boris Yankov diff --git a/types/d3-transition/index.d.ts b/types/d3-transition/index.d.ts index 4d166f6080..caff3a4112 100644 --- a/types/d3-transition/index.d.ts +++ b/types/d3-transition/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-transition module 1.1 -// Project: https://github.com/d3/d3-transition/ +// Project: https://github.com/d3/d3-transition/, https://d3js.org/d3-transition // Definitions by: Tom Wanzek , Alex Ford , Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/d3-voronoi/index.d.ts b/types/d3-voronoi/index.d.ts index 7dfb79cf66..1127272130 100644 --- a/types/d3-voronoi/index.d.ts +++ b/types/d3-voronoi/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3-voronoi module 1.1 -// Project: https://github.com/d3/d3-voronoi/ +// Project: https://github.com/d3/d3-voronoi/, https://d3js.org/d3-voronoi // Definitions by: Tom Wanzek // Alex Ford // Boris Yankov diff --git a/types/d3-zoom/index.d.ts b/types/d3-zoom/index.d.ts index 3f6100d4b8..4e9448336f 100644 --- a/types/d3-zoom/index.d.ts +++ b/types/d3-zoom/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for d3JS d3-zoom module 1.7 -// Project: https://github.com/d3/d3-zoom/ +// Project: https://github.com/d3/d3-zoom/, https://d3js.org/d3-zoom // Definitions by: Tom Wanzek // Alex Ford // Boris Yankov diff --git a/types/d3/index.d.ts b/types/d3/index.d.ts index 9b62c1e025..f804906f95 100644 --- a/types/d3/index.d.ts +++ b/types/d3/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for D3JS d3 standard bundle 5.7 -// Project: https://github.com/d3/d3 +// Project: https://github.com/d3/d3, https://d3js.org // Definitions by: Tom Wanzek // Alex Ford // Boris Yankov diff --git a/types/dagre-d3/index.d.ts b/types/dagre-d3/index.d.ts index d402fec730..a73ecbc596 100644 --- a/types/dagre-d3/index.d.ts +++ b/types/dagre-d3/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for dagre-d3.core.js 0.4 -// Project: https://github.com/cpettitt/dagre-d3 +// Project: https://github.com/dagrejs/dagre-d3 // Definitions by: Mark Wong Siang Kai // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/dagre/index.d.ts b/types/dagre/index.d.ts index 774fbf8f80..849673c715 100644 --- a/types/dagre/index.d.ts +++ b/types/dagre/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for dagre 0.7 -// Project: https://github.com/cpettitt/dagre +// Project: https://github.com/dagrejs/dagre // Definitions by: Qinfeng Chen // Lisa Vallfors // Pete Vilter diff --git a/types/datatables.net-buttons/index.d.ts b/types/datatables.net-buttons/index.d.ts index e084a50c8d..a0cc8360c2 100644 --- a/types/datatables.net-buttons/index.d.ts +++ b/types/datatables.net-buttons/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for JQuery DataTables Buttons extension 1.4 -// Project: http://datatables.net/extensions/buttons/ +// Project: http://datatables.net/extensions/buttons/, https://datatables.net // Definitions by: Kiarash Ghiaseddin , Sam Germano , Jim Hartford // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 diff --git a/types/datatables.net-colreorder/index.d.ts b/types/datatables.net-colreorder/index.d.ts index 8254cd71dc..384346ad8f 100644 --- a/types/datatables.net-colreorder/index.d.ts +++ b/types/datatables.net-colreorder/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for datatables.net-colReorder 1.4 -// Project: https://datatables.net/extensions/colreorder/ +// Project: https://datatables.net/extensions/colreorder/, https://datatables.net // Definitions by: Andy Ma // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 diff --git a/types/datatables.net-fixedheader/index.d.ts b/types/datatables.net-fixedheader/index.d.ts index aa6f87f3b7..cc3968758c 100644 --- a/types/datatables.net-fixedheader/index.d.ts +++ b/types/datatables.net-fixedheader/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for datatables.net-fixedheader 3.1 -// Project: https://datatables.net/extensions/fixedheader/ +// Project: https://datatables.net/extensions/fixedheader/, https://datatables.net // Definitions by: Jared Szechy , Kiarash Ghiaseddin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 diff --git a/types/datatables.net-rowgroup/index.d.ts b/types/datatables.net-rowgroup/index.d.ts index e2697c7fac..05b3ed3d8d 100644 --- a/types/datatables.net-rowgroup/index.d.ts +++ b/types/datatables.net-rowgroup/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for datatables.net-rowgroup 1.0 -// Project: https://datatables.net/extensions/rowgroup/ +// Project: https://datatables.net/extensions/rowgroup/, https://datatables.net // Definitions by: Matthieu Tabuteau // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 diff --git a/types/datatables.net-rowreorder/index.d.ts b/types/datatables.net-rowreorder/index.d.ts index c95c7a1fb9..895c2a2322 100644 --- a/types/datatables.net-rowreorder/index.d.ts +++ b/types/datatables.net-rowreorder/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for JQuery DataTables RowReorder extension 1.1 -// Project: http://datatables.net/extensions/rowreorder/ +// Project: http://datatables.net/extensions/rowreorder/, https://datatables.net // Definitions by: Vincent Biret // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 diff --git a/types/datatables.net-select/index.d.ts b/types/datatables.net-select/index.d.ts index 563a51fc25..87cdef4c39 100644 --- a/types/datatables.net-select/index.d.ts +++ b/types/datatables.net-select/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for datatables.net-select 1.2 -// Project: https://datatables.net/extensions/select/ +// Project: https://datatables.net/extensions/select/, https://datatables.net // Definitions by: Jared Szechy // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 diff --git a/types/datatables.net/index.d.ts b/types/datatables.net/index.d.ts index d0c8d50de2..845fd2f2c2 100644 --- a/types/datatables.net/index.d.ts +++ b/types/datatables.net/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for JQuery DataTables 1.10 -// Project: http://www.datatables.net +// Project: https://datatables.net // Definitions by: Kiarash Ghiaseddin // Omid Rad // Armin Sander diff --git a/types/daterangepicker/index.d.ts b/types/daterangepicker/index.d.ts index 9267a801b2..b2361b104a 100644 --- a/types/daterangepicker/index.d.ts +++ b/types/daterangepicker/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Date Range Picker 3.0 -// Project: http://www.daterangepicker.com/ +// Project: http://www.daterangepicker.com/, https://github.com/dangrossman/daterangepicker // Definitions by: SirMartin // Steven Masala // Grant Hutchins diff --git a/types/dav/index.d.ts b/types/dav/index.d.ts index 063cc38e60..effc9f1685 100644 --- a/types/dav/index.d.ts +++ b/types/dav/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for dav 1.7 -// Project: https://github.com/lambdabaa/dav/ +// Project: https://github.com/lambdabaa/dav/, https://github.com/gaye/dav // Definitions by: ToastHawaii // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/dayzed/index.d.ts b/types/dayzed/index.d.ts index 2356778328..ab273b4a0f 100644 --- a/types/dayzed/index.d.ts +++ b/types/dayzed/index.d.ts @@ -15,7 +15,7 @@ export interface DateObj { today: boolean; } -interface Calendar { +export interface Calendar { firstDayOfMonth: Date; lastDayOfMonth: Date; month: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11; @@ -23,16 +23,22 @@ interface Calendar { year: number; } -interface RenderProps { +export interface RenderProps { calendars: Calendar[]; - getBackProps: (data: { calendars: Calendar[]; offset?: number; }) => Record; - getForwardProps: (data: { calendars: Calendar[]; offset?: number; }) => Record; - getDateProps: (data: { dateObj: DateObj; }) => Record; + getBackProps: (data: { + calendars: Calendar[]; + offset?: number; + }) => Record; + getForwardProps: (data: { + calendars: Calendar[]; + offset?: number; + }) => Record; + getDateProps: (data: { dateObj: DateObj }) => Record; } -type RenderFn = (renderProps: RenderProps) => ReactNode; +export type RenderFn = (renderProps: RenderProps) => ReactNode; -interface Props { +export interface Props { date?: Date; maxDate?: Date; minDate?: Date; @@ -47,6 +53,6 @@ interface Props { onDateSelected(selectedDate: DateObj): void; } -declare class Dayzed extends Component { } +declare class Dayzed extends Component {} export default Dayzed; diff --git a/types/debug/index.d.ts b/types/debug/index.d.ts index 2067b27222..954ca3a35a 100644 --- a/types/debug/index.d.ts +++ b/types/debug/index.d.ts @@ -16,7 +16,7 @@ declare namespace debug { interface Debug { (namespace: string): Debugger; coerce: (val: any) => any; - disable: () => void; + disable: () => string; enable: (namespaces: string) => void; enabled: (namespaces: string) => boolean; diff --git a/types/decode-entities/index.d.ts b/types/decode-entities/index.d.ts index 965e974092..82bc88fa05 100644 --- a/types/decode-entities/index.d.ts +++ b/types/decode-entities/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for decode-entities 1.0 -// Project: https://github.com/waspothegreat/decode-entities#readme +// Project: https://github.com/waspothegreat/decode-entities#readme, https://github.com/waspothegreat/strip-entities // Definitions by: waspothegreat // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/deep-equal-in-any-order/deep-equal-in-any-order-tests.ts b/types/deep-equal-in-any-order/deep-equal-in-any-order-tests.ts new file mode 100644 index 0000000000..f8fe278708 --- /dev/null +++ b/types/deep-equal-in-any-order/deep-equal-in-any-order-tests.ts @@ -0,0 +1,13 @@ +import { expect, use } from 'chai'; +import deepEqualInAnyOrder = require('deep-equal-in-any-order'); + +use(deepEqualInAnyOrder); + +expect([1, 2]).to.deep.equalInAnyOrder([2, 1]); +expect([1, 2]).to.not.deep.equalInAnyOrder([2, 1, 3]); +expect({ foo: [1, 2], bar: [4, 89, 22] }).to.deep.equalInAnyOrder({ foo: [2, 1], bar: [4, 22, 89] }); +expect({ foo: ['foo-1', 'foo-2', [1, 2], null] }).to.deep.equalInAnyOrder({ foo: [null, [1, 2], 'foo-1', 'foo-2'] }); +expect({ foo: [1, 2], bar: { baz: ['a', 'b', { lorem: [5, 6] }] } }).to.deep.equalInAnyOrder({ + foo: [2, 1], + bar: { baz: ['b', 'a', { lorem: [6, 5] }] } +}); diff --git a/types/deep-equal-in-any-order/index.d.ts b/types/deep-equal-in-any-order/index.d.ts new file mode 100644 index 0000000000..d0e646d64e --- /dev/null +++ b/types/deep-equal-in-any-order/index.d.ts @@ -0,0 +1,15 @@ +// Type definitions for deep-equal-in-any-order 1.0 +// Project: https://github.com/oprogramador/deep-equal-in-any-order#readme +// Definitions by: Bastien Caudan +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare global { + namespace Chai { + interface Deep { + equalInAnyOrder: Equal; + } + } +} + +declare function deepEqualInAnyOrder(chai: any, utils: any): void; +export = deepEqualInAnyOrder; diff --git a/types/deep-equal-in-any-order/tsconfig.json b/types/deep-equal-in-any-order/tsconfig.json new file mode 100644 index 0000000000..4a70c15618 --- /dev/null +++ b/types/deep-equal-in-any-order/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", + "deep-equal-in-any-order-tests.ts" + ] +} diff --git a/types/deep-equal-in-any-order/tslint.json b/types/deep-equal-in-any-order/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/deep-equal-in-any-order/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/deglob/index.d.ts b/types/deglob/index.d.ts index 6310201c11..346e958a5c 100644 --- a/types/deglob/index.d.ts +++ b/types/deglob/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for deglob v 2.1 -// Project: https://github.com/standard/deglob +// Project: https://github.com/standard/deglob, https://github.com/flet/deglob // Definitions by: Saad Quadri // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/deps-sort/index.d.ts b/types/deps-sort/index.d.ts index e32c826771..5171fbcea7 100644 --- a/types/deps-sort/index.d.ts +++ b/types/deps-sort/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for deps-sort 2.0 -// Project: https://github.com/browserify/deps-sort +// Project: https://github.com/browserify/deps-sort, https://github.com/substack/deps-sort // Definitions by: TeamworkGuy2 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/devexpress-aspnetcore-bootstrap/index.d.ts b/types/devexpress-aspnetcore-bootstrap/index.d.ts index 51d1c2ebb4..37a87470fc 100644 --- a/types/devexpress-aspnetcore-bootstrap/index.d.ts +++ b/types/devexpress-aspnetcore-bootstrap/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for DevExpress ASP.NET 181.3 +// Type definitions for non-npm package DevExpress ASP.NET 181.3 // Project: http://devexpress.com/ // Definitions by: DevExpress Inc. // Andrey Skubarenko diff --git a/types/devexpress-web/index.d.ts b/types/devexpress-web/index.d.ts index 5c2feff240..b165f1b44c 100644 --- a/types/devexpress-web/index.d.ts +++ b/types/devexpress-web/index.d.ts @@ -5,6 +5,7 @@ // TypeScript Version: 2.3 /// +/// /** * A client-side counterpart of the DashboardViewer extension. @@ -34356,7 +34357,7 @@ interface ASPxDesignerNavigateTab { * Provides access to a report opened in the current tab. * Value: A knockout observable object that specifies a report opened in the current tab. */ - report: any; + report: KnockoutObservable; /** * Provides access to an engine that manages undo and redo operations in the Web Report Designer. * Value: An object that specifies an undo/redo engine. @@ -34889,6 +34890,9 @@ interface ASPxClientMenuAction { * Value: A string that specifies the name of the CSS class. */ imageClassName: string; + /** + * Knockout template, where you can specify a required SVG icon and write logic to color it. + */ imageTemplateName: string; /** * Provides access to the action performed when a button is clicked. @@ -34897,9 +34901,8 @@ interface ASPxClientMenuAction { clickAction: Function; /** * Provides access to the value that specifies whether or not the command is disabled by default. - * Value: true, if the command is disabled by default; otherwise, false. */ - disabled: boolean; + disabled: KnockoutObservable; /** * Provides access to the value that specifies whether or not the command is visible in the user interface. * Value: true if the command is visible; otherwise false. @@ -38912,5 +38915,4 @@ declare var ASPxClientReportDocumentMap: ASPxClientReportDocumentMapStatic; declare var ASPxClientReportParametersPanel: ASPxClientReportParametersPanelStatic; declare var ASPxClientReportToolbar: ASPxClientReportToolbarStatic; declare var ASPxClientReportViewer: ASPxClientReportViewerStatic; -declare var ASPxClientWebDocumentViewer: ASPxClientWebDocumentViewerStatic; - +declare var ASPxClientWebDocumentViewer: ASPxClientWebDocumentViewerStatic; \ No newline at end of file diff --git a/types/dhtmlxgantt/index.d.ts b/types/dhtmlxgantt/index.d.ts index 5502cdcaf2..cb009f20aa 100644 --- a/types/dhtmlxgantt/index.d.ts +++ b/types/dhtmlxgantt/index.d.ts @@ -2009,7 +2009,7 @@ interface GanttStatic { * gets the relative horizontal position of the specified date in the chart area * @param date a date you want to know the position of */ - posFromDate(date: Date): void; + posFromDate(date: Date): number; /** * applies the reverted changes to the gantt once again diff --git a/types/dialogflow/index.d.ts b/types/dialogflow/index.d.ts index 98cfc8b53f..29d4a0ae4f 100644 --- a/types/dialogflow/index.d.ts +++ b/types/dialogflow/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for dialogflow 0.6 -// Project: https://github.com/dialogflow/dialogflow-nodejs-client-v2#readme +// Project: https://github.com/googleapis/nodejs-dialogflow // Definitions by: Daniel Dyla // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 diff --git a/types/digibyte/index.d.ts b/types/digibyte/index.d.ts index e53638a98e..b671797dfa 100644 --- a/types/digibyte/index.d.ts +++ b/types/digibyte/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for digibyte 0.14 -// Project: https://github.com/digibyte/digibyte-lib +// Project: https://github.com/digicontributer/digibyte-js // Definitions by: Lautaro Dragan // Adam Wolfe // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/discontinuous-range/index.d.ts b/types/discontinuous-range/index.d.ts index edb6a1efd6..c5153218e2 100644 --- a/types/discontinuous-range/index.d.ts +++ b/types/discontinuous-range/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for discontinuous-range 1.0 -// Project: https://www.npmjs.com/package/discontinuous-range +// Project: https://github.com/dtudury/discontinuous-range // Definitions by: Victor Zhou // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/dom-clipboard-api/index.d.ts b/types/dom-clipboard-api/index.d.ts index 1af5f2c60a..0cb64654c5 100644 --- a/types/dom-clipboard-api/index.d.ts +++ b/types/dom-clipboard-api/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for w3c Clipboard API 1.0 +// Type definitions for non-npm package w3c Clipboard API 1.0 // Project: https://w3c.github.io/clipboard-apis/ // Definitions by: James Garbutt // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/dom-helpers/index.d.ts b/types/dom-helpers/index.d.ts index 3215fcc500..b3397c5d6b 100644 --- a/types/dom-helpers/index.d.ts +++ b/types/dom-helpers/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for dom-helpers 3.4 -// Project: https://github.com/react-bootstrap/dom-helpers +// Project: https://github.com/react-bootstrap/dom-helpers, https://github.com/jquense/dom-helpers // Definitions by: Konstantin Vasiliev // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/dom-inputevent/index.d.ts b/types/dom-inputevent/index.d.ts index 0d2111a0e0..2b55f1d0a7 100644 --- a/types/dom-inputevent/index.d.ts +++ b/types/dom-inputevent/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for UI Events W3C Working Draft — Input Events — Interface InputEvent 1.0 +// Type definitions for non-npm package UI Events W3C Working Draft — Input Events — Interface InputEvent 1.0 // Project: https://w3c.github.io/uievents/#interface-inputevent // Definitions by: Steven Sinatra // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/dom-mediacapture-record/index.d.ts b/types/dom-mediacapture-record/index.d.ts index fc941e89bf..95a6d7648d 100644 --- a/types/dom-mediacapture-record/index.d.ts +++ b/types/dom-mediacapture-record/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for w3c MediaStream Recording 1.0 +// Type definitions for non-npm package w3c MediaStream Recording 1.0 // Project: https://w3c.github.io/mediacapture-record // Definitions by: Elias Meire // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/dot/index.d.ts b/types/dot/index.d.ts index 3594381fff..5b5f190aab 100644 --- a/types/dot/index.d.ts +++ b/types/dot/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for doT 1.1 -// Project: https://github.com/olado/doT +// Project: http://github.com/olado/dot // Definitions by: ZombieHunter // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/dotenv-flow/index.d.ts b/types/dotenv-flow/index.d.ts index 33a494c4a8..cf2c389218 100644 --- a/types/dotenv-flow/index.d.ts +++ b/types/dotenv-flow/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for dotenv-flow 0.2 -// Project: https://github.com/motdotla/dotenv +// Project: https://github.com/kerimdzhanov/dotenv-flow // Definitions by: Vincent Langlet // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/dottie/index.d.ts b/types/dottie/index.d.ts index d8fcba1397..f5a1a33d87 100644 --- a/types/dottie/index.d.ts +++ b/types/dottie/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for dottie 2.0 -// Project: https://github.com/mickhansen/dottie +// Project: https://github.com/mickhansen/dottie.js // Definitions by: Dom Armstrong // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/doubleclick-gpt/index.d.ts b/types/doubleclick-gpt/index.d.ts index 374f410c36..5e693c8f9a 100644 --- a/types/doubleclick-gpt/index.d.ts +++ b/types/doubleclick-gpt/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Publisher Tag 238.0 +// Type definitions for non-npm package Google Publisher Tag 238.0 // Project: https://developers.google.com/doubleclick-gpt/reference // Definitions by: John Wright // Steven Joyce diff --git a/types/draft-js/index.d.ts b/types/draft-js/index.d.ts index 4c00e7598f..2f58d64a52 100644 --- a/types/draft-js/index.d.ts +++ b/types/draft-js/index.d.ts @@ -623,7 +623,7 @@ declare namespace Draft { interface DraftBlockRenderConfig { element: string; - wrapper?: React.ReactElement; + wrapper?: React.ReactElement; } class EditorState extends Record { diff --git a/types/draggabilly/index.d.ts b/types/draggabilly/index.d.ts index 02cecbc4d2..ee65be97c3 100644 --- a/types/draggabilly/index.d.ts +++ b/types/draggabilly/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for draggabilly 2.1 -// Project: http://draggabilly.desandro.com/ +// Project: https://draggabilly.desandro.com // Definitions by: Jason Wu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/dropbox-chooser/index.d.ts b/types/dropbox-chooser/index.d.ts index c5fd8a6cd6..548f106679 100644 --- a/types/dropbox-chooser/index.d.ts +++ b/types/dropbox-chooser/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Dropbox Chooser 1.0 +// Type definitions for non-npm package Dropbox Chooser 1.0 // Project: https://www.dropbox.com/developers/chooser // Definitions by: Michael Su // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/dropkickjs/index.d.ts b/types/dropkickjs/index.d.ts index 94554a793a..ba181066f8 100644 --- a/types/dropkickjs/index.d.ts +++ b/types/dropkickjs/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for dropkickjs 2.1 -// Project: http://dropkickjs.com/ +// Project: http://dropkickjs.com/, https://github.com/robdel12/dropkick // Definitions by: Dmitry Pesterev // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/dwt/index.d.ts b/types/dwt/index.d.ts index 78b0846eb7..04f600367d 100644 --- a/types/dwt/index.d.ts +++ b/types/dwt/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for dwt 14.4 -// Project: http://www.dynamsoft.com/Products/WebTWAIN_Overview.aspx +// Project: https://www.dynamsoft.com/products/webtwain_overview.aspx // Definitions by: Xiao Ling // Josh Hall // Lincoln Hu diff --git a/types/dynatrace/index.d.ts b/types/dynatrace/index.d.ts index 5627e6b1db..6467f078cd 100644 --- a/types/dynatrace/index.d.ts +++ b/types/dynatrace/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for dynatrace 1.0 -// Project: https://www.dynatrace.com/ +// Project: https://www.dynatrace.com/, https://github.com/npm/deprecate-holder // Definitions by: Alvaro Cruz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/echarts/index.d.ts b/types/echarts/index.d.ts index adc4a2a24e..5d40c148f6 100644 --- a/types/echarts/index.d.ts +++ b/types/echarts/index.d.ts @@ -5,6 +5,7 @@ // Liveangela // Ovilia // Roman +// Bilal // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -460,7 +461,7 @@ declare namespace echarts { * * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#title */ - title?: EChartTitleOption + title?: EChartTitleOption | EChartTitleOption[] /** * Legend component. diff --git a/types/ecma-proposal-math-extensions/index.d.ts b/types/ecma-proposal-math-extensions/index.d.ts index 6412e63dd6..70f98e3388 100644 --- a/types/ecma-proposal-math-extensions/index.d.ts +++ b/types/ecma-proposal-math-extensions/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for ecma-proposal-math-extensions 0.0 -// Project: https://github.com/rwaldron/proposal-math-extensions#readme +// Project: https://github.com/rwaldron/proposal-math-extensions#readme, https://github.com/tc39/proposal-math-extensions // Definitions by: Konstantin Simon Maria Möllers // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.0 diff --git a/types/egjs__component/index.d.ts b/types/egjs__component/index.d.ts index e52cbba65e..dd67602606 100644 --- a/types/egjs__component/index.d.ts +++ b/types/egjs__component/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for egjs-component 2.0 -// Project: https://github.com/naver/egjs-component +// Project: https://github.com/naver/egjs-component, https://naver.github.io/egjs-component // Definitions by: Naver // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/ej.web.all/index.d.ts b/types/ej.web.all/index.d.ts index 776ed03a20..020b3d363a 100644 --- a/types/ej.web.all/index.d.ts +++ b/types/ej.web.all/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for ej.web.all 16.4 +// Type definitions for non-npm package ej.web.all 16.4 // Project: http://help.syncfusion.com/js/typescript // Definitions by: Syncfusion // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/ejs/index.d.ts b/types/ejs/index.d.ts index fc578cffff..a82e634367 100644 --- a/types/ejs/index.d.ts +++ b/types/ejs/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for ejs.js 2.6 -// Project: http://ejs.co/ +// Project: http://ejs.co/, https://github.com/mde/ejs // Definitions by: Ben Liddicott // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 diff --git a/types/elastic-apm-node/index.d.ts b/types/elastic-apm-node/index.d.ts index a8cb213dd7..182a56782e 100644 --- a/types/elastic-apm-node/index.d.ts +++ b/types/elastic-apm-node/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Elastic APM Node.js Agent 1.x -// Project: https://www.elastic.co/solutions/apm +// Project: https://www.elastic.co/solutions/apm, https://github.com/elastic/apm-agent-nodejs // Definitions by: Shahaed Hasan // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.7 diff --git a/types/elasticsearch/index.d.ts b/types/elasticsearch/index.d.ts index 54956d89a2..1c986b3001 100644 --- a/types/elasticsearch/index.d.ts +++ b/types/elasticsearch/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for elasticsearch 5.0 -// Project: https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html +// Project: http://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html // Definitions by: Casper Skydt // Blake Smith // Dave Dunkin diff --git a/types/electron-util/index.d.ts b/types/electron-util/index.d.ts index 275191b73d..911b0d758c 100644 --- a/types/electron-util/index.d.ts +++ b/types/electron-util/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for electron-util 0.2 -// Project: https://github.com/sindresorhus/electron-util +// Project: https://github.com/sindresorhus/electron-util, https://github.com/sindresorhus/electron-util // Definitions by: Kai Puth // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/electron-winstaller/index.d.ts b/types/electron-winstaller/index.d.ts index b5abd3c6ef..dbad60e35e 100644 --- a/types/electron-winstaller/index.d.ts +++ b/types/electron-winstaller/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for electron-winstaller 2.6 -// Project: https://github.com/electron/windows-installer +// Project: https://github.com/electron/windows-installer, https://github.com/electronjs/windows-installer // Definitions by: Brendan Forster , Daniel Perez Alvarez // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/email-templates/index.d.ts b/types/email-templates/index.d.ts index 1cdd43c36e..6d21a49ccd 100644 --- a/types/email-templates/index.d.ts +++ b/types/email-templates/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for node-email-templates 3.5 -// Project: https://github.com/niftylettuce/node-email-templates +// Project: https://github.com/niftylettuce/email-templates // Definitions by: Cyril Schumacher // Matus Gura // Jacob Copeland diff --git a/types/ember/index.d.ts b/types/ember/index.d.ts index 4e2b45cd55..fbe058a643 100755 --- a/types/ember/index.d.ts +++ b/types/ember/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Ember.js 3.0 -// Project: http://emberjs.com/ +// Project: http://emberjs.com/, https://github.com/emberjs/ember // Definitions by: Jed Mao // bttf // Derek Wickern diff --git a/types/ember__application/index.d.ts b/types/ember__application/index.d.ts index 7518d41cdb..b8cfc5434e 100644 --- a/types/ember__application/index.d.ts +++ b/types/ember__application/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for @ember/application 3.0 +// Type definitions for non-npm package @ember/application 3.0 // Project: https://emberjs.com/api/ember/3.4/modules/@ember%2Fapplication // Definitions by: Mike North // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/ember__array/index.d.ts b/types/ember__array/index.d.ts index 882455da73..d96178dced 100644 --- a/types/ember__array/index.d.ts +++ b/types/ember__array/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for @ember/array 3.0 +// Type definitions for non-npm package @ember/array 3.0 // Project: https://emberjs.com/api/ember/3.4/modules/@ember%2Farray // Definitions by: Mike North // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/ember__component/index.d.ts b/types/ember__component/index.d.ts index a5c54a7793..afc1914648 100644 --- a/types/ember__component/index.d.ts +++ b/types/ember__component/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for @ember/component 3.0 +// Type definitions for non-npm package @ember/component 3.0 // Project: https://emberjs.com/api/ember/3.4/modules/@ember%2Fcomponent // Definitions by: Mike North // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/ember__controller/index.d.ts b/types/ember__controller/index.d.ts index 684c8b04e4..77522a3b29 100644 --- a/types/ember__controller/index.d.ts +++ b/types/ember__controller/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for @ember/controller 3.0 +// Type definitions for non-npm package @ember/controller 3.0 // Project: https://emberjs.com/api/ember/3.4/modules/@ember%2Fcontroller // Definitions by: Mike North // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/ember__debug/index.d.ts b/types/ember__debug/index.d.ts index c8ace3eafb..0287f91792 100644 --- a/types/ember__debug/index.d.ts +++ b/types/ember__debug/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for @ember/debug 3.0 +// Type definitions for non-npm package @ember/debug 3.0 // Project: https://emberjs.com/api/ember/3.4/modules/@ember%2Fdebug // Definitions by: Mike North // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/ember__engine/index.d.ts b/types/ember__engine/index.d.ts index ddd2e1bfb3..936398edfa 100644 --- a/types/ember__engine/index.d.ts +++ b/types/ember__engine/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for @ember/engine 3.0 +// Type definitions for non-npm package @ember/engine 3.0 // Project: https://emberjs.com/api/ember/3.4/modules/@ember%2Fengine // Definitions by: Mike North // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/ember__error/index.d.ts b/types/ember__error/index.d.ts index 312b1c3334..d1386cf925 100644 --- a/types/ember__error/index.d.ts +++ b/types/ember__error/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for @ember/error 3.0 +// Type definitions for non-npm package @ember/error 3.0 // Project: https://emberjs.com/api/ember/3.4/modules/@ember%2Ferror // Definitions by: Mike North // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/ember__object/index.d.ts b/types/ember__object/index.d.ts index 06e417999d..f287a51a90 100644 --- a/types/ember__object/index.d.ts +++ b/types/ember__object/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for @ember/object 3.0 +// Type definitions for non-npm package @ember/object 3.0 // Project: https://emberjs.com/api/ember/3.4/modules/@ember%2Fobject // Definitions by: Mike North // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/ember__polyfills/index.d.ts b/types/ember__polyfills/index.d.ts index 697a6c596b..e5ace0fe2e 100644 --- a/types/ember__polyfills/index.d.ts +++ b/types/ember__polyfills/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for @ember/polyfills 3.0 +// Type definitions for non-npm package @ember/polyfills 3.0 // Project: https://emberjs.com/api/ember/3.4/modules/@ember%2Fpolyfills // Definitions by: Mike North // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/ember__routing/index.d.ts b/types/ember__routing/index.d.ts index 059ca512ae..c90b477697 100644 --- a/types/ember__routing/index.d.ts +++ b/types/ember__routing/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for @ember/routing 3.0 +// Type definitions for non-npm package @ember/routing 3.0 // Project: https://emberjs.com/api/ember/3.4/modules/@ember%2Frouting // Definitions by: Mike North // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/ember__runloop/index.d.ts b/types/ember__runloop/index.d.ts index b5fed6fdcb..79b3b5973b 100644 --- a/types/ember__runloop/index.d.ts +++ b/types/ember__runloop/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for @ember/runloop 3.0 +// Type definitions for non-npm package @ember/runloop 3.0 // Project: https://emberjs.com/api/ember/3.4/modules/@ember%2Frunloop // Definitions by: Mike North // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/ember__service/index.d.ts b/types/ember__service/index.d.ts index 20eb513f89..45918f4bbb 100644 --- a/types/ember__service/index.d.ts +++ b/types/ember__service/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for @ember/service 3.0 +// Type definitions for non-npm package @ember/service 3.0 // Project: https://emberjs.com/api/ember/3.4/modules/@ember%2Fservice // Definitions by: Mike North // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/ember__string/index.d.ts b/types/ember__string/index.d.ts index 66b5199bfd..c25da1f823 100644 --- a/types/ember__string/index.d.ts +++ b/types/ember__string/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for @ember/string 3.0 +// Type definitions for non-npm package @ember/string 3.0 // Project: https://emberjs.com/api/ember/3.4/modules/@ember%2Fstring // Definitions by: Mike North // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/ember__test/index.d.ts b/types/ember__test/index.d.ts index 350bb90897..60fddb6473 100644 --- a/types/ember__test/index.d.ts +++ b/types/ember__test/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for @ember/test 3.0 +// Type definitions for non-npm package @ember/test 3.0 // Project: https://emberjs.com/api/ember/3.4/modules/@ember%2Ftest // Definitions by: Mike North // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/ember__utils/index.d.ts b/types/ember__utils/index.d.ts index 4489602a23..70574e4a76 100644 --- a/types/ember__utils/index.d.ts +++ b/types/ember__utils/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for @ember/utils 3.0 +// Type definitions for non-npm package @ember/utils 3.0 // Project: http://emberjs.com/ // Definitions by: Mike North // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/emoji-regex/index.d.ts b/types/emoji-regex/index.d.ts index edff690dc7..15e1cd272e 100644 --- a/types/emoji-regex/index.d.ts +++ b/types/emoji-regex/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for emoji-regex 7.0 -// Project: https://github.com/mathiasbynens/emoji-regex +// Project: https://github.com/mathiasbynens/emoji-regex, https://mths.be/emoji-regex // Definitions by: iKBAHT // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/emojione/index.d.ts b/types/emojione/index.d.ts index 000a5e9940..92399fdf9a 100644 --- a/types/emojione/index.d.ts +++ b/types/emojione/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for emojione 2.2 -// Project: https://github.com/Ranks/emojione +// Project: https://github.com/Ranks/emojione, http://www.emojione.com // Definitions by: Danilo Bargen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/empty-dir/index.d.ts b/types/empty-dir/index.d.ts index 0f623a991d..44e50c606f 100644 --- a/types/empty-dir/index.d.ts +++ b/types/empty-dir/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for empty-dir 1.0 -// Project: https://github.com/js-cli/js-empty-dir +// Project: https://github.com/gulpjs/empty-dir // Definitions by: BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/enquire.js/index.d.ts b/types/enquire.js/index.d.ts index d7dcafdc30..e28895bf29 100644 --- a/types/enquire.js/index.d.ts +++ b/types/enquire.js/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for enquire.js 2.1 -// Project: https://github.com/WickyNilliams/enquire.js/ +// Project: https://github.com/WickyNilliams/enquire.js/, http://wicky.nillia.ms/enquire.js // Definitions by: Christian Rackerseder // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/entities/index.d.ts b/types/entities/index.d.ts index 46f7c11116..3047f845e3 100644 --- a/types/entities/index.d.ts +++ b/types/entities/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for entities 1.1 -// Project: https://github.com/fb55/node-entities +// Project: https://github.com/fb55/entities // Definitions by: Alice Klipper // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/enzyme-adapter-react-15/index.d.ts b/types/enzyme-adapter-react-15/index.d.ts index 06659d75b9..77312f3da0 100644 --- a/types/enzyme-adapter-react-15/index.d.ts +++ b/types/enzyme-adapter-react-15/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for enzyme-adapter-react-15 1.0 -// Project: https://github.com/airbnb/enzyme +// Project: https://github.com/airbnb/enzyme, http://airbnb.io/enzyme // Definitions by: Tanguy Krotoff // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/enzyme-adapter-react-16/index.d.ts b/types/enzyme-adapter-react-16/index.d.ts index 3e567d956b..257b292055 100644 --- a/types/enzyme-adapter-react-16/index.d.ts +++ b/types/enzyme-adapter-react-16/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for enzyme-adapter-react-16 1.0 -// Project: https://github.com/airbnb/enzyme +// Project: https://github.com/airbnb/enzyme, http://airbnb.io/enzyme // Definitions by: Tanguy Krotoff // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/enzyme/enzyme-tests.tsx b/types/enzyme/enzyme-tests.tsx index 0c7e2c2e90..87b4d032e8 100644 --- a/types/enzyme/enzyme-tests.tsx +++ b/types/enzyme/enzyme-tests.tsx @@ -82,8 +82,8 @@ function ShallowWrapperTest() { let shallowWrapper: ShallowWrapper = shallow(); - let reactElement: ReactElement; - let reactElements: Array>; + let reactElement: ReactElement; + let reactElements: ReactElement[]; let domElement: Element; let boolVal: boolean; let stringVal: string; @@ -484,8 +484,8 @@ function ReactWrapperTest() { let reactWrapper: ReactWrapper = mount(); - let reactElement: ReactElement; - let reactElements: Array>; + let reactElement: ReactElement; + let reactElements: ReactElement[]; let domElement: Element; let boolVal: boolean; let stringVal: string; diff --git a/types/enzyme/index.d.ts b/types/enzyme/index.d.ts index d9f858d2a7..257beb21fc 100644 --- a/types/enzyme/index.d.ts +++ b/types/enzyme/index.d.ts @@ -57,32 +57,32 @@ export interface CommonWrapper

> { /** * Returns whether or not the current wrapper has a node anywhere in it's render tree that looks like the one passed in. */ - contains(node: ReactElement | Array> | string): boolean; + contains(node: ReactElement | ReactElement[] | string): boolean; /** * Returns whether or not a given react element exists in the shallow render tree. */ - containsMatchingElement(node: ReactElement | Array>): boolean; + containsMatchingElement(node: ReactElement | ReactElement[]): boolean; /** * Returns whether or not all the given react elements exists in the shallow render tree */ - containsAllMatchingElements(nodes: Array> | Array>>): boolean; + containsAllMatchingElements(nodes: ReactElement[] | ReactElement[][]): boolean; /** * Returns whether or not one of the given react elements exists in the shallow render tree. */ - containsAnyMatchingElements(nodes: Array> | Array>>): boolean; + containsAnyMatchingElements(nodes: ReactElement[] | ReactElement[][]): boolean; /** * Returns whether or not the current render tree is equal to the given node, based on the expected value. */ - equals(node: ReactElement): boolean; + equals(node: ReactElement): boolean; /** * Returns whether or not a given react element matches the shallow render tree. */ - matchesElement(node: ReactElement): boolean; + matchesElement(node: ReactElement): boolean; /** * Returns whether or not the current node has a className prop including the passed in class name. @@ -130,27 +130,27 @@ export interface CommonWrapper

> { /** * Returns the node at a given index of the current wrapper. */ - get(index: number): ReactElement; + get(index: number): ReactElement; /** * Returns the wrapper's underlying node. */ - getNode(): ReactElement; + getNode(): ReactElement; /** * Returns the wrapper's underlying nodes. */ - getNodes(): Array>; + getNodes(): ReactElement[]; /** * Returns the wrapper's underlying node. */ - getElement(): ReactElement; + getElement(): ReactElement; /** * Returns the wrapper's underlying node. */ - getElements(): Array>; + getElements(): ReactElement[]; /** * Returns the outer most DOMComponent of the current wrapper. diff --git a/types/espruino/index.d.ts b/types/espruino/index.d.ts index cb6151e85a..caca393a85 100644 --- a/types/espruino/index.d.ts +++ b/types/espruino/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Espruino 1.94 -// Project: http://www.espruino.com/ +// Project: http://www.espruino.com/, https://github.com/espruino/espruinotools // Definitions by: Stanislav Berkov // Jurand Niemczycki // Definitions: https://github.com/borisyankov/DefinitelyTyped diff --git a/types/eth-sig-util/eth-sig-util-tests.ts b/types/eth-sig-util/eth-sig-util-tests.ts new file mode 100644 index 0000000000..33f5840d05 --- /dev/null +++ b/types/eth-sig-util/eth-sig-util-tests.ts @@ -0,0 +1,98 @@ +import * as util from 'eth-sig-util'; + +const hex32 = '1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef'; +const buffer32 = Buffer.from(hex32, 'hex'); + +util.concatSig(28, buffer32, buffer32); +util.normalize(hex32); +util.normalize(42); + +//////////////////////////////////////////////////////////////////////////////// +// Personal message signing utils + +const messageSig = util.personalSign(buffer32, { data: 'test data' }); +util.recoverPersonalSignature({ data: 'test data', sig: messageSig }); +util.extractPublicKey({ data: 'test data', sig: messageSig }); + +//////////////////////////////////////////////////////////////////////////////// +// EIP-712 legacy draft utils + +const legacyTypedData = [{ + type: 'uint32', + name: 'testValue', + value: 42, +}, { + type: 'string', + name: 'testName', + value: 'test value', +}]; +util.typedSignatureHash(legacyTypedData); +const typedSigLegacy = util.signTypedDataLegacy(buffer32, { data: legacyTypedData }); +util.recoverTypedSignatureLegacy({ data: legacyTypedData, sig: typedSigLegacy }); + +//////////////////////////////////////////////////////////////////////////////// +// Elliptic curve encryption utils + +util.getEncryptionPublicKey(hex32); +const encPubkey = util.getEncryptionPublicKey(buffer32); +const encMessage = util.encrypt(encPubkey, { data: 'test data' }, 'x25519-xsalsa20-poly1305'); +util.decrypt(encMessage, buffer32); +util.decrypt(encMessage, hex32); +const encData = util.encryptSafely(encPubkey, { data: legacyTypedData }, 'x25519-xsalsa20-poly1305'); +util.decryptSafely(encData, buffer32); +util.decryptSafely(encData, hex32); + +//////////////////////////////////////////////////////////////////////////////// +// EIP-712 current draft utils + +// Sample data from the official EIP-712 example: +// https://github.com/ethereum/EIPs/blob/master/assets/eip-712/Example.js +const typedData = { + types: { + EIP712Domain: [ + { name: 'name', type: 'string' }, + { name: 'version', type: 'string' }, + { name: 'chainId', type: 'uint256' }, + { name: 'verifyingContract', type: 'address' }, + ], + Person: [ + { name: 'name', type: 'string' }, + { name: 'wallet', type: 'address' } + ], + Mail: [ + { name: 'from', type: 'Person' }, + { name: 'to', type: 'Person' }, + { name: 'contents', type: 'string' } + ], + }, + primaryType: 'Mail', + domain: { + name: 'Ether Mail', + version: '1', + chainId: 1, + verifyingContract: '0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC', + }, + message: { + from: { + name: 'Cow', + wallet: '0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826', + }, + to: { + name: 'Bob', + wallet: '0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB', + }, + contents: 'Hello, Bob!', + }, +}; +const typedMessage = typedData.message; +const types = typedData.types; +const primaryType = typedData.primaryType; +util.TypedDataUtils.encodeData(primaryType, typedMessage, types); +util.TypedDataUtils.encodeType(primaryType, types); +util.TypedDataUtils.findTypeDependencies(primaryType, types); +util.TypedDataUtils.hashStruct(primaryType, typedMessage, types); +util.TypedDataUtils.hashType(primaryType, types); +util.TypedDataUtils.sanitizeData(typedData); +util.TypedDataUtils.sign(typedData); +const typedSig = util.signTypedData(buffer32, { data: typedData }); +util.recoverTypedSignature({ data: typedData, sig: typedSig }); diff --git a/types/eth-sig-util/index.d.ts b/types/eth-sig-util/index.d.ts new file mode 100644 index 0000000000..61369ddc86 --- /dev/null +++ b/types/eth-sig-util/index.d.ts @@ -0,0 +1,184 @@ +// Type definitions for eth-sig-util 2.1 +// Project: https://github.com/MetaMask/eth-sig-util#readme +// Definitions by: Artur Kozak +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +/// + +/** + * @returns a 0x-prefixed 130-byte signature. + */ +export function concatSig(v: number, r: Buffer, s: Buffer): string; + +/** + * @param input a number or a hex string (either 0x-prefixed or not). + * @returns a 0x-prefixed hex string. + */ +export function normalize(input: string | number): string; + +//////////////////////////////////////////////////////////////////////////////// +// Personal message signing utils + +export interface MessageData { data: T; } + +export interface SignedMessageData extends MessageData { sig: string; } + +export function personalSign(privateKey: Buffer, message: MessageData): string; + +export function recoverPersonalSignature(message: SignedMessageData): string; + +export function extractPublicKey(message: SignedMessageData): string; + +//////////////////////////////////////////////////////////////////////////////// +// EIP-712 legacy draft utils + +export interface EIP712LegacyField { + type: string; + name: string; + value: any; +} + +export type EIP712LegacyData = ReadonlyArray; + +export function typedSignatureHash(data: EIP712LegacyData): string; + +export function signTypedDataLegacy( + privateKey: Buffer, + message: MessageData, +): string; + +export function recoverTypedSignatureLegacy( + message: SignedMessageData, +): string; + +//////////////////////////////////////////////////////////////////////////////// +// Elliptic curve encryption utils + +export type EncryptionType = 'x25519-xsalsa20-poly1305'; + +export interface EncryptedData { + version: EncryptionType; + nonce: string; + ephemPublicKey: string; + ciphertext: string; +} + +/** + * @param receiverPublicKey a 32-byte base64 string, e.g. from @see `getEncryptionPublicKey` + * @param data a utf-8 string to be encrypted + * @param version one of the supported encryption schemes, @see `EncryptionType` + */ +export function encrypt( + receiverPublicKey: string, + data: MessageData, + version: EncryptionType, +): EncryptedData; + +/** + * Same as @see `encrypt`, but encrypts a JSON object. + */ +export function encryptSafely( + receiverPublicKey: string, + data: MessageData, + version: EncryptionType, +): EncryptedData; + +/** + * @param encryptedData result of @see `encrypt`. + * @param receiverPrivateKey should be a 32-byte Buffer or *not* 0x-prefixed hex string. + */ +export function decrypt( + encryptedData: EncryptedData, + receiverPrivateKey: string | Buffer, +): string; + +/** + * @param encryptedData result of @see `encryptSafely`. + * @param receiverPrivateKey should be a 32-byte Buffer or *not* 0x-prefixed hex string. + */ +export function decryptSafely( + encryptedData: EncryptedData, + receiverPrivateKey: string | Buffer, +): any; + +/** + * @param privateKey should be a 32-byte Buffer or *not* 0x-prefixed hex string. + * @returns a 32-byte public key as a base64 string. + */ +export function getEncryptionPublicKey(privateKey: string | Buffer): string; + +//////////////////////////////////////////////////////////////////////////////// +// EIP-712 current draft utils + +export interface EIP712TypeProperty { + name: string; + type: string; +} + +/** + * Maps type name to an array describing its properties' types. + * Should include the `EIP712Domain` struct description. + */ +export interface EIP712Types { + [name: string]: ReadonlyArray; +} + +export interface EIP712Message { + [key: string]: any; +} + +/** + * The standard requires to use at least one of these fields. + * @see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md#definition-of-domainseparator + */ +export interface EIP712Domain { + name?: string; + version?: string; + chainId?: string | number; + verifyingContract?: string; + salt?: string; +} + +export interface EIP712TypedData { + types: EIP712Types; + primaryType: string; + domain: EIP712Domain; + message: EIP712Message; +} + +export namespace TypedDataUtils { + function encodeData(primaryType: string, data: EIP712Message, types: EIP712Types): Buffer; + + function encodeType(primaryType: string, types: EIP712Types): string; + + function findTypeDependencies( + primaryType: string, types: EIP712Types, + ): string[]; + + function hashStruct(primaryType: string, data: EIP712Message, types: EIP712Types): Buffer; + + function hashType(primaryType: string, types: EIP712Types): Buffer; + + function sanitizeData(data: EIP712TypedData): EIP712TypedData; + + /** + * @returns hash of the typed data as defined by EIP712 (contrary to the function's name) + * @see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md#specification + */ + function sign(data: EIP712TypedData): Buffer; +} + +/** + * A JSON Schema object equivalent to the EIP712Message type. + */ +export const TYPED_MESSAGE_SCHEMA: any; + +export function signTypedData( + privateKey: Buffer, + msgParams: MessageData, +): string; + +export function recoverTypedSignature( + msgParams: SignedMessageData, +): string; diff --git a/types/eth-sig-util/tsconfig.json b/types/eth-sig-util/tsconfig.json new file mode 100644 index 0000000000..18e346c208 --- /dev/null +++ b/types/eth-sig-util/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", + "eth-sig-util-tests.ts" + ] +} diff --git a/types/eth-sig-util/tslint.json b/types/eth-sig-util/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/eth-sig-util/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/ethereumjs-abi/index.d.ts b/types/ethereumjs-abi/index.d.ts index 9208712d59..98ea94a6fa 100644 --- a/types/ethereumjs-abi/index.d.ts +++ b/types/ethereumjs-abi/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for ethereumjs-abi 0.6 -// Project: https://github.com/ethereumjs/ethereumjs-abi +// Project: https://github.com/ethereumjs/ethereumjs-abi, https://github.com/axic/ethereumjs-abi // Definitions by: Leonid Logvinov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/eureka-js-client/eureka-js-client-tests.ts b/types/eureka-js-client/eureka-js-client-tests.ts index f9382655cb..5e4329e50a 100644 --- a/types/eureka-js-client/eureka-js-client-tests.ts +++ b/types/eureka-js-client/eureka-js-client-tests.ts @@ -10,13 +10,13 @@ const client = new Eureka({ port: 8080, vipAddress: 'jq.test.something.com', dataCenterInfo: { - name: 'MyOwn', - }, + name: 'MyOwn' + } }, eureka: { // eureka server host / port host: '192.168.99.100', - port: 32768, + port: 32768 } }); @@ -34,13 +34,13 @@ const newerClient = new Eureka({ vipAddress: 'jq.test.something.com', dataCenterInfo: { '@class': 'com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo', - name: 'MyOwn', - }, + name: 'MyOwn' + } }, eureka: { // eureka server host / port host: '192.168.99.100', - port: 32768, + port: 32768 } }); @@ -49,6 +49,17 @@ const ymlInitClient = new Eureka({ filename: 'eureka-config' }); +// example using middleware to set-up HTTP authentication (https://www.npmjs.com/package/eureka-js-client#providing-custom-request-middleware) +const middlewareClient = new Eureka({ + requestMiddleware: (requestOpts, done) => { + requestOpts.auth = { + user: 'username', + password: 'somepassword' + }; + done(requestOpts); + } +}); + // Test callbacks newerClient.start((err: Error) => {}); newerClient.start(() => {}); diff --git a/types/eureka-js-client/index.d.ts b/types/eureka-js-client/index.d.ts index ff63b02340..f6a9ec8a85 100644 --- a/types/eureka-js-client/index.d.ts +++ b/types/eureka-js-client/index.d.ts @@ -3,10 +3,11 @@ // Definitions by: Ilko Hoffmann // Karl O. // Tom Barton +// Josh Sullivan // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export class Eureka { - constructor(config: EurekaClient.EurekaConfig | EurekaClient.EurekaYmlConfig) + constructor(config: EurekaClient.EurekaConfig | EurekaClient.EurekaYmlConfig | EurekaClient.EurekaMiddlewareConfig); start(cb?: (err: Error, ...rest: any[]) => void): void; stop(cb?: (err: Error, ...rest: any[]) => void): void; getInstancesByAppId(appId: string): EurekaClient.EurekaInstanceConfig[]; @@ -19,6 +20,7 @@ export namespace EurekaClient { type DataCenterName = 'Netflix' | 'Amazon' | 'MyOwn'; interface EurekaConfig { + requestMiddleware?: EurekaMiddlewareConfig; instance: EurekaInstanceConfig; eureka: EurekaClientConfig; } @@ -80,8 +82,11 @@ export namespace EurekaClient { cwd: string; filename?: string; } + interface EurekaMiddlewareConfig { + requestMiddleware: (requestOpts: any, done: (opts: any) => void) => void; + } interface LegacyPortWrapper { - '$': number; + $: number; '@enabled': boolean; } interface PortWrapper { diff --git a/types/exceljs/index.d.ts b/types/exceljs/index.d.ts index 2d8c482cf6..df863c981b 100644 --- a/types/exceljs/index.d.ts +++ b/types/exceljs/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for exceljs 0.5 -// Project: https://github.com/guyonroche/exceljs +// Project: https://github.com/exceljs/exceljs // Definitions by: Rogier Schouten // Ali Taheri Moghaddar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/expect/index.d.ts b/types/expect/index.d.ts index 0e7ea18e91..38a5ff6747 100644 --- a/types/expect/index.d.ts +++ b/types/expect/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Expect 1.20 -// Project: https://github.com/mjackson/expect +// Project: https://github.com/facebook/jest // Definitions by: Justin Reidy , Risto Keravuori // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/expo/index.d.ts b/types/expo/index.d.ts index f48d01b75d..8b488f9b59 100644 --- a/types/expo/index.d.ts +++ b/types/expo/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for expo 32.0 -// Project: https://github.com/expo/expo-sdk +// Project: https://github.com/expo/expo/tree/master/packages/expo // Definitions by: Konstantin Kai // Martynas Kadiša // Jan Aagaard @@ -2528,7 +2528,7 @@ export namespace SQLite { interface ResultSet { insertId: number; - rowAffected: number; + rowsAffected: number; rows: { length: number; item: (index: number) => any; @@ -2702,7 +2702,7 @@ export class Svg extends Component<{ width: number, height: number, viewBox?: st * Take Snapshot */ export function takeSnapshotAsync( - node: number | React.ReactElement | React.RefObject, + node: number | React.ReactElement | React.RefObject, options?: { width?: number; height?: number; diff --git a/types/expo/v23/index.d.ts b/types/expo/v23/index.d.ts index b5c327f6a1..34f589c187 100644 --- a/types/expo/v23/index.d.ts +++ b/types/expo/v23/index.d.ts @@ -1517,7 +1517,7 @@ export class RadialGradient extends Component { } * Take Snapshot */ export function takeSnapshotAsync( - view?: (number | React.ReactElement), + view?: (number | React.ReactElement), options?: { width?: number, height?: number, diff --git a/types/expo/v24/index.d.ts b/types/expo/v24/index.d.ts index 7c515a0268..aa348eb80d 100644 --- a/types/expo/v24/index.d.ts +++ b/types/expo/v24/index.d.ts @@ -2058,7 +2058,7 @@ export class Svg extends Component<{ width: number, height: number }> { * Take Snapshot */ export function takeSnapshotAsync( - view?: (number | React.ReactElement), + view?: (number | React.ReactElement), options?: { width?: number, height?: number, diff --git a/types/expo/v25/index.d.ts b/types/expo/v25/index.d.ts index 9e2da6c790..d65cd76913 100644 --- a/types/expo/v25/index.d.ts +++ b/types/expo/v25/index.d.ts @@ -2087,7 +2087,7 @@ export class Svg extends Component<{ width: number, height: number }> { * Take Snapshot */ export function takeSnapshotAsync( - view?: (number | React.ReactElement), + view?: (number | React.ReactElement), options?: { width?: number, height?: number, diff --git a/types/expo/v26/index.d.ts b/types/expo/v26/index.d.ts index e8386db63c..32e00de424 100644 --- a/types/expo/v26/index.d.ts +++ b/types/expo/v26/index.d.ts @@ -2115,7 +2115,7 @@ export class Svg extends Component<{ width: number, height: number, viewBox?: st * Take Snapshot */ export function takeSnapshotAsync( - view?: (number | React.ReactElement), + view?: (number | React.ReactElement), options?: { width?: number, height?: number, diff --git a/types/expo/v27/index.d.ts b/types/expo/v27/index.d.ts index 179315ba69..dd5e2b90f2 100644 --- a/types/expo/v27/index.d.ts +++ b/types/expo/v27/index.d.ts @@ -2194,7 +2194,7 @@ export class Svg extends Component<{ width: number, height: number, viewBox?: st * Take Snapshot */ export function takeSnapshotAsync( - view?: (number | React.ReactElement), + view?: (number | React.ReactElement), options?: { width?: number, height?: number, diff --git a/types/expo/v30/index.d.ts b/types/expo/v30/index.d.ts index 8a77777c49..f1b318414e 100644 --- a/types/expo/v30/index.d.ts +++ b/types/expo/v30/index.d.ts @@ -2195,7 +2195,7 @@ export class Svg extends Component<{ width: number, height: number, viewBox?: st * Take Snapshot */ export function takeSnapshotAsync( - view?: (number | React.ReactElement), + view?: (number | React.ReactElement), options?: { width?: number, height?: number, diff --git a/types/expo/v31/index.d.ts b/types/expo/v31/index.d.ts index 5f560a8546..a3ce2caced 100644 --- a/types/expo/v31/index.d.ts +++ b/types/expo/v31/index.d.ts @@ -2480,7 +2480,7 @@ export namespace SQLite { interface ResultSet { insertId: number; - rowAffected: number; + rowsAffected: number; rows: { length: number; item: (index: number) => any; @@ -2652,7 +2652,7 @@ export class Svg extends Component<{ width: number, height: number, viewBox?: st * Take Snapshot */ export function takeSnapshotAsync( - view?: (number | React.ReactElement), + view?: (number | React.ReactElement), options?: { width?: number, height?: number, diff --git a/types/expo__vector-icons/index.d.ts b/types/expo__vector-icons/index.d.ts index 7a7ac587ec..dc8f45103d 100644 --- a/types/expo__vector-icons/index.d.ts +++ b/types/expo__vector-icons/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @expo/vector-icons 9.0 -// Project: https://github.com/expo/vector-icons +// Project: https://github.com/expo/vector-icons, https://expo.github.io/vector-icons // Definitions by: Hyeonsu Lee // Robert Ying // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/express-oauth-server/index.d.ts b/types/express-oauth-server/index.d.ts index 0a5a1162ea..b76daba19a 100644 --- a/types/express-oauth-server/index.d.ts +++ b/types/express-oauth-server/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for express-oauth-server 2.0 -// Project: https://github.com/oauthjs/express-oauth-server#readme +// Project: https://github.com/oauthjs/express-oauth-server#readme, https://github.com/seegno/express-oauth-server // Definitions by: Arne Schubert // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/express-promise-router/index.d.ts b/types/express-promise-router/index.d.ts index 507f6d0e40..29e1b9eb99 100644 --- a/types/express-promise-router/index.d.ts +++ b/types/express-promise-router/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for express-promise-router 2.0 -// Project: https://github.com/express-promise-router/express-promise-router +// Project: https://github.com/express-promise-router/express-promise-router, https://github.com/alex-whitney/express-promise-router // Definitions by: Anjun Wang // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/express-session/index.d.ts b/types/express-session/index.d.ts index d26fbb6af8..7368c0ad4f 100644 --- a/types/express-session/index.d.ts +++ b/types/express-session/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for express-session 1.15 -// Project: https://www.npmjs.org/package/express-session +// Project: https://github.com/expressjs/session // Definitions by: Hiroki Horiuchi // Jacob Bogers // Naoto Yokoyama diff --git a/types/express-unless/express-unless-tests.ts b/types/express-unless/express-unless-tests.ts index b4d579e742..859d72286d 100644 --- a/types/express-unless/express-unless-tests.ts +++ b/types/express-unless/express-unless-tests.ts @@ -9,3 +9,11 @@ var middleware: unless.RequestHandler = function(req, res, next) { middleware.unless = unless; app.use(middleware.unless({ method: "OPTIONS" })); app.use(middleware.unless(req => req.path === "test")); + +app.use(middleware.unless({ path: "/index", useOriginalUrl: true })); +app.use(middleware.unless({ path: /home/g, ext: ".jpg" })); +app.use(middleware.unless({ path: { url: "/index" }, ext: [ ".html", ".htm" ] })); +app.use(middleware.unless({ path: { url: "/index", methods: [ "GET", "POST" ] } })); +app.use(middleware.unless({ path: [ "/index", "/home", /home/i, { url: "/main", methods: [ "GET" ] }, { url: /home/i } ] })); +app.use(middleware.unless({ path: [ "/index", "/home", /home/i, { url: "/main", method: "GET" }, { url: /home/i } ] })); +app.use(middleware.unless({ path: [ "/index", "/home", /home/i, { url: "/main", method: [ "GET" ] }, { url: /home/i } ] })); \ No newline at end of file diff --git a/types/express-unless/index.d.ts b/types/express-unless/index.d.ts index 79eb870cb3..601cc199fc 100644 --- a/types/express-unless/index.d.ts +++ b/types/express-unless/index.d.ts @@ -2,6 +2,7 @@ // Project: https://www.npmjs.org/package/express-unless // Definitions by: Wonshik Kim // Joao Vieira +// Michal Kaminski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -11,11 +12,14 @@ declare function unless(options: unless.Options): express.RequestHandler; declare function unless(options: unless.Options["custom"]): express.RequestHandler; declare namespace unless { + type pathFilter = string | RegExp | { url: string | RegExp, methods?: string[], method?: string | string[] }; + export interface Options { custom?: (req: express.Request) => boolean; - path?: string | string[]; + path?: pathFilter | pathFilter[]; ext?: string | string[]; method?: string | string[]; + useOriginalUrl?: boolean; } export interface RequestHandler extends express.RequestHandler { unless?: typeof unless; diff --git a/types/express-winston/express-winston-tests.ts b/types/express-winston/express-winston-tests.ts index f370abdb5d..5d48bdd897 100644 --- a/types/express-winston/express-winston-tests.ts +++ b/types/express-winston/express-winston-tests.ts @@ -18,7 +18,7 @@ app.use(expressWinston.logger({ meta: true, metaField: 'metaField', msg: 'msg', - requestFilter: (req, prop) => true, + requestFilter: (req, prop) => req[prop], requestWhitelist: ['foo', 'bar'], skip: (req, res) => false, statusLevels: ({ error: 'error', success: 'success', warn: 'warn' }), @@ -69,8 +69,8 @@ app.use(expressWinston.errorLogger({ expressWinston.bodyBlacklist.push('potato'); expressWinston.bodyWhitelist.push('apple'); -expressWinston.defaultRequestFilter = (req: express.Request, prop: string) => true; -expressWinston.defaultResponseFilter = (res: express.Response, prop: string) => true; +expressWinston.defaultRequestFilter = (req: expressWinston.FilterRequest, prop: string) => req[prop]; +expressWinston.defaultResponseFilter = (res: expressWinston.FilterResponse, prop: string) => res[prop]; expressWinston.defaultSkip = () => true; expressWinston.ignoredRoutes.push('/ignored'); expressWinston.responseWhitelist.push('body'); diff --git a/types/express-winston/index.d.ts b/types/express-winston/index.d.ts index 462f3df1b3..f7ae04319b 100644 --- a/types/express-winston/index.d.ts +++ b/types/express-winston/index.d.ts @@ -8,10 +8,18 @@ import { ErrorRequestHandler, Handler, Request, Response } from 'express'; import * as winston from 'winston'; import * as Transport from 'winston-transport'; +export interface FilterRequest extends Request { + [other: string]: any; +} + +export interface FilterResponse extends Response { + [other: string]: any; +} + export type DynamicMetaFunction = (req: Request, res: Response, err: Error) => object; export type DynamicLevelFunction = (req: Request, res: Response, err: Error) => string; -export type RequestFilter = (req: Request, propName: string) => boolean; -export type ResponseFilter = (res: Response, propName: string) => boolean; +export type RequestFilter = (req: FilterRequest, propName: string) => any; +export type ResponseFilter = (res: FilterResponse, propName: string) => any; export type RouteFilter = (req: Request, res: Response) => boolean; export interface BaseLoggerOptions { diff --git a/types/extend/index.d.ts b/types/extend/index.d.ts index b94d1a7cb1..fe9f48a62d 100644 --- a/types/extend/index.d.ts +++ b/types/extend/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for extend 3.0 -// Project: https://www.npmjs.com/package/extend +// Project: https://github.com/justmoon/node-extend // Definitions by: Stefan Steinhart // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/extract-text-webpack-plugin/index.d.ts b/types/extract-text-webpack-plugin/index.d.ts index f0cc7bf65c..ae073a1be8 100644 --- a/types/extract-text-webpack-plugin/index.d.ts +++ b/types/extract-text-webpack-plugin/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for extract-text-webpack-plugin 3.0 -// Project: https://github.com/webpack-contrib/extract-text-webpack-plugin +// Project: http://github.com/webpack-contrib/extract-text-webpack-plugin // Definitions by: flying-sheep , kayo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/extsprintf/index.d.ts b/types/extsprintf/index.d.ts index 29d073b4c5..352d84848a 100644 --- a/types/extsprintf/index.d.ts +++ b/types/extsprintf/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for extsprintf 1.4 -// Project: https://github.com/joyent/node-extsprintf#readme +// Project: https://github.com/joyent/node-extsprintf#readme, https://github.com/davepacheco/node-extsprintf // Definitions by: Alex Hankins // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/ez-plus/index.d.ts b/types/ez-plus/index.d.ts index 3a372108d3..c94fb1c403 100644 --- a/types/ez-plus/index.d.ts +++ b/types/ez-plus/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jQuery ElevateZoom Plus Plugin 1.2 -// Project: https://github.com/igorlino/elevatezoom-plus +// Project: https://github.com/igorlino/elevatezoom-plus, http://igorlino.github.io/elevatezoom-plus // Definitions by: Anderson Friaça // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/facebook-instant-games/index.d.ts b/types/facebook-instant-games/index.d.ts index c0722b11ec..859c0e1ea0 100644 --- a/types/facebook-instant-games/index.d.ts +++ b/types/facebook-instant-games/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for facebook-instant-games 6.2 +// Type definitions for non-npm package facebook-instant-games 6.2 // Project: https://developers.facebook.com/docs/games/instant-games // Definitions by: Menushka Weeratunga , Øyvind Johansen Amundrud // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/falcor/index.d.ts b/types/falcor/index.d.ts index 683f040d3f..72d900e213 100644 --- a/types/falcor/index.d.ts +++ b/types/falcor/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for falcor 0.1 -// Project: http://netflix.github.io/falcor/ +// Project: http://netflix.github.io/falcor/, https://github.com/netflix/falcor // Definitions by: Quramy // Definitions: https://github.com/borisyankov/DefinitelyTyped diff --git a/types/fancy-log/index.d.ts b/types/fancy-log/index.d.ts index 2fbdb3f0d2..882a78075f 100644 --- a/types/fancy-log/index.d.ts +++ b/types/fancy-log/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for fancy-log 1.3 -// Project: https://github.com/js-cli/fancy-log +// Project: https://github.com/gulpjs/fancy-log // Definitions by: Pine Mizune // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/fancybox/fancybox-tests.ts b/types/fancybox/fancybox-tests.ts index ea6cb7bed4..2528e10af2 100644 --- a/types/fancybox/fancybox-tests.ts +++ b/types/fancybox/fancybox-tests.ts @@ -1,145 +1,78 @@ $('.fancybox').fancybox(); $('.fancybox').fancybox({ - padding: 0, - openEffect: 'elastic' + gutter: 0, + transitionEffect: 'slide' }); -$.fancybox([ - { href: 'img1.jpg', title: 'Title' }, - { href: 'img2.jpg', title: 'Title' } +$.fancybox.open([ + { src: 'img1.jpg', type: 'image' }, + { src: 'img2.jpg', type: 'image', opts: { caption: (instance, elem) => "Test" } } ]); -$.fancybox({ href: 'image.jpg', title: 'Lorem lipsum' }); -$.fancybox(['image.jpg', 'image.jpg']); -$.fancybox('image.jpg'); -$.fancybox('

Lorem lipsum

'); +$.fancybox.open({ src: 'image.jpg', opts: { caption: "Test" } }); +$.fancybox.open('image.jpg'); +$.fancybox.open('

Lorem lipsum

'); -$.fancybox.cancel(); $.fancybox.close(true); -$.fancybox.play(); -$.fancybox.next(); -$.fancybox.prev(); -$.fancybox.jumpto(1); -$.fancybox.reposition(); -$.fancybox.update(); -$.fancybox.toggle(); -$.fancybox.showLoading(); -$.fancybox.hideLoading(); -$(".selector").fancybox({ type: 'image' }); -$("#single_1").fancybox({ - helpers: { - title: { - type: 'float' - } - } -}); -$("#single_2").fancybox({ - openEffect: 'elastic', - closeEffect: 'elastic', - helpers: { - title: { - type: 'inside' - } - } -}); -$(".fancybox").fancybox({ - openEffect: 'none', - closeEffect: 'none' -}); -$(".various").fancybox({ - maxWidth: 800, - maxHeight: 600, - fitToView: false, - width: '70%', - height: '70%', - autoSize: false, - closeClick: false, - openEffect: 'none', - closeEffect: 'none' -}); + $(".fancybox-button").fancybox({ - prevEffect: 'none', - nextEffect: 'none', - closeBtn: false, - helpers: { - title: { type: 'inside' }, - buttons: {} - } + afterClose: () => { }, + afterLoad: () => { }, + afterShow: () => { }, + beforeClose: () => { }, + beforeLoad: () => { }, + beforeShow: () => { }, + clickContent: "next", + clickOutside: () => "close", + clickSlide: "zoom", + dblclickContent: "nextOrClose", + dblclickOutside: "toggleControls", + dblclickSlide: () => "nextOrClose", + onInit: () => { }, + onActivate: () => { }, + onDeactivate: () => { } }); $(".fancybox-thumb").fancybox({ - prevEffect: 'none', - nextEffect: 'none', - helpers: { - title: { - type: 'outside' - }, - thumbs: { - width: 50, - height: 50 - } - } -}); -$('.fancybox-media').fancybox({ - openEffect: 'none', - closeEffect: 'none', - helpers: { - media: {} - } -}); -$(".fancybox").fancybox({ - helpers: { - title: null - } -}); -$(".fancybox").fancybox({ - helpers: { - overlay: null - } -}); -$(".fancybox").fancybox({ - helpers: { - title: { - type: 'inside' - }, - overlay: { - showEarly: false - } - } -}); -$(".fancybox").fancybox({ - helpers: { - thumbs: { - width: 50, - height: 50 - } - } -}); -$(".fancybox").fancybox({ - beforeLoad: () => { - this.title = this.title ? `Image ${this.index + 1} of ${this.group.length} - ${this.title}` : `Image ${this.index + 1} of ${this.group.length}`; - } -}); -$.fancybox('

Lorem Lipsum

Lorem lipsum

', { - title: 'Custom Title' -}); -$.fancybox($("#inline"), { - title: 'Custom Title' -}); -$.fancybox({ - href: 'example.jpg', - title: 'Custom Title' -}); -$.fancybox([ - { - href: 'example1.jpg', - title: 'Custom Title 1' + animationDuration: 300, + animationEffect: "fade", + arrows: true, + autoFocus: true, + backFocus: false, + baseClass: "some-class", + baseTpl: "
", + btnTpl: { + download: "
" }, - { - href: 'example2.jpg', - title: 'Custom Title 2' - } -], { - padding: 0 -}); - -$(".fancybox").fancybox({ - margin: [20, 60, 20, 60] + buttons: ["close", "download"], + caption: "Test", + defaultType: "image", + errorTpl: "", + fullScreen: { autostart: false }, + gutter: 50, + hash: false, + hideScrollbar: false, + i18n: { en: { CLOSE: "Close this" } }, + idleTime: 500, + iframe: { preload: false }, + parentEl: "body", + preventCaptionOverlap: true, + protect: false, + slideClass: "some-slide-class", + slideShow: { autoStart: false, speed: 1000 }, + smallBtn: false, + spinnerTpl: "
", + thumbs: { axis: "x" }, + image: { preload: false }, + toolbar: true, + touch: { vertical: false }, + transitionDuration: 300, + transitionEffect: "rotate", + trapFocus: false, + video: { autoStart: false }, + wheel: false, + zoomOpacity: "auto", + modal: true, + loop: false, + lang: "en", + keyboard: false, + infobar: false, + ajax: { settings: { data: { fancybox: true } } } }); diff --git a/types/fancybox/index.d.ts b/types/fancybox/index.d.ts index f890625969..568948de6f 100644 --- a/types/fancybox/index.d.ts +++ b/types/fancybox/index.d.ts @@ -1,131 +1,793 @@ -// Type definitions for fancyBox 2.1 +// Type definitions for non-npm package fancyBox 3.5 // Project: https://github.com/fancyapps/fancyBox // Definitions by: Boris Yankov +// SPWizard01 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 3.1 /// -interface FancyboxOptions extends FancyboxCallback { - padding?: any; // number or [] - margin?: any; // number or [] - width?: any; // number or [] - height?: any; // number or [] - minWidth?: number; - minHeight?: number; - maxWidth?: number; - maxHeight?: number; - autoSize?: boolean; - autoHeight?: boolean; - autoWidth?: boolean; - autoResize?: boolean; - autoCenter?: boolean; - fitToView?: boolean; - aspectRatio?: boolean; - topRatio?: number; - leftRatio?: number; - scrolling?: string; - wrapCSS?: string; - arrows?: boolean; - closeBtn?: boolean; - closeClick?: boolean; - nextClick?: boolean; - mouseWheel?: boolean; - autoPlay?: boolean; - playSpeed?: number; - preload?: number; - modal?: boolean; - loop?: boolean; - ajax?: any; - iframe?: any; - swf?: any; - keys?: any; - direction?: any; - scrollOutside?: boolean; +type FancyBoxInteractionTypes = "close" | "next" | "nextOrClose" | "toggleControls" | "zoom" | false; + +type FancyBoxInteractionMethod = (slide?: FancyBoxSlide, event?: JQuery.Event) => FancyBoxInteractionTypes; + +type FancyBoxInteractions = FancyBoxInteractionTypes | FancyBoxInteractionMethod; + +interface FancyBoxPlainObject { + [key: string]: string | number | boolean | (() => void); +} + +interface FancyBoxGroupItemWithFilledProps extends FancyBoxGroupItem { + $thumb?: JQuery; + thumb?; + contentType?: string; index?: number; - type?: string; - href?: string; - content?: string; - title?: string; - tpl?: any; - - openEffect?: string; - closeEffect?: string; - nextEffect?: string; - prevEffect?: string; - - openSpeed?: number; - closeSpeed?: number; - nextSpeed?: number; - prevSpeed?: number; - - openEasing?: string; - closeEasing?: string; - nextEasing?: string; - prevEasing?: string; - - openOpacity?: boolean; - closeOpacity?: boolean; - - openMethod?: string; - closeMethod?: string; - nextMethod?: string; - prevMethod?: string; - - helpers?: any; - live?: boolean; - parent?: string; } -interface FancyboxMethods { - open(group?: any[], options?: FancyboxOptions): void; - cancel(): void; - close(force?: boolean): void; - play(): void; - next(): void; - prev(): void; - jumpto(index?: number): void; - reposition(): void; - update(): void; +interface FancyBoxGroupItem { + src: string; + type?: "image" | "inline" | "ajax" | "iframe" | "html"; + opts?: FancyBoxOptions; +} + +interface FancyBoxSlide extends FancyBoxGroupItemWithFilledProps { + $content?: JQuery; + $image?: JQuery; + $slide?: JQuery; + $spinner?: JQuery; + $iframe?: JQuery; + forcedDuration?: number; + height: number; + isComplete: boolean; + isLoaded: boolean; + isLoading: boolean; + isRevealed: boolean; + contentSource?: string; + pos: number; + width: number; +} + +interface FancyBoxImageOption { + /** + * Wait for images to load before displaying + * true - wait for image to load and then display; + * false - display thumbnail and load the full-sized image over top, + * requires predefined image dimensions (`data-width` and `data-height` attributes) + */ + preload: boolean; +} + +interface FancyBoxAjaxOption { + /** + * Object containing settings for ajax request + */ + settings: JQueryAjaxSettings; +} + +interface FancyBoxIframeSettings { + /** + * Iframe template + */ + tpl?: string; + /** + * Preload iframe before displaying it + * This allows to calculate iframe content width and height + * (note: Due to "Same Origin Policy", you can't get cross domain data). + */ + preload?: boolean; + /** + * Custom CSS styling for iframe wrapping element + * You can use this to set custom iframe dimensions + */ + css?: FancyBoxPlainObject; + /** + * Iframe tag attributes + */ + attr?: FancyBoxPlainObject; +} + +interface FancyBoxVideoOptions { + tpl?: string; + format?: string; + autoStart?: boolean; +} + +interface FancyBoxButtonTemplateOptions { + download?: string; + zoom?: string; + close?: string; + arrowLeft?: string; + arrowRight?: string; + /** + * This small close button will be appended to your html/inline/ajax content by default, + * if "smallBtn" option is not set to false + */ + smallBtn?: string; +} + +interface FancyBoxTouchOptions { + /** + * Allow to drag content vertically + */ + vertical?: boolean; + /** + * Continue movement after releasing mouse/touch when panning + */ + momentum?: boolean; +} + +interface FancyThumbsOptions { + /** + * Display thumbnails on opening + */ + autoStart?: boolean; + /** + * Hide thumbnail grid when closing animation starts + */ + hideOnClose?: boolean; + /** + * Container is injected into this element + */ + parentEl?: string; + /** + * Vertical (y) or horizontal (x) scrolling + */ + axis?: "x" | "y"; +} + +interface FancyBoxInternationalizatioObject { + CLOSE?: string; + NEXT?: string; + PREV?: string; + ERROR?: string; + PLAY_START?: string; + PLAY_STOP?: string; + FULL_SCREEN?: string; + THUMBS?: string; + DOWNLOAD?: string; + SHARE?: string; + ZOOM?: string; +} + +interface FancyBoxInternationalizationOptions { + [key: string]: FancyBoxInternationalizatioObject; +} + +interface FancyBoxButtonTypes { + "zoom": string; + "share": string; + "slideShow": string; + "fullScreen": string; + "download": string; + "thumbs": string; + "close": string; +} + +interface FancyBoxOptions { + /** + * Close existing modals + * Set this to false if you do not need to stack multiple instances + */ + closeExisting?: boolean; + /** + * Enable infinite gallery navigation + */ + loop?: boolean; + /** + * Horizontal space between slides + */ + gutter?: number; + /** + * Enable keyboard navigation + */ + keyboard?: boolean; + /** + * Should allow caption to overlap the content + */ + preventCaptionOverlap?: boolean; + /** + * Should display navigation arrows at the screen edges + */ + arrows?: boolean; + /** + * Should display counter at the top left corner + */ + infobar?: boolean; + /** + * Should display close button (using `btnTpl.smallBtn` template) over the content + * Can be true, false, "auto" + * If "auto" - will be automatically enabled for "html", "inline" or "ajax" items + */ + smallBtn?: boolean | "auto"; + /** + * Should display toolbar (buttons at the top) + * Can be true, false, "auto" + * If "auto" - will be automatically hidden if "smallBtn" is enabled + */ + toolbar?: boolean | "auto"; + /** + * What buttons should appear in the top right corner. + * Buttons will be created using templates from `btnTpl` option + * and they will be placed into toolbar (class="fancybox-toolbar"` element) + */ + buttons?: Array; + /** + * Detect "idle" time in seconds + */ + idleTime?: number; + /** + * Disable right-click and use simple image protection for images + */ + protect?: boolean; + /** + * Shortcut to make content "modal" - disable keyboard navigtion, hide buttons, etc + */ + modal?: boolean; + image?: FancyBoxImageOption; + ajax?: FancyBoxAjaxOption; + iframe?: FancyBoxIframeSettings; + /** + * For HTML5 video only + */ + video?: FancyBoxVideoOptions; + /** + * Default content type if cannot be detected automatically + */ + defaultType?: "image" | "inline" | "ajax" | "iframe" | "html"; + /** + * Open/close animation type + * Possible values: + * false - disable + * "zoom" - zoom images from/to thumbnail + * "fade" + * "zoom-in-out" + */ + animationEffect?: boolean | "zoom" | "fade" | "zoom-in-out"; + /** + * Duration in ms for open/close animation + */ + animationDuration?: number; + /** + * Should image change opacity while zooming + * If opacity is "auto", then opacity will be changed if image and thumbnail have different aspect ratios + */ + zoomOpacity?: "auto" | boolean; + /** + * Transition effect between slides + * Possible values: + * false + * "fade" + * "slide" + * "circular" + * "tube" + * "zoom-in-out" + * "rotate" + */ + transitionEffect?: "fade" | "slide" | "circular" | "tube" | "zoom-in-out" | "rotate" | boolean; + /** + * Duration in ms for transition animation + */ + transitionDuration?: number; + /** + * Custom CSS class for slide element + */ + slideClass?: string; + /** + * Custom CSS class for layout + */ + baseClass?: string; + /** + * Base template for layout + */ + baseTpl?: string; + /** + * Loading indicator template + */ + spinnerTpl?: string; + /** + * Error message template + */ + errorTpl?: string; + /** + * Button templates + */ + btnTpl?: FancyBoxButtonTemplateOptions; + /** + * Container is injected into this element + */ + parentEl?: string; + /** + * Hide browser vertical scrollbars; use at your own risk + */ + hideScrollbar?: boolean; + /** + * Try to focus on the first focusable element after opening + */ + autoFocus?: boolean; + /** + * Put focus back to active element after closing + */ + backFocus?: boolean; + /** + * Do not let user to focus on element outside modal content + */ + trapFocus?: boolean; + fullScreen?: { autostart: boolean }; + /** + * Set `touch: false` to disable panning/swiping + */ + touch?: FancyBoxTouchOptions | false; + /** + * Hash value when initializing manually, + * set `false` to disable hash change + */ + hash?: any; + /** + * Customize or add new media types + * Example: + * media : { + * youtube : { + * params : { + * autoplay : 0 + * } + * } + * } + */ + media?: FancyBoxPlainObject; + slideShow?: { autoStart?: boolean; speed?: number; }; + thumbs?: FancyThumbsOptions; + /** + * Use mousewheel to navigate gallery + * If 'auto' - enabled for images only + */ + wheel?: "auto" | false; + /** + * When instance has been initialized + */ + onInit?(instance: FancyBoxInstance): void; + /** + * Before the content of a slide is being loaded + */ + beforeLoad?(instance: FancyBoxInstance, current: FancyBoxSlide): void; + /** + * When the content of a slide is done loading + */ + afterLoad?(instance: FancyBoxInstance, current: FancyBoxSlide): void; + /** + * Before open animation starts + */ + beforeShow?(instance: FancyBoxInstance, current: FancyBoxSlide): void; + /** + * When content is done loading and animating + */ + afterShow?(instance: FancyBoxInstance, current: FancyBoxSlide): void; + /** + * Before the instance attempts to close. Return false to cancel the close. + */ + beforeClose?(instance: FancyBoxInstance, current: FancyBoxSlide): void; + /** + * After instance has been closed + */ + afterClose?(instance: FancyBoxInstance, current: FancyBoxSlide): void; + /** + * When instance is brought to front + */ + onActivate?(instance: FancyBoxInstance): void; + /** + * When other instance has been activated + */ + onDeactivate?(instance: FancyBoxInstance): void; + /** + * Clicked on the content + */ + clickContent?: FancyBoxInteractions; + /** + * Clicked on the slide + */ + clickSlide?: FancyBoxInteractions; + /** + * Clicked on the background (backdrop) element; + * if you have not changed the layout, then most likely you need to use `clickSlide` option + */ + clickOutside?: FancyBoxInteractions; + /** + * Same as previous two, but for double click + */ + dblclickContent?: FancyBoxInteractions; + /** + * Same as previous two, but for double click + */ + dblclickSlide?: FancyBoxInteractions; + /** + * Same as previous two, but for double click + */ + dblclickOutside?: FancyBoxInteractions; + lang?: string; + i18n?: FancyBoxInternationalizationOptions; + caption?: string | ((instance: FancyBoxInstance, current: FancyBoxSlide) => string); +} + +interface FancyBoxRefs { + bg: JQuery; + caption: JQuery; + container: JQuery; + infobar: JQuery; + inner: JQuery; + navigation: JQuery; + stage: JQuery; + toolbar: JQuery; +} + +interface FancyBoxFullScreen { + enabled(): boolean; + exit(): void; + isFullscreen(): boolean; + request(elem: HTMLElement): void; + toggle(elem: HTMLElement): void; +} + +interface FancyBoxGestures { + $bg: JQuery; + $container: JQuery; + $stage: JQuery; + instance: FancyBoxInstance; + destroy(): void; + endPanning(): void; + endSwiping(swiping: "x" | "y", scrolling: boolean): void; + endZooming(): void; + limitMovement(): void; + limitPosition(newOffsetX: number, newOffsetY: number, newWidth: number, newHeight: number): void; + onPan(): void; + onSwipe(e: JQuery.Event): void; + onTap(e: JQuery.Event): void; + onZoom(): void; + onscroll(e: JQuery.ScrollEvent): void; + ontouchend(e: JQuery.TouchEndEvent): void; + ontouchmove(e: JQuery.TouchMoveEvent): void; + ontouchstart(e: JQuery.TouchStartEvent): void; +} + +interface FancyBoxSlideShow { + $button?: JQuery; + $progress: JQuery; + instance: FancyBoxInstance; + clear(): void; + init(): void; + isActive: boolean; + set(force: boolean): void; + start(): void; + stop(): void; + timer?: number; toggle(): void; - showLoading(): void; - hideLoading(): void; - - (options: FancyboxOptions): void; - (selector: string, options?: FancyboxOptions): void; - (selector: JQuery, options?: FancyboxOptions): void; - (group?: any[], options?: FancyboxOptions): void; } -interface FancyboxCallback { - onCancel?: Function; - beforeLoad?: Function; - afterLoad?: Function; - beforeShow?: Function; - afterShow?: Function; - beforeClose?: Function; - afterClose?: Function; - onUpdate?: Function; - onPlayStart?: Function; - onPlayEnd?: Function; +interface FancyThumbs { + $button?: JQuery; + $grid?: JQuery; + $list?: JQuery; + instance: FancyBoxInstance; + opts: FancyThumbsOptions; + create(): void; + focus(duration: number): void; + hide(): void; + init(instance: FancyBoxInstance): void; + isActive: boolean; + isVisible: boolean; + show(): void; + toggle(): void; + update(): void; } -interface FancyboxThumbnailHelperOptions { +interface FancyBoxInstanceMethods { + /** + * Activates current instance - brings container to the front and enables keyboard, + * notifies other instances about deactivating + */ + activate(): void; + /** + * Populate current group with fresh content + * Check if each object has valid type and content + * @param content + */ + addContent(content: FancyBoxPlainObject | JQuery): void; + /** + * Attach an event handler functions for: + * - navigation buttons + * - browser scrolling, resizing; + * - focusing + * - keyboard + * - detecting inactivity + */ + addEvents(): void; + /** + * Prevent caption overlap, + * fix css inconsistency across browsers + * @param slide + */ + adjustCaption(slide: FancyBoxSlide): void; + /** + * Simple hack to fix inconsistency across browsers, described here (affects Edge, too): + * https://bugzilla.mozilla.org/show_bug.cgi?id=748518 + * @param slide + */ + adjustLayout(slide: FancyBoxSlide): void; + /** + * Adjustments after slide content has been loaded + * @param slide + */ + afterLoad(slide: FancyBoxSlide): void; + /** + * Check if image dimensions exceed parent element + * @param nextWidth + * @param nextHeight + */ + canPan(nextWidth?: number, nextHeight?: number): boolean; + /** + * Horizontally center slide + * @param duration + */ + centerSlide(duration: number): void; + /** + * Check if image has srcset and get the source + * @param slide + */ + checkSrcset(slide: FancyBoxSlide): void; + /** + * Final adjustments after removing the instance + * @param e + */ + cleanUp(e: JQuery.Event): void; + /** + * Close current or all instances + * @param e + * @param duration + */ + close(e: JQuery.Event, duration?: number): void; + /** + * Final adjustments after current gallery item is moved to position + * and it`s content is loaded + */ + complete(): void; + /** + * Create new "slide" element + * These are gallery items that are actually added to DOM + * @param pos + */ + createSlide(pos: number): FancyBoxSlide; + /** + * Try to find and focus on the first focusable element + * @param e + * @param firstRun + */ + focus(e: JQuery.Event, firstRun: boolean): void; + /** + * Calculate image size to fit inside viewport + * @param slide + */ + getFitPos(slide: FancyBoxSlide): FancyBoxGetFitPosResults; + /** + * Check if we can and have to zoom from thumbnail + * @param slide + */ + getThumbPos(slide: FancyBoxSlide): FancyBoxThumbPos; + /** + * Hide toolbar and caption + * @param andCaption + */ + hideControls(andCaption: boolean): void; + /** + * Remove loading icon from the slide + * @param slide + */ + hideLoading(slide: FancyBoxSlide): void; + /** + * Create DOM structure + */ + init(): void; + /** + * Check if current slide is moved (swiped) + * @param slide + */ + isMoved(slide: FancyBoxSlide): boolean; + /** + * Check if current image dimensions are smaller than actual + * @param nextWidth + * @param nextHeight + */ + isScaledDown(nextWidth?: number, nextHeight?: number): boolean; + /** + * Check if current slide is zoomable + */ + isZoomable(): boolean; + /** + * Switch to selected gallery item + * @param pos + * @param duration + */ + jumpTo(pos: number, duration: number): void; + /** + * Load content into the slide + * @param slide + */ + loadSlide(slide: FancyBoxSlide): void; + /** + * Change to next gallery item + * @param duration + */ + next(duration: number): void; + /** + * Preload next and previous slides + * @param type + */ + preload(type: string): void; + /** + * Change to previous gallery item + * @param duration + */ + previous(duration: number): void; + /** + * Remove events added by the core + */ + removeEvents(): void; + /** + * Computes the slide size from image size and maxWidth/maxHeight + * @param slide + * @param imgWidth + * @param imgHeight + */ + resolveImageSlideSize(slide: FancyBoxSlide, imgWidth: number, imgHeight: number): void; + /** + * Make content visible + * This method is called right after content has been loaded or + * user navigates gallery and transition should start + * @param slide + */ + revealContent(slide: FancyBoxSlide): void; + /** + * Scale image to the actual size of the image; + * x and y values should be relative to the slide + * @param x + * @param y + * @param duration + */ + scaleToActual(x?: number, y?: number, duration?: number): void; + /** + * Scale image to fit inside parent element + * @param duration + */ + scaleToFit(duration: number): void; + /** + * Create full-size image + * @param slide + */ + setBigImage(slide: FancyBoxSlide): void; + /** + * Wrap and append content to the slide + * @param slide + * @param content + */ + setContent(slide: FancyBoxSlide, content: JQuery | string): void; + /** + * Display error message + * @param slide + */ + setError(slide: FancyBoxSlide): void; + /** + * Create iframe wrapper, iframe and bindings + * @param slide + */ + setIframe(slide: FancyBoxSlide): void; + /** + * Use thumbnail image, if possible + * @param slide + */ + setImage(slide: FancyBoxSlide): void; + /** + * Show toolbar and caption + */ + showControls(): void; + /** + * Show loading icon inside the slide + * @param slide + */ + showLoading(slide: FancyBoxSlide): void; + /** + * Toggle toolbar and caption + */ + toggleControls(): void; + /** + * Simple i18n support - replaces object keys found in template + * with corresponding values + * @param obj + * @param str + */ + translate(obj: any, str: string): string; + /** + * Call callback and trigger an event + * @param name + * @param slide + */ + trigger(name: string, slide: FancyBoxSlide): void; + /** + * Update content size and position for all slides + * @param e + */ + update(e): void; + /** + * Update infobar values, navigation button states and reveal caption + */ + updateControls(): void; + /** + * Update cursor style depending if content can be zoomed + * @param nextWidth + * @param nextHeight + */ + updateCursor(nextWidth: number, nextHeight: number): void; + /** + * Update slide content position and size + * @param slide + * @param e + */ + updateSlide(slide: FancyBoxSlide, e?): void; +} + +interface FancyBoxInstance extends FancyBoxInstanceMethods { + $caption?: JQuery; + $refs?: FancyBoxRefs; + $trigger?: JQuery; + FullScreen: FancyBoxFullScreen; + Guestures: FancyBoxGestures; + SlideShow: FancyBoxSlideShow; + Thumbs: FancyThumbs; + currIndex: number; + currPos: number; + current: FancyBoxSlide; + firstRun: boolean; + group: FancyBoxGroupItem[]; + hasHiddenControls: boolean; + id: number; + idleInterval: number; + idleSecondsCounter: number; + isAnimating: boolean; + isIdle: boolean; + isVisible: boolean; + opts: FancyBoxOptions; + prevIndex: number; + prevPos: number; + slides: { [key: number]: FancyBoxSlide }; +} + +interface FancyBoxThumbPos extends FancyBoxGetFitPosResults { + scaleX?: number; + scaleY?: number; +} + +interface FancyBoxGetFitPosResults { + top?: number; + left?: number; width?: number; height?: number; - source?: any; - position?: string; } -interface FancyboxButtonHelperOptions { - tpl?: string; - position?: string; +interface FancyBoxJQueryMethods { + animate($el: JQuery, to: FancyBoxThumbPos, duration: number, callback: () => void, leaveAnimationName: boolean): void; + close(all?: boolean): void; + defaults: FancyBoxOptions; + destroy(): void; + getInstance(command?: string | (() => void)): FancyBoxInstance; + getTranslate($el: JQuery): void; + isMobile: boolean; + open(items: JQuery | string | FancyBoxGroupItem[] | FancyBoxGroupItem, opts?: FancyBoxOptions, index?: number): FancyBoxInstance; + setTranslate($el: JQuery, props: { left?: number; top?: number; }): void; + stop($el: JQuery, callCallback: boolean): void; + use3d: string; + version: string; } interface JQuery { - fancybox: FancyboxMethods; + fancybox(options?: FancyBoxOptions): JQuery; } interface JQueryStatic { - fancybox: FancyboxMethods; + fancybox: FancyBoxJQueryMethods; } diff --git a/types/fast64/index.d.ts b/types/fast64/index.d.ts index 47f067859c..3526e44d84 100644 --- a/types/fast64/index.d.ts +++ b/types/fast64/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for fast64 0.5 -// Project: https://github.com/superhuman/fast64 +// Project: https://github.com/superhuman/fast64, https://github.com/conradirwin/fast64 // Definitions by: Rares Matei // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/fastify-multipart/fastify-multipart-tests.ts b/types/fastify-multipart/fastify-multipart-tests.ts deleted file mode 100644 index ef125ecfa6..0000000000 --- a/types/fastify-multipart/fastify-multipart-tests.ts +++ /dev/null @@ -1,24 +0,0 @@ -import fastify = require("fastify"); -import fastifyMultipart = require("fastify-multipart"); - -const app = fastify(); - -app.register(fastifyMultipart, { - limits: { - fieldNameSize: 200, - fieldSize: 200, - fields: 200, - fileSize: 200, - files: 2, - headerPairs: 200, - } -}); - -app.get("/path", (request) => { - const isMultiPart = request.isMultipart(); - request.multipart((field, file, filename, encoding, mimetype) => { - console.log(field, file, filename, encoding, mimetype); - }, (err) => { - throw err; - }); -}); diff --git a/types/fastify-multipart/index.d.ts b/types/fastify-multipart/index.d.ts deleted file mode 100644 index 9d43a15daf..0000000000 --- a/types/fastify-multipart/index.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -// Type definitions for fastify-multipart 0.5 -// Project: https://github.com/fastify/fastify-multipart#readme -// Definitions by: Jannik Keye -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 -/// - -import busboy = require("busboy"); -import fastify = require("fastify"); - -import { IncomingMessage, ServerResponse } from 'http'; - -declare module "fastify" { - interface FastifyRequest { - isMultipart: () => boolean; - multipart: (handler: fastifyMultipart.MultipartHandler, next: (err: Error) => void) => busboy.Busboy; - } -} - -declare function fastifyMultipart(): void; - -declare namespace fastifyMultipart { - type MultipartHandler = ( - field: string, - file: any, - filename: string, - encoding: string, - mimetype: string, - ) => void; - - interface FastifyMultipartOptions { - limits?: { - /** - * Max field name size in bytes - */ - fieldNameSize?: number; - - /** - * Max field value size in bytes - */ - fieldSize?: number; - - /** - * Max number of non-file fields - */ - fields?: number; - - /** - * For multipart forms, the max file size - */ - fileSize?: number; - - /** - * Max number of file fields - */ - files?: number; - - /** - * Max number of header key=>value pairs - */ - headerPairs?: number; - }; - } -} - -export = fastifyMultipart; diff --git a/types/fastify-multipart/package.json b/types/fastify-multipart/package.json deleted file mode 100644 index e8c68ab969..0000000000 --- a/types/fastify-multipart/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "private": true, - "dependencies": { - "fastify": "^1.11.2" - } -} diff --git a/types/fastify-multipart/tsconfig.json b/types/fastify-multipart/tsconfig.json deleted file mode 100644 index e30babe0c1..0000000000 --- a/types/fastify-multipart/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "fastify-multipart-tests.ts" - ] -} diff --git a/types/favicons/index.d.ts b/types/favicons/index.d.ts index 6bd3a4892e..782ad0cb7c 100644 --- a/types/favicons/index.d.ts +++ b/types/favicons/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for favicons 5.3 -// Project: https://github.com/evilebottnawi/favicons/blob/master/package.json +// Project: https://github.com/itgalaxy/favicons // Definitions by: Mohsen Azimi , Nikk Radetskiy // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/feathersjs__authentication-client/index.d.ts b/types/feathersjs__authentication-client/index.d.ts index 6594fb7e95..f2057900b9 100644 --- a/types/feathersjs__authentication-client/index.d.ts +++ b/types/feathersjs__authentication-client/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @feathersjs/authentication-client 1.0 -// Project: http://feathersjs.com/ +// Project: https://feathersjs.com // Definitions by: Abraao Alves , Jan Lohage // Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript // TypeScript Version: 2.3 diff --git a/types/feathersjs__authentication-jwt/index.d.ts b/types/feathersjs__authentication-jwt/index.d.ts index 16d79bb885..708dd32386 100644 --- a/types/feathersjs__authentication-jwt/index.d.ts +++ b/types/feathersjs__authentication-jwt/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @feathersjs/authentication-jwt 1.0 -// Project: http://feathersjs.com/ +// Project: https://feathersjs.com // Definitions by: Jan Lohage // Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript // TypeScript Version: 2.3 diff --git a/types/feathersjs__authentication-local/index.d.ts b/types/feathersjs__authentication-local/index.d.ts index e16f9742b4..2af33c6dc6 100644 --- a/types/feathersjs__authentication-local/index.d.ts +++ b/types/feathersjs__authentication-local/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @feathersjs/authentication-local 1.0 -// Project: http://feathersjs.com/ +// Project: https://feathersjs.com // Definitions by: Jan Lohage // Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript // TypeScript Version: 2.3 diff --git a/types/feathersjs__authentication-oauth1/index.d.ts b/types/feathersjs__authentication-oauth1/index.d.ts index fa993c1cd0..b54668293e 100644 --- a/types/feathersjs__authentication-oauth1/index.d.ts +++ b/types/feathersjs__authentication-oauth1/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @feathersjs/authentication-oauth1 1.0 -// Project: http://feathersjs.com/ +// Project: https://feathersjs.com // Definitions by: Jan Lohage // Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript // TypeScript Version: 2.3 diff --git a/types/feathersjs__authentication-oauth2/index.d.ts b/types/feathersjs__authentication-oauth2/index.d.ts index 65e8989ae9..4f9d10a309 100644 --- a/types/feathersjs__authentication-oauth2/index.d.ts +++ b/types/feathersjs__authentication-oauth2/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @feathersjs/authentication-oauth2 1.0 -// Project: http://feathersjs.com/ +// Project: https://feathersjs.com // Definitions by: Jan Lohage // Nick Bolles // Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript diff --git a/types/feathersjs__authentication/index.d.ts b/types/feathersjs__authentication/index.d.ts index 8094c6002a..ad8efeae3b 100644 --- a/types/feathersjs__authentication/index.d.ts +++ b/types/feathersjs__authentication/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @feathersjs/authentication 2.1 -// Project: http://feathersjs.com/ +// Project: https://feathersjs.com // Definitions by: Abraao Alves // Jan Lohage // Nick Bolles diff --git a/types/feathersjs__configuration/index.d.ts b/types/feathersjs__configuration/index.d.ts index abd7e53d70..b7cd6b463c 100644 --- a/types/feathersjs__configuration/index.d.ts +++ b/types/feathersjs__configuration/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @feathersjs/configuration 1.0 -// Project: http://feathersjs.com/ +// Project: https://feathersjs.com // Definitions by: Jan Lohage // Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript // TypeScript Version: 2.3 diff --git a/types/feathersjs__errors/index.d.ts b/types/feathersjs__errors/index.d.ts index 3994e2056c..2e5c62a440 100644 --- a/types/feathersjs__errors/index.d.ts +++ b/types/feathersjs__errors/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @feathersjs/errors 3.3 -// Project: http://feathersjs.com/ +// Project: https://feathersjs.com // Definitions by: Jan Lohage // RazzM13 // Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript diff --git a/types/feathersjs__express/index.d.ts b/types/feathersjs__express/index.d.ts index 4dfaa0f8ee..a14e91832b 100644 --- a/types/feathersjs__express/index.d.ts +++ b/types/feathersjs__express/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @feathersjs/express 1.1 -// Project: http://feathersjs.com/ +// Project: https://feathersjs.com // Definitions by: Jan Lohage // Aleksey Klimenko // Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript diff --git a/types/feathersjs__primus-client/index.d.ts b/types/feathersjs__primus-client/index.d.ts index fb348379ea..de068b2b9c 100644 --- a/types/feathersjs__primus-client/index.d.ts +++ b/types/feathersjs__primus-client/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @feathersjs/primus-client 1.0 -// Project: http://feathersjs.com/ +// Project: https://feathersjs.com // Definitions by: Jan Lohage // Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript // TypeScript Version: 2.3 diff --git a/types/feathersjs__primus/index.d.ts b/types/feathersjs__primus/index.d.ts index 5d93843822..a18d5d6fe3 100644 --- a/types/feathersjs__primus/index.d.ts +++ b/types/feathersjs__primus/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @feathersjs/primus 3.0 -// Project: http://feathersjs.com/ +// Project: https://feathersjs.com // Definitions by: Jan Lohage // Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript // TypeScript Version: 2.3 diff --git a/types/feathersjs__rest-client/index.d.ts b/types/feathersjs__rest-client/index.d.ts index 65fdc93707..058b7a25fe 100644 --- a/types/feathersjs__rest-client/index.d.ts +++ b/types/feathersjs__rest-client/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @feathersjs/rest-client 1.3 -// Project: http://feathersjs.com/ +// Project: https://feathersjs.com // Definitions by: Jan Lohage // Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript diff --git a/types/feathersjs__socket-commons/index.d.ts b/types/feathersjs__socket-commons/index.d.ts index 043009fd5e..d075d3c90a 100644 --- a/types/feathersjs__socket-commons/index.d.ts +++ b/types/feathersjs__socket-commons/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @feathersjs/socket-commons 3.1 -// Project: http://feathersjs.com/ +// Project: https://github.com/feathersjs/socket-commons // Definitions by: Jan Lohage // Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript // TypeScript Version: 2.3 diff --git a/types/feathersjs__socketio-client/index.d.ts b/types/feathersjs__socketio-client/index.d.ts index 83fd71b0ed..03d0efff59 100644 --- a/types/feathersjs__socketio-client/index.d.ts +++ b/types/feathersjs__socketio-client/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @feathersjs/socketio-client 1.0 -// Project: http://feathersjs.com/ +// Project: https://feathersjs.com // Definitions by: Jan Lohage // Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript // TypeScript Version: 2.3 diff --git a/types/feathersjs__socketio/index.d.ts b/types/feathersjs__socketio/index.d.ts index f0e082bf45..02511a2537 100644 --- a/types/feathersjs__socketio/index.d.ts +++ b/types/feathersjs__socketio/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @feathersjs/socketio 3.0 -// Project: http://feathersjs.com/ +// Project: https://feathersjs.com // Definitions by: Jan Lohage // Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript // TypeScript Version: 2.3 diff --git a/types/feedparser/index.d.ts b/types/feedparser/index.d.ts index 75f3dde979..f179e4b22a 100644 --- a/types/feedparser/index.d.ts +++ b/types/feedparser/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for feedparser 2.2 -// Project: https://github.com/danmactough/node-feedparser +// Project: http://github.com/danmactough/node-feedparser // Definitions by: Juan J. Jimenez-Anca // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/fetch-mock/index.d.ts b/types/fetch-mock/index.d.ts index c9984dea89..0a9da3bd9c 100644 --- a/types/fetch-mock/index.d.ts +++ b/types/fetch-mock/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for fetch-mock 7.2 -// Project: https://github.com/wheresrhys/fetch-mock +// Project: https://github.com/wheresrhys/fetch-mock, http://www.wheresrhys.co.uk/fetch-mock // Definitions by: Alexey Svetliakov // Tamir Duberstein // Risto Keravuori diff --git a/types/ffi-napi/index.d.ts b/types/ffi-napi/index.d.ts index 6cfd439e13..9d9872a505 100644 --- a/types/ffi-napi/index.d.ts +++ b/types/ffi-napi/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for node-ffi-napi 2.4 -// Project: https://github.com/node-ffi/node-ffi +// Project: http://github.com/node-ffi-napi/node-ffi-napi // Definitions by: Keerthi Niranjan , Kiran Niranjan // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/ffi/index.d.ts b/types/ffi/index.d.ts index d8386a630a..b84b42e461 100644 --- a/types/ffi/index.d.ts +++ b/types/ffi/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for node-ffi 0.2 -// Project: https://github.com/rbranson/node-ffi +// Project: https://github.com/rbranson/node-ffi, http://github.com/node-ffi/node-ffi // Definitions by: Paul Loyd , Waiting Song // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/filesize/index.d.ts b/types/filesize/index.d.ts index e8905d906d..33d04b66ff 100644 --- a/types/filesize/index.d.ts +++ b/types/filesize/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for filesize 4.0 -// Project: https://github.com/avoidwork/filesize.js +// Project: https://github.com/avoidwork/filesize.js, https://filesizejs.com // Definitions by: Giedrius Grabauskas // Renaud Chaput // Roman Nuritdinov diff --git a/types/findup-sync/index.d.ts b/types/findup-sync/index.d.ts index 23df60a22f..f0b35d3baa 100644 --- a/types/findup-sync/index.d.ts +++ b/types/findup-sync/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for findup-sync 2.0 -// Project: https://github.com/cowboy/node-findup-sync +// Project: https://github.com/gulpjs/findup-sync // Definitions by: Bart van der Schoor // Nathan Brown // BendingBender diff --git a/types/fined/index.d.ts b/types/fined/index.d.ts index 107a40760c..a3db89c053 100644 --- a/types/fined/index.d.ts +++ b/types/fined/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for fined 1.1 -// Project: https://github.com/js-cli/fined#readme +// Project: https://github.com/gulpjs/fined // Definitions by: BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/firefox-webext-browser/index.d.ts b/types/firefox-webext-browser/index.d.ts index 9b318f9b4b..1dfe1eb809 100644 --- a/types/firefox-webext-browser/index.d.ts +++ b/types/firefox-webext-browser/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for WebExtension Development in FireFox 65.0 +// Type definitions for non-npm package WebExtension Development in FireFox 65.0 // Project: https://developer.mozilla.org/en-US/Add-ons/WebExtensions // Definitions by: Jasmin Bom // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/firmata/index.d.ts b/types/firmata/index.d.ts index 21dfa03820..89f57bfe91 100644 --- a/types/firmata/index.d.ts +++ b/types/firmata/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for firmata.js 0.19 -// Project: https://github.com/firmata/firmata.js +// Project: http://www.github.com/firmata/firmata.js // Definitions by: Troy W. // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/first-mate/index.d.ts b/types/first-mate/index.d.ts index 2fcc7141cb..7ef9d95170 100644 --- a/types/first-mate/index.d.ts +++ b/types/first-mate/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for first-mate 7.x -// Project: https://github.com/atom/first-mate/ +// Project: https://github.com/atom/first-mate/, http://atom.github.io/first-mate // Definitions by: GlenCFL // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/fixed-data-table-2/index.d.ts b/types/fixed-data-table-2/index.d.ts index 16b0c0f3c5..b0fbb19e16 100644 --- a/types/fixed-data-table-2/index.d.ts +++ b/types/fixed-data-table-2/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for fixed-data-table-2 0.8 -// Project: https://github.com/schrodinger/fixed-data-table-2 +// Project: https://github.com/schrodinger/fixed-data-table-2, http://schrodinger.github.io/fixed-data-table-2 // Definitions by: Ilya Petukhov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -30,7 +30,7 @@ export interface ColumnReorderEndEvent { reorderColumn: string; } -export type ElementOrFunc

= string | React.ReactElement | ((props: P) => (string | React.ReactElement)); +export type ElementOrFunc

= string | React.ReactElement | ((props: P) => (string | React.ReactElement)); export type TableRowEventHandler = (event: React.SyntheticEvent, rowIndex: number) => void; @@ -616,7 +616,7 @@ export interface ColumnGroupProps extends React.ClassAttributes { * You can also pass in a function that returns a react elemnt, with the * props object above passed in as the first parameter. */ - header?: string | React.ReactElement | ((props: ColumnGroupHeaderProps) => (string | React.ReactElement)); + header?: string | React.ReactElement | ((props: ColumnGroupHeaderProps) => (string | React.ReactElement)); } export class ColumnGroup extends React.Component { diff --git a/types/fixed-data-table/fixed-data-table-tests.tsx b/types/fixed-data-table/fixed-data-table-tests.tsx index 758b33d2a2..3c54d553bd 100644 --- a/types/fixed-data-table/fixed-data-table-tests.tsx +++ b/types/fixed-data-table/fixed-data-table-tests.tsx @@ -3,7 +3,7 @@ import { Table, Cell, Column, CellProps } from "fixed-data-table"; // create your Table class MyTable1 extends React.Component { - render(): React.ReactElement { + render(): React.ReactElement { return (
{ + render(): React.ReactElement { return (
{ ] }; - render(): React.ReactElement { + render(): React.ReactElement { return (
{ - render(): React.ReactElement { + render(): React.ReactElement { const {rowIndex, field, myData} = this.props; return ( @@ -101,7 +101,7 @@ class MyTextCell extends React.Component { } class MyLinkCell extends React.Component { - render(): React.ReactElement { + render(): React.ReactElement { const {rowIndex, field, myData} = this.props; const link: string = myData[rowIndex][field]; @@ -133,7 +133,7 @@ class MyTable4 extends React.Component<{}, MyTable4State> { ] }; - render(): React.ReactElement { + render(): React.ReactElement { return (
{ // Listen for events class MyTable5 extends React.Component { - render(): React.ReactElement { + render(): React.ReactElement { return (
| ((props: CellProps) => (string | React.ReactElement)); + header?: string | React.ReactElement | ((props: CellProps) => (string | React.ReactElement)); /** * This is the body cell that will be cloned for this @@ -315,7 +315,7 @@ declare namespace FixedDataTable { * If you pass in a function, you will receive the same * props object as the first argument. */ - cell?: string | React.ReactElement | ((props: CellProps) => (string | React.ReactElement)); + cell?: string | React.ReactElement | ((props: CellProps) => (string | React.ReactElement)); /** * The footer cell for this column. This can either be a @@ -338,7 +338,7 @@ declare namespace FixedDataTable { * If you pass in a function, you will receive the same * props object as the first argument. */ - footer?: string | React.ReactElement | ((props: CellProps) => (string | React.ReactElement)); + footer?: string | React.ReactElement | ((props: CellProps) => (string | React.ReactElement)); /** * This is used to uniquely identify the column, and is not @@ -440,7 +440,7 @@ declare namespace FixedDataTable { * If you pass in a function, you will receive the same props * object as the first argument. */ - header: string | React.ReactElement | ((props: CellProps) => (string | React.ReactElement)); + header: string | React.ReactElement | ((props: CellProps) => (string | React.ReactElement)); } /** diff --git a/types/flagged-respawn/index.d.ts b/types/flagged-respawn/index.d.ts index eea62b2e8c..37e6dd85bd 100644 --- a/types/flagged-respawn/index.d.ts +++ b/types/flagged-respawn/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for flagged-respawn 1.0 -// Project: https://github.com/js-cli/js-flagged-respawn +// Project: https://github.com/gulpjs/flagged-respawn // Definitions by: BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/flexmonster/index.d.ts b/types/flexmonster/index.d.ts index 00a6c49bcb..2c5ea0b0ec 100644 --- a/types/flexmonster/index.d.ts +++ b/types/flexmonster/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for flexmonster 2.6 -// Project: https://www.flexmonster.com/ +// Project: https://flexmonster.com // Definitions by: Flexmonster // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/flickity/index.d.ts b/types/flickity/index.d.ts index 07a9e03d9e..4d9a8a4c25 100644 --- a/types/flickity/index.d.ts +++ b/types/flickity/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Flickity 2.0 -// Project: http://flickity.metafizzy.co/ +// Project: https://flickity.metafizzy.co // Definitions by: Chris McGrath // Michael Wagner // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/flowdoc/index.d.ts b/types/flowdoc/index.d.ts index 8c32c6794c..151a514db2 100644 --- a/types/flowdoc/index.d.ts +++ b/types/flowdoc/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for flowdoc 1.1 +// Type definitions for non-npm package flowdoc 1.1 // Project: https://github.com/overflowapp/Flow // Definitions by: Stefan Mansson // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/fluent-langneg/index.d.ts b/types/fluent-langneg/index.d.ts index 28abe2c2d9..176cc46cf4 100644 --- a/types/fluent-langneg/index.d.ts +++ b/types/fluent-langneg/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for fluent-langneg 0.1 -// Project: http://projectfluent.io +// Project: http://projectfluent.io, https://projectfluent.org // Definitions by: Huy Nguyen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/form-serialize/index.d.ts b/types/form-serialize/index.d.ts index b433f6b81b..a69263dd76 100644 --- a/types/form-serialize/index.d.ts +++ b/types/form-serialize/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for form-serialize 0.7 -// Project: https://github.com/defunctzombie/form-serialize#readme +// Project: https://github.com/defunctzombie/form-serialize#readme, https://github.com/shtylman/form-serialize // Definitions by: Tyler Johnson // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/format-duration/index.d.ts b/types/format-duration/index.d.ts index 06682200b2..8ba8595e34 100644 --- a/types/format-duration/index.d.ts +++ b/types/format-duration/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for format-duration 1.0 -// Project: https://github.com/ungoldman/format-duration +// Project: https://github.com/hypermodules/format-duration // Definitions by: Giles Roadnight // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/format-unicorn/index.d.ts b/types/format-unicorn/index.d.ts index 932e426091..89c2a75148 100644 --- a/types/format-unicorn/index.d.ts +++ b/types/format-unicorn/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for format-unicorn 1.1 -// Project: https://github.com/tallesl/format-unicorn +// Project: https://github.com/tallesl/node-format-unicorn // Definitions by: kruncher // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/freshy/index.d.ts b/types/freshy/index.d.ts index 93b424143a..3e1d482f6a 100644 --- a/types/freshy/index.d.ts +++ b/types/freshy/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for freshy 1.0 -// Project: https://github.com/krakenjs/freshy#readme +// Project: https://github.com/krakenjs/freshy#readme, https://github.com/totherik/freshy // Definitions by: Nikita Volodin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/frisby/index.d.ts b/types/frisby/index.d.ts index 3d132bdc91..3c9fa4a22a 100644 --- a/types/frisby/index.d.ts +++ b/types/frisby/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Frisby 2.0 -// Project: https://github.com/vlucas/frisby +// Project: https://github.com/vlucas/frisby, http://frisbyjs.com // Definitions by: Christopher E. Woodland // Johnny Li // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/fs-extra/fs-extra-tests.ts b/types/fs-extra/fs-extra-tests.ts index dbe48cf971..9eab816f63 100644 --- a/types/fs-extra/fs-extra-tests.ts +++ b/types/fs-extra/fs-extra-tests.ts @@ -214,3 +214,7 @@ fs.writeFile("foo.txt", "i am foo", { encoding: "utf-8" }); // $ExpectType Promise fs.mkdtemp("foo"); + +fs.copyFile("src", "dest").then(); +fs.copyFile("src", "dest", fs.constants.COPYFILE_EXCL).then(); +fs.copyFile("src", "dest", errorCallback); diff --git a/types/fs-extra/index.d.ts b/types/fs-extra/index.d.ts index c5eddbf416..c1b661daae 100644 --- a/types/fs-extra/index.d.ts +++ b/types/fs-extra/index.d.ts @@ -20,6 +20,10 @@ export function copy(src: string, dest: string, callback: (err: Error) => void): export function copy(src: string, dest: string, options: CopyOptions, callback: (err: Error) => void): void; export function copySync(src: string, dest: string, options?: CopyOptionsSync): void; +export function copyFile(src: string, dest: string, flags?: number): Promise; +export function copyFile(src: string, dest: string, callback: (err: Error) => void): void; +export function copyFile(src: string, dest: string, flags: number, callback: (err: Error) => void): void; + export function move(src: string, dest: string, options?: MoveOptions): Promise; export function move(src: string, dest: string, callback: (err: Error) => void): void; export function move(src: string, dest: string, options: MoveOptions, callback: (err: Error) => void): void; diff --git a/types/fs-plus/index.d.ts b/types/fs-plus/index.d.ts index 0151de2c73..8f1a46d04b 100644 --- a/types/fs-plus/index.d.ts +++ b/types/fs-plus/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for fs-plus 3.0 -// Project: https://github.com/atom/fs-plus +// Project: https://github.com/atom/fs-plus, http://atom.github.io/fs-plus // Definitions by: Daniel Perez Alvarez // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/fuzzaldrin/index.d.ts b/types/fuzzaldrin/index.d.ts index ca9a64e819..58a605dfca 100644 --- a/types/fuzzaldrin/index.d.ts +++ b/types/fuzzaldrin/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for fuzzaldrin 2.1 -// Project: https://github.com/atom/fuzzaldrin +// Project: https://github.com/atom/fuzzaldrin, http://atom.github.io/fuzzaldrin // Definitions by: Mohamed Hegazy // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/fuzzyset.js/index.d.ts b/types/fuzzyset.js/index.d.ts index 4e4bcfefb6..6d6ecb1f83 100644 --- a/types/fuzzyset.js/index.d.ts +++ b/types/fuzzyset.js/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for fuzzyset.js 0.0 -// Project: https://github.com/Glench/fuzzyset.js +// Project: https://github.com/Glench/fuzzyset.js, http://glench.github.com/fuzzyset.js // Definitions by: Louis Grignon // Narain Sagar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/fuzzyset/index.d.ts b/types/fuzzyset/index.d.ts index 2e97e3b47a..bff7b1b041 100644 --- a/types/fuzzyset/index.d.ts +++ b/types/fuzzyset/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for fuzzset 1.0 -// Project: https://github.com/washt/fuzzyset +// Project: http://github.com/washt/fuzzyset // Definitions by: Louis Grignon // Narain Sagar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.auth2/index.d.ts b/types/gapi.auth2/index.d.ts index 6db3755cc7..af6243ff2c 100644 --- a/types/gapi.auth2/index.d.ts +++ b/types/gapi.auth2/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Sign-In API 0.0 +// Type definitions for non-npm package Google Sign-In API 0.0 // Project: https://developers.google.com/identity/sign-in/web/ // Definitions by: Derek Lawless // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.acceleratedmobilepageurl/index.d.ts b/types/gapi.client.acceleratedmobilepageurl/index.d.ts index 1c2c968f53..ccfc606e92 100644 --- a/types/gapi.client.acceleratedmobilepageurl/index.d.ts +++ b/types/gapi.client.acceleratedmobilepageurl/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Accelerated Mobile Pages (AMP) URL API v1 1.0 +// Type definitions for non-npm package Google Accelerated Mobile Pages (AMP) URL API v1 1.0 // Project: https://developers.google.com/amp/cache/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.adexchangebuyer/index.d.ts b/types/gapi.client.adexchangebuyer/index.d.ts index b6ee95d192..75dcb97d6c 100644 --- a/types/gapi.client.adexchangebuyer/index.d.ts +++ b/types/gapi.client.adexchangebuyer/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Ad Exchange Buyer API v1.4 1.4 +// Type definitions for non-npm package Google Ad Exchange Buyer API v1.4 1.4 // Project: https://developers.google.com/ad-exchange/buyer-rest // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.adexchangebuyer2/index.d.ts b/types/gapi.client.adexchangebuyer2/index.d.ts index 40ab26679b..4287d79559 100644 --- a/types/gapi.client.adexchangebuyer2/index.d.ts +++ b/types/gapi.client.adexchangebuyer2/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Ad Exchange Buyer API II v2beta1 2.0 +// Type definitions for non-npm package Google Ad Exchange Buyer API II v2beta1 2.0 // Project: https://developers.google.com/ad-exchange/buyer-rest/reference/rest/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.adexchangeseller/index.d.ts b/types/gapi.client.adexchangeseller/index.d.ts index dd327ed5ae..84d8c70e9d 100644 --- a/types/gapi.client.adexchangeseller/index.d.ts +++ b/types/gapi.client.adexchangeseller/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Ad Exchange Seller API v2.0 2.0 +// Type definitions for non-npm package Google Ad Exchange Seller API v2.0 2.0 // Project: https://developers.google.com/ad-exchange/seller-rest/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.adexperiencereport/index.d.ts b/types/gapi.client.adexperiencereport/index.d.ts index 8258568b1d..0921c587a2 100644 --- a/types/gapi.client.adexperiencereport/index.d.ts +++ b/types/gapi.client.adexperiencereport/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Ad Experience Report API v1 1.0 +// Type definitions for non-npm package Google Google Ad Experience Report API v1 1.0 // Project: https://developers.google.com/ad-experience-report/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.admin/index.d.ts b/types/gapi.client.admin/index.d.ts index 9e82b6a06c..4d1cacdfd0 100644 --- a/types/gapi.client.admin/index.d.ts +++ b/types/gapi.client.admin/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Admin Reports API reports_v1 1.0 +// Type definitions for non-npm package Google Admin Reports API reports_v1 1.0 // Project: https://developers.google.com/admin-sdk/reports/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.adsense/index.d.ts b/types/gapi.client.adsense/index.d.ts index ea9e5fa057..51ed436aa5 100644 --- a/types/gapi.client.adsense/index.d.ts +++ b/types/gapi.client.adsense/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google AdSense Management API v1.4 1.4 +// Type definitions for non-npm package Google AdSense Management API v1.4 1.4 // Project: https://developers.google.com/adsense/management/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.adsensehost/index.d.ts b/types/gapi.client.adsensehost/index.d.ts index 1595d36c6c..55df0e770a 100644 --- a/types/gapi.client.adsensehost/index.d.ts +++ b/types/gapi.client.adsensehost/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google AdSense Host API v4.1 4.1 +// Type definitions for non-npm package Google AdSense Host API v4.1 4.1 // Project: https://developers.google.com/adsense/host/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.analytics/index.d.ts b/types/gapi.client.analytics/index.d.ts index eeddb3f81f..a1a23a56d9 100644 --- a/types/gapi.client.analytics/index.d.ts +++ b/types/gapi.client.analytics/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Analytics API v3 3.0 +// Type definitions for non-npm package Google Google Analytics API v3 3.0 // Project: https://developers.google.com/analytics/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.analyticsreporting/index.d.ts b/types/gapi.client.analyticsreporting/index.d.ts index e5e1b7aabe..9c2d842b2f 100644 --- a/types/gapi.client.analyticsreporting/index.d.ts +++ b/types/gapi.client.analyticsreporting/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Analytics Reporting API v4 4.0 +// Type definitions for non-npm package Google Google Analytics Reporting API v4 4.0 // Project: https://developers.google.com/analytics/devguides/reporting/core/v4/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.androiddeviceprovisioning/index.d.ts b/types/gapi.client.androiddeviceprovisioning/index.d.ts index 0b896d6fbb..e391633ee1 100644 --- a/types/gapi.client.androiddeviceprovisioning/index.d.ts +++ b/types/gapi.client.androiddeviceprovisioning/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Android Device Provisioning Partner API v1 1.0 +// Type definitions for non-npm package Google Android Device Provisioning Partner API v1 1.0 // Project: https://developers.google.com/zero-touch/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.androidenterprise/index.d.ts b/types/gapi.client.androidenterprise/index.d.ts index 1e81143609..ee7ec9b649 100644 --- a/types/gapi.client.androidenterprise/index.d.ts +++ b/types/gapi.client.androidenterprise/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Play EMM API v1 1.0 +// Type definitions for non-npm package Google Google Play EMM API v1 1.0 // Project: https://developers.google.com/android/work/play/emm-api // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.androidmanagement/index.d.ts b/types/gapi.client.androidmanagement/index.d.ts index b24ccab3e5..67fea8c2ac 100644 --- a/types/gapi.client.androidmanagement/index.d.ts +++ b/types/gapi.client.androidmanagement/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Android Management API v1 1.0 +// Type definitions for non-npm package Google Android Management API v1 1.0 // Project: https://developers.google.com/android/management // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.androidpublisher/index.d.ts b/types/gapi.client.androidpublisher/index.d.ts index beae0fb512..3c54a748e9 100644 --- a/types/gapi.client.androidpublisher/index.d.ts +++ b/types/gapi.client.androidpublisher/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Play Developer API v2 2.0 +// Type definitions for non-npm package Google Google Play Developer API v2 2.0 // Project: https://developers.google.com/android-publisher // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.appengine/index.d.ts b/types/gapi.client.appengine/index.d.ts index 2b97368fb5..0644f59c46 100644 --- a/types/gapi.client.appengine/index.d.ts +++ b/types/gapi.client.appengine/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google App Engine Admin API v1 1.0 +// Type definitions for non-npm package Google Google App Engine Admin API v1 1.0 // Project: https://cloud.google.com/appengine/docs/admin-api/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.appsactivity/index.d.ts b/types/gapi.client.appsactivity/index.d.ts index e8c9c49f18..77f773d30e 100644 --- a/types/gapi.client.appsactivity/index.d.ts +++ b/types/gapi.client.appsactivity/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google G Suite Activity API v1 1.0 +// Type definitions for non-npm package Google G Suite Activity API v1 1.0 // Project: https://developers.google.com/google-apps/activity/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.appstate/index.d.ts b/types/gapi.client.appstate/index.d.ts index 9ae6561cb1..1441499c69 100644 --- a/types/gapi.client.appstate/index.d.ts +++ b/types/gapi.client.appstate/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google App State API v1 1.0 +// Type definitions for non-npm package Google Google App State API v1 1.0 // Project: https://developers.google.com/games/services/web/api/states // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.bigquery/index.d.ts b/types/gapi.client.bigquery/index.d.ts index 813d668ea7..3ad4e6867b 100644 --- a/types/gapi.client.bigquery/index.d.ts +++ b/types/gapi.client.bigquery/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google BigQuery API v2 2.0 +// Type definitions for non-npm package Google BigQuery API v2 2.0 // Project: https://cloud.google.com/bigquery/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.bigquerydatatransfer/index.d.ts b/types/gapi.client.bigquerydatatransfer/index.d.ts index 0bc090fdf5..8b5b9c59ce 100644 --- a/types/gapi.client.bigquerydatatransfer/index.d.ts +++ b/types/gapi.client.bigquerydatatransfer/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google BigQuery Data Transfer API v1 1.0 +// Type definitions for non-npm package Google BigQuery Data Transfer API v1 1.0 // Project: https://cloud.google.com/bigquery/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.blogger/index.d.ts b/types/gapi.client.blogger/index.d.ts index 85240dfee5..77495efef0 100644 --- a/types/gapi.client.blogger/index.d.ts +++ b/types/gapi.client.blogger/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Blogger API v3 3.0 +// Type definitions for non-npm package Google Blogger API v3 3.0 // Project: https://developers.google.com/blogger/docs/3.0/getting_started // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.books/index.d.ts b/types/gapi.client.books/index.d.ts index e0ca0a63af..82a1bb1213 100644 --- a/types/gapi.client.books/index.d.ts +++ b/types/gapi.client.books/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Books API v1 1.0 +// Type definitions for non-npm package Google Books API v1 1.0 // Project: https://developers.google.com/books/docs/v1/getting_started // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.calendar/index.d.ts b/types/gapi.client.calendar/index.d.ts index 72196ee150..f704b2a839 100644 --- a/types/gapi.client.calendar/index.d.ts +++ b/types/gapi.client.calendar/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Calendar API v3 3.0 +// Type definitions for non-npm package Google Calendar API v3 3.0 // Project: https://developers.google.com/google-apps/calendar/firstapp // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.civicinfo/index.d.ts b/types/gapi.client.civicinfo/index.d.ts index efa9098f8e..054a99e417 100644 --- a/types/gapi.client.civicinfo/index.d.ts +++ b/types/gapi.client.civicinfo/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Civic Information API v2 2.0 +// Type definitions for non-npm package Google Google Civic Information API v2 2.0 // Project: https://developers.google.com/civic-information // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.classroom/index.d.ts b/types/gapi.client.classroom/index.d.ts index 68e2679cad..f65ea37218 100644 --- a/types/gapi.client.classroom/index.d.ts +++ b/types/gapi.client.classroom/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Classroom API v1 1.0 +// Type definitions for non-npm package Google Google Classroom API v1 1.0 // Project: https://developers.google.com/classroom/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.cloudbilling/index.d.ts b/types/gapi.client.cloudbilling/index.d.ts index cd09fa5e15..a37934d481 100644 --- a/types/gapi.client.cloudbilling/index.d.ts +++ b/types/gapi.client.cloudbilling/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Cloud Billing API v1 1.0 +// Type definitions for non-npm package Google Google Cloud Billing API v1 1.0 // Project: https://cloud.google.com/billing/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.cloudbuild/index.d.ts b/types/gapi.client.cloudbuild/index.d.ts index ca50422cfb..19936cd26b 100644 --- a/types/gapi.client.cloudbuild/index.d.ts +++ b/types/gapi.client.cloudbuild/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Cloud Container Builder API v1 1.0 +// Type definitions for non-npm package Google Google Cloud Container Builder API v1 1.0 // Project: https://cloud.google.com/container-builder/docs/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.clouddebugger/index.d.ts b/types/gapi.client.clouddebugger/index.d.ts index 0fdb5167ce..c8ed08f770 100644 --- a/types/gapi.client.clouddebugger/index.d.ts +++ b/types/gapi.client.clouddebugger/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Stackdriver Debugger API v2 2.0 +// Type definitions for non-npm package Google Stackdriver Debugger API v2 2.0 // Project: http://cloud.google.com/debugger // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.clouderrorreporting/index.d.ts b/types/gapi.client.clouderrorreporting/index.d.ts index a19854416f..b24bfd63e4 100644 --- a/types/gapi.client.clouderrorreporting/index.d.ts +++ b/types/gapi.client.clouderrorreporting/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Stackdriver Error Reporting API v1beta1 1.0 +// Type definitions for non-npm package Google Stackdriver Error Reporting API v1beta1 1.0 // Project: https://cloud.google.com/error-reporting/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.cloudfunctions/index.d.ts b/types/gapi.client.cloudfunctions/index.d.ts index f3cd5cc4a2..b1ba0001d8 100644 --- a/types/gapi.client.cloudfunctions/index.d.ts +++ b/types/gapi.client.cloudfunctions/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Cloud Functions API v1 1.0 +// Type definitions for non-npm package Google Google Cloud Functions API v1 1.0 // Project: https://cloud.google.com/functions // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.cloudiot/index.d.ts b/types/gapi.client.cloudiot/index.d.ts index eeb0647503..5e0d949464 100644 --- a/types/gapi.client.cloudiot/index.d.ts +++ b/types/gapi.client.cloudiot/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Cloud IoT API v1 1.0 +// Type definitions for non-npm package Google Google Cloud IoT API v1 1.0 // Project: https://cloud.google.com/iot // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.cloudkms/index.d.ts b/types/gapi.client.cloudkms/index.d.ts index 82f44805fd..2a68eef16d 100644 --- a/types/gapi.client.cloudkms/index.d.ts +++ b/types/gapi.client.cloudkms/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Cloud Key Management Service (KMS) API v1 1.0 +// Type definitions for non-npm package Google Google Cloud Key Management Service (KMS) API v1 1.0 // Project: https://cloud.google.com/kms/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.cloudmonitoring/index.d.ts b/types/gapi.client.cloudmonitoring/index.d.ts index 6febf1d4e8..a6387fcb5c 100644 --- a/types/gapi.client.cloudmonitoring/index.d.ts +++ b/types/gapi.client.cloudmonitoring/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Cloud Monitoring API v2beta2 2.0 +// Type definitions for non-npm package Google Cloud Monitoring API v2beta2 2.0 // Project: https://cloud.google.com/monitoring/v2beta2/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.cloudresourcemanager/index.d.ts b/types/gapi.client.cloudresourcemanager/index.d.ts index a2c8500ac6..46b7d6b600 100644 --- a/types/gapi.client.cloudresourcemanager/index.d.ts +++ b/types/gapi.client.cloudresourcemanager/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Cloud Resource Manager API v1 1.0 +// Type definitions for non-npm package Google Google Cloud Resource Manager API v1 1.0 // Project: https://cloud.google.com/resource-manager // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.cloudtasks/index.d.ts b/types/gapi.client.cloudtasks/index.d.ts index 3e1d3f3c08..9e7ecf006d 100644 --- a/types/gapi.client.cloudtasks/index.d.ts +++ b/types/gapi.client.cloudtasks/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Cloud Tasks API v2beta2 2.0 +// Type definitions for non-npm package Google Cloud Tasks API v2beta2 2.0 // Project: https://cloud.google.com/cloud-tasks/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.cloudtrace/index.d.ts b/types/gapi.client.cloudtrace/index.d.ts index ba868581d1..e4575983d8 100644 --- a/types/gapi.client.cloudtrace/index.d.ts +++ b/types/gapi.client.cloudtrace/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Stackdriver Trace API v2 2.0 +// Type definitions for non-npm package Google Stackdriver Trace API v2 2.0 // Project: https://cloud.google.com/trace // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.clouduseraccounts/index.d.ts b/types/gapi.client.clouduseraccounts/index.d.ts index 75e8f0d852..623689a7ed 100644 --- a/types/gapi.client.clouduseraccounts/index.d.ts +++ b/types/gapi.client.clouduseraccounts/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Cloud User Accounts API vm_alpha 0.0 +// Type definitions for non-npm package Google Cloud User Accounts API vm_alpha 0.0 // Project: https://cloud.google.com/compute/docs/access/user-accounts/api/latest/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.compute/index.d.ts b/types/gapi.client.compute/index.d.ts index fe53df316f..f19e0e9d10 100644 --- a/types/gapi.client.compute/index.d.ts +++ b/types/gapi.client.compute/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Compute Engine API v1 1.0 +// Type definitions for non-npm package Google Compute Engine API v1 1.0 // Project: https://developers.google.com/compute/docs/reference/latest/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.consumersurveys/index.d.ts b/types/gapi.client.consumersurveys/index.d.ts index 41531fce6d..b30c9ccd81 100644 --- a/types/gapi.client.consumersurveys/index.d.ts +++ b/types/gapi.client.consumersurveys/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Consumer Surveys API v2 2.0 +// Type definitions for non-npm package Google Consumer Surveys API v2 2.0 // Project: undefined // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.container/index.d.ts b/types/gapi.client.container/index.d.ts index 41fa31c25f..63a812d798 100644 --- a/types/gapi.client.container/index.d.ts +++ b/types/gapi.client.container/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Container Engine API v1 1.0 +// Type definitions for non-npm package Google Google Container Engine API v1 1.0 // Project: https://cloud.google.com/container-engine/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.content/index.d.ts b/types/gapi.client.content/index.d.ts index f3b3b51845..856bb8971e 100644 --- a/types/gapi.client.content/index.d.ts +++ b/types/gapi.client.content/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Content API for Shopping v2 2.0 +// Type definitions for non-npm package Google Content API for Shopping v2 2.0 // Project: https://developers.google.com/shopping-content // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.customsearch/index.d.ts b/types/gapi.client.customsearch/index.d.ts index 1722767845..5150210463 100644 --- a/types/gapi.client.customsearch/index.d.ts +++ b/types/gapi.client.customsearch/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google CustomSearch API v1 1.0 +// Type definitions for non-npm package Google CustomSearch API v1 1.0 // Project: https://developers.google.com/custom-search/v1/using_rest // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.dataflow/index.d.ts b/types/gapi.client.dataflow/index.d.ts index 6c04dad9ea..24233b98f4 100644 --- a/types/gapi.client.dataflow/index.d.ts +++ b/types/gapi.client.dataflow/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Dataflow API v1b3 1.0 +// Type definitions for non-npm package Google Google Dataflow API v1b3 1.0 // Project: https://cloud.google.com/dataflow // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.dataproc/index.d.ts b/types/gapi.client.dataproc/index.d.ts index cc9f6fcb8f..7482c05bad 100644 --- a/types/gapi.client.dataproc/index.d.ts +++ b/types/gapi.client.dataproc/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Cloud Dataproc API v1 1.0 +// Type definitions for non-npm package Google Google Cloud Dataproc API v1 1.0 // Project: https://cloud.google.com/dataproc/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.datastore/index.d.ts b/types/gapi.client.datastore/index.d.ts index 83c124ce52..daaa81498c 100644 --- a/types/gapi.client.datastore/index.d.ts +++ b/types/gapi.client.datastore/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Cloud Datastore API v1 1.0 +// Type definitions for non-npm package Google Google Cloud Datastore API v1 1.0 // Project: https://cloud.google.com/datastore/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.deploymentmanager/index.d.ts b/types/gapi.client.deploymentmanager/index.d.ts index 2528111b57..751f7d5e30 100644 --- a/types/gapi.client.deploymentmanager/index.d.ts +++ b/types/gapi.client.deploymentmanager/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Cloud Deployment Manager API v2 2.0 +// Type definitions for non-npm package Google Google Cloud Deployment Manager API v2 2.0 // Project: https://cloud.google.com/deployment-manager/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.dfareporting/index.d.ts b/types/gapi.client.dfareporting/index.d.ts index 8914fbb3e5..7f4943869f 100644 --- a/types/gapi.client.dfareporting/index.d.ts +++ b/types/gapi.client.dfareporting/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google DCM/DFA Reporting And Trafficking API v2.8 2.8 +// Type definitions for non-npm package Google DCM/DFA Reporting And Trafficking API v2.8 2.8 // Project: https://developers.google.com/doubleclick-advertisers/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.discovery/index.d.ts b/types/gapi.client.discovery/index.d.ts index 570928f44f..8c0ddb99d6 100644 --- a/types/gapi.client.discovery/index.d.ts +++ b/types/gapi.client.discovery/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google APIs Discovery Service v1 1.0 +// Type definitions for non-npm package Google APIs Discovery Service v1 1.0 // Project: https://developers.google.com/discovery/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.dlp/index.d.ts b/types/gapi.client.dlp/index.d.ts index 29839bac80..c0b2987e66 100644 --- a/types/gapi.client.dlp/index.d.ts +++ b/types/gapi.client.dlp/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google DLP API v2beta1 2.0 +// Type definitions for non-npm package Google DLP API v2beta1 2.0 // Project: https://cloud.google.com/dlp/docs/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.dns/index.d.ts b/types/gapi.client.dns/index.d.ts index c97f2c0240..2c23415082 100644 --- a/types/gapi.client.dns/index.d.ts +++ b/types/gapi.client.dns/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Cloud DNS API v1 1.0 +// Type definitions for non-npm package Google Google Cloud DNS API v1 1.0 // Project: https://developers.google.com/cloud-dns // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.doubleclickbidmanager/index.d.ts b/types/gapi.client.doubleclickbidmanager/index.d.ts index 13274ff247..92a905369e 100644 --- a/types/gapi.client.doubleclickbidmanager/index.d.ts +++ b/types/gapi.client.doubleclickbidmanager/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google DoubleClick Bid Manager API v1 1.0 +// Type definitions for non-npm package Google DoubleClick Bid Manager API v1 1.0 // Project: https://developers.google.com/bid-manager/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.doubleclicksearch/index.d.ts b/types/gapi.client.doubleclicksearch/index.d.ts index f1e0a69436..104f5caa76 100644 --- a/types/gapi.client.doubleclicksearch/index.d.ts +++ b/types/gapi.client.doubleclicksearch/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google DoubleClick Search API v2 2.0 +// Type definitions for non-npm package Google DoubleClick Search API v2 2.0 // Project: https://developers.google.com/doubleclick-search/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.drive/index.d.ts b/types/gapi.client.drive/index.d.ts index ca28f228e7..25b16f4230 100644 --- a/types/gapi.client.drive/index.d.ts +++ b/types/gapi.client.drive/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Drive API v3 3.0 +// Type definitions for non-npm package Google Drive API v3 3.0 // Project: https://developers.google.com/drive/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.firebasedynamiclinks/index.d.ts b/types/gapi.client.firebasedynamiclinks/index.d.ts index 618a8845a6..0147742a2f 100644 --- a/types/gapi.client.firebasedynamiclinks/index.d.ts +++ b/types/gapi.client.firebasedynamiclinks/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Firebase Dynamic Links API v1 1.0 +// Type definitions for non-npm package Google Firebase Dynamic Links API v1 1.0 // Project: https://firebase.google.com/docs/dynamic-links/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.firebaseremoteconfig/index.d.ts b/types/gapi.client.firebaseremoteconfig/index.d.ts index 22c96e59c8..d34b7b69b1 100644 --- a/types/gapi.client.firebaseremoteconfig/index.d.ts +++ b/types/gapi.client.firebaseremoteconfig/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Firebase Remote Config API v1 1.0 +// Type definitions for non-npm package Google Firebase Remote Config API v1 1.0 // Project: https://firebase.google.com/docs/remote-config/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.firebaserules/index.d.ts b/types/gapi.client.firebaserules/index.d.ts index fbe2fb4da7..9569944244 100644 --- a/types/gapi.client.firebaserules/index.d.ts +++ b/types/gapi.client.firebaserules/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Firebase Rules API v1 1.0 +// Type definitions for non-npm package Google Firebase Rules API v1 1.0 // Project: https://firebase.google.com/docs/storage/security // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.firestore/index.d.ts b/types/gapi.client.firestore/index.d.ts index 783434a8c7..f88eb9da7f 100644 --- a/types/gapi.client.firestore/index.d.ts +++ b/types/gapi.client.firestore/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Cloud Firestore API v1beta1 1.0 +// Type definitions for non-npm package Google Google Cloud Firestore API v1beta1 1.0 // Project: https://cloud.google.com/firestore // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.fitness/index.d.ts b/types/gapi.client.fitness/index.d.ts index a5b2f034d5..3f19e81a14 100644 --- a/types/gapi.client.fitness/index.d.ts +++ b/types/gapi.client.fitness/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Fitness v1 1.0 +// Type definitions for non-npm package Google Fitness v1 1.0 // Project: https://developers.google.com/fit/rest/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.fusiontables/index.d.ts b/types/gapi.client.fusiontables/index.d.ts index 95750c8f38..ceb70d4f1c 100644 --- a/types/gapi.client.fusiontables/index.d.ts +++ b/types/gapi.client.fusiontables/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Fusion Tables API v2 2.0 +// Type definitions for non-npm package Google Fusion Tables API v2 2.0 // Project: https://developers.google.com/fusiontables // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.games/index.d.ts b/types/gapi.client.games/index.d.ts index cd40fe4c43..7c82f11563 100644 --- a/types/gapi.client.games/index.d.ts +++ b/types/gapi.client.games/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Play Game Services API v1 1.0 +// Type definitions for non-npm package Google Google Play Game Services API v1 1.0 // Project: https://developers.google.com/games/services/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.gamesconfiguration/index.d.ts b/types/gapi.client.gamesconfiguration/index.d.ts index f36c73d73d..05db6054c6 100644 --- a/types/gapi.client.gamesconfiguration/index.d.ts +++ b/types/gapi.client.gamesconfiguration/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Play Game Services Publishing API v1configuration 1.0 +// Type definitions for non-npm package Google Google Play Game Services Publishing API v1configuration 1.0 // Project: https://developers.google.com/games/services // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.gamesmanagement/index.d.ts b/types/gapi.client.gamesmanagement/index.d.ts index 48ea1c6c14..2610b27ea5 100644 --- a/types/gapi.client.gamesmanagement/index.d.ts +++ b/types/gapi.client.gamesmanagement/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Play Game Services Management API v1management 1.0 +// Type definitions for non-npm package Google Google Play Game Services Management API v1management 1.0 // Project: https://developers.google.com/games/services // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.genomics/index.d.ts b/types/gapi.client.genomics/index.d.ts index 6ea50827b4..b5eb695133 100644 --- a/types/gapi.client.genomics/index.d.ts +++ b/types/gapi.client.genomics/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Genomics API v1 1.0 +// Type definitions for non-npm package Google Genomics API v1 1.0 // Project: https://cloud.google.com/genomics // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.gmail/index.d.ts b/types/gapi.client.gmail/index.d.ts index 68fb9e2eb0..46a793a2cb 100644 --- a/types/gapi.client.gmail/index.d.ts +++ b/types/gapi.client.gmail/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Gmail API v1 1.0 +// Type definitions for non-npm package Google Gmail API v1 1.0 // Project: https://developers.google.com/gmail/api/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.groupsmigration/index.d.ts b/types/gapi.client.groupsmigration/index.d.ts index 19204dc725..2f30887831 100644 --- a/types/gapi.client.groupsmigration/index.d.ts +++ b/types/gapi.client.groupsmigration/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Groups Migration API v1 1.0 +// Type definitions for non-npm package Google Groups Migration API v1 1.0 // Project: https://developers.google.com/google-apps/groups-migration/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.groupssettings/index.d.ts b/types/gapi.client.groupssettings/index.d.ts index 763e19abcc..534aa88357 100644 --- a/types/gapi.client.groupssettings/index.d.ts +++ b/types/gapi.client.groupssettings/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Groups Settings API v1 1.0 +// Type definitions for non-npm package Google Groups Settings API v1 1.0 // Project: https://developers.google.com/google-apps/groups-settings/get_started // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.iam/index.d.ts b/types/gapi.client.iam/index.d.ts index ccbb4a1fde..f4b25d93e0 100644 --- a/types/gapi.client.iam/index.d.ts +++ b/types/gapi.client.iam/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Identity and Access Management (IAM) API v1 1.0 +// Type definitions for non-npm package Google Google Identity and Access Management (IAM) API v1 1.0 // Project: https://cloud.google.com/iam/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.identitytoolkit/index.d.ts b/types/gapi.client.identitytoolkit/index.d.ts index 7b5a219f2b..0537a31a4f 100644 --- a/types/gapi.client.identitytoolkit/index.d.ts +++ b/types/gapi.client.identitytoolkit/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Identity Toolkit API v3 3.0 +// Type definitions for non-npm package Google Google Identity Toolkit API v3 3.0 // Project: https://developers.google.com/identity-toolkit/v3/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.kgsearch/index.d.ts b/types/gapi.client.kgsearch/index.d.ts index 44e6c53d67..e4d1e4bdd4 100644 --- a/types/gapi.client.kgsearch/index.d.ts +++ b/types/gapi.client.kgsearch/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Knowledge Graph Search API v1 1.0 +// Type definitions for non-npm package Google Knowledge Graph Search API v1 1.0 // Project: https://developers.google.com/knowledge-graph/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.language/index.d.ts b/types/gapi.client.language/index.d.ts index 72a44ecd28..822a29e13b 100644 --- a/types/gapi.client.language/index.d.ts +++ b/types/gapi.client.language/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Cloud Natural Language API v1 1.0 +// Type definitions for non-npm package Google Google Cloud Natural Language API v1 1.0 // Project: https://cloud.google.com/natural-language/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.licensing/index.d.ts b/types/gapi.client.licensing/index.d.ts index 06cd0946d0..d0f383e1c5 100644 --- a/types/gapi.client.licensing/index.d.ts +++ b/types/gapi.client.licensing/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Enterprise License Manager API v1 1.0 +// Type definitions for non-npm package Google Enterprise License Manager API v1 1.0 // Project: https://developers.google.com/google-apps/licensing/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.logging/index.d.ts b/types/gapi.client.logging/index.d.ts index 057cc13926..9de3247cba 100644 --- a/types/gapi.client.logging/index.d.ts +++ b/types/gapi.client.logging/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Stackdriver Logging API v2 2.0 +// Type definitions for non-npm package Google Stackdriver Logging API v2 2.0 // Project: https://cloud.google.com/logging/docs/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.manufacturers/index.d.ts b/types/gapi.client.manufacturers/index.d.ts index db2738ec35..ffb46622a3 100644 --- a/types/gapi.client.manufacturers/index.d.ts +++ b/types/gapi.client.manufacturers/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Manufacturer Center API v1 1.0 +// Type definitions for non-npm package Google Manufacturer Center API v1 1.0 // Project: https://developers.google.com/manufacturers/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.mirror/index.d.ts b/types/gapi.client.mirror/index.d.ts index 4ff633511b..7b9e9fd2e7 100644 --- a/types/gapi.client.mirror/index.d.ts +++ b/types/gapi.client.mirror/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Mirror API v1 1.0 +// Type definitions for non-npm package Google Google Mirror API v1 1.0 // Project: https://developers.google.com/glass // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.ml/index.d.ts b/types/gapi.client.ml/index.d.ts index 1801e3c6e2..2fe9e5aab2 100644 --- a/types/gapi.client.ml/index.d.ts +++ b/types/gapi.client.ml/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Cloud Machine Learning Engine v1 1.0 +// Type definitions for non-npm package Google Google Cloud Machine Learning Engine v1 1.0 // Project: https://cloud.google.com/ml/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.monitoring/index.d.ts b/types/gapi.client.monitoring/index.d.ts index 7331defa60..db781325d5 100644 --- a/types/gapi.client.monitoring/index.d.ts +++ b/types/gapi.client.monitoring/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Stackdriver Monitoring API v3 3.0 +// Type definitions for non-npm package Google Stackdriver Monitoring API v3 3.0 // Project: https://cloud.google.com/monitoring/api/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.oauth2/index.d.ts b/types/gapi.client.oauth2/index.d.ts index 50d11d3574..94273e5104 100644 --- a/types/gapi.client.oauth2/index.d.ts +++ b/types/gapi.client.oauth2/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google OAuth2 API v2 2.0 +// Type definitions for non-npm package Google Google OAuth2 API v2 2.0 // Project: https://developers.google.com/accounts/docs/OAuth2 // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.oslogin/index.d.ts b/types/gapi.client.oslogin/index.d.ts index fd570c4703..d6487d3005 100644 --- a/types/gapi.client.oslogin/index.d.ts +++ b/types/gapi.client.oslogin/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Cloud OS Login API v1alpha 1.0 +// Type definitions for non-npm package Google Google Cloud OS Login API v1alpha 1.0 // Project: https://cloud.google.com/compute/docs/oslogin/rest/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.pagespeedonline/index.d.ts b/types/gapi.client.pagespeedonline/index.d.ts index 510ddbc7c4..3f5ab335bd 100644 --- a/types/gapi.client.pagespeedonline/index.d.ts +++ b/types/gapi.client.pagespeedonline/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google PageSpeed Insights API v2 2.0 +// Type definitions for non-npm package Google PageSpeed Insights API v2 2.0 // Project: https://developers.google.com/speed/docs/insights/v2/getting-started // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.partners/index.d.ts b/types/gapi.client.partners/index.d.ts index fd1ef4a8b1..ed098d081b 100644 --- a/types/gapi.client.partners/index.d.ts +++ b/types/gapi.client.partners/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Partners API v2 2.0 +// Type definitions for non-npm package Google Google Partners API v2 2.0 // Project: https://developers.google.com/partners/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.people/index.d.ts b/types/gapi.client.people/index.d.ts index 77213e6306..5b6168ac47 100644 --- a/types/gapi.client.people/index.d.ts +++ b/types/gapi.client.people/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google People API v1 1.0 +// Type definitions for non-npm package Google Google People API v1 1.0 // Project: https://developers.google.com/people/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.playcustomapp/index.d.ts b/types/gapi.client.playcustomapp/index.d.ts index c7abd49d01..fb7b652148 100644 --- a/types/gapi.client.playcustomapp/index.d.ts +++ b/types/gapi.client.playcustomapp/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Play Custom App Publishing API v1 1.0 +// Type definitions for non-npm package Google Google Play Custom App Publishing API v1 1.0 // Project: https://developers.google.com/android/work/play/custom-app-api // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.playmoviespartner/index.d.ts b/types/gapi.client.playmoviespartner/index.d.ts index 99f4f2b275..cc1bdee1b6 100644 --- a/types/gapi.client.playmoviespartner/index.d.ts +++ b/types/gapi.client.playmoviespartner/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Play Movies Partner API v1 1.0 +// Type definitions for non-npm package Google Google Play Movies Partner API v1 1.0 // Project: https://developers.google.com/playmoviespartner/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.plus/index.d.ts b/types/gapi.client.plus/index.d.ts index 71fd6fd938..7b5f7c91b9 100644 --- a/types/gapi.client.plus/index.d.ts +++ b/types/gapi.client.plus/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google+ API v1 1.0 +// Type definitions for non-npm package Google Google+ API v1 1.0 // Project: https://developers.google.com/+/api/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.plusdomains/index.d.ts b/types/gapi.client.plusdomains/index.d.ts index f07cfd7483..c8f2023e97 100644 --- a/types/gapi.client.plusdomains/index.d.ts +++ b/types/gapi.client.plusdomains/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google+ Domains API v1 1.0 +// Type definitions for non-npm package Google Google+ Domains API v1 1.0 // Project: https://developers.google.com/+/domains/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.prediction/index.d.ts b/types/gapi.client.prediction/index.d.ts index 0c0a8af350..5efc657bd4 100644 --- a/types/gapi.client.prediction/index.d.ts +++ b/types/gapi.client.prediction/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Prediction API v1.6 1.6 +// Type definitions for non-npm package Google Prediction API v1.6 1.6 // Project: https://developers.google.com/prediction/docs/developer-guide // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.proximitybeacon/index.d.ts b/types/gapi.client.proximitybeacon/index.d.ts index af2db3bc79..f200372637 100644 --- a/types/gapi.client.proximitybeacon/index.d.ts +++ b/types/gapi.client.proximitybeacon/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Proximity Beacon API v1beta1 1.0 +// Type definitions for non-npm package Google Google Proximity Beacon API v1beta1 1.0 // Project: https://developers.google.com/beacons/proximity/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.pubsub/index.d.ts b/types/gapi.client.pubsub/index.d.ts index fea2d4e8c1..b97f6f9193 100644 --- a/types/gapi.client.pubsub/index.d.ts +++ b/types/gapi.client.pubsub/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Cloud Pub/Sub API v1 1.0 +// Type definitions for non-npm package Google Google Cloud Pub/Sub API v1 1.0 // Project: https://cloud.google.com/pubsub/docs // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.qpxexpress/index.d.ts b/types/gapi.client.qpxexpress/index.d.ts index 2ebaaa35b2..52ffb9f673 100644 --- a/types/gapi.client.qpxexpress/index.d.ts +++ b/types/gapi.client.qpxexpress/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google QPX Express API v1 1.0 +// Type definitions for non-npm package Google QPX Express API v1 1.0 // Project: http://developers.google.com/qpx-express // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.reseller/index.d.ts b/types/gapi.client.reseller/index.d.ts index dd09c51e7e..e55e0573f2 100644 --- a/types/gapi.client.reseller/index.d.ts +++ b/types/gapi.client.reseller/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Enterprise Apps Reseller API v1 1.0 +// Type definitions for non-npm package Google Enterprise Apps Reseller API v1 1.0 // Project: https://developers.google.com/google-apps/reseller/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.resourceviews/index.d.ts b/types/gapi.client.resourceviews/index.d.ts index 35960c3d95..2a594695e3 100644 --- a/types/gapi.client.resourceviews/index.d.ts +++ b/types/gapi.client.resourceviews/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Compute Engine Instance Groups API v1beta2 1.0 +// Type definitions for non-npm package Google Google Compute Engine Instance Groups API v1beta2 1.0 // Project: https://developers.google.com/compute/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.runtimeconfig/index.d.ts b/types/gapi.client.runtimeconfig/index.d.ts index 9f2121e39c..f00aa85d6a 100644 --- a/types/gapi.client.runtimeconfig/index.d.ts +++ b/types/gapi.client.runtimeconfig/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Cloud Runtime Configuration API v1 1.0 +// Type definitions for non-npm package Google Google Cloud Runtime Configuration API v1 1.0 // Project: https://cloud.google.com/deployment-manager/runtime-configurator/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.safebrowsing/index.d.ts b/types/gapi.client.safebrowsing/index.d.ts index c388a0327f..489563577c 100644 --- a/types/gapi.client.safebrowsing/index.d.ts +++ b/types/gapi.client.safebrowsing/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Safe Browsing API v4 4.0 +// Type definitions for non-npm package Google Google Safe Browsing API v4 4.0 // Project: https://developers.google.com/safe-browsing/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.script/index.d.ts b/types/gapi.client.script/index.d.ts index 2679e97960..3512368f7f 100644 --- a/types/gapi.client.script/index.d.ts +++ b/types/gapi.client.script/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Apps Script Execution API v1 1.0 +// Type definitions for non-npm package Google Google Apps Script Execution API v1 1.0 // Project: https://developers.google.com/apps-script/execution/rest/v1/scripts/run // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.searchconsole/index.d.ts b/types/gapi.client.searchconsole/index.d.ts index 47fb28f5b1..974cd6ce59 100644 --- a/types/gapi.client.searchconsole/index.d.ts +++ b/types/gapi.client.searchconsole/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Search Console URL Testing Tools API v1 1.0 +// Type definitions for non-npm package Google Google Search Console URL Testing Tools API v1 1.0 // Project: https://developers.google.com/webmaster-tools/search-console-api/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.servicecontrol/index.d.ts b/types/gapi.client.servicecontrol/index.d.ts index f5459a386e..d66599e7dc 100644 --- a/types/gapi.client.servicecontrol/index.d.ts +++ b/types/gapi.client.servicecontrol/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Service Control API v1 1.0 +// Type definitions for non-npm package Google Google Service Control API v1 1.0 // Project: https://cloud.google.com/service-control/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.servicemanagement/index.d.ts b/types/gapi.client.servicemanagement/index.d.ts index 005fbc9fcc..87b9a142e6 100644 --- a/types/gapi.client.servicemanagement/index.d.ts +++ b/types/gapi.client.servicemanagement/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Service Management API v1 1.0 +// Type definitions for non-npm package Google Google Service Management API v1 1.0 // Project: https://cloud.google.com/service-management/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.serviceuser/index.d.ts b/types/gapi.client.serviceuser/index.d.ts index f66351e851..0b4a69173f 100644 --- a/types/gapi.client.serviceuser/index.d.ts +++ b/types/gapi.client.serviceuser/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Service User API v1 1.0 +// Type definitions for non-npm package Google Google Service User API v1 1.0 // Project: https://cloud.google.com/service-management/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.sheets/index.d.ts b/types/gapi.client.sheets/index.d.ts index 1f9752d361..46aaa2a246 100644 --- a/types/gapi.client.sheets/index.d.ts +++ b/types/gapi.client.sheets/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Sheets API v4 4.0 +// Type definitions for non-npm package Google Google Sheets API v4 4.0 // Project: https://developers.google.com/sheets/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.siteverification/index.d.ts b/types/gapi.client.siteverification/index.d.ts index e79b8a112c..eb51a656c7 100644 --- a/types/gapi.client.siteverification/index.d.ts +++ b/types/gapi.client.siteverification/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Site Verification API v1 1.0 +// Type definitions for non-npm package Google Google Site Verification API v1 1.0 // Project: https://developers.google.com/site-verification/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.slides/index.d.ts b/types/gapi.client.slides/index.d.ts index 64e8527171..c435b2b279 100644 --- a/types/gapi.client.slides/index.d.ts +++ b/types/gapi.client.slides/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Slides API v1 1.0 +// Type definitions for non-npm package Google Google Slides API v1 1.0 // Project: https://developers.google.com/slides/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.sourcerepo/index.d.ts b/types/gapi.client.sourcerepo/index.d.ts index f8f1f36434..f16ae012b5 100644 --- a/types/gapi.client.sourcerepo/index.d.ts +++ b/types/gapi.client.sourcerepo/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Cloud Source Repositories API v1 1.0 +// Type definitions for non-npm package Google Cloud Source Repositories API v1 1.0 // Project: https://cloud.google.com/source-repositories/docs/apis // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.spanner/index.d.ts b/types/gapi.client.spanner/index.d.ts index bc8fef6963..477e6dd58d 100644 --- a/types/gapi.client.spanner/index.d.ts +++ b/types/gapi.client.spanner/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Cloud Spanner API v1 1.0 +// Type definitions for non-npm package Google Cloud Spanner API v1 1.0 // Project: https://cloud.google.com/spanner/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.spectrum/index.d.ts b/types/gapi.client.spectrum/index.d.ts index 3f829d401d..765978e2a1 100644 --- a/types/gapi.client.spectrum/index.d.ts +++ b/types/gapi.client.spectrum/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Spectrum Database API v1explorer 1.0 +// Type definitions for non-npm package Google Google Spectrum Database API v1explorer 1.0 // Project: http://developers.google.com/spectrum // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.speech/index.d.ts b/types/gapi.client.speech/index.d.ts index 18709d4433..0acc33f084 100644 --- a/types/gapi.client.speech/index.d.ts +++ b/types/gapi.client.speech/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Cloud Speech API v1 1.0 +// Type definitions for non-npm package Google Google Cloud Speech API v1 1.0 // Project: https://cloud.google.com/speech/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.sqladmin/index.d.ts b/types/gapi.client.sqladmin/index.d.ts index de6ffd8409..a4b50215d1 100644 --- a/types/gapi.client.sqladmin/index.d.ts +++ b/types/gapi.client.sqladmin/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Cloud SQL Administration API v1beta4 1.0 +// Type definitions for non-npm package Google Cloud SQL Administration API v1beta4 1.0 // Project: https://cloud.google.com/sql/docs/reference/latest // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.storage/index.d.ts b/types/gapi.client.storage/index.d.ts index 964e20cb9f..822e1a6be1 100644 --- a/types/gapi.client.storage/index.d.ts +++ b/types/gapi.client.storage/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Cloud Storage JSON API v1 1.0 +// Type definitions for non-npm package Google Cloud Storage JSON API v1 1.0 // Project: https://developers.google.com/storage/docs/json_api/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.storagetransfer/index.d.ts b/types/gapi.client.storagetransfer/index.d.ts index 41a5e9cdef..91630423a9 100644 --- a/types/gapi.client.storagetransfer/index.d.ts +++ b/types/gapi.client.storagetransfer/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Storage Transfer API v1 1.0 +// Type definitions for non-npm package Google Google Storage Transfer API v1 1.0 // Project: https://cloud.google.com/storage/transfer // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.streetviewpublish/index.d.ts b/types/gapi.client.streetviewpublish/index.d.ts index 50a363b410..48ea0fc8b6 100644 --- a/types/gapi.client.streetviewpublish/index.d.ts +++ b/types/gapi.client.streetviewpublish/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Street View Publish API v1 1.0 +// Type definitions for non-npm package Google Street View Publish API v1 1.0 // Project: https://developers.google.com/streetview/publish/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.surveys/index.d.ts b/types/gapi.client.surveys/index.d.ts index f6613cff4c..e1499c1c60 100644 --- a/types/gapi.client.surveys/index.d.ts +++ b/types/gapi.client.surveys/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Surveys API v2 2.0 +// Type definitions for non-npm package Google Surveys API v2 2.0 // Project: undefined // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.tagmanager/index.d.ts b/types/gapi.client.tagmanager/index.d.ts index d5ed4615e3..9430b2c1d4 100644 --- a/types/gapi.client.tagmanager/index.d.ts +++ b/types/gapi.client.tagmanager/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Tag Manager API v2 2.0 +// Type definitions for non-npm package Google Tag Manager API v2 2.0 // Project: https://developers.google.com/tag-manager/api/v2/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.taskqueue/index.d.ts b/types/gapi.client.taskqueue/index.d.ts index 62fb53de93..97f4c6272c 100644 --- a/types/gapi.client.taskqueue/index.d.ts +++ b/types/gapi.client.taskqueue/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google TaskQueue API v1beta2 1.0 +// Type definitions for non-npm package Google TaskQueue API v1beta2 1.0 // Project: https://developers.google.com/appengine/docs/python/taskqueue/rest // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.tasks/index.d.ts b/types/gapi.client.tasks/index.d.ts index 6de4e2b078..6fbb7c1d23 100644 --- a/types/gapi.client.tasks/index.d.ts +++ b/types/gapi.client.tasks/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Tasks API v1 1.0 +// Type definitions for non-npm package Google Tasks API v1 1.0 // Project: https://developers.google.com/google-apps/tasks/firstapp // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.testing/index.d.ts b/types/gapi.client.testing/index.d.ts index 1b8460c3fc..07163219cd 100644 --- a/types/gapi.client.testing/index.d.ts +++ b/types/gapi.client.testing/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Cloud Testing API v1 1.0 +// Type definitions for non-npm package Google Google Cloud Testing API v1 1.0 // Project: https://developers.google.com/cloud-test-lab/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.toolresults/index.d.ts b/types/gapi.client.toolresults/index.d.ts index c19db3d15e..c026012e07 100644 --- a/types/gapi.client.toolresults/index.d.ts +++ b/types/gapi.client.toolresults/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Cloud Tool Results API v1beta3 1.0 +// Type definitions for non-npm package Google Cloud Tool Results API v1beta3 1.0 // Project: https://firebase.google.com/docs/test-lab/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.translate/index.d.ts b/types/gapi.client.translate/index.d.ts index 931e5b58d4..c56576e4a6 100644 --- a/types/gapi.client.translate/index.d.ts +++ b/types/gapi.client.translate/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Cloud Translation API v2 2.0 +// Type definitions for non-npm package Google Google Cloud Translation API v2 2.0 // Project: https://code.google.com/apis/language/translate/v2/getting_started.html // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.urlshortener/index.d.ts b/types/gapi.client.urlshortener/index.d.ts index 49a0974342..132d0ecb7f 100644 --- a/types/gapi.client.urlshortener/index.d.ts +++ b/types/gapi.client.urlshortener/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google URL Shortener API v1 1.0 +// Type definitions for non-npm package Google URL Shortener API v1 1.0 // Project: https://developers.google.com/url-shortener/v1/getting_started // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.vault/index.d.ts b/types/gapi.client.vault/index.d.ts index 2b5f6757be..65af28c5fb 100644 --- a/types/gapi.client.vault/index.d.ts +++ b/types/gapi.client.vault/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Vault API v1 1.0 +// Type definitions for non-npm package Google Google Vault API v1 1.0 // Project: https://developers.google.com/vault // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.videointelligence/index.d.ts b/types/gapi.client.videointelligence/index.d.ts index 27d2802c5f..043508960a 100644 --- a/types/gapi.client.videointelligence/index.d.ts +++ b/types/gapi.client.videointelligence/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Cloud Video Intelligence API v1beta1 1.0 +// Type definitions for non-npm package Google Cloud Video Intelligence API v1beta1 1.0 // Project: https://cloud.google.com/video-intelligence/docs/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.vision/index.d.ts b/types/gapi.client.vision/index.d.ts index 4ebde6d4fd..76a5fdba71 100644 --- a/types/gapi.client.vision/index.d.ts +++ b/types/gapi.client.vision/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Cloud Vision API v1 1.0 +// Type definitions for non-npm package Google Google Cloud Vision API v1 1.0 // Project: https://cloud.google.com/vision/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.webfonts/index.d.ts b/types/gapi.client.webfonts/index.d.ts index cc8404580b..1cecd6afaf 100644 --- a/types/gapi.client.webfonts/index.d.ts +++ b/types/gapi.client.webfonts/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Google Fonts Developer API v1 1.0 +// Type definitions for non-npm package Google Google Fonts Developer API v1 1.0 // Project: https://developers.google.com/fonts/docs/developer_api // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.webmasters/index.d.ts b/types/gapi.client.webmasters/index.d.ts index 50ec1f4bd8..5c8ae99db7 100644 --- a/types/gapi.client.webmasters/index.d.ts +++ b/types/gapi.client.webmasters/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Search Console API v3 3.0 +// Type definitions for non-npm package Google Search Console API v3 3.0 // Project: https://developers.google.com/webmaster-tools/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.youtube/index.d.ts b/types/gapi.client.youtube/index.d.ts index 23f46a46f6..b39975c3d9 100644 --- a/types/gapi.client.youtube/index.d.ts +++ b/types/gapi.client.youtube/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google YouTube Data API v3 3.0 +// Type definitions for non-npm package Google YouTube Data API v3 3.0 // Project: https://developers.google.com/youtube/v3 // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.youtubeanalytics/index.d.ts b/types/gapi.client.youtubeanalytics/index.d.ts index 4637df148d..dc41fd91b4 100644 --- a/types/gapi.client.youtubeanalytics/index.d.ts +++ b/types/gapi.client.youtubeanalytics/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google YouTube Analytics API v1 1.0 +// Type definitions for non-npm package Google YouTube Analytics API v1 1.0 // Project: http://developers.google.com/youtube/analytics/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client.youtubereporting/index.d.ts b/types/gapi.client.youtubereporting/index.d.ts index 976d7c7fc5..9a11b17d03 100644 --- a/types/gapi.client.youtubereporting/index.d.ts +++ b/types/gapi.client.youtubereporting/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google YouTube Reporting API v1 1.0 +// Type definitions for non-npm package Google YouTube Reporting API v1 1.0 // Project: https://developers.google.com/youtube/reporting/v1/reports/ // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gapi.client/index.d.ts b/types/gapi.client/index.d.ts index f7b7b78a4a..ec8346c015 100644 --- a/types/gapi.client/index.d.ts +++ b/types/gapi.client/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google API client 1.0 +// Type definitions for non-npm package Google API client 1.0 // Project: https://developers.google.com // Definitions by: Bolisov Alexey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/geodesy/index.d.ts b/types/geodesy/index.d.ts index 15a53796e0..24e1878f98 100644 --- a/types/geodesy/index.d.ts +++ b/types/geodesy/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for geodesy 1.2 -// Project: https://github.com/chrisveness/geodesy +// Project: https://github.com/chrisveness/geodesy, http://www.movable-type.co.uk/scripts/latlong.html // Definitions by: Denis Carriere // Gilbert Handy // Harry Nicholls diff --git a/types/geojson/index.d.ts b/types/geojson/index.d.ts index db8074e242..90beca01c1 100644 --- a/types/geojson/index.d.ts +++ b/types/geojson/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for geojson 7946.0 -// Project: https://geojson.org/ +// Project: https://geojson.org/, https://github.com/caseycesari/geojson.js // Definitions by: Jacob Bruun // Arne Schubert // Jeff Jacobson diff --git a/types/geopattern/index.d.ts b/types/geopattern/index.d.ts index 5756fbda93..d718f055b5 100644 --- a/types/geopattern/index.d.ts +++ b/types/geopattern/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for GeoPattern 1.2 -// Project: https://github.com/btmills/geopattern +// Project: https://github.com/btmills/geopattern, http://btmills.github.io/geopattern/geopattern.html // Definitions by: Gaelan // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/gestalt/index.d.ts b/types/gestalt/index.d.ts index dd9ff81e41..77c88b6d35 100644 --- a/types/gestalt/index.d.ts +++ b/types/gestalt/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for gestalt 0.75 -// Project: https://github.com/pinterest/gestalt +// Project: https://github.com/pinterest/gestalt, https://pinterest.github.io/gestalt // Definitions by: Nicolás Serrano Arévalo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -786,7 +786,7 @@ export interface ToastProps { color?: "darkGray" | "orange"; icon?: "arrow-circle-forward"; text?: string | ReadonlyArray; - thumbnail?: React.ReactElement; + thumbnail?: React.ReactElement; } /* diff --git a/types/getopts/index.d.ts b/types/getopts/index.d.ts index a4c14bd75c..11e1c8e49c 100644 --- a/types/getopts/index.d.ts +++ b/types/getopts/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for getopts 2.0 -// Project: https://github.com/getopts/getopts#readme +// Project: https://github.com/jorgebucaran/getopts // Definitions by: Aleh Zasypkin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/giphy-api/giphy-api-tests.ts b/types/giphy-api/giphy-api-tests.ts new file mode 100644 index 0000000000..c5fc86870e --- /dev/null +++ b/types/giphy-api/giphy-api-tests.ts @@ -0,0 +1,36 @@ +import giphyApi = require('giphy-api'); + +const cb = (err: Error, res: any) => {}; + +const apiOptions: giphyApi.GiphyOptions = { https: true }; +giphyApi('API KEY HERE'); +giphyApi(apiOptions); +giphyApi({ timeout: 60 }); +giphyApi({ apiKey: 'API KEY' }); + +const searchOptions: giphyApi.SearchOptions = { q: 'pokemon', rating: 'g' }; +const giphy: giphyApi.Giphy = giphyApi(); +giphy.search('pokemon', cb); +giphy.search('pokemon').then(res => {}); +giphy.search(searchOptions, cb); +giphy.search({ q: 'pokemon', rating: 'g' }).then(res => {}); + +giphy.id('feqkVgjJpYtjy', cb); +giphy.id('feqkVgjJpYtjy').then(res => {}); +giphy.id(['feqkVgjJpYtjy'], cb); +giphy.id(['feqkVgjJpYtjy']).then(res => {}); + +giphy.translate('superman', cb); +giphy.translate('superman').then(res => {}); +giphy.translate({ s: 'superman', rating: 'g', fmt: 'html' }, cb); +giphy.translate({ s: 'superman', rating: 'g' }).then(res => {}); + +giphy.random('superman', cb); +giphy.random('superman').then(res => {}); +giphy.random({ tag: 'superman', rating: 'g' }, cb); +giphy.random({ tag: 'superman', rating: 'g' }).then(res => {}); + +giphy.trending(cb); +giphy.trending().then(res => {}); +giphy.trending({ limit: 2, rating: 'g' }); +giphy.trending({ limit: 2, rating: 'g' }).then(res => {}); diff --git a/types/giphy-api/index.d.ts b/types/giphy-api/index.d.ts new file mode 100644 index 0000000000..d121eff979 --- /dev/null +++ b/types/giphy-api/index.d.ts @@ -0,0 +1,179 @@ +// Type definitions for giphy-api 2.0 +// Project: https://github.com/austinkelleher/giphy-api +// Definitions by: Christian Rackerseder +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.8 + +type Rating = "y" | "g" | "pg" | "pg-13" | "r"; +type Format = "html" | "json"; + +interface BaseOptions { + rating: Rating; + fmt?: Format; +} + +interface TranslateOptions extends BaseOptions { + s: string; +} + +interface RandomOptions extends BaseOptions { + tag: string; +} + +interface TrendingOptions extends BaseOptions { + limit?: number; +} + +interface BaseImage { + url: string; + width: string; + height: string; +} + +type Callback = (err: Error, res: giphyApi.Result) => void; + +declare function giphyApi(apiKeyOrOptions?: string | giphyApi.GiphyOptions): giphyApi.Giphy; + +declare namespace giphyApi { + interface GiphyOptions { + https?: boolean; + timeout?: number; + apiKey?: string; + } + + interface SearchOptions extends BaseOptions { + q: string; + limit?: number; + offset?: number; + } + + interface Giphy { + search(queryOrOptions: string | SearchOptions, cb: Callback): void; + search(queryOrOptions: string | SearchOptions): Promise; + id(ids: string | string[], cb: Callback): void; + id(ids: string | string[]): Promise; + translate(termOrOptions: string | TranslateOptions, cb: Callback): void; + translate(termOrOptions: string | TranslateOptions): Promise; + random(tagOrOptions: string | RandomOptions, cb: Callback): void; + random(tagOrOptions: string | RandomOptions): Promise; + trending(options: TrendingOptions, cb: Callback): void; + trending(cb: Callback): void; + trending(options?: TrendingOptions): Promise; + } + + interface Result { + data: [ + { + type: string; + id: string; + slug: string; + url: string; + bitly_url: string; + embed_url: string; + username: string; + source: string; + rating: Rating; + content_url: string; + user?: { + avatar_url: string; + banner_url: string; + profile_url: string; + username: string; + display_name: string; + twitter: string; + }, + source_tld: string; + source_post_url: string; + update_datetime: string; + create_datetime: string; + import_datetime: string; + trending_datetime: string; + title: string; + images: { + fixed_height: BaseImage & { + size: string; + mp4: string; + mp4_size: string; + webp: string; + webp_size: string; + }; + fixed_height_still: BaseImage; + fixed_height_downsampled: BaseImage & { + size: string; + webp: string; + webp_size: string; + }; + fixed_width: BaseImage & { + size: string; + mp4: string; + mp4_size: string; + webp: string; + webp_size: string; + }; + original_still: BaseImage; + fixed_width_still: BaseImage; + fixed_width_downsampled: BaseImage & { + size: string; + webp: string; + webp_size: string; + }; + fixed_height_small: BaseImage & { + size: string; + mp4: string; + mp4_size: string; + webp: string; + webp_size: string; + }; + fixed_height_small_still: BaseImage; + fixed_width_small: BaseImage & { + size: string; + mp4: string; + mp4_size: string; + webp: string; + webp_size: string; + }; + fixed_width_small_still: BaseImage; + downsized: BaseImage & { + size: string; + }; + downsized_still: BaseImage; + downsized_large: BaseImage & { + size: string; + }; + downsized_medium: BaseImage & { + size: string; + }; + downsized_small: BaseImage & { + size: string; + }; + original: BaseImage & { + size: string; + frames: string; + mp4: string; + mp4_size: string; + webp: string; + webp_size: string; + }; + looping: { mp4: string; }; + preview: { + width: string; + height: string; + mp4: string; + mp4_size: string; + }; + preview_gif: BaseImage & { + size: string; + }; + }; + } + ]; + pagination: { total_count: number; count: number; offset: number }; + meta: { + status: number; + msg: string; + response_id: string; + }; + } +} + +export = giphyApi; diff --git a/types/giphy-api/tsconfig.json b/types/giphy-api/tsconfig.json new file mode 100644 index 0000000000..e8d707c5fb --- /dev/null +++ b/types/giphy-api/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", + "giphy-api-tests.ts" + ] +} diff --git a/types/giphy-api/tslint.json b/types/giphy-api/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/giphy-api/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/giraffe/index.d.ts b/types/giraffe/index.d.ts index abce777c20..2f0223321c 100644 --- a/types/giraffe/index.d.ts +++ b/types/giraffe/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for Giraffe // Project: https://github.com/barc/backbone.giraffe // Definitions by: Matt McCray +// Julian Gonggrijp // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -145,18 +146,12 @@ declare namespace Giraffe { namespace Contrib { - class Controller implements GiraffeObject, Backbone.Events { - on(eventName: string, callback?: (...args: any[]) => void, context?: any); - on(eventMap: Backbone.EventsHash); + class Controller extends Backbone.EventsMixin implements GiraffeObject, Backbone.Events { + /** + * Faulty overgeneralization of Backbone.Events.on, for historical + * reasons. + */ on(eventName: any, callback?: any, context?: any) - off(eventName?: string, callback?: (...args: any[]) => void, context?: any) - trigger(eventName: string, ...args: any[]) - bind(eventName: string, callback: (...args: any[]) => void, context?: any) - unbind(eventName?: string, callback?: (...args: any[]) => void, context?: any) - once(events: string, callback: (...args: any[]) => void, context?: any): any; - listenTo(object: any, events: string, callback: (...args: any[]) => void): any; - listenToOnce(object: any, events: string, callback: (...args: any[]) => void): any; - stopListening(object?: any, events?: string, callback?: (...args: any[]) => void): any; app: App; } diff --git a/types/gl-react-native/index.d.ts b/types/gl-react-native/index.d.ts index 8f0c38a96d..0ae45486be 100644 --- a/types/gl-react-native/index.d.ts +++ b/types/gl-react-native/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for gl-react-native 3.15 -// Project: https://github.com/gre/gl-react +// Project: https://github.com/gre/gl-react, https://github.com/projectseptemberinc/gl-react-native // Definitions by: Jussi Kinnula // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/google-adwords-scripts/index.d.ts b/types/google-adwords-scripts/index.d.ts index 5e71857a3a..6a95ebf922 100644 --- a/types/google-adwords-scripts/index.d.ts +++ b/types/google-adwords-scripts/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google AdWords Scripts 1.0 +// Type definitions for non-npm package Google AdWords Scripts 1.0 // Project: https://github.com/jafaircl/gaws // Definitions by: Jonathan Faircloth // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/google-apps-script-oauth2/index.d.ts b/types/google-apps-script-oauth2/index.d.ts index d5d9022849..2486a38e12 100644 --- a/types/google-apps-script-oauth2/index.d.ts +++ b/types/google-apps-script-oauth2/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for google-apps-script-oauth2 24.0 +// Type definitions for non-npm package google-apps-script-oauth2 24.0 // Project: https://github.com/googlesamples/apps-script-oauth2 // Definitions by: dhayab // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/google-map-react/index.d.ts b/types/google-map-react/index.d.ts index 56686c94c1..b8a82062bc 100644 --- a/types/google-map-react/index.d.ts +++ b/types/google-map-react/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for google-map-react 0.23 -// Project: https://github.com/istarkov/google-map-react +// Project: https://github.com/google-map-react/google-map-react // Definitions by: Honza Brecka // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/google.fonts/index.d.ts b/types/google.fonts/index.d.ts index b5741ff196..45f01ce6f4 100644 --- a/types/google.fonts/index.d.ts +++ b/types/google.fonts/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Fonts API 1.0 +// Type definitions for non-npm package Google Fonts API 1.0 // Project: https://developers.google.com/fonts/ // Definitions by: Dan Marshall // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/google.script.client-side/index.d.ts b/types/google.script.client-side/index.d.ts index 566fbb7397..7d497fd6c2 100644 --- a/types/google.script.client-side/index.d.ts +++ b/types/google.script.client-side/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Apps Script Client-side API 0.0 +// Type definitions for non-npm package Google Apps Script Client-side API 0.0 // Project: https://developers.google.com/apps-script/guides/html/reference/host // Definitions by: clomie // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/googlepay/index.d.ts b/types/googlepay/index.d.ts index c085094fb4..a8d5603abd 100644 --- a/types/googlepay/index.d.ts +++ b/types/googlepay/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Pay API 0.2 +// Type definitions for non-npm package Google Pay API 0.2 // Project: https://developers.google.com/pay/api/web/ // Definitions by: Florian Luccioni , // Radu Raicea , diff --git a/types/graceful-fs/index.d.ts b/types/graceful-fs/index.d.ts index 69e7a5dce9..750e651609 100644 --- a/types/graceful-fs/index.d.ts +++ b/types/graceful-fs/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for graceful-fs 4.1 -// Project: https://github.com/cowboy/graceful-fs +// Project: https://github.com/isaacs/node-graceful-fs // Definitions by: Bart van der Schoor // BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/graphlib-dot/index.d.ts b/types/graphlib-dot/index.d.ts index 0a9eb1cb7a..f59a2dbbff 100644 --- a/types/graphlib-dot/index.d.ts +++ b/types/graphlib-dot/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for graphlib-dot 0.6 -// Project: https://github.com/dagrejs/graphlib-dot +// Project: https://github.com/dagrejs/graphlib-dot, https://github.com/cpettitt/graphlib-dot // Definitions by: Dom Parfitt // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/graphql-query-complexity/index.d.ts b/types/graphql-query-complexity/index.d.ts index ba34b4f4e2..075b88cb40 100644 --- a/types/graphql-query-complexity/index.d.ts +++ b/types/graphql-query-complexity/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for graphql-query-complexity 0.1 -// Project: https://github.com/ivome/graphql-query-complexity +// Project: https://github.com/slicknode/graphql-query-complexity // Definitions by: Abhik Mitra // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/graphql/index.d.ts b/types/graphql/index.d.ts index abaa81294b..0206859643 100644 --- a/types/graphql/index.d.ts +++ b/types/graphql/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for graphql 14.0 -// Project: https://www.npmjs.com/package/graphql +// Project: https://github.com/graphql/graphql-js // Definitions by: TonyYang // Caleb Meredith // Dominic Watson @@ -17,6 +17,7 @@ // Curtis Layne // Jonathan Cardoso // Pavel Lang +// Mark Caudill // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/graphql/type/definition.d.ts b/types/graphql/type/definition.d.ts index 97c16f305c..f491919a13 100644 --- a/types/graphql/type/definition.d.ts +++ b/types/graphql/type/definition.d.ts @@ -140,8 +140,8 @@ export function assertAbstractType(type: any): GraphQLAbstractType; * List Modifier * * A list is a kind of type marker, a wrapping type which points to another - * type. Lists are often created within the context of defining the fields of - * an object type. + * type. Lists are often created within the context of defining the fields + * of an object type. * * Example: * @@ -342,36 +342,48 @@ export interface GraphQLScalarTypeConfig { * }); * */ -export class GraphQLObjectType { +export class GraphQLObjectType< + TSource = any, + TContext = any, + TArgs = { [key: string]: any } +> { name: string; description: Maybe; astNode: Maybe; extensionASTNodes: Maybe>; isTypeOf: Maybe>; - constructor(config: GraphQLObjectTypeConfig); - getFields(): GraphQLFieldMap; + constructor(config: GraphQLObjectTypeConfig); + getFields(): GraphQLFieldMap; getInterfaces(): GraphQLInterfaceType[]; toString(): string; toJSON(): string; inspect(): string; } -export interface GraphQLObjectTypeConfig { +export interface GraphQLObjectTypeConfig< + TSource, + TContext, + TArgs = { [key: string]: any } +> { name: string; interfaces?: Thunk>; - fields: Thunk>; + fields: Thunk>; isTypeOf?: Maybe>; description?: Maybe; astNode?: Maybe; extensionASTNodes?: Maybe>; } -export type GraphQLTypeResolver = ( +export type GraphQLTypeResolver< + TSource, + TContext, + TArgs = { [key: string]: any } +> = ( value: TSource, context: TContext, info: GraphQLResolveInfo -) => MaybePromise | string>>; +) => MaybePromise | string>>; export type GraphQLIsTypeOfFn = ( source: TSource, @@ -423,8 +435,8 @@ export interface GraphQLArgumentConfig { astNode?: Maybe; } -export type GraphQLFieldConfigMap = { - [key: string]: GraphQLFieldConfig; +export type GraphQLFieldConfigMap = { + [key: string]: GraphQLFieldConfig; }; export interface GraphQLField { @@ -449,8 +461,12 @@ export interface GraphQLArgument { export function isRequiredArgument(arg: GraphQLArgument): boolean; -export type GraphQLFieldMap = { - [key: string]: GraphQLField; +export type GraphQLFieldMap< + TSource, + TContext, + TArgs = { [key: string]: any } +> = { + [key: string]: GraphQLField; }; /** @@ -487,15 +503,19 @@ export class GraphQLInterfaceType { inspect(): string; } -export interface GraphQLInterfaceTypeConfig { +export interface GraphQLInterfaceTypeConfig< + TSource, + TContext, + TArgs = { [key: string]: any } +> { name: string; - fields: Thunk>; + fields: Thunk>; /** * Optionally provide a custom type resolver function. If one is not provided, * the default implementation will call `isTypeOf` on each implementing * Object type. */ - resolveType?: Maybe>; + resolveType?: Maybe>; description?: Maybe; astNode?: Maybe; extensionASTNodes?: Maybe>; diff --git a/types/guardian__prosemirror-invisibles/guardian__prosemirror-invisibles-tests.ts b/types/guardian__prosemirror-invisibles/guardian__prosemirror-invisibles-tests.ts index 38398d9830..6fb0ea627e 100644 --- a/types/guardian__prosemirror-invisibles/guardian__prosemirror-invisibles-tests.ts +++ b/types/guardian__prosemirror-invisibles/guardian__prosemirror-invisibles-tests.ts @@ -1,8 +1,12 @@ import { Node } from 'prosemirror-model'; import { Plugin } from 'prosemirror-state'; -import invisibles, { hardBreak, paragraph, space, Builder } from 'guardian__prosemirror-invisibles'; +import invisibles, { hardBreak, paragraph, space, Builder, character, node } from 'guardian__prosemirror-invisibles'; const plugin1: Plugin = invisibles([hardBreak((node: Node) => true), paragraph(), space((char: string) => false)]); -const plugin2: Plugin = invisibles([hardBreak(), paragraph((node: Node) => false), space()]); +const a: Builder = character('letter-a')(char => char === 'a'); + +const someNode: Builder = node('some-node', (node: Node, pos: number) => 1)((node: Node) => true); + +const plugin2: Plugin = invisibles([hardBreak(), paragraph((node: Node) => false), space(), a, someNode]); diff --git a/types/guardian__prosemirror-invisibles/index.d.ts b/types/guardian__prosemirror-invisibles/index.d.ts index f3453cd6ec..ccc1a00d4c 100644 --- a/types/guardian__prosemirror-invisibles/index.d.ts +++ b/types/guardian__prosemirror-invisibles/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for @guardian/prosemirror-invisibles 1.0 +// Type definitions for @guardian/prosemirror-invisibles 1.2 // Project: https://github.com/guardian/prosemirror-invisibles // Definitions by: Daniil Dotsev // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -17,6 +17,10 @@ export interface TextBetweenPosition { export default function(builders: Builder[]): Plugin; +export function character(type: string): (predicate: (char: string) => boolean) => Builder; +export function node(type: string, toPosition: (node: Node, pos: number) => number): + (predicate: (node: Node) => boolean) => Builder; + export function hardBreak(predicate?: (node: Node) => boolean): Builder; export function paragraph(predicate?: (node: Node) => boolean): Builder; export function space(predicate?: (char: string) => boolean): Builder; diff --git a/types/gulp-bump/index.d.ts b/types/gulp-bump/index.d.ts index 4657dc06b2..52ef0fd487 100644 --- a/types/gulp-bump/index.d.ts +++ b/types/gulp-bump/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for gulp-bump 2.8 -// Project: https://github.com/stevelacy/gulp-bump +// Project: https://github.com/stevelacy/gulp-bump, http://github.com/stevelacy/gulp-bump // Definitions by: silkentrance // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gulp-modernizr/index.d.ts b/types/gulp-modernizr/index.d.ts index c9dc3a60b8..febbe67ff5 100644 --- a/types/gulp-modernizr/index.d.ts +++ b/types/gulp-modernizr/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for gulp-modernizr 1.0 -// Project: https://github.com/doctyper/gulp-modernizr +// Project: https://github.com/rejas/gulp-modernizr // Definitions by: remisery // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gulp-pug/index.d.ts b/types/gulp-pug/index.d.ts index 46a8a79239..92f7d6db88 100644 --- a/types/gulp-pug/index.d.ts +++ b/types/gulp-pug/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for gulp-pug 3.3 -// Project: https://github.com/pugjs/gulp-pug#readme +// Project: https://github.com/gulp-community/gulp-pug // Definitions by: remisery // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/handlebars-helpers/index.d.ts b/types/handlebars-helpers/index.d.ts index 5a1de16bef..b7dbe8bc5c 100644 --- a/types/handlebars-helpers/index.d.ts +++ b/types/handlebars-helpers/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for handlebars-helpers 0.5 -// Project: http://assemble.io/helpers/ +// Project: http://assemble.io/helpers/, https://github.com/helpers/handlebars-helpers // Definitions by: Toilal // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/hapi/index.d.ts b/types/hapi/index.d.ts index f66ae5a8ea..f14730e202 100644 --- a/types/hapi/index.d.ts +++ b/types/hapi/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for hapi 18.0 -// Project: https://github.com/hapijs/hapi +// Project: https://github.com/hapijs/hapi, https://hapijs.com // Definitions by: Rafael Souza Fijalkowski // Justin Simms // Simon Schick diff --git a/types/har-format/index.d.ts b/types/har-format/index.d.ts index 178d95314f..16f500a79d 100644 --- a/types/har-format/index.d.ts +++ b/types/har-format/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for HAR 1.2 +// Type definitions for non-npm package HAR 1.2 // Project: https://w3c.github.io/web-performance/specs/HAR/Overview.html // Definitions by: Michael Mrowetz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/hashtag-regex/index.d.ts b/types/hashtag-regex/index.d.ts index 3540ce867b..ef6b53aeda 100644 --- a/types/hashtag-regex/index.d.ts +++ b/types/hashtag-regex/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for hashtag-regex 2.0 -// Project: https://github.com/mathiasbynens/hashtag-regex +// Project: https://github.com/mathiasbynens/hashtag-regex, https://mths.be/hashtag-regex // Definitions by: diogofcunha // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/haversine/index.d.ts b/types/haversine/index.d.ts index 5f6d1e9173..91123614b2 100644 --- a/types/haversine/index.d.ts +++ b/types/haversine/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for haversine 1.1 -// Project: https://github.com/njj/haversine +// Project: https://github.com/njj/haversine, https://github.com/niix/haversine // Definitions by: Christian Rackerseder // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/heatmap.js/index.d.ts b/types/heatmap.js/index.d.ts index 265f17f5fb..c798943394 100644 --- a/types/heatmap.js/index.d.ts +++ b/types/heatmap.js/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for heatmap.js 2.0 -// Project: https://github.com/pa7/heatmap.js/ +// Project: https://github.com/pa7/heatmap.js/, https://www.patrick-wied.at/static/heatmapjs // Definitions by: Yang Guan // Rhys van der Waerden // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/hedron/index.d.ts b/types/hedron/index.d.ts index 8ce464c017..257f0086a6 100644 --- a/types/hedron/index.d.ts +++ b/types/hedron/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Hedron 0.7 -// Project: https://github.com/JSBros/hedron +// Project: https://github.com/JSBros/hedron, http://jsb.ro/hedron // Definitions by: Dmytro Borysov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/hellojs/index.d.ts b/types/hellojs/index.d.ts index 5b23b29e07..b139e760c6 100644 --- a/types/hellojs/index.d.ts +++ b/types/hellojs/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for hello.js 1.16 -// Project: http://adodson.com/hello.js/ +// Project: https://adodson.com/hello.js // Definitions by: Pavel Zika // Mikko Vuorinen // Vincent Biret diff --git a/types/heredatalens/index.d.ts b/types/heredatalens/index.d.ts index cb9a4d7807..d6c89d138f 100644 --- a/types/heredatalens/index.d.ts +++ b/types/heredatalens/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for HERE Data Lens API for JavaScript 2.3 +// Type definitions for non-npm package HERE Data Lens API for JavaScript 2.3 // Project: https://developer.here.com/ // Definitions by: Bernd Hacker // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/heremaps/index.d.ts b/types/heremaps/index.d.ts index 918e464c09..98986df654 100644 --- a/types/heremaps/index.d.ts +++ b/types/heremaps/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for HERE Maps API for JavaScript 3.0 +// Type definitions for non-npm package HERE Maps API for JavaScript 3.0 // Project: https://developer.here.com/ // Definitions by: Joshua Efiong // Bernd Hacker diff --git a/types/hexo-fs/index.d.ts b/types/hexo-fs/index.d.ts index 89166b230c..6fc510b9a1 100644 --- a/types/hexo-fs/index.d.ts +++ b/types/hexo-fs/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for hexo-fs 0.2 -// Project: http://hexo.io/ +// Project: https://hexo.io // Definitions by: segayuu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/hiredis/index.d.ts b/types/hiredis/index.d.ts index 97a3f8d98c..727e4f4a03 100644 --- a/types/hiredis/index.d.ts +++ b/types/hiredis/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for hiredis 0.5 -// Project: https://github.com/redis/hiredis-node +// Project: http://github.com/redis/hiredis-node // Definitions by: Titan // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/historykana/index.d.ts b/types/historykana/index.d.ts index c99c82de98..ee239be092 100644 --- a/types/historykana/index.d.ts +++ b/types/historykana/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for HistoryKana 1.0 -// Project: https://github.com/terrierscript/historykana +// Project: https://github.com/terrierscript/historykana, https://github.com/inuscript/historykana // Definitions by: shiratsuki // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/hjson/index.d.ts b/types/hjson/index.d.ts index 7b675657a7..0b69868a6f 100644 --- a/types/hjson/index.d.ts +++ b/types/hjson/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for hjson 2.4 -// Project: https://github.com/hjson/hjson-js +// Project: https://github.com/hjson/hjson-js, http://hjson.org // Definitions by: Mark van Straten // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/html-minifier/index.d.ts b/types/html-minifier/index.d.ts index 2f1281c442..f49f533f9c 100644 --- a/types/html-minifier/index.d.ts +++ b/types/html-minifier/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for html-minifier 3.5 -// Project: https://github.com/kangax/html-minifier +// Project: https://github.com/kangax/html-minifier, https://kangax.github.io/html-minifier // Definitions by: Tanguy Krotoff // Riku // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/htmlbars-inline-precompile/index.d.ts b/types/htmlbars-inline-precompile/index.d.ts index ab4bf9a1b7..3cc8e36066 100644 --- a/types/htmlbars-inline-precompile/index.d.ts +++ b/types/htmlbars-inline-precompile/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for htmlbars-inline-precompile 1.0 +// Type definitions for non-npm package htmlbars-inline-precompile 1.0 // Project: https://github.com/ember-cli/ember-cli-htmlbars-inline-precompile // Definitions by: Chris Krycho // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/hubot/index.d.ts b/types/hubot/index.d.ts index 1b90a512af..656c492df6 100644 --- a/types/hubot/index.d.ts +++ b/types/hubot/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for hubot 2.19 -// Project: https://github.com/github/hubot +// Project: https://github.com/hubotio/hubot // Definitions by: Dirk Gadsden // Kees C. Bakker // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/hyco-ws/index.d.ts b/types/hyco-ws/index.d.ts index 68d0575fb5..3e0950b5cd 100644 --- a/types/hyco-ws/index.d.ts +++ b/types/hyco-ws/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for hyco-ws 1.0 -// Project: https://github.com/Azure/azure-relay-node +// Project: https://github.com/Azure/azure-relay-node, https://docs.microsoft.com/en-us/azure/service-bus-relay // Definitions by: Manuel Rodrigo Cabello // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/i18n/i18n-tests.ts b/types/i18n/i18n-tests.ts index 8f6deb423c..a24e4d4300 100644 --- a/types/i18n/i18n-tests.ts +++ b/types/i18n/i18n-tests.ts @@ -137,6 +137,16 @@ i18n.__({ phrase: 'Hello {{name}}', locale: 'fr' }, { name: 'Marcus' }); // Salu * __n() * https://github.com/mashpie/i18n-node#__n */ +// short syntax +// global (this.locale == 'de') +i18n.__n("%s cat", 1); // 1 Katze +i18n.__n("%s cat", 3); // 3 Katzen + +// scoped via req object (req.locale == 'de') +req.__n("%s cat", 1); // 1 Katze +req.__n("%s cat", 3); // 3 Katzen + +// long syntax // global (this.locale == 'de') i18n.__n("%s cat", "%s cats", 1); // 1 Katze i18n.__n("%s cat", "%s cats", 3); // 3 Katzen diff --git a/types/i18n/index.d.ts b/types/i18n/index.d.ts index ee0f3d584f..678373be48 100644 --- a/types/i18n/index.d.ts +++ b/types/i18n/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for i18n-node 0.8 -// Project: https://github.com/mashpie/i18n-node +// Project: http://github.com/mashpie/i18n-node // Definitions by: Maxime LUCE // FindQ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -192,6 +192,14 @@ declare namespace i18n { //#region __n() + /** + * Translate with plural condition the given phrase and count using locale configuration + * @param phrase - Short phrase to be translated. All plural options ("one", "few", other", ...) have to be provided by your translation file + * @param count - The number which allow to select from plural to singular + * @returns The translated phrase + */ + function __n(phrase: string, count: number): string; + /** * Translate with plural condition the given phrase and count using locale configuration * @param options - Options for plural translate @@ -346,6 +354,14 @@ interface i18nAPI { //#region __n() + /** + * Translate with plural condition the given phrase and count using locale configuration + * @param phrase - Short phrase to be translated. All plural options ("one", "few", other", ...) have to be provided by your translation file + * @param count - The number which allow to select from plural to singular + * @returns The translated phrase + */ + __n(phrase: string, count: number): string; + /** * Translate with plural condition the given phrase and count using locale configuration * @param options - Options for plural translate diff --git a/types/i18next-browser-languagedetector/index.d.ts b/types/i18next-browser-languagedetector/index.d.ts index 6eec150445..88dbe79d8d 100644 --- a/types/i18next-browser-languagedetector/index.d.ts +++ b/types/i18next-browser-languagedetector/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for i18next-browser-languagedetector 2.0 -// Project: http://i18next.com/ +// Project: http://i18next.com/, https://github.com/i18next/i18next-browser-languagedetector // Definitions by: Cyril Schumacher , Giedrius Grabauskas // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/i18next-xhr-backend/i18next-xhr-backend-tests.ts b/types/i18next-xhr-backend/i18next-xhr-backend-tests.ts deleted file mode 100644 index 858b2b28f9..0000000000 --- a/types/i18next-xhr-backend/i18next-xhr-backend-tests.ts +++ /dev/null @@ -1,30 +0,0 @@ -import * as i18next from "i18next"; -import * as XHR from "i18next-xhr-backend"; - -const options: XHR.BackendOptions = { - loadPath: "/locales/{{lng}}/{{ns}}.json", - addPath: "locales/add/{{lng}}/{{ns}}", - allowMultiLoading: false, - parse: (data: string) => data.replace(/a/g, ""), - crossDomain: false, - withCredentials: false, - ajax: (url: string, options: XHR.BackendOptions, callback: XHR.AjaxRequestCallback, data: {}) => { }, - queryStringParams: { v: "1.3.5" } -}; - -i18next - .use(XHR) - .init({ - backend: options - }); - -const xhr = new XHR(); -xhr.init(options); -const xhr2 = new XHR(null, options); -const type: string = xhr.type; -const newOptions: XHR.BackendOptions = xhr.options; -xhr.create("en", "ns", "key", "value"); -xhr.create(["en", "us"], "ns", "key", "value"); -xhr.read("en", "ns", (error: any, result: string | false) => { }); -xhr.readMulti(["en"], ["ns"], (error: any, result: string | false) => { }); -xhr.loadUrl("someurl", (error: any, result: string) => { }); diff --git a/types/i18next-xhr-backend/index.d.ts b/types/i18next-xhr-backend/index.d.ts deleted file mode 100644 index c4e8a41b4a..0000000000 --- a/types/i18next-xhr-backend/index.d.ts +++ /dev/null @@ -1,75 +0,0 @@ -// Type definitions for i18next-xhr-backend 1.4 -// Project: https://github.com/i18next/i18next-xhr-backend -// Definitions by: Jan Mühlemann , Giedrius Grabauskas -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -declare namespace I18NextXhrBackend { - type LoadPathOption = string | ((lngs: string[], namespaces: string[]) => string); - - interface BackendOptions { - /** - * path where resources get loaded from, or a function - * returning a path: - * function(lngs, namespaces) { return customPath; } - * the returned path will interpolate lng, ns if provided like giving a static path - */ - loadPath?: LoadPathOption; - /** - * path to post missing resources - */ - addPath?: string; - /** - * your backend server supports multiLoading - * locales/resources.json?lng=de+en&ns=ns1+ns2 - * set loadPath: '/locales/resources.json?lng={{lng}}&ns={{ns}}' to adapt to multiLoading - */ - allowMultiLoading?: boolean; - /** - * parse data after it has been fetched - * in example use https://www.npmjs.com/package/json5 - * here it removes the letter a from the json (bad idea) - */ - parse?(data: string): string; - /** - * allow cross domain requests - */ - crossDomain?: boolean; - /** - * allow credentials on cross domain requests - */ - withCredentials?: boolean; - /** - * define a custom xhr function - * can be used to support XDomainRequest in IE 8 and 9 - */ - ajax?(url: string, options: BackendOptions, callback: AjaxRequestCallback, data: {} | string, cache: boolean): void; - /** - * adds parameters to resource URL. 'example.com' -> 'example.com?v=1.3.5' - */ - queryStringParams?: { [key: string]: string }; - - /** - * @see https://github.com/i18next/i18next-xhr-backend/blob/281c7e235e1157b33122adacef1957252e5700f1/src/ajax.js#L52 - */ - customHeaders?: { [key: string]: string }; - } - - type AjaxRequestCallback = (response: string, x: XMLHttpRequest) => void; - - type LoadCallback = (error: any, result: string | false) => void; -} - -declare class I18NextXhrBackend { - constructor(services?: any, options?: I18NextXhrBackend.BackendOptions); - init(options?: I18NextXhrBackend.BackendOptions): void; - readMulti(languages: string[], namespaces: string[], callback: I18NextXhrBackend.LoadCallback): void; - read(language: string, namespace: string, callback: I18NextXhrBackend.LoadCallback): void; - loadUrl(url: string, callback: I18NextXhrBackend.LoadCallback): void; - create(languages: string | string[], namespace: string, key: string, fallbackValue: string): void; - type: "backend"; - services: any; - options: I18NextXhrBackend.BackendOptions; -} - -export = I18NextXhrBackend; diff --git a/types/i18next-xhr-backend/tsconfig.json b/types/i18next-xhr-backend/tsconfig.json deleted file mode 100644 index a7ca4c2adb..0000000000 --- a/types/i18next-xhr-backend/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "strictFunctionTypes": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "i18next-xhr-backend-tests.ts" - ] -} \ No newline at end of file diff --git a/types/idyll-compiler/index.d.ts b/types/idyll-compiler/index.d.ts index 577dae2070..91b25eeb29 100644 --- a/types/idyll-compiler/index.d.ts +++ b/types/idyll-compiler/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for idyll-compiler 3.1 -// Project: https://github.com/idyll-lang/idyll/tree/master/packages/idyll-compiler +// Project: https://github.com/idyll-lang/idyll/tree/master/packages/idyll-compiler, https://github.com/idyll-lang/idyll // Definitions by: Thanh Ngo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/idyll/index.d.ts b/types/idyll/index.d.ts index a2f1846a7a..2ad9751fde 100644 --- a/types/idyll/index.d.ts +++ b/types/idyll/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for idyll 2.10 -// Project: https://github.com/idyll-lang/idyll/tree/master/packages/idyll-cli +// Project: https://github.com/idyll-lang/idyll/tree/master/packages/idyll-cli, https://github.com/idyll-lang/idyll // Definitions by: Thanh Ngo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/ignite-ui/index.d.ts b/types/ignite-ui/index.d.ts index 29d809964a..44620024ca 100644 --- a/types/ignite-ui/index.d.ts +++ b/types/ignite-ui/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Ignite UI 18.1 +// Type definitions for Ignite UI 18.2 // Project: https://github.com/IgniteUI/ignite-ui // Definitions by: Ignite UI // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -10897,6 +10897,12 @@ interface SeriesPointerUpEvent { interface SeriesPointerUpEventUIParam {} +interface CalloutStyleUpdatingEvent { + (event: Event, ui: CalloutStyleUpdatingEventUIParam): void; +} + +interface CalloutStyleUpdatingEventUIParam {} + interface IgCategoryChart { /** * Gets or sets the id of a template element to use for tooltips, or markup representing the tooltip template. @@ -11066,6 +11072,12 @@ interface IgCategoryChart { */ isVerticalZoomEnabled?: boolean; + /** + * Gets or sets whether the chart can highlight series through user interactions. + * This property applies to Category Chart and Financial Chart controls. + */ + isSeriesHighlightingEnabled?: boolean; + /** * Gets or sets the rectangle representing the current scroll and zoom state of the chart. * WindowRect is expressed as a Rectangle with coordinates and sizes between 0 and 1. @@ -11197,6 +11209,79 @@ interface IgCategoryChart { alignsGridLinesToPixels?: boolean; trendLinePeriod?: number; + /** + * Gets or sets the style of tooltip to be displayed. + * + * Valid values: + * "default" Display default tooltip for each series in the chart. + * "item" Display individual tooltips for all series in the chart. + * "category" Display combined tooltip for all series in the chart. + * "none" Display no tooltips in the chart. + */ + toolTipType?: string; + + /** + * Gets or sets the crosshairs to be displayed. + * + * Valid values: + * "default" Display default number of crosshair lines in the chart. + * "none" Display no crosshair lines in the chart. + * "horizontal" Display horizontal line of crosshairs in the chart. + * "vertical" Display vertical line of crosshairs in the chart. + * "both" Display both horizontal and vertical lines of crosshairs in the chart. + */ + crosshairsDisplayMode?: string; + + /** + * Gets or sets whether crosshairs will snap to the nearest data point. + */ + crosshairsSnapToData?: boolean; + + /** + * Gets or sets whether annotations are shown along the axis for crosshair values + */ + crosshairsAnnotationEnabled?: boolean; + + /** + * Gets or sets whether annotations for the final value of each series is displayed on the axis. + */ + finalValueAnnotationsVisible?: boolean; + + /** + * Gets or sets if callouts should be displayed. + */ + calloutsVisible?: boolean; + + /** + * Gets or sets if event annotations should be displayed. + */ + calloutStyleUpdatingEventEnabled?: boolean; + + /** + * Gets or sets the collection of callout data to be annotated. + */ + calloutsItemsSource?: any; + + /** + * Gets or sets the member path of the X data for the callouts. + */ + calloutsXMemberPath?: string; + + /** + * Gets or sets the member path of the Y data for the callouts. + */ + calloutsYMemberPath?: string; + + /** + * Gets or sets the member path of the label data for the callouts. + */ + calloutsLabelMemberPath?: string; + + /** + * Gets or sets the member path of the content data for the callouts. + */ + calloutsContentMemberPath?: string; + /** * Gets or sets function which takes an context object and returns a formatted label for the X-axis. */ @@ -11343,7 +11428,7 @@ interface IgCategoryChart { xAxisLabel?: any; /** - * Gets or sets the format for labels along the Y-axis. + * Gets or sets the property or string from which the labels are derived. */ yAxisLabel?: any; @@ -11750,6 +11835,16 @@ interface IgCategoryChart { */ yAxisAbbreviateLargeNumbers?: boolean; + /** + * Gets or sets whether the category should be highlighted when hovered + */ + isCategoryHighlightingEnabled?: boolean; + + /** + * Gets or sets whether the item should be highlighted when hovered + */ + isItemHighlightingEnabled?: boolean; + /** * The width of the chart. */ @@ -11832,6 +11927,11 @@ interface IgCategoryChart { */ seriesPointerUp?: SeriesPointerUpEvent; + /** + * Occurs when the style of a callout is updated. + */ + calloutStyleUpdating?: CalloutStyleUpdatingEvent; + /** * Event which is raised before data binding. * Return false in order to cancel data binding. @@ -12406,6 +12506,20 @@ interface JQuery { */ igCategoryChart(optionLiteral: 'option', optionName: "isVerticalZoomEnabled", optionValue: boolean): void; + /** + * Gets whether the chart can highlight series through user interactions. + * This property applies to Category Chart and Financial Chart controls. + */ + igCategoryChart(optionLiteral: 'option', optionName: "isSeriesHighlightingEnabled"): boolean; + + /** + * Sets whether the chart can highlight series through user interactions. + * This property applies to Category Chart and Financial Chart controls. + * + * @optionValue New value to be set. + */ + igCategoryChart(optionLiteral: 'option', optionName: "isSeriesHighlightingEnabled", optionValue: boolean): void; + /** * Gets the rectangle representing the current scroll and zoom state of the chart. * WindowRect is expressed as a Rectangle with coordinates and sizes between 0 and 1. @@ -12646,6 +12760,154 @@ interface JQuery { igCategoryChart(optionLiteral: 'option', optionName: "trendLinePeriod"): number; igCategoryChart(optionLiteral: 'option', optionName: "trendLinePeriod", optionValue: number): void; + /** + * Gets the style of tooltip to be displayed. + */ + + igCategoryChart(optionLiteral: 'option', optionName: "toolTipType"): string; + + /** + * Sets the style of tooltip to be displayed. + * + * @optionValue New value to be set. + */ + + igCategoryChart(optionLiteral: 'option', optionName: "toolTipType", optionValue: string): void; + + /** + * Gets the crosshairs to be displayed. + */ + + igCategoryChart(optionLiteral: 'option', optionName: "crosshairsDisplayMode"): string; + + /** + * Sets the crosshairs to be displayed. + * + * @optionValue New value to be set. + */ + + igCategoryChart(optionLiteral: 'option', optionName: "crosshairsDisplayMode", optionValue: string): void; + + /** + * Gets whether crosshairs will snap to the nearest data point. + */ + igCategoryChart(optionLiteral: 'option', optionName: "crosshairsSnapToData"): boolean; + + /** + * Sets whether crosshairs will snap to the nearest data point. + * + * @optionValue New value to be set. + */ + igCategoryChart(optionLiteral: 'option', optionName: "crosshairsSnapToData", optionValue: boolean): void; + + /** + * Gets whether annotations are shown along the axis for crosshair values + */ + igCategoryChart(optionLiteral: 'option', optionName: "crosshairsAnnotationEnabled"): boolean; + + /** + * Sets whether annotations are shown along the axis for crosshair values + * + * @optionValue New value to be set. + */ + igCategoryChart(optionLiteral: 'option', optionName: "crosshairsAnnotationEnabled", optionValue: boolean): void; + + /** + * Gets whether annotations for the final value of each series is displayed on the axis. + */ + igCategoryChart(optionLiteral: 'option', optionName: "finalValueAnnotationsVisible"): boolean; + + /** + * Sets whether annotations for the final value of each series is displayed on the axis. + * + * @optionValue New value to be set. + */ + igCategoryChart(optionLiteral: 'option', optionName: "finalValueAnnotationsVisible", optionValue: boolean): void; + + /** + * Gets if callouts should be displayed. + */ + igCategoryChart(optionLiteral: 'option', optionName: "calloutsVisible"): boolean; + + /** + * Sets if callouts should be displayed. + * + * @optionValue New value to be set. + */ + igCategoryChart(optionLiteral: 'option', optionName: "calloutsVisible", optionValue: boolean): void; + + /** + * Gets if event annotations should be displayed. + */ + igCategoryChart(optionLiteral: 'option', optionName: "calloutStyleUpdatingEventEnabled"): boolean; + + /** + * Sets if event annotations should be displayed. + * + * @optionValue New value to be set. + */ + igCategoryChart(optionLiteral: 'option', optionName: "calloutStyleUpdatingEventEnabled", optionValue: boolean): void; + + /** + * Gets the collection of callout data to be annotated. + */ + igCategoryChart(optionLiteral: 'option', optionName: "calloutsItemsSource"): any; + + /** + * Sets the collection of callout data to be annotated. + * + * @optionValue New value to be set. + */ + igCategoryChart(optionLiteral: 'option', optionName: "calloutsItemsSource", optionValue: any): void; + + /** + * Gets the member path of the X data for the callouts. + */ + igCategoryChart(optionLiteral: 'option', optionName: "calloutsXMemberPath"): string; + + /** + * Sets the member path of the X data for the callouts. + * + * @optionValue New value to be set. + */ + igCategoryChart(optionLiteral: 'option', optionName: "calloutsXMemberPath", optionValue: string): void; + + /** + * Gets the member path of the Y data for the callouts. + */ + igCategoryChart(optionLiteral: 'option', optionName: "calloutsYMemberPath"): string; + + /** + * Sets the member path of the Y data for the callouts. + * + * @optionValue New value to be set. + */ + igCategoryChart(optionLiteral: 'option', optionName: "calloutsYMemberPath", optionValue: string): void; + + /** + * Gets the member path of the label data for the callouts. + */ + igCategoryChart(optionLiteral: 'option', optionName: "calloutsLabelMemberPath"): string; + + /** + * Sets the member path of the label data for the callouts. + * + * @optionValue New value to be set. + */ + igCategoryChart(optionLiteral: 'option', optionName: "calloutsLabelMemberPath", optionValue: string): void; + + /** + * Gets the member path of the content data for the callouts. + */ + igCategoryChart(optionLiteral: 'option', optionName: "calloutsContentMemberPath"): string; + + /** + * Sets the member path of the content data for the callouts. + * + * @optionValue New value to be set. + */ + igCategoryChart(optionLiteral: 'option', optionName: "calloutsContentMemberPath", optionValue: string): void; + /** * Gets function which takes an context object and returns a formatted label for the X-axis. */ @@ -12995,12 +13257,12 @@ interface JQuery { igCategoryChart(optionLiteral: 'option', optionName: "xAxisLabel", optionValue: any): void; /** - * Gets the format for labels along the Y-axis. + * Gets the property or string from which the labels are derived. */ igCategoryChart(optionLiteral: 'option', optionName: "yAxisLabel"): any; /** - * Sets the format for labels along the Y-axis. + * Sets the property or string from which the labels are derived. * * @optionValue New value to be set. */ @@ -13758,6 +14020,30 @@ interface JQuery { */ igCategoryChart(optionLiteral: 'option', optionName: "yAxisAbbreviateLargeNumbers", optionValue: boolean): void; + /** + * Gets whether the category should be highlighted when hovered + */ + igCategoryChart(optionLiteral: 'option', optionName: "isCategoryHighlightingEnabled"): boolean; + + /** + * Sets whether the category should be highlighted when hovered + * + * @optionValue New value to be set. + */ + igCategoryChart(optionLiteral: 'option', optionName: "isCategoryHighlightingEnabled", optionValue: boolean): void; + + /** + * Gets whether the item should be highlighted when hovered + */ + igCategoryChart(optionLiteral: 'option', optionName: "isItemHighlightingEnabled"): boolean; + + /** + * Sets whether the item should be highlighted when hovered + * + * @optionValue New value to be set. + */ + igCategoryChart(optionLiteral: 'option', optionName: "isItemHighlightingEnabled", optionValue: boolean): void; + /** * The width of the chart. */ @@ -13954,6 +14240,18 @@ interface JQuery { */ igCategoryChart(optionLiteral: 'option', optionName: "seriesPointerUp", optionValue: SeriesPointerUpEvent): void; + /** + * Occurs when the style of a callout is updated. + */ + igCategoryChart(optionLiteral: 'option', optionName: "calloutStyleUpdating"): CalloutStyleUpdatingEvent; + + /** + * Occurs when the style of a callout is updated. + * + * @optionValue New value to be set. + */ + igCategoryChart(optionLiteral: 'option', optionName: "calloutStyleUpdating", optionValue: CalloutStyleUpdatingEvent): void; + /** * Event which is raised before data binding. * Return false in order to cancel data binding. @@ -15245,7 +15543,7 @@ interface IgDataChartSeries { * Valid values: * "maximum" Consolidated items will be positioned using their maximum value. * "minimum" Consolidated items will be positioned using their minimum value. - * "median" Consolidated items will be positioned using their median value. + * "median" Consolidated items will be positioned at the midpoint of the range. * "relativeMinimum" Consolidated items will be positioned using the value nearest to the reference value of the corresponding axis. * "relativeMaximum" Consolidated items will be positioned using the value farthest from the reference value of the corresponding axis. */ @@ -15319,6 +15617,273 @@ interface IgDataChartSeries { */ hitTestMode?: string; + /** + * Gets or sets the brush that specifies how the backgrounds for the callouts of the layer are painted. + */ + calloutBackground?: string; + + /** + * Gets or sets the strategy to use for avoiding collisions between the callouts in this layer. Leave unset for an automatic value. + * + * Valid values: + * "auto" automatically decide the collision strategy. + * "simulatedAnnealing" use a simulated annealing based collision strategy. This is higher quality, but takes longer, and is performed time-sliced in the background until an acceptable quality is reached. + * "greedy" use a greedy algorithm to avoid collisions. This is cheap and predictable, but of comparatively low quality. + * "greedyCenterOfMass" use a greedy algorithm with localized center of mass hints to avoid collisions. This is relatively cheap to perform, compared to the simulated annealing approach, but is of comparatively lower quality. + */ + calloutCollisionMode?: string; + + /** + * Gets or sets the brush that specifies how the leader lines for the callouts of the layer are painted. + */ + calloutLeaderBrush?: string; + + /** + * Gets or sets the brush that specifies how the outlines for the callouts of the layer are painted. + */ + calloutOutline?: string; + + /** + * Gets or sets the left padding to use withing the callout. Leaving this NaN will use an automatic value related to the axis label margins. + */ + calloutPaddingLeft?: number; + + /** + * Gets or sets the top padding to use withing the callout. Leaving this NaN will use an automatic value related to the axis label margins. + */ + calloutPaddingTop?: number; + + /** + * Gets or sets the right padding to use withing the callout. Leaving this NaN will use an automatic value related to the axis label margins. + */ + calloutPaddingRight?: number; + + /** + * Gets or sets the bottom padding to use withing the callout. Leaving this NaN will use an automatic value related to the axis label margins. + */ + calloutPaddingBottom?: number; + + /** + * Gets or sets the padding to add to the callout positioning. Leaving this NaN will use an automatic value related to the axis label margins. + */ + calloutPositionPadding?: number; + + /** + * Gets or sets the stroke thickness for the callout backing. Leave unset for an automatic value. + */ + calloutStrokeThickness?: number; + + /** + * Gets or sets the color to use for the callout text. Leave unset for an automatic value. + */ + calloutTextColor?: string; + + /** + * Gets or sets the content mapping property for the callouts. + */ + contentMemberPath?: string; + + /** + * Gets or sets whether to allow the callouts to be variable distances from the target points, for suppporting collision modes. + */ + isCalloutOffsettingEnabled?: boolean; + + /** + * Gets or sets the key mapping property for the callouts. + */ + keyMemberPath?: string; + + /** + * Gets or sets the color to use for the axis annotation backing. Leave unset for an automatic value. + */ + axisAnnotationBackground?: string; + + /** + * Gets or sets the color to use for the x axis annotation backing. Leave unset for an automatic value. + */ + xAxisAnnotationBackground?: string; + + /** + * Gets or sets the color to use for the y axis annotation backing. Leave unset for an automatic value. + */ + yAxisAnnotationBackground?: string; + + /** + * Gets or sets the color to use for the axis annotation outline. Leave unset for an automatic value. + */ + axisAnnotationOutline?: string; + + /** + * Gets or sets the color to use for the x axis annotation outline. Leave unset for an automatic value. + */ + xAxisAnnotationOutline?: string; + + /** + * Gets or sets the color to use for the y axis annotation outline. Leave unset for an automatic value. + */ + yAxisAnnotationOutline?: string; + + /** + * Gets or sets the color to use for the axis annotation text. Leave unset for an automatic value. + */ + axisAnnotationTextColor?: string; + + /** + * Gets or sets the color to use for the x axis annotation text. Leave unset for an automatic value. + */ + xAxisAnnotationTextColor?: string; + + /** + * Gets or sets the color to use for the y axis annotation text. Leave unset for an automatic value. + */ + yAxisAnnotationTextColor?: string; + + /** + * Gets or sets the left padding to use withing the axis annotation callout. Leaving this NaN will use an automatic value related to the axis label margins. + */ + axisAnnotationPaddingLeft?: number; + + /** + * Gets or sets the left padding to use withing the x axis annotation callout. Leaving this NaN will use an automatic value related to the axis label margins. + */ + xAxisAnnotationPaddingLeft?: number; + + /** + * Gets or sets the left padding to use withing the y axis annotation callout. Leaving this NaN will use an automatic value related to the axis label margins. + */ + yAxisAnnotationPaddingLeft?: number; + + /** + * Gets or sets the top padding to use withing the axis annotation callout. Leaving this NaN will use an automatic value related to the axis label margins. + */ + axisAnnotationPaddingTop?: number; + + /** + * Gets or sets the top padding to use withing the x axis annotation callout. Leaving this NaN will use an automatic value related to the axis label margins. + */ + xAxisAnnotationPaddingTop?: number; + + /** + * Gets or sets the top padding to use withing the y axis annotation callout. Leaving this NaN will use an automatic value related to the axis label margins. + */ + yAxisAnnotationPaddingTop?: number; + + /** + * Gets or sets the right padding to use withing the axis annotation callout. Leaving this NaN will use an automatic value related to the axis label margins. + */ + axisAnnotationPaddingRight?: number; + + /** + * Gets or sets the right padding to use withing the x axis annotation callout. Leaving this NaN will use an automatic value related to the axis label margins. + */ + xAxisAnnotationPaddingRight?: number; + + /** + * Gets or sets the right padding to use withing the y axis annotation callout. Leaving this NaN will use an automatic value related to the axis label margins. + */ + yAxisAnnotationPaddingRight?: number; + + /** + * Gets or sets the bottom padding to use withing the axis annotation callout. Leaving this NaN will use an automatic value related to the axis label margins. + */ + axisAnnotationPaddingBottom?: number; + + /** + * Gets or sets the bottom padding to use withing the x axis annotation callout. Leaving this NaN will use an automatic value related to the axis label margins. + */ + xAxisAnnotationPaddingBottom?: number; + + /** + * Gets or sets the bottom padding to use withing the y axis annotation callout. Leaving this NaN will use an automatic value related to the axis label margins. + */ + yAxisAnnotationPaddingBottom?: number; + + /** + * Gets or sets the stroke thickness for the axis annotation backing. Leave unset for an automatic value. + */ + axisAnnotationStrokeThickness?: number; + + /** + * Gets or sets the stroke thickness for the x axis annotation backing. Leave unset for an automatic value. + */ + xAxisAnnotationStrokeThickness?: number; + + /** + * Gets or sets the stroke thickness for the y axis annotation backing. Leave unset for an automatic value. + */ + yAxisAnnotationStrokeThickness?: number; + + /** + * Gets or sets the stroke thickness for the y axis annotation backing. Leave unset for an automatic value. + * + * Valid values: + * "auto" a mode is selected automatically + * "finalVisible" displays the last value visible. + * "finalVisibleInterpolated" displays an interploated last value for when the series leaves view. + * "final" displays the last value in the series, whether visible or not. + */ + finalValueSelectionMode?: string; + + /** + * Gets or sets the color to use for the horizontal line. Leave null for an automatic value. + */ + horizontalLineStroke?: string; + + /** + * Gets or sets the color to use for the vertical line. Leave null for an automatic value. + */ + verticalLineStroke?: string; + + /** + * Gets or sets whether to draw annotations over the axes where the crosshair meets with them. + */ + isAxisAnnotationEnabled?: boolean; + + /** + * Sets or gets a function which takes an object that produces a formatted label for displaying in the axis annotation. + */ + axisAnnoationFormatLabel?: any; + + /** + * Sets or gets a function which takes an object that produces a formatted label for displaying in the x axis annotation. + */ + xAxisAnnoationFormatLabel?: any; + + /** + * Sets or gets a function which takes an object that produces a formatted label for displaying in the y axis annotation. + */ + yAxisAnnoationFormatLabel?: any; + + /** + * Sets or gets a function which allows you to decide upon the label that gets used for an automatically created callout. + */ + calloutLabelUpdating?: any; + + /** + * Sets or gets a function which allows you to decide upon the content that gets used for an automatically created callout. + */ + calloutContentUpdating?: any; + + /** + * Sets or gets a function which allows you to decide upon the series that gets used for a data bound callout. + */ + calloutSeriesSelecting?: any; + + /** + * Gets or sets the precision to use displaying values for interpolated crosshair positions. + */ + axisAnnotationInterpolatedValuePrecision?: number; + + /** + * Gets or sets the precision to use displaying values for interpolated crosshair positions. + */ + xAxisAnnotationInterpolatedValuePrecision?: number; + + /** + * Gets or sets the precision to use displaying values for interpolated crosshair positions. + */ + yAxisAnnotationInterpolatedValuePrecision?: number; + /** * Option for IgDataChartSeries */ @@ -39491,6 +40056,12 @@ interface IgFinancialChart { */ isVerticalZoomEnabled?: boolean; + /** + * Gets or sets whether the chart can highlight series through user interactions. + * This property applies to Category Chart and Financial Chart controls. + */ + isSeriesHighlightingEnabled?: boolean; + /** * Gets or sets the rectangle representing the current scroll and zoom state of the chart. * WindowRect is expressed as a Rectangle with coordinates and sizes between 0 and 1. @@ -39622,6 +40193,79 @@ interface IgFinancialChart { alignsGridLinesToPixels?: boolean; trendLinePeriod?: number; + /** + * Gets or sets the style of tooltip to be displayed. + * + * Valid values: + * "default" Display default tooltip for each series in the chart. + * "item" Display individual tooltips for all series in the chart. + * "category" Display combined tooltip for all series in the chart. + * "none" Display no tooltips in the chart. + */ + toolTipType?: string; + + /** + * Gets or sets the crosshairs to be displayed. + * + * Valid values: + * "default" Display default number of crosshair lines in the chart. + * "none" Display no crosshair lines in the chart. + * "horizontal" Display horizontal line of crosshairs in the chart. + * "vertical" Display vertical line of crosshairs in the chart. + * "both" Display both horizontal and vertical lines of crosshairs in the chart. + */ + crosshairsDisplayMode?: string; + + /** + * Gets or sets whether crosshairs will snap to the nearest data point. + */ + crosshairsSnapToData?: boolean; + + /** + * Gets or sets whether annotations are shown along the axis for crosshair values + */ + crosshairsAnnotationEnabled?: boolean; + + /** + * Gets or sets whether annotations for the final value of each series is displayed on the axis. + */ + finalValueAnnotationsVisible?: boolean; + + /** + * Gets or sets if callouts should be displayed. + */ + calloutsVisible?: boolean; + + /** + * Gets or sets if event annotations should be displayed. + */ + calloutStyleUpdatingEventEnabled?: boolean; + + /** + * Gets or sets the collection of callout data to be annotated. + */ + calloutsItemsSource?: any; + + /** + * Gets or sets the member path of the X data for the callouts. + */ + calloutsXMemberPath?: string; + + /** + * Gets or sets the member path of the Y data for the callouts. + */ + calloutsYMemberPath?: string; + + /** + * Gets or sets the member path of the label data for the callouts. + */ + calloutsLabelMemberPath?: string; + + /** + * Gets or sets the member path of the content data for the callouts. + */ + calloutsContentMemberPath?: string; + /** * Gets or sets function which takes an context object and returns a formatted label for the X-axis. */ @@ -39768,7 +40412,7 @@ interface IgFinancialChart { xAxisLabel?: any; /** - * Gets or sets the format for labels along the Y-axis. + * Gets or sets the property or string from which the labels are derived. */ yAxisLabel?: any; @@ -40025,7 +40669,7 @@ interface IgFinancialChart { chartTypePickerTemplate?: any; trendLineTypePickerTemplate?: any; volumeTypePickerTemplate?: any; - indicatorPickerTemplate?: any; + indicatorMenuTemplate?: any; overlayPickerTemplate?: any; toolbarHeight?: number; @@ -40129,11 +40773,11 @@ interface IgFinancialChart { yAxisAbbreviateLargeNumbers?: boolean; /** - * The type of series to display in the zoom slider pane. + * Gets or sets type of series to display in the zoom slider pane. * * Valid values: * "none" Do not display the zoom slider pane. - * "auto" + * "auto" In the zoom slider pane, match the series type in the price pane. * "bar" Display financial bar series in the zoom slider pane. * "candle" Display candle series in the zoom slider pane. * "column" Display column series in the zoom slider pane. @@ -40256,9 +40900,37 @@ interface IgFinancialChart { * When CustomIndicatorNames is set, the ApplyCustomIndicators event will be raised for each custom indicator name. */ customIndicatorNames?: any; - zoomSliderXAxisMajorStroke?: any; + + /** + * Gets or sets stroke brush of major gridlines on x-axis of the zoom slider pane + */ + zoomSliderXAxisMajorStroke?: string; + + /** + * Gets or sets thickness of major gridlines on x-axis of the zoom slider pane + */ zoomSliderXAxisMajorStrokeThickness?: number; + /** + * Gets or sets weather or not a legend is visible between toolbar and chart's plot area + */ + isLegendVisible?: boolean; + + /** + * Gets or sets a legend displayed between toolbar and chart's plot area + */ + financialChartLegend?: any; + + /** + * Gets or sets minimum value on x-axis + */ + xAxisMinimumValue?: any; + + /** + * Gets or sets maximum value on x-axis + */ + xAxisMaximumValue?: any; + /** * The width of the chart. */ @@ -40341,6 +41013,11 @@ interface IgFinancialChart { */ seriesPointerUp?: SeriesPointerUpEvent; + /** + * Occurs when the style of a callout is updated. + */ + calloutStyleUpdating?: CalloutStyleUpdatingEvent; + /** * Event raised by the chart when custom indicator data is needed from the application. * During series rendering, event will be raised once for each value in the CustomIndicatorNames collection. @@ -40921,6 +41598,20 @@ interface JQuery { */ igFinancialChart(optionLiteral: 'option', optionName: "isVerticalZoomEnabled", optionValue: boolean): void; + /** + * Gets whether the chart can highlight series through user interactions. + * This property applies to Category Chart and Financial Chart controls. + */ + igFinancialChart(optionLiteral: 'option', optionName: "isSeriesHighlightingEnabled"): boolean; + + /** + * Sets whether the chart can highlight series through user interactions. + * This property applies to Category Chart and Financial Chart controls. + * + * @optionValue New value to be set. + */ + igFinancialChart(optionLiteral: 'option', optionName: "isSeriesHighlightingEnabled", optionValue: boolean): void; + /** * Gets the rectangle representing the current scroll and zoom state of the chart. * WindowRect is expressed as a Rectangle with coordinates and sizes between 0 and 1. @@ -41161,6 +41852,154 @@ interface JQuery { igFinancialChart(optionLiteral: 'option', optionName: "trendLinePeriod"): number; igFinancialChart(optionLiteral: 'option', optionName: "trendLinePeriod", optionValue: number): void; + /** + * Gets the style of tooltip to be displayed. + */ + + igFinancialChart(optionLiteral: 'option', optionName: "toolTipType"): string; + + /** + * Sets the style of tooltip to be displayed. + * + * @optionValue New value to be set. + */ + + igFinancialChart(optionLiteral: 'option', optionName: "toolTipType", optionValue: string): void; + + /** + * Gets the crosshairs to be displayed. + */ + + igFinancialChart(optionLiteral: 'option', optionName: "crosshairsDisplayMode"): string; + + /** + * Sets the crosshairs to be displayed. + * + * @optionValue New value to be set. + */ + + igFinancialChart(optionLiteral: 'option', optionName: "crosshairsDisplayMode", optionValue: string): void; + + /** + * Gets whether crosshairs will snap to the nearest data point. + */ + igFinancialChart(optionLiteral: 'option', optionName: "crosshairsSnapToData"): boolean; + + /** + * Sets whether crosshairs will snap to the nearest data point. + * + * @optionValue New value to be set. + */ + igFinancialChart(optionLiteral: 'option', optionName: "crosshairsSnapToData", optionValue: boolean): void; + + /** + * Gets whether annotations are shown along the axis for crosshair values + */ + igFinancialChart(optionLiteral: 'option', optionName: "crosshairsAnnotationEnabled"): boolean; + + /** + * Sets whether annotations are shown along the axis for crosshair values + * + * @optionValue New value to be set. + */ + igFinancialChart(optionLiteral: 'option', optionName: "crosshairsAnnotationEnabled", optionValue: boolean): void; + + /** + * Gets whether annotations for the final value of each series is displayed on the axis. + */ + igFinancialChart(optionLiteral: 'option', optionName: "finalValueAnnotationsVisible"): boolean; + + /** + * Sets whether annotations for the final value of each series is displayed on the axis. + * + * @optionValue New value to be set. + */ + igFinancialChart(optionLiteral: 'option', optionName: "finalValueAnnotationsVisible", optionValue: boolean): void; + + /** + * Gets if callouts should be displayed. + */ + igFinancialChart(optionLiteral: 'option', optionName: "calloutsVisible"): boolean; + + /** + * Sets if callouts should be displayed. + * + * @optionValue New value to be set. + */ + igFinancialChart(optionLiteral: 'option', optionName: "calloutsVisible", optionValue: boolean): void; + + /** + * Gets if event annotations should be displayed. + */ + igFinancialChart(optionLiteral: 'option', optionName: "calloutStyleUpdatingEventEnabled"): boolean; + + /** + * Sets if event annotations should be displayed. + * + * @optionValue New value to be set. + */ + igFinancialChart(optionLiteral: 'option', optionName: "calloutStyleUpdatingEventEnabled", optionValue: boolean): void; + + /** + * Gets the collection of callout data to be annotated. + */ + igFinancialChart(optionLiteral: 'option', optionName: "calloutsItemsSource"): any; + + /** + * Sets the collection of callout data to be annotated. + * + * @optionValue New value to be set. + */ + igFinancialChart(optionLiteral: 'option', optionName: "calloutsItemsSource", optionValue: any): void; + + /** + * Gets the member path of the X data for the callouts. + */ + igFinancialChart(optionLiteral: 'option', optionName: "calloutsXMemberPath"): string; + + /** + * Sets the member path of the X data for the callouts. + * + * @optionValue New value to be set. + */ + igFinancialChart(optionLiteral: 'option', optionName: "calloutsXMemberPath", optionValue: string): void; + + /** + * Gets the member path of the Y data for the callouts. + */ + igFinancialChart(optionLiteral: 'option', optionName: "calloutsYMemberPath"): string; + + /** + * Sets the member path of the Y data for the callouts. + * + * @optionValue New value to be set. + */ + igFinancialChart(optionLiteral: 'option', optionName: "calloutsYMemberPath", optionValue: string): void; + + /** + * Gets the member path of the label data for the callouts. + */ + igFinancialChart(optionLiteral: 'option', optionName: "calloutsLabelMemberPath"): string; + + /** + * Sets the member path of the label data for the callouts. + * + * @optionValue New value to be set. + */ + igFinancialChart(optionLiteral: 'option', optionName: "calloutsLabelMemberPath", optionValue: string): void; + + /** + * Gets the member path of the content data for the callouts. + */ + igFinancialChart(optionLiteral: 'option', optionName: "calloutsContentMemberPath"): string; + + /** + * Sets the member path of the content data for the callouts. + * + * @optionValue New value to be set. + */ + igFinancialChart(optionLiteral: 'option', optionName: "calloutsContentMemberPath", optionValue: string): void; + /** * Gets function which takes an context object and returns a formatted label for the X-axis. */ @@ -41510,12 +42349,12 @@ interface JQuery { igFinancialChart(optionLiteral: 'option', optionName: "xAxisLabel", optionValue: any): void; /** - * Gets the format for labels along the Y-axis. + * Gets the property or string from which the labels are derived. */ igFinancialChart(optionLiteral: 'option', optionName: "yAxisLabel"): any; /** - * Sets the format for labels along the Y-axis. + * Sets the property or string from which the labels are derived. * * @optionValue New value to be set. */ @@ -42016,8 +42855,8 @@ interface JQuery { igFinancialChart(optionLiteral: 'option', optionName: "trendLineTypePickerTemplate", optionValue: any): void; igFinancialChart(optionLiteral: 'option', optionName: "volumeTypePickerTemplate"): any; igFinancialChart(optionLiteral: 'option', optionName: "volumeTypePickerTemplate", optionValue: any): void; - igFinancialChart(optionLiteral: 'option', optionName: "indicatorPickerTemplate"): any; - igFinancialChart(optionLiteral: 'option', optionName: "indicatorPickerTemplate", optionValue: any): void; + igFinancialChart(optionLiteral: 'option', optionName: "indicatorMenuTemplate"): any; + igFinancialChart(optionLiteral: 'option', optionName: "indicatorMenuTemplate", optionValue: any): void; igFinancialChart(optionLiteral: 'option', optionName: "overlayPickerTemplate"): any; igFinancialChart(optionLiteral: 'option', optionName: "overlayPickerTemplate", optionValue: any): void; igFinancialChart(optionLiteral: 'option', optionName: "toolbarHeight"): number; @@ -42218,13 +43057,13 @@ interface JQuery { igFinancialChart(optionLiteral: 'option', optionName: "yAxisAbbreviateLargeNumbers", optionValue: boolean): void; /** - * The type of series to display in the zoom slider pane. + * Gets type of series to display in the zoom slider pane. */ igFinancialChart(optionLiteral: 'option', optionName: "zoomSliderType"): string; /** - * The type of series to display in the zoom slider pane. + * Sets type of series to display in the zoom slider pane. * * @optionValue New value to be set. */ @@ -42502,11 +43341,79 @@ interface JQuery { * @optionValue New value to be set. */ igFinancialChart(optionLiteral: 'option', optionName: "customIndicatorNames", optionValue: any): void; - igFinancialChart(optionLiteral: 'option', optionName: "zoomSliderXAxisMajorStroke"): any; - igFinancialChart(optionLiteral: 'option', optionName: "zoomSliderXAxisMajorStroke", optionValue: any): void; + + /** + * Gets stroke brush of major gridlines on x-axis of the zoom slider pane + */ + igFinancialChart(optionLiteral: 'option', optionName: "zoomSliderXAxisMajorStroke"): string; + + /** + * Sets stroke brush of major gridlines on x-axis of the zoom slider pane + * + * @optionValue New value to be set. + */ + igFinancialChart(optionLiteral: 'option', optionName: "zoomSliderXAxisMajorStroke", optionValue: string): void; + + /** + * Gets thickness of major gridlines on x-axis of the zoom slider pane + */ igFinancialChart(optionLiteral: 'option', optionName: "zoomSliderXAxisMajorStrokeThickness"): number; + + /** + * Sets thickness of major gridlines on x-axis of the zoom slider pane + * + * @optionValue New value to be set. + */ igFinancialChart(optionLiteral: 'option', optionName: "zoomSliderXAxisMajorStrokeThickness", optionValue: number): void; + /** + * Gets weather or not a legend is visible between toolbar and chart's plot area + */ + igFinancialChart(optionLiteral: 'option', optionName: "isLegendVisible"): boolean; + + /** + * Sets weather or not a legend is visible between toolbar and chart's plot area + * + * @optionValue New value to be set. + */ + igFinancialChart(optionLiteral: 'option', optionName: "isLegendVisible", optionValue: boolean): void; + + /** + * Gets a legend displayed between toolbar and chart's plot area + */ + igFinancialChart(optionLiteral: 'option', optionName: "financialChartLegend"): any; + + /** + * Sets a legend displayed between toolbar and chart's plot area + * + * @optionValue New value to be set. + */ + igFinancialChart(optionLiteral: 'option', optionName: "financialChartLegend", optionValue: any): void; + + /** + * Gets minimum value on x-axis + */ + igFinancialChart(optionLiteral: 'option', optionName: "xAxisMinimumValue"): any; + + /** + * Sets minimum value on x-axis + * + * @optionValue New value to be set. + */ + igFinancialChart(optionLiteral: 'option', optionName: "xAxisMinimumValue", optionValue: any): void; + + /** + * Gets maximum value on x-axis + */ + igFinancialChart(optionLiteral: 'option', optionName: "xAxisMaximumValue"): any; + + /** + * Sets maximum value on x-axis + * + * @optionValue New value to be set. + */ + igFinancialChart(optionLiteral: 'option', optionName: "xAxisMaximumValue", optionValue: any): void; + /** * The width of the chart. */ @@ -42703,6 +43610,18 @@ interface JQuery { */ igFinancialChart(optionLiteral: 'option', optionName: "seriesPointerUp", optionValue: SeriesPointerUpEvent): void; + /** + * Occurs when the style of a callout is updated. + */ + igFinancialChart(optionLiteral: 'option', optionName: "calloutStyleUpdating"): CalloutStyleUpdatingEvent; + + /** + * Occurs when the style of a callout is updated. + * + * @optionValue New value to be set. + */ + igFinancialChart(optionLiteral: 'option', optionName: "calloutStyleUpdating", optionValue: CalloutStyleUpdatingEvent): void; + /** * Event raised by the chart when custom indicator data is needed from the application. * During series rendering, event will be raised once for each value in the CustomIndicatorNames collection. @@ -47643,6 +48562,53 @@ interface IgGridFilteringColumnSetting { */ columnKey?: string; + /** + * Specifies the type of editor to use for the column. + * + * + * Valid values: + * "text" An igTextEditor will be created + * "mask" An igMaskEditor will be created + * "date" An igDateEditor will be created + * "datepicker" An igDatePicker will be created + * "timepicker" An igTimePikcer will be created + * "numeric" An igNumericEditor will be created + * "checkbox" An igCheckboxEditor will be created + * "currency" An igCurrencyEditor will be created + * "percent" An igPercentEditor will be created + * "combo" An igCombo editor is created. Both the JS and CSS files used by ui.igCombo should be available. + * "rating" An igRating editor is created. Both the JS and CSS files used by ui.igRating should be available. + */ + editorType?: string; + + /** + * Specifies а custom editor provider instance. More information about editor providers can be found [here](http://www.igniteui.com/help/implementing-custom-editor-provider) and [here](http://www.igniteui.com/help/working-with-combo-editor-provider). + * It should either extend $.ig.EditorProvider or have definitions for the following methods: + * $.ig.EditorProvider = $.ig.EditorProvider|| $.ig.EditorProvider.extend({ + * createEditor: function (callbacks, key, editorOptions, tabIndex, format, element) {}, + * attachErrorEvents: function (errorShowing, errorShown, errorHidden) {}, + * getEditor: function () {}, + * refreshValue: function () {}, + * getValue: function () {}, + * setValue: function (val) {}, + * setSize: function (width, height) {}, + * setFocus: function () {}, + * removeFromParent: function () {}, + * destroy: function () {}, + * validator: function () {}, + * validate: function (noLabel) {}, + * isValid: function () {} + * }); + * + */ + editorProvider?: any; + + /** + * Specifies options to initialize the corresponding editor with. + * + */ + editorOptions?: any; + /** * Identifies the grid column by index. Either key or index must be set in every column setting. * @@ -47688,6 +48654,10 @@ interface IgGridFilteringColumnSetting { * "thisYear" * "nextYear" * "lastYear" + * "at" + * "notAt" + * "atBefore" + * "atAfter" */ condition?: string|boolean; @@ -47961,6 +48931,30 @@ interface IgGridFilteringLocale { */ nextYearLabel?: string; + /** + * 'At' label that is used for the predefined filtering conditions in the filter dropdowns. + * + */ + atLabel?: string; + + /** + * 'Not at' label that is used for the predefined filtering conditions in the filter dropdowns. + * + */ + notAtLabel?: string; + + /** + * 'At or before' label that is used for the predefined filtering conditions in the filter dropdowns. + * + */ + atBeforeLabel?: string; + + /** + * 'At or after' label that is used for the predefined filtering conditions in the filter dropdowns. + * + */ + atAfterLabel?: string; + /** * 'Clear' label that is used for the predefined filtering conditions in the filter dropdowns. * @@ -48447,8 +49441,8 @@ interface IgGridFiltering { * * * Valid values: - * "string" The dialog window width in pixels (370px). - * "number" The dialog window width in pixels as a number (370). + * "string" The dialog window width in pixels (500px). + * "number" The dialog window width in pixels as a number (500). */ filterDialogWidth?: string|number; @@ -48546,13 +49540,14 @@ interface IgGridFiltering { locale?: IgGridFilteringLocale; /** - * Custom template for add condition area in the filter dialog. The default template is "
${label1}
${label2}
". + * Custom template for add condition area in the filter dialog. The default template is "
${label1}
${label2}
". * */ filterDialogAddConditionTemplate?: string; /** - * Custom template for options in dropdown in add condition area in the filter dialog. The default template is "". + * Custom template for options in dropdown in add condition area in the filter dialog. The default template is "" + * and it is used when [filterDialogAddConditionTemplate](ui.iggridfiltering#options:filterDialogAddConditionTemplate) is applied * */ filterDialogAddConditionDropDownTemplate?: string; @@ -48562,13 +49557,14 @@ interface IgGridFiltering { * Each DOM element which is used for selecting filter conditions/columns/filter expressions has "data-*" attribute. * E.g.: DOM element used for selecting column has attribute "data-af-col", for selecting filter condition - "data-af-cond", for filter expression- "data-af-expr". * NOTE: The template is supported only with
. - * The default template is "". + * The default template is "". * */ filterDialogFilterTemplate?: string; /** - * Custom template for options in condition list in filter dialog. The default template is "". + * Custom template for options in condition list in filter dialog. The default template is "" + * and it is used for custimizing DOM elemenent with attribute "data-af-cond". * */ filterDialogFilterConditionTemplate?: string; @@ -49246,13 +50242,13 @@ interface JQuery { igGridFiltering(optionLiteral: 'option', optionName: "locale", optionValue: IgGridFilteringLocale): void; /** - * Custom template for add condition area in the filter dialog. The default template is "
${label1}
${label2}
". + * Custom template for add condition area in the filter dialog. The default template is "
${label1}
${label2}
". * */ igGridFiltering(optionLiteral: 'option', optionName: "filterDialogAddConditionTemplate"): string; /** - * Custom template for add condition area in the filter dialog. The default template is "
${label1}
${label2}
". + * Custom template for add condition area in the filter dialog. The default template is "
${label1}
${label2}
". * * * @optionValue New value to be set. @@ -49260,13 +50256,15 @@ interface JQuery { igGridFiltering(optionLiteral: 'option', optionName: "filterDialogAddConditionTemplate", optionValue: string): void; /** - * Custom template for options in dropdown in add condition area in the filter dialog. The default template is "". + * Custom template for options in dropdown in add condition area in the filter dialog. The default template is "" + * and it is used when [filterDialogAddConditionTemplate](ui.iggridfiltering#options:filterDialogAddConditionTemplate) is applied * */ igGridFiltering(optionLiteral: 'option', optionName: "filterDialogAddConditionDropDownTemplate"): string; /** - * Custom template for options in dropdown in add condition area in the filter dialog. The default template is "". + * Custom template for options in dropdown in add condition area in the filter dialog. The default template is "" + * and it is used when [filterDialogAddConditionTemplate](ui.iggridfiltering#options:filterDialogAddConditionTemplate) is applied * * * @optionValue New value to be set. @@ -49278,7 +50276,7 @@ interface JQuery { * Each DOM element which is used for selecting filter conditions/columns/filter expressions has "data-*" attribute. * E.g.: DOM element used for selecting column has attribute "data-af-col", for selecting filter condition - "data-af-cond", for filter expression- "data-af-expr". * NOTE: The template is supported only with . - * The default template is "". + * The default template is "". * */ igGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterTemplate"): string; @@ -49288,7 +50286,7 @@ interface JQuery { * Each DOM element which is used for selecting filter conditions/columns/filter expressions has "data-*" attribute. * E.g.: DOM element used for selecting column has attribute "data-af-col", for selecting filter condition - "data-af-cond", for filter expression- "data-af-expr". * NOTE: The template is supported only with . - * The default template is "". + * The default template is "". * * * @optionValue New value to be set. @@ -49296,13 +50294,15 @@ interface JQuery { igGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterTemplate", optionValue: string): void; /** - * Custom template for options in condition list in filter dialog. The default template is "". + * Custom template for options in condition list in filter dialog. The default template is "" + * and it is used for custimizing DOM elemenent with attribute "data-af-cond". * */ igGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterConditionTemplate"): string; /** - * Custom template for options in condition list in filter dialog. The default template is "". + * Custom template for options in condition list in filter dialog. The default template is "" + * and it is used for custimizing DOM elemenent with attribute "data-af-cond". * * * @optionValue New value to be set. @@ -49717,7 +50717,7 @@ interface IgGridColumnGroupOptions { interface IgGridColumn { /** - * Header text for the specified column. + * Header text for the specified column. HTML and special characters should not be included as part of the header text content, because the browsers can interpret it and break the grid UI. * */ headerText?: string; @@ -49742,6 +50742,7 @@ interface IgGridColumn { * Gets/Sets the type of formatting for cells of the column. Default value is null. Checkout [Formatting Dates, Numbers and Strings](http://www.igniteui.com/help/formatting-dates-numbers-and-strings) for details on the valid formatting specifiers. * * If dataType is "date", then supported formats are following: "date", "dateLong", "dateTime", "time", "timeLong", "MM/dd/yyyy", "MMM-d, yy, h:mm:ss tt", "dddd d MMM", etc. + * If dataType is "time", then supported formats are following: "date", "dateLong", "dateTime", "time", "timeLong", "MMM-d, yy, h:mm:ss tt", etc. * If dataType is "number", then supported numeric formats are following: "number", "currency", "percent", "int", "double", "0.00", "#.0####", "0", "#.#######", etc. * The value of "double" will be similar to "number", but with unlimited maximum number of decimal places. * The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. @@ -49751,7 +50752,7 @@ interface IgGridColumn { format?: string; /** - * Data type of the column cell values: string, number, bool, date, object. + * Data type of the column cell values: string, number, bool, date, time, object. * * * Valid values: @@ -49759,6 +50760,7 @@ interface IgGridColumn { * "number" Used when the data for the column is of type number * "boolean" Used when the data for the column is of type boolean * "date" Used when the data for the column is of type date + * "time" Used when the data for the column is of type date and but only the time portion is important * "object" Used when the data for the column is of type object */ dataType?: string; @@ -50629,11 +51631,12 @@ interface IgGrid { aggregateTransactions?: boolean; /** - * Sets gets ability to automatically format text in cells for numeric and date columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) + * Sets gets ability to automatically format text in cells for numeric, date and time columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) * * * Valid values: * "date" formats only Date columns + * "time" formats only Time columns * "number" formats only number columns * "dateandnumber" formats both Date and number columns * "true" formats Date and number columns @@ -51958,14 +52961,14 @@ interface JQuery { igGrid(optionLiteral: 'option', optionName: "aggregateTransactions", optionValue: boolean): void; /** - * Sets gets ability to automatically format text in cells for numeric and date columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) + * Sets gets ability to automatically format text in cells for numeric, date and time columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) * */ igGrid(optionLiteral: 'option', optionName: "autoFormat"): string|boolean; /** - * Sets gets ability to automatically format text in cells for numeric and date columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) + * Sets gets ability to automatically format text in cells for numeric, date and time columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) * * * @optionValue New value to be set. @@ -62382,9 +63385,25 @@ class EditorProviderDatePicker { } } +declare namespace Infragistics { +class EditorProviderTimePicker { + createEditor(callbacks: Object, key: Object, editorOptions: Object, tabIndex: Object, format: Object, element: Object, offset: Object): void; + setValue(value: Object, fe: Object, newOffset: Object): void; + textChanged(evt: Object, ui: Object): void; + setSize(width: Object, height: Object): void; + setFocus(): void; + removeFromParent(): void; + destroy(): void; + refreshValue(): void; + validator(): void; + isValid(): void; +} +} + declare namespace Infragistics { class EditorProviderBoolean { createEditor(callbacks: Object, key: Object, editorOptions: Object, tabIndex: Object, format: Object, element: Object): void; + keyDown(evt: Object, ui: Object): void; valueChanged(evt: Object, ui: Object): void; refreshValue(): void; getValue(): void; @@ -62724,7 +63743,7 @@ interface IgGridSortingLocale { * Custom sorted column tooltip in [igTemplating](http://www.igniteui.com/help/igtemplating-overview) format. * */ - sortedColumnTooltipFormat?: string; + sortedColumnTooltip?: string; /** * Unsorted column tooltip. @@ -64604,7 +65623,7 @@ interface IgGridSummariesMethods { selectCheckBox($checkbox: Object, isToSelect: boolean): void; /** - * Summary calculate the whole data for the specified column key, columnMethods and dataType (used when datasource is remote and dataType is date) + * Summary calculate the whole data for the specified column key, columnMethods and dataType (used when datasource is remote and dataType is date or time) * * @param ck ColumnKey * @param columnMethods Array of column methods objects @@ -65498,6 +66517,7 @@ interface IgGridUpdatingColumnSetting { * "mask" An igMaskEditor will be created * "date" An igDateEditor will be created * "datepicker" An igDatePicker will be created + * "timepicker" An igTimePikcer will be created * "numeric" An igNumericEditor will be created * "checkbox" An igCheckboxEditor will be created * "currency" An igCurrencyEditor will be created @@ -84998,6 +86018,12 @@ interface IgShapeChart { */ isVerticalZoomEnabled?: boolean; + /** + * Gets or sets whether the chart can highlight series through user interactions. + * This property applies to Category Chart and Financial Chart controls. + */ + isSeriesHighlightingEnabled?: boolean; + /** * Gets or sets the rectangle representing the current scroll and zoom state of the chart. * WindowRect is expressed as a Rectangle with coordinates and sizes between 0 and 1. @@ -85129,6 +86155,79 @@ interface IgShapeChart { alignsGridLinesToPixels?: boolean; trendLinePeriod?: number; + /** + * Gets or sets the style of tooltip to be displayed. + * + * Valid values: + * "default" Display default tooltip for each series in the chart. + * "item" Display individual tooltips for all series in the chart. + * "category" Display combined tooltip for all series in the chart. + * "none" Display no tooltips in the chart. + */ + toolTipType?: string; + + /** + * Gets or sets the crosshairs to be displayed. + * + * Valid values: + * "default" Display default number of crosshair lines in the chart. + * "none" Display no crosshair lines in the chart. + * "horizontal" Display horizontal line of crosshairs in the chart. + * "vertical" Display vertical line of crosshairs in the chart. + * "both" Display both horizontal and vertical lines of crosshairs in the chart. + */ + crosshairsDisplayMode?: string; + + /** + * Gets or sets whether crosshairs will snap to the nearest data point. + */ + crosshairsSnapToData?: boolean; + + /** + * Gets or sets whether annotations are shown along the axis for crosshair values + */ + crosshairsAnnotationEnabled?: boolean; + + /** + * Gets or sets whether annotations for the final value of each series is displayed on the axis. + */ + finalValueAnnotationsVisible?: boolean; + + /** + * Gets or sets if callouts should be displayed. + */ + calloutsVisible?: boolean; + + /** + * Gets or sets if event annotations should be displayed. + */ + calloutStyleUpdatingEventEnabled?: boolean; + + /** + * Gets or sets the collection of callout data to be annotated. + */ + calloutsItemsSource?: any; + + /** + * Gets or sets the member path of the X data for the callouts. + */ + calloutsXMemberPath?: string; + + /** + * Gets or sets the member path of the Y data for the callouts. + */ + calloutsYMemberPath?: string; + + /** + * Gets or sets the member path of the label data for the callouts. + */ + calloutsLabelMemberPath?: string; + + /** + * Gets or sets the member path of the content data for the callouts. + */ + calloutsContentMemberPath?: string; + /** * Gets or sets function which takes an context object and returns a formatted label for the X-axis. */ @@ -85275,7 +86374,7 @@ interface IgShapeChart { xAxisLabel?: any; /** - * Gets or sets the format for labels along the Y-axis. + * Gets or sets the property or string from which the labels are derived. */ yAxisLabel?: any; @@ -85715,6 +86814,11 @@ interface IgShapeChart { */ seriesPointerUp?: SeriesPointerUpEvent; + /** + * Occurs when the style of a callout is updated. + */ + calloutStyleUpdating?: CalloutStyleUpdatingEvent; + /** * Event which is raised before data binding. * Return false in order to cancel data binding. @@ -86325,6 +87429,20 @@ interface JQuery { */ igShapeChart(optionLiteral: 'option', optionName: "isVerticalZoomEnabled", optionValue: boolean): void; + /** + * Gets whether the chart can highlight series through user interactions. + * This property applies to Category Chart and Financial Chart controls. + */ + igShapeChart(optionLiteral: 'option', optionName: "isSeriesHighlightingEnabled"): boolean; + + /** + * Sets whether the chart can highlight series through user interactions. + * This property applies to Category Chart and Financial Chart controls. + * + * @optionValue New value to be set. + */ + igShapeChart(optionLiteral: 'option', optionName: "isSeriesHighlightingEnabled", optionValue: boolean): void; + /** * Gets the rectangle representing the current scroll and zoom state of the chart. * WindowRect is expressed as a Rectangle with coordinates and sizes between 0 and 1. @@ -86565,6 +87683,154 @@ interface JQuery { igShapeChart(optionLiteral: 'option', optionName: "trendLinePeriod"): number; igShapeChart(optionLiteral: 'option', optionName: "trendLinePeriod", optionValue: number): void; + /** + * Gets the style of tooltip to be displayed. + */ + + igShapeChart(optionLiteral: 'option', optionName: "toolTipType"): string; + + /** + * Sets the style of tooltip to be displayed. + * + * @optionValue New value to be set. + */ + + igShapeChart(optionLiteral: 'option', optionName: "toolTipType", optionValue: string): void; + + /** + * Gets the crosshairs to be displayed. + */ + + igShapeChart(optionLiteral: 'option', optionName: "crosshairsDisplayMode"): string; + + /** + * Sets the crosshairs to be displayed. + * + * @optionValue New value to be set. + */ + + igShapeChart(optionLiteral: 'option', optionName: "crosshairsDisplayMode", optionValue: string): void; + + /** + * Gets whether crosshairs will snap to the nearest data point. + */ + igShapeChart(optionLiteral: 'option', optionName: "crosshairsSnapToData"): boolean; + + /** + * Sets whether crosshairs will snap to the nearest data point. + * + * @optionValue New value to be set. + */ + igShapeChart(optionLiteral: 'option', optionName: "crosshairsSnapToData", optionValue: boolean): void; + + /** + * Gets whether annotations are shown along the axis for crosshair values + */ + igShapeChart(optionLiteral: 'option', optionName: "crosshairsAnnotationEnabled"): boolean; + + /** + * Sets whether annotations are shown along the axis for crosshair values + * + * @optionValue New value to be set. + */ + igShapeChart(optionLiteral: 'option', optionName: "crosshairsAnnotationEnabled", optionValue: boolean): void; + + /** + * Gets whether annotations for the final value of each series is displayed on the axis. + */ + igShapeChart(optionLiteral: 'option', optionName: "finalValueAnnotationsVisible"): boolean; + + /** + * Sets whether annotations for the final value of each series is displayed on the axis. + * + * @optionValue New value to be set. + */ + igShapeChart(optionLiteral: 'option', optionName: "finalValueAnnotationsVisible", optionValue: boolean): void; + + /** + * Gets if callouts should be displayed. + */ + igShapeChart(optionLiteral: 'option', optionName: "calloutsVisible"): boolean; + + /** + * Sets if callouts should be displayed. + * + * @optionValue New value to be set. + */ + igShapeChart(optionLiteral: 'option', optionName: "calloutsVisible", optionValue: boolean): void; + + /** + * Gets if event annotations should be displayed. + */ + igShapeChart(optionLiteral: 'option', optionName: "calloutStyleUpdatingEventEnabled"): boolean; + + /** + * Sets if event annotations should be displayed. + * + * @optionValue New value to be set. + */ + igShapeChart(optionLiteral: 'option', optionName: "calloutStyleUpdatingEventEnabled", optionValue: boolean): void; + + /** + * Gets the collection of callout data to be annotated. + */ + igShapeChart(optionLiteral: 'option', optionName: "calloutsItemsSource"): any; + + /** + * Sets the collection of callout data to be annotated. + * + * @optionValue New value to be set. + */ + igShapeChart(optionLiteral: 'option', optionName: "calloutsItemsSource", optionValue: any): void; + + /** + * Gets the member path of the X data for the callouts. + */ + igShapeChart(optionLiteral: 'option', optionName: "calloutsXMemberPath"): string; + + /** + * Sets the member path of the X data for the callouts. + * + * @optionValue New value to be set. + */ + igShapeChart(optionLiteral: 'option', optionName: "calloutsXMemberPath", optionValue: string): void; + + /** + * Gets the member path of the Y data for the callouts. + */ + igShapeChart(optionLiteral: 'option', optionName: "calloutsYMemberPath"): string; + + /** + * Sets the member path of the Y data for the callouts. + * + * @optionValue New value to be set. + */ + igShapeChart(optionLiteral: 'option', optionName: "calloutsYMemberPath", optionValue: string): void; + + /** + * Gets the member path of the label data for the callouts. + */ + igShapeChart(optionLiteral: 'option', optionName: "calloutsLabelMemberPath"): string; + + /** + * Sets the member path of the label data for the callouts. + * + * @optionValue New value to be set. + */ + igShapeChart(optionLiteral: 'option', optionName: "calloutsLabelMemberPath", optionValue: string): void; + + /** + * Gets the member path of the content data for the callouts. + */ + igShapeChart(optionLiteral: 'option', optionName: "calloutsContentMemberPath"): string; + + /** + * Sets the member path of the content data for the callouts. + * + * @optionValue New value to be set. + */ + igShapeChart(optionLiteral: 'option', optionName: "calloutsContentMemberPath", optionValue: string): void; + /** * Gets function which takes an context object and returns a formatted label for the X-axis. */ @@ -86914,12 +88180,12 @@ interface JQuery { igShapeChart(optionLiteral: 'option', optionName: "xAxisLabel", optionValue: any): void; /** - * Gets the format for labels along the Y-axis. + * Gets the property or string from which the labels are derived. */ igShapeChart(optionLiteral: 'option', optionName: "yAxisLabel"): any; /** - * Sets the format for labels along the Y-axis. + * Sets the property or string from which the labels are derived. * * @optionValue New value to be set. */ @@ -87815,6 +89081,18 @@ interface JQuery { */ igShapeChart(optionLiteral: 'option', optionName: "seriesPointerUp", optionValue: SeriesPointerUpEvent): void; + /** + * Occurs when the style of a callout is updated. + */ + igShapeChart(optionLiteral: 'option', optionName: "calloutStyleUpdating"): CalloutStyleUpdatingEvent; + + /** + * Occurs when the style of a callout is updated. + * + * @optionValue New value to be set. + */ + igShapeChart(optionLiteral: 'option', optionName: "calloutStyleUpdating", optionValue: CalloutStyleUpdatingEvent): void; + /** * Event which is raised before data binding. * Return false in order to cancel data binding. @@ -90679,6 +91957,13 @@ interface JQuery { igSplitter(optionLiteral: 'option', optionName: string, optionValue: any): JQuery; igSplitter(methodName: string, ...methodParams: any[]): any; } +interface IgSpreadsheetBrushes { + /** + * Option for IgSpreadsheetBrushes + */ + [optionName: string]: any; +} + interface ActivePaneChangedEvent { (event: Event, ui: ActivePaneChangedEventUIParam): void; } @@ -90786,6 +92071,11 @@ interface EditModeExitingEventUIParam { * Gets the cell for which the control is exiting edit mode. */ cell?: string; + + /** + * Gets the edit text that will be used to update the cell(s). + */ + editText?: string; } interface EditModeExitedEvent { @@ -90994,6 +92284,12 @@ interface IgSpreadsheet { */ activeCell?: string; + /** + * Returns or sets an object with brushes for areas of the spreadsheet. The property name should be an item in the [SpreadsheetResourceId enumeration](ig.spreadsheet.SpreadsheetResourceId) and the property value a string representing a brush. These brushes override any css styling for the associated object. + * + */ + brushes?: IgSpreadsheetBrushes; + /** * Returns or sets a boolean indicating whether the scroll lock key is toggled. * This property is used when certain keys are pressed while the control has focus. For example @@ -91294,6 +92590,11 @@ interface IgSpreadsheetMethods { */ executeAction(action: Object): boolean; + /** + * Exports visual data from the spreadsheet to aid in unit testing + */ + exportVisualData(): void; + /** * Shows the filter dialog for the specified relative column of the [filterSettings](ig.excel.worksheet#methods:filterSettings) of the [activeWorksheet](ui.igspreadsheet#options:activeWorksheet). * @@ -91310,6 +92611,20 @@ interface IgSpreadsheetMethods { */ showFilterDialogForTable(worksheetTableColumn: Object, spreadsheetFilterDialogOption: Object): void; + /** + * Shows the top or bottom dialog for the specified relative column of the [filterSettings](ig.excel.worksheet#methods:filterSettings) of the [activeWorksheet](ui.igspreadsheet#options:activeWorksheet). + * + * @param relativeColumnIndex A zero based column index relative to the [region](ig.excel.worksheetFilterSettings#methods:region) of the active worksheet. + */ + showTopOrBottomDialogForWorksheet(relativeColumnIndex: number): void; + + /** + * Shows the top or bottom dialog for the specified relative column of the [filterSettings](ig.excel.Worksheet#methods:filterSettings) of the [activeWorksheet](ui.igspreadsheet#options:activeWorksheet). + * + * @param worksheetTableColumn A [region](ig.excel.WorksheetTableColumn) whose filter is to be viewed or changed. + */ + showTopOrBottomDialogForTable(worksheetTableColumn: Object): void; + /** * Forces any pending deferred work to render on the spreadsheet before continuing */ @@ -91350,8 +92665,11 @@ interface JQuery { igSpreadsheet(methodName: "getIsRenamingWorksheet"): boolean; igSpreadsheet(methodName: "getPanes"): void; igSpreadsheet(methodName: "executeAction", action: Object): boolean; + igSpreadsheet(methodName: "exportVisualData"): void; igSpreadsheet(methodName: "showFilterDialogForWorksheet", relativeColumnIndex: number, spreadsheetFilterDialogOption: Object): void; igSpreadsheet(methodName: "showFilterDialogForTable", worksheetTableColumn: Object, spreadsheetFilterDialogOption: Object): void; + igSpreadsheet(methodName: "showTopOrBottomDialogForWorksheet", relativeColumnIndex: number): void; + igSpreadsheet(methodName: "showTopOrBottomDialogForTable", worksheetTableColumn: Object): void; igSpreadsheet(methodName: "flush"): void; igSpreadsheet(methodName: "destroy"): void; igSpreadsheet(methodName: "changeLocale", $container: Object): void; @@ -91405,6 +92723,20 @@ interface JQuery { */ igSpreadsheet(optionLiteral: 'option', optionName: "activeCell", optionValue: string): void; + /** + * Returns an object with brushes for areas of the spreadsheet. The property name should be an item in the [SpreadsheetResourceId enumeration](ig.spreadsheet.SpreadsheetResourceId) and the property value a string representing a brush. These brushes override any css styling for the associated object. + * + */ + igSpreadsheet(optionLiteral: 'option', optionName: "brushes"): IgSpreadsheetBrushes; + + /** + * Returns or sets an object with brushes for areas of the spreadsheet. The property name should be an item in the [SpreadsheetResourceId enumeration](ig.spreadsheet.SpreadsheetResourceId) and the property value a string representing a brush. These brushes override any css styling for the associated object. + * + * + * @optionValue New value to be set. + */ + igSpreadsheet(optionLiteral: 'option', optionName: "brushes", optionValue: IgSpreadsheetBrushes): void; + /** * Returns a boolean indicating whether the scroll lock key is toggled. * This property is used when certain keys are pressed while the control has focus. For example @@ -97640,8 +98972,8 @@ interface IgTreeGridFiltering { * * * Valid values: - * "string" The dialog window width in pixels (370px). - * "number" The dialog window width in pixels as a number (370). + * "string" The dialog window width in pixels (500px). + * "number" The dialog window width in pixels as a number (500). */ filterDialogWidth?: string|number; @@ -97738,13 +99070,14 @@ interface IgTreeGridFiltering { featureChooserTextAdvancedFilter?: string; /** - * Custom template for add condition area in the filter dialog. The default template is "
${label1}
${label2}
". + * Custom template for add condition area in the filter dialog. The default template is "
${label1}
${label2}
". * */ filterDialogAddConditionTemplate?: string; /** - * Custom template for options in dropdown in add condition area in the filter dialog. The default template is "". + * Custom template for options in dropdown in add condition area in the filter dialog. The default template is "" + * and it is used when [filterDialogAddConditionTemplate](ui.iggridfiltering#options:filterDialogAddConditionTemplate) is applied * */ filterDialogAddConditionDropDownTemplate?: string; @@ -97754,13 +99087,14 @@ interface IgTreeGridFiltering { * Each DOM element which is used for selecting filter conditions/columns/filter expressions has "data-*" attribute. * E.g.: DOM element used for selecting column has attribute "data-af-col", for selecting filter condition - "data-af-cond", for filter expression- "data-af-expr". * NOTE: The template is supported only with . - * The default template is "". + * The default template is "". * */ filterDialogFilterTemplate?: string; /** - * Custom template for options in condition list in filter dialog. The default template is "". + * Custom template for options in condition list in filter dialog. The default template is "" + * and it is used for custimizing DOM elemenent with attribute "data-af-cond". * */ filterDialogFilterConditionTemplate?: string; @@ -98529,13 +99863,13 @@ interface JQuery { igTreeGridFiltering(optionLiteral: 'option', optionName: "featureChooserTextAdvancedFilter", optionValue: string): void; /** - * Custom template for add condition area in the filter dialog. The default template is "
${label1}
${label2}
". + * Custom template for add condition area in the filter dialog. The default template is "
${label1}
${label2}
". * */ igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogAddConditionTemplate"): string; /** - * Custom template for add condition area in the filter dialog. The default template is "
${label1}
${label2}
". + * Custom template for add condition area in the filter dialog. The default template is "
${label1}
${label2}
". * * * @optionValue New value to be set. @@ -98543,13 +99877,15 @@ interface JQuery { igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogAddConditionTemplate", optionValue: string): void; /** - * Custom template for options in dropdown in add condition area in the filter dialog. The default template is "". + * Custom template for options in dropdown in add condition area in the filter dialog. The default template is "" + * and it is used when [filterDialogAddConditionTemplate](ui.iggridfiltering#options:filterDialogAddConditionTemplate) is applied * */ igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogAddConditionDropDownTemplate"): string; /** - * Custom template for options in dropdown in add condition area in the filter dialog. The default template is "". + * Custom template for options in dropdown in add condition area in the filter dialog. The default template is "" + * and it is used when [filterDialogAddConditionTemplate](ui.iggridfiltering#options:filterDialogAddConditionTemplate) is applied * * * @optionValue New value to be set. @@ -98561,7 +99897,7 @@ interface JQuery { * Each DOM element which is used for selecting filter conditions/columns/filter expressions has "data-*" attribute. * E.g.: DOM element used for selecting column has attribute "data-af-col", for selecting filter condition - "data-af-cond", for filter expression- "data-af-expr". * NOTE: The template is supported only with . - * The default template is "". + * The default template is "". * */ igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterTemplate"): string; @@ -98571,7 +99907,7 @@ interface JQuery { * Each DOM element which is used for selecting filter conditions/columns/filter expressions has "data-*" attribute. * E.g.: DOM element used for selecting column has attribute "data-af-col", for selecting filter condition - "data-af-cond", for filter expression- "data-af-expr". * NOTE: The template is supported only with . - * The default template is "". + * The default template is "". * * * @optionValue New value to be set. @@ -98579,13 +99915,15 @@ interface JQuery { igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterTemplate", optionValue: string): void; /** - * Custom template for options in condition list in filter dialog. The default template is "". + * Custom template for options in condition list in filter dialog. The default template is "" + * and it is used for custimizing DOM elemenent with attribute "data-af-cond". * */ igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterConditionTemplate"): string; /** - * Custom template for options in condition list in filter dialog. The default template is "". + * Custom template for options in condition list in filter dialog. The default template is "" + * and it is used for custimizing DOM elemenent with attribute "data-af-cond". * * * @optionValue New value to be set. @@ -100078,11 +101416,12 @@ interface IgTreeGrid { aggregateTransactions?: boolean; /** - * Sets gets ability to automatically format text in cells for numeric and date columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) + * Sets gets ability to automatically format text in cells for numeric, date and time columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) * * * Valid values: * "date" formats only Date columns + * "time" formats only Time columns * "number" formats only number columns * "dateandnumber" formats both Date and number columns * "true" formats Date and number columns @@ -101613,14 +102952,14 @@ interface JQuery { igTreeGrid(optionLiteral: 'option', optionName: "aggregateTransactions", optionValue: boolean): void; /** - * Sets gets ability to automatically format text in cells for numeric and date columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) + * Sets gets ability to automatically format text in cells for numeric, date and time columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) * */ igTreeGrid(optionLiteral: 'option', optionName: "autoFormat"): string|boolean; /** - * Sets gets ability to automatically format text in cells for numeric and date columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) + * Sets gets ability to automatically format text in cells for numeric, date and time columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) * * * @optionValue New value to be set. @@ -113340,6 +114679,12 @@ interface IgZoomSlider { height?: string|number; panTransitionDuration?: number; maxZoomWidth?: number; + + /** + * Gets or sets the scaling value used to affect the pixel density of the control. + * A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control + * to appear blurry. + */ pixelScalingRatio?: number; actualPixelScalingRatio?: number; windowRect?: any; @@ -113387,6 +114732,10 @@ interface IgZoomSlider { thumbCalloutTextStyle?: any; propertyChanged?: PropertyChangedEvent; resolvingAxisValue?: ResolvingAxisValueEvent; + + /** + * Occurs just after the current ZoomSlider's window rectangle is changed. + */ windowRectChanged?: WindowRectChangedEvent; /** @@ -113447,7 +114796,21 @@ interface JQuery { igZoomSlider(optionLiteral: 'option', optionName: "panTransitionDuration", optionValue: number): void; igZoomSlider(optionLiteral: 'option', optionName: "maxZoomWidth"): number; igZoomSlider(optionLiteral: 'option', optionName: "maxZoomWidth", optionValue: number): void; + + /** + * Gets the scaling value used to affect the pixel density of the control. + * A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control + * to appear blurry. + */ igZoomSlider(optionLiteral: 'option', optionName: "pixelScalingRatio"): number; + + /** + * Sets the scaling value used to affect the pixel density of the control. + * A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control + * to appear blurry. + * + * @optionValue New value to be set. + */ igZoomSlider(optionLiteral: 'option', optionName: "pixelScalingRatio", optionValue: number): void; igZoomSlider(optionLiteral: 'option', optionName: "actualPixelScalingRatio"): number; igZoomSlider(optionLiteral: 'option', optionName: "actualPixelScalingRatio", optionValue: number): void; @@ -113541,7 +114904,17 @@ interface JQuery { igZoomSlider(optionLiteral: 'option', optionName: "propertyChanged", optionValue: PropertyChangedEvent): void; igZoomSlider(optionLiteral: 'option', optionName: "resolvingAxisValue"): ResolvingAxisValueEvent; igZoomSlider(optionLiteral: 'option', optionName: "resolvingAxisValue", optionValue: ResolvingAxisValueEvent): void; + + /** + * Occurs just after the current ZoomSlider's window rectangle is changed. + */ igZoomSlider(optionLiteral: 'option', optionName: "windowRectChanged"): WindowRectChangedEvent; + + /** + * Occurs just after the current ZoomSlider's window rectangle is changed. + * + * @optionValue New value to be set. + */ igZoomSlider(optionLiteral: 'option', optionName: "windowRectChanged", optionValue: WindowRectChangedEvent): void; igZoomSlider(options: IgZoomSlider): JQuery; igZoomSlider(optionLiteral: 'option', optionName: string): any; @@ -113578,6 +114951,7 @@ interface IgniteUIStatic { loader(resources: string, callback: Function): IgLoader; loader(): IgLoader; OlapUtilities: any; + formatter(val: Date|number|string, type: string, format: string, notTemplate?: boolean, enableUTCDates?: boolean, dateOffset?: any, displayStyle?: string, labelText?: string, tabIndex?: string|number, reg?: any): string; } interface JQueryStatic { diff --git a/types/imperium/index.d.ts b/types/imperium/index.d.ts index 67eace244e..7ad399fe9c 100644 --- a/types/imperium/index.d.ts +++ b/types/imperium/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for imperium 2.0 -// Project: https://www.npmjs.org/package/imperium +// Project: https://github.com/terrajs/imperium // Definitions by: Gaetan SENN // Definitions: https://github.com/psnider/DefinitelyTyped/imperium // TypeScript Version: 2.7 diff --git a/types/inboxsdk/index.d.ts b/types/inboxsdk/index.d.ts index abdfe413bf..f6adb9f229 100644 --- a/types/inboxsdk/index.d.ts +++ b/types/inboxsdk/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for InboxSDK 2.0 +// Type definitions for non-npm package InboxSDK 2.0 // Project: https://www.inboxsdk.com/ // Definitions by: Raphaël Doursenaud // Amiram Korach diff --git a/types/ink-text-input/index.d.ts b/types/ink-text-input/index.d.ts new file mode 100644 index 0000000000..9aaadd330e --- /dev/null +++ b/types/ink-text-input/index.d.ts @@ -0,0 +1,19 @@ +// Type definitions for ink-text-input 2.0 +// Project: https://github.com/vadimdemedes/ink-text-input#readme +// Definitions by: Łukasz Ostrowski +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.8 + +import { Component } from 'ink'; + +interface TextInputProps { + focus?: boolean; + onChange?: (value: string) => void; + onSubmit?: (value: string) => void; + placeholder?: string; + value?: string; +} + +declare class TextInput extends Component { } + +export = TextInput; diff --git a/types/ink-text-input/ink-text-input-tests.tsx b/types/ink-text-input/ink-text-input-tests.tsx new file mode 100644 index 0000000000..82b63854a2 --- /dev/null +++ b/types/ink-text-input/ink-text-input-tests.tsx @@ -0,0 +1,47 @@ +/** @jsx h */ +import { h, Component } from 'ink'; +import TextInput from 'ink-text-input'; +// NOTE: `import TextInput = require('ink-text-input');` will work as well +// For importing using ES6 default import as above, +// `allowSyntheticDefaultImports` flag in compiler options needs to be set to `true` + +interface QueryState { + query: string; +} + +class SearchQuery extends Component { + constructor() { + super(); + + this.state = { + query: '' + }; + + this.handleChange = this.handleChange.bind(this); + this.handleSubmit = this.handleSubmit.bind(this); + } + + render(props: {}, state: QueryState) { + return ( +
+ Enter your query: + + +
+ ); + } + + private handleChange(value: string) { + this.setState({ + query: value, + }); + } + + private handleSubmit(value: string) { + console.log(value); + } +} diff --git a/types/ink-text-input/tsconfig.json b/types/ink-text-input/tsconfig.json new file mode 100644 index 0000000000..2582b4325e --- /dev/null +++ b/types/ink-text-input/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "jsx": "react", + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "ink-text-input-tests.tsx" + ] +} diff --git a/types/ink-text-input/tslint.json b/types/ink-text-input/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/ink-text-input/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/inputmask/index.d.ts b/types/inputmask/index.d.ts new file mode 100644 index 0000000000..3f51fc2df4 --- /dev/null +++ b/types/inputmask/index.d.ts @@ -0,0 +1,787 @@ +// Type definitions for inputmask 4.0 +// Project: https://github.com/RobinHerbots/Inputmask +// Definitions by: Daniel Mester Pirttijarvi +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +// The documentation is mainly copied from the source repo README. + +declare namespace Inputmask { + type Range = { start: string, end: string } | [string, string]; + + type PositionCaretOnClick = + "none" | "lvp" | "radixFocus" | "select" | "ignore"; + + type InputMode = + "verbatim" | "none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url"; + + type Casing = "upper" | "lower" | "title"; + + type DefinitionValidator = (chrs: string, buffer: string[], pos: number, strict: boolean, opts: Options) => + boolean | { pos: number, c: string }; + + interface Options { + /** + * Change the mask placeholder. Instead of "_", you can change the unfilled characters mask as you like, simply + * by adding the placeholder option. For example, placeholder: " " will change the default autofill with empty + * values. + * + * @default "_" + */ + placeholder?: string; + /** + * Definition of the symbols used to indicate an optional part in the mask. + * + * @default { start: "[", end: "]" } + */ + optionalmarker?: Range; + /** + * Definition of the symbols used to indicate a quantifier in the mask. + * + * @default { start: "{", end: "}" } + */ + quantifiermarker?: Range; + /** + * Definition of the symbols used to indicate a group in the mask. + * + * @default { start: "(", end: ")" } + */ + groupmarker?: Range; + /** + * Definition of the symbols used to indicate an alternator part in the mask. + * + * @default "|" + */ + alternatormarker?: string; + /** + * Definition of the symbols used to escape a part in the mask. + * + * @default "\\" + */ + escapeChar?: string; + /** + * The mask to use. + */ + mask?: string | string[] | ((opts: Options) => string | string[]); + /** + * Use a regular expression as a mask. When using shorthands be aware that you need to double escape or use + * String.raw with a string literal. + */ + regex?: string; + /** + * Execute a function when the mask is completed. + */ + oncomplete?: () => void; + /** + * Execute a function when the mask is cleared. + */ + onincomplete?: () => void; + /** + * Execute a function when the mask is cleared. + */ + oncleared?: () => void; + /** + * Mask repeat function. Repeat the mask definition x-times. + * `*` ~ forever, otherwise specify an integer + * + * @default 0 + */ + repeat?: number | string; + /** + * Toggle to allocate as much possible or the opposite. Non-greedy repeat function. With the non-greedy option + * set to `false`, you can specify `*` as repeat. This makes an endless repeat. + * + * @default false + */ + greedy?: boolean; + /** + * Automatically unmask the value when retrieved. + * + * When setting this option to true the plugin also expects the initial value from the server to be unmasked. + * + * @default false + */ + autoUnmask?: boolean; + /** + * Remove the mask before submitting the form. + * + * @default false + */ + removeMaskOnSubmit?: boolean; + /** + * Remove the empty mask on blur or when not empty removes the optional trailing part. + * + * @default true + */ + clearMaskOnLostFocus?: boolean; + /** + * Toggle to insert or overwrite input. This option can be altered by pressing the Insert key. + * + * @default true + */ + insertMode?: boolean; + /** + * Clear the incomplete input on blur. + * + * @default false + */ + clearIncomplete?: boolean; + /** + * The alias to use. + * + * @default null + */ + alias?: string; + /** + * Callback to implement autocomplete on certain keys for example. + */ + onKeyDown?: (event: KeyboardEvent, buffer: string[], caretPos: number, opts: Options) => void; + /** + * Executes before masking the initial value to allow preprocessing of the initial value. + */ + onBeforeMask?: (initialValue: string, opts: Options) => string; + /** + * This callback allows for preprocessing the pasted value before actually handling the value for masking. + * This can be useful for stripping away some characters before processing. You can also disable pasting + * a value by returning false in the `onBeforePaste` call. + */ + onBeforePaste?: (pastedValue: string, opts: Options) => string; + /** + * Executes before writing to the masked element Use this to do some extra processing of the input. This can + * be useful when implementing an alias, ex. decimal alias, autofill the digits when leaving the inputfield. + */ + onBeforeWrite?: (event: KeyboardEvent, buffer: string[], caretPos: number, opts: Options) => CommandObject; + /** + * Executes after unmasking to allow post-processing of the unmaskedvalue. + * + * @returns New unmasked value + */ + onUnMask?: (maskedValue: string, unmaskedValue: string) => string; + /** + * Shows the mask when the input gets focus. + * + * @default true + */ + showMaskOnFocus?: boolean; + /** + * Shows the mask when the input is hevered by the mouse cursor. + * + * @default true + */ + showMaskOnHover?: boolean; + /** + * Callback function is executed on every keyvalidation with the key & result as parameter. + */ + onKeyValidation?: (key: number, result: boolean) => void; + /** + * A character which can be used to skip an optional part of a mask. + * + * @default " " + */ + skipOptionalPartCharacter?: string; + /** + * Numeric input direction. Keeps the caret at the end. + * + * @default false + */ + numericInput?: boolean; + /** + * Align the input to the right + * + * By setting the rightAlign you can specify to right align an inputmask. This is only applied in combination of + * the `numericInput` option or the `dir-attribute`. + * + * @default true + */ + rightAlign?: boolean; + /** + * Make escape behave like undo. (ctrl-Z) Pressing escape reverts the value to the value before focus. + * + * @default true + */ + undoOnEscape?: boolean; + /** + * Define the radixpoint (decimal separator) + * + * @default "" + */ + radixPoint?: string; + /** + * Define the groupseparator. + * + * @default "" + */ + groupSeparator?: string; + /** + * Use in combination with the alternator syntax Try to keep the mask static while typing. Decisions to alter the + * mask will be postponed if possible. + * + * ex. $(selector).inputmask({ mask: ["+55-99-9999-9999", "+55-99-99999-9999", ], keepStatic: true }); + * + * typing 1212345123 => should result in +55-12-1234-5123 type extra 4 => switch to +55-12-12345-1234 + * + * When passing multiple masks (an array of masks) keepStatic is automatically set to true unless explicitly set + * through the options. + * + * @default null + */ + keepStatic?: boolean | null; + /** + * When enabled the caret position is set after the latest valid position on TAB. + * + * @default true + */ + positionCaretOnTab?: boolean; + /** + * Allows for tabbing through the different parts of the masked field. + * + * @default false + */ + tabThrough?: boolean; + /** + * List with the supported input types + * + * @default ["text", "tel", "url", "password", "search"] + */ + supportsInputType?: string[]; + /** + * Specify keyCodes which should not be considered in the keypress event, otherwise the `preventDefault` will + * stop their default behavior especially in FF. + */ + ignorables?: number[]; + /** + * With this call-in (hook) you can override the default implementation of the isComplete function. + */ + isComplete?: (buffer: string[], opts: Options) => boolean; + /** + * Hook to postValidate the result from isValid. Useful for validating the entry as a whole. + */ + postValidation?: (buffer: string[], pos: number, currentResult: CommandObject, opts: Options) => + boolean | CommandObject; + /** + * Hook to preValidate the input. Useful for validating regardless the definition. When return true, the normal + * validation kicks in, otherwise it is skipped. + */ + preValidation?: (buffer: string[], pos: number, char: string, isSelection: boolean, opts: Options) => + boolean | CommandObject; + /** + * The `staticDefinitionSymbol` option is used to indicate that the static entries in the mask can match a + * certain definition. Especially useful with alternators so that static element in the mask can match + * another alternation. + * + * @default undefined + */ + staticDefinitionSymbol?: string; + /** + * Just in time masking. With the `jitMasking` option you can enable jit masking. The mask will only be + * visible for the user entered characters. + * + * @default false + */ + jitMasking?: boolean; + /** + * Return nothing from the input `value` property when the user hasn't entered anything. If this is false, + * the mask might be returned. + * + * @default true + */ + nullable?: boolean; + /** + * Disable value property patching + * + * @default false + */ + noValuePatching?: boolean; + /** + * Positioning of the caret on click. + * + * Options: + * + * * `none` + * * `lvp` - based on the last valid position (default) + * * `radixFocus` - position caret to radixpoint on initial click + * * `select` - select the whole input + * * `ignore` - ignore the click and continue the mask + * + * @default "lvp" + */ + positionCaretOnClick?: PositionCaretOnClick; + /** + * Apply casing at the mask-level. + * + * @default undefined + */ + casing?: Casing; + /** + * Specify the inputmode - already in place for when browsers start to support them + * https://html.spec.whatwg.org/#input-modalities:-the-inputmode-attribute + * + * @default "verbatim" + */ + inputmode?: InputMode; + /** + * Create a css styleable mask. + * + * You need to include the inputmask.css in your page to use this option. + * + * See the inputmask.css for more info about the used styling. You can override the + * Inputmask.prototype.positionColorMask`if you need some custom positioning. + * + * @default false + */ + colorMask?: boolean; + /** + * Disables predictive text on mobile devices. + * + * What it does: + * + * * changes the input type to password => disables predictive text + * * enables the colorMask option which creates a div, which surrounds the input. So we type in the hidden + * password input and render the mask in the a created div. + * + * To use the colorMask, you need to include the inputmask.css. You might need to add some css-tweaks to make + * it all visually correct in your page. + * + * @default false + */ + disablePredictiveText?: boolean; + /** + * Specify to use the `data-inputmask` attributes or to ignore them. + * + * If you don't use data attributes you can disable the import by specifying `importDataAttributes: false`. + * + * @default true + */ + importDataAttributes?: boolean; + /** + * Shift position of the mask entries on entry and deletion. In some cases shift the mask enties isn't desired. + * + * Ex. date masks. Shifting month to day makes no sense + * + * @default true + */ + shiftPositions?: boolean; + /** + * Minimum value. This needs to be in the same format as the `inputFormat` when used with the datetime alias. + */ + min?: string; + /** + * Maximum value. This needs to be in the same format as the `inputFormat` when used with the datetime alias. + */ + max?: string; + + /** + * Number of fractionalDigits. + * + * Possible values: + * + * * A number describing the number of fractional digits. + * * `*` + * * Quantifier syntax like `2,4`. When the quantifier syntax is used, the `digitsOptional` option is ignored + * + * @default "*" + */ + digits?: string; + /** + * Specify wheter the digits are optional. + * + * @default true + */ + digitsOptional?: boolean; + /** + * Enforces the decimal part when leaving the input field. + * + * @default false + */ + enforceDigitsOnBlur?: boolean; + /** + * Define the grouping of the integer part. + * + * @default 3 + */ + groupSize?: number; + /** + * Enable grouping of the integer part. + * + * @default false + */ + autoGroup?: boolean; + /** + * Allow to enter -. + * + * @default true + */ + allowMinus?: boolean; + /** + * Define your negationSymbol. + * + * @default { front: "-", back: "" } + */ + negationSymbol?: { front: string, back: string }; + /** + * Number of integerDigits + * + * @default "+" + */ + integerDigits?: string; + /** + * Specify wheter the integerdigits are optional. + * + * @default true + */ + integerOptional?: boolean; + /** + * Define a prefix. + * + * @default "" + */ + prefix?: string; + /** + * Define a suffix. + * + * @default "" + */ + suffix?: string; + /** + * Do not allow assumption of decimals input without entering the radixpoint. + * + * @default true + */ + decimalProtect?: boolean; + /** + * Define the step the ctrl-up & ctrl-down must take. + * + * @default 1 + */ + step?: number; + /** + * Make unmasking returning a number instead of a string. + * + * Be warned that using the unmaskAsNumber option together with jQuery.serialize will fail as serialize expects a string. (See issue #1288) + * + * @default false + */ + unmaskAsNumber?: boolean; + /** + * Indicates whether the value passed for initialization is text or a number + * + * @default "text" + */ + inputType?: "text" | "number"; + /** + * Format used to input a date. This option is only effective for the datetime alias. + * + * Supported symbols + * + * * `d` - Day of the month as digits; no leading zero for single-digit days. + * * `dd` - Day of the month as digits; leading zero for single-digit days. + * * `ddd` - Day of the week as a three-letter abbreviation. + * * `dddd` - Day of the week as its full name. + * * `m` - Month as digits; no leading zero for single-digit months. + * * `mm` - Month as digits; leading zero for single-digit months. + * * `mmm` - Month as a three-letter abbreviation. + * * `mmmm` - Month as its full name. + * * `yy` - Year as last two digits; leading zero for years less than 10. + * * `yyyy` - Year as 4 digits. + * * `h` - Hours; no leading zero for single-digit hours (12-hour clock). + * * `hh` - Hours; leading zero for single-digit hours (12-hour clock). + * * `hhh` - Hours; no limit + * * `H` - Hours; no leading zero for single-digit hours (24-hour clock). + * * `HH` - Hours; leading zero for single-digit hours (24-hour clock). + * * `HHH` - Hours; no limit + * * `M` - Minutes; no leading zero for single-digit minutes. Uppercase M unlike CF timeFormat's m to avoid + * conflict with months. + * * `MM` - Minutes; leading zero for single-digit minutes. Uppercase MM unlike CF timeFormat's mm to avoid + * conflict with months. + * * `s` - Seconds; no leading zero for single-digit seconds. + * * `ss` - Seconds; leading zero for single-digit seconds. + * * `l` - Milliseconds. 3 digits. + * * `L` - Milliseconds. 2 digits. + * * `t` - Lowercase, single-character time marker string: a or p. + * * `tt` - Two-character time marker string: am or pm. + * * `T` - Single-character time marker string: A or P. + * * `TT` - Two-character time marker string: AM or PM. + * * `Z` - US timezone abbreviation, e.g. EST or MDT. With non-US timezones or in the Opera browser, the + * GMT/UTC offset is returned, e.g. GMT-0500 + * * `o` - GMT/UTC timezone offset, e.g. -0500 or +0230. + * * `S` - The date's ordinal suffix (st, nd, rd, or th). Works well with d. + * + * @default "isoDateTime" + */ + inputFormat?: string; + /** + * Format of the unmasked value. This is only effective when used with the datetime alias. + */ + outputFormat?: string; + } + + interface Instance { + /** + * Return the default (empty) mask value. + */ + getemptymask(): string; + /** + * The metadata of the actual mask provided in the mask definitions can be obtained by calling getmetadata. If + * only a mask is provided the mask definition will be returned by the getmetadata. + */ + getmetadata(): any; + /** + * Check whether the returned value is masked or not; currently only works reliably when using `jquery.val` fn + * to retrieve the value + */ + hasMaskedValue(): boolean; + /** + * Verify whether the current value is complete or not. + */ + isComplete(): boolean; + /** + * Validate a given value against the mask. + */ + isValid(): boolean; + /** + * Create a mask for the input. + * + * @param el Element selector, a single element or an array of elements. + */ + mask(selectorOrElement: string | HTMLElement | ArrayLike): Instance; + /** + * Get an option on an existing inputmask. + * + * @param key Name of option to retrieve. + */ + option(key: string): any; + /** + * Set an option on an existing inputmask. The option method is intented for adding extra options like + * callbacks, etc at a later time to the mask. + * + * When extra options are set the mask is automatically reapplied, unless you pas true for the `noremask` + * argument. + */ + option(opts: Options, noremask?: boolean): Instance; + /** + * Remove the inputmask. + */ + remove(): void; + /** + * The `setvalue` functionality is to set a value to the inputmask like you would do with `jQuery.val`, BUT it + * will trigger the internal event used by the inputmask always, whatever the case. This is particular useful + * when cloning an inputmask with jQuery.clone. Cloning an inputmask is not a fully functional clone. On the + * first event (`mouseenter`, `focus`, ...) the inputmask can detect if it where cloned and can reactivate the + * masking. However when setting the value with jQuery.val there is none of the events triggered in that case. + * The `setvalue` functionality does this for you. + */ + setValue(value: string): void; + /** + * Gets the unmasked value. + */ + unmaskedvalue(): string; + } + + interface Definition { + validator: string | DefinitionValidator; + casing?: Casing; + cardinality?: number; + placeholder?: string; + definitionSymbol?: string; + } + + interface InsertPosition { + /** + * Position to insert. + */ + pos: number; + /** + * Character to insert. + */ + c: string; + } + + interface CommandObject { + /** + * Position to insert. + */ + pos?: number; + /** + * Character to insert. + */ + c?: string; + /** + * Position of the caret. + */ + caret?: number; + /** + * Position(s) to remove. + */ + remove?: number | number[]; + /** + * Position(s) to add. + */ + insert?: InsertPosition | InsertPosition[]; + /** + * * `true` => refresh validPositions from the complete buffer . + * * `{ start: , end: }` => refresh from start to end. + */ + refreshFromBuffer?: true | { start: number, end: number }; + } + + interface Static { + /** + * Creates a new Inputmask instance. + * + * @param maskOrAlias A mask pattern or a reference to a predefined alias. + * @param opts Mask options. + */ + (maskOrAlias: string, opts?: Options): Instance; + /** + * Creates a new Inputmask instance. + * + * @param opts Mask options. + */ + (opts?: Options): Instance; + + /** + * Creates a new Inputmask instance. + * + * @param maskOrAlias A mask pattern or a reference to a predefined alias. + * @param opts Mask options. + */ + new (maskOrAlias: string, opts?: Options): Instance; + /** + * Creates a new Inputmask instance. + * + * @param opts Mask options. + */ + new (opts?: Options): Instance; + + /** + * Extends the default inputmask options. + */ + extendDefaults(opts: Options): void; + /** + * Add new definitions to this inputmask. + */ + extendDefinitions(definitions: { + [key: string]: Definition, + }): void; + /** + * Extends the set of available mask aliases. + */ + extendAliases(aliases: { + [key: string]: Options, + }): void; + /** + * Instead of masking an input element it is also possible to use the inputmask for formatting given values. + * Think of formatting values to show in jqGrid or on other elements then inputs. + * + * @param value Value to format. + * @param opts Mask options. + */ + format(value: string, opts: Options): string; + /** + * Validate a given value against the mask. + * + * @param value Value to validate. + * @param opts Mask options. + */ + isValid(value: string, opts: Options): boolean; + /** + * Remove the inputmask. + */ + remove(selectorOrElement: string | HTMLElement | ArrayLike): void; + /** + * The setvalue functionality is to set a value to the inputmask like you would do with jQuery.val, BUT it will + * trigger the internal event used by the inputmask always, whatever the case. This is particular usefull when + * cloning an inputmask with jQuery.clone. Cloning an inputmask is not a fully functional clone. On the first + * event (mouseenter, focus, ...) the inputmask can detect if it where cloned and can reactivate the masking. + * However when setting the value with jQuery.val there is none of the events triggered in that case. The + * setvalue functionality does this for you. + */ + setValue(selectorOrElement: string | HTMLElement | ArrayLike, value: string): void; + /** + * Unmask a given value against the mask. + * + * @param value Value to be unmasked. + * @param opts Mask options. + */ + unmask(value: string, opts: Options): string; + } +} + +declare global { + interface HTMLElement { + inputmask?: Inputmask.Instance; + } + + interface JQuery { + /** + * Return the default (empty) mask value. + */ + inputmask(method: "getemptymask"): string; // tslint:disable-line:unified-signatures + /** + * The metadata of the actual mask provided in the mask definitions can be obtained by calling getmetadata. If + * only a mask is provided the mask definition will be returned by the getmetadata. + */ + inputmask(method: "getmetadata"): any; + /** + * Check whether the returned value is masked or not; currently only works reliably when using `jquery.val` fn + * to retrieve the value + */ + inputmask(method: "hasMaskedValue"): boolean; // tslint:disable-line:unified-signatures + /** + * Verify whether the current value is complete or not. + */ + inputmask(method: "isComplete"): boolean; // tslint:disable-line:unified-signatures + /** + * Validate a given value against the mask. + */ + inputmask(method: "isValid"): boolean; // tslint:disable-line:unified-signatures + /** + * Get an option on an existing inputmask. + * + * @param key Name of option to retrieve. + */ + inputmask(method: "option", key: string): any; + /** + * Set an option on an existing inputmask. The option method is intented for adding extra options like + * callbacks, etc at a later time to the mask. + * + * When extra options are set the mask is automatically reapplied, unless you pas true for the `noremask` + * argument. + */ + inputmask(method: "option", opts: Inputmask.Options, noremask?: boolean): Inputmask.Instance; + /** + * Remove the inputmask. + */ + inputmask(method: "remove"): void; + /** + * The `setvalue` functionality is to set a value to the inputmask like you would do with `jQuery.val`, BUT it + * will trigger the internal event used by the inputmask always, whatever the case. This is particular useful + * when cloning an inputmask with jQuery.clone. Cloning an inputmask is not a fully functional clone. On the + * first event (`mouseenter`, `focus`, ...) the inputmask can detect if it where cloned and can reactivate the + * masking. However when setting the value with jQuery.val there is none of the events triggered in that case. + * The `setvalue` functionality does this for you. + */ + inputmask(method: "setValue", value: string): void; + /** + * Gets the unmasked value. + */ + inputmask(method: "unmaskedvalue"): string; // tslint:disable-line:unified-signatures + /** + * Creates a new Inputmask instance. + * + * @param maskOrAlias A mask pattern or a reference to a predefined alias. + * @param opts Mask options. + */ + inputmask(maskOrAlias: string, opts?: Inputmask.Options): Inputmask.Instance; + /** + * Creates a new Inputmask instance. + * + * @param opts Mask options. + */ + inputmask(opts?: Inputmask.Options): Inputmask.Instance; + } +} + +declare const Inputmask: Inputmask.Static; +export = Inputmask; +export as namespace Inputmask; diff --git a/types/inputmask/test/inputmask-global-tests.ts b/types/inputmask/test/inputmask-global-tests.ts new file mode 100644 index 0000000000..47cb434a5a --- /dev/null +++ b/types/inputmask/test/inputmask-global-tests.ts @@ -0,0 +1,143 @@ +Inputmask({ + mask: "(999) 999-9999", + placeholder: "_", + optionalmarker: [ "[", "]" ], + quantifiermarker: [ "{", "}" ], + groupmarker: [ "(", ")" ], + alternatormarker: "|", + escapeChar: "\\", + regex: undefined, + oncomplete: () => {}, + onincomplete: () => {}, + oncleared: () => {}, + repeat: 0, + greedy: false, + autoUnmask: false, + removeMaskOnSubmit: false, + clearMaskOnLostFocus: true, + insertMode: true, + clearIncomplete: false, + alias: undefined, + onBeforeMask: undefined, + onBeforePaste: (pastedValue: string, opts: Inputmask.Options) => pastedValue, + onBeforeWrite: undefined, + onUnMask: undefined, + showMaskOnFocus: true, + showMaskOnHover: true, + onKeyValidation: () => {}, + skipOptionalPartCharacter: " ", + numericInput: false, + rightAlign: false, + undoOnEscape: true, + keepStatic: null, + positionCaretOnTab: true, + tabThrough: false, + supportsInputType: [ "text", "tel", "url", "password", "search" ], + ignorables: [ 8, 9, 13, 19, 27, 33, 34, 35, 36, 37, 38, 39, 40, 45, 46, 93, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 0, 229 ], + isComplete: undefined, + preValidation: undefined, + postValidation: undefined, + staticDefinitionSymbol: undefined, + jitMasking: false, + nullable: true, + noValuePatching: false, + casing: undefined, + colorMask: false, + disablePredictiveText: false, + importDataAttributes: true, + shiftPositions: true, + digits: "*", + digitsOptional: true, + enforceDigitsOnBlur: false, + radixPoint: ".", + positionCaretOnClick: "radixFocus", + groupSize: 3, + groupSeparator: "", + autoGroup: false, + allowMinus: true, + negationSymbol: { + front: "-", + back: "" + }, + integerDigits: "+", + integerOptional: true, + prefix: "", + suffix: "", + decimalProtect: true, + min: undefined, + max: undefined, + step: 1, + unmaskAsNumber: false, + inputType: "text", + inputmode: "numeric", +}).mask("selector"); + +Inputmask("9-a{1,3}9{1,3}").mask("selector"); +Inputmask("9", { repeat: 10 }).mask("selector"); + +Inputmask({ regex: "\\d*" }).mask("selector"); +Inputmask({ regex: String.raw`\d*` }).mask("selector"); + +function testMask() { + const inputElement = document.querySelector("input"); + if (inputElement) { + Inputmask().mask(inputElement); + Inputmask().mask([inputElement, inputElement]); + Inputmask().mask(document.querySelectorAll("input")); + Inputmask().mask(document.getElementsByTagName("input")); + } +} + +Inputmask.extendDefaults({ + autoUnmask: true +}); +Inputmask.extendDefinitions({ + A: { + validator: "[A-Za-z\u0410-\u044F\u0401\u0451\u00C0-\u00FF\u00B5]", + casing: "upper" + }, + '+': { + validator: "[0-9A-Za-z\u0410-\u044F\u0401\u0451\u00C0-\u00FF\u00B5]", + casing: "upper" + } +}); +Inputmask.extendAliases({ + numeric: { + mask: "r", + greedy: false + } +}); + +Inputmask.extendDefinitions({ + f: { + validator: "[0-9\(\)\.\+/ ]" + }, + j: { + validator: "(19|20)\\d{2}" + }, + x: { + validator: "[0-2]", + definitionSymbol: "i" + }, + y: { + validator: (chrs: string, buffer: string[], pos: number) => { + const valExp2 = new RegExp("2[0-5]|[01][0-9]"); + return valExp2.test(buffer[pos - 1] + chrs); + }, + definitionSymbol: "i" + }, + z: { + validator: (chrs: string, buffer: string[], pos: number) => { + const valExp3 = new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]"); + return valExp3.test(buffer[pos - 2] + buffer[pos - 1] + chrs); + }, + definitionSymbol: "i" + } +}); + +function testElement(el: HTMLElement) { + const id: string = el.id; + if (el.inputmask) { + const unmasked: string = el.inputmask.unmaskedvalue(); + } +} diff --git a/types/inputmask/test/inputmask-jquery-tests.ts b/types/inputmask/test/inputmask-jquery-tests.ts new file mode 100644 index 0000000000..2ded13c9d5 --- /dev/null +++ b/types/inputmask/test/inputmask-jquery-tests.ts @@ -0,0 +1,81 @@ +/// + +$("#testmask").inputmask("remove"); + +$(":input").inputmask(); + +let value: string = $("#testmask").inputmask("unmaskedvalue"); + +$("#testmask").inputmask({ + mask: "(999) 999-9999", + placeholder: "_", + optionalmarker: [ "[", "]" ], + quantifiermarker: [ "{", "}" ], + groupmarker: [ "(", ")" ], + alternatormarker: "|", + escapeChar: "\\", + regex: undefined, + oncomplete: () => {}, + onincomplete: () => {}, + oncleared: () => {}, + repeat: 0, + greedy: false, + autoUnmask: false, + removeMaskOnSubmit: false, + clearMaskOnLostFocus: true, + insertMode: true, + clearIncomplete: false, + alias: undefined, + onBeforeMask: undefined, + onBeforePaste: (pastedValue: string, opts: Inputmask.Options) => pastedValue, + onBeforeWrite: undefined, + onUnMask: undefined, + showMaskOnFocus: true, + showMaskOnHover: true, + onKeyValidation: () => {}, + skipOptionalPartCharacter: " ", + numericInput: false, + rightAlign: false, + undoOnEscape: true, + keepStatic: null, + positionCaretOnTab: true, + tabThrough: false, + supportsInputType: [ "text", "tel", "url", "password", "search" ], + ignorables: [ 8, 9, 13, 19, 27, 33, 34, 35, 36, 37, 38, 39, 40, 45, 46, 93, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 0, 229 ], + isComplete: undefined, + preValidation: undefined, + postValidation: undefined, + staticDefinitionSymbol: undefined, + jitMasking: false, + nullable: true, + noValuePatching: false, + casing: undefined, + colorMask: false, + disablePredictiveText: false, + importDataAttributes: true, + shiftPositions: true, + digits: "*", + digitsOptional: true, + enforceDigitsOnBlur: false, + radixPoint: ".", + positionCaretOnClick: "radixFocus", + groupSize: 3, + groupSeparator: "", + autoGroup: false, + allowMinus: true, + negationSymbol: { + front: "-", + back: "" + }, + integerDigits: "+", + integerOptional: true, + prefix: "", + suffix: "", + decimalProtect: true, + min: undefined, + max: undefined, + step: 1, + unmaskAsNumber: false, + inputType: "text", + inputmode: "numeric", +}); diff --git a/types/inputmask/test/inputmask-module-tests.ts b/types/inputmask/test/inputmask-module-tests.ts new file mode 100644 index 0000000000..11ceaa1cbe --- /dev/null +++ b/types/inputmask/test/inputmask-module-tests.ts @@ -0,0 +1,145 @@ +import * as Inputmask from "inputmask"; + +Inputmask({ + mask: "(999) 999-9999", + placeholder: "_", + optionalmarker: [ "[", "]" ], + quantifiermarker: [ "{", "}" ], + groupmarker: [ "(", ")" ], + alternatormarker: "|", + escapeChar: "\\", + regex: undefined, + oncomplete: () => {}, + onincomplete: () => {}, + oncleared: () => {}, + repeat: 0, + greedy: false, + autoUnmask: false, + removeMaskOnSubmit: false, + clearMaskOnLostFocus: true, + insertMode: true, + clearIncomplete: false, + alias: undefined, + onBeforeMask: undefined, + onBeforePaste: (pastedValue: string, opts: Inputmask.Options) => pastedValue, + onBeforeWrite: undefined, + onUnMask: undefined, + showMaskOnFocus: true, + showMaskOnHover: true, + onKeyValidation: () => {}, + skipOptionalPartCharacter: " ", + numericInput: false, + rightAlign: false, + undoOnEscape: true, + keepStatic: null, + positionCaretOnTab: true, + tabThrough: false, + supportsInputType: [ "text", "tel", "url", "password", "search" ], + ignorables: [ 8, 9, 13, 19, 27, 33, 34, 35, 36, 37, 38, 39, 40, 45, 46, 93, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 0, 229 ], + isComplete: undefined, + preValidation: undefined, + postValidation: undefined, + staticDefinitionSymbol: undefined, + jitMasking: false, + nullable: true, + noValuePatching: false, + casing: undefined, + colorMask: false, + disablePredictiveText: false, + importDataAttributes: true, + shiftPositions: true, + digits: "*", + digitsOptional: true, + enforceDigitsOnBlur: false, + radixPoint: ".", + positionCaretOnClick: "radixFocus", + groupSize: 3, + groupSeparator: "", + autoGroup: false, + allowMinus: true, + negationSymbol: { + front: "-", + back: "" + }, + integerDigits: "+", + integerOptional: true, + prefix: "", + suffix: "", + decimalProtect: true, + min: undefined, + max: undefined, + step: 1, + unmaskAsNumber: false, + inputType: "text", + inputmode: "numeric", +}).mask("selector"); + +Inputmask("9-a{1,3}9{1,3}").mask("selector"); +Inputmask("9", { repeat: 10 }).mask("selector"); + +Inputmask({ regex: "\\d*" }).mask("selector"); +Inputmask({ regex: String.raw`\d*` }).mask("selector"); + +function testMask() { + const inputElement = document.querySelector("input"); + if (inputElement) { + Inputmask().mask(inputElement); + Inputmask().mask([inputElement, inputElement]); + Inputmask().mask(document.querySelectorAll("input")); + Inputmask().mask(document.getElementsByTagName("input")); + } +} + +Inputmask.extendDefaults({ + autoUnmask: true +}); +Inputmask.extendDefinitions({ + A: { + validator: "[A-Za-z\u0410-\u044F\u0401\u0451\u00C0-\u00FF\u00B5]", + casing: "upper" + }, + '+': { + validator: "[0-9A-Za-z\u0410-\u044F\u0401\u0451\u00C0-\u00FF\u00B5]", + casing: "upper" + } +}); +Inputmask.extendAliases({ + numeric: { + mask: "r", + greedy: false + } +}); + +Inputmask.extendDefinitions({ + f: { + validator: "[0-9\(\)\.\+/ ]" + }, + j: { + validator: "(19|20)\\d{2}" + }, + x: { + validator: "[0-2]", + definitionSymbol: "i" + }, + y: { + validator: (chrs: string, buffer: string[], pos: number) => { + const valExp2 = new RegExp("2[0-5]|[01][0-9]"); + return valExp2.test(buffer[pos - 1] + chrs); + }, + definitionSymbol: "i" + }, + z: { + validator: (chrs: string, buffer: string[], pos: number) => { + const valExp3 = new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]"); + return valExp3.test(buffer[pos - 2] + buffer[pos - 1] + chrs); + }, + definitionSymbol: "i" + } +}); + +function testElement(el: HTMLElement) { + const id: string = el.id; + if (el.inputmask) { + const unmasked: string = el.inputmask.unmaskedvalue(); + } +} diff --git a/types/inputmask/tsconfig.json b/types/inputmask/tsconfig.json new file mode 100644 index 0000000000..f65ca1af98 --- /dev/null +++ b/types/inputmask/tsconfig.json @@ -0,0 +1,26 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "test/inputmask-jquery-tests.ts", + "test/inputmask-global-tests.ts", + "test/inputmask-module-tests.ts" + ] +} diff --git a/types/terser/tslint.json b/types/inputmask/tslint.json similarity index 100% rename from types/terser/tslint.json rename to types/inputmask/tslint.json diff --git a/types/insert-module-globals/index.d.ts b/types/insert-module-globals/index.d.ts index 1fb0b6e7ba..d9f30cf834 100644 --- a/types/insert-module-globals/index.d.ts +++ b/types/insert-module-globals/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for insert-module-globals 7.0 -// Project: https://github.com/substack/insert-module-globals +// Project: https://github.com/browserify/insert-module-globals // Definitions by: Leonard Thieu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/intercom-web/index.d.ts b/types/intercom-web/index.d.ts index 3a40451a3a..7eaf555a13 100755 --- a/types/intercom-web/index.d.ts +++ b/types/intercom-web/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Intercom Web API 2.8 +// Type definitions for non-npm package Intercom Web API 2.8 // Project: https://docs.intercom.io/ // configure-intercom-for-your-product-or-site/ // customize-the-intercom-messenger/the-intercom-javascript-api diff --git a/types/interpret/index.d.ts b/types/interpret/index.d.ts index de51c842f8..875276dca4 100644 --- a/types/interpret/index.d.ts +++ b/types/interpret/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for interpret 1.1 -// Project: https://github.com/tkellen/node-interpret +// Project: https://github.com/gulpjs/interpret // Definitions by: BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/iobroker/index.d.ts b/types/iobroker/index.d.ts index 0075f8a273..71fa1b4d78 100644 --- a/types/iobroker/index.d.ts +++ b/types/iobroker/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for ioBroker 1.4 -// Project: https://github.com/ioBroker/ioBroker +// Project: https://github.com/ioBroker/ioBroker, http://iobroker.net // Definitions by: AlCalzone // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.2 @@ -1477,7 +1477,7 @@ declare global { * @param options (optional) Some internal options. * @param callback Is called when the operation has finished (successfully or not) */ - getDevicesAsync(options?: unknown): Promise>>; + getDevicesAsync(options?: unknown): Promise; /** * Returns a list of all channels in this adapter instance @@ -1502,9 +1502,9 @@ declare global { * @param parentDevice (optional) Name of the parent device to filter the channels by * @param options (optional) Some internal options. */ - getChannelsOfAsync(): Promise>>; + getChannelsOfAsync(): Promise; // tslint:disable-next-line:unified-signatures - getChannelsOfAsync(parentDevice: string, options?: unknown): Promise>>; + getChannelsOfAsync(parentDevice: string, options?: unknown): Promise; /** * Returns a list of all states in this adapter instance @@ -1524,9 +1524,9 @@ declare global { * @param options (optional) Some internal options. */ // tslint:disable:unified-signatures - getStatesOfAsync(): Promise>>; - getStatesOfAsync(parentDevice: string, parentChannel?: string): Promise>>; - getStatesOfAsync(parentDevice: string, parentChannel: string, options?: unknown): Promise>>; + getStatesOfAsync(): Promise; + getStatesOfAsync(parentDevice: string, parentChannel?: string): Promise; + getStatesOfAsync(parentDevice: string, parentChannel: string, options?: unknown): Promise; // tslint:enable:unified-signatures // ============================== @@ -1667,7 +1667,7 @@ declare global { value: T; } // This is a version used by GetDevices/GetChannelsOf/GetStatesOf - type GetObjectsCallback3 = (err: string | null, result?: Array>) => void; + type GetObjectsCallback3 = (err: string | null, result?: T[]) => void; type SecondParameterOf any> = T extends (arg0: any, arg1: infer R, ...args: any[]) => any ? R : never; /** Infers the return type from a callback-style API and strips out null and undefined */ diff --git a/types/iobroker/iobroker-tests.ts b/types/iobroker/iobroker-tests.ts index a2c89cb893..0302a5041a 100644 --- a/types/iobroker/iobroker-tests.ts +++ b/types/iobroker/iobroker-tests.ts @@ -286,3 +286,31 @@ function repro2() { }; adapter.extendForeignObject("obj.id", obj, (err) => { }); } + +// repro from https://github.com/ioBroker/adapter-core/issues/6 +function repro3() { + adapter.getDevices((error, deviceList) => { + if (deviceList) { + deviceList; // $ExpectType DeviceObject[] + } + }); + adapter.getDevicesAsync().then(list => { + list; // $ExpectType DeviceObject[] + }); + adapter.getChannels((error, channelList) => { + if (channelList) { + channelList; // $ExpectType ChannelObject[] + } + }); + adapter.getChannelsOfAsync().then(list => { + list; // $ExpectType ChannelObject[] + }); + adapter.getStatesOf((error, stateList) => { + if (stateList) { + stateList; // $ExpectType StateObject[] + } + }); + adapter.getStatesOfAsync().then(list => { + list; // $ExpectType StateObject[] + }); +} diff --git a/types/ion-rangeslider/index.d.ts b/types/ion-rangeslider/index.d.ts index 9788741b77..3b5a8d8d75 100644 --- a/types/ion-rangeslider/index.d.ts +++ b/types/ion-rangeslider/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for ion-rangeslider 2.2 -// Project: https://github.com/IonDen/ion.rangeSlider/ +// Project: https://github.com/IonDen/ion.rangeSlider/, http://ionden.com/a/plugins/ion.rangeslider/en.html // Definitions by: Karel van de Plassche // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/iopipe__iopipe/index.d.ts b/types/iopipe__iopipe/index.d.ts index 401e78174e..fc2fed4f9e 100644 --- a/types/iopipe__iopipe/index.d.ts +++ b/types/iopipe__iopipe/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for iopipe__iopipe 1.12 -// Project: https://github.com/iopipe/iopipe (Does not have to be to GitHub, but prefer linking to a source code repository rather than to a project website.) +// Project: https://github.com/iopipe/iopipe, https://github.com/iopipe/the-meta-package // Definitions by: Javon Harper // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/irc/index.d.ts b/types/irc/index.d.ts index a7b163ca6e..6c222c428d 100644 --- a/types/irc/index.d.ts +++ b/types/irc/index.d.ts @@ -8,8 +8,8 @@ /** This library provides IRC client functionality. */ import events = require('events'); -import crypto = require('crypto'); import net = require('net'); +import tls = require('tls'); /** This library provides IRC client functionality. */ declare namespace NodeIRC { @@ -287,7 +287,7 @@ declare namespace NodeIRC { * Should SSL be used? Can either be true or crypto credentials. * @default false */ - secure?: boolean | crypto.Credentials; + secure?: boolean | tls.SecureContext; /** * Should we accept self-signed certificates? diff --git a/types/isomorphic-fetch/index.d.ts b/types/isomorphic-fetch/index.d.ts index 7fbc0d8ed2..948296cff6 100644 --- a/types/isomorphic-fetch/index.d.ts +++ b/types/isomorphic-fetch/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for isomorphic-fetch 0.0 -// Project: https://github.com/matthew-andrews/isomorphic-fetch +// Project: https://github.com/matthew-andrews/isomorphic-fetch/issues // Definitions by: Todd Lucas // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/isotope-layout/index.d.ts b/types/isotope-layout/index.d.ts index 66d4a21d52..5662da48f7 100644 --- a/types/isotope-layout/index.d.ts +++ b/types/isotope-layout/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for isotope 3.0 -// Project: http://isotope.metafizzy.co/ +// Project: https://isotope.metafizzy.co // Definitions by: Anže Videnič // Mălin Brândușe // SPWizard01 diff --git a/types/jasmine-data_driven_tests/index.d.ts b/types/jasmine-data_driven_tests/index.d.ts index 6e6a070eaa..8c719de652 100644 --- a/types/jasmine-data_driven_tests/index.d.ts +++ b/types/jasmine-data_driven_tests/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Jasmine Data Driven Tests 1.0 -// Project: https://github.com/gburghardt/jasmine-data_driven_tests +// Project: https://github.com/gburghardt/jasmine-data_driven_tests, https://github.com/dakolech/jasmine-data_driven_tests // Definitions by: Anthony MacKinnon // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/jasmine-enzyme/index.d.ts b/types/jasmine-enzyme/index.d.ts index bc37eda9bf..d64a73e6f6 100644 --- a/types/jasmine-enzyme/index.d.ts +++ b/types/jasmine-enzyme/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jasmine-enzyme 3.6 -// Project: https://github.com/blainekasten/enzyme-matchers/blob/master/packages/jasmine-enzyme/README.md +// Project: https://github.com/formidablelabs/enzyme-matchers/packages/jasmine-enzyme // Definitions by: Umar Bolatov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/jasmine/index.d.ts b/types/jasmine/index.d.ts index f87dd67ece..1bc099bcad 100644 --- a/types/jasmine/index.d.ts +++ b/types/jasmine/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Jasmine 3.3 -// Project: https://jasmine.github.io/ +// Project: http://jasmine.github.io // Definitions by: Boris Yankov // Theodore Brown // David Pärsson diff --git a/types/jasmine_dom_matchers/index.d.ts b/types/jasmine_dom_matchers/index.d.ts index b3a625f08c..f60cd4265e 100644 --- a/types/jasmine_dom_matchers/index.d.ts +++ b/types/jasmine_dom_matchers/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jasmine_dom_matchers 1.4 -// Project: https://github.com/charleshansen/jasmine_dom_matchers +// Project: http://github.com/charleshansen/jasmine_dom_matchers // Definitions by: Yaroslav Admin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/jest-diff/index.d.ts b/types/jest-diff/index.d.ts index b296c07f91..022626ab2c 100644 --- a/types/jest-diff/index.d.ts +++ b/types/jest-diff/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jest-diff 20.0 -// Project: https://github.com/facebook/jest/tree/master/packages/jest-diff +// Project: https://github.com/facebook/jest/tree/master/packages/jest-diff, https://github.com/facebook/jest // Definitions by: Alex Coles // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/jest-docblock/index.d.ts b/types/jest-docblock/index.d.ts index 6e5c7d7eb0..6c1e59f2d0 100644 --- a/types/jest-docblock/index.d.ts +++ b/types/jest-docblock/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jest-docblock 21.0 -// Project: https://github.com/facebook/jest/tree/master/packages/jest-docblock +// Project: https://github.com/facebook/jest/tree/master/packages/jest-docblock, https://github.com/facebook/jest // Definitions by: Ika // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/jest-each/index.d.ts b/types/jest-each/index.d.ts index f370d16e6e..3d6ecf1609 100644 --- a/types/jest-each/index.d.ts +++ b/types/jest-each/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jest-each 0.3 -// Project: https://github.com/mattphillips/jest-each +// Project: https://github.com/facebook/jest // Definitions by: Michael Utz , Nick McCurdy // Definitions: // TypeScript Version: 2.2 diff --git a/types/jest-get-type/index.d.ts b/types/jest-get-type/index.d.ts index e43fbcf7ab..ecc0a3de61 100644 --- a/types/jest-get-type/index.d.ts +++ b/types/jest-get-type/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jest-get-type 21.0 -// Project: https://github.com/facebook/jest/tree/master/packages/jest-get-type +// Project: https://github.com/facebook/jest/tree/master/packages/jest-get-type, https://github.com/facebook/jest // Definitions by: Alex Coles // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/jest-in-case/jest-in-case-tests.ts b/types/jest-in-case/jest-in-case-tests.ts index ac99bc4683..b38ccff0bc 100644 --- a/types/jest-in-case/jest-in-case-tests.ts +++ b/types/jest-in-case/jest-in-case-tests.ts @@ -13,8 +13,8 @@ function subtract(minuend: number, subtrahend: number) { beforeEach(() => { jest.spyOn(global, 'describe').mockImplementation((title, fn) => (fn as () => void)()); jest.spyOn(global, 'test').mockImplementation((name, fn) => (fn as () => void)()); - global.test.skip = jest.fn((name, fn) => fn()); - global.test.only = jest.fn((name, fn) => fn()); + global.test.skip = jest.fn((_: string, fn: jest.EmptyFunction) => fn()); + global.test.only = jest.fn((_: string, fn: jest.EmptyFunction) => fn()); }); afterEach(() => { diff --git a/types/jest-matcher-utils/index.d.ts b/types/jest-matcher-utils/index.d.ts index 54e6db67b3..069c4b6c9a 100644 --- a/types/jest-matcher-utils/index.d.ts +++ b/types/jest-matcher-utils/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jest-matcher-utils 21.0 -// Project: https://github.com/facebook/jest/tree/master/packages/jest-get-type +// Project: https://github.com/facebook/jest // Definitions by: Alex Coles // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/jest-plugin-context/index.d.ts b/types/jest-plugin-context/index.d.ts index 814b334b12..10f486fb8e 100644 --- a/types/jest-plugin-context/index.d.ts +++ b/types/jest-plugin-context/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jest-plugin-context 2.9 -// Project: https://github.com/negativetwelve/jest-plugins/tree/master/packages/jest-plugin-context +// Project: https://github.com/negativetwelve/jest-plugins/tree/master/packages/jest-plugin-context, https://github.com/negativetwelve/jest-plugins // Definitions by: Jonas Heinrich // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.0 diff --git a/types/jest-plugin-set/index.d.ts b/types/jest-plugin-set/index.d.ts index 05d96335cb..f822544ed2 100644 --- a/types/jest-plugin-set/index.d.ts +++ b/types/jest-plugin-set/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jest-plugin-set 2.9 -// Project: https://github.com/negativetwelve/jest-plugins/tree/master/packages/jest-plugin-set +// Project: https://github.com/negativetwelve/jest-plugins/tree/master/packages/jest-plugin-set, https://github.com/negativetwelve/jest-plugins // Definitions by: Jonas Heinrich // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/jest-validate/index.d.ts b/types/jest-validate/index.d.ts index 5ad3d9b4d3..477e475182 100644 --- a/types/jest-validate/index.d.ts +++ b/types/jest-validate/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jest-validate 21.0 -// Project: https://github.com/facebook/jest/tree/master/packages/jest-validate +// Project: https://github.com/facebook/jest/tree/master/packages/jest-validate, https://github.com/facebook/jest // Definitions by: Ika // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/jest-when/index.d.ts b/types/jest-when/index.d.ts index 386911ed7c..9a9fb9a55f 100644 --- a/types/jest-when/index.d.ts +++ b/types/jest-when/index.d.ts @@ -11,10 +11,10 @@ export interface WhenMock extends jest.Mock; mockReturnValue(value: T): WhenMock; mockReturnValueOnce(value: T): WhenMock; - mockResolvedValue(value: T | PromiseLike): WhenMock, Y>; - mockResolvedValueOnce(value: T | PromiseLike): WhenMock, Y>; - mockRejectedValue(value: T | PromiseLike): WhenMock, Y>; - mockRejectedValueOnce(value: T | PromiseLike): WhenMock, Y>; + mockResolvedValue(value: jest.ResolvedValue): WhenMock; + mockResolvedValueOnce(value: jest.ResolvedValue): WhenMock; + mockRejectedValue(value: jest.RejectedValue): WhenMock; + mockRejectedValueOnce(value: jest.RejectedValue): WhenMock; } export type When = (fn: jest.Mock) => WhenMock; diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index cfc9be2070..f0382d2cb5 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -21,6 +21,8 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.0 +/// + declare var beforeAll: jest.Lifecycle; declare var beforeEach: jest.Lifecycle; declare var afterAll: jest.Lifecycle; @@ -36,8 +38,6 @@ declare var xtest: jest.It; declare const expect: jest.Expect; -type ArgsType = T extends (...args: infer A) => any ? A : never; - interface NodeRequire { /** * Returns the actual module instead of a mock, bypassing all checks on @@ -121,7 +121,7 @@ declare namespace jest { /** * Creates a mock function. Optionally takes a mock implementation. */ - function fn(implementation: (...args: Y) => T): Mock; + function fn(implementation?: (...args: Y) => T): Mock; /** * Use the automatic mocking system to generate a mocked version of the given module. */ @@ -154,6 +154,11 @@ declare namespace jest { * useful to isolate modules where local state might conflict between tests. */ function resetModules(): typeof jest; + /** + * Runs failed tests n-times until they pass or until the max number of retries is exhausted. + * This only works with jest-circus! + */ + function retryTimes(numRetries: number): typeof jest; /** * Exhausts tasks queued by setImmediate(). */ @@ -215,9 +220,9 @@ declare namespace jest { * spy.mockRestore(); * }); */ - function spyOn(object: T, method: M, accessType: 'get'): SpyInstance; - function spyOn(object: T, method: M, accessType: 'set'): SpyInstance; - function spyOn(object: T, method: M): T[M] extends (...args: any[]) => any ? SpyInstance, ArgsType> : never; + function spyOn>(object: T, method: M, accessType: 'get'): SpyInstance; + function spyOn>(object: T, method: M, accessType: 'set'): SpyInstance; + function spyOn>(object: T, method: M): T[M] extends (...args: any[]) => any ? SpyInstance, ArgsType> : never; /** * Indicates that the module system should never return a mocked version of * the specified module from require() (e.g. that it should always return the real module). @@ -237,6 +242,12 @@ declare namespace jest { } type EmptyFunction = () => void; + type ArgsType = T extends (...args: infer A) => any ? A : never; + type RejectedValue = T extends PromiseLike ? any : never; + type ResolvedValue = T extends PromiseLike ? U | T : never; + // see https://github.com/Microsoft/TypeScript/issues/25215 + type NonFunctionPropertyNames = { [K in keyof T]: T[K] extends (...args: any[]) => any ? never : K }[keyof T] & string; + type FunctionPropertyNames = { [K in keyof T]: T[K] extends (...args: any[]) => any ? K : never }[keyof T] & string; interface DoneCallback { (...args: any[]): any; @@ -346,6 +357,7 @@ declare namespace jest { utils: { readonly EXPECTED_COLOR: (text: string) => string; readonly RECEIVED_COLOR: (text: string) => string; + diff: typeof import('jest-diff'); ensureActualIsNumber(actual: any, matcherName?: string): void; ensureExpectedIsNumber(actual: any, matcherName?: string): void; ensureNoExpected(actual: any, matcherName?: string): void; @@ -804,7 +816,7 @@ declare namespace jest { * myApi.myApiMethod.mockImplementation(() => "test"); */ type Mocked = { - [P in keyof T]: T[P] & MockInstance>; + [P in keyof T]: T[P] extends (...args: any[]) => any ? MockInstance, ArgsType>: T[P]; } & T; interface MockInstance { @@ -912,7 +924,7 @@ declare namespace jest { /** * Simple sugar function for: `jest.fn().mockImplementation(() => Promise.resolve(value));` */ - mockResolvedValue(value: T | PromiseLike): Mock, Y>; + mockResolvedValue(value: ResolvedValue): Mock; /** * Simple sugar function for: `jest.fn().mockImplementationOnce(() => Promise.resolve(value));` * @@ -932,7 +944,7 @@ declare namespace jest { * }); * */ - mockResolvedValueOnce(value: T | PromiseLike): Mock, Y>; + mockResolvedValueOnce(value: ResolvedValue): Mock; /** * Simple sugar function for: `jest.fn().mockImplementation(() => Promise.reject(value));` * @@ -944,7 +956,7 @@ declare namespace jest { * await asyncMock(); // throws "Async error" * }); */ - mockRejectedValue(value: any): Mock, Y>; + mockRejectedValue(value: RejectedValue): Mock; /** * Simple sugar function for: `jest.fn().mockImplementationOnce(() => Promise.reject(value));` @@ -962,24 +974,33 @@ declare namespace jest { * }); * */ - mockRejectedValueOnce(value: any): Mock, Y>; + mockRejectedValueOnce(value: RejectedValue): Mock; } /** - * Represents the result of a single call to a mock function. + * Represents the result of a single call to a mock function with a return value. */ - interface MockResult { - /** - * True if the function threw. - * False if the function returned. - */ - isThrow: boolean; - /** - * The value that was either thrown or returned by the function. - */ + interface MockResultReturn { + type: 'return'; + value: T; + } + /** + * Represents the result of a single incomplete call to a mock function. + */ + interface MockResultIncomplete { + type: 'incomplete'; + value: undefined; + } + /** + * Represents the result of a single call to a mock function with a thrown error. + */ + interface MockResultThrow { + type: 'throw'; value: any; } + type MockResult = MockResultReturn | MockResultThrow | MockResultIncomplete; + interface MockContext { calls: Y[]; instances: T[]; @@ -987,7 +1008,7 @@ declare namespace jest { /** * List of results of calls to the mock function. */ - results: MockResult[]; + results: Array>; } } diff --git a/types/jest/jest-tests.ts b/types/jest/jest-tests.ts index c2e930c26f..69e68ab6f7 100644 --- a/types/jest/jest-tests.ts +++ b/types/jest/jest-tests.ts @@ -267,6 +267,7 @@ jest .mock("moduleName", jest.fn(), { virtual: true }) .resetModuleRegistry() .resetModules() + .retryTimes(3) .runAllImmediates() .runAllTicks() .runAllTimers() @@ -307,10 +308,15 @@ const mock7 = jest.fn((arg: number) => arg); const mock8: jest.Mock = jest.fn((arg: number) => arg); // $ExpectType Mock, [number, string, {}, [], boolean]> const mock9 = jest.fn((a: number, _b: string, _c: {}, _iReallyDontCare: [], _makeItStop: boolean) => Promise.resolve(_makeItStop)); -// $ExpectType Mock -const mock10 = jest.fn((arg: never) => { throw new Error(arg); }); +// $ExpectType Mock +const mock10 = jest.fn(() => { throw new Error(); }); // $ExpectType Mock const mock11 = jest.fn((arg: unknown) => arg); +interface TestApi { + test(x: number): string; +} +// $ExpectType Mock +const mock12 = jest.fn, jest.ArgsType>(); // $ExpectType number mock1('test'); @@ -360,24 +366,35 @@ const spiedTarget = { class SpiedTargetClass { private _value = 3; + private _value2 = ''; get value() { return this._value; } set value(value) { this._value = value; } + get value2() { + return this._value2; + } + set value2(value2) { + this._value2 = value2; + } } const spiedTarget2 = new SpiedTargetClass(); +// $ExpectError +jest.spyOn(spiedTarget, "setValue", "get"); +// $ExpectError +jest.spyOn(spiedTarget2, "value"); + const spy1 = jest.spyOn(spiedTarget, "returnsVoid"); -const spy2 = jest.spyOn(spiedTarget, "returnsVoid", "get"); const spy3 = jest.spyOn(spiedTarget, "returnsString"); const spy1Name: string = spy1.getMockName(); -const spy2Calls: any[][] = spy2.mock.calls; +const spy1Calls: Array<[]> = spy1.mock.calls; -spy2.mockClear(); -spy2.mockReset(); +spy1.mockClear(); +spy1.mockReset(); const spy3Mock = spy3 .mockImplementation(() => "") @@ -412,6 +429,74 @@ const spy6 = jest.spyOn(spiedTarget2, "value", "set"); // should compile jest.fn().mockImplementation((test: number) => test); +jest.fn().mockResolvedValue(1); + +interface Type1 { a: number; } +interface Type2 { b: number; } +class TestMocked { + field: string; + test1(x: Type1): Promise { + return Promise.resolve(x); + } + test2(x: Promise): Promise { + return x; + } + test3(x: Promise): Promise { + return x.then(() => ({ b: 1 })); + } + test4(x: Type1): Type1 { + return x; + } +} + +const mocked: jest.Mocked = new TestMocked() as any; +mocked.test1.mockImplementation(() => Promise.resolve({ a: 1 })); +mocked.test1.mockReturnValue(Promise.resolve({ a: 1 })); +// $ExpectType Mock, [Type1]> +mocked.test1.mockResolvedValue({ a: 1 }); +mocked.test1.mockResolvedValueOnce({ a: 1 }); +// $ExpectType Mock, [Type1]> +mocked.test1.mockResolvedValue(Promise.resolve({ a: 1 })); +mocked.test1.mockResolvedValueOnce(Promise.resolve({ a: 1 })); +// $ExpectType Mock, [Promise]> +mocked.test2.mockResolvedValue({ a: 1 }); +mocked.test2.mockResolvedValueOnce({ a: 1 }); +// $ExpectType Mock, [Promise]> +mocked.test2.mockResolvedValue(Promise.resolve({ a: 1 })); +mocked.test2.mockResolvedValueOnce(Promise.resolve({ a: 1 })); +// $ExpectType Mock, [Promise]> +mocked.test3.mockResolvedValue({ b: 1 }); +mocked.test3.mockResolvedValueOnce({ b: 1 }); +// $ExpectType Mock, [Promise]> +mocked.test3.mockResolvedValue(Promise.resolve({ b: 1 })); +mocked.test3.mockResolvedValueOnce(Promise.resolve({ b: 1 })); +mocked.test3.mockRejectedValue(new Error()); +mocked.test3.mockRejectedValueOnce(new Error()); +// $ExpectError +mocked.test4.mockResolvedValue({ a: 1 }); +// $ExpectError +mocked.test4.mockResolvedValueOnce({ a: 1 }); +// $ExpectError +mocked.test4.mockResolvedValue(Promise.resolve({ a: 1 })); +// $ExpectError +mocked.test4.mockResolvedValueOnce(Promise.resolve({ a: 1 })); +// $ExpectError +mocked.test4.mockRejectedValue(new Error()); +// $ExpectError +mocked.test4.mockRejectedValueOnce(new Error()); + +const mockResult = jest.fn(() => 1).mock.results[0]; +switch (mockResult.type) { + case 'return': + mockResult.value; // $ExpectType number + break; + case 'incomplete': + mockResult.value; // $ExpectType undefined + break; + case 'throw': + mockResult.value; // $ExpectType any + break; +} /* Snapshot serialization */ @@ -560,6 +645,8 @@ expect.extend({ const expectedColor = this.utils.EXPECTED_COLOR("blue"); const receivedColor = this.utils.EXPECTED_COLOR("red"); + const diff: string = this.utils.diff({}, {}); + this.utils.ensureActualIsNumber({}); this.utils.ensureActualIsNumber({}, "matcher"); diff --git a/types/jexl/index.d.ts b/types/jexl/index.d.ts index e47e8c3257..dace08345d 100644 --- a/types/jexl/index.d.ts +++ b/types/jexl/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jexl 1.1 -// Project: https://github.com/TechnologyAdvice/jexl +// Project: https://github.com/tomfrost/jexl // Definitions by: Marcin Tomczyk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/jfs/index.d.ts b/types/jfs/index.d.ts index eafed6befe..8383f58981 100644 --- a/types/jfs/index.d.ts +++ b/types/jfs/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jfs 0.2 -// Project: https://github.com/flosse/json-file-store +// Project: http://github.com/flosse/json-file-store // Definitions by: Tomasz Łaziuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/jira-client/index.d.ts b/types/jira-client/index.d.ts index 59a92a2961..24121b6635 100644 --- a/types/jira-client/index.d.ts +++ b/types/jira-client/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jira-client 6.4 -// Project: https://github.com/jira-node/node-jira-client +// Project: http://github.com/jira-node/node-jira-client // Definitions by: Anatoliy Ostapenko // Orta Therox // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/jju/index.d.ts b/types/jju/index.d.ts index f8bf96d639..141af0ed6b 100644 --- a/types/jju/index.d.ts +++ b/types/jju/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jju 1.4 -// Project: https://github.com/rlidwka/jju +// Project: https://github.com/rlidwka/jju, http://rlidwka.github.io/jju // Definitions by: Elizabeth Craig // Alex Kocharin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/jquery-countdown/index.d.ts b/types/jquery-countdown/index.d.ts index 38a411c524..54b9101dcf 100644 --- a/types/jquery-countdown/index.d.ts +++ b/types/jquery-countdown/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jQuery Countdown 2.2 -// Project: https://github.com/hilios/jQuery.countdown +// Project: https://github.com/hilios/jQuery.countdown, http://hilios.github.io/jquery.countdown // Definitions by: Anderson Friaça // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery-lazyload/index.d.ts b/types/jquery-lazyload/index.d.ts index 28563a774d..c263ce0dab 100644 --- a/types/jquery-lazyload/index.d.ts +++ b/types/jquery-lazyload/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for JQuery Lazy Load 1.9 -// Project: https://github.com/tuupola/jquery_lazyload +// Project: https://github.com/tuupola/jquery_lazyload, http://www.appelsiini.net/projects/lazyload // Definitions by: Anderson Friaça // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery-loading-overlay/index.d.ts b/types/jquery-loading-overlay/index.d.ts index ff5fa59976..820f6f49b4 100644 --- a/types/jquery-loading-overlay/index.d.ts +++ b/types/jquery-loading-overlay/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for JQuery Loading Overlay 1.0 -// Project: https://github.com/jgerigmeyer/jquery-loading-overlay +// Project: https://github.com/jgerigmeyer/jquery-loading-overlay, http://jgerigmeyer.github.io/jquery-loading-overlay // Definitions by: Anderson Friaça // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery-match-height/index.d.ts b/types/jquery-match-height/index.d.ts index 2c2a69db67..ee2a6b7462 100644 --- a/types/jquery-match-height/index.d.ts +++ b/types/jquery-match-height/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jquery-match-height 0.7 -// Project: https://github.com/liabru/jquery-match-height +// Project: https://github.com/liabru/jquery-match-height, http://brm.io/jquery-match-height // Definitions by: Andrea Briganti // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery-notifier/index.d.ts b/types/jquery-notifier/index.d.ts index bf9d0ff93b..e06fbcfe50 100644 --- a/types/jquery-notifier/index.d.ts +++ b/types/jquery-notifier/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for notifier 1.0 +// Type definitions for non-npm package notifier 1.0 // Project: https://github.com/allipierre/jquery-notifier // Definitions by: Alli Pierre Yotti // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/jquery-toast-plugin/index.d.ts b/types/jquery-toast-plugin/index.d.ts index db95a9961c..a01b6db1d4 100644 --- a/types/jquery-toast-plugin/index.d.ts +++ b/types/jquery-toast-plugin/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jquery-toast-plugin 1.3 -// Project: https://github.com/kamranahmedse/jquery-toast-plugin +// Project: https://github.com/kamranahmedse/jquery-toast-plugin, http://www.kamranahmed.info/toast // Definitions by: Viqas Hussain // Andrew Stegmaier // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/jquery-toastmessage-plugin/index.d.ts b/types/jquery-toastmessage-plugin/index.d.ts index f7801a662b..1d15209076 100644 --- a/types/jquery-toastmessage-plugin/index.d.ts +++ b/types/jquery-toastmessage-plugin/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for jquery-toastmessage-plugin 0.2 +// Type definitions for non-npm package jquery-toastmessage-plugin 0.2 // Project: https://github.com/akquinet/jquery-toastmessage-plugin // Definitions by: Joe Skeen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/jquery.nicescroll/index.d.ts b/types/jquery.nicescroll/index.d.ts index 8228ae5209..9e4aca7774 100644 --- a/types/jquery.nicescroll/index.d.ts +++ b/types/jquery.nicescroll/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jquery.nicescroll 3.7 -// Project: https://nicescroll.areaaperta.com +// Project: https://nicescroll.areaaperta.com, https://github.com/inuyaksa/jquery.nicescroll // Definitions by: Bohdan Stupak // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.notify/index.d.ts b/types/jquery.notify/index.d.ts index 9dcf3e5d49..62121a7323 100644 --- a/types/jquery.notify/index.d.ts +++ b/types/jquery.notify/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for jquery.notify 1.5 +// Type definitions for non-npm package jquery.notify 1.5 // Project: https://github.com/ehynds/jquery-notify (jQuery Notify UI Widget by Eric Hynds) // Definitions by: Sergei Dorogin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/jquery.pin/index.d.ts b/types/jquery.pin/index.d.ts index df132c6571..ee4f9e0ca7 100644 --- a/types/jquery.pin/index.d.ts +++ b/types/jquery.pin/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for JQuery Pin 1.0 -// Project: https://github.com/webpop/jquery.pin +// Project: https://github.com/webpop/jquery.pin, https://github.com/koyeo/jquery.pin // Definitions by: Anderson Friaça // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.stickem/index.d.ts b/types/jquery.stickem/index.d.ts index 50e759635e..b92e01c741 100644 --- a/types/jquery.stickem/index.d.ts +++ b/types/jquery.stickem/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for jquery.stickem.js 1.4 +// Type definitions for non-npm package jquery.stickem.js 1.4 // Project: https://github.com/davist11/jQuery-Stickem // Definitions by: David Paz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/jquery.tools/index.d.ts b/types/jquery.tools/index.d.ts index f22e7aa6fe..22013a71e3 100644 --- a/types/jquery.tools/index.d.ts +++ b/types/jquery.tools/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for jQuery TOOLS 1.2 +// Type definitions for non-npm package jQuery TOOLS 1.2 // Project: https://github.com/jquerytools/jquerytools // Definitions by: Joe Skeen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/jquery.validation/index.d.ts b/types/jquery.validation/index.d.ts index 373c051596..bfbfd636b4 100644 --- a/types/jquery.validation/index.d.ts +++ b/types/jquery.validation/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for jquery.validation 1.16 +// Type definitions for non-npm package jquery.validation 1.16 // Project: http://jqueryvalidation.org/ // Definitions by: François de Campredon , John Reilly , Anže Videnič // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/js-cookie/index.d.ts b/types/js-cookie/index.d.ts index 6cd3c89169..7b90b4ecd5 100644 --- a/types/js-cookie/index.d.ts +++ b/types/js-cookie/index.d.ts @@ -33,7 +33,7 @@ declare namespace Cookies { secure?: boolean; } - interface CookiesStatic { + interface CookiesStatic { /** * Allows default cookie attributes to be accessed, changed, or reset */ @@ -42,7 +42,7 @@ declare namespace Cookies { /** * Create a cookie */ - set(name: string, value: string | object, options?: CookieAttributes): void; + set(name: string, value: string | T, options?: CookieAttributes): void; /** * Read cookie @@ -79,7 +79,7 @@ declare namespace Cookies { * or SDK. Note: The noConflict method is not necessary when using * AMD or CommonJS, thus it is not exposed in those environments. */ - noConflict(): CookiesStatic; + noConflict?(): CookiesStatic; /** * Create a new instance of the api that overrides the default @@ -88,10 +88,11 @@ declare namespace Cookies { * will run the converter first for each cookie. The returned * string will be used as the cookie value. */ - withConverter(converter: CookieConverter | { write: CookieConverter; read: CookieConverter; }): CookiesStatic; + withConverter(converter: CookieReadConverter | { write: CookieWriteConverter; read: CookieReadConverter; }): CookiesStatic; } - type CookieConverter = (value: string, name: string) => string; + type CookieWriteConverter = (value: string | T, name: string) => string; + type CookieReadConverter = (value: string, name: string) => string; } declare const Cookies: Cookies.CookiesStatic; diff --git a/types/js-cookie/js-cookie-tests.ts b/types/js-cookie/js-cookie-tests.ts index 683b401d8b..df30d90975 100644 --- a/types/js-cookie/js-cookie-tests.ts +++ b/types/js-cookie/js-cookie-tests.ts @@ -19,8 +19,8 @@ Cookies.get(); Cookies.remove('name'); Cookies.remove('name', { path: '' }); -const Cookies2 = Cookies.noConflict(); -Cookies2; // $ExpectType CookiesStatic +const Cookies2 = Cookies.noConflict!(); +Cookies2; // $ExpectType CookiesStatic Cookies.set('name', { foo: 'bar' }); @@ -40,12 +40,14 @@ cookies.get('escaped'); Cookies.defaults.path = ''; delete Cookies.defaults.path; -const PHPCookies = Cookies.withConverter({ +const PHPCookies = Cookies.withConverter({ write(value) { - return encodeURIComponent(value) + value; // $ExpectType string | object + return encodeURIComponent(value as string) .replace(/%(23|24|26|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent); }, read(value) { + value; // $ExpectType string return value .replace(/\+/g, ' ') .replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent); diff --git a/types/js.spec/index.d.ts b/types/js.spec/index.d.ts index cf3b095443..887ccf99c0 100644 --- a/types/js.spec/index.d.ts +++ b/types/js.spec/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for js.spec 1.0 -// Project: http://js-spec.online +// Project: http://js-spec.online, https://github.com/prayerslayer/js.spec // Definitions by: Matt Bishop // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/jsdoc-to-markdown/index.d.ts b/types/jsdoc-to-markdown/index.d.ts new file mode 100644 index 0000000000..78b4d7d045 --- /dev/null +++ b/types/jsdoc-to-markdown/index.d.ts @@ -0,0 +1,137 @@ +// Type definitions for jsdoc-to-markdown 4.0 +// Project: https://github.com/jsdoc2md/jsdoc-to-markdown +// Definitions by: Adam Zerella +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.9 + +export type StyleListFormat = "none" | "grouped" | "table" | "dl"; +export type RenderListFormat = "list" | "table"; +export type MemberIndexFormat = "grouped" | "list"; + +export interface RenderOptions { + /** + * Raw template data to use. Useful when you already have template data, obtained from .getTemplateData. + * Either files, source or data must be supplied. + */ + data?: object[]; + /** + * The template the supplied documentation will be rendered into. + * Use the default or supply your own template for full control over the output. + */ + template?: string; + /** + * The initial heading depth. + * For example, with a value of 2 the top-level markdown headings look like "## The heading". + */ + headingDepth?: number; + /** + * Specifies the default language used in '@example' blocks (for syntax-highlighting purposes). + * In gfm mode, each '@example' is wrapped in a fenced-code block. Example usage: --example-lang js. + * Use the special value none for no specific language. + * While using this option, you can override the supplied language + * for any '@example' by specifying the @lang subtag, + * e.g @example @lang hbs. Specifying @example @lang off will disable code blocks for that example. + */ + exampleLang?: string; + /** + * Use an installed package containing helper and/or partial overrides. + */ + plugin?: string|string[]; + /** + * handlebars helper files to override or extend the default set. + */ + helper?: string|string[]; + /** + * handlebars partial files to override or extend the default set. + */ + partial?: string|string[]; + /** + * Format identifier names in the code style, + * (i.e. format using backticks or ). + */ + nameFormat?: string; + /** + * By default, dmd generates github-flavoured markdown. + * Not all markdown parsers render gfm correctly. + * If your generated docs look incorrect on sites other than Github + * (e.g. npmjs.org) try enabling this option to disable Github-specific syntax. + */ + noGfm?: boolean; + /** + * Put
breaks between identifiers. Improves readability on bulky docs. + */ + seperators?: boolean; + moduleIndexFormat?: StyleListFormat; + globalIndexFormat?: StyleListFormat; + /** + * Two options to render parameter lists: 'list' or 'table' (default). + * Table format works well in most cases but switch to list if things begin to look crowded / squashed. + */ + paramListFormat?: RenderListFormat; + propertyListFormat?: RenderListFormat; + memberIndexFormat?: MemberIndexFormat; +} + +export interface JsdocOptions { + /** + * By default results are cached to speed up repeat invocations. + * Set to true to disable this. + */ + noCache?: boolean; + /** + * One or more filenames to process. + * Accepts globs (e.g. *.js). Either files, source or data must be supplied. + */ + files: string|string[]; + /** + * A string containing source code to process. + * Either files, source or data must be supplied. + */ + source?: string; + /** + * The path to the jsdoc configuration file. + * Default: path/to/jsdoc/conf.json. + */ + configure?: string; +} + +export class JsdocToMarkdown { + /** + * Returns markdown documentation from jsdoc-annoted source code. + */ + render(options: RenderOptions|JsdocOptions): Promise; + /** + * Sync version of render. + */ + renderSync(options: RenderOptions|JsdocOptions): string; + /** + * Returns the template data (jsdoc-parse output) which is fed into the output template (dmd). + */ + getTemplateData(options: JsdocOptions): Promise; + /** + * Sync version of getTemplateData. + */ + getTemplateDataSync(options: JsdocOptions): object[]; + /** + * Returns raw data direct from the underlying jsdoc3. + */ + getJsdocData(options: JsdocOptions): Promise; + /** + * Sync version of getJsdocData. + */ + getJsdocDataSync(options: JsdocOptions): object[]; + /** + * By default, the output of each invocation of the main generation methods (render, getTemplateData etc) + * is stored in the cache (your system's temporary directory). + * Future jsdoc2md invocations with the same input options and source code will return the output immediately from cache, + * making the tool much faster/cheaper. If the input options or source code changes, + * fresh output will be generated. This method clears the cache, + * which you should never need to do unless the cache is failing for some reason. + * On Mac OSX, the system tmpdir clears itself every few days meaning your jsdoc2md cache will also be routinely cleared. + */ + clear(): Promise; + /** + * Returns all jsdoc namepaths found in the supplied source code. + */ + getNamepaths(options: JsdocOptions): Promise; +} diff --git a/types/jsdoc-to-markdown/jsdoc-to-markdown-tests.ts b/types/jsdoc-to-markdown/jsdoc-to-markdown-tests.ts new file mode 100644 index 0000000000..e37d899bd4 --- /dev/null +++ b/types/jsdoc-to-markdown/jsdoc-to-markdown-tests.ts @@ -0,0 +1,23 @@ +import { JsdocToMarkdown, StyleListFormat } from "jsdoc-to-markdown"; + +const jsdoc2md = new JsdocToMarkdown(); + +const JsdocDataOptions = { + files: "file.js" +}; + +const RenderOptions = { + data: [], + plugin: "", + helper: [""], + moduleIndexFormat: "table" as StyleListFormat +}; + +jsdoc2md.render(JsdocDataOptions); +jsdoc2md.renderSync(RenderOptions); +jsdoc2md.getTemplateData(JsdocDataOptions); +jsdoc2md.getTemplateDataSync(JsdocDataOptions); +jsdoc2md.getJsdocData(JsdocDataOptions); +jsdoc2md.getJsdocDataSync(JsdocDataOptions); +jsdoc2md.clear(); +jsdoc2md.getNamepaths(JsdocDataOptions); diff --git a/types/jsdoc-to-markdown/tsconfig.json b/types/jsdoc-to-markdown/tsconfig.json new file mode 100644 index 0000000000..eabb42ab3b --- /dev/null +++ b/types/jsdoc-to-markdown/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [ + + ], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "jsdoc-to-markdown-tests.ts" + ] +} diff --git a/types/jsdoc-to-markdown/tslint.json b/types/jsdoc-to-markdown/tslint.json new file mode 100644 index 0000000000..e60c15844f --- /dev/null +++ b/types/jsdoc-to-markdown/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} \ No newline at end of file diff --git a/types/jsdom/index.d.ts b/types/jsdom/index.d.ts index dec74af1ba..a4267d560e 100644 --- a/types/jsdom/index.d.ts +++ b/types/jsdom/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jsdom 12.2 -// Project: https://github.com/tmpvar/jsdom#readme +// Project: https://github.com/jsdom/jsdom // Definitions by: Leonard Thieu // Johan Palmfjord // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/jsforce/index.d.ts b/types/jsforce/index.d.ts index 9aaba4e54b..3cea55dafd 100644 --- a/types/jsforce/index.d.ts +++ b/types/jsforce/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jsforce 1.9 -// Project: https://github.com/jsforce/jsforce +// Project: http://github.com/jsforce/jsforce // Definitions by: Dolan Miu // Kamil Ejsymont // Thomas Dvornik diff --git a/types/jsnox/jsnox-tests.ts b/types/jsnox/jsnox-tests.ts index f03c33e917..be5bd64126 100644 --- a/types/jsnox/jsnox-tests.ts +++ b/types/jsnox/jsnox-tests.ts @@ -9,7 +9,7 @@ interface PersonProps { } class Person extends React.Component { - render(): React.ReactElement { return null; } + render(): React.ReactElement { return null; } } const PersonTag = React.createFactory(Person); diff --git a/types/json-rpc-ws/index.d.ts b/types/json-rpc-ws/index.d.ts index 9faaeefd66..f81927d109 100644 --- a/types/json-rpc-ws/index.d.ts +++ b/types/json-rpc-ws/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for json-rpc-ws 4.0 -// Project: https://www.npmjs.com/package/json-rpc-ws +// Project: https://github.com/andyet/json-rpc-ws // Definitions by: Nicolas Penin // Margus Lamp // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/json-schema/index.d.ts b/types/json-schema/index.d.ts index b380b19020..3c07271523 100644 --- a/types/json-schema/index.d.ts +++ b/types/json-schema/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for json-schema 4.0, 6.0 and 7.0 -// Project: https://www.npmjs.com/package/json-schema +// Project: https://github.com/kriszyp/json-schema // Definitions by: Boris Cherny // Cyrille Tuzi // Lucian Buzzo diff --git a/types/json2mq/index.d.ts b/types/json2mq/index.d.ts new file mode 100644 index 0000000000..4efae7d889 --- /dev/null +++ b/types/json2mq/index.d.ts @@ -0,0 +1,14 @@ +// Type definitions for json2mq 0.2 +// Project: https://github.com/akiran/json2mq +// Definitions by: Zhang Yi Jiang +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = json2mq; + +declare function json2mq(query: json2mq.QueryObject | json2mq.QueryObject[]): string; + +declare namespace json2mq { + interface QueryObject { + [property: string]: string | number | boolean; + } +} diff --git a/types/json2mq/json2mq-tests.ts b/types/json2mq/json2mq-tests.ts new file mode 100644 index 0000000000..6a8baa81af --- /dev/null +++ b/types/json2mq/json2mq-tests.ts @@ -0,0 +1,25 @@ +import * as json2mq from 'json2mq'; + +json2mq({ screen: true }); // -> 'screen' + +json2mq({ handheld: false }); // -> 'not handheld' + +json2mq({ minWidth: 100, maxWidth: 200 }); +// -> '(min-width: 100px) and (max-width: 200px)' + +json2mq({ minWidth: 100, maxWidth: '20em' }); +// -> '(min-width: 100px) and (max-width: 20em)' + +json2mq([{ screen: true, minWidth: 100 }, { handheld: true, orientation: 'landscape' }]); +// -> 'screen and (min-width: 100px), handheld and (orientation: landscape)' + +json2mq({ all: true, monochrome: true }); +// -> 'all and monochrome' + +// Test QueryObject +const mediaQuery: json2mq.QueryObject = { + screen: true, + monochrome: false, + maxWidth: 200, + minHeight: '10rem', +}; diff --git a/types/json2mq/tsconfig.json b/types/json2mq/tsconfig.json new file mode 100644 index 0000000000..c4b51247a8 --- /dev/null +++ b/types/json2mq/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", + "json2mq-tests.ts" + ] +} diff --git a/types/json2mq/tslint.json b/types/json2mq/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/json2mq/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/json3/index.d.ts b/types/json3/index.d.ts index 768a76cf14..58d2ea9915 100644 --- a/types/json3/index.d.ts +++ b/types/json3/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for json3 3.3 -// Project: https://bestiejs.github.io/json3/ +// Project: http://bestiejs.github.io/json3 // Definitions by: NN // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/jsonata/index.d.ts b/types/jsonata/index.d.ts index f9196d7149..c0634c6ef1 100644 --- a/types/jsonata/index.d.ts +++ b/types/jsonata/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jsonata 1.3 -// Project: https://github.com/jsonata-js/jsonata +// Project: https://github.com/jsonata-js/jsonata, http://jsonata.org // Definitions by: Nick // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/jsontoxml/index.d.ts b/types/jsontoxml/index.d.ts index f683050031..37ad9c187c 100644 --- a/types/jsontoxml/index.d.ts +++ b/types/jsontoxml/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jsontoxml 1.0 -// Project: https://github.com/soldair/node-jsontoxml +// Project: https://github.com/soldair/node-jsontoxml, http://github.com/ken-franken/node-jsontoxml // Definitions by: benstevens48 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/jsqrcode/index.d.ts b/types/jsqrcode/index.d.ts index e7768d593f..e8b58458f4 100644 --- a/types/jsqrcode/index.d.ts +++ b/types/jsqrcode/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for jsqrcode 1.0 +// Type definitions for non-npm package jsqrcode 1.0 // Project: https://github.com/LazarSoft/jsqrcode // Definitions by: Ricardo Azzi Silva // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/jszip/index.d.ts b/types/jszip/index.d.ts index ba3ea392c9..a5ab4ee8e1 100644 --- a/types/jszip/index.d.ts +++ b/types/jszip/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for JSZip 3.1 -// Project: http://stuk.github.com/jszip/ +// Project: http://stuk.github.com/jszip/, https://github.com/stuk/jszip // Definitions by: mzeiher , forabi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jweixin/index.d.ts b/types/jweixin/index.d.ts index b656e81ecc..9e9994371e 100644 --- a/types/jweixin/index.d.ts +++ b/types/jweixin/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jweixin 1.0 -// Project: https://mp.weixin.qq.com/wiki/11/74ad127cc054f6b80759c40f77ec03db.html +// Project: https://mp.weixin.qq.com/wiki/11/74ad127cc054f6b80759c40f77ec03db.html, https://github.com/heyong-2015/jweixin // Definitions by: taoqf // gomydodo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/karma-webpack/index.d.ts b/types/karma-webpack/index.d.ts index f7278b64a5..e3a1f5fcea 100644 --- a/types/karma-webpack/index.d.ts +++ b/types/karma-webpack/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for karma-webpack 2.0 -// Project: http://github.com/webpack/karma-webpack +// Project: https://github.com/webpack-contrib/karma-webpack // Definitions by: Matt Traynham // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/karma/index.d.ts b/types/karma/index.d.ts index 0da2803283..07146aeef5 100644 --- a/types/karma/index.d.ts +++ b/types/karma/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for karma 3.0 -// Project: https://github.com/karma-runner/karma +// Project: https://github.com/karma-runner/karma, http://karma-runner.github.io // Definitions by: Tanguy Krotoff // James Garbutt // Yaroslav Admin diff --git a/types/katex/contrib/auto-render.d.ts b/types/katex/contrib/auto-render.d.ts new file mode 100644 index 0000000000..efef3ffb7d --- /dev/null +++ b/types/katex/contrib/auto-render.d.ts @@ -0,0 +1,64 @@ +declare module 'katex/dist/contrib/auto-render' { + import { KatexOptions } from 'katex'; + + export interface RenderMathInElementSpecificOptionsDelimiters { + /** + * A string which starts the math expression (i.e. the left delimiter) + */ + left: string; + /** + * A string which ends the math expression (i.e. the right delimiter) + */ + right: string; + /** + * A boolean of whether the math in the expression should be rendered in display mode or not + */ + display: boolean + } + + export interface RenderMathInElementSpecificOptions { + /** + * A list of delimiters to look for math + * + * @default [ + * {left: "$$", right: "$$", display: true}, + * {left: "\\(", right: "\\)", display: false}, + * {left: "\\[", right: "\\]", display: true} + * ] + */ + delimiters?: ReadonlyArray; + /** + * A list of DOM node types to ignore when recursing through + * + * @default ["script", "noscript", "style", "textarea", "pre", "code"] + */ + ignoredTags?: ReadonlyArray; + /** + * A list of DOM node class names to ignore when recursing through + * + * @default [] + */ + ignoredClasses?: string[]; + /** + * A callback method returning a message and an error stack in case of an critical error during rendering + * @param msg Message generated by KaTeX + * @param err Caught error + * + * @default console.error + */ + errorCallback?(msg: string, err: Error): void; + } + + /** + * renderMathInElement options contain KaTeX render options and renderMathInElement specific options + */ + export type RenderMathInElementOptions = KatexOptions & RenderMathInElementSpecificOptions; + + /** + * Auto-render TeX expressions in HTML element + * @param elem HTML element to auto-render + * @param options Render options + */ + function renderMathInElement(elem: HTMLElement, options?: RenderMathInElementOptions): void; + export default renderMathInElement; +} diff --git a/types/katex/contrib/index.d.ts b/types/katex/contrib/index.d.ts new file mode 100644 index 0000000000..a365569333 --- /dev/null +++ b/types/katex/contrib/index.d.ts @@ -0,0 +1 @@ +/// diff --git a/types/katex/index.d.ts b/types/katex/index.d.ts index ae126b3444..9d89c7c329 100644 --- a/types/katex/index.d.ts +++ b/types/katex/index.d.ts @@ -2,24 +2,28 @@ // Project: http://khan.github.io/KaTeX/ // Definitions by: Michael Randolph // Kevin Nguyen +// bLue // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 + +/// export as namespace katex; /** Documentation: https://katex.org/docs/options.html */ export interface KatexOptions { /** - * If `true`, math will be rendered in display mode + * If `true`, math will be rendered in display mode * (math in display style and center math on page) - * + * * If `false`, math will be rendered in inline mode * @default false */ displayMode?: boolean; /** - * If `true`, KaTeX will throw a `ParseError` when + * If `true`, KaTeX will throw a `ParseError` when * it encounters an unsupported command or invalid LaTex - * + * * If `false`, KaTeX will render unsupported commands as * text, and render invalid LaTeX as its source code with * hover text giving the error, in color given by errorColor @@ -32,56 +36,56 @@ export interface KatexOptions { errorColor?: string; /** * A collection of custom macros. - * + * * See `src/macros.js` for its usage */ macros?: any; /** * If `true`, `\color` will work like LaTeX's `\textcolor` * and takes 2 arguments - * + * * If `false`, `\color` will work like LaTeX's `\color` * and takes 1 argument - * + * * In both cases, `\textcolor` works as in LaTeX - * + * * @default false */ colorIsTextColor?: boolean; /** * All user-specified sizes will be caped to `maxSize` ems - * + * * If set to Infinity, users can make elements and space * arbitrarily large - * + * * @default Infinity */ maxSize?: number; /** * Limit the number of macro expansions to specified number - * + * * If set to `Infinity`, marco expander will try to fully expand * as in LaTex - * + * * @default 1000 */ maxExpand?: number; /** * Allowed protocols in `\href` - * + * * Use `_relative` to allow relative urls - * + * * Use `*` to allow all protocols */ - allowedProtocols?: string[] + allowedProtocols?: string[]; /** * If `false` or `"ignore"`, allow features that make * writing in LaTex convenient but not supported by LaTex - * + * * If `true` or `"error"`, throw an error for such transgressions - * + * * If `"warn"`, warn about behavior via `console.warn` - * + * * @default "warn" */ strict?: boolean | string | Function; diff --git a/types/katex/katex-tests.ts b/types/katex/katex-tests.ts index 6fd614c82c..6b3e223927 100644 --- a/types/katex/katex-tests.ts +++ b/types/katex/katex-tests.ts @@ -1,16 +1,33 @@ import katexLib = require('katex'); +import renderMathInElement, { RenderMathInElementOptions } from 'katex/dist/contrib/auto-render'; class KatexTest { - constructor() { - katexLib.render('My Latex String', document.createElement('div')); + constructor() { + katexLib.render('My Latex String', document.createElement('div')); - try { - let options: katexLib.KatexOptions = { throwOnError: true }; - let value: string = katexLib.renderToString('My Latex String', options); - } catch (error) { - if (error instanceof katexLib.ParseError) { - //do something with this error - } - } - } -} \ No newline at end of file + try { + let options: katexLib.KatexOptions = { throwOnError: true }; + let value: string = katexLib.renderToString('My Latex String', options); + } catch (error) { + if (error instanceof katexLib.ParseError) { + //do something with this error + } + } + + const renderMathInElementOptions: RenderMathInElementOptions = { + delimiters: [ + { left: "$$", right: "$$", display: true }, + { left: "\\[", right: "\\]", display: true }, + { left: "$", right: "$", display: false }, + { left: "\\(", right: "\\)", display: false }, + ], + errorCallback(msg: string, err: Error): void { + console.error(msg, err); + //do something with this error + } + }; + const container = document.createElement('div'); + container.innerText = 'LaTeX string $c = \\pm\\sqrt{a^2 + b^2}$'; + renderMathInElement(container, renderMathInElementOptions); + } +} diff --git a/types/keen-tracking/index.d.ts b/types/keen-tracking/index.d.ts index 69f513312c..5ac3c1a70d 100644 --- a/types/keen-tracking/index.d.ts +++ b/types/keen-tracking/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for keen-tracking 2.0 -// Project: https://github.com/keen/keen-tracking.js#readme +// Project: https://github.com/keen/keen-tracking.js#readme, https://keen.io // Definitions by: Rui Ferreira // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/keycloak-connect/index.d.ts b/types/keycloak-connect/index.d.ts index de24fb84e9..2a98ccec52 100644 --- a/types/keycloak-connect/index.d.ts +++ b/types/keycloak-connect/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for keycloak-connect 4.5 -// Project: https://github.com/keycloak/keycloak-nodejs-connect +// Project: https://github.com/keycloak/keycloak-nodejs-connect, http://keycloak.org // Definitions by: Gregor Stamać // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/knex/index.d.ts b/types/knex/index.d.ts index 3ea4e37790..7888559827 100644 --- a/types/knex/index.d.ts +++ b/types/knex/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Knex.js 0.15 -// Project: https://github.com/tgriesser/knex +// Project: https://github.com/tgriesser/knex, https://knexjs.org // Definitions by: Qubo // Pablo Rodríguez // Matt R. Wilson diff --git a/types/knockback/index.d.ts b/types/knockback/index.d.ts index 68b9dc9e0b..59f3e3fa93 100644 --- a/types/knockback/index.d.ts +++ b/types/knockback/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Knockback.js -// Project: http://kmalakoff.github.io/knockback/ +// Project: http://kmalakoff.github.com/knockback // Definitions by: Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/knuddels-userapps-api/index.d.ts b/types/knuddels-userapps-api/index.d.ts index f190821ba8..a369554eb3 100644 --- a/types/knuddels-userapps-api/index.d.ts +++ b/types/knuddels-userapps-api/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Knuddels UserApps API 1.00111486 +// Type definitions for non-npm package Knuddels UserApps API 1.00111486 // Project: https://developer.knuddels.de // Definitions by: Knuddels GmbH & Co. KG // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/koa-bodyparser/index.d.ts b/types/koa-bodyparser/index.d.ts index 88328b5c3d..d8666da7cd 100644 --- a/types/koa-bodyparser/index.d.ts +++ b/types/koa-bodyparser/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for koa-bodyparser 4.2 -// Project: https://github.com/koajs/bodyparser +// Project: https://github.com/koajs/body-parser // Definitions by: Jerry Chin // Anup Kishore // Hiroshi Ioka diff --git a/types/koa-convert/index.d.ts b/types/koa-convert/index.d.ts index 498088b4c6..7fbe235900 100644 --- a/types/koa-convert/index.d.ts +++ b/types/koa-convert/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for koa-convert 1.2 -// Project: https://github.com/koajs/convert +// Project: https://github.com/koajs/convert, https://github.com/gyson/koa-convert // Definitions by: Daniel Byrne // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/koa-joi-router/index.d.ts b/types/koa-joi-router/index.d.ts index 54cf148240..8ee1563370 100644 --- a/types/koa-joi-router/index.d.ts +++ b/types/koa-joi-router/index.d.ts @@ -31,6 +31,8 @@ declare namespace createRouter { type Method = (path: string|RegExp, handlerOrConfig: Handler | object, ...handlers: Handler[]) => Router; + type OutputValidation = { body: Joi.SchemaLike } | { headers: Joi.SchemaLike }; + interface Spec { method: string|string[]; path: string|RegExp; @@ -47,7 +49,7 @@ declare namespace createRouter { formOptions?: CoBody.Options; jsonOptions?: CoBody.Options; multipartOptions?: CoBody.Options; - output?: {[status: string]: Joi.SchemaLike}; + output?: {[status: string]: OutputValidation}; continueOnError?: boolean; }; meta?: any; diff --git a/types/koa-joi-router/koa-joi-router-tests.ts b/types/koa-joi-router/koa-joi-router-tests.ts index 160c3834c1..050ad4d5a1 100644 --- a/types/koa-joi-router/koa-joi-router-tests.ts +++ b/types/koa-joi-router/koa-joi-router-tests.ts @@ -41,8 +41,16 @@ const spec4: router.Spec = { validate: { type: 'json', output: { - 201: Joi.object(), - '400,404': Joi.object(), + 201: { + body: Joi.object(), + }, + '400,404': { + headers: Joi.object(), + body: Joi.object(), + }, + '500-599': { + headers: Joi.object(), + }, }, jsonOptions: { limit: '10kb' diff --git a/types/koa-pino-logger/index.d.ts b/types/koa-pino-logger/index.d.ts index 04eea930ce..b32c076a01 100644 --- a/types/koa-pino-logger/index.d.ts +++ b/types/koa-pino-logger/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for koa-pino-logger 2.1 -// Project: https://github.com/pinojs/koa-pino-logger +// Project: https://github.com/pinojs/koa-pino-logger, https://github.com/davidmarkclements/koa-pino-logger // Definitions by: Cameron Yan // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/koa-range/index.d.ts b/types/koa-range/index.d.ts index 9240491f04..dc6396ca43 100644 --- a/types/koa-range/index.d.ts +++ b/types/koa-range/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for koa-range 0.3 -// Project: https://github.com/koajs/koa-range +// Project: https://github.com/koajs/koa-range, https://github.com/yorkie/koa-range // Definitions by: Sami Kukkonen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/koa-static/index.d.ts b/types/koa-static/index.d.ts index eaba7866c4..34ebc39d53 100644 --- a/types/koa-static/index.d.ts +++ b/types/koa-static/index.d.ts @@ -19,7 +19,7 @@ import { Middleware } from "koa"; import { SendOptions } from "koa-send"; -declare function serve(root: string, opts?: serve.Options): Middleware; +declare function serve(root: string, opts?: serve.Options): Middleware<{}>; declare namespace serve { interface Options extends SendOptions { diff --git a/types/kraken-js/index.d.ts b/types/kraken-js/index.d.ts index 3013938dd2..7569500627 100644 --- a/types/kraken-js/index.d.ts +++ b/types/kraken-js/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for krakenjs 2.2 -// Project: http://krakenjs.com +// Project: http://krakenjs.com, https://github.com/krakenjs/kraken-js // Definitions by: Timur Manyanov // Satana Charuwichitratana // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/kss/index.d.ts b/types/kss/index.d.ts index 963dec9bff..6b6f33e858 100644 --- a/types/kss/index.d.ts +++ b/types/kss/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for KSS 3.0 -// Project: https://github.com/kss-node/kss-node +// Project: https://github.com/kss-node/kss-node, http://kss-node.github.io/kss-node // Definitions by: Gilad Gray // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/kurento-utils/index.d.ts b/types/kurento-utils/index.d.ts index a8a30005b6..2063dfbada 100644 --- a/types/kurento-utils/index.d.ts +++ b/types/kurento-utils/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for kurento-utils 6.7 -// Project: https://github.com/Kurento/kurento-utils-js +// Project: https://github.com/Kurento/kurento-utils-js, https://www.kurento.org // Definitions by: Miloslav Nenadál // Benjamin Riggs // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/later/index.d.ts b/types/later/index.d.ts index 71d53983b0..4ffc4bc7ef 100644 --- a/types/later/index.d.ts +++ b/types/later/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for LaterJS 1.2 -// Project: http://bunkat.github.io/later/ +// Project: http://bunkat.github.io/later/, https://github.com/bunkat/later // Definitions by: Jason D Dryhurst-Smith // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/latlon-geohash/index.d.ts b/types/latlon-geohash/index.d.ts index a7d843c30c..e2ba9ef160 100644 --- a/types/latlon-geohash/index.d.ts +++ b/types/latlon-geohash/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for latlon-geohash 1.1 -// Project: https://github.com/chrisveness/latlon-geohash +// Project: https://github.com/chrisveness/latlon-geohash, http://www.movable-type.co.uk/scripts/geohash.html // Definitions by: Robert Imig // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 diff --git a/types/leaflet-areaselect/index.d.ts b/types/leaflet-areaselect/index.d.ts index ae7f4e042d..bee0dd3691 100644 --- a/types/leaflet-areaselect/index.d.ts +++ b/types/leaflet-areaselect/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Leaflet.areaSelect 0.1 +// Type definitions for non-npm package Leaflet.areaSelect 0.1 // Project: https://github.com/heyman/leaflet-areaselect // Definitions by: André Wallat // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/leaflet-editable/index.d.ts b/types/leaflet-editable/index.d.ts index f73befb161..907a0d2139 100644 --- a/types/leaflet-editable/index.d.ts +++ b/types/leaflet-editable/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Leaflet.Editable 0.7 -// Project: https://github.com/yohanboniface/Leaflet.Editable +// Project: https://github.com/leaflet/leaflet.editable // Definitions by: Dominic Alie // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/leaflet.awesome-markers/index.d.ts b/types/leaflet.awesome-markers/index.d.ts index 859a37364b..2771a36904 100644 --- a/types/leaflet.awesome-markers/index.d.ts +++ b/types/leaflet.awesome-markers/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Leaflet.awesome-markers plugin 2.0 -// Project: https://github.com/sigma-geosistemas/Leaflet.awesome-markers#properties +// Project: https://github.com/sigma-geosistemas/leaflet.awesome-markers // Definitions by: Marcel Sebek // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/leaflet.pm/index.d.ts b/types/leaflet.pm/index.d.ts index e33d335a7b..fdf72bc682 100644 --- a/types/leaflet.pm/index.d.ts +++ b/types/leaflet.pm/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for leaflet.pm 0.13 -// Project: https://github.com/codeofsumit/leaflet.pm +// Project: https://github.com/codeofsumit/leaflet.pm, https://leafletpm.now.sh // Definitions by: Thomas Kleinke // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/leaflet/index.d.ts b/types/leaflet/index.d.ts index 22f71a9187..f99f76817d 100644 --- a/types/leaflet/index.d.ts +++ b/types/leaflet/index.d.ts @@ -494,7 +494,7 @@ export interface TileLayerOptions extends GridLayerOptions { tms?: boolean; zoomReverse?: boolean; detectRetina?: boolean; - crossOrigin?: boolean; + crossOrigin?: CrossOrigin; // [name: string]: any; // You are able add additional properties, but it makes this interface unchackable. // See: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/15313 @@ -550,12 +550,16 @@ export namespace tileLayer { function wms(baseUrl: string, options?: WMSOptions): TileLayer.WMS; } +export type CrossOrigin = boolean | string; + export interface ImageOverlayOptions extends InteractiveLayerOptions { opacity?: number; alt?: string; interactive?: boolean; attribution?: string; - crossOrigin?: boolean; + crossOrigin?: CrossOrigin; + errorOverlayUrl?: string; + zIndex?: number; className?: string; } @@ -569,6 +573,9 @@ export class ImageOverlay extends Layer { /** Update the bounds that this ImageOverlay covers */ setBounds(bounds: LatLngBounds): this; + /** Changes the zIndex of the image overlay */ + setZIndex(value: number): this; + /** Get the bounds that this ImageOverlay covers */ getBounds(): LatLngBounds; diff --git a/types/leaflet/leaflet-tests.ts b/types/leaflet/leaflet-tests.ts index 8b024d790e..2e0f139e9d 100644 --- a/types/leaflet/leaflet-tests.ts +++ b/types/leaflet/leaflet-tests.ts @@ -263,13 +263,15 @@ imageOverlayOptions = { alt: 'alt', interactive: true, attribution: 'attribution', + errorOverlayUrl: 'http://www.test.com/error.png', + zIndex: 1, crossOrigin: true, className: 'className', bubblingMouseEvents: false, pane: 'pane' }; -const imageOverlayBounds = latLngBounds; +let imageOverlayBounds = latLngBounds; let imageOverlay: L.ImageOverlay; imageOverlay = L.imageOverlay('https://www.google.ru/images/branding/googlelogo/2x/googlelogo_color_120x44dp.png', imageOverlayBounds); imageOverlay = L.imageOverlay('https://www.google.ru/images/branding/googlelogo/2x/googlelogo_color_120x44dp.png', imageOverlayBounds, imageOverlayOptions); @@ -278,6 +280,14 @@ imageOverlay = L.imageOverlay('https://www.google.ru/images/branding/googlelogo/ alt: 'alt', className: 'className', }); +imageOverlay.setOpacity(100); +imageOverlay.bringToFront(); +imageOverlay.bringToBack(); +imageOverlay.setUrl('https://www.google.ru/images/branding/googlelogo/2x/googlelogo_color_120x44dp.png'); +imageOverlay.setBounds(imageOverlayBounds); +imageOverlay.setZIndex(1); +imageOverlayBounds = imageOverlay.getBounds(); +html = imageOverlay.getElement(); // videoOverlay let videoOverlayOptions: L.VideoOverlayOptions; diff --git a/types/ledgerhq__hw-transport-node-hid/index.d.ts b/types/ledgerhq__hw-transport-node-hid/index.d.ts index 91fa7263dc..6aed52ffbf 100644 --- a/types/ledgerhq__hw-transport-node-hid/index.d.ts +++ b/types/ledgerhq__hw-transport-node-hid/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @ledgerhq/hw-transport-node-hid 4.22 -// Project: https://github.com/LedgerHQ/ledgerjs/tree/master/packages/hw-transport-node-hid +// Project: https://github.com/LedgerHQ/ledgerjs/tree/master/packages/hw-transport-node-hid, https://github.com/ledgerhq/ledgerjs // Definitions by: Daniel Byrne // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/ledgerhq__hw-transport-u2f/index.d.ts b/types/ledgerhq__hw-transport-u2f/index.d.ts index b08b6c27ff..704e46be10 100644 --- a/types/ledgerhq__hw-transport-u2f/index.d.ts +++ b/types/ledgerhq__hw-transport-u2f/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @ledgerhq/hw-transport-u2f 4.21 -// Project: https://github.com/LedgerHQ/ledgerjs/tree/master/packages/hw-transport-u2f +// Project: https://github.com/LedgerHQ/ledgerjs/tree/master/packages/hw-transport-u2f, https://github.com/ledgerhq/ledgerjs // Definitions by: Daniel Byrne // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/ledgerhq__hw-transport/index.d.ts b/types/ledgerhq__hw-transport/index.d.ts index 6b3854a343..b62d66c5b2 100644 --- a/types/ledgerhq__hw-transport/index.d.ts +++ b/types/ledgerhq__hw-transport/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @ledgerhq/hw-transport 4.21 -// Project: https://github.com/LedgerHQ/ledgerjs/tree/master/packages/hw-transport +// Project: https://github.com/LedgerHQ/ledgerjs/tree/master/packages/hw-transport, https://github.com/ledgerhq/ledgerjs // Definitions by: Daniel Byrne // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/less2sass/index.d.ts b/types/less2sass/index.d.ts index 25848117f2..3b3073b581 100644 --- a/types/less2sass/index.d.ts +++ b/types/less2sass/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for less2sass 1.0 -// Project: https://github.com/ekryski/less2sass +// Project: https://github.com/ekryski/less2sass, http://erickryski.com // Definitions by: William Lohan // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/lil-uri/index.d.ts b/types/lil-uri/index.d.ts new file mode 100644 index 0000000000..b9642657fd --- /dev/null +++ b/types/lil-uri/index.d.ts @@ -0,0 +1,214 @@ +// Type definitions for lil-uri 0.2 +// Project: https://github.com/lil-js/uri#readme +// Definitions by: Wayne Carson +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/** + * Global exposed when library is used outside of a module environment. + */ +export as namespace lil; + +/** + * Exported function + */ +export = uri; + +/** + * Parses the given URI string + * + * @param the URI string to parse. + */ +declare function uri(uri?: string): uri.URI; + +declare namespace uri { + /** + * Provides access to URI component values and parser/builder functions. + */ + interface URI { + /** + * Parses the given URI string + * @param uri the URI to parse + */ + parse(uri: string): URIParts; + + /** + * Builds URI components into a URI string + */ + build(): string; + + /** + * Builds URI components into a URI string + */ + toString(): string; + + /** + * Builds URI components into a URI string + */ + valueOf(): string; + + /** + * Gets the protocol value + */ + protocol(): string; + + /** + * Sets the protocol + * @param protocol the protocol + * @return this object + */ + protocol(protocol: string): URI; + + /** + * Gets the host value + */ + host(): string; + + /** + * Sets the host + * @param host the host + * @return this object + */ + host(host: string): URI; + + /** + * Gets the hostname value + */ + hostname(): string; + + /** + * Sets the hostname + * @param hostname the hostname + * @return this object + */ + hostname(hostname: string): URI; + + /** + * Gets the port value + */ + port(): number; + + /** + * Sets the port + * @param port the port + * @return this object + */ + port(port: string): URI; + + /** + * Gets the auth value + */ + auth(): Credentials; + + /** + * Sets the auth + * @param auth the auth + * @return this object + */ + auth(auth: string): URI; + + /** + * Gets the user value + */ + user(): string; + + /** + * Sets the user + * @param user the user + * @return this object + */ + user(user: string): URI; + + /** + * Gets the password value + */ + password(): string; + + /** + * Sets the password + * @param password the password + * @return this object + */ + password(password: string): URI; + + /** + * Gets the path value + */ + path(): string; + + /** + * Sets the path + * @param path the path + * @return this object + */ + path(path: string): URI; + + /** + * Gets the search value + */ + search(): string; + + /** + * Sets the search + * @param search the search + * @return this object + */ + search(search: string): URI; + + /** + * Gets the query value + */ + query(): QueryString; + + /** + * Sets the query + * @param query the query + * @return this object + */ + query(query: QueryString): URI; + + /** + * Gets the hash value + */ + hash(): string; + + /** + * Sets the hash + * @param hash the hash + * @return this object + */ + hash(hash: string): URI; + } + + /** + * URI parts + */ + interface URIParts { + uri: string; + protocol: string; + host: string; + hostname: string; + port: string; + auth: string; + user: string; + password: string; + path: string; + search: string; + query: QueryString; + hash: string; + } + + /** + * Map of query string keys and values + */ + interface QueryString { + [key: string]: string|string[]; + } + + /** + * Credentials map + */ + interface Credentials { + user: string; + password: string; + } +} diff --git a/types/lil-uri/lil-uri-tests.ts b/types/lil-uri/lil-uri-tests.ts new file mode 100644 index 0000000000..0674e9422a --- /dev/null +++ b/types/lil-uri/lil-uri-tests.ts @@ -0,0 +1,59 @@ +import uri = require('lil-uri'); + +// +// Tests are based on code samples on https://github.com/lil-js/uri#readme +// + +// +// Parser +// + +const url = uri('http://user:pass@example.com:8080/bar/foo.xml?foo=bar&hello=world&#hash=1'); + +// $ExpectType string +url.protocol(); // -> http + +// $ExpectType string +url.host(); // -> example.com:8080 + +// $ExpectType string +url.hostname(); // -> example.com + +// $ExpectType number +url.port(); // -> 8080 + +// $ExpectType Credentials +url.auth(); // -> { user: 'user', password: 'pass' } + +// $ExpectType string +url.user(); // -> user + +// $ExpectType string +url.password(); // -> pass + +// $ExpectType string +url.path(); // -> /bar/foo.xml + +// $ExpectType string +url.search(); // -> foo=bar&hello=world + +// $ExpectType QueryString +url.query(); // -> { foo: 'bar', hello: 'world' } + +// $ExpectType string +url.hash(); // -> hash=1 + +// +// Builder +// + +// $ExpectType string +uri() + .protocol('https') + .host('example.com') + .port('8080') + .auth('user:pass') + .path('/bar/foo.xml') + .query({ foo: 'bar', hello: 'world' }) + .hash('hash=1') + .build(); // -> http://@example.com:8080/bar/foo.xml?foo=bar&hello=world&#frament=1 diff --git a/types/lil-uri/tsconfig.json b/types/lil-uri/tsconfig.json new file mode 100644 index 0000000000..22578f4124 --- /dev/null +++ b/types/lil-uri/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", + "lil-uri-tests.ts" + ] +} diff --git a/types/lil-uri/tslint.json b/types/lil-uri/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/lil-uri/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/lingui__core/index.d.ts b/types/lingui__core/index.d.ts index 9628f85634..c2243ba558 100644 --- a/types/lingui__core/index.d.ts +++ b/types/lingui__core/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @lingui/core 2.2 -// Project: https://lingui.github.io/js-lingui/ +// Project: https://lingui.github.io/js-lingui/, https://github.com/lingui/js-lingui // Definitions by: Jeow Li Huan // Definitions: https://github.com/huan086/lingui-typings // TypeScript Version: 2.2 diff --git a/types/lingui__macro/Trans.d.ts b/types/lingui__macro/Trans.d.ts index c1834b770d..ba950bb2be 100644 --- a/types/lingui__macro/Trans.d.ts +++ b/types/lingui__macro/Trans.d.ts @@ -6,7 +6,7 @@ export interface TransPropsWithoutI18n extends RenderProps { defaults?: string; values?: object; formats?: object; - components?: ReadonlyArray>; + components?: ReadonlyArray; children?: ReactNode; } diff --git a/types/lingui__macro/index.d.ts b/types/lingui__macro/index.d.ts index 036434b636..e433b43ec7 100644 --- a/types/lingui__macro/index.d.ts +++ b/types/lingui__macro/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @lingui/macro 2.7 -// Project: https://lingui.github.io/js-lingui/ +// Project: https://lingui.github.io/js-lingui/, https://github.com/lingui/js-lingui // Definitions by: Jeow Li Huan // Definitions: https://github.com/huan086/lingui-typings // TypeScript Version: 2.8 diff --git a/types/lingui__react/Trans.d.ts b/types/lingui__react/Trans.d.ts index c1834b770d..ba950bb2be 100644 --- a/types/lingui__react/Trans.d.ts +++ b/types/lingui__react/Trans.d.ts @@ -6,7 +6,7 @@ export interface TransPropsWithoutI18n extends RenderProps { defaults?: string; values?: object; formats?: object; - components?: ReadonlyArray>; + components?: ReadonlyArray; children?: ReactNode; } diff --git a/types/lingui__react/index.d.ts b/types/lingui__react/index.d.ts index da40b247ce..8d23645c30 100644 --- a/types/lingui__react/index.d.ts +++ b/types/lingui__react/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for @lingui/react 2.5 -// Project: https://lingui.github.io/js-lingui/ +// Project: https://lingui.github.io/js-lingui/, https://github.com/lingui/js-lingui // Definitions by: Jeow Li Huan // Definitions: https://github.com/huan086/lingui-typings // TypeScript Version: 2.8 diff --git a/types/loadable__component/index.d.ts b/types/loadable__component/index.d.ts index c4877bd8a9..f901457828 100644 --- a/types/loadable__component/index.d.ts +++ b/types/loadable__component/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for @loadable/component 5.2 +// Type definitions for @loadable/component 5.6 // Project: https://github.com/smooth-code/loadable-components // Definitions by: Martynas Kadiša // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -14,15 +14,16 @@ export type DefaultComponent

= React.ComponentType

| DefaultImportedCompon export interface Options { fallback?: JSX.Element; + ssr?: boolean; } -export type LoadableComponent = React.ComponentType; +export type LoadableComponent = React.ComponentType & { preload(props?: T): void }; export type LoadableLibrary = React.ComponentType<{ fallback?: JSX.Element; children?: (module: TModule) => React.ReactNode; ref?: React.Ref; }> & - TModule; + TModule & { preload(props?: object): void }; declare function lib( loadFn: (props: object) => Promise, diff --git a/types/loadable__component/loadable__component-tests.tsx b/types/loadable__component/loadable__component-tests.tsx index d286711be1..d5abfa3a5c 100644 --- a/types/loadable__component/loadable__component-tests.tsx +++ b/types/loadable__component/loadable__component-tests.tsx @@ -36,8 +36,14 @@ function importLibLoader() { // Should allow passing JSX element to fallback in options loadable(defaultImportComponentLoader, { fallback:

loading...
}); + // Should allow passing boolean to `ssr` in options + loadable(defaultImportComponentLoader, { ssr: true }); + // Should allow passing `fallback` prop to loadable component loading...} />; + + // Should allow preloading + LoadableComponent.preload(); } // lazy @@ -52,6 +58,9 @@ function importLibLoader() { // Should allow passing fallback prop loading...} />; + + // Should allow preloading + LazyComponent.preload(); } // loadable.lib @@ -71,6 +80,9 @@ function importLibLoader() { // Should allow passing fallback JSX element loadable.lib(importLibLoader, { fallback:
loading lib...
}); + // Should allow passing boolean to `ssr` in options + loadable.lib(defaultImportComponentLoader, { ssr: true }); + // Should allow passing fallback prop Loading library...}> {({ getTestObj }) => getTestObj().foo} @@ -80,6 +92,9 @@ function importLibLoader() { const ref = React.createRef(); ; ref.current!.getTestObj().foo; + + // Should allow preloading + LoadableLibrary.preload(); } // lazy.lib @@ -105,6 +120,9 @@ function importLibLoader() { const ref = React.createRef(); ; ref.current!.getTestObj().foo; + + // Should allow preloading + LazyDefaultLibrary.preload(); } // loadableReady diff --git a/types/localizejs-library/index.d.ts b/types/localizejs-library/index.d.ts index e8a14392b9..d7a579a399 100644 --- a/types/localizejs-library/index.d.ts +++ b/types/localizejs-library/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for LocalizeJS Library 1.0 +// Type definitions for non-npm package LocalizeJS Library 1.0 // Project: https://help.localizejs.com/docs/library-api // Definitions by: Samer Albahra // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/lockfile/index.d.ts b/types/lockfile/index.d.ts index 422b2b80a3..4d2acd9863 100644 --- a/types/lockfile/index.d.ts +++ b/types/lockfile/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lockfile 1.0 -// Project: https://github.com/isaacs/lockfile +// Project: https://github.com/npm/lockfile // Definitions by: Bart van der Schoor // BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/lodash-es/index.d.ts b/types/lodash-es/index.d.ts index 3ea316d67b..61eb6016ee 100644 --- a/types/lodash-es/index.d.ts +++ b/types/lodash-es/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash-es 4.17 -// Project: http://lodash.com/ +// Project: http://lodash.com/, https://lodash.com/custom-builds // Definitions by: Stephen Lautier , e-cloud // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.add/index.d.ts b/types/lodash.add/index.d.ts index 00d16b08e6..742a2fc000 100644 --- a/types/lodash.add/index.d.ts +++ b/types/lodash.add/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.add 3.7 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.after/index.d.ts b/types/lodash.after/index.d.ts index 6187f9676f..48adaf8994 100644 --- a/types/lodash.after/index.d.ts +++ b/types/lodash.after/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.after 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.ary/index.d.ts b/types/lodash.ary/index.d.ts index c55dadc0c1..d442d3ad4d 100644 --- a/types/lodash.ary/index.d.ts +++ b/types/lodash.ary/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.ary 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.assign/index.d.ts b/types/lodash.assign/index.d.ts index fa4c94932f..549fb7af74 100644 --- a/types/lodash.assign/index.d.ts +++ b/types/lodash.assign/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.assign 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.assignin/index.d.ts b/types/lodash.assignin/index.d.ts index f7b2d7a70f..34e644c6b9 100644 --- a/types/lodash.assignin/index.d.ts +++ b/types/lodash.assignin/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.assignIn 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.assigninwith/index.d.ts b/types/lodash.assigninwith/index.d.ts index 6d4a04fd2b..ba48574c0d 100644 --- a/types/lodash.assigninwith/index.d.ts +++ b/types/lodash.assigninwith/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.assignInWith 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.assignwith/index.d.ts b/types/lodash.assignwith/index.d.ts index 57600a053d..b88032631e 100644 --- a/types/lodash.assignwith/index.d.ts +++ b/types/lodash.assignwith/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.assignWith 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.at/index.d.ts b/types/lodash.at/index.d.ts index edff6471b4..a307f84553 100644 --- a/types/lodash.at/index.d.ts +++ b/types/lodash.at/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.at 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.attempt/index.d.ts b/types/lodash.attempt/index.d.ts index c6b29b05b4..71b89a092f 100644 --- a/types/lodash.attempt/index.d.ts +++ b/types/lodash.attempt/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.attempt 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.before/index.d.ts b/types/lodash.before/index.d.ts index 7e4add0ab1..f19139a5ee 100644 --- a/types/lodash.before/index.d.ts +++ b/types/lodash.before/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.before 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.bind/index.d.ts b/types/lodash.bind/index.d.ts index c2a5d00e9e..e90ebaa4c1 100644 --- a/types/lodash.bind/index.d.ts +++ b/types/lodash.bind/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.bind 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.bindall/index.d.ts b/types/lodash.bindall/index.d.ts index 183812c630..4a4cb0de76 100644 --- a/types/lodash.bindall/index.d.ts +++ b/types/lodash.bindall/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.bindAll 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.bindkey/index.d.ts b/types/lodash.bindkey/index.d.ts index 6ba68efdec..86c9c13672 100644 --- a/types/lodash.bindkey/index.d.ts +++ b/types/lodash.bindkey/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.bindKey 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.camelcase/index.d.ts b/types/lodash.camelcase/index.d.ts index cac7ee844d..6fbedc08d6 100644 --- a/types/lodash.camelcase/index.d.ts +++ b/types/lodash.camelcase/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.camelCase 4.3 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.capitalize/index.d.ts b/types/lodash.capitalize/index.d.ts index a6fc0db0a2..fbe1b177ee 100644 --- a/types/lodash.capitalize/index.d.ts +++ b/types/lodash.capitalize/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.capitalize 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.castarray/index.d.ts b/types/lodash.castarray/index.d.ts index 8173acc5bb..41e53aecff 100644 --- a/types/lodash.castarray/index.d.ts +++ b/types/lodash.castarray/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.castArray 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.ceil/index.d.ts b/types/lodash.ceil/index.d.ts index fece48100d..d6e055af91 100644 --- a/types/lodash.ceil/index.d.ts +++ b/types/lodash.ceil/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.ceil 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.chunk/index.d.ts b/types/lodash.chunk/index.d.ts index a6907e5bae..c85c5c988c 100644 --- a/types/lodash.chunk/index.d.ts +++ b/types/lodash.chunk/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.chunk 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.clamp/index.d.ts b/types/lodash.clamp/index.d.ts index 402cebf9e6..7bc75b42e9 100644 --- a/types/lodash.clamp/index.d.ts +++ b/types/lodash.clamp/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.clamp 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.clone/index.d.ts b/types/lodash.clone/index.d.ts index 8517afee09..62da74b22d 100644 --- a/types/lodash.clone/index.d.ts +++ b/types/lodash.clone/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.clone 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.clonedeep/index.d.ts b/types/lodash.clonedeep/index.d.ts index a1766a12e5..5f25f0cfa7 100644 --- a/types/lodash.clonedeep/index.d.ts +++ b/types/lodash.clonedeep/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.cloneDeep 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.clonedeepwith/index.d.ts b/types/lodash.clonedeepwith/index.d.ts index 0977563508..9725303ac2 100644 --- a/types/lodash.clonedeepwith/index.d.ts +++ b/types/lodash.clonedeepwith/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.cloneDeepWith 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.clonewith/index.d.ts b/types/lodash.clonewith/index.d.ts index 0caf99deb8..b02127620c 100644 --- a/types/lodash.clonewith/index.d.ts +++ b/types/lodash.clonewith/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.cloneWith 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.compact/index.d.ts b/types/lodash.compact/index.d.ts index 7ed354f717..48b4bbd7e1 100644 --- a/types/lodash.compact/index.d.ts +++ b/types/lodash.compact/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.compact 3.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.concat/index.d.ts b/types/lodash.concat/index.d.ts index 8c88e834a7..576dd6aa6b 100644 --- a/types/lodash.concat/index.d.ts +++ b/types/lodash.concat/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.concat 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.cond/index.d.ts b/types/lodash.cond/index.d.ts index 8570a945da..633e40809e 100644 --- a/types/lodash.cond/index.d.ts +++ b/types/lodash.cond/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.cond 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.constant/index.d.ts b/types/lodash.constant/index.d.ts index 15a624e90e..5122739117 100644 --- a/types/lodash.constant/index.d.ts +++ b/types/lodash.constant/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.constant 3.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.countby/index.d.ts b/types/lodash.countby/index.d.ts index 5d352a8b48..1f569be971 100644 --- a/types/lodash.countby/index.d.ts +++ b/types/lodash.countby/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.countBy 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.create/index.d.ts b/types/lodash.create/index.d.ts index 5be60d77f3..173f439a2f 100644 --- a/types/lodash.create/index.d.ts +++ b/types/lodash.create/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.create 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.curry/index.d.ts b/types/lodash.curry/index.d.ts index 9f00457f3f..d569ccb852 100644 --- a/types/lodash.curry/index.d.ts +++ b/types/lodash.curry/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.curry 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.curryright/index.d.ts b/types/lodash.curryright/index.d.ts index a19422b8cc..0d13c7d705 100644 --- a/types/lodash.curryright/index.d.ts +++ b/types/lodash.curryright/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.curryRight 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.debounce/index.d.ts b/types/lodash.debounce/index.d.ts index c6e5fe52cb..4babb92e45 100644 --- a/types/lodash.debounce/index.d.ts +++ b/types/lodash.debounce/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.debounce 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.deburr/index.d.ts b/types/lodash.deburr/index.d.ts index c75b793a43..103ae6f0b9 100644 --- a/types/lodash.deburr/index.d.ts +++ b/types/lodash.deburr/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.deburr 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.defaults/index.d.ts b/types/lodash.defaults/index.d.ts index 85309c3f62..9d92dd3021 100644 --- a/types/lodash.defaults/index.d.ts +++ b/types/lodash.defaults/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.defaults 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.defaultsdeep/index.d.ts b/types/lodash.defaultsdeep/index.d.ts index 8fd5eceea6..d1f1e1aa4e 100644 --- a/types/lodash.defaultsdeep/index.d.ts +++ b/types/lodash.defaultsdeep/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.defaultsDeep 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.defer/index.d.ts b/types/lodash.defer/index.d.ts index 1ba71f43a6..12247d6273 100644 --- a/types/lodash.defer/index.d.ts +++ b/types/lodash.defer/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.defer 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.delay/index.d.ts b/types/lodash.delay/index.d.ts index b6d6dc253d..2ad1ff79d3 100644 --- a/types/lodash.delay/index.d.ts +++ b/types/lodash.delay/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.delay 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.difference/index.d.ts b/types/lodash.difference/index.d.ts index 8584bdc360..9843b97496 100644 --- a/types/lodash.difference/index.d.ts +++ b/types/lodash.difference/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.difference 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.differenceby/index.d.ts b/types/lodash.differenceby/index.d.ts index c72ec8a20e..24d95da85a 100644 --- a/types/lodash.differenceby/index.d.ts +++ b/types/lodash.differenceby/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.differenceBy 4.8 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.differencewith/index.d.ts b/types/lodash.differencewith/index.d.ts index f1dbdf9e06..32f51678ab 100644 --- a/types/lodash.differencewith/index.d.ts +++ b/types/lodash.differencewith/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.differenceWith 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.divide/index.d.ts b/types/lodash.divide/index.d.ts index d111dae3b6..7abbafd7bd 100644 --- a/types/lodash.divide/index.d.ts +++ b/types/lodash.divide/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.divide 4.9 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.drop/index.d.ts b/types/lodash.drop/index.d.ts index 49734fc833..9eaf528d73 100644 --- a/types/lodash.drop/index.d.ts +++ b/types/lodash.drop/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.drop 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.dropright/index.d.ts b/types/lodash.dropright/index.d.ts index 7239b9ebfa..73056b73a4 100644 --- a/types/lodash.dropright/index.d.ts +++ b/types/lodash.dropright/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.dropRight 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.droprightwhile/index.d.ts b/types/lodash.droprightwhile/index.d.ts index 4ccfa00c7f..a145e956ee 100644 --- a/types/lodash.droprightwhile/index.d.ts +++ b/types/lodash.droprightwhile/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.dropRightWhile 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.dropwhile/index.d.ts b/types/lodash.dropwhile/index.d.ts index 4dcc629786..7be29abfc4 100644 --- a/types/lodash.dropwhile/index.d.ts +++ b/types/lodash.dropwhile/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.dropWhile 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.endswith/index.d.ts b/types/lodash.endswith/index.d.ts index 14c8d65424..d27aea64c5 100644 --- a/types/lodash.endswith/index.d.ts +++ b/types/lodash.endswith/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.endsWith 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.eq/index.d.ts b/types/lodash.eq/index.d.ts index db03c67aa4..1e577a2dac 100644 --- a/types/lodash.eq/index.d.ts +++ b/types/lodash.eq/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.eq 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.escape/index.d.ts b/types/lodash.escape/index.d.ts index 6df7eda743..3b9b0845ad 100644 --- a/types/lodash.escape/index.d.ts +++ b/types/lodash.escape/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.escape 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.escaperegexp/index.d.ts b/types/lodash.escaperegexp/index.d.ts index eff6aeb8d8..5d508bf40f 100644 --- a/types/lodash.escaperegexp/index.d.ts +++ b/types/lodash.escaperegexp/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.escapeRegExp 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.every/index.d.ts b/types/lodash.every/index.d.ts index 3106368cb8..d4443355a4 100644 --- a/types/lodash.every/index.d.ts +++ b/types/lodash.every/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.every 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.fill/index.d.ts b/types/lodash.fill/index.d.ts index 6a7f90cf09..21eca6cb70 100644 --- a/types/lodash.fill/index.d.ts +++ b/types/lodash.fill/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.fill 3.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.filter/index.d.ts b/types/lodash.filter/index.d.ts index e5a3859a0e..b7eaf4d001 100644 --- a/types/lodash.filter/index.d.ts +++ b/types/lodash.filter/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.filter 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.find/index.d.ts b/types/lodash.find/index.d.ts index 4b4b1f20c9..a4723afa63 100644 --- a/types/lodash.find/index.d.ts +++ b/types/lodash.find/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.find 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.findindex/index.d.ts b/types/lodash.findindex/index.d.ts index 2f935455ce..04045617e0 100644 --- a/types/lodash.findindex/index.d.ts +++ b/types/lodash.findindex/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.findIndex 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.findkey/index.d.ts b/types/lodash.findkey/index.d.ts index 2aa119a378..151b5e28d8 100644 --- a/types/lodash.findkey/index.d.ts +++ b/types/lodash.findkey/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.findKey 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.findlast/index.d.ts b/types/lodash.findlast/index.d.ts index 6d1d0ef3ab..e06477e488 100644 --- a/types/lodash.findlast/index.d.ts +++ b/types/lodash.findlast/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.findLast 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.findlastindex/index.d.ts b/types/lodash.findlastindex/index.d.ts index 3d603cf6ff..982b1d3880 100644 --- a/types/lodash.findlastindex/index.d.ts +++ b/types/lodash.findlastindex/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.findLastIndex 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.findlastkey/index.d.ts b/types/lodash.findlastkey/index.d.ts index 4708fba2cb..7ce6837eb7 100644 --- a/types/lodash.findlastkey/index.d.ts +++ b/types/lodash.findlastkey/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.findLastKey 4.7 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.first/index.d.ts b/types/lodash.first/index.d.ts index 7a14e5fc40..cd48bdc4bf 100644 --- a/types/lodash.first/index.d.ts +++ b/types/lodash.first/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.first 3.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.flatmap/index.d.ts b/types/lodash.flatmap/index.d.ts index b934345e81..11cd11337b 100644 --- a/types/lodash.flatmap/index.d.ts +++ b/types/lodash.flatmap/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.flatMap 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.flatmapdeep/index.d.ts b/types/lodash.flatmapdeep/index.d.ts index 0d70f9138e..d4f10edf3e 100644 --- a/types/lodash.flatmapdeep/index.d.ts +++ b/types/lodash.flatmapdeep/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.flatMapDeep 4.10 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.flatmapdepth/index.d.ts b/types/lodash.flatmapdepth/index.d.ts index b5f690e357..91fb6bd576 100644 --- a/types/lodash.flatmapdepth/index.d.ts +++ b/types/lodash.flatmapdepth/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.flatMapDepth 4.10 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.flatten/index.d.ts b/types/lodash.flatten/index.d.ts index 766108b8b8..3689f19e15 100644 --- a/types/lodash.flatten/index.d.ts +++ b/types/lodash.flatten/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.flatten 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.flattendeep/index.d.ts b/types/lodash.flattendeep/index.d.ts index 9cd6dd213a..791f2b384f 100644 --- a/types/lodash.flattendeep/index.d.ts +++ b/types/lodash.flattendeep/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.flattenDeep 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.flattendepth/index.d.ts b/types/lodash.flattendepth/index.d.ts index b8de6e67bb..443cdc0cd0 100644 --- a/types/lodash.flattendepth/index.d.ts +++ b/types/lodash.flattendepth/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.flattenDepth 4.7 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.flip/index.d.ts b/types/lodash.flip/index.d.ts index 4dedd9c4a4..6adfc21057 100644 --- a/types/lodash.flip/index.d.ts +++ b/types/lodash.flip/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.flip 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.floor/index.d.ts b/types/lodash.floor/index.d.ts index 6e906c8527..27cfda6f21 100644 --- a/types/lodash.floor/index.d.ts +++ b/types/lodash.floor/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.floor 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.flow/index.d.ts b/types/lodash.flow/index.d.ts index 905b15658a..e6be4df9cc 100644 --- a/types/lodash.flow/index.d.ts +++ b/types/lodash.flow/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.flow 3.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.flowright/index.d.ts b/types/lodash.flowright/index.d.ts index 1448c48053..aa53e08fff 100644 --- a/types/lodash.flowright/index.d.ts +++ b/types/lodash.flowright/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.flowRight 3.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.foreach/index.d.ts b/types/lodash.foreach/index.d.ts index 32068bef80..464cb0e867 100644 --- a/types/lodash.foreach/index.d.ts +++ b/types/lodash.foreach/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.forEach 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.foreachright/index.d.ts b/types/lodash.foreachright/index.d.ts index d0838f880b..9ad225ae54 100644 --- a/types/lodash.foreachright/index.d.ts +++ b/types/lodash.foreachright/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.forEachRight 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.forin/index.d.ts b/types/lodash.forin/index.d.ts index 15160e9b11..54669de7f9 100644 --- a/types/lodash.forin/index.d.ts +++ b/types/lodash.forin/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.forIn 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.forinright/index.d.ts b/types/lodash.forinright/index.d.ts index ca16e9d84f..cfa0a1843a 100644 --- a/types/lodash.forinright/index.d.ts +++ b/types/lodash.forinright/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.forInRight 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.forown/index.d.ts b/types/lodash.forown/index.d.ts index ee2c6fa068..e1df00c22a 100644 --- a/types/lodash.forown/index.d.ts +++ b/types/lodash.forown/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.forOwn 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.forownright/index.d.ts b/types/lodash.forownright/index.d.ts index 63311de202..1a349592fd 100644 --- a/types/lodash.forownright/index.d.ts +++ b/types/lodash.forownright/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.forOwnRight 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.frompairs/index.d.ts b/types/lodash.frompairs/index.d.ts index 23df262b5b..f73cb2b9dd 100644 --- a/types/lodash.frompairs/index.d.ts +++ b/types/lodash.frompairs/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.fromPairs 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.functions/index.d.ts b/types/lodash.functions/index.d.ts index 774965a4e0..40abae2872 100644 --- a/types/lodash.functions/index.d.ts +++ b/types/lodash.functions/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.functions 4.3 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.functionsin/index.d.ts b/types/lodash.functionsin/index.d.ts index ff8e82356a..17cca60180 100644 --- a/types/lodash.functionsin/index.d.ts +++ b/types/lodash.functionsin/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.functionsIn 4.3 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.get/index.d.ts b/types/lodash.get/index.d.ts index b961e34f87..7ad640da93 100644 --- a/types/lodash.get/index.d.ts +++ b/types/lodash.get/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.get 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.groupby/index.d.ts b/types/lodash.groupby/index.d.ts index bae0166900..9363e47b41 100644 --- a/types/lodash.groupby/index.d.ts +++ b/types/lodash.groupby/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.groupBy 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.gt/index.d.ts b/types/lodash.gt/index.d.ts index 3da1ad1633..6a973547b0 100644 --- a/types/lodash.gt/index.d.ts +++ b/types/lodash.gt/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.gt 3.9 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.gte/index.d.ts b/types/lodash.gte/index.d.ts index 78de8e60df..f968e8bb20 100644 --- a/types/lodash.gte/index.d.ts +++ b/types/lodash.gte/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.gte 3.9 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.has/index.d.ts b/types/lodash.has/index.d.ts index c2f5da7951..4f917d5187 100644 --- a/types/lodash.has/index.d.ts +++ b/types/lodash.has/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.has 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.hasin/index.d.ts b/types/lodash.hasin/index.d.ts index 619bc11335..ca286c6cd9 100644 --- a/types/lodash.hasin/index.d.ts +++ b/types/lodash.hasin/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.hasIn 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.head/index.d.ts b/types/lodash.head/index.d.ts index 7060dea1bc..e26f114bf0 100644 --- a/types/lodash.head/index.d.ts +++ b/types/lodash.head/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.head 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.identity/index.d.ts b/types/lodash.identity/index.d.ts index 65a568a732..986c039d2e 100644 --- a/types/lodash.identity/index.d.ts +++ b/types/lodash.identity/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.identity 3.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.includes/index.d.ts b/types/lodash.includes/index.d.ts index 627a174174..1b490f7aed 100644 --- a/types/lodash.includes/index.d.ts +++ b/types/lodash.includes/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.includes 4.3 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.indexof/index.d.ts b/types/lodash.indexof/index.d.ts index 98267c8c95..8102c6a697 100644 --- a/types/lodash.indexof/index.d.ts +++ b/types/lodash.indexof/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.indexOf 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.initial/index.d.ts b/types/lodash.initial/index.d.ts index 8e4554e85f..9fa9218416 100644 --- a/types/lodash.initial/index.d.ts +++ b/types/lodash.initial/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.initial 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.inrange/index.d.ts b/types/lodash.inrange/index.d.ts index 66ffbcf901..3a817d9d2d 100644 --- a/types/lodash.inrange/index.d.ts +++ b/types/lodash.inrange/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.inRange 3.3 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.intersection/index.d.ts b/types/lodash.intersection/index.d.ts index db56bd9ad9..044cd6949d 100644 --- a/types/lodash.intersection/index.d.ts +++ b/types/lodash.intersection/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.intersection 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.intersectionby/index.d.ts b/types/lodash.intersectionby/index.d.ts index 0b17495dd1..a1d01a7c5d 100644 --- a/types/lodash.intersectionby/index.d.ts +++ b/types/lodash.intersectionby/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.intersectionBy 4.7 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.intersectionwith/index.d.ts b/types/lodash.intersectionwith/index.d.ts index 646f60b95b..ff7cba542d 100644 --- a/types/lodash.intersectionwith/index.d.ts +++ b/types/lodash.intersectionwith/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.intersectionWith 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.invert/index.d.ts b/types/lodash.invert/index.d.ts index d87b20287d..112bbee8e6 100644 --- a/types/lodash.invert/index.d.ts +++ b/types/lodash.invert/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.invert 4.3 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.invertby/index.d.ts b/types/lodash.invertby/index.d.ts index eb7eb2ee2a..f7c8ef8ee7 100644 --- a/types/lodash.invertby/index.d.ts +++ b/types/lodash.invertby/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.invertBy 4.7 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.invoke/index.d.ts b/types/lodash.invoke/index.d.ts index c912aa0666..fb979c2079 100644 --- a/types/lodash.invoke/index.d.ts +++ b/types/lodash.invoke/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.invoke 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.invokemap/index.d.ts b/types/lodash.invokemap/index.d.ts index 3b910216e2..7cefb18454 100644 --- a/types/lodash.invokemap/index.d.ts +++ b/types/lodash.invokemap/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.invokeMap 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isarguments/index.d.ts b/types/lodash.isarguments/index.d.ts index 683cfa2f41..9f8704e327 100644 --- a/types/lodash.isarguments/index.d.ts +++ b/types/lodash.isarguments/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isArguments 3.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isarray/index.d.ts b/types/lodash.isarray/index.d.ts index 0a8cc51877..60299a147c 100644 --- a/types/lodash.isarray/index.d.ts +++ b/types/lodash.isarray/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isArray 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isarraybuffer/index.d.ts b/types/lodash.isarraybuffer/index.d.ts index 0d9180fa3c..ddeee837b6 100644 --- a/types/lodash.isarraybuffer/index.d.ts +++ b/types/lodash.isarraybuffer/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isArrayBuffer 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isarraylike/index.d.ts b/types/lodash.isarraylike/index.d.ts index d7d826b62c..761e226f3d 100644 --- a/types/lodash.isarraylike/index.d.ts +++ b/types/lodash.isarraylike/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isArrayLike 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isarraylikeobject/index.d.ts b/types/lodash.isarraylikeobject/index.d.ts index e817ab932b..8a3562ef04 100644 --- a/types/lodash.isarraylikeobject/index.d.ts +++ b/types/lodash.isarraylikeobject/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isArrayLikeObject 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isboolean/index.d.ts b/types/lodash.isboolean/index.d.ts index 1870287eea..60d3b863a8 100644 --- a/types/lodash.isboolean/index.d.ts +++ b/types/lodash.isboolean/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isBoolean 3.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isbuffer/index.d.ts b/types/lodash.isbuffer/index.d.ts index eff600740f..e39e927ff1 100644 --- a/types/lodash.isbuffer/index.d.ts +++ b/types/lodash.isbuffer/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isBuffer 4.3 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isdate/index.d.ts b/types/lodash.isdate/index.d.ts index c41e8d5130..cba12e469a 100644 --- a/types/lodash.isdate/index.d.ts +++ b/types/lodash.isdate/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isDate 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.iselement/index.d.ts b/types/lodash.iselement/index.d.ts index e1295e1136..751b675421 100644 --- a/types/lodash.iselement/index.d.ts +++ b/types/lodash.iselement/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isElement 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isempty/index.d.ts b/types/lodash.isempty/index.d.ts index 3ce119387f..92bf9b2168 100644 --- a/types/lodash.isempty/index.d.ts +++ b/types/lodash.isempty/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isEmpty 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isequal/index.d.ts b/types/lodash.isequal/index.d.ts index 07fc7af364..0a00fb83ce 100644 --- a/types/lodash.isequal/index.d.ts +++ b/types/lodash.isequal/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isEqual 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isequalwith/index.d.ts b/types/lodash.isequalwith/index.d.ts index 2d3b4bcbbe..05eaecdbd0 100644 --- a/types/lodash.isequalwith/index.d.ts +++ b/types/lodash.isequalwith/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isEqualWith 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.iserror/index.d.ts b/types/lodash.iserror/index.d.ts index ed6fd0cbb1..5e31aa33de 100644 --- a/types/lodash.iserror/index.d.ts +++ b/types/lodash.iserror/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isError 3.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isfinite/index.d.ts b/types/lodash.isfinite/index.d.ts index f45109c32b..7d4874cd4a 100644 --- a/types/lodash.isfinite/index.d.ts +++ b/types/lodash.isfinite/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isFinite 3.3 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isfunction/index.d.ts b/types/lodash.isfunction/index.d.ts index 3930b74f24..b0876bfe82 100644 --- a/types/lodash.isfunction/index.d.ts +++ b/types/lodash.isfunction/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isFunction 3.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isinteger/index.d.ts b/types/lodash.isinteger/index.d.ts index 284bedd3ac..e42d7bb1ac 100644 --- a/types/lodash.isinteger/index.d.ts +++ b/types/lodash.isinteger/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isInteger 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.islength/index.d.ts b/types/lodash.islength/index.d.ts index 8e4b70ebbc..86c63fd45b 100644 --- a/types/lodash.islength/index.d.ts +++ b/types/lodash.islength/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isLength 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.ismap/index.d.ts b/types/lodash.ismap/index.d.ts index 59de035b0d..10ebdf8fe4 100644 --- a/types/lodash.ismap/index.d.ts +++ b/types/lodash.ismap/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isMap 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.ismatch/index.d.ts b/types/lodash.ismatch/index.d.ts index a551e40bdb..6439efb285 100644 --- a/types/lodash.ismatch/index.d.ts +++ b/types/lodash.ismatch/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isMatch 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.ismatchwith/index.d.ts b/types/lodash.ismatchwith/index.d.ts index 12c28e91d0..322b329308 100644 --- a/types/lodash.ismatchwith/index.d.ts +++ b/types/lodash.ismatchwith/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isMatchWith 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isnan/index.d.ts b/types/lodash.isnan/index.d.ts index 8f91fd9fe4..3f2067314f 100644 --- a/types/lodash.isnan/index.d.ts +++ b/types/lodash.isnan/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isNaN 3.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isnative/index.d.ts b/types/lodash.isnative/index.d.ts index 79a21741b6..eb00733bee 100644 --- a/types/lodash.isnative/index.d.ts +++ b/types/lodash.isnative/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isNative 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isnil/index.d.ts b/types/lodash.isnil/index.d.ts index 07878b327c..fed4d9b833 100644 --- a/types/lodash.isnil/index.d.ts +++ b/types/lodash.isnil/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isNil 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isnull/index.d.ts b/types/lodash.isnull/index.d.ts index 82b0e5c73b..73ebb73e1b 100644 --- a/types/lodash.isnull/index.d.ts +++ b/types/lodash.isnull/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isNull 3.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isnumber/index.d.ts b/types/lodash.isnumber/index.d.ts index e49243cb92..28132eb6a9 100644 --- a/types/lodash.isnumber/index.d.ts +++ b/types/lodash.isnumber/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isNumber 3.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isobject/index.d.ts b/types/lodash.isobject/index.d.ts index 0fac0100ea..e1e05723b8 100644 --- a/types/lodash.isobject/index.d.ts +++ b/types/lodash.isobject/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isObject 3.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isobjectlike/index.d.ts b/types/lodash.isobjectlike/index.d.ts index de57ad36b1..6ad791127f 100644 --- a/types/lodash.isobjectlike/index.d.ts +++ b/types/lodash.isobjectlike/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isObjectLike 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isplainobject/index.d.ts b/types/lodash.isplainobject/index.d.ts index 13b2a28614..c76bc92a64 100644 --- a/types/lodash.isplainobject/index.d.ts +++ b/types/lodash.isplainobject/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isPlainObject 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isregexp/index.d.ts b/types/lodash.isregexp/index.d.ts index bd5056a919..65669eed68 100644 --- a/types/lodash.isregexp/index.d.ts +++ b/types/lodash.isregexp/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isRegExp 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.issafeinteger/index.d.ts b/types/lodash.issafeinteger/index.d.ts index e0cf8e9aeb..62bf5880c3 100644 --- a/types/lodash.issafeinteger/index.d.ts +++ b/types/lodash.issafeinteger/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isSafeInteger 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isset/index.d.ts b/types/lodash.isset/index.d.ts index 34bbe7b6b7..76a6789d52 100644 --- a/types/lodash.isset/index.d.ts +++ b/types/lodash.isset/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isSet 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isstring/index.d.ts b/types/lodash.isstring/index.d.ts index a2ccd5c3aa..81bcc8236a 100644 --- a/types/lodash.isstring/index.d.ts +++ b/types/lodash.isstring/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isString 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.issymbol/index.d.ts b/types/lodash.issymbol/index.d.ts index 4e7938ac12..51a1313671 100644 --- a/types/lodash.issymbol/index.d.ts +++ b/types/lodash.issymbol/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isSymbol 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.istypedarray/index.d.ts b/types/lodash.istypedarray/index.d.ts index e66c1b8591..5721a94c58 100644 --- a/types/lodash.istypedarray/index.d.ts +++ b/types/lodash.istypedarray/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isTypedArray 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isundefined/index.d.ts b/types/lodash.isundefined/index.d.ts index 3eb831c31d..a0f2f068fc 100644 --- a/types/lodash.isundefined/index.d.ts +++ b/types/lodash.isundefined/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isUndefined 3.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isweakmap/index.d.ts b/types/lodash.isweakmap/index.d.ts index da7a801f7b..28dc1febf5 100644 --- a/types/lodash.isweakmap/index.d.ts +++ b/types/lodash.isweakmap/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isWeakMap 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.isweakset/index.d.ts b/types/lodash.isweakset/index.d.ts index aba0c5c1ea..72465044fd 100644 --- a/types/lodash.isweakset/index.d.ts +++ b/types/lodash.isweakset/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.isWeakSet 4.3 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.iteratee/index.d.ts b/types/lodash.iteratee/index.d.ts index bb4f570b04..29e1cc29fd 100644 --- a/types/lodash.iteratee/index.d.ts +++ b/types/lodash.iteratee/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.iteratee 4.7 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.join/index.d.ts b/types/lodash.join/index.d.ts index d3c396c919..7769af5a06 100644 --- a/types/lodash.join/index.d.ts +++ b/types/lodash.join/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.join 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.kebabcase/index.d.ts b/types/lodash.kebabcase/index.d.ts index 3ebd5c0bac..70ca258fe0 100644 --- a/types/lodash.kebabcase/index.d.ts +++ b/types/lodash.kebabcase/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.kebabCase 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.keyby/index.d.ts b/types/lodash.keyby/index.d.ts index cdfe5b371f..e02a4dd3f5 100644 --- a/types/lodash.keyby/index.d.ts +++ b/types/lodash.keyby/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.keyBy 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.keys/index.d.ts b/types/lodash.keys/index.d.ts index c29e6dd6a2..177620ea0c 100644 --- a/types/lodash.keys/index.d.ts +++ b/types/lodash.keys/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.keys 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.keysin/index.d.ts b/types/lodash.keysin/index.d.ts index 3bae82e618..98dd57b500 100644 --- a/types/lodash.keysin/index.d.ts +++ b/types/lodash.keysin/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.keysIn 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.last/index.d.ts b/types/lodash.last/index.d.ts index 40507c89a6..dc2fadedb3 100644 --- a/types/lodash.last/index.d.ts +++ b/types/lodash.last/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.last 3.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.lastindexof/index.d.ts b/types/lodash.lastindexof/index.d.ts index 0f4bd029d1..891d2ca084 100644 --- a/types/lodash.lastindexof/index.d.ts +++ b/types/lodash.lastindexof/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.lastIndexOf 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.lowercase/index.d.ts b/types/lodash.lowercase/index.d.ts index 8fd634dce9..05a5a0a20e 100644 --- a/types/lodash.lowercase/index.d.ts +++ b/types/lodash.lowercase/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.lowerCase 4.3 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.lowerfirst/index.d.ts b/types/lodash.lowerfirst/index.d.ts index ec21074bc8..05f3e6d760 100644 --- a/types/lodash.lowerfirst/index.d.ts +++ b/types/lodash.lowerfirst/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.lowerFirst 4.3 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.lt/index.d.ts b/types/lodash.lt/index.d.ts index 76e9f7232a..c9ef9da1b9 100644 --- a/types/lodash.lt/index.d.ts +++ b/types/lodash.lt/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.lt 3.9 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.lte/index.d.ts b/types/lodash.lte/index.d.ts index 5f41829f56..7361ef610e 100644 --- a/types/lodash.lte/index.d.ts +++ b/types/lodash.lte/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.lte 3.9 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.mapkeys/index.d.ts b/types/lodash.mapkeys/index.d.ts index 2da90122d3..145fe41b89 100644 --- a/types/lodash.mapkeys/index.d.ts +++ b/types/lodash.mapkeys/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.mapKeys 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.mapvalues/index.d.ts b/types/lodash.mapvalues/index.d.ts index c1c8339228..86fb63ed4d 100644 --- a/types/lodash.mapvalues/index.d.ts +++ b/types/lodash.mapvalues/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.mapValues 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.matches/index.d.ts b/types/lodash.matches/index.d.ts index 7825c18641..ebdc90e017 100644 --- a/types/lodash.matches/index.d.ts +++ b/types/lodash.matches/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.matches 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.matchesproperty/index.d.ts b/types/lodash.matchesproperty/index.d.ts index f507730b82..533656be56 100644 --- a/types/lodash.matchesproperty/index.d.ts +++ b/types/lodash.matchesproperty/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.matchesProperty 4.7 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.max/index.d.ts b/types/lodash.max/index.d.ts index 3082ad8431..99aa8e2ffc 100644 --- a/types/lodash.max/index.d.ts +++ b/types/lodash.max/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.max 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.maxby/index.d.ts b/types/lodash.maxby/index.d.ts index ad7950063a..9362902bf4 100644 --- a/types/lodash.maxby/index.d.ts +++ b/types/lodash.maxby/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.maxBy 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.mean/index.d.ts b/types/lodash.mean/index.d.ts index 41d1e354db..2edd6adb1b 100644 --- a/types/lodash.mean/index.d.ts +++ b/types/lodash.mean/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.mean 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.meanby/index.d.ts b/types/lodash.meanby/index.d.ts index 3eee444d11..a4305a0560 100644 --- a/types/lodash.meanby/index.d.ts +++ b/types/lodash.meanby/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.meanBy 4.10 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.memoize/index.d.ts b/types/lodash.memoize/index.d.ts index 415e831a9c..869ae4ba7d 100644 --- a/types/lodash.memoize/index.d.ts +++ b/types/lodash.memoize/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.memoize 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.merge/index.d.ts b/types/lodash.merge/index.d.ts index a4c293fda9..a757f0694e 100644 --- a/types/lodash.merge/index.d.ts +++ b/types/lodash.merge/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.merge 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.mergewith/index.d.ts b/types/lodash.mergewith/index.d.ts index 7a6eff8ac1..ea3ceda237 100644 --- a/types/lodash.mergewith/index.d.ts +++ b/types/lodash.mergewith/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.mergeWith 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.method/index.d.ts b/types/lodash.method/index.d.ts index 1ca04640dd..6d36760961 100644 --- a/types/lodash.method/index.d.ts +++ b/types/lodash.method/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.method 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.methodof/index.d.ts b/types/lodash.methodof/index.d.ts index de42a138d7..057ef55108 100644 --- a/types/lodash.methodof/index.d.ts +++ b/types/lodash.methodof/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.methodOf 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.min/index.d.ts b/types/lodash.min/index.d.ts index 0aee524043..e8a613f17f 100644 --- a/types/lodash.min/index.d.ts +++ b/types/lodash.min/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.min 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.minby/index.d.ts b/types/lodash.minby/index.d.ts index d76ec94610..d9b6a58bfe 100644 --- a/types/lodash.minby/index.d.ts +++ b/types/lodash.minby/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.minBy 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.mixin/index.d.ts b/types/lodash.mixin/index.d.ts index cb702b1640..ff0a8975da 100644 --- a/types/lodash.mixin/index.d.ts +++ b/types/lodash.mixin/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.mixin 4.3 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.negate/index.d.ts b/types/lodash.negate/index.d.ts index aaf870172e..3043694532 100644 --- a/types/lodash.negate/index.d.ts +++ b/types/lodash.negate/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.negate 3.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.noop/index.d.ts b/types/lodash.noop/index.d.ts index 06d52fa333..30a76c63ce 100644 --- a/types/lodash.noop/index.d.ts +++ b/types/lodash.noop/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.noop 3.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.now/index.d.ts b/types/lodash.now/index.d.ts index a8fd64978a..1cb3ed1cea 100644 --- a/types/lodash.now/index.d.ts +++ b/types/lodash.now/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.now 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.nth/index.d.ts b/types/lodash.nth/index.d.ts index 106f634cab..5368fd7dee 100644 --- a/types/lodash.nth/index.d.ts +++ b/types/lodash.nth/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.nth 4.11 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.ntharg/index.d.ts b/types/lodash.ntharg/index.d.ts index 587f9418b6..d444e2cbee 100644 --- a/types/lodash.ntharg/index.d.ts +++ b/types/lodash.ntharg/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.nthArg 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.omit/index.d.ts b/types/lodash.omit/index.d.ts index 945fd29746..38d60f8538 100644 --- a/types/lodash.omit/index.d.ts +++ b/types/lodash.omit/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.omit 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.omitby/index.d.ts b/types/lodash.omitby/index.d.ts index 7e5ff364a0..5946e410ac 100644 --- a/types/lodash.omitby/index.d.ts +++ b/types/lodash.omitby/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.omitBy 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.once/index.d.ts b/types/lodash.once/index.d.ts index cc1b543125..fbe506150b 100644 --- a/types/lodash.once/index.d.ts +++ b/types/lodash.once/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.once 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.orderby/index.d.ts b/types/lodash.orderby/index.d.ts index 4f44153aaf..2e8c5c5da4 100644 --- a/types/lodash.orderby/index.d.ts +++ b/types/lodash.orderby/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.orderBy 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.over/index.d.ts b/types/lodash.over/index.d.ts index bd9622c09e..2d078c4853 100644 --- a/types/lodash.over/index.d.ts +++ b/types/lodash.over/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.over 4.7 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.overargs/index.d.ts b/types/lodash.overargs/index.d.ts index 014718136d..18b7024397 100644 --- a/types/lodash.overargs/index.d.ts +++ b/types/lodash.overargs/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.overArgs 4.7 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.overevery/index.d.ts b/types/lodash.overevery/index.d.ts index 5c1c41e4c3..7ca277f428 100644 --- a/types/lodash.overevery/index.d.ts +++ b/types/lodash.overevery/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.overEvery 4.7 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.oversome/index.d.ts b/types/lodash.oversome/index.d.ts index 62debc56ed..abf71cb967 100644 --- a/types/lodash.oversome/index.d.ts +++ b/types/lodash.oversome/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.overSome 4.7 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.pad/index.d.ts b/types/lodash.pad/index.d.ts index a839afa7b8..516d851dec 100644 --- a/types/lodash.pad/index.d.ts +++ b/types/lodash.pad/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.pad 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.padend/index.d.ts b/types/lodash.padend/index.d.ts index 403eb20f4e..fdaf51da25 100644 --- a/types/lodash.padend/index.d.ts +++ b/types/lodash.padend/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.padEnd 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.padstart/index.d.ts b/types/lodash.padstart/index.d.ts index d7a53dc384..a91cd5339e 100644 --- a/types/lodash.padstart/index.d.ts +++ b/types/lodash.padstart/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.padStart 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.parseint/index.d.ts b/types/lodash.parseint/index.d.ts index a484898083..727c8d66c7 100644 --- a/types/lodash.parseint/index.d.ts +++ b/types/lodash.parseint/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.parseInt 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.partial/index.d.ts b/types/lodash.partial/index.d.ts index e359b2e88d..18d68aa00a 100644 --- a/types/lodash.partial/index.d.ts +++ b/types/lodash.partial/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.partial 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.partialright/index.d.ts b/types/lodash.partialright/index.d.ts index 9a611e74a4..b005408404 100644 --- a/types/lodash.partialright/index.d.ts +++ b/types/lodash.partialright/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.partialRight 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.partition/index.d.ts b/types/lodash.partition/index.d.ts index 00d4217734..8abce2b57f 100644 --- a/types/lodash.partition/index.d.ts +++ b/types/lodash.partition/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.partition 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.pick/index.d.ts b/types/lodash.pick/index.d.ts index df8123935c..e2f2df3d30 100644 --- a/types/lodash.pick/index.d.ts +++ b/types/lodash.pick/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.pick 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.pickby/index.d.ts b/types/lodash.pickby/index.d.ts index f645edf4af..fdf61e9468 100644 --- a/types/lodash.pickby/index.d.ts +++ b/types/lodash.pickby/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.pickBy 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.property/index.d.ts b/types/lodash.property/index.d.ts index db33432a2b..0701c0ef8b 100644 --- a/types/lodash.property/index.d.ts +++ b/types/lodash.property/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.property 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.propertyof/index.d.ts b/types/lodash.propertyof/index.d.ts index bc577bb158..5c22792ce8 100644 --- a/types/lodash.propertyof/index.d.ts +++ b/types/lodash.propertyof/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.propertyOf 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.pull/index.d.ts b/types/lodash.pull/index.d.ts index ea8d9ce465..c9f543ff15 100644 --- a/types/lodash.pull/index.d.ts +++ b/types/lodash.pull/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.pull 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.pullall/index.d.ts b/types/lodash.pullall/index.d.ts index ab0bf70f99..7cce80257d 100644 --- a/types/lodash.pullall/index.d.ts +++ b/types/lodash.pullall/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.pullAll 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.pullallby/index.d.ts b/types/lodash.pullallby/index.d.ts index 95e3faf7b1..77adee2864 100644 --- a/types/lodash.pullallby/index.d.ts +++ b/types/lodash.pullallby/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.pullAllBy 4.7 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.pullallwith/index.d.ts b/types/lodash.pullallwith/index.d.ts index b7ef8fe66d..f11192ffbe 100644 --- a/types/lodash.pullallwith/index.d.ts +++ b/types/lodash.pullallwith/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.pullAllWith 4.7 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.pullat/index.d.ts b/types/lodash.pullat/index.d.ts index d27e13e939..4b04d54fac 100644 --- a/types/lodash.pullat/index.d.ts +++ b/types/lodash.pullat/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.pullAt 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.random/index.d.ts b/types/lodash.random/index.d.ts index 88faece9b8..48147b1b5a 100644 --- a/types/lodash.random/index.d.ts +++ b/types/lodash.random/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.random 3.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.range/index.d.ts b/types/lodash.range/index.d.ts index 63471fc4b7..9ca85ee30c 100644 --- a/types/lodash.range/index.d.ts +++ b/types/lodash.range/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.range 3.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.rangeright/index.d.ts b/types/lodash.rangeright/index.d.ts index a9db5fc861..f17168e479 100644 --- a/types/lodash.rangeright/index.d.ts +++ b/types/lodash.rangeright/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.rangeRight 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.rearg/index.d.ts b/types/lodash.rearg/index.d.ts index 4e66aa6a78..bdde2bd4af 100644 --- a/types/lodash.rearg/index.d.ts +++ b/types/lodash.rearg/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.rearg 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.reduce/index.d.ts b/types/lodash.reduce/index.d.ts index 959385250f..f7f58198eb 100644 --- a/types/lodash.reduce/index.d.ts +++ b/types/lodash.reduce/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.reduce 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.reduceright/index.d.ts b/types/lodash.reduceright/index.d.ts index 81fa92950a..4fc2a4d54a 100644 --- a/types/lodash.reduceright/index.d.ts +++ b/types/lodash.reduceright/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.reduceRight 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.reject/index.d.ts b/types/lodash.reject/index.d.ts index 2b6ba750f4..b183695eec 100644 --- a/types/lodash.reject/index.d.ts +++ b/types/lodash.reject/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.reject 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.remove/index.d.ts b/types/lodash.remove/index.d.ts index a600613fac..449e9d62de 100644 --- a/types/lodash.remove/index.d.ts +++ b/types/lodash.remove/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.remove 4.7 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.repeat/index.d.ts b/types/lodash.repeat/index.d.ts index f589dcf17c..fcd29d00f0 100644 --- a/types/lodash.repeat/index.d.ts +++ b/types/lodash.repeat/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.repeat 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.replace/index.d.ts b/types/lodash.replace/index.d.ts index 029c35d7b4..b3421ff41a 100644 --- a/types/lodash.replace/index.d.ts +++ b/types/lodash.replace/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.replace 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.rest/index.d.ts b/types/lodash.rest/index.d.ts index 9037abfcdb..bcc5c5e083 100644 --- a/types/lodash.rest/index.d.ts +++ b/types/lodash.rest/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.rest 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.result/index.d.ts b/types/lodash.result/index.d.ts index 096fe0cc48..684c213eea 100644 --- a/types/lodash.result/index.d.ts +++ b/types/lodash.result/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.result 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.reverse/index.d.ts b/types/lodash.reverse/index.d.ts index 7633952e42..72dbe9e2fe 100644 --- a/types/lodash.reverse/index.d.ts +++ b/types/lodash.reverse/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.reverse 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.round/index.d.ts b/types/lodash.round/index.d.ts index 12a4b6770b..7311d157ce 100644 --- a/types/lodash.round/index.d.ts +++ b/types/lodash.round/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.round 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.sample/index.d.ts b/types/lodash.sample/index.d.ts index ca1331a292..2eb8119f0e 100644 --- a/types/lodash.sample/index.d.ts +++ b/types/lodash.sample/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.sample 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.samplesize/index.d.ts b/types/lodash.samplesize/index.d.ts index 64574c1b0a..1df16efad5 100644 --- a/types/lodash.samplesize/index.d.ts +++ b/types/lodash.samplesize/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.sampleSize 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.set/index.d.ts b/types/lodash.set/index.d.ts index b94a5a8912..686e1588bc 100644 --- a/types/lodash.set/index.d.ts +++ b/types/lodash.set/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.set 4.3 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.setwith/index.d.ts b/types/lodash.setwith/index.d.ts index 6324d2ed60..b61d8ae119 100644 --- a/types/lodash.setwith/index.d.ts +++ b/types/lodash.setwith/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.setWith 4.3 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.shuffle/index.d.ts b/types/lodash.shuffle/index.d.ts index 722a855e06..d9374b5072 100644 --- a/types/lodash.shuffle/index.d.ts +++ b/types/lodash.shuffle/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.shuffle 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.size/index.d.ts b/types/lodash.size/index.d.ts index 1c26366438..18c18eeced 100644 --- a/types/lodash.size/index.d.ts +++ b/types/lodash.size/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.size 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.slice/index.d.ts b/types/lodash.slice/index.d.ts index 1c3063e813..c2381806b5 100644 --- a/types/lodash.slice/index.d.ts +++ b/types/lodash.slice/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.slice 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.snakecase/index.d.ts b/types/lodash.snakecase/index.d.ts index c0eb9e2892..7b468103ae 100644 --- a/types/lodash.snakecase/index.d.ts +++ b/types/lodash.snakecase/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.snakeCase 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.some/index.d.ts b/types/lodash.some/index.d.ts index dd4b5a6393..9fb21515a8 100644 --- a/types/lodash.some/index.d.ts +++ b/types/lodash.some/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.some 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.sortby/index.d.ts b/types/lodash.sortby/index.d.ts index 2f5c9c3859..14de9ae556 100644 --- a/types/lodash.sortby/index.d.ts +++ b/types/lodash.sortby/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.sortBy 4.7 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.sortedindex/index.d.ts b/types/lodash.sortedindex/index.d.ts index 85a996c023..23a331e64a 100644 --- a/types/lodash.sortedindex/index.d.ts +++ b/types/lodash.sortedindex/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.sortedIndex 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.sortedindexby/index.d.ts b/types/lodash.sortedindexby/index.d.ts index d4453c2d5c..6fa690eb63 100644 --- a/types/lodash.sortedindexby/index.d.ts +++ b/types/lodash.sortedindexby/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.sortedIndexBy 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.sortedindexof/index.d.ts b/types/lodash.sortedindexof/index.d.ts index 7a6ccf1a1c..1905dc923c 100644 --- a/types/lodash.sortedindexof/index.d.ts +++ b/types/lodash.sortedindexof/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.sortedIndexOf 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.sortedlastindex/index.d.ts b/types/lodash.sortedlastindex/index.d.ts index 42cfe82665..8759590288 100644 --- a/types/lodash.sortedlastindex/index.d.ts +++ b/types/lodash.sortedlastindex/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.sortedLastIndex 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.sortedlastindexby/index.d.ts b/types/lodash.sortedlastindexby/index.d.ts index b65e41a423..d513d18674 100644 --- a/types/lodash.sortedlastindexby/index.d.ts +++ b/types/lodash.sortedlastindexby/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.sortedLastIndexBy 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.sortedlastindexof/index.d.ts b/types/lodash.sortedlastindexof/index.d.ts index 0da507fa35..14d5656d62 100644 --- a/types/lodash.sortedlastindexof/index.d.ts +++ b/types/lodash.sortedlastindexof/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.sortedLastIndexOf 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.sorteduniq/index.d.ts b/types/lodash.sorteduniq/index.d.ts index c192b0194b..04af0325a0 100644 --- a/types/lodash.sorteduniq/index.d.ts +++ b/types/lodash.sorteduniq/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.sortedUniq 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.sorteduniqby/index.d.ts b/types/lodash.sorteduniqby/index.d.ts index b21474755b..26c838a01d 100644 --- a/types/lodash.sorteduniqby/index.d.ts +++ b/types/lodash.sorteduniqby/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.sortedUniqBy 4.7 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.split/index.d.ts b/types/lodash.split/index.d.ts index 0f67699d83..5400e2345a 100644 --- a/types/lodash.split/index.d.ts +++ b/types/lodash.split/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.split 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.spread/index.d.ts b/types/lodash.spread/index.d.ts index d9f630fe18..d96b12d1ba 100644 --- a/types/lodash.spread/index.d.ts +++ b/types/lodash.spread/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.spread 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.startcase/index.d.ts b/types/lodash.startcase/index.d.ts index b984bd7def..2c00230290 100644 --- a/types/lodash.startcase/index.d.ts +++ b/types/lodash.startcase/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.startCase 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.startswith/index.d.ts b/types/lodash.startswith/index.d.ts index 41bab99c58..fbd92b4c40 100644 --- a/types/lodash.startswith/index.d.ts +++ b/types/lodash.startswith/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.startsWith 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.subtract/index.d.ts b/types/lodash.subtract/index.d.ts index 32869bb8e5..676efb6f17 100644 --- a/types/lodash.subtract/index.d.ts +++ b/types/lodash.subtract/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.subtract 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.sum/index.d.ts b/types/lodash.sum/index.d.ts index cf041f00b3..b19d67a4ce 100644 --- a/types/lodash.sum/index.d.ts +++ b/types/lodash.sum/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.sum 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.sumby/index.d.ts b/types/lodash.sumby/index.d.ts index c4e6e8bbd1..a5f6ac015a 100644 --- a/types/lodash.sumby/index.d.ts +++ b/types/lodash.sumby/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.sumBy 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.tail/index.d.ts b/types/lodash.tail/index.d.ts index cababa89cc..51c89ef6b9 100644 --- a/types/lodash.tail/index.d.ts +++ b/types/lodash.tail/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.tail 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.take/index.d.ts b/types/lodash.take/index.d.ts index 4e63eb0fda..dffe621124 100644 --- a/types/lodash.take/index.d.ts +++ b/types/lodash.take/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.take 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.takeright/index.d.ts b/types/lodash.takeright/index.d.ts index 7459b3c1da..637926a744 100644 --- a/types/lodash.takeright/index.d.ts +++ b/types/lodash.takeright/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.takeRight 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.takerightwhile/index.d.ts b/types/lodash.takerightwhile/index.d.ts index bd689ec0c6..376124310a 100644 --- a/types/lodash.takerightwhile/index.d.ts +++ b/types/lodash.takerightwhile/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.takeRightWhile 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.takewhile/index.d.ts b/types/lodash.takewhile/index.d.ts index d38f753408..8e5e2958b5 100644 --- a/types/lodash.takewhile/index.d.ts +++ b/types/lodash.takewhile/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.takeWhile 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.template/index.d.ts b/types/lodash.template/index.d.ts index 1631671432..9060d5e979 100644 --- a/types/lodash.template/index.d.ts +++ b/types/lodash.template/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.template 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.throttle/index.d.ts b/types/lodash.throttle/index.d.ts index fa727a83e8..0e5e2c3d79 100644 --- a/types/lodash.throttle/index.d.ts +++ b/types/lodash.throttle/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.throttle 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.times/index.d.ts b/types/lodash.times/index.d.ts index 15f34ce730..dfbfcb0425 100644 --- a/types/lodash.times/index.d.ts +++ b/types/lodash.times/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.times 4.3 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.toarray/index.d.ts b/types/lodash.toarray/index.d.ts index f4046569c4..ea13431aa1 100644 --- a/types/lodash.toarray/index.d.ts +++ b/types/lodash.toarray/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.toArray 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.tofinite/index.d.ts b/types/lodash.tofinite/index.d.ts index f15e09f061..5639c9ba0f 100644 --- a/types/lodash.tofinite/index.d.ts +++ b/types/lodash.tofinite/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.toFinite 4.12 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.tointeger/index.d.ts b/types/lodash.tointeger/index.d.ts index 4f2da6588d..d662ff0695 100644 --- a/types/lodash.tointeger/index.d.ts +++ b/types/lodash.tointeger/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.toInteger 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.tolength/index.d.ts b/types/lodash.tolength/index.d.ts index 2895322b86..a198d6cb5f 100644 --- a/types/lodash.tolength/index.d.ts +++ b/types/lodash.tolength/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.toLength 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.tolower/index.d.ts b/types/lodash.tolower/index.d.ts index 442a460251..a056bef4ae 100644 --- a/types/lodash.tolower/index.d.ts +++ b/types/lodash.tolower/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.toLower 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.tonumber/index.d.ts b/types/lodash.tonumber/index.d.ts index b81b2a825a..85587a3563 100644 --- a/types/lodash.tonumber/index.d.ts +++ b/types/lodash.tonumber/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.toNumber 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.topairs/index.d.ts b/types/lodash.topairs/index.d.ts index 9c63367ea0..dec1a83e18 100644 --- a/types/lodash.topairs/index.d.ts +++ b/types/lodash.topairs/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.toPairs 4.3 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.topairsin/index.d.ts b/types/lodash.topairsin/index.d.ts index 4cba676436..580cd15f14 100644 --- a/types/lodash.topairsin/index.d.ts +++ b/types/lodash.topairsin/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.toPairsIn 4.3 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.topath/index.d.ts b/types/lodash.topath/index.d.ts index 72dbf5bb70..5778b4a5a8 100644 --- a/types/lodash.topath/index.d.ts +++ b/types/lodash.topath/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.toPath 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.toplainobject/index.d.ts b/types/lodash.toplainobject/index.d.ts index 1c9d08f979..26f7eb62b3 100644 --- a/types/lodash.toplainobject/index.d.ts +++ b/types/lodash.toplainobject/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.toPlainObject 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.tosafeinteger/index.d.ts b/types/lodash.tosafeinteger/index.d.ts index fdf18d94f2..5429fe3a24 100644 --- a/types/lodash.tosafeinteger/index.d.ts +++ b/types/lodash.tosafeinteger/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.toSafeInteger 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.tostring/index.d.ts b/types/lodash.tostring/index.d.ts index 9b11dbd864..d7aec37cf9 100644 --- a/types/lodash.tostring/index.d.ts +++ b/types/lodash.tostring/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.toString 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.toupper/index.d.ts b/types/lodash.toupper/index.d.ts index 5f40e81f49..a19a7f2293 100644 --- a/types/lodash.toupper/index.d.ts +++ b/types/lodash.toupper/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.toUpper 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.transform/index.d.ts b/types/lodash.transform/index.d.ts index 07ebf4dc0b..524dcce29d 100644 --- a/types/lodash.transform/index.d.ts +++ b/types/lodash.transform/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.transform 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.trim/index.d.ts b/types/lodash.trim/index.d.ts index e5af08651b..634b4f5843 100644 --- a/types/lodash.trim/index.d.ts +++ b/types/lodash.trim/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.trim 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.trimend/index.d.ts b/types/lodash.trimend/index.d.ts index cad13c3d63..5931c425c1 100644 --- a/types/lodash.trimend/index.d.ts +++ b/types/lodash.trimend/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.trimEnd 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.trimstart/index.d.ts b/types/lodash.trimstart/index.d.ts index 2254f4304f..6e9ff19aae 100644 --- a/types/lodash.trimstart/index.d.ts +++ b/types/lodash.trimstart/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.trimStart 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.truncate/index.d.ts b/types/lodash.truncate/index.d.ts index 6b121e1bb0..640143ae7d 100644 --- a/types/lodash.truncate/index.d.ts +++ b/types/lodash.truncate/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.truncate 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.unary/index.d.ts b/types/lodash.unary/index.d.ts index bc884ea223..c1cab16bf4 100644 --- a/types/lodash.unary/index.d.ts +++ b/types/lodash.unary/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.unary 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.unescape/index.d.ts b/types/lodash.unescape/index.d.ts index 0405506765..1a6c126529 100644 --- a/types/lodash.unescape/index.d.ts +++ b/types/lodash.unescape/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.unescape 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.union/index.d.ts b/types/lodash.union/index.d.ts index 11ec95f768..f8e1c3982b 100644 --- a/types/lodash.union/index.d.ts +++ b/types/lodash.union/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.union 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.unionby/index.d.ts b/types/lodash.unionby/index.d.ts index 9f3c35288d..ec59f1b5c6 100644 --- a/types/lodash.unionby/index.d.ts +++ b/types/lodash.unionby/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.unionBy 4.8 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.unionwith/index.d.ts b/types/lodash.unionwith/index.d.ts index c70a5f1e98..a724b6ed00 100644 --- a/types/lodash.unionwith/index.d.ts +++ b/types/lodash.unionwith/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.unionWith 4.6 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.uniq/index.d.ts b/types/lodash.uniq/index.d.ts index eaf546733c..d3fcc99bf8 100644 --- a/types/lodash.uniq/index.d.ts +++ b/types/lodash.uniq/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.uniq 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.uniqby/index.d.ts b/types/lodash.uniqby/index.d.ts index 909655b16e..fdf318f2cc 100644 --- a/types/lodash.uniqby/index.d.ts +++ b/types/lodash.uniqby/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.uniqBy 4.7 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.uniqueid/index.d.ts b/types/lodash.uniqueid/index.d.ts index 1804767b5d..f0b38f23ed 100644 --- a/types/lodash.uniqueid/index.d.ts +++ b/types/lodash.uniqueid/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.uniqueId 4.0 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.uniqwith/index.d.ts b/types/lodash.uniqwith/index.d.ts index 501276eeae..65f00cc772 100644 --- a/types/lodash.uniqwith/index.d.ts +++ b/types/lodash.uniqwith/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.uniqWith 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.unset/index.d.ts b/types/lodash.unset/index.d.ts index e23af76a42..4308337560 100644 --- a/types/lodash.unset/index.d.ts +++ b/types/lodash.unset/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.unset 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.unzip/index.d.ts b/types/lodash.unzip/index.d.ts index d227c85725..a0d6e933c1 100644 --- a/types/lodash.unzip/index.d.ts +++ b/types/lodash.unzip/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.unzip 3.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.unzipwith/index.d.ts b/types/lodash.unzipwith/index.d.ts index 548451e15d..0f95c0377f 100644 --- a/types/lodash.unzipwith/index.d.ts +++ b/types/lodash.unzipwith/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.unzipWith 4.3 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.update/index.d.ts b/types/lodash.update/index.d.ts index 9eee12bc18..165804f25f 100644 --- a/types/lodash.update/index.d.ts +++ b/types/lodash.update/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.update 4.10 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.updatewith/index.d.ts b/types/lodash.updatewith/index.d.ts index 4d74417a57..3ae0594188 100644 --- a/types/lodash.updatewith/index.d.ts +++ b/types/lodash.updatewith/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.updateWith 4.10 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.uppercase/index.d.ts b/types/lodash.uppercase/index.d.ts index fa5aadcfcc..fb25f87be6 100644 --- a/types/lodash.uppercase/index.d.ts +++ b/types/lodash.uppercase/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.upperCase 4.3 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.upperfirst/index.d.ts b/types/lodash.upperfirst/index.d.ts index 6dc6737ae3..f58a6853f3 100644 --- a/types/lodash.upperfirst/index.d.ts +++ b/types/lodash.upperfirst/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.upperFirst 4.3 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.values/index.d.ts b/types/lodash.values/index.d.ts index 532dcc62c7..9bba06f1a2 100644 --- a/types/lodash.values/index.d.ts +++ b/types/lodash.values/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.values 4.3 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.valuesin/index.d.ts b/types/lodash.valuesin/index.d.ts index 0a9640af4e..3da65eabb7 100644 --- a/types/lodash.valuesin/index.d.ts +++ b/types/lodash.valuesin/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.valuesIn 4.3 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.without/index.d.ts b/types/lodash.without/index.d.ts index b0670dd01f..624fdd8918 100644 --- a/types/lodash.without/index.d.ts +++ b/types/lodash.without/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.without 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.words/index.d.ts b/types/lodash.words/index.d.ts index a16a995921..304f7c3145 100644 --- a/types/lodash.words/index.d.ts +++ b/types/lodash.words/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.words 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.wrap/index.d.ts b/types/lodash.wrap/index.d.ts index 6117d407c6..410c955027 100644 --- a/types/lodash.wrap/index.d.ts +++ b/types/lodash.wrap/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.wrap 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.xor/index.d.ts b/types/lodash.xor/index.d.ts index 9874aaa7da..0426670d24 100644 --- a/types/lodash.xor/index.d.ts +++ b/types/lodash.xor/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.xor 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.xorby/index.d.ts b/types/lodash.xorby/index.d.ts index 1e68620ffc..d1ebbbd9fa 100644 --- a/types/lodash.xorby/index.d.ts +++ b/types/lodash.xorby/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.xorBy 4.7 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.xorwith/index.d.ts b/types/lodash.xorwith/index.d.ts index 639ecbc496..6adaa16d35 100644 --- a/types/lodash.xorwith/index.d.ts +++ b/types/lodash.xorwith/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.xorWith 4.5 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.zip/index.d.ts b/types/lodash.zip/index.d.ts index dc6bab3162..3ad6804c4f 100644 --- a/types/lodash.zip/index.d.ts +++ b/types/lodash.zip/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.zip 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.zipobject/index.d.ts b/types/lodash.zipobject/index.d.ts index 529d362a5b..a4c0d0e444 100644 --- a/types/lodash.zipobject/index.d.ts +++ b/types/lodash.zipobject/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.zipObject 4.1 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.zipobjectdeep/index.d.ts b/types/lodash.zipobjectdeep/index.d.ts index 39e7f389fe..b942a3e4c6 100644 --- a/types/lodash.zipobjectdeep/index.d.ts +++ b/types/lodash.zipobjectdeep/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.zipObjectDeep 4.4 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash.zipwith/index.d.ts b/types/lodash.zipwith/index.d.ts index 5cd0f33de8..39c39005d7 100644 --- a/types/lodash.zipwith/index.d.ts +++ b/types/lodash.zipwith/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lodash.zipWith 4.2 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/lodash/index.d.ts b/types/lodash/index.d.ts index 95228b8c29..94cabd0f37 100644 --- a/types/lodash/index.d.ts +++ b/types/lodash/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Lo-Dash 4.14 -// Project: http://lodash.com/ +// Project: https://lodash.com // Definitions by: Brian Zengel , // Ilya Mochalov , // Stepan Mikhaylyuk , diff --git a/types/looks-same/index.d.ts b/types/looks-same/index.d.ts index 6423e5fe4c..5a39a3e0fa 100644 --- a/types/looks-same/index.d.ts +++ b/types/looks-same/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for looks-same 4.0 -// Project: https://github.com/gemini-testing/looks-same/releases +// Project: https://github.com/gemini-testing/looks-same // Definitions by: xcatliu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/loopback/index.d.ts b/types/loopback/index.d.ts index 58f5901a86..24a09efa94 100644 --- a/types/loopback/index.d.ts +++ b/types/loopback/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Loopback 3.2 -// Project: https://github.com/strongloop/loopback +// Project: https://github.com/strongloop/loopback, http://loopback.io // Definitions by: Andres D Jimenez // Tim Schumacher // Sequoia McDowell diff --git a/types/lovefield/index.d.ts b/types/lovefield/index.d.ts index bca0c708f1..8049f296c5 100644 --- a/types/lovefield/index.d.ts +++ b/types/lovefield/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Lovefield 2.1 -// Project: http://google.github.io/lovefield/ +// Project: http://google.github.io/lovefield/, https://github.com/google/lovefield // Definitions by: freshp86 // zackzeno // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/ltx/index.d.ts b/types/ltx/index.d.ts index 1c313c5541..ea9b7928ad 100644 --- a/types/ltx/index.d.ts +++ b/types/ltx/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for ltx 2.8 -// Project: github.com/node-xmpp/ltx/ +// Project: http://github.com/node-xmpp/ltx // Definitions by: PJakcson // BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/lunr/index.d.ts b/types/lunr/index.d.ts index ab59d556f6..9350d20f8f 100644 --- a/types/lunr/index.d.ts +++ b/types/lunr/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lunr.js 2.3 -// Project: https://github.com/olivernn/lunr.js +// Project: https://github.com/olivernn/lunr.js, http://lunrjs.com // Definitions by: Sean Tan , Andrés Pérez // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/lz-string/index.d.ts b/types/lz-string/index.d.ts index bd64854976..9cff45952e 100644 --- a/types/lz-string/index.d.ts +++ b/types/lz-string/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for lz-string 1.3 -// Project: https://github.com/pieroxy/lz-string +// Project: https://github.com/pieroxy/lz-string, http://pieroxy.net/blog/pages/lz-string/index.html // Definitions by: Roman Nikitin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/magnet-uri/index.d.ts b/types/magnet-uri/index.d.ts index 2b9a445970..0d555372bf 100644 --- a/types/magnet-uri/index.d.ts +++ b/types/magnet-uri/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for magnet-uri 5.1 -// Project: https://github.com/feross/magnet-uri +// Project: https://github.com/webtorrent/magnet-uri // Definitions by: Tomasz Łaziuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/mapbox-gl-leaflet/index.d.ts b/types/mapbox-gl-leaflet/index.d.ts index 34e3578eac..ea6593d760 100644 --- a/types/mapbox-gl-leaflet/index.d.ts +++ b/types/mapbox-gl-leaflet/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for mapbox-gl-leaflet 0.0 -// Project: https://github.com/brunob/leaflet.fullscreen +// Project: https://github.com/mapbox/mapbox-gl-leaflet // Definitions by: Alexey Gorshkov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/mapbox/index.d.ts b/types/mapbox/index.d.ts index 97da469e4a..283d36d545 100644 --- a/types/mapbox/index.d.ts +++ b/types/mapbox/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Mapbox 1.6 -// Project: https://www.mapbox.com/mapbox.js/ +// Project: https://www.mapbox.com/mapbox.js/, https://github.com/mapbox/mapbox-sdk-js // Definitions by: Maxime Fabre // Florian Luccioni // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/mapbox__sphericalmercator/index.d.ts b/types/mapbox__sphericalmercator/index.d.ts new file mode 100644 index 0000000000..3ed6dfbe9e --- /dev/null +++ b/types/mapbox__sphericalmercator/index.d.ts @@ -0,0 +1,31 @@ +// Type definitions for @mapbox/sphericalmercator 1.1 +// Project: https://github.com/mapbox/sphericalmercator, https://github.com/mapbox/node-sphericalmercator +// Definitions by: Nicholas Husher +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export as namespace SphericalMercator; + +interface XYBounds { + minX: number; + minY: number; + maxX: number; + maxY: number; +} + +export {}; + +type LatLngPoint = [number, number]; +type XYPoint = [number, number]; +type BoundingBox = [number, number, number, number]; +type Projection = 'WGS84' | '900913'; + +export default class SphericalMercator { + constructor(options: { size: number }) + px(ll: LatLngPoint, zoom: number): XYPoint; + ll(px: XYPoint, zoom: number): LatLngPoint; + bbox(x: number, y: number, zoom: number, tms_style: boolean, srs: Projection): BoundingBox; + xyz(bbox: BoundingBox, zoom: number, tms_style: boolean, srs: Projection): XYBounds; + convert(bbox: BoundingBox, to: Projection): BoundingBox; + forward(ll: LatLngPoint): XYPoint; + inverse(xy: XYPoint): LatLngPoint; +} diff --git a/types/mapbox__sphericalmercator/mapbox__sphericalmercator-tests.ts b/types/mapbox__sphericalmercator/mapbox__sphericalmercator-tests.ts new file mode 100644 index 0000000000..25caac746f --- /dev/null +++ b/types/mapbox__sphericalmercator/mapbox__sphericalmercator-tests.ts @@ -0,0 +1,17 @@ +import SphericalMercator from '@mapbox/sphericalmercator'; + +const sm = new SphericalMercator({ size: 100 }); + +const xy: [number, number] = sm.px([10, 10], 10); +const ll: [number, number] = sm.ll([20, 20], 10); +const bbox1: [number, number, number, number] = sm.bbox(10, 10, 10, true, '900913'); +const xybounds: { + minX: number, + minY: number, + maxX: number, + maxY: number +} = sm.xyz(bbox1, 10, true, 'WGS84'); + +const bbox2: [number, number, number, number] = sm.convert(bbox1, 'WGS84'); +const fwd: [number, number] = sm.forward(ll); +const inv: [number, number] = sm.inverse(xy); diff --git a/types/mapbox__sphericalmercator/tsconfig.json b/types/mapbox__sphericalmercator/tsconfig.json new file mode 100644 index 0000000000..a5684b798a --- /dev/null +++ b/types/mapbox__sphericalmercator/tsconfig.json @@ -0,0 +1,28 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "paths": { + "@mapbox/sphericalmercator": [ + "mapbox__sphericalmercator" + ] + }, + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "mapbox__sphericalmercator-tests.ts" + ] +} diff --git a/types/mapbox__sphericalmercator/tslint.json b/types/mapbox__sphericalmercator/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/mapbox__sphericalmercator/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/marked/index.d.ts b/types/marked/index.d.ts index 963a6f6697..78a45b052c 100644 --- a/types/marked/index.d.ts +++ b/types/marked/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Marked 0.6 -// Project: https://github.com/markedjs/marked +// Project: https://github.com/markedjs/marked, https://marked.js.org // Definitions by: William Orr // BendingBender // CrossR diff --git a/types/masonry-layout/index.d.ts b/types/masonry-layout/index.d.ts index 2e62989ca8..81fa58c4ed 100644 --- a/types/masonry-layout/index.d.ts +++ b/types/masonry-layout/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Masonry 4.2 -// Project: https://github.com/desandro/masonry +// Project: https://github.com/desandro/masonry, https://masonry.desandro.com // Definitions by: Mark Wilson , Travis Brown // Definitions: https://github.com/borisyankov/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/massive/index.d.ts b/types/massive/index.d.ts index 772f418df3..72ef7c117b 100644 --- a/types/massive/index.d.ts +++ b/types/massive/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for massive 5.4 -// Project: https://github.com/dmfay/massive-js.git +// Project: https://github.com/dmfay/massive-js.git, https://dmfay.github.io/massive-js // Definitions by: Pascal Birchler // Clarence Ho // Felix Faust diff --git a/types/material-components-web/index.d.ts b/types/material-components-web/index.d.ts index 9e3ca568f1..b8e9ce9040 100644 --- a/types/material-components-web/index.d.ts +++ b/types/material-components-web/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.43 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk , Arthur Groupp // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material-ui/index.d.ts b/types/material-ui/index.d.ts index 285d949d70..005cf353de 100644 --- a/types/material-ui/index.d.ts +++ b/types/material-ui/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for material-ui 0.21 -// Project: https://github.com/callemall/material-ui +// Project: https://github.com/callemall/material-ui, http://material-ui.com // Definitions by: Nathan Brown // Igor Beagorudsky // Ali Taheri Moghaddar @@ -559,8 +559,8 @@ declare namespace __MaterialUI { className?: string; iconClassNameLeft?: string; iconClassNameRight?: string; - iconElementLeft?: React.ReactElement; - iconElementRight?: React.ReactElement; + iconElementLeft?: React.ReactElement; + iconElementRight?: React.ReactElement; iconStyleRight?: React.CSSProperties; iconStyleLeft?: React.CSSProperties; onLeftIconButtonClick?: React.MouseEventHandler<{}>; @@ -654,7 +654,7 @@ declare namespace __MaterialUI { backgroundColor?: string; className?: string; color?: string; - icon?: React.ReactElement; + icon?: React.ReactElement; size?: number; src?: string; style?: React.CSSProperties; @@ -1037,7 +1037,7 @@ declare namespace __MaterialUI { text: string; } export interface DialogProps extends React.DOMAttributes<{}>, React.Props { - actions?: Array>; + actions?: Array; /** @deprecated use a custom `actions` property instead */ actionFocus?: string; actionsContainerClassName?: string; @@ -1103,10 +1103,10 @@ declare namespace __MaterialUI { } export interface GridTileProps { - actionIcon?: React.ReactElement; + actionIcon?: React.ReactElement; actionPosition?: "left" | "right"; cols?: number; - containerElement?: string | React.ReactElement | React.ComponentClass; + containerElement?: string | React.ReactElement | React.ComponentClass; rows?: number; style?: React.CSSProperties; subtitle?: React.ReactNode; @@ -1157,9 +1157,9 @@ declare namespace __MaterialUI { initiallyOpen?: boolean; innerDivStyle?: React.CSSProperties; insetChildren?: boolean; - leftAvatar?: React.ReactElement; - leftCheckbox?: React.ReactElement; - leftIcon?: React.ReactElement; + leftAvatar?: React.ReactElement; + leftCheckbox?: React.ReactElement; + leftIcon?: React.ReactElement; nestedItems?: Array>; nestedLevel?: number; nestedListStyle?: React.CSSProperties; @@ -1172,10 +1172,10 @@ declare namespace __MaterialUI { open?: boolean; primaryText?: React.ReactNode; primaryTogglesNestedList?: boolean; - rightAvatar?: React.ReactElement; - rightIcon?: React.ReactElement; - rightIconButton?: React.ReactElement; - rightToggle?: React.ReactElement; + rightAvatar?: React.ReactElement; + rightIcon?: React.ReactElement; + rightIconButton?: React.ReactElement; + rightToggle?: React.ReactElement; secondaryText?: React.ReactNode; secondaryTextLines?: number; // 1 or 2 style?: React.CSSProperties; @@ -1227,11 +1227,11 @@ declare namespace __MaterialUI { innerDivStyle?: React.CSSProperties; insetChildren?: boolean; label?: string | React.ReactNode; - leftIcon?: React.ReactElement; + leftIcon?: React.ReactElement; menuItems?: React.ReactNode; onClick?: React.MouseEventHandler<{}>; primaryText?: React.ReactNode; - rightIcon?: React.ReactElement; + rightIcon?: React.ReactElement; secondaryText?: React.ReactNode; style?: React.CSSProperties; containerElement?: React.ReactNode | string; @@ -1503,7 +1503,7 @@ declare namespace __MaterialUI { rippleColor?: string; rippleStyle?: React.CSSProperties; style?: React.CSSProperties; - switchElement: React.ReactElement; + switchElement: React.ReactElement; switched: boolean; thumbStyle?: React.CSSProperties; trackStyle?: React.CSSProperties; diff --git a/types/material__animation/index.d.ts b/types/material__animation/index.d.ts index 2527cf9e71..4ec8d9bbb4 100644 --- a/types/material__animation/index.d.ts +++ b/types/material__animation/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__auto-init/index.d.ts b/types/material__auto-init/index.d.ts index 2993089fce..ca827759a3 100644 --- a/types/material__auto-init/index.d.ts +++ b/types/material__auto-init/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__base/index.d.ts b/types/material__base/index.d.ts index bc4d2ee1a3..1ce92aafa7 100644 --- a/types/material__base/index.d.ts +++ b/types/material__base/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__checkbox/index.d.ts b/types/material__checkbox/index.d.ts index 308bc077bb..36047917f3 100644 --- a/types/material__checkbox/index.d.ts +++ b/types/material__checkbox/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__chips/index.d.ts b/types/material__chips/index.d.ts index 935d897236..118c986ab7 100644 --- a/types/material__chips/index.d.ts +++ b/types/material__chips/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__dialog/index.d.ts b/types/material__dialog/index.d.ts index 491d2ad9fd..cfb1649ada 100644 --- a/types/material__dialog/index.d.ts +++ b/types/material__dialog/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__dom/index.d.ts b/types/material__dom/index.d.ts index f751696f43..b9f18cf598 100644 --- a/types/material__dom/index.d.ts +++ b/types/material__dom/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.43 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Arthur Groupp // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__drawer/index.d.ts b/types/material__drawer/index.d.ts index 9980f1c304..bb5b1adb5d 100644 --- a/types/material__drawer/index.d.ts +++ b/types/material__drawer/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.43 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk , Arthur Groupp // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__floating-label/index.d.ts b/types/material__floating-label/index.d.ts index 6b426a75d3..5a0466fab2 100644 --- a/types/material__floating-label/index.d.ts +++ b/types/material__floating-label/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__form-field/index.d.ts b/types/material__form-field/index.d.ts index 812df5c0c0..6b9b124cf8 100644 --- a/types/material__form-field/index.d.ts +++ b/types/material__form-field/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__grid-list/index.d.ts b/types/material__grid-list/index.d.ts index 87ee0a138e..89f1df1c4c 100644 --- a/types/material__grid-list/index.d.ts +++ b/types/material__grid-list/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__icon-toggle/index.d.ts b/types/material__icon-toggle/index.d.ts index beae5b83db..314ee91015 100644 --- a/types/material__icon-toggle/index.d.ts +++ b/types/material__icon-toggle/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__line-ripple/index.d.ts b/types/material__line-ripple/index.d.ts index f76ed98d10..d29b135c5b 100644 --- a/types/material__line-ripple/index.d.ts +++ b/types/material__line-ripple/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__linear-progress/index.d.ts b/types/material__linear-progress/index.d.ts index 4161a165f8..953fef49da 100644 --- a/types/material__linear-progress/index.d.ts +++ b/types/material__linear-progress/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__list/index.d.ts b/types/material__list/index.d.ts index 22adf832f3..80619ae4d4 100644 --- a/types/material__list/index.d.ts +++ b/types/material__list/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.43 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Arthur Groupp // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__menu/index.d.ts b/types/material__menu/index.d.ts index 1762aa3721..a873814437 100644 --- a/types/material__menu/index.d.ts +++ b/types/material__menu/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__notched-outline/index.d.ts b/types/material__notched-outline/index.d.ts index d22a9a6918..267b610763 100644 --- a/types/material__notched-outline/index.d.ts +++ b/types/material__notched-outline/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__radio/index.d.ts b/types/material__radio/index.d.ts index d73206b791..93dc5e5cd8 100644 --- a/types/material__radio/index.d.ts +++ b/types/material__radio/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__ripple/index.d.ts b/types/material__ripple/index.d.ts index aaef1a6aff..7e756327c9 100644 --- a/types/material__ripple/index.d.ts +++ b/types/material__ripple/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__select/index.d.ts b/types/material__select/index.d.ts index a487461ae7..5f4a0b385c 100644 --- a/types/material__select/index.d.ts +++ b/types/material__select/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__selection-control/index.d.ts b/types/material__selection-control/index.d.ts index b5ce84d6ce..13840565ab 100644 --- a/types/material__selection-control/index.d.ts +++ b/types/material__selection-control/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__slider/index.d.ts b/types/material__slider/index.d.ts index 1a1c02d86a..9ba457074d 100644 --- a/types/material__slider/index.d.ts +++ b/types/material__slider/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__snackbar/index.d.ts b/types/material__snackbar/index.d.ts index da6ecd4ca2..58dbce3f19 100644 --- a/types/material__snackbar/index.d.ts +++ b/types/material__snackbar/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__tab/index.d.ts b/types/material__tab/index.d.ts index b2cc71129e..9aa0220eed 100644 --- a/types/material__tab/index.d.ts +++ b/types/material__tab/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__tabs/index.d.ts b/types/material__tabs/index.d.ts index b5a9d4143e..2323f29448 100644 --- a/types/material__tabs/index.d.ts +++ b/types/material__tabs/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__textfield/index.d.ts b/types/material__textfield/index.d.ts index 883be449a1..340b50f126 100644 --- a/types/material__textfield/index.d.ts +++ b/types/material__textfield/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__toolbar/index.d.ts b/types/material__toolbar/index.d.ts index 75bcbcda5f..c7458e9a58 100644 --- a/types/material__toolbar/index.d.ts +++ b/types/material__toolbar/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/material__top-app-bar/index.d.ts b/types/material__top-app-bar/index.d.ts index da37e36f23..754caabe99 100644 --- a/types/material__top-app-bar/index.d.ts +++ b/types/material__top-app-bar/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Material Components Web 0.35 -// Project: https://material.io/components/ +// Project: https://material.io/components/, https://github.com/material-components/material-components-web // Definitions by: Brent Douglas , Collin Kostichuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/mdast/index.d.ts b/types/mdast/index.d.ts index c1fcadec97..01fc975f47 100644 --- a/types/mdast/index.d.ts +++ b/types/mdast/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Mdast 3.0 -// Project: https://github.com/syntax-tree/mdast +// Project: https://github.com/syntax-tree/mdast, https://github.com/wooorm/mdast // Definitions by: Jun Lu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.0 diff --git a/types/memcached/index.d.ts b/types/memcached/index.d.ts index 8e330fa88d..6f5ee7e86c 100644 --- a/types/memcached/index.d.ts +++ b/types/memcached/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for memcached 2.2 -// Project: https://github.com/3rd-Eden/memcached +// Project: https://github.com/3rd-Eden/memcached, https://github.com/3rd-eden/node-memcached // Definitions by: KentarouTakeda // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/meteor-astronomy/index.d.ts b/types/meteor-astronomy/index.d.ts index e23834963c..e2be0326b3 100644 --- a/types/meteor-astronomy/index.d.ts +++ b/types/meteor-astronomy/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for meteor-astronomy 2.6 +// Type definitions for non-npm package meteor-astronomy 2.6 // Project: https://github.com/jagi/meteor-astronomy/ // Definitions by: Igor Golovin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/meteor-collection-hooks/index.d.ts b/types/meteor-collection-hooks/index.d.ts index 73784822ea..1b5a5d74d6 100644 --- a/types/meteor-collection-hooks/index.d.ts +++ b/types/meteor-collection-hooks/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Meteor package matb33:collection-hooks 0.8 +// Type definitions for non-npm package Meteor package matb33:collection-hooks 0.8 // Project: https://github.com/matb33/meteor-collection-hooks // Definitions by: Trygve Wastvedt // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/meteor-universe-i18n/index.d.ts b/types/meteor-universe-i18n/index.d.ts index 66ba85ff90..a577b0185e 100644 --- a/types/meteor-universe-i18n/index.d.ts +++ b/types/meteor-universe-i18n/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for https://github.com/vazco/meteor-universe-i18n 1.14 +// Type definitions for non-npm package https://github.com/vazco/meteor-universe-i18n 1.14 // Project: meteor-universe-i18n // Definitions by: Mathias Scherer // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/meteor/globals/meteor.d.ts b/types/meteor/globals/meteor.d.ts index 63f60df310..36757b98d1 100644 --- a/types/meteor/globals/meteor.d.ts +++ b/types/meteor/globals/meteor.d.ts @@ -203,7 +203,7 @@ declare module Meteor { function onConnection(callback: Function): void; /** Connection **/ - function publish(name: string, func: Function): void; + function publish(name: string, func: (this: Subscription, ...args: any[]) => void): void; function _debug(...args: any[]): void; } diff --git a/types/meteor/meteor.d.ts b/types/meteor/meteor.d.ts index 559308cc69..7392758e34 100644 --- a/types/meteor/meteor.d.ts +++ b/types/meteor/meteor.d.ts @@ -209,7 +209,7 @@ declare module "meteor/meteor" { function onConnection(callback: Function): void; /** Connection **/ - function publish(name: string, func: Function): void; + function publish(name: string, func: (this: Subscription, ...args: any[]) => void): void; function _debug(...args: any[]): void; } diff --git a/types/mfiles/index.d.ts b/types/mfiles/index.d.ts index 6816f1d889..e59304f11c 100644 --- a/types/mfiles/index.d.ts +++ b/types/mfiles/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for M-Files UI Extensibility 11.3 +// Type definitions for non-npm package M-Files UI Extensibility 11.3 // Project: http://www.m-files.com/UI_Extensibility_Framework/ // Definitions by: Arsène von Wyss // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/microsoftteams/index.d.ts b/types/microsoftteams/index.d.ts index 497090cfa3..3aa56fd325 100644 --- a/types/microsoftteams/index.d.ts +++ b/types/microsoftteams/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for microsoftteams 1.2 +// Type definitions for non-npm package microsoftteams 1.2 // Project: https://github.com/OfficeDev/microsoft-teams-library-js // Definitions by: Bhargav Krishna // Jay Ongg diff --git a/types/mina/index.d.ts b/types/mina/index.d.ts index 1fb55924c0..c79c124bf9 100644 --- a/types/mina/index.d.ts +++ b/types/mina/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for mina Snap-SVG 0.4 -// Project: https://github.com/adobe-webplatform/Snap.svg +// Project: https://github.com/adobe-webplatform/Snap.svg, http://onlyvc.us/mina // Definitions by: Lars Klein , Mattanja Kern , Andrey Kurdyumov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/mirrorx/index.d.ts b/types/mirrorx/index.d.ts index e2fa0ee465..1e048553e7 100644 --- a/types/mirrorx/index.d.ts +++ b/types/mirrorx/index.d.ts @@ -147,7 +147,7 @@ export interface Renderer { ): React.Component | Element | void; ( - element: Array>, + element: React.ReactElement[], container: Element | null, callback?: () => void ): React.Component | Element | void; diff --git a/types/mithril-global/index.d.ts b/types/mithril-global/index.d.ts index fe1814e4ed..9519bca43c 100644 --- a/types/mithril-global/index.d.ts +++ b/types/mithril-global/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Mithril 1.1 +// Type definitions for non-npm package Mithril 1.1 // Project: https://mithril.js.org/ // Definitions by: Mike Linkovich , Isiah Meadows // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/mithril/index.d.ts b/types/mithril/index.d.ts index a8a80c7bd2..2457ff9c51 100644 --- a/types/mithril/index.d.ts +++ b/types/mithril/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Mithril 1.1 -// Project: https://mithril.js.org/ +// Project: https://mithril.js.org/, https://github.com/mithriljs/mithril.js // Definitions by: Mike Linkovich , András Parditka , Isiah Meadows // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/mixpanel/index.d.ts b/types/mixpanel/index.d.ts index 08bbe26720..901e3a033a 100644 --- a/types/mixpanel/index.d.ts +++ b/types/mixpanel/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Mixpanel 2.14 -// Project: https://mixpanel.com/ +// Project: https://mixpanel.com/, https://github.com/mixpanel/mixpanel-node // https://github.com/mixpanel/mixpanel-js // Definitions by: Knut Eirik Leira Hjelle // Manduro diff --git a/types/mjml-react/index.d.ts b/types/mjml-react/index.d.ts index decb895010..80efb1c75d 100644 --- a/types/mjml-react/index.d.ts +++ b/types/mjml-react/index.d.ts @@ -24,7 +24,7 @@ export namespace utils { function getTextAlign(value: string, fallback?: TextAlignment): TextAlignment; } -export function renderToMjml(email: React.ReactElement): string; +export function renderToMjml(email: React.ReactElement): string; export interface Mjml2HtmlOptions { fonts?: { [key: string]: string }; @@ -35,7 +35,7 @@ export interface Mjml2HtmlOptions { filePath?: string; } -export function render(email: React.ReactElement, options?: Mjml2HtmlOptions): { html: string; errors: Error[] }; +export function render(email: React.ReactElement, options?: Mjml2HtmlOptions): { html: string; errors: Error[] }; // Components diff --git a/types/mjml/index.d.ts b/types/mjml/index.d.ts index 7dd0dbda72..867dfb7145 100644 --- a/types/mjml/index.d.ts +++ b/types/mjml/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for mjml 4.0 -// Project: https://github.com/mjmlio/mjml +// Project: https://github.com/mjmlio/mjml, https://mjml.io // Definitions by: aahoughton // marpstar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/mocha/index.d.ts b/types/mocha/index.d.ts index 868a6c332d..5ccf573a07 100644 --- a/types/mocha/index.d.ts +++ b/types/mocha/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for mocha 5.2 -// Project: http://mochajs.org/ +// Project: https://mochajs.org // Definitions by: Kazi Manzur Rashid // otiai10 // jt000 diff --git a/types/modernizr/index.d.ts b/types/modernizr/index.d.ts index a9cfb92f54..5b03bdd833 100644 --- a/types/modernizr/index.d.ts +++ b/types/modernizr/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Modernizr 3.5 -// Project: http://modernizr.com/ +// Project: http://modernizr.com/, https://github.com/modernizr/modernizr // Definitions by: Boris Yankov // Theodore Brown // Leon Yu diff --git a/types/moment-range/index.d.ts b/types/moment-range/index.d.ts index f45ab0ed8b..e230550ace 100644 --- a/types/moment-range/index.d.ts +++ b/types/moment-range/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for Moment-range.js 3.1 -// Project: https://github.com/gf3/moment-range +// Project: https://github.com/rotaready/moment-range // Definitions by: Bart van den Burg // Wilgert Velinga // Juan Francisco Adame diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index d9f9d789f0..267163ac80 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -167,16 +167,7 @@ declare module "mongoose" { export function startSession(options?: mongodb.SessionOptions, cb?: (err: any, session: mongodb.ClientSession) => void): Promise; - class CastError extends Error { - /** - * The Mongoose CastError constructor - * @param type The name of the type - * @param value The value that failed to cast - * @param path The path a.b.c in the doc where this cast error occurred - * @param reason The original error that was thrown - */ - constructor(type: string, value: any, path: string, reason?: NativeError); - } + export type CastError = Error.CastError; /* * section connection.js @@ -509,6 +500,11 @@ declare module "mongoose" { * http://mongoosejs.com/docs/api.html#error-js */ class Error extends global.Error { + + // "MongooseError" for instances of the current class, + // an other string for instances of derived classes. + name: "MongooseError" | string; + /** * MongooseError constructor * @param msg Error message @@ -544,6 +540,10 @@ declare module "mongoose" { * the document. */ export class DocumentNotFoundError extends Error { + name: 'DocumentNotFoundError'; + filter: any; + query: any; + constructor(filter: any); } /** @@ -554,10 +554,11 @@ declare module "mongoose" { * cast a value. */ export class CastError extends Error { + name: 'CastError'; stringValue: string; kind: string; - path: string; value: any; + path: string; reason?: any; model?: any; @@ -569,13 +570,18 @@ declare module "mongoose" { /** * section error/validation.js * https://mongoosejs.com/docs/api.html#mongooseerror_MongooseError.ValidationError + + * An instance of this error class will be returned when [validation](/docs/validation.html) failed. + * The `errors` property contains an object whose keys are the paths that failed and whose values are + * instances of CastError or ValidationError. * - * An instance of this error class will be returned when [validation](http://mongoosejs.com/docs/validation.html) failed. */ export class ValidationError extends Error { - errors: any; + name: 'ValidationError'; - constructor(instance: MongooseDocument); + errors: {[path: string]: ValidatorError | CastError}; + + constructor(instance?: MongooseDocument); /** Console.log helper */ toString(): string; @@ -594,13 +600,14 @@ declare module "mongoose" { * A `ValidationError` has a hash of `errors` that contain individual `ValidatorError` instances */ export class ValidatorError extends Error { - properties: any; + name: 'ValidatorError'; + properties: {message: string, type?: string, path?: string, value?: any, reason?: any}; kind: string; path: string; value: any; reason: any; - constructor(properties: any); + constructor(properties: {message?: string, type?: string, path?: string, value?: any, reason?: any}); formatMessage(msg: string | Function, properties: any): string; @@ -616,6 +623,7 @@ declare module "mongoose" { * the [`versionKey` option](http://mongoosejs.com/docs/guide.html#versionKey) for more information. */ export class VersionError extends Error { + name: 'VersionError'; version: any; modifiedPaths: Array; @@ -631,6 +639,7 @@ declare module "mongoose" { * information. */ export class ParallelSaveError extends Error { + name: 'ParallelSaveError'; constructor(doc: MongooseDocument); } @@ -642,6 +651,7 @@ declare module "mongoose" { * See [the FAQ about `OverwriteModelError`](http://mongoosejs.com/docs/faq.html#overwrite-model-error). */ export class OverwriteModelError extends Error { + name: 'OverwriteModelError'; constructor(name: string); } @@ -652,6 +662,7 @@ declare module "mongoose" { * Thrown when you try to access a model that has not been registered yet */ export class MissingSchemaError extends Error { + name: 'MissingSchemaError'; constructor(name: string); } @@ -663,6 +674,7 @@ declare module "mongoose" { * and then modified the array in an unsafe way. */ export class DivergentArrayError extends Error { + name: 'DivergentArrayError'; constructor(paths: Array); } } @@ -1422,9 +1434,9 @@ declare module "mongoose" { * Executes registered validation rules (skipping asynchronous validators) for this document. * This method is useful if you need synchronous validation. * @param pathsToValidate only validate the given paths - * @returns MongooseError if there are errors during validation, or undefined if there is no error. + * @returns ValidationError if there are errors during validation, or undefined if there is no error. */ - validateSync(pathsToValidate?: string | string[]): Error; + validateSync(pathsToValidate?: string | string[]): Error.ValidationError; /** Hash containing current validation errors. */ errors: any; @@ -2188,8 +2200,7 @@ declare module "mongoose" { }): this; /** Executes this query and returns a promise */ - then(resolve?: (res: T) => void | TRes | PromiseLike, - reject?: (err: any) => void | TRes | PromiseLike): Promise; + then: Promise["then"]; /** * Converts this query to a customized, reusable query @@ -2254,6 +2265,11 @@ declare module "mongoose" { * functions that update validation runs. Does nothing if runValidators is false. */ context?: string; + /** + * by default, mongoose only returns the first error that occurred in casting the query. + * Turn on this option to aggregate all the cast errors. + */ + multipleCastError?: boolean; } interface QueryUpdateOptions extends ModelUpdateOptions { @@ -2357,6 +2373,14 @@ declare module "mongoose" { /** This schema type's name, to defend against minifiers that mangle function names. */ static schemaName: string; + + /** + * Adds a discriminator type. + * @param name discriminator model name + * @param schema discriminator model schema + */ + discriminator(name: string, schema: Schema): Model; + } /* @@ -2680,8 +2704,7 @@ declare module "mongoose" { sort(arg: string | any): this; /** Provides promise for aggregate. */ - then(resolve?: (val: T) => void | TRes | PromiseLike, - reject?: (err: any) => void | TRes | PromiseLike): Promise; + then: Promise["then"]; /** * Appends new custom $unwind operator(s) to this aggregate pipeline. @@ -3361,6 +3384,11 @@ declare module "mongoose" { overwrite?: boolean; /** other options */ [other: string]: any; + /** + * by default, mongoose only returns the first error that occurred in casting the query. + * Turn on this option to aggregate all the cast errors. + */ + multipleCastError?: boolean; } interface ModelMapReduceOption { diff --git a/types/mongoose/mongoose-tests.ts b/types/mongoose/mongoose-tests.ts index 30b5b51a84..6d487dd14d 100644 --- a/types/mongoose/mongoose-tests.ts +++ b/types/mongoose/mongoose-tests.ts @@ -173,9 +173,9 @@ const getDB = async (tenant: string)=> { * http://mongoosejs.com/docs/api.html#error-js */ var mongooseError: mongoose.Error = new mongoose.Error('error'); +mongooseError.name; /* inherited properties */ mongooseError.message; -mongooseError.name; mongooseError.stack; /* static properties */ mongoose.Error.messages.hasOwnProperty(''); @@ -186,21 +186,22 @@ mongoose.Error.Messages.hasOwnProperty(''); * https://mongoosejs.com/docs/api.html#mongooseerror_MongooseError.CastError */ var castError: mongoose.Error.CastError = new mongoose.Error.CastError('', '', ''); -castError.setModel('foo'); +castError.name; castError.stringValue; castError.kind; castError.path; castError.value; +castError.setModel('foo'); /* inherited properties */ -castError.name; -castError.stack; castError.message; +castError.stack; /* * section error/validator.js * https://mongoosejs.com/docs/api.html#mongooseerror_MongooseError.ValidatorError */ -var validatorError: mongoose.Error.ValidatorError = new mongoose.Error.ValidatorError({ foo: 'bar' }) +var validatorError: mongoose.Error.ValidatorError = new mongoose.Error.ValidatorError({ message: 'bar' }) +validatorError.name; validatorError.properties; validatorError.kind; validatorError.path; @@ -209,9 +210,8 @@ validatorError.toString().toLowerCase(); validatorError.formatMessage('foo', {}); validatorError.formatMessage('foo', (bar: any)=>{ return bar; }); /* inherited properties */ -validatorError.name; -validatorError.stack; validatorError.message; +validatorError.stack; /* * section error/validation.js @@ -219,54 +219,54 @@ validatorError.message; */ var doc = {}; var validationError: mongoose.Error.ValidationError = new mongoose.Error.ValidationError(doc); +validationError.name; validationError.toString().toLowerCase(); validationError.inspect(); validationError.toJSON().hasOwnProperty(''); validationError.addError('foo', validatorError) /* inherited properties */ -validationError.name; -validationError.stack; validationError.message; +validationError.stack; /* * section error/parallelSave.js * https://mongoosejs.com/docs/api.html#mongooseerror_MongooseError.ParallelSaveError */ var parallelSaveError: mongoose.Error.ParallelSaveError = new mongoose.Error.ParallelSaveError(doc); -/* inherited properties */ parallelSaveError.name; -parallelSaveError.stack; +/* inherited properties */ parallelSaveError.message; +parallelSaveError.stack; /* * section error/overwriteModel.js * https://mongoosejs.com/docs/api.html#mongooseerror_MongooseError.OverwriteModelError */ var overwriteModelError: mongoose.Error.OverwriteModelError = new mongoose.Error.OverwriteModelError('foo'); -/* inherited properties */ overwriteModelError.name; -overwriteModelError.stack; +/* inherited properties */ overwriteModelError.message; +overwriteModelError.stack; /* * section error/missingSchema.js * https://mongoosejs.com/docs/api.html#mongooseerror_MongooseError.MissingSchemaError */ var missingSchemaError: mongoose.Error.MissingSchemaError = new mongoose.Error.MissingSchemaError('foo'); -/* inherited properties */ missingSchemaError.name; -missingSchemaError.stack; +/* inherited properties */ missingSchemaError.message; +missingSchemaError.stack; /* * section error/divergentArray.js * https://mongoosejs.com/docs/api.html#mongooseerror_MongooseError.MissingSchemaError */ -var missingSchemaError: mongoose.Error.DivergentArrayError = new mongoose.Error.DivergentArrayError(['foo','bar']); -/* inherited properties */ +var divergentArrayError: mongoose.Error.DivergentArrayError = new mongoose.Error.DivergentArrayError(['foo','bar']); missingSchemaError.name; -missingSchemaError.stack; +/* inherited properties */ missingSchemaError.message; +missingSchemaError.stack; const pluralize = mongoose.pluralize(); const plural: string = pluralize('foo'); @@ -1225,6 +1225,8 @@ var documentarray: mongoose.Schema.Types.DocumentArray = new mongoose.Schema.Typ mongoose.Schema.Types.DocumentArray.schemaName.toLowerCase(); /* inherited properties */ documentarray.sparse(true); +/* http://thecodebarbarian.com/mongoose-4.8-embedded-discriminators */ +documentarray.discriminator('name', new mongoose.Schema({ foo: String })); /* * section schema/number.js @@ -1556,6 +1558,18 @@ mongoose.Promise.all; mongoose.model('').findOne() .exec().then(cb); +function testPromise_all() { + interface IUser extends mongoose.Document { + name: string; + } + + const User = mongoose.model('User', new mongoose.Schema({name: String})) + + const dc: mongoose.DocumentQuery = User.findOne({}); + const dc2: PromiseLike = dc; + Promise.all([dc]) +} + /* * section model.js * http://mongoosejs.com/docs/api.html#model-js diff --git a/types/mongorito/index.d.ts b/types/mongorito/index.d.ts index 2c69c14fd0..3a34eec617 100644 --- a/types/mongorito/index.d.ts +++ b/types/mongorito/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for mongorito 3.0 -// Project: https://github.com/vadimdemedes/mongorito +// Project: https://github.com/vadimdemedes/mongorito, https://github.com/vdemedes/mongorito // Definitions by: Pinguet62 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 diff --git a/types/mozilla-readability/index.d.ts b/types/mozilla-readability/index.d.ts index 7a7c26fdb8..ee6833be3c 100644 --- a/types/mozilla-readability/index.d.ts +++ b/types/mozilla-readability/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for mozilla-readability 0.1 +// Type definitions for non-npm package mozilla-readability 0.1 // Project: https://github.com/mozilla/readability // Definitions by: Charles Vandevoorde // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/mui-datatables/index.d.ts b/types/mui-datatables/index.d.ts index 055406cc6f..2dffabbc53 100644 --- a/types/mui-datatables/index.d.ts +++ b/types/mui-datatables/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for mui-datatables 2.0 -// Project: https://github.com/gregnb/mui-datatable +// Project: https://github.com/gregnb/mui-datatables // Definitions by: Jeroen "Favna" Claassens // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -44,6 +44,7 @@ interface MUIDataTableCustomHeadRenderer extends MUIDataTableColumn { interface MUIDataTableColumn { name: string; + label?: string; options?: MUIDataTableColumnOptions; } @@ -84,7 +85,7 @@ interface MUIDataTableTextLabelsSelectedRows { deleteAria: string; } -interface MUIDataTableTextLabels { +export interface MUIDataTableTextLabels { body: MUIDataTableTextLabelsBody; pagination: MUIDataTableTextLabelsPagination; toolbar: MUIDataTableTextLabelsToolbar; diff --git a/types/mui-datatables/mui-datatables-tests.tsx b/types/mui-datatables/mui-datatables-tests.tsx index 5ad018082e..c6a477ea08 100644 --- a/types/mui-datatables/mui-datatables-tests.tsx +++ b/types/mui-datatables/mui-datatables-tests.tsx @@ -1,83 +1,76 @@ -import MUIDataTable, { MUIDataTableColumnDef, MUIDataTableOptions } from 'mui-datatables'; +import MUIDataTable, { MUIDataTableOptions, MUIDataTableTextLabels } from 'mui-datatables'; import * as React from 'react'; -const dataSimple: string[][] = [ - ['Joe James', 'Test Corp', 'Yonkers', 'NY'], - ['John Walsh', 'Test Corp', 'Hartford', 'CT'], - ['Bob Herm', 'Test Corp', 'Tampa', 'FL'], - ['James Houston', 'Test Corp', 'Dallas', 'TX'] -]; +interface Props extends MUIDataTableOptions { + data: any; + title: string; + textLabels?: MUIDataTableTextLabels; +} -const columnWithOptions: MUIDataTableColumnDef[] = [ - { - name: 'Name', - options: { - display: 'true', - filter: true, - sort: true, - sortDirection: 'asc', - download: true, +class MuiCustomTable extends React.Component { + private readonly data: string[][] = this.props.data.map((asset: any) => Object.values(asset)); + private readonly columns = this.props.data + .map((entry: any) => Object.keys(entry)) + .flat() + .map((title: string) => title.toUpperCase()) + .filter((element: string, index: number, array: string[]) => array.indexOf(element) === index); + private readonly TableOptions: MUIDataTableOptions = { + filterType: 'checkbox', + responsive: 'scroll', + selectableRows: false, + elevation: 0, + rowsPerPageOptions: [5, 10, 20, 25, 50, 100], + downloadOptions: { + filename: 'filename.csv', + separator: ',' + }, + sortFilterList: false, + textLabels: { + body: { + noMatch: 'Sorry, no matching records found', + toolTip: 'Sort', + }, + pagination: { + next: 'Next Page', + previous: 'Previous Page', + rowsPerPage: 'Rows per page:', + displayRows: 'of', + }, + toolbar: { + search: 'Search', + downloadCsv: 'Download CSV', + print: 'Print', + viewColumns: 'View Columns', + filterTable: 'Filter Table', + }, + filter: { + all: 'All', + title: 'FILTERS', + reset: 'RESET', + }, + viewColumns: { + title: 'Show Columns', + titleAria: 'Show/Hide Table Columns', + }, + selectedRows: { + text: 'rows(s) selected', + delete: 'Delete', + deleteAria: 'Delete Selected Rows', + } } - } -]; + }; -const options: MUIDataTableOptions = { - filterType: 'checkbox', - responsive: 'scroll', - selectableRows: false, - elevation: 0, - rowsPerPageOptions: [5, 10, 20, 25, 50, 100], - downloadOptions: { - filename: 'filename.csv', - separator: ',' - }, - sortFilterList: false, - textLabels: { - body: { - noMatch: 'Sorry, no matching records found', - toolTip: 'Sort', - }, - pagination: { - next: 'Next Page', - previous: 'Previous Page', - rowsPerPage: 'Rows per page:', - displayRows: 'of', - }, - toolbar: { - search: 'Search', - downloadCsv: 'Download CSV', - print: 'Print', - viewColumns: 'View Columns', - filterTable: 'Filter Table', - }, - filter: { - all: 'All', - title: 'FILTERS', - reset: 'RESET', - }, - viewColumns: { - title: 'Show Columns', - titleAria: 'Show/Hide Table Columns', - }, - selectedRows: { - text: 'rows(s) selected', - delete: 'Delete', - deleteAria: 'Delete Selected Rows', - } - } -}; - -class MuiDataTable extends React.Component { render() { - return ( - - ); + return (); } } -; +const TableFruits = [ + {id: 1, name: "Apple", amount: 1}, + {id: 2, name: "Pear", amount: 2}, + {id: 3, name: "Strawberry", amount: 5}, + {id: 4, name: "Banana", amount: 7}, + {id: 5, name: "Orange", amount: 9}, +]; + +; diff --git a/types/mui-datatables/tsconfig.json b/types/mui-datatables/tsconfig.json index 280efbb284..a4d6f99b77 100644 --- a/types/mui-datatables/tsconfig.json +++ b/types/mui-datatables/tsconfig.json @@ -2,6 +2,7 @@ "compilerOptions": { "module": "commonjs", "lib": [ + "es2017.object", "es6", "dom" ], diff --git a/types/n3/index.d.ts b/types/n3/index.d.ts index 4a4e7812e6..60df059a71 100644 --- a/types/n3/index.d.ts +++ b/types/n3/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for N3 1.0 -// Project: https://github.com/RubenVerborgh/N3.js +// Project: https://github.com/rdfjs/n3.js // Definitions by: Fred Eisele // Ruben Taelman // Laurens Rietveld diff --git a/types/nanoscroller/index.d.ts b/types/nanoscroller/index.d.ts index c12d493650..fd6ce60d58 100644 --- a/types/nanoscroller/index.d.ts +++ b/types/nanoscroller/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for nanoScroller 0.8 -// Project: http://jamesflorentino.github.io/nanoScrollerJS/ +// Project: http://jamesflorentino.github.io/nanoScrollerJS/, https://github.com/jamesflorentino/nanoscrollerjs // Definitions by: Yannick Beauchamp-Hurtubise // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/nats-hemera/index.d.ts b/types/nats-hemera/index.d.ts index 868d550cf9..6224030d92 100644 --- a/types/nats-hemera/index.d.ts +++ b/types/nats-hemera/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for hemera 2.0 -// Project: https://github.com/hemerajs/hemera +// Project: https://github.com/hemerajs/hemera, https://hemerajs.github.io/hemera // Definitions by: Vladimir Djukic // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 diff --git a/types/natural-compare-lite/index.d.ts b/types/natural-compare-lite/index.d.ts new file mode 100644 index 0000000000..d9dd5f3e6d --- /dev/null +++ b/types/natural-compare-lite/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for natural-compare-lite 1.4 +// Project: https://github.com/litejs/natural-compare-lite +// Definitions by: Doniyor Aliyev +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function naturalCompare(a: string, b: string): -1 | 0 | 1; + +export = naturalCompare; diff --git a/types/natural-compare-lite/natural-compare-lite-tests.ts b/types/natural-compare-lite/natural-compare-lite-tests.ts new file mode 100644 index 0000000000..c82a695344 --- /dev/null +++ b/types/natural-compare-lite/natural-compare-lite-tests.ts @@ -0,0 +1,3 @@ +import compare = require("natural-compare-lite"); + +['a', 's', 'd'].sort(compare); diff --git a/types/natural-compare-lite/tsconfig.json b/types/natural-compare-lite/tsconfig.json new file mode 100644 index 0000000000..ddfcb244cb --- /dev/null +++ b/types/natural-compare-lite/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", + "natural-compare-lite-tests.ts" + ] +} diff --git a/types/natural-compare-lite/tslint.json b/types/natural-compare-lite/tslint.json new file mode 100644 index 0000000000..f93cf8562a --- /dev/null +++ b/types/natural-compare-lite/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} diff --git a/types/natural-compare/index.d.ts b/types/natural-compare/index.d.ts new file mode 100644 index 0000000000..bb26b925f7 --- /dev/null +++ b/types/natural-compare/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for natural-compare 1.4 +// Project: https://github.com/litejs/natural-compare-lite +// Definitions by: Doniyor Aliyev +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function naturalCompare(a: string, b: string): -1 | 0 | 1; + +export = naturalCompare; diff --git a/types/natural-compare/natural-compare-tests.ts b/types/natural-compare/natural-compare-tests.ts new file mode 100644 index 0000000000..d006905f47 --- /dev/null +++ b/types/natural-compare/natural-compare-tests.ts @@ -0,0 +1,3 @@ +import compare = require("natural-compare"); + +['a', 's', 'd'].sort(compare); diff --git a/types/natural-compare/tsconfig.json b/types/natural-compare/tsconfig.json new file mode 100644 index 0000000000..c8af37bb22 --- /dev/null +++ b/types/natural-compare/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", + "natural-compare-tests.ts" + ] +} diff --git a/types/natural-compare/tslint.json b/types/natural-compare/tslint.json new file mode 100644 index 0000000000..f93cf8562a --- /dev/null +++ b/types/natural-compare/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} diff --git a/types/navermaps/index.d.ts b/types/navermaps/index.d.ts index 8ba4d52bd5..9667538b2f 100644 --- a/types/navermaps/index.d.ts +++ b/types/navermaps/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Naver Maps JavaScript API 3.0 +// Type definitions for non-npm package Naver Maps JavaScript API 3.0 // Project: https://navermaps.github.io/maps.js // Definitions by: Ckboyjiy // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/navigator-permissions/index.d.ts b/types/navigator-permissions/index.d.ts index ba66b4cb46..df807c5d1e 100644 --- a/types/navigator-permissions/index.d.ts +++ b/types/navigator-permissions/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Navigator.Permissions 0.1 +// Type definitions for non-npm package Navigator.Permissions 0.1 // Project: https://developer.mozilla.org/en-US/docs/Web/API/Permissions // Definitions by: Vince Varga , MindDoc // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/ndarray/index.d.ts b/types/ndarray/index.d.ts index 039401b6e2..789e97df8c 100644 --- a/types/ndarray/index.d.ts +++ b/types/ndarray/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for ndarray 1.0 -// Project: https://github.com/scijs/ndarray +// Project: https://github.com/scijs/ndarray, https://github.com/mikolalysenko/ndarray // Definitions by: Giff Song , taoqf // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/netease-captcha/index.d.ts b/types/netease-captcha/index.d.ts index fbdfb03e7d..731dbd20b4 100644 --- a/types/netease-captcha/index.d.ts +++ b/types/netease-captcha/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for netease-captcha 2.1 +// Type definitions for non-npm package netease-captcha 2.1 // Project: https://cstaticdun.126.net/load.min.js // Definitions by: Minjie Shen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/netlify-identity-widget/index.d.ts b/types/netlify-identity-widget/index.d.ts index a231be53d2..caf0c6b3f9 100644 --- a/types/netlify-identity-widget/index.d.ts +++ b/types/netlify-identity-widget/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for netlify-identity-widget 1.4 -// Project: https://github.com/netlify/netlify-identity-widget +// Project: https://github.com/netlify/netlify-identity-widget, https://identity.netlify.com // Definitions by: Naveen Kumar Sangi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/new-relic-browser/index.d.ts b/types/new-relic-browser/index.d.ts index 581d6efb52..f580226118 100644 --- a/types/new-relic-browser/index.d.ts +++ b/types/new-relic-browser/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for NewRelicBrowser 0.1072 +// Type definitions for non-npm package NewRelicBrowser 0.1072 // Project: https://docs.newrelic.com/docs/browser/new-relic-browser/browser-agent-spa-api // Definitions by: Rene Hamburger , Piotr Kubisa // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/next-server/head.d.ts b/types/next-server/head.d.ts index 8a8be730f8..f24ed34661 100644 --- a/types/next-server/head.d.ts +++ b/types/next-server/head.d.ts @@ -3,6 +3,6 @@ import * as React from "react"; export function defaultHead(className?: string): JSX.Element[]; export default class Head extends React.Component { static canUseDOM: boolean; - static peek(): Array>; - static rewind(): Array>; + static peek(): React.ReactElement[]; + static rewind(): React.ReactElement[]; } diff --git a/types/next-server/link.d.ts b/types/next-server/link.d.ts index 520868f05f..04580e24b1 100644 --- a/types/next-server/link.d.ts +++ b/types/next-server/link.d.ts @@ -11,7 +11,7 @@ export interface LinkProps { href?: string | UrlLike; as?: string | UrlLike; passHref?: boolean; - children: React.ReactElement; + children: React.ReactElement; } export default class Link extends React.Component {} diff --git a/types/next/document.d.ts b/types/next/document.d.ts index d0e6d2c91b..f89e5d71e0 100644 --- a/types/next/document.d.ts +++ b/types/next/document.d.ts @@ -2,10 +2,15 @@ import * as React from "react"; import { NextContext, NextComponentType } from "."; import { DefaultQuery } from "./router"; +/** + * Result from renderPage(). + * https://github.com/zeit/next.js/blob/v8.0.0/packages/next/pages/_document.js#L18 + * https://github.com/zeit/next.js/blob/v8.0.0/packages/next-server/server/render.tsx#L159 + * https://github.com/zeit/next.js/blob/v8.0.0/packages/next-server/server/render.tsx#L44 + */ export interface RenderPageResponse { - buildManifest: Record; html?: string; - head?: Array>; + head?: React.ReactNode; } export interface PageProps { @@ -31,7 +36,7 @@ export interface NextDocumentContext exte E extends PageProps = AnyPageProps, P = E, EA extends PageProps = AnyPageProps, - PA = EA, + PA = EA >( enhancer?: | Enhancer // tslint:disable-line no-unnecessary-generics @@ -44,7 +49,7 @@ export interface NextDocumentContext exte * https://github.com/zeit/next.js/blob/7.0.0/server/document.js#L16 */ export interface DefaultDocumentIProps extends RenderPageResponse { - styles?: React.ReactNode[]; + styles?: React.ReactNode; } /** diff --git a/types/next/index.d.ts b/types/next/index.d.ts index 8d911ab2c1..0f491675ce 100644 --- a/types/next/index.d.ts +++ b/types/next/index.d.ts @@ -1,5 +1,5 @@ -// Type definitions for next 7.0 -// Project: https://github.com/zeit/next.js/packages/next +// Type definitions for next 8.0 +// Project: https://github.com/zeit/next.js/packages/next, https://nextjs.org // Definitions by: Drew Hays // Brice BERNARD // James Hegedus diff --git a/types/next/test/next-document-tests.tsx b/types/next/test/next-document-tests.tsx index 1cd217a749..7c50a03930 100644 --- a/types/next/test/next-document-tests.tsx +++ b/types/next/test/next-document-tests.tsx @@ -48,19 +48,24 @@ class MyDoc extends Document { // with app and component enhancers const enhanceApp: Enhancer = App => props => ; const enhanceComponent: Enhancer = Component => props => ; - const { html, head, buildManifest } = renderPage({ + const { html, head } = renderPage({ enhanceApp, enhanceComponent }); const initialProps = await Document.getInitialProps(ctx); - const styles = [...(initialProps.styles ? initialProps.styles : []),