mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
Deprecate types for packages that provide their own types
This commit is contained in:
@@ -72,6 +72,12 @@
|
||||
"sourceRepoURL": "https://github.com/ant-design/ant-design",
|
||||
"asOfVersion": "1.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "anybar",
|
||||
"typingsPackageName": "anybar",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/anybar",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "anydb-sql",
|
||||
"typingsPackageName": "anydb-sql",
|
||||
@@ -150,6 +156,12 @@
|
||||
"sourceRepoURL": "https://github.com/code-chris/aurelia-knockout",
|
||||
"asOfVersion": "2.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "auto-bind",
|
||||
"typingsPackageName": "auto-bind",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/auto-bind",
|
||||
"asOfVersion": "2.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "autobind-decorator",
|
||||
"typingsPackageName": "autobind-decorator",
|
||||
@@ -204,6 +216,12 @@
|
||||
"sourceRepoURL": "https://github.com/brianloveswords/base64url",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "beeper",
|
||||
"typingsPackageName": "beeper",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/beeper",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "BigInteger.js",
|
||||
"typingsPackageName": "big-integer",
|
||||
@@ -216,6 +234,12 @@
|
||||
"sourceRepoURL": "https://github.com/MikeMcl/bignumber.js/",
|
||||
"asOfVersion": "5.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "bin-version",
|
||||
"typingsPackageName": "bin-version",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/bin-version",
|
||||
"asOfVersion": "3.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "bingmaps",
|
||||
"typingsPackageName": "bingmaps",
|
||||
@@ -252,12 +276,24 @@
|
||||
"sourceRepoURL": "https://github.com/bugsnag/bugsnag-js",
|
||||
"asOfVersion": "3.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "builtin-modules",
|
||||
"typingsPackageName": "builtin-modules",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/builtin-modules",
|
||||
"asOfVersion": "3.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "CacheFactory",
|
||||
"typingsPackageName": "cachefactory",
|
||||
"sourceRepoURL": "https://github.com/jmdobry/CacheFactory",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "callsites",
|
||||
"typingsPackageName": "callsites",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/callsites",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "camel-case",
|
||||
"typingsPackageName": "camel-case",
|
||||
@@ -270,6 +306,12 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/camelcase",
|
||||
"asOfVersion": "5.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "camelcase-keys",
|
||||
"typingsPackageName": "camelcase-keys",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/camelcase-keys",
|
||||
"asOfVersion": "5.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "catalog",
|
||||
"typingsPackageName": "catalog",
|
||||
@@ -312,12 +354,42 @@
|
||||
"sourceRepoURL": "https://github.com/saltyrtc/chunked-dc-js",
|
||||
"asOfVersion": "0.2.2"
|
||||
},
|
||||
{
|
||||
"libraryName": "clean-stack",
|
||||
"typingsPackageName": "clean-stack",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/clean-stack",
|
||||
"asOfVersion": "2.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "clean-webpack-plugin",
|
||||
"typingsPackageName": "clean-webpack-plugin",
|
||||
"sourceRepoURL": "https://github.com/johnagan/clean-webpack-plugin",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "clear-module",
|
||||
"typingsPackageName": "clear-require",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/clear-module",
|
||||
"asOfVersion": "3.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "cli-boxes",
|
||||
"typingsPackageName": "cli-boxes",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/cli-boxes",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "cli-cursor",
|
||||
"typingsPackageName": "cli-cursor",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/cli-cursor",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "clipboardy",
|
||||
"typingsPackageName": "clipboardy",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/clipboardy",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "colors.js (colors)",
|
||||
"typingsPackageName": "colors",
|
||||
@@ -330,6 +402,12 @@
|
||||
"sourceRepoURL": "https://github.com/tj/commander.js",
|
||||
"asOfVersion": "2.12.2"
|
||||
},
|
||||
{
|
||||
"libraryName": "condense-whitespace",
|
||||
"typingsPackageName": "condense-whitespace",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/condense-whitespace",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "conf",
|
||||
"typingsPackageName": "conf",
|
||||
@@ -348,6 +426,12 @@
|
||||
"sourceRepoURL": "https://github.com/blakeembrey/constant-case",
|
||||
"asOfVersion": "1.1.2"
|
||||
},
|
||||
{
|
||||
"libraryName": "convert-hrtime",
|
||||
"typingsPackageName": "convert-hrtime",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/convert-hrtime",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "copy-text-to-clipboard",
|
||||
"typingsPackageName": "copy-text-to-clipboard",
|
||||
@@ -480,12 +564,42 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/cpy",
|
||||
"asOfVersion": "7.1.1"
|
||||
},
|
||||
{
|
||||
"libraryName": "create-html-element",
|
||||
"typingsPackageName": "create-html-element",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/create-html-element",
|
||||
"asOfVersion": "2.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "crypto-hash",
|
||||
"typingsPackageName": "crypto-hash",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/crypto-hash",
|
||||
"asOfVersion": "1.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "crypto-random-string",
|
||||
"typingsPackageName": "crypto-random-string",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/crypto-random-string",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "cycled",
|
||||
"typingsPackageName": "cycled",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/cycled",
|
||||
"asOfVersion": "1.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "cypress",
|
||||
"typingsPackageName": "cypress",
|
||||
"sourceRepoURL": "https://cypress.io",
|
||||
"asOfVersion": "1.1.3"
|
||||
},
|
||||
{
|
||||
"libraryName": "dargs",
|
||||
"typingsPackageName": "dargs",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/dargs",
|
||||
"asOfVersion": "6.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "date-fns",
|
||||
"typingsPackageName": "date-fns",
|
||||
@@ -498,6 +612,12 @@
|
||||
"sourceRepoURL": "https://github.com/DataDog/dd-trace-js",
|
||||
"asOfVersion": "0.9.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "debounce-fn",
|
||||
"typingsPackageName": "debounce-fn",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/debounce-fn",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "decamelize",
|
||||
"typingsPackageName": "decamelize",
|
||||
@@ -522,6 +642,12 @@
|
||||
"sourceRepoURL": "git@github.com:KyleAMathews/deepmerge.git",
|
||||
"asOfVersion": "2.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "define-lazy-prop",
|
||||
"typingsPackageName": "define-lazy-prop",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/define-lazy-prop",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "del",
|
||||
"typingsPackageName": "del",
|
||||
@@ -540,12 +666,24 @@
|
||||
"sourceRepoURL": "https://github.com/DamonOehlman/detect-browser",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "detect-newline",
|
||||
"typingsPackageName": "detect-newline",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/detect-newline",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "DevExtreme",
|
||||
"typingsPackageName": "devextreme",
|
||||
"sourceRepoURL": "http://js.devexpress.com/",
|
||||
"asOfVersion": "16.2.1"
|
||||
},
|
||||
{
|
||||
"libraryName": "devtools-detect",
|
||||
"typingsPackageName": "devtools-detect",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/devtools-detect",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "Dexie.js",
|
||||
"typingsPackageName": "dexie",
|
||||
@@ -570,6 +708,12 @@
|
||||
"sourceRepoURL": "https://github.com/blakeembrey/dot-case",
|
||||
"asOfVersion": "1.1.2"
|
||||
},
|
||||
{
|
||||
"libraryName": "dot-prop",
|
||||
"typingsPackageName": "dot-prop",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/dot-prop",
|
||||
"asOfVersion": "5.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "dva",
|
||||
"typingsPackageName": "dva",
|
||||
@@ -624,6 +768,48 @@
|
||||
"sourceRepoURL": "https://github.com/loopline-systems/electron-builder",
|
||||
"asOfVersion": "2.8.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "electron-store",
|
||||
"typingsPackageName": "electron-config",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/electron-store",
|
||||
"asOfVersion": "3.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "electron-debug",
|
||||
"typingsPackageName": "electron-debug",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/electron-debug",
|
||||
"asOfVersion": "2.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "electron-is-dev",
|
||||
"typingsPackageName": "electron-is-dev",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/electron-is-dev",
|
||||
"asOfVersion": "1.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "electron-store",
|
||||
"typingsPackageName": "electron-store",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/electron-store",
|
||||
"asOfVersion": "3.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "electron-unhandled",
|
||||
"typingsPackageName": "electron-unhandled",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/electron-unhandled",
|
||||
"asOfVersion": "2.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "electron-util",
|
||||
"typingsPackageName": "electron-util",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/electron-util",
|
||||
"asOfVersion": "0.11.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "elegant-spinner",
|
||||
"typingsPackageName": "elegant-spinner",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/elegant-spinner",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "element-ready",
|
||||
"typingsPackageName": "element-ready",
|
||||
@@ -642,6 +828,12 @@
|
||||
"sourceRepoURL": "https://github.com/Sembiance/email-validator",
|
||||
"asOfVersion": "1.0.6"
|
||||
},
|
||||
{
|
||||
"libraryName": "empty-trash",
|
||||
"typingsPackageName": "empty-trash",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/empty-trash",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "env-paths",
|
||||
"typingsPackageName": "env-paths",
|
||||
@@ -750,6 +942,12 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/file-type",
|
||||
"asOfVersion": "10.9.1"
|
||||
},
|
||||
{
|
||||
"libraryName": "file-url",
|
||||
"typingsPackageName": "file-url",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/file-url",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "filenamify",
|
||||
"typingsPackageName": "filenamify",
|
||||
@@ -762,6 +960,18 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/filenamify-url",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "filter-console",
|
||||
"typingsPackageName": "filter-console",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/filter-console",
|
||||
"asOfVersion": "0.1.1"
|
||||
},
|
||||
{
|
||||
"libraryName": "find-versions",
|
||||
"typingsPackageName": "find-versions",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/find-versions",
|
||||
"asOfVersion": "3.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "FineUploader",
|
||||
"typingsPackageName": "fine-uploader",
|
||||
@@ -774,6 +984,12 @@
|
||||
"sourceRepoURL": "https://www.firebase.com/docs/javascript/firebase",
|
||||
"asOfVersion": "3.2.1"
|
||||
},
|
||||
{
|
||||
"libraryName": "first-run",
|
||||
"typingsPackageName": "first-run",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/first-run",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "fkill",
|
||||
"typingsPackageName": "fkill",
|
||||
@@ -828,6 +1044,12 @@
|
||||
"sourceRepoURL": "https://github.com/manuelbieh/Geolib",
|
||||
"asOfVersion": "2.0.23"
|
||||
},
|
||||
{
|
||||
"libraryName": "get-emails",
|
||||
"typingsPackageName": "get-emails",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/get-emails",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "get-port",
|
||||
"typingsPackageName": "get-port",
|
||||
@@ -846,12 +1068,30 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/get-stream",
|
||||
"asOfVersion": "5.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "get-urls",
|
||||
"typingsPackageName": "get-urls",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/get-urls",
|
||||
"asOfVersion": "9.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "git-remote-origin-url",
|
||||
"typingsPackageName": "git-remote-origin-url",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/git-remote-origin-url",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "github",
|
||||
"typingsPackageName": "github",
|
||||
"sourceRepoURL": "https://github.com/mikedeboer/node-github",
|
||||
"asOfVersion": "7.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "github-username",
|
||||
"typingsPackageName": "github-username",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/github-username",
|
||||
"asOfVersion": "5.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "gitlab",
|
||||
"typingsPackageName": "gitlab",
|
||||
@@ -876,6 +1116,12 @@
|
||||
"sourceRepoURL": "https://github.com/PeculiarVentures/graphene",
|
||||
"asOfVersion": "2.0.31"
|
||||
},
|
||||
{
|
||||
"libraryName": "gravatar-url",
|
||||
"typingsPackageName": "gravatar-url",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/gravatar-url",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "griddle-react",
|
||||
"typingsPackageName": "griddle-react",
|
||||
@@ -900,6 +1146,12 @@
|
||||
"sourceRepoURL": "https://github.com/ivogabe/gulp-typescript",
|
||||
"asOfVersion": "2.13.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "gzip-size",
|
||||
"typingsPackageName": "gzip-size",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/gzip-size",
|
||||
"asOfVersion": "5.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "handlebars",
|
||||
"typingsPackageName": "handlebars",
|
||||
@@ -918,6 +1170,12 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/hard-rejection",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "has-emoji",
|
||||
"typingsPackageName": "has-emoji",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/has-emoji",
|
||||
"asOfVersion": "1.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "has-yarn",
|
||||
"typingsPackageName": "has-yarn",
|
||||
@@ -930,6 +1188,12 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/hasha",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "hex-rgb",
|
||||
"typingsPackageName": "hex-rgb",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/hex-rgb",
|
||||
"asOfVersion": "4.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "hibp",
|
||||
"typingsPackageName": "hibp",
|
||||
@@ -996,6 +1260,12 @@
|
||||
"sourceRepoURL": "https://github.com/facebook/immutable-js",
|
||||
"asOfVersion": "3.8.7"
|
||||
},
|
||||
{
|
||||
"libraryName": "in-range",
|
||||
"typingsPackageName": "in-range",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/in-range",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "interactjs",
|
||||
"typingsPackageName": "interact.js",
|
||||
@@ -1278,6 +1548,12 @@
|
||||
"sourceRepoURL": "https://github.com/thgreasi/localForage-cordovaSQLiteDriver",
|
||||
"asOfVersion": "1.5.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "locate-path",
|
||||
"typingsPackageName": "locate-path",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/locate-path",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "lodash-decorators",
|
||||
"typingsPackageName": "lodash-decorators",
|
||||
@@ -1866,6 +2142,12 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/pkg-dir",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "pkg-up",
|
||||
"typingsPackageName": "pkg-up",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/pkg-up",
|
||||
"asOfVersion": "3.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "pkg-versions",
|
||||
"typingsPackageName": "pkg-versions",
|
||||
@@ -1878,6 +2160,12 @@
|
||||
"sourceRepoURL": "http://plottablejs.org/",
|
||||
"asOfVersion": "3.7.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "plur",
|
||||
"typingsPackageName": "plur",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/plur",
|
||||
"asOfVersion": "3.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "png-async",
|
||||
"typingsPackageName": "png-async",
|
||||
@@ -1944,6 +2232,36 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/quick-lru",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "random-float",
|
||||
"typingsPackageName": "random-float",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/random-float",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "random-int",
|
||||
"typingsPackageName": "random-int",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/random-int",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "random-item",
|
||||
"typingsPackageName": "random-item",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/random-item",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "random-obj-key",
|
||||
"typingsPackageName": "random-obj-key",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/random-obj-key",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "random-obj-prop",
|
||||
"typingsPackageName": "random-obj-prop",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/random-obj-prop",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "Raven JS",
|
||||
"typingsPackageName": "raven-js",
|
||||
@@ -2154,6 +2472,18 @@
|
||||
"sourceRepoURL": "https://github.com/rackt/reselect",
|
||||
"asOfVersion": "2.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "resolve-from",
|
||||
"typingsPackageName": "resolve-from",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/resolve-from",
|
||||
"asOfVersion": "5.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "resolve-global",
|
||||
"typingsPackageName": "resolve-global",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/resolve-global",
|
||||
"asOfVersion": "1.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "rest-io",
|
||||
"typingsPackageName": "rest-io",
|
||||
@@ -2532,6 +2862,18 @@
|
||||
"sourceRepoURL": "https://github.com/dpa99c/phonegap-launch-navigator",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "unique-random",
|
||||
"typingsPackageName": "unique-random",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/unique-random",
|
||||
"asOfVersion": "2.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "unique-random-array",
|
||||
"typingsPackageName": "unique-random-array",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/unique-random-array",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "Universal Router",
|
||||
"typingsPackageName": "universal-router",
|
||||
@@ -2682,6 +3024,12 @@
|
||||
"sourceRepoURL": "https://github.com/yyc-git/Wonder-FRP",
|
||||
"asOfVersion": "0.1.25"
|
||||
},
|
||||
{
|
||||
"libraryName": "write-json-file",
|
||||
"typingsPackageName": "write-json-file",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/write-json-file",
|
||||
"asOfVersion": "3.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "x2js",
|
||||
"typingsPackageName": "x2js",
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
import anybar = require('anybar');
|
||||
|
||||
anybar('red', { port: 123 });
|
||||
|
||||
anybar('green');
|
||||
9
types/anybar/index.d.ts
vendored
9
types/anybar/index.d.ts
vendored
@@ -1,9 +0,0 @@
|
||||
// Type definitions for anybar 2.0
|
||||
// Project: https://github.com/sindresorhus/anybar
|
||||
// Definitions by: Chris Khoo <https://github.com/khoomeister>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
declare function anybar(color: string, options?: { port: number }): void;
|
||||
|
||||
export = anybar;
|
||||
@@ -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",
|
||||
"anybar-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
@@ -1,65 +0,0 @@
|
||||
import autoBind = require("auto-bind");
|
||||
|
||||
const emptyConfig: autoBind.AutoBindOptions = {};
|
||||
const onlyIncludeInConfig: autoBind.AutoBindOptions = {
|
||||
include: []
|
||||
};
|
||||
const onlyExcludeInConfig: autoBind.AutoBindOptions = {
|
||||
exclude: []
|
||||
};
|
||||
const emptyArraysInConfig: autoBind.AutoBindOptions = {
|
||||
include: [],
|
||||
exclude: []
|
||||
};
|
||||
const regexConfig: autoBind.AutoBindOptions = {
|
||||
include: [/test[123]/],
|
||||
exclude: [/test[123]/, /^regex[123]$/]
|
||||
};
|
||||
const stringConfig: autoBind.AutoBindOptions = {
|
||||
include: ["test"],
|
||||
exclude: ["123", "abc"]
|
||||
};
|
||||
const mixConfig: autoBind.AutoBindOptions = {
|
||||
include: ["test", /test[123]/],
|
||||
exclude: ["123", /test[123]/]
|
||||
};
|
||||
|
||||
class TestConfigs {
|
||||
constructor() {
|
||||
// no config
|
||||
autoBind(this);
|
||||
autoBind.react(this);
|
||||
|
||||
// empty configs
|
||||
autoBind(this, emptyConfig);
|
||||
autoBind.react(this, emptyConfig);
|
||||
|
||||
// include only configs
|
||||
autoBind(this, onlyIncludeInConfig);
|
||||
autoBind.react(this, onlyIncludeInConfig);
|
||||
|
||||
// exclude only configs
|
||||
autoBind(this, onlyExcludeInConfig);
|
||||
autoBind.react(this, onlyExcludeInConfig);
|
||||
|
||||
// empty array configs
|
||||
autoBind(this, emptyArraysInConfig);
|
||||
autoBind.react(this, emptyArraysInConfig);
|
||||
|
||||
// regex configs
|
||||
autoBind(this, regexConfig);
|
||||
autoBind.react(this, regexConfig);
|
||||
|
||||
// string configs
|
||||
autoBind(this, stringConfig);
|
||||
autoBind.react(this, stringConfig);
|
||||
|
||||
// mix configs
|
||||
autoBind(this, mixConfig);
|
||||
autoBind.react(this, mixConfig);
|
||||
}
|
||||
|
||||
shutUpNoUnnecessaryClass() {
|
||||
// noop
|
||||
}
|
||||
}
|
||||
25
types/auto-bind/index.d.ts
vendored
25
types/auto-bind/index.d.ts
vendored
@@ -1,25 +0,0 @@
|
||||
// Type definitions for auto-bind 1.2
|
||||
// Project: https://github.com/sindresorhus/auto-bind#readme
|
||||
// Definitions by: Sindre Seppola <https://github.com/sseppola>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
declare namespace autoBind {
|
||||
interface AutoBindOptions {
|
||||
include?: Array<string | RegExp>;
|
||||
exclude?: Array<string | RegExp>;
|
||||
}
|
||||
|
||||
type AutoBindFunction<selfT = object> = (
|
||||
self: selfT,
|
||||
options?: AutoBindOptions
|
||||
) => selfT;
|
||||
}
|
||||
|
||||
interface AutoBindModule<selfT = object>
|
||||
extends autoBind.AutoBindFunction<selfT> {
|
||||
react: autoBind.AutoBindFunction<selfT>;
|
||||
}
|
||||
|
||||
declare const autoBind: AutoBindModule;
|
||||
export = autoBind;
|
||||
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es5"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"auto-bind-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -1,7 +0,0 @@
|
||||
import beeper = require('beeper');
|
||||
|
||||
beeper();
|
||||
beeper(3);
|
||||
beeper(3, () => {});
|
||||
beeper('****-*-*');
|
||||
beeper('****-*-*', () => {});
|
||||
9
types/beeper/index.d.ts
vendored
9
types/beeper/index.d.ts
vendored
@@ -1,9 +0,0 @@
|
||||
// Type definitions for beeper 1.1
|
||||
// Project: https://github.com/sindresorhus/beeper#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = beeper;
|
||||
|
||||
declare function beeper(count?: number, cb?: () => void): void;
|
||||
declare function beeper(melody: string, cb?: () => void): void;
|
||||
@@ -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",
|
||||
"beeper-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -1,6 +0,0 @@
|
||||
import binVersion = require('bin-version');
|
||||
|
||||
// $ExpectType Promise<string>
|
||||
binVersion('curl');
|
||||
// $ExpectType Promise<string>
|
||||
binVersion('openssl', { args: ['version'] });
|
||||
14
types/bin-version/index.d.ts
vendored
14
types/bin-version/index.d.ts
vendored
@@ -1,14 +0,0 @@
|
||||
// Type definitions for bin-version 3.0
|
||||
// Project: https://github.com/sindresorhus/bin-version#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = binVersion;
|
||||
|
||||
declare function binVersion(binary: string, options?: binVersion.Options): Promise<string>;
|
||||
|
||||
declare namespace binVersion {
|
||||
interface Options {
|
||||
args?: string[];
|
||||
}
|
||||
}
|
||||
@@ -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",
|
||||
"bin-version-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -1,8 +0,0 @@
|
||||
import * as builtins from 'builtin-modules';
|
||||
import * as builtinsStatic from 'builtin-modules/static';
|
||||
|
||||
let builtin: string = builtins[0];
|
||||
builtin = builtinsStatic[0];
|
||||
|
||||
builtins.push('foo'); // $ExpectError
|
||||
builtinsStatic.pop('foo'); // $ExpectError
|
||||
7
types/builtin-modules/index.d.ts
vendored
7
types/builtin-modules/index.d.ts
vendored
@@ -1,7 +0,0 @@
|
||||
// Type definitions for builtin-modules 2.0
|
||||
// Project: https://github.com/sindresorhus/builtin-modules#readme
|
||||
// Definitions by: Klaus Meinhardt <https://github.com/ajafff>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare const builtinModules: ReadonlyArray<string>;
|
||||
export = builtinModules;
|
||||
2
types/builtin-modules/static.d.ts
vendored
2
types/builtin-modules/static.d.ts
vendored
@@ -1,2 +0,0 @@
|
||||
declare const builtinModules: ReadonlyArray<string>;
|
||||
export = builtinModules;
|
||||
@@ -1,24 +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",
|
||||
"static.d.ts",
|
||||
"builtin-modules-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -1,20 +0,0 @@
|
||||
import callsites = require('callsites');
|
||||
|
||||
function unicorn() {
|
||||
callsites(); // $ExpectType CallSite[]
|
||||
callsites()[0].getThis(); // $ExpectType object | undefined
|
||||
callsites()[0].getTypeName(); // $ExpectType string
|
||||
callsites()[0].getFunction(); // $ExpectType Function | undefined
|
||||
callsites()[0].getFunctionName(); // $ExpectType string
|
||||
callsites()[0].getMethodName(); // $ExpectType string | null
|
||||
callsites()[0].getFileName(); // $ExpectType string | undefined
|
||||
callsites()[0].getLineNumber(); // $ExpectType number
|
||||
callsites()[0].getColumnNumber(); // $ExpectType number
|
||||
callsites()[0].getEvalOrigin(); // $ExpectType string | CallSite
|
||||
callsites()[0].isToplevel(); // $ExpectType boolean
|
||||
callsites()[0].isEval(); // $ExpectType boolean
|
||||
callsites()[0].isNative(); // $ExpectType boolean
|
||||
callsites()[0].isConstructor(); // $ExpectType boolean
|
||||
}
|
||||
|
||||
unicorn();
|
||||
27
types/callsites/index.d.ts
vendored
27
types/callsites/index.d.ts
vendored
@@ -1,27 +0,0 @@
|
||||
// Type definitions for callsites 2.0
|
||||
// Project: https://github.com/sindresorhus/callsites#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
export = callsites;
|
||||
|
||||
declare function callsites(): callsites.CallSite[];
|
||||
|
||||
declare namespace callsites {
|
||||
interface CallSite {
|
||||
getThis(): object | undefined;
|
||||
getTypeName(): string;
|
||||
getFunction(): Function | undefined; // tslint:disable-line ban-types
|
||||
getFunctionName(): string;
|
||||
getMethodName(): string | null;
|
||||
getFileName(): string | undefined;
|
||||
getLineNumber(): number;
|
||||
getColumnNumber(): number;
|
||||
getEvalOrigin(): CallSite | string;
|
||||
isToplevel(): boolean;
|
||||
isEval(): boolean;
|
||||
isNative(): boolean;
|
||||
isConstructor(): boolean;
|
||||
}
|
||||
}
|
||||
@@ -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",
|
||||
"callsites-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -1,10 +0,0 @@
|
||||
import camelcaseKeys = require('camelcase-keys');
|
||||
|
||||
camelcaseKeys({'foo-bar': true});
|
||||
// => {fooBar: true}
|
||||
|
||||
camelcaseKeys({'foo-bar': true, nested: {unicorn_rainbow: true}}, {deep: true});
|
||||
// => {fooBar: true, nested: {unicornRainbow: true}}
|
||||
|
||||
camelcaseKeys({_: [], 'foo-bar': true});
|
||||
// => {_: [], fooBar: true}
|
||||
15
types/camelcase-keys/index.d.ts
vendored
15
types/camelcase-keys/index.d.ts
vendored
@@ -1,15 +0,0 @@
|
||||
// Type definitions for camelcase-keys 4.1
|
||||
// Project: https://github.com/sindresorhus/camelcase-keys#readme
|
||||
// Definitions by: Mohamed Hegazy <https://github.com/mhegazy>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
export = camelcaseKeys;
|
||||
declare function camelcaseKeys(input: any, options?: { exclude?: string[] | RegExp[], deep?: boolean }): any;
|
||||
|
||||
declare namespace camelcaseKeys {
|
||||
interface Options {
|
||||
deep?: boolean;
|
||||
exclude?: Array<string | RegExp>;
|
||||
}
|
||||
}
|
||||
@@ -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",
|
||||
"camelcase-keys-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -1,8 +0,0 @@
|
||||
import cleanStack = require('clean-stack');
|
||||
|
||||
const error = new Error('Missing unicorn');
|
||||
|
||||
if (error.stack) {
|
||||
cleanStack(error.stack); // $ExpectType string
|
||||
cleanStack(error.stack, {pretty: true}); // $ExpectType string
|
||||
}
|
||||
14
types/clean-stack/index.d.ts
vendored
14
types/clean-stack/index.d.ts
vendored
@@ -1,14 +0,0 @@
|
||||
// Type definitions for clean-stack 1.3
|
||||
// Project: https://github.com/sindresorhus/clean-stack#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = cleanStack;
|
||||
|
||||
declare function cleanStack(stack: string, options?: cleanStack.Options): string;
|
||||
|
||||
declare namespace cleanStack {
|
||||
interface Options {
|
||||
pretty?: boolean;
|
||||
}
|
||||
}
|
||||
@@ -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",
|
||||
"clean-stack-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -1,8 +0,0 @@
|
||||
import * as clear from 'clear-require';
|
||||
|
||||
clear('my-module'); // clear specific module from require cache
|
||||
|
||||
clear.all(); // clear all of the require cache
|
||||
|
||||
clear.match(new RegExp('^.*$')); // clear all modules which match the RegExp
|
||||
clear.match(/^.*$/); // similar to above but using /regex/ notation
|
||||
14
types/clear-require/index.d.ts
vendored
14
types/clear-require/index.d.ts
vendored
@@ -1,14 +0,0 @@
|
||||
// Type definitions for clear-require 2.0
|
||||
// Project: https://github.com/sindresorhus/clear-module, https://github.com/sindresorhus/clear-require
|
||||
// Definitions by: dan-j <https://github.com/dan-j>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
interface ClearRequire {
|
||||
(moduleId: string): boolean;
|
||||
all(): void;
|
||||
match(regex: RegExp): void;
|
||||
}
|
||||
|
||||
declare const clear: ClearRequire;
|
||||
|
||||
export = clear;
|
||||
@@ -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",
|
||||
"clear-require-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -1,17 +0,0 @@
|
||||
import cliBoxes = require('cli-boxes');
|
||||
|
||||
cliBoxes.single; // $ExpectType BoxDefinition
|
||||
cliBoxes.double; // $ExpectType BoxDefinition
|
||||
cliBoxes.round; // $ExpectType BoxDefinition
|
||||
cliBoxes['single-double']; // $ExpectType BoxDefinition
|
||||
cliBoxes['double-single']; // $ExpectType BoxDefinition
|
||||
cliBoxes.classic; // $ExpectType BoxDefinition
|
||||
|
||||
const single = cliBoxes.single;
|
||||
|
||||
single.bottomLeft; // $ExpectType string
|
||||
single.bottomRight; // $ExpectType string
|
||||
single.horizontal; // $ExpectType string
|
||||
single.topLeft; // $ExpectType string
|
||||
single.topRight; // $ExpectType string
|
||||
single.vertical; // $ExpectType string
|
||||
23
types/cli-boxes/index.d.ts
vendored
23
types/cli-boxes/index.d.ts
vendored
@@ -1,23 +0,0 @@
|
||||
// Type definitions for cli-boxes 1.0
|
||||
// Project: https://github.com/sindresorhus/cli-boxes
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
export = boxes;
|
||||
declare const boxes: boxes.Boxes;
|
||||
|
||||
declare namespace boxes {
|
||||
type BoxNames = 'single' | 'double' | 'round' | 'single-double' | 'double-single' | 'classic';
|
||||
|
||||
type Boxes = Record<BoxNames, BoxDefinition>;
|
||||
|
||||
interface BoxDefinition {
|
||||
topLeft: string;
|
||||
topRight: string;
|
||||
bottomRight: string;
|
||||
bottomLeft: string;
|
||||
vertical: string;
|
||||
horizontal: string;
|
||||
}
|
||||
}
|
||||
@@ -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",
|
||||
"cli-boxes-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -1,11 +0,0 @@
|
||||
import { show, hide, toggle } from 'cli-cursor';
|
||||
|
||||
hide();
|
||||
hide(process.stderr);
|
||||
|
||||
show();
|
||||
show(process.stderr);
|
||||
|
||||
toggle();
|
||||
toggle(false);
|
||||
toggle(false, process.stderr);
|
||||
28
types/cli-cursor/index.d.ts
vendored
28
types/cli-cursor/index.d.ts
vendored
@@ -1,28 +0,0 @@
|
||||
// Type definitions for cli-cursor 2.1
|
||||
// Project: https://github.com/sindresorhus/cli-cursor#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
/**
|
||||
* Show cursor.
|
||||
*
|
||||
* @param stream defaults to `process.stderr`
|
||||
*/
|
||||
export function show(stream?: NodeJS.WritableStream): void;
|
||||
|
||||
/**
|
||||
* Hide cursor.
|
||||
*
|
||||
* @param stream defaults to `process.stderr`
|
||||
*/
|
||||
export function hide(stream?: NodeJS.WritableStream): void;
|
||||
|
||||
/**
|
||||
* Toggle cursor visibility.
|
||||
*
|
||||
* @param force is useful to show or hide the cursor based on a boolean.
|
||||
* @param stream defaults to `process.stderr`
|
||||
*/
|
||||
export function toggle(force?: boolean, stream?: NodeJS.WritableStream): void;
|
||||
@@ -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",
|
||||
"cli-cursor-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -1,10 +0,0 @@
|
||||
import clipboardy = require('clipboardy');
|
||||
|
||||
clipboardy.writeSync('🦄');
|
||||
clipboardy.write('🦄').then(() => {});
|
||||
|
||||
let str: string;
|
||||
str = clipboardy.readSync();
|
||||
clipboardy.read().then(toPaste => {
|
||||
str = toPaste;
|
||||
});
|
||||
9
types/clipboardy/index.d.ts
vendored
9
types/clipboardy/index.d.ts
vendored
@@ -1,9 +0,0 @@
|
||||
// Type definitions for clipboardy 1.1
|
||||
// Project: https://github.com/sindresorhus/clipboardy#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export function write(input: string): Promise<void>;
|
||||
export function writeSync(input: string): void;
|
||||
export function read(): Promise<string>;
|
||||
export function readSync(): string;
|
||||
@@ -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",
|
||||
"clipboardy-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -1,7 +0,0 @@
|
||||
import condense = require("condense-whitespace");
|
||||
|
||||
// $ExpectType string
|
||||
condense(" \n\n\t Hello World \t\n");
|
||||
|
||||
// $ExpectError
|
||||
condense(1);
|
||||
8
types/condense-whitespace/index.d.ts
vendored
8
types/condense-whitespace/index.d.ts
vendored
@@ -1,8 +0,0 @@
|
||||
// Type definitions for condense-whitespace 1.0
|
||||
// Project: https://github.com/sindresorhus/condense-whitespace
|
||||
// Definitions by: Daniel Cassidy <https://github.com/djcsdy>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function condenseWhitespace(str: string): string;
|
||||
|
||||
export = condenseWhitespace;
|
||||
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"condense-whitespace-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -1,9 +0,0 @@
|
||||
/// <reference types="node" />
|
||||
|
||||
import convertHrtime = require('convert-hrtime');
|
||||
|
||||
const time = convertHrtime(process.hrtime(process.hrtime()));
|
||||
let num: number;
|
||||
num = time.seconds;
|
||||
num = time.milliseconds;
|
||||
num = time.nanoseconds;
|
||||
16
types/convert-hrtime/index.d.ts
vendored
16
types/convert-hrtime/index.d.ts
vendored
@@ -1,16 +0,0 @@
|
||||
// Type definitions for convert-hrtime 2.0
|
||||
// Project: https://github.com/sindresorhus/convert-hrtime#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = convertHrtime;
|
||||
|
||||
declare function convertHrtime(hrtime: [number, number]): convertHrtime.HRTime;
|
||||
|
||||
declare namespace convertHrtime {
|
||||
interface HRTime {
|
||||
seconds: number;
|
||||
milliseconds: number;
|
||||
nanoseconds: number;
|
||||
}
|
||||
}
|
||||
@@ -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",
|
||||
"convert-hrtime-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -1,48 +0,0 @@
|
||||
import createHtmlElement = require('create-html-element');
|
||||
|
||||
createHtmlElement(); // $ExpectType HTMLDivElement
|
||||
// $ExpectType HTMLDivElement
|
||||
createHtmlElement({
|
||||
attributes: {
|
||||
class: 'unicorn',
|
||||
rainbow: true,
|
||||
horse: false,
|
||||
number: 1,
|
||||
multiple: ['a', 'b'],
|
||||
},
|
||||
});
|
||||
createHtmlElement({ html: '🦄' }); // $ExpectType HTMLDivElement
|
||||
createHtmlElement({ text: 'Hello <em>World</em>' }); // $ExpectType HTMLDivElement
|
||||
createHtmlElement({ html: '🦄', text: 'Hello <em>World</em>' }); // $ExpectError
|
||||
|
||||
createHtmlElement({ name: 'h1' }); // $ExpectType HTMLHeadingElement
|
||||
// $ExpectType HTMLHeadingElement
|
||||
createHtmlElement({
|
||||
name: 'h1',
|
||||
attributes: {
|
||||
class: 'unicorn',
|
||||
rainbow: true,
|
||||
horse: false,
|
||||
number: 1,
|
||||
multiple: ['a', 'b'],
|
||||
},
|
||||
});
|
||||
createHtmlElement({ name: 'h1', html: '🦄' }); // $ExpectType HTMLHeadingElement
|
||||
createHtmlElement({ name: 'h1', text: 'Hello <em>World</em>' }); // $ExpectType HTMLHeadingElement
|
||||
createHtmlElement({ name: 'h1', html: '🦄', text: 'Hello <em>World</em>' }); // $ExpectError
|
||||
|
||||
createHtmlElement({ name: 'foo' }); // $ExpectType HTMLElement
|
||||
// $ExpectType HTMLElement
|
||||
createHtmlElement({
|
||||
name: 'foo',
|
||||
attributes: {
|
||||
class: 'unicorn',
|
||||
rainbow: true,
|
||||
horse: false,
|
||||
number: 1,
|
||||
multiple: ['a', 'b'],
|
||||
},
|
||||
});
|
||||
createHtmlElement({ name: 'foo', html: '🦄' }); // $ExpectType HTMLElement
|
||||
createHtmlElement({ name: 'foo', text: 'Hello <em>World</em>' }); // $ExpectType HTMLElement
|
||||
createHtmlElement({ name: 'foo', html: '🦄', text: 'Hello <em>World</em>' }); // $ExpectError
|
||||
40
types/create-html-element/index.d.ts
vendored
40
types/create-html-element/index.d.ts
vendored
@@ -1,40 +0,0 @@
|
||||
// Type definitions for create-html-element 2.0
|
||||
// Project: https://github.com/sindresorhus/create-html-element#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
export = createHtmlElement;
|
||||
|
||||
declare function createHtmlElement(
|
||||
options?: createHtmlElement.OptionsWithoutTagName
|
||||
): HTMLDivElement;
|
||||
declare function createHtmlElement<K extends keyof HTMLElementTagNameMap>(
|
||||
options: createHtmlElement.Options<K>
|
||||
): HTMLElementTagNameMap[K];
|
||||
declare function createHtmlElement(options: createHtmlElement.Options<string>): HTMLElement;
|
||||
|
||||
declare namespace createHtmlElement {
|
||||
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
|
||||
type XOR<T, U> = (T | U) extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U;
|
||||
|
||||
interface AttributesOptions {
|
||||
attributes?: { [key: string]: string | boolean | number | string[] };
|
||||
}
|
||||
|
||||
interface HtmlOptions {
|
||||
html?: string;
|
||||
}
|
||||
|
||||
interface TextOptions {
|
||||
text?: string;
|
||||
}
|
||||
|
||||
type OptionsWithoutTagName = AttributesOptions & XOR<HtmlOptions, TextOptions>;
|
||||
|
||||
interface OptionsWithTagName<K> extends AttributesOptions {
|
||||
name: K;
|
||||
}
|
||||
|
||||
type Options<K> = OptionsWithTagName<K> & XOR<HtmlOptions, TextOptions>;
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"private": true,
|
||||
"types": "index",
|
||||
"typesVersions": {
|
||||
">=3.1.0-0": { "*": ["ts3.1/*"] }
|
||||
}
|
||||
}
|
||||
@@ -1,64 +0,0 @@
|
||||
import createHtmlElement = require('create-html-element');
|
||||
|
||||
createHtmlElement(); // $ExpectType HTMLDivElement
|
||||
// $ExpectType HTMLDivElement
|
||||
createHtmlElement({
|
||||
attributes: {
|
||||
class: 'unicorn',
|
||||
rainbow: true,
|
||||
horse: false,
|
||||
number: 1,
|
||||
multiple: ['a', 'b'],
|
||||
},
|
||||
});
|
||||
createHtmlElement({ html: '🦄' }); // $ExpectType HTMLDivElement
|
||||
createHtmlElement({ text: 'Hello <em>World</em>' }); // $ExpectType HTMLDivElement
|
||||
createHtmlElement({ html: '🦄', text: 'Hello <em>World</em>' }); // $ExpectError
|
||||
|
||||
createHtmlElement({ name: 'h1' }); // $ExpectType HTMLHeadingElement
|
||||
// $ExpectType HTMLHeadingElement
|
||||
createHtmlElement({
|
||||
name: 'h1',
|
||||
attributes: {
|
||||
class: 'unicorn',
|
||||
rainbow: true,
|
||||
horse: false,
|
||||
number: 1,
|
||||
multiple: ['a', 'b'],
|
||||
},
|
||||
});
|
||||
createHtmlElement({ name: 'h1', html: '🦄' }); // $ExpectType HTMLHeadingElement
|
||||
createHtmlElement({ name: 'h1', text: 'Hello <em>World</em>' }); // $ExpectType HTMLHeadingElement
|
||||
createHtmlElement({ name: 'h1', html: '🦄', text: 'Hello <em>World</em>' }); // $ExpectError
|
||||
|
||||
createHtmlElement({ name: 'listing' }); // $ExpectType HTMLPreElement
|
||||
// $ExpectType HTMLPreElement
|
||||
createHtmlElement({
|
||||
name: 'listing',
|
||||
attributes: {
|
||||
class: 'unicorn',
|
||||
rainbow: true,
|
||||
horse: false,
|
||||
number: 1,
|
||||
multiple: ['a', 'b'],
|
||||
},
|
||||
});
|
||||
createHtmlElement({ name: 'listing', html: '🦄' }); // $ExpectType HTMLPreElement
|
||||
createHtmlElement({ name: 'listing', text: 'Hello <em>World</em>' }); // $ExpectType HTMLPreElement
|
||||
createHtmlElement({ name: 'listing', html: '🦄', text: 'Hello <em>World</em>' }); // $ExpectError
|
||||
|
||||
createHtmlElement({ name: 'foo' }); // $ExpectType HTMLElement
|
||||
// $ExpectType HTMLElement
|
||||
createHtmlElement({
|
||||
name: 'foo',
|
||||
attributes: {
|
||||
class: 'unicorn',
|
||||
rainbow: true,
|
||||
horse: false,
|
||||
number: 1,
|
||||
multiple: ['a', 'b'],
|
||||
},
|
||||
});
|
||||
createHtmlElement({ name: 'foo', html: '🦄' }); // $ExpectType HTMLElement
|
||||
createHtmlElement({ name: 'foo', text: 'Hello <em>World</em>' }); // $ExpectType HTMLElement
|
||||
createHtmlElement({ name: 'foo', html: '🦄', text: 'Hello <em>World</em>' }); // $ExpectError
|
||||
38
types/create-html-element/ts3.1/index.d.ts
vendored
38
types/create-html-element/ts3.1/index.d.ts
vendored
@@ -1,38 +0,0 @@
|
||||
export = createHtmlElement;
|
||||
|
||||
declare function createHtmlElement(
|
||||
options?: createHtmlElement.OptionsWithoutTagName
|
||||
): HTMLDivElement;
|
||||
declare function createHtmlElement<K extends keyof HTMLElementTagNameMap>(
|
||||
options: createHtmlElement.Options<K>
|
||||
): HTMLElementTagNameMap[K];
|
||||
/** @deprecated */
|
||||
declare function createHtmlElement<K extends keyof HTMLElementDeprecatedTagNameMap>(
|
||||
options: createHtmlElement.Options<K>
|
||||
): HTMLElementDeprecatedTagNameMap[K];
|
||||
declare function createHtmlElement(options: createHtmlElement.Options<string>): HTMLElement;
|
||||
|
||||
declare namespace createHtmlElement {
|
||||
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
|
||||
type XOR<T, U> = (T | U) extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U;
|
||||
|
||||
interface AttributesOptions {
|
||||
attributes?: { [key: string]: string | boolean | number | string[] };
|
||||
}
|
||||
|
||||
interface HtmlOptions {
|
||||
html?: string;
|
||||
}
|
||||
|
||||
interface TextOptions {
|
||||
text?: string;
|
||||
}
|
||||
|
||||
type OptionsWithoutTagName = AttributesOptions & XOR<HtmlOptions, TextOptions>;
|
||||
|
||||
interface OptionsWithTagName<K> extends AttributesOptions {
|
||||
name: K;
|
||||
}
|
||||
|
||||
type Options<K> = OptionsWithTagName<K> & XOR<HtmlOptions, TextOptions>;
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
{
|
||||
"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",
|
||||
"create-html-element-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -1,24 +0,0 @@
|
||||
{
|
||||
"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",
|
||||
"create-html-element-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -1,29 +0,0 @@
|
||||
import { sha1, sha256, sha384, sha512 } from 'crypto-hash';
|
||||
|
||||
// $ExpectType Promise<string>
|
||||
sha1('🦄');
|
||||
// $ExpectType Promise<ArrayBuffer>
|
||||
sha1('🦄', { outputFormat: 'buffer' });
|
||||
// $ExpectType Promise<string>
|
||||
sha1('🦄', { outputFormat: 'hex' });
|
||||
|
||||
// $ExpectType Promise<string>
|
||||
sha256('🦄');
|
||||
// $ExpectType Promise<ArrayBuffer>
|
||||
sha256('🦄', { outputFormat: 'buffer' });
|
||||
// $ExpectType Promise<string>
|
||||
sha256('🦄', { outputFormat: 'hex' });
|
||||
|
||||
// $ExpectType Promise<string>
|
||||
sha384('🦄');
|
||||
// $ExpectType Promise<ArrayBuffer>
|
||||
sha384('🦄', { outputFormat: 'buffer' });
|
||||
// $ExpectType Promise<string>
|
||||
sha384('🦄', { outputFormat: 'hex' });
|
||||
|
||||
// $ExpectType Promise<string>
|
||||
sha512('🦄');
|
||||
// $ExpectType Promise<ArrayBuffer>
|
||||
sha512('🦄', { outputFormat: 'buffer' });
|
||||
// $ExpectType Promise<string>
|
||||
sha512('🦄', { outputFormat: 'hex' });
|
||||
48
types/crypto-hash/index.d.ts
vendored
48
types/crypto-hash/index.d.ts
vendored
@@ -1,48 +0,0 @@
|
||||
// Type definitions for crypto-hash 1.0
|
||||
// Project: https://github.com/sindresorhus/crypto-hash#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export function sha1(
|
||||
buffer: string | ArrayBuffer | ArrayBufferView,
|
||||
options?: OptionsHexOutput
|
||||
): Promise<string>;
|
||||
export function sha1(
|
||||
buffer: string | ArrayBuffer | ArrayBufferView,
|
||||
options: OptionBufferOutput
|
||||
): Promise<ArrayBuffer>;
|
||||
|
||||
export function sha256(
|
||||
buffer: string | ArrayBuffer | ArrayBufferView,
|
||||
options?: OptionsHexOutput
|
||||
): Promise<string>;
|
||||
export function sha256(
|
||||
buffer: string | ArrayBuffer | ArrayBufferView,
|
||||
options: OptionBufferOutput
|
||||
): Promise<ArrayBuffer>;
|
||||
|
||||
export function sha384(
|
||||
buffer: string | ArrayBuffer | ArrayBufferView,
|
||||
options?: OptionsHexOutput
|
||||
): Promise<string>;
|
||||
export function sha384(
|
||||
buffer: string | ArrayBuffer | ArrayBufferView,
|
||||
options: OptionBufferOutput
|
||||
): Promise<ArrayBuffer>;
|
||||
|
||||
export function sha512(
|
||||
buffer: string | ArrayBuffer | ArrayBufferView,
|
||||
options?: OptionsHexOutput
|
||||
): Promise<string>;
|
||||
export function sha512(
|
||||
buffer: string | ArrayBuffer | ArrayBufferView,
|
||||
options: OptionBufferOutput
|
||||
): Promise<ArrayBuffer>;
|
||||
|
||||
export interface OptionsHexOutput {
|
||||
outputFormat?: 'hex';
|
||||
}
|
||||
|
||||
export interface OptionBufferOutput {
|
||||
outputFormat: 'buffer';
|
||||
}
|
||||
@@ -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",
|
||||
"crypto-hash-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -1,4 +0,0 @@
|
||||
import generate = require('crypto-random-string');
|
||||
|
||||
// $ExpectType string
|
||||
generate(10);
|
||||
13
types/crypto-random-string/index.d.ts
vendored
13
types/crypto-random-string/index.d.ts
vendored
@@ -1,13 +0,0 @@
|
||||
// Type definitions for crypto-random-string 1.0
|
||||
// Project: https://github.com/sindresorhus/crypto-random-string
|
||||
// Definitions by: Manuel Warum <https://github.com/MrManny>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/**
|
||||
* Generate a hexadecimal string of the given length.
|
||||
* @param length the length of the random string.
|
||||
* @return a string of the specified length.
|
||||
*/
|
||||
declare function cryptoRandomString(length: number): string;
|
||||
|
||||
export = cryptoRandomString;
|
||||
@@ -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",
|
||||
"crypto-random-string-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
@@ -1,53 +0,0 @@
|
||||
import Cycled = require('cycled');
|
||||
|
||||
const cycled = new Cycled([1, 2, 3]);
|
||||
// $ExpectType Cycled<number>
|
||||
cycled;
|
||||
|
||||
// $ExpectType number
|
||||
cycled.index;
|
||||
cycled.index = 1;
|
||||
|
||||
// $ExpectType number
|
||||
cycled.current();
|
||||
|
||||
// $ExpectType number
|
||||
cycled.next();
|
||||
|
||||
// $ExpectType number
|
||||
cycled.previous();
|
||||
|
||||
// $ExpectType number
|
||||
cycled.step(10);
|
||||
|
||||
// $ExpectType Iterator<number>
|
||||
cycled.indefinitely();
|
||||
|
||||
// $ExpectType Iterator<number>
|
||||
cycled.indefinitelyReversed();
|
||||
|
||||
// $ExpectType number[]
|
||||
[...cycled];
|
||||
|
||||
class TabComponent {
|
||||
views: Cycled<string>;
|
||||
activeView: string;
|
||||
|
||||
constructor(views: string[]) {
|
||||
this.activeView = views[0];
|
||||
this.views = new Cycled(views);
|
||||
}
|
||||
|
||||
setActiveView(view: string) {
|
||||
this.activeView = view;
|
||||
this.views.index = this.views.indexOf(view);
|
||||
}
|
||||
|
||||
nextView() {
|
||||
this.setActiveView(this.views.next());
|
||||
}
|
||||
|
||||
previousView() {
|
||||
this.setActiveView(this.views.previous());
|
||||
}
|
||||
}
|
||||
58
types/cycled/index.d.ts
vendored
58
types/cycled/index.d.ts
vendored
@@ -1,58 +0,0 @@
|
||||
// Type definitions for cycled 1.0
|
||||
// Project: https://github.com/sindresorhus/cycled#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = Cycled;
|
||||
|
||||
// tslint:disable:jsdoc-format
|
||||
declare class Cycled<T> extends Array<T> {
|
||||
/**
|
||||
* Initiates an array subclass with the methods documented below.
|
||||
* Since it's an array, you can use all the normal array methods on it.
|
||||
*
|
||||
* The instance is an iterable that will cycle through the array.
|
||||
* It will cycle through the number of elements equaling the length of the array from the current index.
|
||||
* ```
|
||||
const numberCycle = new Cycled([1,2,3,4,5]);
|
||||
|
||||
console.log(...numberCycle);
|
||||
//=> 1 2 3 4 5
|
||||
```
|
||||
*
|
||||
* @param input
|
||||
*/
|
||||
constructor(input: T[]);
|
||||
|
||||
/**
|
||||
* Get or set the current index.
|
||||
*/
|
||||
index: number;
|
||||
|
||||
/**
|
||||
* Returns the current item.
|
||||
*/
|
||||
current(): T;
|
||||
/**
|
||||
* Returns the next item.
|
||||
*/
|
||||
next(): T;
|
||||
/**
|
||||
* Returns the previous item.
|
||||
*/
|
||||
previous(): T;
|
||||
/**
|
||||
* Returns the item by going the given amount of `steps` through the array.
|
||||
* For example, calling `step(2)` is like calling `next()` twice. You go backward by specifying a negative number.
|
||||
* @param steps
|
||||
*/
|
||||
step(steps: number): T;
|
||||
/**
|
||||
* Returns an iterable that will cycle through the array indefinitely.
|
||||
*/
|
||||
indefinitely(): Iterator<T>;
|
||||
/**
|
||||
* Returns an iterable that will cycle through the array backward indefinitely.
|
||||
*/
|
||||
indefinitelyReversed(): Iterator<T>;
|
||||
}
|
||||
@@ -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",
|
||||
"cycled-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -1,29 +0,0 @@
|
||||
import dargs = require('dargs');
|
||||
|
||||
const input = {
|
||||
_: ['some', 'option'],
|
||||
foo: 'bar',
|
||||
hello: true,
|
||||
cake: false,
|
||||
camelCase: 5,
|
||||
multiple: ['value', 'value2'],
|
||||
pieKind: 'cherry',
|
||||
sad: ':('
|
||||
};
|
||||
|
||||
const excludes = ['sad', /.*Kind$/];
|
||||
const includes = ['camelCase', 'multiple', 'sad', /^pie.*/];
|
||||
const aliases = {file: 'f'};
|
||||
|
||||
// $ExpectType string[]
|
||||
dargs(input, {excludes});
|
||||
dargs(input, {excludes, includes});
|
||||
dargs(input, {includes});
|
||||
dargs({
|
||||
foo: 'bar',
|
||||
hello: true,
|
||||
file: 'baz'
|
||||
}, {aliases});
|
||||
dargs({foo: 'bar'}, {useEquals: false});
|
||||
dargs({foo: 'bar'}, {ignoreFalse: true});
|
||||
dargs({fooBar: 'baz'}, {allowCamelCase: true});
|
||||
20
types/dargs/index.d.ts
vendored
20
types/dargs/index.d.ts
vendored
@@ -1,20 +0,0 @@
|
||||
// Type definitions for dargs 5.1
|
||||
// Project: https://github.com/sindresorhus/dargs#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
export = dargs;
|
||||
|
||||
declare function dargs(input: object, options?: dargs.Options): string[];
|
||||
|
||||
declare namespace dargs {
|
||||
interface Options {
|
||||
excludes?: ReadonlyArray<string | RegExp>;
|
||||
includes?: ReadonlyArray<string | RegExp>;
|
||||
aliases?: { [key: string]: string };
|
||||
useEquals?: boolean;
|
||||
ignoreFalse?: boolean;
|
||||
allowCamelCase?: boolean;
|
||||
}
|
||||
}
|
||||
@@ -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",
|
||||
"dargs-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -1,10 +0,0 @@
|
||||
import debounceFn = require('debounce-fn');
|
||||
|
||||
const debounced = debounceFn((s: string) => true);
|
||||
debounced; // $ExpectType ((s: string) => boolean | undefined) & { cancel(): void; }
|
||||
|
||||
debounceFn((s: string) => true);
|
||||
debounceFn((s: string) => true, { wait: 100 });
|
||||
debounceFn((s: string) => true, { immediate: true });
|
||||
|
||||
debounced.cancel();
|
||||
34
types/debounce-fn/index.d.ts
vendored
34
types/debounce-fn/index.d.ts
vendored
@@ -1,34 +0,0 @@
|
||||
// Type definitions for debounce-fn 1.0
|
||||
// Project: https://github.com/sindresorhus/debounce-fn#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 3.0
|
||||
|
||||
export = debounce;
|
||||
|
||||
/**
|
||||
* Returns a debounced function that delays calling the `input` function until after `wait` milliseconds
|
||||
* have elapsed since the last time the debounced function was called.
|
||||
*
|
||||
* It comes with a `.cancel()` method to cancel any scheduled `input` function calls.
|
||||
*/
|
||||
declare function debounce<TArgs extends any[], TResult>(
|
||||
input: (...args: TArgs) => TResult,
|
||||
options?: debounce.Options
|
||||
): ((...args: TArgs) => TResult | undefined) & { cancel(): void };
|
||||
|
||||
declare namespace debounce {
|
||||
interface Options {
|
||||
/**
|
||||
* Time to wait until the `input` function is called.
|
||||
* @default 0
|
||||
*/
|
||||
wait?: number;
|
||||
/**
|
||||
* Trigger the function on the leading edge instead of the trailing edge of the `wait` interval.
|
||||
* For example, can be useful for preventing accidental double-clicks on a "submit" button
|
||||
* from firing a second time.
|
||||
*/
|
||||
immediate?: boolean;
|
||||
}
|
||||
}
|
||||
@@ -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",
|
||||
"debounce-fn-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -1,10 +0,0 @@
|
||||
import defineLazyProp = require('define-lazy-prop');
|
||||
|
||||
const unicorn = {
|
||||
foo: 'bar'
|
||||
};
|
||||
|
||||
const rainbowUnicorn = defineLazyProp(unicorn, 'rainbow', () => 1);
|
||||
|
||||
rainbowUnicorn.rainbow; // $ExpectType number
|
||||
rainbowUnicorn.foo; // $ExpectType string
|
||||
9
types/define-lazy-prop/index.d.ts
vendored
9
types/define-lazy-prop/index.d.ts
vendored
@@ -1,9 +0,0 @@
|
||||
// Type definitions for define-lazy-prop 1.0
|
||||
// Project: https://github.com/sindresorhus/define-lazy-prop#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
export = defineLazyProp;
|
||||
|
||||
declare function defineLazyProp<O extends object, P extends string, T>(obj: O, prop: P, fn: () => T): O & {[K in P]: T};
|
||||
@@ -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",
|
||||
"define-lazy-prop-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -1,7 +0,0 @@
|
||||
import detectNewline = require('detect-newline');
|
||||
|
||||
const res1 = detectNewline('foo\nbar\nbaz\r\n');
|
||||
res1; // $ExpectType "\r\n" | "\n" | null
|
||||
|
||||
const res2 = detectNewline.graceful('foo\nbar\nbaz\r\n');
|
||||
res2; // $ExpectType "\r\n" | "\n"
|
||||
12
types/detect-newline/index.d.ts
vendored
12
types/detect-newline/index.d.ts
vendored
@@ -1,12 +0,0 @@
|
||||
// Type definitions for detect-newline 2.1
|
||||
// Project: https://github.com/sindresorhus/detect-newline#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = detectNewline;
|
||||
|
||||
declare function detectNewline(str: string): '\r\n' | '\n' | null;
|
||||
|
||||
declare namespace detectNewline {
|
||||
function graceful(str: string): '\r\n' | '\n';
|
||||
}
|
||||
@@ -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",
|
||||
"detect-newline-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -1,10 +0,0 @@
|
||||
// check if it's open
|
||||
console.log('is DevTools open?', window.devtools.open);
|
||||
// check it's orientation, null if not open
|
||||
console.log('and DevTools orientation?', window.devtools.orientation);
|
||||
|
||||
// get notified when it's opened/closed or orientation changes
|
||||
window.addEventListener('devtoolschange', function (e) {
|
||||
console.log('is DevTools open?', e.detail.open);
|
||||
console.log('and DevTools orientation?', e.detail.orientation);
|
||||
});
|
||||
16
types/devtools-detect/index.d.ts
vendored
16
types/devtools-detect/index.d.ts
vendored
@@ -1,16 +0,0 @@
|
||||
// Type definitions for ajv
|
||||
// Project: https://github.com/sindresorhus/devtools-detect
|
||||
// Definitions by: York Yao <https://github.com/plantain-00/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
type DevTools = {
|
||||
open: boolean;
|
||||
orientation: "vertical" | "horizontal";
|
||||
}
|
||||
interface DevToolsEvent extends Event {
|
||||
detail: DevTools;
|
||||
}
|
||||
interface Window {
|
||||
devtools: DevTools;
|
||||
addEventListener(type: "devtoolschange", listener: (ev: DevToolsEvent) => any, useCapture?: boolean): void;
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"devtools-detect-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,80 +0,0 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"adjacent-overload-signatures": false,
|
||||
"array-type": false,
|
||||
"arrow-return-shorthand": false,
|
||||
"ban-types": false,
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
"interface-name": false,
|
||||
"interface-over-type-literal": false,
|
||||
"jsdoc-format": false,
|
||||
"max-line-length": false,
|
||||
"member-access": false,
|
||||
"new-parens": false,
|
||||
"no-any-union": false,
|
||||
"no-boolean-literal-compare": false,
|
||||
"no-conditional-assignment": false,
|
||||
"no-consecutive-blank-lines": false,
|
||||
"no-construct": false,
|
||||
"no-declare-current-package": false,
|
||||
"no-duplicate-imports": false,
|
||||
"no-duplicate-variable": false,
|
||||
"no-empty-interface": false,
|
||||
"no-for-in-array": false,
|
||||
"no-inferrable-types": false,
|
||||
"no-internal-module": false,
|
||||
"no-irregular-whitespace": false,
|
||||
"no-mergeable-namespace": false,
|
||||
"no-misused-new": false,
|
||||
"no-namespace": false,
|
||||
"no-object-literal-type-assertion": false,
|
||||
"no-padding": false,
|
||||
"no-redundant-jsdoc": false,
|
||||
"no-redundant-jsdoc-2": false,
|
||||
"no-redundant-undefined": false,
|
||||
"no-reference-import": false,
|
||||
"no-relative-import-in-test": false,
|
||||
"no-self-import": false,
|
||||
"no-single-declare-module": false,
|
||||
"no-string-throw": false,
|
||||
"no-unnecessary-callback-wrapper": false,
|
||||
"no-unnecessary-class": false,
|
||||
"no-unnecessary-generics": false,
|
||||
"no-unnecessary-qualifier": false,
|
||||
"no-unnecessary-type-assertion": false,
|
||||
"no-useless-files": false,
|
||||
"no-var-keyword": false,
|
||||
"no-var-requires": false,
|
||||
"no-void-expression": false,
|
||||
"no-trailing-whitespace": false,
|
||||
"object-literal-key-quotes": false,
|
||||
"object-literal-shorthand": false,
|
||||
"one-line": false,
|
||||
"one-variable-per-declaration": false,
|
||||
"only-arrow-functions": false,
|
||||
"prefer-conditional-expression": false,
|
||||
"prefer-const": false,
|
||||
"prefer-declare-function": false,
|
||||
"prefer-for-of": false,
|
||||
"prefer-method-signature": false,
|
||||
"prefer-template": false,
|
||||
"radix": false,
|
||||
"semicolon": false,
|
||||
"space-before-function-paren": false,
|
||||
"space-within-parens": false,
|
||||
"strict-export-declare-modifiers": false,
|
||||
"trim-file": false,
|
||||
"triple-equals": false,
|
||||
"typedef-whitespace": false,
|
||||
"unified-signatures": false,
|
||||
"void-return": false,
|
||||
"whitespace": false
|
||||
}
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
/// <reference types="node"/>
|
||||
import dotProp = require('dot-prop');
|
||||
import { get, has, set } from 'dot-prop';
|
||||
|
||||
get({foo: {bar: 'unicorn'}}, 'foo.bar');
|
||||
dotProp.get({foo: {bar: 'a'}}, 'foo.notDefined.deep');
|
||||
dotProp.get({foo: {bar: 'a'}}, 'foo.notDefined.deep', 'default value');
|
||||
dotProp.get({foo: {'dot.dot': 'unicorn'}}, 'foo.dot\\.dot');
|
||||
|
||||
const obj = {foo: {bar: 'a'}};
|
||||
set(obj, 'foo.bar', 'b');
|
||||
console.log(obj);
|
||||
dotProp.set(obj, 'foo.baz', 'x');
|
||||
console.log(obj);
|
||||
|
||||
has({foo: {bar: 'unicorn'}}, 'foo.bar');
|
||||
dotProp.has({foo: {bar: 'unicorn'}}, 'foo.bar');
|
||||
|
||||
dotProp.delete(obj, 'foo.bar');
|
||||
console.log(obj);
|
||||
(obj as any).foo.bar = {x: 'y', y: 'x'};
|
||||
dotProp.delete(obj, 'foo.bar.x');
|
||||
console.log(obj);
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user