mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
Deprecate types for packages that provide their own types (#36950)
This commit is contained in:
parent
0278c068f3
commit
4ea383cf15
@ -12,6 +12,12 @@
|
||||
"sourceRepoURL": "https://www.ably.io/",
|
||||
"asOfVersion": "1.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "active-win",
|
||||
"typingsPackageName": "active-win",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/active-win",
|
||||
"asOfVersion": "5.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "ag-grid",
|
||||
"typingsPackageName": "ag-grid",
|
||||
@ -390,6 +396,12 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/cli-cursor",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "cli-truncate",
|
||||
"typingsPackageName": "cli-truncate",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/cli-truncate",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "clipboardy",
|
||||
"typingsPackageName": "clipboardy",
|
||||
@ -678,6 +690,12 @@
|
||||
"sourceRepoURL": "https://github.com/DamonOehlman/detect-browser",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "detect-indent",
|
||||
"typingsPackageName": "detect-indent",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/detect-indent",
|
||||
"asOfVersion": "6.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "detect-newline",
|
||||
"typingsPackageName": "detect-newline",
|
||||
@ -906,6 +924,12 @@
|
||||
"sourceRepoURL": "https://github.com/primus/eventemitter3",
|
||||
"asOfVersion": "2.0.2"
|
||||
},
|
||||
{
|
||||
"libraryName": "execa",
|
||||
"typingsPackageName": "execa",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/execa",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "execall",
|
||||
"typingsPackageName": "execall",
|
||||
@ -1026,6 +1050,12 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/filter-console",
|
||||
"asOfVersion": "0.1.1"
|
||||
},
|
||||
{
|
||||
"libraryName": "find-up",
|
||||
"typingsPackageName": "find-up",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/find-up",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "find-versions",
|
||||
"typingsPackageName": "find-versions",
|
||||
@ -1068,18 +1098,18 @@
|
||||
"sourceRepoURL": "https://github.com/acdlite/flux-standard-action",
|
||||
"asOfVersion": "1.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "form-data",
|
||||
"typingsPackageName": "form-data",
|
||||
"sourceRepoURL": "https://github.com/form-data/form-data",
|
||||
"asOfVersion": "2.5.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "fork-ts-checker-webpack-plugin",
|
||||
"typingsPackageName": "fork-ts-checker-webpack-plugin",
|
||||
"sourceRepoURL": "https://github.com/Realytics/fork-ts-checker-webpack-plugin",
|
||||
"asOfVersion": "0.4.5"
|
||||
},
|
||||
{
|
||||
"libraryName": "form-data",
|
||||
"typingsPackageName": "form-data",
|
||||
"sourceRepoURL": "https://github.com/form-data/form-data",
|
||||
"asOfVersion": "2.5.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "Foundation Sites",
|
||||
"typingsPackageName": "foundation-sites",
|
||||
@ -1170,6 +1200,12 @@
|
||||
"sourceRepoURL": "https://github.com/jdalrymple/node-gitlab",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "global-dirs",
|
||||
"typingsPackageName": "global-dirs",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/global-dirs",
|
||||
"asOfVersion": "1.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "globby",
|
||||
"typingsPackageName": "globby",
|
||||
@ -1512,6 +1548,12 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/is-image",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "is-installed-globally",
|
||||
"typingsPackageName": "is-installed-globally",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/is-installed-globally.git",
|
||||
"asOfVersion": "0.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "is-ip",
|
||||
"typingsPackageName": "is-ip",
|
||||
@ -1806,6 +1848,12 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/leven",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "line-column-path",
|
||||
"typingsPackageName": "line-column-path",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/line-column-path",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "linkify-issues",
|
||||
"typingsPackageName": "linkify-issues",
|
||||
@ -1932,12 +1980,24 @@
|
||||
"sourceRepoURL": "https://github.com/malijs/mali",
|
||||
"asOfVersion": "0.9.2"
|
||||
},
|
||||
{
|
||||
"libraryName": "map-obj",
|
||||
"typingsPackageName": "map-obj",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/map-obj",
|
||||
"asOfVersion": "3.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "maquette",
|
||||
"typingsPackageName": "maquette",
|
||||
"sourceRepoURL": "http://maquettejs.org/",
|
||||
"asOfVersion": "2.1.6"
|
||||
},
|
||||
{
|
||||
"libraryName": "matcher",
|
||||
"typingsPackageName": "matcher",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/matcher",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "maxmind",
|
||||
"typingsPackageName": "maxmind",
|
||||
@ -1968,6 +2028,12 @@
|
||||
"sourceRepoURL": "https://github.com/marcusdb/microgears",
|
||||
"asOfVersion": "4.0.5"
|
||||
},
|
||||
{
|
||||
"libraryName": "mnemonic-words",
|
||||
"typingsPackageName": "mnemonic-words",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/mnemonic-words",
|
||||
"asOfVersion": "1.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "mobile-detect",
|
||||
"typingsPackageName": "mobile-detect",
|
||||
@ -2004,6 +2070,12 @@
|
||||
"sourceRepoURL": "https://github.com/LearnBoost/monk.git",
|
||||
"asOfVersion": "6.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "month-days",
|
||||
"typingsPackageName": "month-days",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/month-days",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "move-file",
|
||||
"typingsPackageName": "move-file",
|
||||
@ -2016,6 +2088,12 @@
|
||||
"sourceRepoURL": "https://github.com/mqttjs/MQTT.js",
|
||||
"asOfVersion": "2.5.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "multimatch",
|
||||
"typingsPackageName": "multimatch",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/multimatch",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "nano",
|
||||
"typingsPackageName": "nano",
|
||||
@ -2028,6 +2106,30 @@
|
||||
"sourceRepoURL": "https://developer.mozilla.org/en-US/docs/Web/API/Permissions",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "negative-array",
|
||||
"typingsPackageName": "negative-array",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/negative-array",
|
||||
"asOfVersion": "2.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "negative-zero",
|
||||
"typingsPackageName": "negative-zero",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/negative-zero",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "new-github-issue-url",
|
||||
"typingsPackageName": "new-github-issue-url",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/new-github-issue-url",
|
||||
"asOfVersion": "0.2.1"
|
||||
},
|
||||
{
|
||||
"libraryName": "new-github-release-url",
|
||||
"typingsPackageName": "new-github-release-url",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/new-github-release-url",
|
||||
"asOfVersion": "1.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "ng-table",
|
||||
"typingsPackageName": "ng-table",
|
||||
@ -2106,12 +2208,30 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/on-change",
|
||||
"asOfVersion": "1.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "onetime",
|
||||
"typingsPackageName": "onetime",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/onetime",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "Onsen UI",
|
||||
"typingsPackageName": "onsenui",
|
||||
"sourceRepoURL": "http://onsen.io",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "open",
|
||||
"typingsPackageName": "open",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/open",
|
||||
"asOfVersion": "6.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "open-editor",
|
||||
"typingsPackageName": "open-editor",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/open-editor",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "opn",
|
||||
"typingsPackageName": "opn",
|
||||
@ -2124,6 +2244,12 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/ora",
|
||||
"asOfVersion": "3.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "os-locale",
|
||||
"typingsPackageName": "os-locale",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/os-locale",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "os-name",
|
||||
"typingsPackageName": "os-name",
|
||||
@ -2382,6 +2508,24 @@
|
||||
"sourceRepoURL": "https://github.com/blakeembrey/param-case",
|
||||
"asOfVersion": "1.1.2"
|
||||
},
|
||||
{
|
||||
"libraryName": "park-miller",
|
||||
"typingsPackageName": "park-miller",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/park-miller",
|
||||
"asOfVersion": "1.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "parse-columns",
|
||||
"typingsPackageName": "parse-columns",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/parse-columns",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "parse-ms",
|
||||
"typingsPackageName": "parse-ms",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/parse-ms",
|
||||
"asOfVersion": "2.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "pascal-case",
|
||||
"typingsPackageName": "pascal-case",
|
||||
@ -2400,6 +2544,12 @@
|
||||
"sourceRepoURL": "https://github.com/blakeembrey/path-case",
|
||||
"asOfVersion": "1.1.2"
|
||||
},
|
||||
{
|
||||
"libraryName": "path-exists",
|
||||
"typingsPackageName": "path-exists",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/path-exists",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "path-key",
|
||||
"typingsPackageName": "path-key",
|
||||
@ -2508,12 +2658,30 @@
|
||||
"sourceRepoURL": "https://github.com/FezVrasta/popper.js/",
|
||||
"asOfVersion": "1.11.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "positive-zero",
|
||||
"typingsPackageName": "positive-zero",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/positive-zero",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "Prando",
|
||||
"typingsPackageName": "prando",
|
||||
"sourceRepoURL": "https://github.com/zeh/prando",
|
||||
"asOfVersion": "1.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "pretty-bytes",
|
||||
"typingsPackageName": "pretty-bytes",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/pretty-bytes",
|
||||
"asOfVersion": "5.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "pretty-ms",
|
||||
"typingsPackageName": "pretty-ms",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/pretty-ms",
|
||||
"asOfVersion": "5.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "ProtoBuf.js",
|
||||
"typingsPackageName": "protobufjs",
|
||||
@ -2532,6 +2700,18 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/ps-list",
|
||||
"asOfVersion": "6.2.1"
|
||||
},
|
||||
{
|
||||
"libraryName": "public-ip",
|
||||
"typingsPackageName": "public-ip",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/public-ip",
|
||||
"asOfVersion": "3.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "pupa",
|
||||
"typingsPackageName": "pupa",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/pupa",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "qiniu",
|
||||
"typingsPackageName": "qiniu",
|
||||
@ -2586,6 +2766,12 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/random-obj-prop",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "randoma",
|
||||
"typingsPackageName": "randoma",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/randoma",
|
||||
"asOfVersion": "1.3.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "Raven JS",
|
||||
"typingsPackageName": "raven-js",
|
||||
@ -2724,12 +2910,30 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/read-chunk",
|
||||
"asOfVersion": "3.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "read-pkg",
|
||||
"typingsPackageName": "read-pkg",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/read-pkg",
|
||||
"asOfVersion": "5.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "read-pkg-up",
|
||||
"typingsPackageName": "read-pkg-up",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/read-pkg-up",
|
||||
"asOfVersion": "6.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "realm",
|
||||
"typingsPackageName": "realm",
|
||||
"sourceRepoURL": "https://github.com/realm/realm-js",
|
||||
"asOfVersion": "1.13.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "redent",
|
||||
"typingsPackageName": "redent",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/redent",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "Redux",
|
||||
"typingsPackageName": "redux",
|
||||
@ -2790,12 +2994,30 @@
|
||||
"sourceRepoURL": "https://github.com/rbuckton/ReflectDecorators",
|
||||
"asOfVersion": "0.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "replace-string",
|
||||
"typingsPackageName": "replace-string",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/replace-string",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "import-cwd",
|
||||
"typingsPackageName": "req-cwd",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/import-cwd",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "reselect",
|
||||
"typingsPackageName": "reselect",
|
||||
"sourceRepoURL": "https://github.com/rackt/reselect",
|
||||
"asOfVersion": "2.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "resolve-cwd",
|
||||
"typingsPackageName": "resolve-cwd",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/resolve-cwd",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "resolve-from",
|
||||
"typingsPackageName": "resolve-from",
|
||||
@ -2820,6 +3042,24 @@
|
||||
"sourceRepoURL": "https://github.com/EnoF/rest-io",
|
||||
"asOfVersion": "4.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "restore-cursor",
|
||||
"typingsPackageName": "restore-cursor",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/restore-cursor",
|
||||
"asOfVersion": "3.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "rev-hash",
|
||||
"typingsPackageName": "rev-hash",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/rev-hash",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "rgb-hex",
|
||||
"typingsPackageName": "rgb-hex",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/rgb-hex",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "rollup",
|
||||
"typingsPackageName": "rollup",
|
||||
@ -2844,6 +3084,12 @@
|
||||
"sourceRepoURL": "https://github.com/rollup/rollup-plugin-node-resolve",
|
||||
"asOfVersion": "4.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "round-to",
|
||||
"typingsPackageName": "round-to",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/round-to",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "route-recognizer",
|
||||
"typingsPackageName": "route-recognizer",
|
||||
@ -2904,6 +3150,24 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/sdbm",
|
||||
"asOfVersion": "1.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "semver-diff",
|
||||
"typingsPackageName": "semver-diff",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/semver-diff",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "semver-regex",
|
||||
"typingsPackageName": "semver-regex",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/semver-regex",
|
||||
"asOfVersion": "3.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "semver-truncate",
|
||||
"typingsPackageName": "semver-truncate",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/semver-truncate",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "sendgrid",
|
||||
"typingsPackageName": "sendgrid",
|
||||
@ -2928,6 +3192,12 @@
|
||||
"sourceRepoURL": "https://github.com/afractal/SharpTimer",
|
||||
"asOfVersion": "0.1.3"
|
||||
},
|
||||
{
|
||||
"libraryName": "shebang-regex",
|
||||
"typingsPackageName": "shebang-regex",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/shebang-regex",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "Shopify Prime",
|
||||
"typingsPackageName": "shopify-prime",
|
||||
@ -2946,6 +3216,12 @@
|
||||
"sourceRepoURL": "https://github.com/zeh/simplesignal",
|
||||
"asOfVersion": "1.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "@sindresorhus/class-names",
|
||||
"typingsPackageName": "sindresorhus__class-names",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/class-names",
|
||||
"asOfVersion": "1.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "@sindresorhus/df",
|
||||
"typingsPackageName": "sindresorhus__df",
|
||||
@ -2988,6 +3264,18 @@
|
||||
"sourceRepoURL": "https://github.com/onsip/SIP.js",
|
||||
"asOfVersion": "0.12.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "skin-tone",
|
||||
"typingsPackageName": "skin-tone",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/skin-tone",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "slash",
|
||||
"typingsPackageName": "slash",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/slash",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "smooth-scrollbar",
|
||||
"typingsPackageName": "smooth-scrollbar",
|
||||
@ -3018,6 +3306,12 @@
|
||||
"sourceRepoURL": "https://github.com/mozilla/source-map",
|
||||
"asOfVersion": "0.5.7"
|
||||
},
|
||||
{
|
||||
"libraryName": "sparkly",
|
||||
"typingsPackageName": "sparkly",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/sparkly",
|
||||
"asOfVersion": "5.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "Spectacle",
|
||||
"typingsPackageName": "spectacle",
|
||||
@ -3036,6 +3330,12 @@
|
||||
"sourceRepoURL": "https://github.com/JMPerez/spotify-web-api-js",
|
||||
"asOfVersion": "0.21.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "srcset",
|
||||
"typingsPackageName": "srcset",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/srcset",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "ServiceStack Utils",
|
||||
"typingsPackageName": "ss-utils",
|
||||
@ -3066,6 +3366,12 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/string-width",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "stringify-attributes",
|
||||
"typingsPackageName": "stringify-attributes",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/stringify-attributes",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "strip-ansi",
|
||||
"typingsPackageName": "strip-ansi",
|
||||
@ -3084,6 +3390,12 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/strip-indent",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "strip-json-comments",
|
||||
"typingsPackageName": "strip-json-comments",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/strip-json-comments",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "striptags",
|
||||
"typingsPackageName": "striptags",
|
||||
@ -3162,12 +3474,48 @@
|
||||
"sourceRepoURL": "http://gcanti.github.io/tcomb/guide/index.html",
|
||||
"asOfVersion": "2.6.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "temp-dir",
|
||||
"typingsPackageName": "temp-dir",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/temp-dir",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "temp-write",
|
||||
"typingsPackageName": "temp-write",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/temp-write",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "tempfile",
|
||||
"typingsPackageName": "tempfile",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/tempfile",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "tempy",
|
||||
"typingsPackageName": "tempy",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/tempy",
|
||||
"asOfVersion": "0.3.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "term-size",
|
||||
"typingsPackageName": "term-size",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/term-size",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "terminal-image",
|
||||
"typingsPackageName": "terminal-image",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/terminal-image",
|
||||
"asOfVersion": "0.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "terminal-link",
|
||||
"typingsPackageName": "terminal-link",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/terminal-link",
|
||||
"asOfVersion": "1.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "terser",
|
||||
"typingsPackageName": "terser",
|
||||
@ -3180,6 +3528,12 @@
|
||||
"sourceRepoURL": "https://github.com/mrdoob/three.js",
|
||||
"asOfVersion": "0.103.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "tildify",
|
||||
"typingsPackageName": "tildify",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/tildify",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "time-span",
|
||||
"typingsPackageName": "time-span",
|
||||
@ -3246,6 +3600,12 @@
|
||||
"sourceRepoURL": "https://github.com/Microsoft/TypeScript",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "ua-string",
|
||||
"typingsPackageName": "ua-string",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/ua-string",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "ui-box",
|
||||
"typingsPackageName": "ui-box",
|
||||
@ -3276,12 +3636,24 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/unique-random-array",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "unique-string",
|
||||
"typingsPackageName": "unique-string",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/unique-string",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "Universal Router",
|
||||
"typingsPackageName": "universal-router",
|
||||
"sourceRepoURL": "https://github.com/kriasoft/universal-router",
|
||||
"asOfVersion": "8.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "untildify",
|
||||
"typingsPackageName": "untildify",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/untildify",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "unused-filename",
|
||||
"typingsPackageName": "unused-filename",
|
||||
@ -3432,12 +3804,24 @@
|
||||
"sourceRepoURL": "https://github.com/yyc-git/Wonder-FRP",
|
||||
"asOfVersion": "0.1.25"
|
||||
},
|
||||
{
|
||||
"libraryName": "word-list",
|
||||
"typingsPackageName": "word-list-json",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/word-list",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "write-json-file",
|
||||
"typingsPackageName": "write-json-file",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/write-json-file",
|
||||
"asOfVersion": "3.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "write-pkg",
|
||||
"typingsPackageName": "write-pkg",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/write-pkg",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "x2js",
|
||||
"typingsPackageName": "x2js",
|
||||
@ -3450,6 +3834,12 @@
|
||||
"sourceRepoURL": "https://github.com/PeculiarVentures/xadesjs",
|
||||
"asOfVersion": "2.0.2"
|
||||
},
|
||||
{
|
||||
"libraryName": "xdg-basedir",
|
||||
"typingsPackageName": "xdg-basedir",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/xdg-basedir",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "xhr-mock",
|
||||
"typingsPackageName": "xhr-mock",
|
||||
@ -3486,6 +3876,12 @@
|
||||
"sourceRepoURL": "https://github.com/sourcelair/xterm.js/",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "year-days",
|
||||
"typingsPackageName": "year-days",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/year-days",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "yFiles for HTML",
|
||||
"typingsPackageName": "yfiles",
|
||||
|
||||
@ -1,17 +0,0 @@
|
||||
import activeWin = require('active-win');
|
||||
|
||||
// $ExpectType Promise<Result>
|
||||
activeWin();
|
||||
// $ExpectType Result
|
||||
activeWin.sync();
|
||||
|
||||
let win = {
|
||||
title: 'Unicorns - Google Search',
|
||||
id: 5762,
|
||||
owner: {
|
||||
name: 'Google Chrome',
|
||||
processId: 310,
|
||||
},
|
||||
};
|
||||
|
||||
win = activeWin.sync();
|
||||
30
types/active-win/index.d.ts
vendored
30
types/active-win/index.d.ts
vendored
@ -1,30 +0,0 @@
|
||||
// Type definitions for active-win 4.0
|
||||
// Project: https://github.com/sindresorhus/active-win#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = activeWin;
|
||||
|
||||
declare function activeWin(): Promise<activeWin.Result>;
|
||||
|
||||
declare namespace activeWin {
|
||||
function sync(): Result;
|
||||
|
||||
interface Result {
|
||||
title: string;
|
||||
id: number;
|
||||
bounds?: {
|
||||
x: number;
|
||||
y: number;
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
||||
owner: {
|
||||
name: string;
|
||||
processId: number;
|
||||
bundleId?: number;
|
||||
path?: string;
|
||||
};
|
||||
memoryUsage?: 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",
|
||||
"active-win-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@ -1,19 +0,0 @@
|
||||
import cliTruncate = require('cli-truncate');
|
||||
|
||||
// Truncate at different positions
|
||||
// $ExpectType string
|
||||
cliTruncate('unicorn', 4); // default position: 'end'
|
||||
|
||||
// $ExpectType string
|
||||
cliTruncate('unicorn', 4, {position: 'start'});
|
||||
|
||||
// $ExpectType string
|
||||
cliTruncate('unicorn', 4, {position: 'middle'});
|
||||
|
||||
// Truncate Unicode surrogate pairs
|
||||
// $ExpectType string
|
||||
cliTruncate('uni\uD83C\uDE00corn', 5);
|
||||
|
||||
// Truncate full-width characters
|
||||
// $ExpectType string
|
||||
cliTruncate('안녕하세요', 3);
|
||||
12
types/cli-truncate/index.d.ts
vendored
12
types/cli-truncate/index.d.ts
vendored
@ -1,12 +0,0 @@
|
||||
// Type definitions for cli-truncate 1.1
|
||||
// Project: https://github.com/sindresorhus/cli-truncate
|
||||
// Definitions by: Daniel Byrne <https://github.com/danwbyrne>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = cliTruncate;
|
||||
|
||||
declare function cliTruncate(
|
||||
input: string,
|
||||
columns: number,
|
||||
options?: {position?: 'start' | 'middle' | 'end'},
|
||||
): 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-truncate-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1,3 +0,0 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
@ -1,9 +0,0 @@
|
||||
import detectIndent = require('detect-indent');
|
||||
|
||||
const indent = detectIndent('').indent || ' ';
|
||||
|
||||
const indentInfo = detectIndent('');
|
||||
indentInfo; // $ExpectType IndentInfo
|
||||
const num: number = indentInfo.amount;
|
||||
const str: string = indentInfo.indent;
|
||||
const type: 'space' | 'tab' | null = indentInfo.type;
|
||||
17
types/detect-indent/index.d.ts
vendored
17
types/detect-indent/index.d.ts
vendored
@ -1,17 +0,0 @@
|
||||
// Type definitions for detect-indent 5.0
|
||||
// Project: https://github.com/sindresorhus/detect-indent
|
||||
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
|
||||
// BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = detectIndent;
|
||||
|
||||
declare function detectIndent(str: string): detectIndent.IndentInfo;
|
||||
|
||||
declare namespace detectIndent {
|
||||
interface IndentInfo {
|
||||
amount: number;
|
||||
type: 'tab' | 'space' | null;
|
||||
indent: 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",
|
||||
"detect-indent-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@ -1,6 +0,0 @@
|
||||
import di = require('detect-indent');
|
||||
|
||||
let str = '';
|
||||
|
||||
str = di(str);
|
||||
str = di(str, str);
|
||||
9
types/detect-indent/v0/index.d.ts
vendored
9
types/detect-indent/v0/index.d.ts
vendored
@ -1,9 +0,0 @@
|
||||
// Type definitions for detect-indent 0.1
|
||||
// Project: https://github.com/sindresorhus/detect-indent
|
||||
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
type DetectIndent = (dir: string, alt?: string) => string;
|
||||
|
||||
declare const _: DetectIndent;
|
||||
export = _;
|
||||
@ -1,28 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../../",
|
||||
"typeRoots": [
|
||||
"../../"
|
||||
],
|
||||
"paths": {
|
||||
"detect-indent": [
|
||||
"detect-indent/v0"
|
||||
]
|
||||
},
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"detect-indent-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@ -1,134 +0,0 @@
|
||||
import assert = require('assert');
|
||||
import execa = require('execa');
|
||||
import { PassThrough } from 'stream';
|
||||
|
||||
execa('unicorns').then(result => {
|
||||
assert(result.cmd === 'unicorns');
|
||||
assert(result.code === 0);
|
||||
assert(result.failed === false);
|
||||
assert(result.killed === false);
|
||||
assert(result.signal === null);
|
||||
assert(result.stderr === 'bad unicorns');
|
||||
assert(result.stdout === 'good unicorns');
|
||||
assert(result.timedOut === false);
|
||||
});
|
||||
|
||||
execa('foo').catch(error => {
|
||||
assert(error.cmd === 'foo');
|
||||
assert(error.code === 128);
|
||||
assert(error.failed === true);
|
||||
assert(error.killed === false);
|
||||
assert(error.signal === 'SIGINT');
|
||||
assert(error.stderr === 'stderr');
|
||||
assert(error.stdout === 'stdout');
|
||||
assert(error.timedOut === false);
|
||||
});
|
||||
|
||||
execa('noop', ['foo']).then(result => result.stderr.toLocaleLowerCase());
|
||||
|
||||
execa.stdout('unicorns').then(stdout => stdout.toLocaleLowerCase());
|
||||
execa.stdout('echo', ['unicorns']).then(stdout => stdout.toLocaleLowerCase());
|
||||
|
||||
execa.stderr('unicorns').then(stderr => stderr.toLocaleLowerCase());
|
||||
execa.stderr('echo', ['unicorns']).then(stderr => stderr.toLocaleLowerCase());
|
||||
|
||||
execa.shell('echo unicorns').then(result => result.stdout.toLocaleLowerCase());
|
||||
|
||||
{
|
||||
let result: string;
|
||||
result = execa.shellSync('foo').stderr;
|
||||
result = execa.shellSync('noop', { cwd: 'foo' }).stdout;
|
||||
|
||||
result = execa.shellSync('foo').stderr;
|
||||
result = execa.shellSync('noop foo').stdout;
|
||||
}
|
||||
|
||||
execa('echo', ['unicorns']).stdout!.pipe(process.stdout);
|
||||
execa('echo', ['unicorns']).stderr!.pipe(process.stderr);
|
||||
|
||||
execa('forever', { extendEnv: false }).pid;
|
||||
execa('forever', { argv0: 'hi' }).pid;
|
||||
execa('forever', { localDir: '~' }).pid;
|
||||
execa('forever', { reject: false }).pid;
|
||||
execa('forever', { cleanup: false }).pid;
|
||||
execa('forever', { stdin: 1 }).pid;
|
||||
execa('forever', { stdout: 'ignore' }).pid;
|
||||
execa('forever', { stderr: undefined }).pid;
|
||||
|
||||
async () => {
|
||||
const { stdout } = await execa('noop', ['foo'], { stripEof: false });
|
||||
assert(stdout === 'foo\n');
|
||||
};
|
||||
|
||||
async () => {
|
||||
const { stdout } = await execa('foo', { preferLocal: false });
|
||||
assert(stdout === 'global foo');
|
||||
};
|
||||
|
||||
async () => {
|
||||
const { stdout } = await execa('stdin', { input: 'foobar' });
|
||||
assert(stdout === 'foobar');
|
||||
};
|
||||
|
||||
async () => {
|
||||
const { stdout } = await execa('stdin', { input: new Buffer('foobar') });
|
||||
assert(stdout === 'foobar');
|
||||
};
|
||||
|
||||
async () => {
|
||||
const s = new PassThrough();
|
||||
s.write('howdy');
|
||||
s.end();
|
||||
const { stdout } = await execa('stdin', { input: s });
|
||||
assert(stdout === 'foobar');
|
||||
};
|
||||
|
||||
async () => {
|
||||
const child = execa('stdin');
|
||||
child.stdin!.end('unicorns');
|
||||
const { stdout } = await child;
|
||||
assert(stdout === 'unicorns');
|
||||
};
|
||||
|
||||
async () => {
|
||||
const { stdout } = await execa('stdin', {
|
||||
input: 'hello',
|
||||
stdio: [null, 'ignore', null]
|
||||
});
|
||||
assert(stdout === null);
|
||||
};
|
||||
|
||||
{
|
||||
const child = execa('stdin', {
|
||||
input: 'hello',
|
||||
stdio: [null, 'ignore', null]
|
||||
});
|
||||
|
||||
child.stdout!.setEncoding('utf8');
|
||||
|
||||
assert(child.pid === 0);
|
||||
child.kill();
|
||||
}
|
||||
|
||||
async () => {
|
||||
const { timedOut, code } = await execa('delay', ['3000', '22'], {
|
||||
timeout: 9000
|
||||
});
|
||||
assert(timedOut === true);
|
||||
assert(code === 22);
|
||||
};
|
||||
|
||||
async () => {
|
||||
const { stdout } = await execa.shell('noop foo', {
|
||||
shell: process.platform === 'win32' ? 'cmd.exe' : '/bin/bash'
|
||||
});
|
||||
|
||||
assert(stdout === 'foo');
|
||||
};
|
||||
|
||||
const args: ReadonlyArray<string> = ['bar'];
|
||||
const stdio: ReadonlyArray<'ignore'> = ['ignore'];
|
||||
execa('foo', args);
|
||||
execa('foo', args, {
|
||||
stdio
|
||||
});
|
||||
294
types/execa/index.d.ts
vendored
294
types/execa/index.d.ts
vendored
@ -1,294 +0,0 @@
|
||||
// Type definitions for execa 0.9
|
||||
// Project: https://github.com/sindresorhus/execa#readme
|
||||
// Definitions by: Douglas Duteil <https://github.com/douglasduteil>
|
||||
// BendingBender <https://github.com/BendingBender>
|
||||
// Borek Bernard <https://github.com/borekb>
|
||||
// Mick Dekkers <https://github.com/mickdekkers>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
import { ChildProcess } from 'child_process';
|
||||
import { Stream } from 'stream';
|
||||
|
||||
/**
|
||||
* A better `child_process`
|
||||
*/
|
||||
declare namespace execa {
|
||||
interface ExecaStatic {
|
||||
/**
|
||||
* Execute a file.
|
||||
*
|
||||
* Think of this as a mix of `child_process.execFile` and `child_process.spawn`.
|
||||
* @returns a `child_process` instance which is enhanced to also be a `Promise` for a result `Object` with `stdout` and `stderr` properties.
|
||||
*/
|
||||
(
|
||||
file: string,
|
||||
args?: ReadonlyArray<string>,
|
||||
options?: Options
|
||||
): ExecaChildProcess;
|
||||
(file: string, options?: Options): ExecaChildProcess;
|
||||
|
||||
/**
|
||||
* Execute a file.
|
||||
*
|
||||
* Think of this as a mix of `child_process.execFile` and `child_process.spawn`.
|
||||
* @returns a `child_process` instance which is enhanced to also be a `Promise` for `stdout`.
|
||||
*/
|
||||
stdout(
|
||||
file: string,
|
||||
args?: ReadonlyArray<string>,
|
||||
options?: Options
|
||||
): Promise<string>;
|
||||
stdout(file: string, options?: Options): Promise<string>;
|
||||
|
||||
/**
|
||||
* Execute a file.
|
||||
*
|
||||
* Think of this as a mix of `child_process.execFile` and `child_process.spawn`.
|
||||
* @returns a `child_process` instance which is enhanced to also be a `Promise` for `stderr`.
|
||||
*/
|
||||
stderr(
|
||||
file: string,
|
||||
args?: ReadonlyArray<string>,
|
||||
options?: Options
|
||||
): Promise<string>;
|
||||
stderr(file: string, options?: Options): Promise<string>;
|
||||
|
||||
/**
|
||||
* Execute a command through the system shell.
|
||||
*
|
||||
* Prefer `execa()` whenever possible, as it's both faster and safer.
|
||||
* @returns a `child_process` instance which is enhanced to also be a `Promise` for a result `Object` with `stdout` and `stderr` properties.
|
||||
*/
|
||||
shell(command: string, options?: Options): ExecaChildProcess;
|
||||
|
||||
/**
|
||||
* Execute a file synchronously.
|
||||
*
|
||||
* Think of this as a mix of `child_process.execFile` and `child_process.spawn`.
|
||||
* @returns the same result object as `child_process.spawnSync`.
|
||||
* @throws an `Error` if the command fails.
|
||||
*/
|
||||
sync(
|
||||
file: string,
|
||||
args?: ReadonlyArray<string>,
|
||||
options?: SyncOptions
|
||||
): ExecaReturns;
|
||||
sync(file: string, options?: SyncOptions): ExecaReturns;
|
||||
|
||||
/**
|
||||
* Execute a command synchronously through the system shell.
|
||||
*
|
||||
* @returns the same result object as `child_process.spawnSync`.
|
||||
* @throws an `Error` if the command fails.
|
||||
*/
|
||||
shellSync(command: string, options?: Options): ExecaReturns;
|
||||
}
|
||||
|
||||
type StdIOOption =
|
||||
| 'pipe'
|
||||
| 'ipc'
|
||||
| 'ignore'
|
||||
| 'inherit'
|
||||
| Stream
|
||||
| number
|
||||
| null
|
||||
| undefined;
|
||||
|
||||
interface CommonOptions {
|
||||
/**
|
||||
* Current working directory of the child process.
|
||||
* @default `process.cwd()`
|
||||
*/
|
||||
cwd?: string;
|
||||
/**
|
||||
* Environment key-value pairs.
|
||||
* Extends automatically from `process.env`.
|
||||
* Set `extendEnv` to `false` if you don't want this.
|
||||
* @default `process.env`
|
||||
*/
|
||||
env?: NodeJS.ProcessEnv;
|
||||
/**
|
||||
* Set to `false` if you don't want to extend the environment variables when providing the `env` property.
|
||||
* @default `true`
|
||||
*/
|
||||
extendEnv?: boolean;
|
||||
/**
|
||||
* Explicitly set the value of `argv[0]` sent to the child process.
|
||||
* This will be set to `command` or `file` if not specified.
|
||||
*/
|
||||
argv0?: string;
|
||||
/**
|
||||
* The `stdio` option is used to configure the pipes that are established between the parent and child process.
|
||||
* By default, the child's stdin, stdout, and stderr are redirected to corresponding `subprocess.stdin`, `subprocess.stdout`, and `subprocess.stderr` streams on the `ChildProcess` object.
|
||||
* @default `'pipe'`
|
||||
*
|
||||
* @see https://nodejs.org/api/child_process.html#child_process_options_stdio
|
||||
*/
|
||||
stdio?: 'pipe' | 'ignore' | 'inherit' | ReadonlyArray<StdIOOption>;
|
||||
/**
|
||||
* Prepare child to run independently of its parent process.
|
||||
* Specific behavior depends on the platform.
|
||||
* @see https://nodejs.org/api/child_process.html#child_process_options_detached
|
||||
*/
|
||||
detached?: boolean;
|
||||
/**
|
||||
* Sets the user identity of the process.
|
||||
*/
|
||||
uid?: number;
|
||||
/**
|
||||
* Sets the group identity of the process.
|
||||
*/
|
||||
gid?: number;
|
||||
/**
|
||||
* If `true`, runs `command` inside of a shell.
|
||||
* Uses `/bin/sh` on UNIX and `cmd.exe` on Windows.
|
||||
* A different shell can be specified as a string.
|
||||
* The shell should understand the `-c` switch on UNIX or `/d /s /c` on Windows.
|
||||
* @default `false`
|
||||
*/
|
||||
shell?: boolean | string;
|
||||
/**
|
||||
* If `true`, no quoting or escaping of arguments is done on Windows.
|
||||
* Ignored on other platforms.
|
||||
* This is set to `true` automatically when `shell` is specified.
|
||||
* @default `false`
|
||||
*/
|
||||
windowsVerbatimArguments?: boolean;
|
||||
/**
|
||||
* Strip EOF (last newline) from the output.
|
||||
* @default `true`
|
||||
* @see https://github.com/sindresorhus/strip-eof
|
||||
*/
|
||||
stripEof?: boolean;
|
||||
/**
|
||||
* Prefer locally installed binaries when looking for a binary to execute.
|
||||
* If you `$ npm install foo`, you can then `execa('foo')`.
|
||||
* @default `true`
|
||||
*/
|
||||
preferLocal?: boolean;
|
||||
/**
|
||||
* Preferred path to find locally installed binaries in (use with `preferLocal`).
|
||||
* @default `process.cwd()`
|
||||
*/
|
||||
localDir?: string;
|
||||
/**
|
||||
* Setting this to `false` resolves the promise with the error instead of rejecting it.
|
||||
* @default `true`
|
||||
*/
|
||||
reject?: boolean;
|
||||
/**
|
||||
* Keep track of the spawned process and `kill` it when the parent process exits.
|
||||
* @default `true`
|
||||
*/
|
||||
cleanup?: boolean;
|
||||
/**
|
||||
* Specify the character encoding used to decode the `stdout` and `stderr` output.
|
||||
* @default `utf8`
|
||||
*/
|
||||
encoding?: string;
|
||||
/**
|
||||
* If `timeout` is greater than `0`, the parent will send the signal identified by the `killSignal` property (the default is `SIGTERM`) if the child runs longer than `timeout` milliseconds.
|
||||
* @default `0`
|
||||
*/
|
||||
timeout?: number;
|
||||
/**
|
||||
* Largest amount of data in bytes allowed on `stdout` or `stderr`.
|
||||
* @default `10000000` (10MB)
|
||||
*/
|
||||
maxBuffer?: number;
|
||||
/**
|
||||
* Signal value to be used when the spawned process will be killed.
|
||||
* @default `SIGTERM`
|
||||
*/
|
||||
killSignal?: string | number;
|
||||
/**
|
||||
* Used to configure the stdin pipe that is established between the parent and child process.
|
||||
* @default `'pipe'`
|
||||
* @see https://nodejs.org/api/child_process.html#child_process_options_stdio
|
||||
*/
|
||||
stdin?: StdIOOption;
|
||||
/**
|
||||
* Used to configure the stdout pipe that is established between the parent and child process.
|
||||
* @default `'pipe'`
|
||||
* @see https://nodejs.org/api/child_process.html#child_process_options_stdio
|
||||
*/
|
||||
stdout?: StdIOOption;
|
||||
/**
|
||||
* Used to configure the stderr pipe that is established between the parent and child process.
|
||||
* @default `'pipe'`
|
||||
* @see https://nodejs.org/api/child_process.html#child_process_options_stdio
|
||||
*/
|
||||
stderr?: StdIOOption;
|
||||
}
|
||||
|
||||
interface Options extends CommonOptions {
|
||||
/**
|
||||
* Write some input to the `stdin` of your binary.
|
||||
*/
|
||||
input?: string | Buffer | Stream;
|
||||
}
|
||||
|
||||
interface SyncOptions extends CommonOptions {
|
||||
/**
|
||||
* Write some input to the `stdin` of your binary.
|
||||
* Streams are not allowed when using the synchronous methods.
|
||||
*/
|
||||
input?: string | Buffer;
|
||||
}
|
||||
|
||||
interface ExecaReturns {
|
||||
/**
|
||||
* The command that was run.
|
||||
*/
|
||||
cmd: string;
|
||||
/**
|
||||
* The exit code of the process that was run.
|
||||
*/
|
||||
code: number;
|
||||
/**
|
||||
* Whether the process failed to run.
|
||||
*/
|
||||
failed: boolean;
|
||||
/**
|
||||
* Whether the process was killed.
|
||||
*/
|
||||
killed: boolean;
|
||||
/**
|
||||
* The signal that was used to terminate the process.
|
||||
*/
|
||||
signal: string | null;
|
||||
/**
|
||||
* The output of the process on stderr.
|
||||
*/
|
||||
stderr: string;
|
||||
/**
|
||||
* The output of the process on stdout.
|
||||
*/
|
||||
stdout: string;
|
||||
/**
|
||||
* Whether the process timed out.
|
||||
*/
|
||||
timedOut: boolean;
|
||||
}
|
||||
|
||||
type ExecaError = Error & ExecaReturns;
|
||||
|
||||
interface ExecaChildPromise {
|
||||
catch<TResult = never>(
|
||||
onrejected?:
|
||||
| ((reason: ExecaError) => TResult | PromiseLike<TResult>)
|
||||
| null
|
||||
): Promise<ExecaReturns | TResult>;
|
||||
}
|
||||
|
||||
type ExecaChildProcess = ChildProcess &
|
||||
ExecaChildPromise &
|
||||
Promise<ExecaReturns>;
|
||||
}
|
||||
|
||||
declare var execa: execa.ExecaStatic;
|
||||
|
||||
export = execa;
|
||||
@ -1,23 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": false,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"execa-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1,8 +0,0 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
// All are TODOs
|
||||
"await-promise": false,
|
||||
"no-boolean-literal-compare": false
|
||||
}
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
import findUp = require('find-up');
|
||||
|
||||
findUp('unicorn.png').then(filepath => {
|
||||
filepath; // $ExpectType string | null
|
||||
});
|
||||
|
||||
findUp('unicorn.png', {cwd: ''});
|
||||
findUp(['rainbow.png', 'unicorn.png']);
|
||||
findUp(['rainbow.png', 'unicorn.png'], {cwd: ''});
|
||||
|
||||
findUp.sync('unicorn.png'); // $ExpectType string | null
|
||||
findUp.sync('unicorn.png', {cwd: ''});
|
||||
findUp.sync(['rainbow.png', 'unicorn.png']);
|
||||
findUp.sync(['rainbow.png', 'unicorn.png'], {cwd: ''});
|
||||
16
types/find-up/index.d.ts
vendored
16
types/find-up/index.d.ts
vendored
@ -1,16 +0,0 @@
|
||||
// Type definitions for find-up 2.1
|
||||
// Project: https://github.com/sindresorhus/find-up#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = findUp;
|
||||
|
||||
declare function findUp(filename: string | string[], options?: findUp.Options): Promise<string | null>;
|
||||
|
||||
declare namespace findUp {
|
||||
function sync(filename: string | string[], options?: Options): string | null;
|
||||
|
||||
interface Options {
|
||||
cwd?: 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",
|
||||
"find-up-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@ -1,15 +0,0 @@
|
||||
import * as globalDirs from 'global-dirs';
|
||||
|
||||
// $ExpectType string
|
||||
globalDirs.npm.prefix;
|
||||
// $ExpectType string
|
||||
globalDirs.npm.packages;
|
||||
// $ExpectType string
|
||||
globalDirs.npm.binaries;
|
||||
|
||||
// $ExpectType string
|
||||
globalDirs.yarn.prefix;
|
||||
// $ExpectType string
|
||||
globalDirs.yarn.packages;
|
||||
// $ExpectType string
|
||||
globalDirs.yarn.binaries;
|
||||
13
types/global-dirs/index.d.ts
vendored
13
types/global-dirs/index.d.ts
vendored
@ -1,13 +0,0 @@
|
||||
// Type definitions for global-dirs 0.1
|
||||
// Project: https://github.com/sindresorhus/global-dirs#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export const npm: GlobalDirs;
|
||||
export const yarn: GlobalDirs;
|
||||
|
||||
export interface GlobalDirs {
|
||||
packages: string;
|
||||
binaries: string;
|
||||
prefix: 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",
|
||||
"global-dirs-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
8
types/is-installed-globally/index.d.ts
vendored
8
types/is-installed-globally/index.d.ts
vendored
@ -1,8 +0,0 @@
|
||||
// Type definitions for is-installed-globally 0.1
|
||||
// Project: https://github.com/sindresorhus/is-installed-globally#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = isInstalledGlobally;
|
||||
|
||||
declare const isInstalledGlobally: boolean;
|
||||
@ -1,4 +0,0 @@
|
||||
import isInstalledGlobally = require('is-installed-globally');
|
||||
|
||||
// $ExpectType boolean
|
||||
isInstalledGlobally;
|
||||
@ -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",
|
||||
"is-installed-globally-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
23
types/line-column-path/index.d.ts
vendored
23
types/line-column-path/index.d.ts
vendored
@ -1,23 +0,0 @@
|
||||
// Type definitions for line-column-path 1.0
|
||||
// Project: https://github.com/sindresorhus/line-column-path#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
export function parse(input: PathSpec): ParsedPath;
|
||||
export function stringify(input: PathDescriptor, options?: StringifyOptions): string;
|
||||
|
||||
export type PathSpec = string | PathDescriptor;
|
||||
|
||||
export interface PathDescriptor {
|
||||
file: string;
|
||||
line?: number;
|
||||
column?: number;
|
||||
}
|
||||
|
||||
export type ParsedPath = Required<PathDescriptor>;
|
||||
|
||||
export interface StringifyOptions {
|
||||
file?: boolean;
|
||||
column?: boolean;
|
||||
}
|
||||
@ -1,20 +0,0 @@
|
||||
import lineColumnPath = require('line-column-path');
|
||||
|
||||
const parsed = lineColumnPath.parse('unicorn.js:8:14');
|
||||
// $ExpectType Required<PathDescriptor>
|
||||
parsed;
|
||||
// $ExpectType Required<PathDescriptor>
|
||||
lineColumnPath.parse({ file: 'unicorn.js' });
|
||||
// $ExpectType Required<PathDescriptor>
|
||||
lineColumnPath.parse({ file: 'unicorn.js', line: 1 });
|
||||
// $ExpectType Required<PathDescriptor>
|
||||
lineColumnPath.parse({ file: 'unicorn.js', column: 1 });
|
||||
|
||||
// $ExpectType string
|
||||
lineColumnPath.stringify(parsed);
|
||||
// $ExpectType string
|
||||
lineColumnPath.stringify({ file: 'unicorn.js' });
|
||||
// $ExpectType string
|
||||
lineColumnPath.stringify({ file: 'unicorn.js', line: 1 });
|
||||
// $ExpectType string
|
||||
lineColumnPath.stringify({ file: 'unicorn.js', column: 1 });
|
||||
@ -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",
|
||||
"line-column-path-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
31
types/map-obj/index.d.ts
vendored
31
types/map-obj/index.d.ts
vendored
@ -1,31 +0,0 @@
|
||||
// Type definitions for map-obj 2.0
|
||||
// Project: https://github.com/sindresorhus/map-obj#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
export = mapObj;
|
||||
|
||||
declare function mapObj<O extends object, T extends string>(
|
||||
source: O, mapper: mapObj.Mapper<O, T, any>, options: mapObj.DeepOptions): object;
|
||||
declare function mapObj<O extends object, O2 extends object, T extends string, U>(
|
||||
source: O, mapper: mapObj.Mapper<O, T, U>, options: mapObj.TargetOptions<O2>): O2 & {[K in T]: U};
|
||||
declare function mapObj<O extends object, T extends string, U>(
|
||||
source: O, mapper: mapObj.Mapper<O, T, U>, options?: mapObj.Options): {[K in T]: U};
|
||||
|
||||
declare namespace mapObj {
|
||||
type Mapper<O extends object, T extends string, U> = (sourceKey: keyof O, sourceValue: O[keyof O], source: O) => [T, U];
|
||||
|
||||
interface DeepOptions extends Options {
|
||||
deep: true;
|
||||
}
|
||||
|
||||
interface TargetOptions<T extends object> extends Options {
|
||||
target: T;
|
||||
}
|
||||
|
||||
interface Options {
|
||||
deep?: boolean;
|
||||
target?: object;
|
||||
}
|
||||
}
|
||||
@ -1,20 +0,0 @@
|
||||
import mapObj = require('map-obj');
|
||||
|
||||
const newObject = mapObj({foo: 'bar'}, (key, value) => [value, key]);
|
||||
newObject; // $ExpectType { [x: string]: "foo"; }
|
||||
newObject.bar; // $ExpectType "foo"
|
||||
|
||||
const obj = mapObj({foo: 'bar'}, (key, value) => [value, key], {target: {baz: 'baz'}});
|
||||
obj; // $ExpectType { baz: string; } & { [x: string]: "foo"; }
|
||||
obj.bar; // $ExpectType "foo"
|
||||
obj.baz; // $ExpectType string
|
||||
|
||||
const obj1 = mapObj({foo: 'bar'}, (key, value) => [value, key], {target: {baz: 'baz'}, deep: false});
|
||||
obj1; // $ExpectType { baz: string; } & { [x: string]: "foo"; }
|
||||
obj1.bar; // $ExpectType "foo"
|
||||
obj1.baz; // $ExpectType string
|
||||
|
||||
const obj2 = mapObj({foo: 'bar'}, (key, value) => [value, key], {deep: true});
|
||||
obj2; // $ExpectType object
|
||||
const obj3 = mapObj({foo: 'bar'}, (key, value) => [value, key], {deep: true, target: {bar: 'baz'}});
|
||||
obj3; // $ExpectType object
|
||||
@ -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",
|
||||
"map-obj-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1,6 +0,0 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"no-unnecessary-generics": false
|
||||
}
|
||||
}
|
||||
16
types/matcher/index.d.ts
vendored
16
types/matcher/index.d.ts
vendored
@ -1,16 +0,0 @@
|
||||
// Type definitions for matcher 1.1
|
||||
// Project: https://github.com/sindresorhus/matcher#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = matcher;
|
||||
|
||||
declare function matcher(inputs: string[], patterns: string[], options?: matcher.Options): string[];
|
||||
|
||||
declare namespace matcher {
|
||||
function isMatch(input: string, pattern: string, options?: Options): boolean;
|
||||
|
||||
interface Options {
|
||||
caseSensitive?: boolean;
|
||||
}
|
||||
}
|
||||
@ -1,10 +0,0 @@
|
||||
import matcher = require('matcher');
|
||||
|
||||
// $ExpectType string[]
|
||||
matcher(['foo', 'bar', 'moo'], ['*oo', '!foo']);
|
||||
matcher(['foo', 'bar', 'moo'], ['!*oo']);
|
||||
matcher(['foo', 'bar', 'moo'], ['!*oo'], { caseSensitive: true });
|
||||
|
||||
// $ExpectType boolean
|
||||
matcher.isMatch('unicorn', 'uni*');
|
||||
matcher.isMatch('UNICORN', 'UNI*', { caseSensitive: true });
|
||||
@ -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",
|
||||
"matcher-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
8
types/mnemonic-words/index.d.ts
vendored
8
types/mnemonic-words/index.d.ts
vendored
@ -1,8 +0,0 @@
|
||||
// Type definitions for mnemonic-words 1.0
|
||||
// Project: https://github.com/sindresorhus/mnemonic-words#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = mnemonicWords;
|
||||
|
||||
declare const mnemonicWords: string[];
|
||||
@ -1,5 +0,0 @@
|
||||
import mnemonicWords = require('mnemonic-words');
|
||||
import mnemonicWordsJson = require('mnemonic-words/words.json');
|
||||
|
||||
mnemonicWords; // $ExpectType string[]
|
||||
mnemonicWordsJson; // $ExpectType string[]
|
||||
@ -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",
|
||||
"words.json.d.ts",
|
||||
"mnemonic-words-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
3
types/mnemonic-words/words.json.d.ts
vendored
3
types/mnemonic-words/words.json.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
export = mnemonicWords;
|
||||
|
||||
declare const mnemonicWords: string[];
|
||||
7
types/month-days/index.d.ts
vendored
7
types/month-days/index.d.ts
vendored
@ -1,7 +0,0 @@
|
||||
// Type definitions for month-days 2.1
|
||||
// Project: https://github.com/sindresorhus/month-days#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
export = monthDays;
|
||||
|
||||
declare function monthDays(month?: number, year?: number): number;
|
||||
@ -1,8 +0,0 @@
|
||||
import monthDays = require('month-days');
|
||||
|
||||
// $ExpectType number
|
||||
monthDays();
|
||||
// $ExpectType number
|
||||
monthDays(1);
|
||||
// $ExpectType number
|
||||
monthDays(1, 2016);
|
||||
@ -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",
|
||||
"month-days-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
25
types/multimatch/index.d.ts
vendored
25
types/multimatch/index.d.ts
vendored
@ -1,25 +0,0 @@
|
||||
// Type definitions for multimatch 2.1
|
||||
// Project: https://github.com/sindresorhus/multimatch
|
||||
// Definitions by: Stephen Lautier <https://github.com/stephenlautier>
|
||||
// BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import { IOptions } from 'minimatch';
|
||||
|
||||
/**
|
||||
* Match utility function which supports multiple pattern globbing.
|
||||
*
|
||||
* @param paths paths to match against.
|
||||
* @param patterns globbing patterns to use. e.g. `[*, "!cake"]`.
|
||||
*/
|
||||
declare function multimatch(
|
||||
paths: string | string[],
|
||||
patterns: string | string[],
|
||||
options?: multimatch.MultimatchOptions
|
||||
): string[];
|
||||
|
||||
declare namespace multimatch {
|
||||
type MultimatchOptions = IOptions;
|
||||
}
|
||||
|
||||
export = multimatch;
|
||||
@ -1,9 +0,0 @@
|
||||
import multimatch = require('multimatch');
|
||||
|
||||
const options: multimatch.MultimatchOptions = {
|
||||
debug: true,
|
||||
};
|
||||
|
||||
multimatch(['unicorn', 'cake', 'rainbows'], '!cake');
|
||||
multimatch(['unicorn', 'cake', 'rainbows'], ['*', '!cake']);
|
||||
multimatch(['unicorn', 'cake', 'rainbows'], ['*', '!cake'], options);
|
||||
@ -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",
|
||||
"multimatch-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
8
types/negative-array/index.d.ts
vendored
8
types/negative-array/index.d.ts
vendored
@ -1,8 +0,0 @@
|
||||
// Type definitions for negative-array 2.0
|
||||
// Project: https://github.com/sindresorhus/negative-array#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = negativeArray;
|
||||
|
||||
declare function negativeArray<T>(array: T[]): T[];
|
||||
@ -1,5 +0,0 @@
|
||||
import negativeArray = require('negative-array');
|
||||
|
||||
const unicorn = negativeArray(['pony', 'cake', 'rainbow']);
|
||||
|
||||
unicorn[-1];
|
||||
@ -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",
|
||||
"negative-array-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
8
types/negative-zero/index.d.ts
vendored
8
types/negative-zero/index.d.ts
vendored
@ -1,8 +0,0 @@
|
||||
// Type definitions for negative-zero 2.0
|
||||
// Project: https://github.com/sindresorhus/negative-zero#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = negativeZero;
|
||||
|
||||
declare function negativeZero(input: number): boolean;
|
||||
@ -1,3 +0,0 @@
|
||||
import negativeZero = require('negative-zero');
|
||||
|
||||
negativeZero(-0); // $ExpectType 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",
|
||||
"negative-zero-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
81
types/new-github-issue-url/index.d.ts
vendored
81
types/new-github-issue-url/index.d.ts
vendored
@ -1,81 +0,0 @@
|
||||
// Type definitions for new-github-issue-url 0.1
|
||||
// Project: https://github.com/sindresorhus/new-github-issue-url#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
export = newGithubIssueUrl;
|
||||
|
||||
/**
|
||||
* Returns a URL string.
|
||||
*/
|
||||
declare function newGithubIssueUrl(options: newGithubIssueUrl.Options): string;
|
||||
|
||||
declare namespace newGithubIssueUrl {
|
||||
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;
|
||||
|
||||
type Options = XOR<RepoUrlOptions, UserRepoOptions>;
|
||||
|
||||
interface BaseOptions {
|
||||
/**
|
||||
* The issue body.
|
||||
*/
|
||||
body?: string;
|
||||
/**
|
||||
* The issue title.
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
* Use an [issue template](https://help.github.com/articles/manually-creating-a-single-issue-template-for-your-repository).
|
||||
*
|
||||
* For example, if you want to use a template at `ISSUE_TEMPLATE/unicorn.md`, you would specify `unicorn.md` here.
|
||||
*/
|
||||
template?: string;
|
||||
/**
|
||||
* The labels for the issue.
|
||||
*
|
||||
* *Requires the user to have the permission to add labels.*
|
||||
*/
|
||||
labels?: string[];
|
||||
/**
|
||||
* The milestone for the issue.
|
||||
*
|
||||
* *Requires the user to have the permission to add milestone.*
|
||||
*/
|
||||
milestone?: string;
|
||||
/**
|
||||
* The user to assign to the issue.
|
||||
*
|
||||
* *Requires the user to have the permission to add assignee.*
|
||||
*/
|
||||
assignee?: string;
|
||||
/**
|
||||
* The projects to add the issue to.
|
||||
*
|
||||
* The project reference format is `user/<project-number>`, for example, if the URL to the project
|
||||
* is `https://github.com/sindresorhus/some-repo/projects/3`, the project reference would be `some-repo/3`.
|
||||
*
|
||||
* *Requires the user to have the permission to add projects.*
|
||||
*/
|
||||
projects?: string[];
|
||||
}
|
||||
|
||||
interface RepoUrlOptions extends BaseOptions {
|
||||
/**
|
||||
* The full URL to the repo.
|
||||
*/
|
||||
repoUrl: string;
|
||||
}
|
||||
|
||||
interface UserRepoOptions extends BaseOptions {
|
||||
/**
|
||||
* GitHub username or organization.
|
||||
*/
|
||||
user: string;
|
||||
/**
|
||||
* GitHub repo.
|
||||
*/
|
||||
repo: string;
|
||||
}
|
||||
}
|
||||
@ -1,54 +0,0 @@
|
||||
import newGithubIssueUrl = require('new-github-issue-url');
|
||||
|
||||
// $ExpectType string
|
||||
newGithubIssueUrl({
|
||||
repoUrl: 'https://github.com/sindresorhus/new-github-issue-url.git',
|
||||
});
|
||||
// $ExpectType string
|
||||
newGithubIssueUrl({
|
||||
user: 'sindresorhus',
|
||||
repo: 'new-github-issue-url',
|
||||
});
|
||||
// $ExpectError
|
||||
newGithubIssueUrl({
|
||||
user: 'sindresorhus',
|
||||
});
|
||||
// $ExpectError
|
||||
newGithubIssueUrl({
|
||||
repo: 'new-github-issue-url',
|
||||
});
|
||||
// $ExpectType string
|
||||
newGithubIssueUrl({
|
||||
repoUrl: 'https://github.com/sindresorhus/new-github-release-url.git',
|
||||
body: 'foo',
|
||||
});
|
||||
// $ExpectType string
|
||||
newGithubIssueUrl({
|
||||
repoUrl: 'https://github.com/sindresorhus/new-github-release-url.git',
|
||||
title: 'foo',
|
||||
});
|
||||
// $ExpectType string
|
||||
newGithubIssueUrl({
|
||||
repoUrl: 'https://github.com/sindresorhus/new-github-release-url.git',
|
||||
template: 'unicorn.md',
|
||||
});
|
||||
// $ExpectType string
|
||||
newGithubIssueUrl({
|
||||
repoUrl: 'https://github.com/sindresorhus/new-github-release-url.git',
|
||||
labels: ['foo', 'bar'],
|
||||
});
|
||||
// $ExpectType string
|
||||
newGithubIssueUrl({
|
||||
repoUrl: 'https://github.com/sindresorhus/new-github-release-url.git',
|
||||
milestone: 'foo',
|
||||
});
|
||||
// $ExpectType string
|
||||
newGithubIssueUrl({
|
||||
repoUrl: 'https://github.com/sindresorhus/new-github-release-url.git',
|
||||
assignee: 'sindresorhus',
|
||||
});
|
||||
// $ExpectType string
|
||||
newGithubIssueUrl({
|
||||
repoUrl: 'https://github.com/sindresorhus/new-github-release-url.git',
|
||||
projects: ['some-repo/3'],
|
||||
});
|
||||
@ -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",
|
||||
"new-github-issue-url-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
63
types/new-github-release-url/index.d.ts
vendored
63
types/new-github-release-url/index.d.ts
vendored
@ -1,63 +0,0 @@
|
||||
// Type definitions for new-github-release-url 0.1
|
||||
// Project: https://github.com/sindresorhus/new-github-release-url#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
export = newGithubReleaseUrl;
|
||||
|
||||
/**
|
||||
* Returns a URL string.
|
||||
*/
|
||||
declare function newGithubReleaseUrl(options: newGithubReleaseUrl.Options): string;
|
||||
|
||||
declare namespace newGithubReleaseUrl {
|
||||
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;
|
||||
|
||||
type Options = XOR<RepoUrlOptions, UserRepoOptions>;
|
||||
|
||||
interface BaseOptions {
|
||||
/**
|
||||
* The tag name of the release.
|
||||
*/
|
||||
tag?: string;
|
||||
/**
|
||||
* The branch name or commit SHA to point the release's tag at, if the tag doesn't already exist.
|
||||
* @default The default branch
|
||||
*/
|
||||
target?: string;
|
||||
/**
|
||||
* The title of the release.
|
||||
* GitHub shows the `tag` name when not specified.
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
* The description text of the release.
|
||||
*/
|
||||
body?: string;
|
||||
/**
|
||||
* Whether the release should be marked as a pre-release.
|
||||
* @default false
|
||||
*/
|
||||
isPrerelease?: boolean;
|
||||
}
|
||||
|
||||
interface RepoUrlOptions extends BaseOptions {
|
||||
/**
|
||||
* The full URL to the repo.
|
||||
*/
|
||||
repoUrl: string;
|
||||
}
|
||||
|
||||
interface UserRepoOptions extends BaseOptions {
|
||||
/**
|
||||
* GitHub username or organization.
|
||||
*/
|
||||
user: string;
|
||||
/**
|
||||
* GitHub repo.
|
||||
*/
|
||||
repo: string;
|
||||
}
|
||||
}
|
||||
@ -1,44 +0,0 @@
|
||||
import newGithubReleaseUrl = require('new-github-release-url');
|
||||
|
||||
// $ExpectType string
|
||||
newGithubReleaseUrl({
|
||||
repoUrl: 'https://github.com/sindresorhus/new-github-release-url.git',
|
||||
});
|
||||
// $ExpectType string
|
||||
newGithubReleaseUrl({
|
||||
user: 'sindresorhus',
|
||||
repo: 'new-github-release-url',
|
||||
});
|
||||
// $ExpectError
|
||||
newGithubReleaseUrl({
|
||||
user: 'sindresorhus',
|
||||
});
|
||||
// $ExpectError
|
||||
newGithubReleaseUrl({
|
||||
repo: 'new-github-release-url',
|
||||
});
|
||||
// $ExpectType string
|
||||
newGithubReleaseUrl({
|
||||
repoUrl: 'https://github.com/sindresorhus/new-github-release-url.git',
|
||||
tag: 'foo',
|
||||
});
|
||||
// $ExpectType string
|
||||
newGithubReleaseUrl({
|
||||
repoUrl: 'https://github.com/sindresorhus/new-github-release-url.git',
|
||||
target: 'foo',
|
||||
});
|
||||
// $ExpectType string
|
||||
newGithubReleaseUrl({
|
||||
repoUrl: 'https://github.com/sindresorhus/new-github-release-url.git',
|
||||
title: 'foo',
|
||||
});
|
||||
// $ExpectType string
|
||||
newGithubReleaseUrl({
|
||||
repoUrl: 'https://github.com/sindresorhus/new-github-release-url.git',
|
||||
body: 'foo',
|
||||
});
|
||||
// $ExpectType string
|
||||
newGithubReleaseUrl({
|
||||
repoUrl: 'https://github.com/sindresorhus/new-github-release-url.git',
|
||||
isPrerelease: true,
|
||||
});
|
||||
@ -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",
|
||||
"new-github-release-url-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
45
types/onetime/index.d.ts
vendored
45
types/onetime/index.d.ts
vendored
@ -1,45 +0,0 @@
|
||||
// Type definitions for onetime 3.0
|
||||
// Project: https://github.com/sindresorhus/onetime#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 3.0
|
||||
|
||||
export = oneTime;
|
||||
|
||||
/**
|
||||
* Ensure a function is only called once. When called multiple times it will return the return value from the first call.
|
||||
*
|
||||
* @param fn Function that should only be called once.
|
||||
* @returns A function that only calls `fn` once.
|
||||
*/
|
||||
declare function oneTime<T extends any[], R>(
|
||||
fn: (...args: T) => R,
|
||||
options?: oneTime.Options
|
||||
): (...args: T) => R;
|
||||
|
||||
declare namespace oneTime {
|
||||
/**
|
||||
* Get the number of times `fn` has been called.
|
||||
*
|
||||
* @param fn Function to get call count from.
|
||||
* @returns A number representing how many times `fn` has been called.
|
||||
*
|
||||
* @example
|
||||
* const foo = onetime(() => {});
|
||||
* foo();
|
||||
* foo();
|
||||
* foo();
|
||||
*
|
||||
* console.log(onetime.callCount(foo));
|
||||
* //=> 3
|
||||
*/
|
||||
function callCount(fn: (...args: any[]) => any): number | undefined;
|
||||
|
||||
interface Options {
|
||||
/**
|
||||
* Throw an error when called more than once.
|
||||
* @default false
|
||||
*/
|
||||
throw?: boolean;
|
||||
}
|
||||
}
|
||||
@ -1,12 +0,0 @@
|
||||
import onetime = require('onetime');
|
||||
|
||||
const foo = onetime(() => 5);
|
||||
foo(); // $ExpectType number
|
||||
|
||||
const foo2 = onetime(() => true, { throw: true });
|
||||
foo2(); // $ExpectType boolean
|
||||
|
||||
onetime((t1: boolean) => 5)(true); // $ExpectType number
|
||||
onetime((t1: boolean, t2: string) => 5)(true, ''); // $ExpectType number
|
||||
|
||||
onetime.callCount((t1: boolean, t2: string) => 5); // $ExpectType number | undefined
|
||||
@ -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",
|
||||
"onetime-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
36
types/onetime/v2/index.d.ts
vendored
36
types/onetime/v2/index.d.ts
vendored
@ -1,36 +0,0 @@
|
||||
// Type definitions for onetime 2.0
|
||||
// Project: https://github.com/sindresorhus/onetime#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = oneTime;
|
||||
|
||||
declare function oneTime<R>(fn: () => R, options?: oneTime.Options): () => R;
|
||||
declare function oneTime<T1, R>(fn: (t1: T1) => R, options?: oneTime.Options): (t1: T1) => R;
|
||||
declare function oneTime<T1, T2, R>(fn: (t1: T1, t2: T2) => R, options?: oneTime.Options): (t1: T1, t2: T2) => R;
|
||||
declare function oneTime<T1, T2, T3, R>(fn: (t1: T1, t2: T2, t3: T3) => R, options?: oneTime.Options): (t1: T1, t2: T2, t3: T3) => R;
|
||||
declare function oneTime<T1, T2, T3, T4, R>(
|
||||
fn: (t1: T1, t2: T2, t3: T3, t4: T4) => R, options?: oneTime.Options): (t1: T1, t2: T2, t3: T3, t4: T4) => R;
|
||||
declare function oneTime<T1, T2, T3, T4, T5, R>(
|
||||
fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => R, options?: oneTime.Options): (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => R;
|
||||
declare function oneTime<T1, T2, T3, T4, T5, T6, R>(
|
||||
fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6) => R, options?: oneTime.Options): (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6) => R;
|
||||
declare function oneTime<T1, T2, T3, T4, T5, T6, T7, R>(
|
||||
fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7) => R,
|
||||
options?: oneTime.Options): (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7) => R;
|
||||
declare function oneTime<T1, T2, T3, T4, T5, T6, T7, T8, R>(
|
||||
fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8) => R,
|
||||
options?: oneTime.Options): (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8) => R;
|
||||
declare function oneTime<T1, T2, T3, T4, T5, T6, T7, T8, T9, R>(
|
||||
fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9) => R,
|
||||
options?: oneTime.Options): (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9) => R;
|
||||
declare function oneTime<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R>(
|
||||
fn: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10) => R,
|
||||
options?: oneTime.Options): (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10) => R;
|
||||
declare function oneTime<R>(fn: (...args: any[]) => R, options?: oneTime.Options): (...args: any[]) => R;
|
||||
|
||||
declare namespace oneTime {
|
||||
interface Options {
|
||||
throw?: boolean;
|
||||
}
|
||||
}
|
||||
@ -1,31 +0,0 @@
|
||||
import onetime = require('onetime');
|
||||
|
||||
const foo = onetime(() => 5);
|
||||
foo(); // $ExpectType number
|
||||
|
||||
const foo2 = onetime(() => true, {throw: true});
|
||||
foo2(); // $ExpectType boolean
|
||||
|
||||
onetime((t1: boolean) => 5)(true); // $ExpectType number
|
||||
onetime((t1: boolean, t2: string) => 5)(true, ''); // $ExpectType number
|
||||
onetime((t1: boolean, t2: string, t3: number) => 5)(true, '', 5); // $ExpectType number
|
||||
onetime((t1: boolean, t2: string, t3: number, t4: undefined) => 5)(true, '', 5, undefined); // $ExpectType number
|
||||
onetime((t1: boolean, t2: string, t3: number, t4: undefined, t5: string) => 5)(true, '', 5, undefined, ''); // $ExpectType number
|
||||
onetime((t1: boolean, t2: string, t3: number, t4: undefined, t5: string, t6: number) => 5)(true, '', 5, undefined, '', 6); // $ExpectType number
|
||||
onetime((t1: boolean, t2: string, t3: number, t4: undefined, t5: string, t6: number, t7: boolean) => 5)(true, '', 5, undefined, '', 6, false); // $ExpectType number
|
||||
|
||||
const t8 = onetime(
|
||||
(t1: boolean, t2: string, t3: number, t4: undefined, t5: string, t6: number, t7: boolean, t8: string) => 5);
|
||||
t8(true, '', 5, undefined, '', 6, false, ''); // $ExpectType number
|
||||
|
||||
const t9 = onetime(
|
||||
(t1: boolean, t2: string, t3: number, t4: undefined, t5: string, t6: number, t7: boolean, t8: string, t9: number) => 5);
|
||||
t9(true, '', 5, undefined, '', 6, false, '', 1); // $ExpectType number
|
||||
|
||||
const t10 = onetime(
|
||||
(t1: boolean, t2: string, t3: number, t4: undefined, t5: string, t6: number, t7: boolean, t8: string, t9: number, t10: boolean) => 5);
|
||||
t10(true, '', 5, undefined, '', 6, false, '', 1, true); // $ExpectType number
|
||||
|
||||
const t11 = onetime(
|
||||
(t1: boolean, t2: string, t3: number, t4: undefined, t5: string, t6: number, t7: boolean, t8: string, t9: number, t10: boolean, t11: string) => 5);
|
||||
t11(true, '', 5, undefined, '', 6, false, '', 1, true, 5); // $ExpectType number
|
||||
@ -1,28 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../../",
|
||||
"typeRoots": [
|
||||
"../../"
|
||||
],
|
||||
"paths": {
|
||||
"onetime": [
|
||||
"onetime/v2"
|
||||
]
|
||||
},
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"onetime-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
25
types/open-editor/index.d.ts
vendored
25
types/open-editor/index.d.ts
vendored
@ -1,25 +0,0 @@
|
||||
// Type definitions for open-editor 1.2
|
||||
// Project: https://github.com/sindresorhus/open-editor#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
import { PathSpec } from 'line-column-path';
|
||||
|
||||
export = openEditor;
|
||||
|
||||
declare function openEditor(files: PathSpec[], options?: openEditor.Options): void;
|
||||
|
||||
declare namespace openEditor {
|
||||
function make(files: PathSpec[], options?: Options): EditorRunConfig;
|
||||
|
||||
interface Options {
|
||||
editor?: string;
|
||||
}
|
||||
|
||||
interface EditorRunConfig {
|
||||
bin: string;
|
||||
args: string[];
|
||||
isTerminalEditor: boolean;
|
||||
}
|
||||
}
|
||||
@ -1,43 +0,0 @@
|
||||
import openEditor = require('open-editor');
|
||||
|
||||
openEditor([
|
||||
'unicorn.js:5:3',
|
||||
{
|
||||
file: 'readme.md',
|
||||
line: 10,
|
||||
column: 2,
|
||||
},
|
||||
]);
|
||||
openEditor(
|
||||
[
|
||||
'unicorn.js:5:3',
|
||||
{
|
||||
file: 'readme.md',
|
||||
line: 10,
|
||||
column: 2,
|
||||
},
|
||||
],
|
||||
{ editor: 'vi' }
|
||||
);
|
||||
|
||||
// $ExpectType EditorRunConfig
|
||||
openEditor.make([
|
||||
'unicorn.js:5:3',
|
||||
{
|
||||
file: 'readme.md',
|
||||
line: 10,
|
||||
column: 2,
|
||||
},
|
||||
]);
|
||||
// $ExpectType EditorRunConfig
|
||||
openEditor.make(
|
||||
[
|
||||
'unicorn.js:5:3',
|
||||
{
|
||||
file: 'readme.md',
|
||||
line: 10,
|
||||
column: 2,
|
||||
},
|
||||
],
|
||||
{ editor: 'vi' }
|
||||
);
|
||||
@ -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",
|
||||
"open-editor-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
57
types/open/index.d.ts
vendored
57
types/open/index.d.ts
vendored
@ -1,57 +0,0 @@
|
||||
// Type definitions for open 6.1
|
||||
// Project: https://github.com/sindresorhus/open
|
||||
// Definitions by: Shinnosuke Watanabe <https://github.com/shinnn>,
|
||||
// Maxime LUCE <https://github.com/SomaticIT>,
|
||||
// Tommy Lent <https://github.com/tlent>,
|
||||
// Florian Keller <https://github.com/ffflorian>,
|
||||
// Sun Knudsen <https://github.com/sunknudsen>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
import { ChildProcess } from 'child_process';
|
||||
|
||||
/* Note that ES6 modules cannot directly export callable functions.
|
||||
* This file should be imported using the CommonJS-style:
|
||||
* import x = require('open');
|
||||
*/
|
||||
export = open;
|
||||
|
||||
/**
|
||||
* Uses the command `open` on OS X, `start` on Windows and `xdg-open` on other platforms.
|
||||
*
|
||||
* Returns a promise for the spawned child process. You would normally not need to use this for
|
||||
* anything, but it can be useful if you'd like to attach custom event listeners or perform
|
||||
* other operations directly on the spawned process.
|
||||
*
|
||||
* @param target The thing you want to open. Can be a URL, file, or executable.
|
||||
* Opens in the default app for the file type. For example, URLs open in your default
|
||||
* browser.
|
||||
* @param options Options to be passed to opn.
|
||||
*/
|
||||
declare function open(target: string, options?: Open.Options): Promise<ChildProcess>;
|
||||
|
||||
declare namespace Open {
|
||||
interface Options {
|
||||
/**
|
||||
* Wait for the opened app to exit before fulfilling the promise.
|
||||
* If `false` it's fulfilled immediately when opening the app.
|
||||
* On Windows you have to explicitly specify an app for it to be able to wait.
|
||||
* Defaults to `false`.
|
||||
*/
|
||||
wait?: boolean;
|
||||
|
||||
/**
|
||||
* Do not bring the app to the foreground (macOS only).
|
||||
* Defaults to `false`.
|
||||
*/
|
||||
background?: boolean;
|
||||
|
||||
/**
|
||||
* Specify the app to open the `target` with, or an array with the app and app arguments.
|
||||
* The app name is platform dependent. Don't hard code it in reusable modules.
|
||||
* Eg. Chrome is `google chrome` on OS X, `google-chrome` on Linux and `chrome` on Windows.
|
||||
*/
|
||||
app?: string | ReadonlyArray<string>;
|
||||
}
|
||||
}
|
||||
@ -1,10 +0,0 @@
|
||||
import open = require('open');
|
||||
|
||||
open('foo'); // $ExpectType Promise<ChildProcess>
|
||||
|
||||
open('foo', { app: 'bar' }); // $ExpectType Promise<ChildProcess>
|
||||
open('foo', { app: ['bar', '--arg'] }); // $ExpectType Promise<ChildProcess>
|
||||
open('foo', { app: 'bar', wait: false }); // $ExpectType Promise<ChildProcess>
|
||||
open('foo', { app: 'bar', background: false }); // $ExpectType Promise<ChildProcess>
|
||||
open('foo', { app: ['bar', '--arg'], wait: false }); // $ExpectType Promise<ChildProcess>
|
||||
open('foo', { app: ['bar', '--arg'], background: false }); // $ExpectType Promise<ChildProcess>
|
||||
@ -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",
|
||||
"open-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1,3 +0,0 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
17
types/os-locale/index.d.ts
vendored
17
types/os-locale/index.d.ts
vendored
@ -1,17 +0,0 @@
|
||||
// Type definitions for os-locale 2.1
|
||||
// Project: https://github.com/sindresorhus/os-locale
|
||||
// Definitions by: Aya Morisawa <https://github.com/AyaMorisawa>
|
||||
// BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = osLocale;
|
||||
|
||||
declare function osLocale(options?: osLocale.Options): Promise<string>;
|
||||
|
||||
declare namespace osLocale {
|
||||
function sync(options?: Options): string;
|
||||
|
||||
interface Options {
|
||||
spawn?: boolean;
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
import osLocale = require('os-locale');
|
||||
|
||||
osLocale().then(locale => {
|
||||
const str: string = locale;
|
||||
});
|
||||
osLocale({spawn: false}).then(locale => {
|
||||
const str: string = locale;
|
||||
});
|
||||
|
||||
const locale1: string = osLocale.sync();
|
||||
const locale2: string = osLocale.sync({spawn: false});
|
||||
@ -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",
|
||||
"os-locale-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
14
types/os-locale/v1/index.d.ts
vendored
14
types/os-locale/v1/index.d.ts
vendored
@ -1,14 +0,0 @@
|
||||
// Type definitions for os-locale 1.4
|
||||
// Project: https://github.com/sindresorhus/os-locale
|
||||
// Definitions by: Aya Morisawa <https://github.com/AyaMorisawa>
|
||||
// BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = osLocale;
|
||||
|
||||
declare function osLocale(options: { spawn?: boolean }, cb: (err: any, locale: string) => void): void;
|
||||
declare function osLocale(cb: (err: any, locale: string) => void): void;
|
||||
|
||||
declare namespace osLocale {
|
||||
function sync(options?: { spawn?: boolean }): string;
|
||||
}
|
||||
@ -1,10 +0,0 @@
|
||||
import osLocale = require('os-locale');
|
||||
|
||||
osLocale((err: any, locale: string) => {
|
||||
});
|
||||
|
||||
osLocale({spawn: false}, (err: any, locale: string) => {
|
||||
});
|
||||
|
||||
const locale1: string = osLocale.sync();
|
||||
const locale2: string = osLocale.sync({spawn: false});
|
||||
@ -1,28 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../../",
|
||||
"typeRoots": [
|
||||
"../../"
|
||||
],
|
||||
"paths": {
|
||||
"os-locale": [
|
||||
"os-locale/v1"
|
||||
]
|
||||
},
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"os-locale-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
16
types/park-miller/index.d.ts
vendored
16
types/park-miller/index.d.ts
vendored
@ -1,16 +0,0 @@
|
||||
// Type definitions for park-miller 1.0
|
||||
// Project: https://github.com/sindresorhus/park-miller#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = ParkMiller;
|
||||
|
||||
declare class ParkMiller {
|
||||
constructor(seed: number);
|
||||
|
||||
integer(): number;
|
||||
integerInRange(min: number, max: number): number;
|
||||
float(): number;
|
||||
floatInRange(min: number, max: number): number;
|
||||
boolean(): boolean;
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
import ParkMiller = require('park-miller');
|
||||
|
||||
const random = new ParkMiller(10);
|
||||
|
||||
// $ExpectType number
|
||||
random.integer();
|
||||
// $ExpectType number
|
||||
random.integerInRange(0, 1);
|
||||
// $ExpectType number
|
||||
random.float();
|
||||
// $ExpectType number
|
||||
random.floatInRange(0, 1);
|
||||
// $ExpectType boolean
|
||||
random.boolean();
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user