diff --git a/notNeededPackages.json b/notNeededPackages.json index 5464ac7b38..21e2ee0bc6 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -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", diff --git a/types/active-win/active-win-tests.ts b/types/active-win/active-win-tests.ts deleted file mode 100644 index 034b03d85a..0000000000 --- a/types/active-win/active-win-tests.ts +++ /dev/null @@ -1,17 +0,0 @@ -import activeWin = require('active-win'); - -// $ExpectType Promise -activeWin(); -// $ExpectType Result -activeWin.sync(); - -let win = { - title: 'Unicorns - Google Search', - id: 5762, - owner: { - name: 'Google Chrome', - processId: 310, - }, -}; - -win = activeWin.sync(); diff --git a/types/active-win/index.d.ts b/types/active-win/index.d.ts deleted file mode 100644 index 7ab1f1e123..0000000000 --- a/types/active-win/index.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -// Type definitions for active-win 4.0 -// Project: https://github.com/sindresorhus/active-win#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = activeWin; - -declare function activeWin(): Promise; - -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; - } -} diff --git a/types/active-win/tsconfig.json b/types/active-win/tsconfig.json deleted file mode 100644 index fc292756af..0000000000 --- a/types/active-win/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "active-win-tests.ts" - ] -} diff --git a/types/active-win/tslint.json b/types/active-win/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/active-win/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/cli-truncate/cli-truncate-tests.ts b/types/cli-truncate/cli-truncate-tests.ts deleted file mode 100644 index 677108e6ad..0000000000 --- a/types/cli-truncate/cli-truncate-tests.ts +++ /dev/null @@ -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); diff --git a/types/cli-truncate/index.d.ts b/types/cli-truncate/index.d.ts deleted file mode 100644 index f02ec427b8..0000000000 --- a/types/cli-truncate/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -// Type definitions for cli-truncate 1.1 -// Project: https://github.com/sindresorhus/cli-truncate -// Definitions by: Daniel Byrne -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = cliTruncate; - -declare function cliTruncate( - input: string, - columns: number, - options?: {position?: 'start' | 'middle' | 'end'}, -): string; diff --git a/types/cli-truncate/tsconfig.json b/types/cli-truncate/tsconfig.json deleted file mode 100644 index efc2a3a1c7..0000000000 --- a/types/cli-truncate/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "cli-truncate-tests.ts" - ] -} diff --git a/types/cli-truncate/tslint.json b/types/cli-truncate/tslint.json deleted file mode 100644 index d88586e5bd..0000000000 --- a/types/cli-truncate/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "dtslint/dt.json" -} diff --git a/types/detect-indent/detect-indent-tests.ts b/types/detect-indent/detect-indent-tests.ts deleted file mode 100644 index dc962b86fc..0000000000 --- a/types/detect-indent/detect-indent-tests.ts +++ /dev/null @@ -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; diff --git a/types/detect-indent/index.d.ts b/types/detect-indent/index.d.ts deleted file mode 100644 index 7c1838ce10..0000000000 --- a/types/detect-indent/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Type definitions for detect-indent 5.0 -// Project: https://github.com/sindresorhus/detect-indent -// Definitions by: Bart van der Schoor -// 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; - } -} diff --git a/types/detect-indent/tsconfig.json b/types/detect-indent/tsconfig.json deleted file mode 100644 index 3119632150..0000000000 --- a/types/detect-indent/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "detect-indent-tests.ts" - ] -} \ No newline at end of file diff --git a/types/detect-indent/tslint.json b/types/detect-indent/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/detect-indent/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/detect-indent/v0/detect-indent-tests.ts b/types/detect-indent/v0/detect-indent-tests.ts deleted file mode 100644 index 4bb8171494..0000000000 --- a/types/detect-indent/v0/detect-indent-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import di = require('detect-indent'); - -let str = ''; - -str = di(str); -str = di(str, str); diff --git a/types/detect-indent/v0/index.d.ts b/types/detect-indent/v0/index.d.ts deleted file mode 100644 index 17e8459281..0000000000 --- a/types/detect-indent/v0/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Type definitions for detect-indent 0.1 -// Project: https://github.com/sindresorhus/detect-indent -// Definitions by: Bart van der Schoor -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -type DetectIndent = (dir: string, alt?: string) => string; - -declare const _: DetectIndent; -export = _; diff --git a/types/detect-indent/v0/tsconfig.json b/types/detect-indent/v0/tsconfig.json deleted file mode 100644 index 6fb921c298..0000000000 --- a/types/detect-indent/v0/tsconfig.json +++ /dev/null @@ -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" - ] -} \ No newline at end of file diff --git a/types/detect-indent/v0/tslint.json b/types/detect-indent/v0/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/detect-indent/v0/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/execa/execa-tests.ts b/types/execa/execa-tests.ts deleted file mode 100644 index 632388106e..0000000000 --- a/types/execa/execa-tests.ts +++ /dev/null @@ -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 = ['bar']; -const stdio: ReadonlyArray<'ignore'> = ['ignore']; -execa('foo', args); -execa('foo', args, { - stdio -}); diff --git a/types/execa/index.d.ts b/types/execa/index.d.ts deleted file mode 100644 index 067d36c368..0000000000 --- a/types/execa/index.d.ts +++ /dev/null @@ -1,294 +0,0 @@ -// Type definitions for execa 0.9 -// Project: https://github.com/sindresorhus/execa#readme -// Definitions by: Douglas Duteil -// BendingBender -// Borek Bernard -// Mick Dekkers -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -/// - -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, - 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, - options?: Options - ): Promise; - stdout(file: string, options?: Options): Promise; - - /** - * 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, - options?: Options - ): Promise; - stderr(file: string, options?: Options): Promise; - - /** - * 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, - 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; - /** - * 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( - onrejected?: - | ((reason: ExecaError) => TResult | PromiseLike) - | null - ): Promise; - } - - type ExecaChildProcess = ChildProcess & - ExecaChildPromise & - Promise; -} - -declare var execa: execa.ExecaStatic; - -export = execa; diff --git a/types/execa/tsconfig.json b/types/execa/tsconfig.json deleted file mode 100644 index 2d20077a4f..0000000000 --- a/types/execa/tsconfig.json +++ /dev/null @@ -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" - ] -} \ No newline at end of file diff --git a/types/execa/tslint.json b/types/execa/tslint.json deleted file mode 100644 index 5281feceb3..0000000000 --- a/types/execa/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - // All are TODOs - "await-promise": false, - "no-boolean-literal-compare": false - } -} diff --git a/types/find-up/find-up-tests.ts b/types/find-up/find-up-tests.ts deleted file mode 100644 index 08b4c5d2ed..0000000000 --- a/types/find-up/find-up-tests.ts +++ /dev/null @@ -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: ''}); diff --git a/types/find-up/index.d.ts b/types/find-up/index.d.ts deleted file mode 100644 index e83510cac7..0000000000 --- a/types/find-up/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Type definitions for find-up 2.1 -// Project: https://github.com/sindresorhus/find-up#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = findUp; - -declare function findUp(filename: string | string[], options?: findUp.Options): Promise; - -declare namespace findUp { - function sync(filename: string | string[], options?: Options): string | null; - - interface Options { - cwd?: string; - } -} diff --git a/types/find-up/tsconfig.json b/types/find-up/tsconfig.json deleted file mode 100644 index ea6bf9d1ad..0000000000 --- a/types/find-up/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "find-up-tests.ts" - ] -} \ No newline at end of file diff --git a/types/find-up/tslint.json b/types/find-up/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/find-up/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/global-dirs/global-dirs-tests.ts b/types/global-dirs/global-dirs-tests.ts deleted file mode 100644 index 9ea2626670..0000000000 --- a/types/global-dirs/global-dirs-tests.ts +++ /dev/null @@ -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; diff --git a/types/global-dirs/index.d.ts b/types/global-dirs/index.d.ts deleted file mode 100644 index b8f26312a4..0000000000 --- a/types/global-dirs/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -// Type definitions for global-dirs 0.1 -// Project: https://github.com/sindresorhus/global-dirs#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export const npm: GlobalDirs; -export const yarn: GlobalDirs; - -export interface GlobalDirs { - packages: string; - binaries: string; - prefix: string; -} diff --git a/types/global-dirs/tsconfig.json b/types/global-dirs/tsconfig.json deleted file mode 100644 index 095ad058e0..0000000000 --- a/types/global-dirs/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "global-dirs-tests.ts" - ] -} diff --git a/types/global-dirs/tslint.json b/types/global-dirs/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/global-dirs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/is-installed-globally/index.d.ts b/types/is-installed-globally/index.d.ts deleted file mode 100644 index 130e44256e..0000000000 --- a/types/is-installed-globally/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for is-installed-globally 0.1 -// Project: https://github.com/sindresorhus/is-installed-globally#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = isInstalledGlobally; - -declare const isInstalledGlobally: boolean; diff --git a/types/is-installed-globally/is-installed-globally-tests.ts b/types/is-installed-globally/is-installed-globally-tests.ts deleted file mode 100644 index 8e64ec0c4b..0000000000 --- a/types/is-installed-globally/is-installed-globally-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import isInstalledGlobally = require('is-installed-globally'); - -// $ExpectType boolean -isInstalledGlobally; diff --git a/types/is-installed-globally/tsconfig.json b/types/is-installed-globally/tsconfig.json deleted file mode 100644 index 51a5701929..0000000000 --- a/types/is-installed-globally/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "is-installed-globally-tests.ts" - ] -} diff --git a/types/is-installed-globally/tslint.json b/types/is-installed-globally/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/is-installed-globally/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/line-column-path/index.d.ts b/types/line-column-path/index.d.ts deleted file mode 100644 index 6a42de54b8..0000000000 --- a/types/line-column-path/index.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -// Type definitions for line-column-path 1.0 -// Project: https://github.com/sindresorhus/line-column-path#readme -// Definitions by: 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; - -export interface StringifyOptions { - file?: boolean; - column?: boolean; -} diff --git a/types/line-column-path/line-column-path-tests.ts b/types/line-column-path/line-column-path-tests.ts deleted file mode 100644 index 5a3861476d..0000000000 --- a/types/line-column-path/line-column-path-tests.ts +++ /dev/null @@ -1,20 +0,0 @@ -import lineColumnPath = require('line-column-path'); - -const parsed = lineColumnPath.parse('unicorn.js:8:14'); -// $ExpectType Required -parsed; -// $ExpectType Required -lineColumnPath.parse({ file: 'unicorn.js' }); -// $ExpectType Required -lineColumnPath.parse({ file: 'unicorn.js', line: 1 }); -// $ExpectType Required -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 }); diff --git a/types/line-column-path/tsconfig.json b/types/line-column-path/tsconfig.json deleted file mode 100644 index 179e1e2167..0000000000 --- a/types/line-column-path/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "line-column-path-tests.ts" - ] -} diff --git a/types/line-column-path/tslint.json b/types/line-column-path/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/line-column-path/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/map-obj/index.d.ts b/types/map-obj/index.d.ts deleted file mode 100644 index 8d601a4d08..0000000000 --- a/types/map-obj/index.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -// Type definitions for map-obj 2.0 -// Project: https://github.com/sindresorhus/map-obj#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -export = mapObj; - -declare function mapObj( - source: O, mapper: mapObj.Mapper, options: mapObj.DeepOptions): object; -declare function mapObj( - source: O, mapper: mapObj.Mapper, options: mapObj.TargetOptions): O2 & {[K in T]: U}; -declare function mapObj( - source: O, mapper: mapObj.Mapper, options?: mapObj.Options): {[K in T]: U}; - -declare namespace mapObj { - type Mapper = (sourceKey: keyof O, sourceValue: O[keyof O], source: O) => [T, U]; - - interface DeepOptions extends Options { - deep: true; - } - - interface TargetOptions extends Options { - target: T; - } - - interface Options { - deep?: boolean; - target?: object; - } -} diff --git a/types/map-obj/map-obj-tests.ts b/types/map-obj/map-obj-tests.ts deleted file mode 100644 index e9a8a5f758..0000000000 --- a/types/map-obj/map-obj-tests.ts +++ /dev/null @@ -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 diff --git a/types/map-obj/tsconfig.json b/types/map-obj/tsconfig.json deleted file mode 100644 index 70c0243a5b..0000000000 --- a/types/map-obj/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "map-obj-tests.ts" - ] -} \ No newline at end of file diff --git a/types/map-obj/tslint.json b/types/map-obj/tslint.json deleted file mode 100644 index 71ee04c4e1..0000000000 --- a/types/map-obj/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "no-unnecessary-generics": false - } -} diff --git a/types/matcher/index.d.ts b/types/matcher/index.d.ts deleted file mode 100644 index 08e4e91f8f..0000000000 --- a/types/matcher/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Type definitions for matcher 1.1 -// Project: https://github.com/sindresorhus/matcher#readme -// Definitions by: 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; - } -} diff --git a/types/matcher/matcher-tests.ts b/types/matcher/matcher-tests.ts deleted file mode 100644 index fbadf58e1e..0000000000 --- a/types/matcher/matcher-tests.ts +++ /dev/null @@ -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 }); diff --git a/types/matcher/tsconfig.json b/types/matcher/tsconfig.json deleted file mode 100644 index efa5f37200..0000000000 --- a/types/matcher/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "matcher-tests.ts" - ] -} diff --git a/types/matcher/tslint.json b/types/matcher/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/matcher/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/mnemonic-words/index.d.ts b/types/mnemonic-words/index.d.ts deleted file mode 100644 index 4ce91c08d6..0000000000 --- a/types/mnemonic-words/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for mnemonic-words 1.0 -// Project: https://github.com/sindresorhus/mnemonic-words#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = mnemonicWords; - -declare const mnemonicWords: string[]; diff --git a/types/mnemonic-words/mnemonic-words-tests.ts b/types/mnemonic-words/mnemonic-words-tests.ts deleted file mode 100644 index a3c5569c8c..0000000000 --- a/types/mnemonic-words/mnemonic-words-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -import mnemonicWords = require('mnemonic-words'); -import mnemonicWordsJson = require('mnemonic-words/words.json'); - -mnemonicWords; // $ExpectType string[] -mnemonicWordsJson; // $ExpectType string[] diff --git a/types/mnemonic-words/tsconfig.json b/types/mnemonic-words/tsconfig.json deleted file mode 100644 index 44998ff2f3..0000000000 --- a/types/mnemonic-words/tsconfig.json +++ /dev/null @@ -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" - ] -} diff --git a/types/mnemonic-words/tslint.json b/types/mnemonic-words/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/mnemonic-words/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/mnemonic-words/words.json.d.ts b/types/mnemonic-words/words.json.d.ts deleted file mode 100644 index 2d95294802..0000000000 --- a/types/mnemonic-words/words.json.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export = mnemonicWords; - -declare const mnemonicWords: string[]; diff --git a/types/month-days/index.d.ts b/types/month-days/index.d.ts deleted file mode 100644 index 1a4249abac..0000000000 --- a/types/month-days/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Type definitions for month-days 2.1 -// Project: https://github.com/sindresorhus/month-days#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -export = monthDays; - -declare function monthDays(month?: number, year?: number): number; diff --git a/types/month-days/month-days-tests.ts b/types/month-days/month-days-tests.ts deleted file mode 100644 index 1b33a183fa..0000000000 --- a/types/month-days/month-days-tests.ts +++ /dev/null @@ -1,8 +0,0 @@ -import monthDays = require('month-days'); - -// $ExpectType number -monthDays(); -// $ExpectType number -monthDays(1); -// $ExpectType number -monthDays(1, 2016); diff --git a/types/month-days/tsconfig.json b/types/month-days/tsconfig.json deleted file mode 100644 index a125d8cae5..0000000000 --- a/types/month-days/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "month-days-tests.ts" - ] -} diff --git a/types/month-days/tslint.json b/types/month-days/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/month-days/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/multimatch/index.d.ts b/types/multimatch/index.d.ts deleted file mode 100644 index 6f8d37123c..0000000000 --- a/types/multimatch/index.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Type definitions for multimatch 2.1 -// Project: https://github.com/sindresorhus/multimatch -// Definitions by: Stephen Lautier -// 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; diff --git a/types/multimatch/multimatch-tests.ts b/types/multimatch/multimatch-tests.ts deleted file mode 100644 index 49a2e4516c..0000000000 --- a/types/multimatch/multimatch-tests.ts +++ /dev/null @@ -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); diff --git a/types/multimatch/tsconfig.json b/types/multimatch/tsconfig.json deleted file mode 100644 index c7ee9e6f63..0000000000 --- a/types/multimatch/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "multimatch-tests.ts" - ] -} \ No newline at end of file diff --git a/types/multimatch/tslint.json b/types/multimatch/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/multimatch/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/negative-array/index.d.ts b/types/negative-array/index.d.ts deleted file mode 100644 index 1308de4d9c..0000000000 --- a/types/negative-array/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for negative-array 2.0 -// Project: https://github.com/sindresorhus/negative-array#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = negativeArray; - -declare function negativeArray(array: T[]): T[]; diff --git a/types/negative-array/negative-array-tests.ts b/types/negative-array/negative-array-tests.ts deleted file mode 100644 index 9ca07b4a69..0000000000 --- a/types/negative-array/negative-array-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -import negativeArray = require('negative-array'); - -const unicorn = negativeArray(['pony', 'cake', 'rainbow']); - -unicorn[-1]; diff --git a/types/negative-array/tsconfig.json b/types/negative-array/tsconfig.json deleted file mode 100644 index be024c1c31..0000000000 --- a/types/negative-array/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "negative-array-tests.ts" - ] -} diff --git a/types/negative-array/tslint.json b/types/negative-array/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/negative-array/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/negative-zero/index.d.ts b/types/negative-zero/index.d.ts deleted file mode 100644 index 80887bad0c..0000000000 --- a/types/negative-zero/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for negative-zero 2.0 -// Project: https://github.com/sindresorhus/negative-zero#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = negativeZero; - -declare function negativeZero(input: number): boolean; diff --git a/types/negative-zero/negative-zero-tests.ts b/types/negative-zero/negative-zero-tests.ts deleted file mode 100644 index d1ec33d84b..0000000000 --- a/types/negative-zero/negative-zero-tests.ts +++ /dev/null @@ -1,3 +0,0 @@ -import negativeZero = require('negative-zero'); - -negativeZero(-0); // $ExpectType boolean diff --git a/types/negative-zero/tsconfig.json b/types/negative-zero/tsconfig.json deleted file mode 100644 index e1bc860e6b..0000000000 --- a/types/negative-zero/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "negative-zero-tests.ts" - ] -} diff --git a/types/negative-zero/tslint.json b/types/negative-zero/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/negative-zero/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/new-github-issue-url/index.d.ts b/types/new-github-issue-url/index.d.ts deleted file mode 100644 index f784a0d85d..0000000000 --- a/types/new-github-issue-url/index.d.ts +++ /dev/null @@ -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 -// 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 = { [P in Exclude]?: never }; - type XOR = (T | U) extends object ? (Without & U) | (Without & T) : T | U; - - type Options = XOR; - - 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/`, 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; - } -} diff --git a/types/new-github-issue-url/new-github-issue-url-tests.ts b/types/new-github-issue-url/new-github-issue-url-tests.ts deleted file mode 100644 index c64b1aaa61..0000000000 --- a/types/new-github-issue-url/new-github-issue-url-tests.ts +++ /dev/null @@ -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'], -}); diff --git a/types/new-github-issue-url/tsconfig.json b/types/new-github-issue-url/tsconfig.json deleted file mode 100644 index 3b1da7ee63..0000000000 --- a/types/new-github-issue-url/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "new-github-issue-url-tests.ts" - ] -} diff --git a/types/new-github-issue-url/tslint.json b/types/new-github-issue-url/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/new-github-issue-url/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/new-github-release-url/index.d.ts b/types/new-github-release-url/index.d.ts deleted file mode 100644 index 3b1be4b7f2..0000000000 --- a/types/new-github-release-url/index.d.ts +++ /dev/null @@ -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 -// 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 = { [P in Exclude]?: never }; - type XOR = (T | U) extends object ? (Without & U) | (Without & T) : T | U; - - type Options = XOR; - - 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; - } -} diff --git a/types/new-github-release-url/new-github-release-url-tests.ts b/types/new-github-release-url/new-github-release-url-tests.ts deleted file mode 100644 index 9efe4e83db..0000000000 --- a/types/new-github-release-url/new-github-release-url-tests.ts +++ /dev/null @@ -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, -}); diff --git a/types/new-github-release-url/tsconfig.json b/types/new-github-release-url/tsconfig.json deleted file mode 100644 index 62cf729db4..0000000000 --- a/types/new-github-release-url/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "new-github-release-url-tests.ts" - ] -} diff --git a/types/new-github-release-url/tslint.json b/types/new-github-release-url/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/new-github-release-url/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/onetime/index.d.ts b/types/onetime/index.d.ts deleted file mode 100644 index f1c6b56ad0..0000000000 --- a/types/onetime/index.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -// Type definitions for onetime 3.0 -// Project: https://github.com/sindresorhus/onetime#readme -// Definitions by: 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( - 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; - } -} diff --git a/types/onetime/onetime-tests.ts b/types/onetime/onetime-tests.ts deleted file mode 100644 index 4678eb45db..0000000000 --- a/types/onetime/onetime-tests.ts +++ /dev/null @@ -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 diff --git a/types/onetime/tsconfig.json b/types/onetime/tsconfig.json deleted file mode 100644 index 39df78e5bc..0000000000 --- a/types/onetime/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "onetime-tests.ts" - ] -} diff --git a/types/onetime/tslint.json b/types/onetime/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/onetime/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/onetime/v2/index.d.ts b/types/onetime/v2/index.d.ts deleted file mode 100644 index c7406307bc..0000000000 --- a/types/onetime/v2/index.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -// Type definitions for onetime 2.0 -// Project: https://github.com/sindresorhus/onetime#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = oneTime; - -declare function oneTime(fn: () => R, options?: oneTime.Options): () => R; -declare function oneTime(fn: (t1: T1) => R, options?: oneTime.Options): (t1: T1) => R; -declare function oneTime(fn: (t1: T1, t2: T2) => R, options?: oneTime.Options): (t1: T1, t2: T2) => R; -declare function oneTime(fn: (t1: T1, t2: T2, t3: T3) => R, options?: oneTime.Options): (t1: T1, t2: T2, t3: T3) => R; -declare function oneTime( - 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( - 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( - 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( - 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( - 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( - 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( - 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(fn: (...args: any[]) => R, options?: oneTime.Options): (...args: any[]) => R; - -declare namespace oneTime { - interface Options { - throw?: boolean; - } -} diff --git a/types/onetime/v2/onetime-tests.ts b/types/onetime/v2/onetime-tests.ts deleted file mode 100644 index 840edb6cc2..0000000000 --- a/types/onetime/v2/onetime-tests.ts +++ /dev/null @@ -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 diff --git a/types/onetime/v2/tsconfig.json b/types/onetime/v2/tsconfig.json deleted file mode 100644 index bda103d103..0000000000 --- a/types/onetime/v2/tsconfig.json +++ /dev/null @@ -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" - ] -} diff --git a/types/onetime/v2/tslint.json b/types/onetime/v2/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/onetime/v2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/open-editor/index.d.ts b/types/open-editor/index.d.ts deleted file mode 100644 index 60c81e3c26..0000000000 --- a/types/open-editor/index.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Type definitions for open-editor 1.2 -// Project: https://github.com/sindresorhus/open-editor#readme -// Definitions by: 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; - } -} diff --git a/types/open-editor/open-editor-tests.ts b/types/open-editor/open-editor-tests.ts deleted file mode 100644 index 1ddb27e607..0000000000 --- a/types/open-editor/open-editor-tests.ts +++ /dev/null @@ -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' } -); diff --git a/types/open-editor/tsconfig.json b/types/open-editor/tsconfig.json deleted file mode 100644 index 7454846951..0000000000 --- a/types/open-editor/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "open-editor-tests.ts" - ] -} diff --git a/types/open-editor/tslint.json b/types/open-editor/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/open-editor/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/open/index.d.ts b/types/open/index.d.ts deleted file mode 100644 index 4ae15ddac6..0000000000 --- a/types/open/index.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -// Type definitions for open 6.1 -// Project: https://github.com/sindresorhus/open -// Definitions by: Shinnosuke Watanabe , -// Maxime LUCE , -// Tommy Lent , -// Florian Keller , -// Sun Knudsen -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - -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; - -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; - } -} diff --git a/types/open/open-tests.ts b/types/open/open-tests.ts deleted file mode 100644 index 8540f02673..0000000000 --- a/types/open/open-tests.ts +++ /dev/null @@ -1,10 +0,0 @@ -import open = require('open'); - -open('foo'); // $ExpectType Promise - -open('foo', { app: 'bar' }); // $ExpectType Promise -open('foo', { app: ['bar', '--arg'] }); // $ExpectType Promise -open('foo', { app: 'bar', wait: false }); // $ExpectType Promise -open('foo', { app: 'bar', background: false }); // $ExpectType Promise -open('foo', { app: ['bar', '--arg'], wait: false }); // $ExpectType Promise -open('foo', { app: ['bar', '--arg'], background: false }); // $ExpectType Promise diff --git a/types/open/tsconfig.json b/types/open/tsconfig.json deleted file mode 100644 index 7302e9f627..0000000000 --- a/types/open/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "open-tests.ts" - ] -} diff --git a/types/open/tslint.json b/types/open/tslint.json deleted file mode 100644 index f93cf8562a..0000000000 --- a/types/open/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "dtslint/dt.json" -} diff --git a/types/os-locale/index.d.ts b/types/os-locale/index.d.ts deleted file mode 100644 index 3a35e70766..0000000000 --- a/types/os-locale/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Type definitions for os-locale 2.1 -// Project: https://github.com/sindresorhus/os-locale -// Definitions by: Aya Morisawa -// BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = osLocale; - -declare function osLocale(options?: osLocale.Options): Promise; - -declare namespace osLocale { - function sync(options?: Options): string; - - interface Options { - spawn?: boolean; - } -} diff --git a/types/os-locale/os-locale-tests.ts b/types/os-locale/os-locale-tests.ts deleted file mode 100644 index 233d9b5905..0000000000 --- a/types/os-locale/os-locale-tests.ts +++ /dev/null @@ -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}); diff --git a/types/os-locale/tsconfig.json b/types/os-locale/tsconfig.json deleted file mode 100644 index fbf08733cf..0000000000 --- a/types/os-locale/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "os-locale-tests.ts" - ] -} \ No newline at end of file diff --git a/types/os-locale/tslint.json b/types/os-locale/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/os-locale/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/os-locale/v1/index.d.ts b/types/os-locale/v1/index.d.ts deleted file mode 100644 index 2861e64d6b..0000000000 --- a/types/os-locale/v1/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Type definitions for os-locale 1.4 -// Project: https://github.com/sindresorhus/os-locale -// Definitions by: Aya Morisawa -// 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; -} diff --git a/types/os-locale/v1/os-locale-tests.ts b/types/os-locale/v1/os-locale-tests.ts deleted file mode 100644 index 46e7c39b32..0000000000 --- a/types/os-locale/v1/os-locale-tests.ts +++ /dev/null @@ -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}); diff --git a/types/os-locale/v1/tsconfig.json b/types/os-locale/v1/tsconfig.json deleted file mode 100644 index acb67ee603..0000000000 --- a/types/os-locale/v1/tsconfig.json +++ /dev/null @@ -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" - ] -} \ No newline at end of file diff --git a/types/os-locale/v1/tslint.json b/types/os-locale/v1/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/os-locale/v1/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/park-miller/index.d.ts b/types/park-miller/index.d.ts deleted file mode 100644 index 5b1a5a893c..0000000000 --- a/types/park-miller/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Type definitions for park-miller 1.0 -// Project: https://github.com/sindresorhus/park-miller#readme -// Definitions by: 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; -} diff --git a/types/park-miller/park-miller-tests.ts b/types/park-miller/park-miller-tests.ts deleted file mode 100644 index 2add2c1400..0000000000 --- a/types/park-miller/park-miller-tests.ts +++ /dev/null @@ -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(); diff --git a/types/park-miller/tsconfig.json b/types/park-miller/tsconfig.json deleted file mode 100644 index 4a589ae205..0000000000 --- a/types/park-miller/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "park-miller-tests.ts" - ] -} diff --git a/types/park-miller/tslint.json b/types/park-miller/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/park-miller/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/parse-columns/index.d.ts b/types/parse-columns/index.d.ts deleted file mode 100644 index cbe7c9d8c7..0000000000 --- a/types/parse-columns/index.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -// Type definitions for parse-columns 1.3 -// Project: https://github.com/sindresorhus/parse-columns -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = parseColumns; - -declare function parseColumns( - input: string, - options?: parseColumns.BaseOptions -): Array<{ [key: string]: string }>; -declare function parseColumns( - input: string, - options: parseColumns.Options -): Array<{ [key: string]: T }>; - -declare namespace parseColumns { - interface BaseOptions { - separator?: string; - headers?: ReadonlyArray; - } - - interface Options extends BaseOptions { - transform: (element: string, header: string, columnIndex: number, rowIndex: number) => T; - } -} diff --git a/types/parse-columns/parse-columns-tests.ts b/types/parse-columns/parse-columns-tests.ts deleted file mode 100644 index 51f7ff7661..0000000000 --- a/types/parse-columns/parse-columns-tests.ts +++ /dev/null @@ -1,27 +0,0 @@ -import parseColumns = require('parse-columns'); - -// $ExpectType { [key: string]: string; }[] -parseColumns('foo'); -// $ExpectType { [key: string]: string; }[] -parseColumns('foo', { separator: ' ' }); -// $ExpectType { [key: string]: string; }[] -parseColumns('foo', { headers: ['foo', 'bar'] }); -// $ExpectType { [key: string]: string | number; }[] -parseColumns('foo', { - transform(el, header, columnIndex, rowIndex) { - // $ExpectType string - el; - // $ExpectType string - header; - // $ExpectType number - columnIndex; - // $ExpectType number - rowIndex; - - if (columnIndex >= 1 && columnIndex <= 3) { - return Number(el); - } - - return el; - }, -}); diff --git a/types/parse-columns/tsconfig.json b/types/parse-columns/tsconfig.json deleted file mode 100644 index aceda8a52a..0000000000 --- a/types/parse-columns/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "parse-columns-tests.ts" - ] -} diff --git a/types/parse-columns/tslint.json b/types/parse-columns/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/parse-columns/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/parse-ms/index.d.ts b/types/parse-ms/index.d.ts deleted file mode 100644 index 62087873d4..0000000000 --- a/types/parse-ms/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -// Type definitions for parse-ms 1.0 -// Project: https://github.com/sindresorhus/parse-ms#readme -// Definitions by: Giles Roadnight -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = parseMs; -declare function parseMs(ms: number): { - days: number; - hours: number; - minutes: number; - seconds: number; - milliseconds: number; -}; diff --git a/types/parse-ms/parse-ms-tests.ts b/types/parse-ms/parse-ms-tests.ts deleted file mode 100644 index dbb4640518..0000000000 --- a/types/parse-ms/parse-ms-tests.ts +++ /dev/null @@ -1,3 +0,0 @@ -import parseMs = require("parse-ms"); - -const { days, hours, milliseconds, minutes, seconds } = parseMs(3000); diff --git a/types/parse-ms/tsconfig.json b/types/parse-ms/tsconfig.json deleted file mode 100644 index a4d7591291..0000000000 --- a/types/parse-ms/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "parse-ms-tests.ts" - ] -} \ No newline at end of file diff --git a/types/parse-ms/tslint.json b/types/parse-ms/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/parse-ms/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/path-exists/index.d.ts b/types/path-exists/index.d.ts deleted file mode 100644 index dfd7ad2813..0000000000 --- a/types/path-exists/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -// Type definitions for path-exists 3.0 -// Project: https://github.com/sindresorhus/path-exists -// Definitions by: Shogo Iwano -// BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = pathExists; - -declare function pathExists(path: string): Promise; - -declare namespace pathExists { - function sync(path: string): boolean; -} diff --git a/types/path-exists/path-exists-tests.ts b/types/path-exists/path-exists-tests.ts deleted file mode 100644 index 9cb79e8602..0000000000 --- a/types/path-exists/path-exists-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import pathExists = require("path-exists"); - -pathExists('foo.js').then(exists => { - const bool: boolean = exists; -}); -const bool: boolean = pathExists.sync("test/__path-exists.d.ts"); diff --git a/types/path-exists/tsconfig.json b/types/path-exists/tsconfig.json deleted file mode 100644 index d9e230ee27..0000000000 --- a/types/path-exists/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "path-exists-tests.ts" - ] -} \ No newline at end of file diff --git a/types/path-exists/tslint.json b/types/path-exists/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/path-exists/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/path-exists/v1/index.d.ts b/types/path-exists/v1/index.d.ts deleted file mode 100644 index ae3df252c4..0000000000 --- a/types/path-exists/v1/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -// Type definitions for path-exists 1.0 -// Project: https://github.com/sindresorhus/path-exists -// Definitions by: Shogo Iwano -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -interface PathExists { - (path: string, callback: (error: Error, exists: boolean) => void): void; - sync(path: string): boolean; -} - -declare const pathExists: PathExists; -export = pathExists; diff --git a/types/path-exists/v1/path-exists-tests.ts b/types/path-exists/v1/path-exists-tests.ts deleted file mode 100644 index 5c5553b5de..0000000000 --- a/types/path-exists/v1/path-exists-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import pathExists = require("path-exists"); - -pathExists("test/path-exists.d.ts", (error, exists) => { - const bool: boolean = exists; -}); -const bool: boolean = pathExists.sync("test/__path-exists.d.ts"); diff --git a/types/path-exists/v1/tsconfig.json b/types/path-exists/v1/tsconfig.json deleted file mode 100644 index 3a52689e9c..0000000000 --- a/types/path-exists/v1/tsconfig.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../../", - "typeRoots": [ - "../../" - ], - "paths": { - "path-exists": [ - "path-exists/v1" - ] - }, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "path-exists-tests.ts" - ] -} \ No newline at end of file diff --git a/types/path-exists/v1/tslint.json b/types/path-exists/v1/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/path-exists/v1/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/positive-zero/index.d.ts b/types/positive-zero/index.d.ts deleted file mode 100644 index 7396c68302..0000000000 --- a/types/positive-zero/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for positive-zero 2.0 -// Project: https://github.com/sindresorhus/positive-zero#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = positiveZero; - -declare function positiveZero(input: number): boolean; diff --git a/types/positive-zero/positive-zero-tests.ts b/types/positive-zero/positive-zero-tests.ts deleted file mode 100644 index 03d689a5d3..0000000000 --- a/types/positive-zero/positive-zero-tests.ts +++ /dev/null @@ -1,3 +0,0 @@ -import positiveZero = require('positive-zero'); - -positiveZero(0); // $ExpectType boolean diff --git a/types/positive-zero/tsconfig.json b/types/positive-zero/tsconfig.json deleted file mode 100644 index b6f4f58dbc..0000000000 --- a/types/positive-zero/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "positive-zero-tests.ts" - ] -} diff --git a/types/positive-zero/tslint.json b/types/positive-zero/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/positive-zero/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/pretty-bytes/index.d.ts b/types/pretty-bytes/index.d.ts deleted file mode 100644 index 5259fcb92a..0000000000 --- a/types/pretty-bytes/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Type definitions for pretty-bytes 5.1 -// Project: https://github.com/sindresorhus/pretty-bytes -// Definitions by: York Yao -// Daniela Yassuda -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare function PrettyBytes(number: number, options?: PrettyBytes.PrettyBytesOptions): string; -export = PrettyBytes; -declare namespace PrettyBytes { - interface PrettyBytesOptions { - signed?: boolean; - locale?: boolean | string; - } -} diff --git a/types/pretty-bytes/pretty-bytes-tests.ts b/types/pretty-bytes/pretty-bytes-tests.ts deleted file mode 100644 index 7aa89483bc..0000000000 --- a/types/pretty-bytes/pretty-bytes-tests.ts +++ /dev/null @@ -1,18 +0,0 @@ -import * as prettyBytes from 'pretty-bytes'; - -prettyBytes(1337); -// => '1.34 kB' - -prettyBytes(100); -// => '100 B' - -// Display file size differences -prettyBytes(42, { signed: true }); -// => '+42 B' - -// Localized output using German locale -prettyBytes(1337, { locale: 'de' }); -// => '1,34 kB' - -// Localized output using system/browser locale -prettyBytes(1337, { locale: true }); diff --git a/types/pretty-bytes/tsconfig.json b/types/pretty-bytes/tsconfig.json deleted file mode 100644 index 44e6385192..0000000000 --- a/types/pretty-bytes/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "pretty-bytes-tests.ts" - ] -} diff --git a/types/pretty-bytes/tslint.json b/types/pretty-bytes/tslint.json deleted file mode 100644 index f93cf8562a..0000000000 --- a/types/pretty-bytes/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "dtslint/dt.json" -} diff --git a/types/pretty-bytes/v4/index.d.ts b/types/pretty-bytes/v4/index.d.ts deleted file mode 100644 index 7cd856b4f5..0000000000 --- a/types/pretty-bytes/v4/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for pretty-bytes 4.0 -// Project: https://github.com/sindresorhus/pretty-bytes -// Definitions by: York Yao -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare function prettyBytes(bytes: number): string; -export = prettyBytes; -declare namespace prettyBytes { } diff --git a/types/pretty-bytes/v4/pretty-bytes-tests.ts b/types/pretty-bytes/v4/pretty-bytes-tests.ts deleted file mode 100644 index 71745d9a1b..0000000000 --- a/types/pretty-bytes/v4/pretty-bytes-tests.ts +++ /dev/null @@ -1,7 +0,0 @@ -import prettyBytes = require('pretty-bytes'); - -prettyBytes(1337); -// => '1.34 kB' - -prettyBytes(100); -// => '100 B' diff --git a/types/pretty-bytes/v4/tsconfig.json b/types/pretty-bytes/v4/tsconfig.json deleted file mode 100644 index e23e4370ac..0000000000 --- a/types/pretty-bytes/v4/tsconfig.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../../", - "typeRoots": [ - "../../" - ], - "types": [], - "paths": { - "pretty-bytes": [ "pretty-bytes/v4" ] - }, - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "pretty-bytes-tests.ts" - ] -} diff --git a/types/pretty-bytes/v4/tslint.json b/types/pretty-bytes/v4/tslint.json deleted file mode 100644 index f93cf8562a..0000000000 --- a/types/pretty-bytes/v4/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "dtslint/dt.json" -} diff --git a/types/pretty-ms/index.d.ts b/types/pretty-ms/index.d.ts deleted file mode 100644 index ca9bf663e2..0000000000 --- a/types/pretty-ms/index.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -// Type definitions for pretty-ms 4.0 -// Project: https://github.com/sindresorhus/pretty-ms#readme -// Definitions by: BendingBender -// ocboogie -// silh -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = prettyMs; - -declare function prettyMs(input: number, options?: prettyMs.PrettyMsOptions): string; - -declare namespace prettyMs { - interface PrettyMsOptions { - secDecimalDigits?: number; - msDecimalDigits?: number; - keepDecimalsOnWholeSeconds?: boolean; - compact?: boolean; - unitCount?: number; - verbose?: boolean; - separateMs?: boolean; - formatSubMs?: boolean; - } -} diff --git a/types/pretty-ms/pretty-ms-tests.ts b/types/pretty-ms/pretty-ms-tests.ts deleted file mode 100644 index bb5e8a69ec..0000000000 --- a/types/pretty-ms/pretty-ms-tests.ts +++ /dev/null @@ -1,13 +0,0 @@ -import prettyMs = require('pretty-ms'); - -let str: string; -str = prettyMs(133); -str = prettyMs(1337, {compact: true}); -str = prettyMs(1335669000, {verbose: true}); -str = prettyMs(1335669000, {keepDecimalsOnWholeSeconds: true}); -str = prettyMs(1335669000, {secDecimalDigits: 1}); -str = prettyMs(1335669000, {msDecimalDigits: 2}); -str = prettyMs(1335669000, {unitCount: 2}); -str = prettyMs(1335669000, {separateMs: true}); -str = prettyMs(1335669000, {formatSubMs: true}); -str = prettyMs(new Date(2014, 0, 1, 10, 40).getTime() - new Date(2014, 0, 1, 10, 5).getTime()); diff --git a/types/pretty-ms/tsconfig.json b/types/pretty-ms/tsconfig.json deleted file mode 100644 index da88b941c7..0000000000 --- a/types/pretty-ms/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "pretty-ms-tests.ts" - ] -} \ No newline at end of file diff --git a/types/pretty-ms/tslint.json b/types/pretty-ms/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/pretty-ms/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/pretty-ms/v3/index.d.ts b/types/pretty-ms/v3/index.d.ts deleted file mode 100644 index b1e151cd65..0000000000 --- a/types/pretty-ms/v3/index.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Type definitions for pretty-ms 3.2 -// Project: https://github.com/sindresorhus/pretty-ms#readme -// Definitions by: BendingBender -// ocboogie -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = prettyMs; - -declare function prettyMs(input: number, options?: prettyMs.PrettyMsOptions): string; - -declare namespace prettyMs { - interface PrettyMsOptions { - secDecimalDigits?: number; - msDecimalDigits?: number; - keepDecimalsOnWholeSeconds?: boolean; - compact?: boolean; - verbose?: boolean; - } -} diff --git a/types/pretty-ms/v3/pretty-ms-tests.ts b/types/pretty-ms/v3/pretty-ms-tests.ts deleted file mode 100644 index ae5e8120b2..0000000000 --- a/types/pretty-ms/v3/pretty-ms-tests.ts +++ /dev/null @@ -1,10 +0,0 @@ -import prettyMs = require('pretty-ms'); - -let str: string; -str = prettyMs(133); -str = prettyMs(1337, {compact: true}); -str = prettyMs(1335669000, {verbose: true}); -str = prettyMs(1335669000, {keepDecimalsOnWholeSeconds: true}); -str = prettyMs(1335669000, {secDecimalDigits: 1}); -str = prettyMs(1335669000, {msDecimalDigits: 2}); -str = prettyMs(new Date(2014, 0, 1, 10, 40).getTime() - new Date(2014, 0, 1, 10, 5).getTime()); diff --git a/types/pretty-ms/v3/tsconfig.json b/types/pretty-ms/v3/tsconfig.json deleted file mode 100644 index 5d4f2d4c31..0000000000 --- a/types/pretty-ms/v3/tsconfig.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../../", - "typeRoots": [ - "../../" - ], - "paths": { - "pretty-ms": [ - "pretty-ms/v3" - ] - }, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "pretty-ms-tests.ts" - ] -} diff --git a/types/pretty-ms/v3/tslint.json b/types/pretty-ms/v3/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/pretty-ms/v3/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/public-ip/index.d.ts b/types/public-ip/index.d.ts deleted file mode 100644 index 58fb81aa93..0000000000 --- a/types/public-ip/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Type definitions for public-ip 2.4 -// Project: https://github.com/sindresorhus/public-ip#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export function v4(options?: Options): CancelablePromise; -export function v6(options?: Options): CancelablePromise; - -export interface Options { - https?: boolean; - timeout?: number; -} - -export type CancelablePromise = Promise & { - cancel(): void; -}; diff --git a/types/public-ip/public-ip-tests.ts b/types/public-ip/public-ip-tests.ts deleted file mode 100644 index 6e5983bc99..0000000000 --- a/types/public-ip/public-ip-tests.ts +++ /dev/null @@ -1,17 +0,0 @@ -import * as publicIp from 'public-ip'; - -publicIp.v4().then(ip => { - ip; // $ExpectType string -}); -publicIp.v4({ https: false, timeout: 10 }).then(ip => { - ip; // $ExpectType string -}); -publicIp.v4().cancel(); - -publicIp.v6().then(ip => { - ip; // $ExpectType string -}); -publicIp.v6({ https: false, timeout: 10 }).then(ip => { - ip; // $ExpectType string -}); -publicIp.v6().cancel(); diff --git a/types/public-ip/tsconfig.json b/types/public-ip/tsconfig.json deleted file mode 100644 index 272171128a..0000000000 --- a/types/public-ip/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "public-ip-tests.ts" - ] -} \ No newline at end of file diff --git a/types/public-ip/tslint.json b/types/public-ip/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/public-ip/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/pupa/index.d.ts b/types/pupa/index.d.ts deleted file mode 100644 index 557d93ae98..0000000000 --- a/types/pupa/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for pupa 1.0 -// Project: https://github.com/sindresorhus/pupa -// Definitions by: nju33 -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare function pupa(tpl: string, data: any[] | {[key: string]: any}): string; - -export = pupa; diff --git a/types/pupa/pupa-tests.ts b/types/pupa/pupa-tests.ts deleted file mode 100644 index 87b42d87e3..0000000000 --- a/types/pupa/pupa-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import pupa = require('pupa'); - -pupa('{str}ing', {str: 'str'}); -pupa('{0}{1}', ['str', 'ing']); diff --git a/types/pupa/tsconfig.json b/types/pupa/tsconfig.json deleted file mode 100644 index 9f7e0652f6..0000000000 --- a/types/pupa/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "pupa-tests.ts" - ] -} \ No newline at end of file diff --git a/types/pupa/tslint.json b/types/pupa/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/pupa/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/randoma/index.d.ts b/types/randoma/index.d.ts deleted file mode 100644 index f0b79a0656..0000000000 --- a/types/randoma/index.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -// Type definitions for randoma 1.2 -// Project: https://github.com/sindresorhus/randoma#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -import Color = require('color'); - -export = Randoma; - -declare class Randoma { - static seed(): number; - - constructor(options: Randoma.Options); - - integer(): number; - integerInRange(min: number, max: number): number; - float(): number; - floatInRange(min: number, max: number): number; - boolean(): boolean; - arrayItem(array: T[]): T; - date(): Date; - dateInRange(startDate: Date, endDate: Date): Date; - color(saturation?: number): Color; -} - -declare namespace Randoma { - interface Options { - seed: string | number; - } -} diff --git a/types/randoma/randoma-tests.ts b/types/randoma/randoma-tests.ts deleted file mode 100644 index d03544c959..0000000000 --- a/types/randoma/randoma-tests.ts +++ /dev/null @@ -1,27 +0,0 @@ -import Randoma = require('randoma'); - -const random = new Randoma({ seed: 10 }); -new Randoma({ seed: '🦄' }); -new Randoma({ seed: Randoma.seed() }); - -// $ExpectType number -random.integer(); -// $ExpectType number -random.integerInRange(0, 1); -// $ExpectType number -random.float(); -// $ExpectType number -random.floatInRange(0, 1); -// $ExpectType boolean -random.boolean(); -// $ExpectType string -random.arrayItem(['🦄']); -// $ExpectType Date -random.date(); -// $ExpectType Date -random.dateInRange(new Date(), new Date()); - -random - .color(0.5) - .hex() - .toString(); diff --git a/types/randoma/tsconfig.json b/types/randoma/tsconfig.json deleted file mode 100644 index 21813b327f..0000000000 --- a/types/randoma/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "randoma-tests.ts" - ] -} diff --git a/types/randoma/tslint.json b/types/randoma/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/randoma/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/read-pkg-up/index.d.ts b/types/read-pkg-up/index.d.ts deleted file mode 100644 index 9a7e689577..0000000000 --- a/types/read-pkg-up/index.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -// Type definitions for read-pkg-up 3.0 -// Project: https://github.com/sindresorhus/read-pkg-up -// Definitions by: Louis Orleans -// Jeff Dickey -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -import normalize = require('normalize-package-data'); - -declare namespace ReadPkgUp { - function sync(options: Options & {normalize: false}): {path: string, pkg: {[k: string]: any}}; - function sync(options?: Options): {path: string, pkg: Package}; - - interface Options { - /** - * Directory to start looking for a package.json file. - * - * @default 'process.cwd()' - */ - cwd?: string; - /** - * [Normalize](https://github.com/npm/normalize-package-data#what-normalization-currently-entails) the package data. - * - * @default true - */ - normalize?: boolean; - } - - type Package = normalize.Package; -} - -declare function ReadPkgUp(options: ReadPkgUp.Options & {normalize: false}): Promise<{path: string, pkg: {[k: string]: any}}>; -declare function ReadPkgUp(options?: ReadPkgUp.Options): Promise<{path: string, pkg: normalize.Package}>; - -export = ReadPkgUp; diff --git a/types/read-pkg-up/read-pkg-up-tests.ts b/types/read-pkg-up/read-pkg-up-tests.ts deleted file mode 100644 index f8d54daaf6..0000000000 --- a/types/read-pkg-up/read-pkg-up-tests.ts +++ /dev/null @@ -1,8 +0,0 @@ -import ReadPkgUp = require('read-pkg-up'); - -ReadPkgUp().then(pkg => pkg.pkg.name); // $ExpectType Promise -ReadPkgUp({cwd: '.', normalize: true}).then(pkg => pkg.pkg.name); // $ExpectType Promise -ReadPkgUp({cwd: '.', normalize: false}).then(pkg => pkg.pkg['name']); // $ExpectType Promise -ReadPkgUp.sync().pkg.name; // $ExpectType string -ReadPkgUp.sync({cwd: '.', normalize: true}).pkg.name; // $ExpectType string -ReadPkgUp.sync({cwd: '.', normalize: false}).pkg['name']; // $ExpectType any diff --git a/types/read-pkg-up/tsconfig.json b/types/read-pkg-up/tsconfig.json deleted file mode 100644 index a9c2341011..0000000000 --- a/types/read-pkg-up/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "read-pkg-up-tests.ts" - ] -} \ No newline at end of file diff --git a/types/read-pkg-up/tslint.json b/types/read-pkg-up/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/read-pkg-up/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/read-pkg/index.d.ts b/types/read-pkg/index.d.ts deleted file mode 100644 index ba10fee4b9..0000000000 --- a/types/read-pkg/index.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -// Type definitions for read-pkg 4.0 -// Project: https://github.com/sindresorhus/read-pkg -// Definitions by: Jeff Dickey , Richard Smith -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -import normalize = require('normalize-package-data'); - -declare namespace ReadPkg { - function sync(options: Options & {normalize: false}): {[k: string]: any}; - function sync(options?: Options): normalize.Package; - - interface Options { - /** - * [Normalize](https://github.com/npm/normalize-package-data#what-normalization-currently-entails) the package data. - * - * @default true - */ - normalize?: boolean; - /** - * Current working directory - * - * @default process.cwd() - */ - cwd?: string; - } - - type Package = normalize.Package; -} - -declare function ReadPkg(options: ReadPkg.Options & {normalize: false}): Promise<{[k: string]: any}>; -declare function ReadPkg(options?: ReadPkg.Options): Promise; - -export = ReadPkg; diff --git a/types/read-pkg/read-pkg-tests.ts b/types/read-pkg/read-pkg-tests.ts deleted file mode 100644 index b39c578862..0000000000 --- a/types/read-pkg/read-pkg-tests.ts +++ /dev/null @@ -1,10 +0,0 @@ -import ReadPkg = require('read-pkg'); - -ReadPkg().then(pkg => pkg.name); // $ExpectType Promise -ReadPkg({normalize: true}).then(pkg => pkg.name); // $ExpectType Promise -ReadPkg({normalize: false}).then(pkg => pkg['name']); // $ExpectType Promise -ReadPkg({cwd: './foo'}).then(pkg => pkg.name); // $ExpectType Promise -ReadPkg.sync().name; // $ExpectType string -ReadPkg.sync({normalize: true}).name; // $ExpectType string -ReadPkg.sync({normalize: false})['name']; // $ExpectType any -ReadPkg.sync({cwd: './foo'}).name; // $ExpectType string diff --git a/types/read-pkg/tsconfig.json b/types/read-pkg/tsconfig.json deleted file mode 100644 index 47ef4e3ddc..0000000000 --- a/types/read-pkg/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictFunctionTypes": true, - "strictNullChecks": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "read-pkg-tests.ts" - ] -} \ No newline at end of file diff --git a/types/read-pkg/tslint.json b/types/read-pkg/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/read-pkg/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/redent/index.d.ts b/types/redent/index.d.ts deleted file mode 100644 index 0f540413e3..0000000000 --- a/types/redent/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Type definitions for redent 2.0 -// Project: https://github.com/sindresorhus/redent#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -export = redent; - -declare function redent(input: string, count?: number, indent?: string): string; diff --git a/types/redent/redent-tests.ts b/types/redent/redent-tests.ts deleted file mode 100644 index b2283882a6..0000000000 --- a/types/redent/redent-tests.ts +++ /dev/null @@ -1,8 +0,0 @@ -import redent = require('redent'); - -// $ExpectType string -redent('\n foo\n bar\n'); -// $ExpectType string -redent('\n foo\n bar\n', 1); -// $ExpectType string -redent('\n foo\n bar\n', 1, ' '); diff --git a/types/redent/tsconfig.json b/types/redent/tsconfig.json deleted file mode 100644 index 5e977c1134..0000000000 --- a/types/redent/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "redent-tests.ts" - ] -} diff --git a/types/redent/tslint.json b/types/redent/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/redent/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/replace-string/index.d.ts b/types/replace-string/index.d.ts deleted file mode 100644 index 7819754746..0000000000 --- a/types/replace-string/index.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -// Type definitions for replace-string 2.0 -// Project: https://github.com/sindresorhus/replace-string#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = replaceString; - -declare function replaceString( - input: string, - needle: string, - replacement: string | replaceString.ReplacementFn, - options?: replaceString.Options -): string; - -declare namespace replaceString { - type ReplacementFn = ( - needle: string, - matchCount: number, - input: string, - matchIndex: number - ) => string; - - interface Options { - fromIndex?: number; - } -} diff --git a/types/replace-string/replace-string-tests.ts b/types/replace-string/replace-string-tests.ts deleted file mode 100644 index 385ae1f023..0000000000 --- a/types/replace-string/replace-string-tests.ts +++ /dev/null @@ -1,21 +0,0 @@ -import replaceString = require('replace-string'); - -const input = 'My friend has a 🐑. I want a 🐑 too!'; - -// $ExpectType string -replaceString(input, '🐑', '🦄'); -// $ExpectType string -replaceString(input, '🐑', (needle, matchCount, input, matchIndex) => { - // $ExpectType string - needle; - // $ExpectType number - matchCount; - // $ExpectType string - input; - // $ExpectType number - matchIndex; - - return '🦄'; -}); -// $ExpectType string -replaceString(input, '🐑', '🦄', { fromIndex: 1 }); diff --git a/types/replace-string/tsconfig.json b/types/replace-string/tsconfig.json deleted file mode 100644 index ef0dcb7937..0000000000 --- a/types/replace-string/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "replace-string-tests.ts" - ] -} diff --git a/types/replace-string/tslint.json b/types/replace-string/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/replace-string/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/req-cwd/index.d.ts b/types/req-cwd/index.d.ts deleted file mode 100644 index 56ca4f0786..0000000000 --- a/types/req-cwd/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Type definitions for req-cwd 2.0 -// Project: https://github.com/sindresorhus/req-cwd -// Definitions by: Arturas Molcanovas -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -/** Like require(), throws when the module can't be found. */ -declare function reqCwd(moduleId: string): any; - -declare namespace reqCwd { - /** Returns null instead of throwing when the module can't be found. */ - function silent(moduleId: string): any; -} - -export = reqCwd; diff --git a/types/req-cwd/req-cwd-tests.ts b/types/req-cwd/req-cwd-tests.ts deleted file mode 100644 index df95f8161f..0000000000 --- a/types/req-cwd/req-cwd-tests.ts +++ /dev/null @@ -1,9 +0,0 @@ -import * as reqCwd from 'req-cwd'; - -const r1: string = reqCwd('./foo'); -const r2: number = reqCwd('./foo'); -const r3: {foo: string} = reqCwd('./foo'); - -const s1: string | null = reqCwd.silent('./foo'); -const s2: number | null = reqCwd.silent('./foo'); -const s3: {foo: string} | null = reqCwd.silent('./foo'); diff --git a/types/req-cwd/tsconfig.json b/types/req-cwd/tsconfig.json deleted file mode 100644 index 648ca4cf75..0000000000 --- a/types/req-cwd/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "req-cwd-tests.ts" - ] -} diff --git a/types/req-cwd/tslint.json b/types/req-cwd/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/req-cwd/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/resolve-cwd/index.d.ts b/types/resolve-cwd/index.d.ts deleted file mode 100644 index 65ffcb04f4..0000000000 --- a/types/resolve-cwd/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -// Type definitions for resolve-cwd 2.0 -// Project: https://github.com/sindresorhus/resolve-cwd#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = resolveCwd; - -declare function resolveCwd(moduleId: string): string; - -declare namespace resolveCwd { - function silent(moduleId: string): string | null; -} diff --git a/types/resolve-cwd/resolve-cwd-tests.ts b/types/resolve-cwd/resolve-cwd-tests.ts deleted file mode 100644 index bfd5db4ac2..0000000000 --- a/types/resolve-cwd/resolve-cwd-tests.ts +++ /dev/null @@ -1,7 +0,0 @@ -import resolveCwd = require('resolve-cwd'); - -// $ExpectType string -resolveCwd('./foo'); - -// $ExpectType string | null -resolveCwd.silent('./foo'); diff --git a/types/resolve-cwd/tsconfig.json b/types/resolve-cwd/tsconfig.json deleted file mode 100644 index 027baa2348..0000000000 --- a/types/resolve-cwd/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "resolve-cwd-tests.ts" - ] -} diff --git a/types/resolve-cwd/tslint.json b/types/resolve-cwd/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/resolve-cwd/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/restore-cursor/index.d.ts b/types/restore-cursor/index.d.ts deleted file mode 100644 index 5b30c48e9a..0000000000 --- a/types/restore-cursor/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for restore-cursor 2.0 -// Project: https://github.com/sindresorhus/restore-cursor#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = restoreCursor; - -declare function restoreCursor(): void; diff --git a/types/restore-cursor/restore-cursor-tests.ts b/types/restore-cursor/restore-cursor-tests.ts deleted file mode 100644 index c902968e84..0000000000 --- a/types/restore-cursor/restore-cursor-tests.ts +++ /dev/null @@ -1,3 +0,0 @@ -import restoreCursor = require('restore-cursor'); - -restoreCursor(); diff --git a/types/restore-cursor/tsconfig.json b/types/restore-cursor/tsconfig.json deleted file mode 100644 index d9870e4ab9..0000000000 --- a/types/restore-cursor/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "restore-cursor-tests.ts" - ] -} diff --git a/types/restore-cursor/tslint.json b/types/restore-cursor/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/restore-cursor/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/rev-hash/index.d.ts b/types/rev-hash/index.d.ts deleted file mode 100644 index 5147c20891..0000000000 --- a/types/rev-hash/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Type definitions for rev-hash 2.0 -// Project: https://github.com/sindresorhus/rev-hash -// Definitions by: Ika -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - -/** - * Create a hash for file revving - * @param input Data to create a hash from. - */ -declare function revHash(input: Buffer | string): string; - -export = revHash; diff --git a/types/rev-hash/rev-hash-tests.ts b/types/rev-hash/rev-hash-tests.ts deleted file mode 100644 index 82d38f535f..0000000000 --- a/types/rev-hash/rev-hash-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as fs from 'fs'; -import revHash = require('rev-hash'); - -revHash(fs.readFileSync('unicorn.png')); - -revHash('Lorem ipsum dolor sit amet'); diff --git a/types/rev-hash/tsconfig.json b/types/rev-hash/tsconfig.json deleted file mode 100644 index 1c473c7a2c..0000000000 --- a/types/rev-hash/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "rev-hash-tests.ts" - ] -} \ No newline at end of file diff --git a/types/rev-hash/tslint.json b/types/rev-hash/tslint.json deleted file mode 100644 index f93cf8562a..0000000000 --- a/types/rev-hash/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "dtslint/dt.json" -} diff --git a/types/rgb-hex/index.d.ts b/types/rgb-hex/index.d.ts deleted file mode 100644 index 44a54bad35..0000000000 --- a/types/rgb-hex/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Type definitions for rgb-hex 2.1 -// Project: https://github.com/sindresorhus/rgb-hex#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = rgbHex; - -declare function rgbHex(rgba: string): string; -declare function rgbHex(red: number, green: number, blue: number, alpha?: string | number): string; diff --git a/types/rgb-hex/rgb-hex-tests.ts b/types/rgb-hex/rgb-hex-tests.ts deleted file mode 100644 index b2c950dd1b..0000000000 --- a/types/rgb-hex/rgb-hex-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import rgbHex = require('rgb-hex'); - -rgbHex('rgb(40, 42, 54)'); // $ExpectType string -rgbHex(65, 131, 196); // $ExpectType string -rgbHex(65, 131, 196, 0.2); // $ExpectType string -rgbHex(40, 42, 54, '75%'); // $ExpectType string diff --git a/types/rgb-hex/tsconfig.json b/types/rgb-hex/tsconfig.json deleted file mode 100644 index cb4498db23..0000000000 --- a/types/rgb-hex/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "rgb-hex-tests.ts" - ] -} diff --git a/types/rgb-hex/tslint.json b/types/rgb-hex/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/rgb-hex/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/round-to/index.d.ts b/types/round-to/index.d.ts deleted file mode 100644 index 73622c5012..0000000000 --- a/types/round-to/index.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -// Type definitions for round-to 3.0 -// Project: https://github.com/sindresorhus/round-to#readme -// Definitions by: Sean Marvi Oliver Genabe -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare namespace roundTo { - /** - * Round the decimals with `Math.ceil`. - * @param input Number to adjust. - * @param precision (Integer) number of decimal places. - */ - function up(input: number, precision: number): number; - /** - * Round the decimals with `Math.floor`. - * @param input Number to adjust. - * @param precision (Integer) number of decimal places. - */ - function down(input: number, precision: number): number; -} - -/** - * Round the decimals with `Math.round`. - * @param input Number to adjust. - * @param precision (integer) Number of decimal places. - */ -declare function roundTo(input: number, precision: number): number; - -export = roundTo; diff --git a/types/round-to/round-to-tests.ts b/types/round-to/round-to-tests.ts deleted file mode 100644 index 60d4c21538..0000000000 --- a/types/round-to/round-to-tests.ts +++ /dev/null @@ -1,10 +0,0 @@ -import roundTo = require('round-to'); - -// $ExpectType number -roundTo(1.234, 2); - -// $ExpectType number -roundTo.up(1.234, 2); - -// $ExpectType number -roundTo.down(1.234, 2); diff --git a/types/round-to/tsconfig.json b/types/round-to/tsconfig.json deleted file mode 100644 index 633ed48869..0000000000 --- a/types/round-to/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true, - "strictFunctionTypes": true - }, - "files": [ - "index.d.ts", - "round-to-tests.ts" - ] -} diff --git a/types/round-to/tslint.json b/types/round-to/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/round-to/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/semver-diff/index.d.ts b/types/semver-diff/index.d.ts deleted file mode 100644 index e5a1369439..0000000000 --- a/types/semver-diff/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -// Type definitions for semver-diff 2.1 -// Project: https://github.com/sindresorhus/semver-diff -// Definitions by: Chris Barr -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/semver-diff - -declare namespace SemverDiff { - type SemverDiffReturn = 'major' | 'minor' | 'patch' | 'prerelease' | 'build' | null; -} - -declare function SemverDiff(versionA: string, versionB: string): SemverDiff.SemverDiffReturn; - -export = SemverDiff; diff --git a/types/semver-diff/semver-diff-tests.ts b/types/semver-diff/semver-diff-tests.ts deleted file mode 100644 index e3ad74c462..0000000000 --- a/types/semver-diff/semver-diff-tests.ts +++ /dev/null @@ -1,15 +0,0 @@ -import semverDiff = require('semver-diff'); - -semverDiff('1.1.1', '1.1.2'); // => 'patch' - -semverDiff('0.0.1', '1.0.0'); // => 'major' - -semverDiff('0.0.1', '0.1.0'); // => 'minor' - -semverDiff('0.0.1-foo', '0.0.1-foo.bar'); // => 'prerelease' - -semverDiff('0.1.0', '0.1.0+foo'); // => 'build' - -semverDiff('0.0.1', '0.0.1'); // => null - -semverDiff('0.0.2', '0.0.1'); // => null diff --git a/types/semver-diff/tsconfig.json b/types/semver-diff/tsconfig.json deleted file mode 100644 index 5eadf2b0bc..0000000000 --- a/types/semver-diff/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "semver-diff-tests.ts" - ] -} \ No newline at end of file diff --git a/types/semver-diff/tslint.json b/types/semver-diff/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/semver-diff/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/semver-regex/index.d.ts b/types/semver-regex/index.d.ts deleted file mode 100644 index 9cadd84791..0000000000 --- a/types/semver-regex/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for semver-regex 2.0 -// Project: https://github.com/sindresorhus/semver-regex#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = semverRegex; - -declare function semverRegex(): RegExp; diff --git a/types/semver-regex/semver-regex-tests.ts b/types/semver-regex/semver-regex-tests.ts deleted file mode 100644 index 3699d0b801..0000000000 --- a/types/semver-regex/semver-regex-tests.ts +++ /dev/null @@ -1,3 +0,0 @@ -import semverRegex = require('semver-regex'); - -semverRegex(); // $ExpectType RegExp diff --git a/types/semver-regex/tsconfig.json b/types/semver-regex/tsconfig.json deleted file mode 100644 index 372170a05a..0000000000 --- a/types/semver-regex/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "semver-regex-tests.ts" - ] -} diff --git a/types/semver-regex/tslint.json b/types/semver-regex/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/semver-regex/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/semver-truncate/index.d.ts b/types/semver-truncate/index.d.ts deleted file mode 100644 index bc00aa959f..0000000000 --- a/types/semver-truncate/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for semver-truncate 1.1 -// Project: https://github.com/sindresorhus/semver-truncate#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = semverTruncate; - -declare function semverTruncate(version: string, type: 'patch' | 'minor' | 'major'): string; diff --git a/types/semver-truncate/semver-truncate-tests.ts b/types/semver-truncate/semver-truncate-tests.ts deleted file mode 100644 index 2f32560ca3..0000000000 --- a/types/semver-truncate/semver-truncate-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -import semverTruncate = require('semver-truncate'); - -semverTruncate('1.2.3-foo', 'patch'); // $ExpectType string -semverTruncate('1.2.3', 'minor'); // $ExpectType string -semverTruncate('1.2.3', 'major'); // $ExpectType string diff --git a/types/semver-truncate/tsconfig.json b/types/semver-truncate/tsconfig.json deleted file mode 100644 index 86ba69e880..0000000000 --- a/types/semver-truncate/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "semver-truncate-tests.ts" - ] -} diff --git a/types/semver-truncate/tslint.json b/types/semver-truncate/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/semver-truncate/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/shebang-regex/index.d.ts b/types/shebang-regex/index.d.ts deleted file mode 100644 index 2bba6ec84d..0000000000 --- a/types/shebang-regex/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for shebang-regex 2.0 -// Project: https://github.com/sindresorhus/shebang-regex -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = shebangRegex; - -declare const shebangRegex: RegExp; diff --git a/types/shebang-regex/shebang-regex-tests.ts b/types/shebang-regex/shebang-regex-tests.ts deleted file mode 100644 index eec7893e93..0000000000 --- a/types/shebang-regex/shebang-regex-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -import shebangRegex = require('shebang-regex'); - -const str = '#!/usr/bin/env node\nconsole.log("unicorns");'; - -shebangRegex.test(str); diff --git a/types/shebang-regex/tsconfig.json b/types/shebang-regex/tsconfig.json deleted file mode 100644 index 0842063948..0000000000 --- a/types/shebang-regex/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "shebang-regex-tests.ts" - ] -} diff --git a/types/shebang-regex/tslint.json b/types/shebang-regex/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/shebang-regex/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/sindresorhus__class-names/index.d.ts b/types/sindresorhus__class-names/index.d.ts deleted file mode 100644 index fbb81c48c6..0000000000 --- a/types/sindresorhus__class-names/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for @sindresorhus/class-names 1.0 -// Project: https://github.com/sindresorhus/class-names -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = classNames; - -declare function classNames(...input: any[]): string; diff --git a/types/sindresorhus__class-names/sindresorhus__class-names-tests.ts b/types/sindresorhus__class-names/sindresorhus__class-names-tests.ts deleted file mode 100644 index d8627cb705..0000000000 --- a/types/sindresorhus__class-names/sindresorhus__class-names-tests.ts +++ /dev/null @@ -1,25 +0,0 @@ -import classNames = require('@sindresorhus/class-names'); - -// $ExpectType string -classNames('unicorn', 'rainbow'); -// $ExpectType string -classNames({ awesome: true, foo: false }, 'unicorn', { rainbow: false }); -// $ExpectType string -classNames('unicorn', null, undefined, 0, 1, { foo: null }); - -const buttonType = 'main'; -// $ExpectType string -classNames({ [`button-${buttonType}`]: true }); - -const props = { - type: 'success', - small: true, - block: undefined, -}; - -// $ExpectType string -classNames('button', { - [`button-${props.type}`]: props.type, - 'button-block': props.block, - 'button-small': props.small, -}); diff --git a/types/sindresorhus__class-names/tsconfig.json b/types/sindresorhus__class-names/tsconfig.json deleted file mode 100644 index a0b866ebdf..0000000000 --- a/types/sindresorhus__class-names/tsconfig.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "paths": { - "@sindresorhus/class-names": [ - "sindresorhus__class-names" - ] - }, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "sindresorhus__class-names-tests.ts" - ] -} diff --git a/types/sindresorhus__class-names/tslint.json b/types/sindresorhus__class-names/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/sindresorhus__class-names/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/skin-tone/index.d.ts b/types/skin-tone/index.d.ts deleted file mode 100644 index e167a10cd5..0000000000 --- a/types/skin-tone/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Type definitions for skin-tone 1.0 -// Project: https://github.com/sindresorhus/skin-tone#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = skinTone; - -declare function skinTone(emoji: string, type: 0 | 1 | 2 | 3 | 4 | 5): string; - -declare namespace skinTone { - const NONE: 0; - const WHITE: 1; - const CREAM_WHITE: 2; - const LIGHT_BROWN: 3; - const BROWN: 4; - const DARK_BROWN: 5; -} diff --git a/types/skin-tone/skin-tone-tests.ts b/types/skin-tone/skin-tone-tests.ts deleted file mode 100644 index 95052393a8..0000000000 --- a/types/skin-tone/skin-tone-tests.ts +++ /dev/null @@ -1,10 +0,0 @@ -import skinTone = require('skin-tone'); - -// $ExpectType string -skinTone('👍', 4); -skinTone('👍', skinTone.NONE); -skinTone('👍', skinTone.WHITE); -skinTone('👍', skinTone.CREAM_WHITE); -skinTone('👍', skinTone.LIGHT_BROWN); -skinTone('👍', skinTone.BROWN); -skinTone('👍', skinTone.DARK_BROWN); diff --git a/types/skin-tone/tsconfig.json b/types/skin-tone/tsconfig.json deleted file mode 100644 index c879628e0e..0000000000 --- a/types/skin-tone/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "skin-tone-tests.ts" - ] -} diff --git a/types/skin-tone/tslint.json b/types/skin-tone/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/skin-tone/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/slash/index.d.ts b/types/slash/index.d.ts deleted file mode 100644 index 2b280a2c91..0000000000 --- a/types/slash/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for slash 2.0 -// Project: https://github.com/sindresorhus/slash#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = slash; - -declare function slash(path: string): string; diff --git a/types/slash/slash-tests.ts b/types/slash/slash-tests.ts deleted file mode 100644 index 286d0d1812..0000000000 --- a/types/slash/slash-tests.ts +++ /dev/null @@ -1,3 +0,0 @@ -import slash = require('slash'); - -slash('foo\\bar'); // $ExpectType string diff --git a/types/slash/tsconfig.json b/types/slash/tsconfig.json deleted file mode 100644 index 413f1a693f..0000000000 --- a/types/slash/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "slash-tests.ts" - ] -} diff --git a/types/slash/tslint.json b/types/slash/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/slash/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/sparkly/index.d.ts b/types/sparkly/index.d.ts deleted file mode 100644 index 3e1e5529a6..0000000000 --- a/types/sparkly/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Type definitions for sparkly 3.1 -// Project: https://github.com/sindresorhus/sparkly -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = sparkly; - -declare function sparkly(numbers: Array, options?: sparkly.Options): string; - -declare namespace sparkly { - interface Options { - min?: number; - max?: number; - style?: 'fire'; - } -} diff --git a/types/sparkly/sparkly-tests.ts b/types/sparkly/sparkly-tests.ts deleted file mode 100644 index cd5fa262e0..0000000000 --- a/types/sparkly/sparkly-tests.ts +++ /dev/null @@ -1,7 +0,0 @@ -import sparkly = require('sparkly'); - -let str: string; -str = sparkly([0, 3, 5, 8, 4, 3, 4, 10]); -str = sparkly([0, 3, 5, '', 4, 3, 4, 10]); -str = sparkly([1, 2, 3, 4, 5], {min: 0, max: 10}); -str = sparkly([1, 2, 3, 4, 5, 6, 7, 8], {style: 'fire'}); diff --git a/types/sparkly/tsconfig.json b/types/sparkly/tsconfig.json deleted file mode 100644 index 3408085ad7..0000000000 --- a/types/sparkly/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "sparkly-tests.ts" - ] -} \ No newline at end of file diff --git a/types/sparkly/tslint.json b/types/sparkly/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/sparkly/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/srcset/index.d.ts b/types/srcset/index.d.ts deleted file mode 100644 index afbeecd918..0000000000 --- a/types/srcset/index.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Type definitions for srcset 1.0 -// Project: https://github.com/sindresorhus/srcset#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/** - * Parse the HTML `` - * [srcset](http://mobile.smashingmagazine.com/2013/08/21/webkit-implements-srcset-and-why-its-a-good-thing/) attribute. - * - * @param srcset An srcset string. - */ -export function parse(srcset: string): SrcSetDefinition[]; - -/** - * Stringify a list of `SrcSetDefinition`s. - * - * @param srcSetDefinitions An array of `SrcSetDefinition` object. - * @returns A srcset string. - */ -export function stringify(srcSetDefinitions: SrcSetDefinition[]): string; - -export interface SrcSetDefinition { - url: string; - width?: number; - height?: number; - density?: number; -} diff --git a/types/srcset/srcset-tests.ts b/types/srcset/srcset-tests.ts deleted file mode 100644 index b7091e1bd8..0000000000 --- a/types/srcset/srcset-tests.ts +++ /dev/null @@ -1,8 +0,0 @@ -import srcset = require('srcset'); - -const parsed = srcset.parse('banner-HD.jpg 2x, banner-phone.jpg 100w'); -parsed; // $ExpectType SrcSetDefinition[] - -parsed.push({ url: 'banner-phone-HD.jpg', width: 100, density: 2 }); - -srcset.stringify(parsed); // $ExpectType string diff --git a/types/srcset/tsconfig.json b/types/srcset/tsconfig.json deleted file mode 100644 index 42d580ed7e..0000000000 --- a/types/srcset/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "srcset-tests.ts" - ] -} diff --git a/types/srcset/tslint.json b/types/srcset/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/srcset/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/stringify-attributes/index.d.ts b/types/stringify-attributes/index.d.ts deleted file mode 100644 index 0d4ef1cecb..0000000000 --- a/types/stringify-attributes/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Type definitions for stringify-attributes 1.0 -// Project: https://github.com/sindresorhus/stringify-attributes#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = stringifyAttributes; - -declare function stringifyAttributes(attributes: stringifyAttributes.Attributes): string; - -declare namespace stringifyAttributes { - interface Attributes { - [attrName: string]: string | number | boolean | Array; - } -} diff --git a/types/stringify-attributes/stringify-attributes-tests.ts b/types/stringify-attributes/stringify-attributes-tests.ts deleted file mode 100644 index 3b7ff11aab..0000000000 --- a/types/stringify-attributes/stringify-attributes-tests.ts +++ /dev/null @@ -1,18 +0,0 @@ -import stringifyAttributes = require('stringify-attributes'); - -// $ExpectType string -stringifyAttributes({ - unicorn: '🦄', -}); -// $ExpectType string -stringifyAttributes({ - rainbow: true, -}); -// $ExpectType string -stringifyAttributes({ - number: 1, -}); -// $ExpectType string -stringifyAttributes({ - multiple: ['a', 1], -}); diff --git a/types/stringify-attributes/tsconfig.json b/types/stringify-attributes/tsconfig.json deleted file mode 100644 index 40f5d75976..0000000000 --- a/types/stringify-attributes/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "stringify-attributes-tests.ts" - ] -} diff --git a/types/stringify-attributes/tslint.json b/types/stringify-attributes/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/stringify-attributes/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/strip-json-comments/index.d.ts b/types/strip-json-comments/index.d.ts deleted file mode 100644 index 54213bda4b..0000000000 --- a/types/strip-json-comments/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -// Type definitions for strip-json-comments -// Project: https://github.com/sindresorhus/strip-json-comments -// Definitions by: Dylan R. E. Moonfire -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - - -interface StripJsonOptions { - whitespace?: boolean; -} - -declare function stripJsonComments(input: string, opts?: StripJsonOptions): string; -declare namespace stripJsonComments { } -export = stripJsonComments; diff --git a/types/strip-json-comments/strip-json-comments-tests.ts b/types/strip-json-comments/strip-json-comments-tests.ts deleted file mode 100644 index 188248a285..0000000000 --- a/types/strip-json-comments/strip-json-comments-tests.ts +++ /dev/null @@ -1,11 +0,0 @@ -import stripJsonComments = require("strip-json-comments"); - -const json = '{/*rainbows*/"unicorn":"cake"}'; - -JSON.parse(stripJsonComments(json)); -//=> {unicorn: 'cake'} - -stripJsonComments(json, {}); -stripJsonComments(json, { - whitespace: true -}); diff --git a/types/strip-json-comments/tsconfig.json b/types/strip-json-comments/tsconfig.json deleted file mode 100644 index 02b42695a4..0000000000 --- a/types/strip-json-comments/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "strip-json-comments-tests.ts" - ] -} \ No newline at end of file diff --git a/types/strip-json-comments/tslint.json b/types/strip-json-comments/tslint.json deleted file mode 100644 index 3d59f55fda..0000000000 --- a/types/strip-json-comments/tslint.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, - "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, - "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false - } -} diff --git a/types/temp-dir/index.d.ts b/types/temp-dir/index.d.ts deleted file mode 100644 index 17d54fc71c..0000000000 --- a/types/temp-dir/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for temp-dir 1.0 -// Project: https://github.com/sindresorhus/temp-dir#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = tempDir; - -declare const tempDir: string; diff --git a/types/temp-dir/temp-dir-tests.ts b/types/temp-dir/temp-dir-tests.ts deleted file mode 100644 index ac62106e9c..0000000000 --- a/types/temp-dir/temp-dir-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import tempDir = require('temp-dir'); - -// $ExpectType string -tempDir; diff --git a/types/temp-dir/tsconfig.json b/types/temp-dir/tsconfig.json deleted file mode 100644 index 850b81d95a..0000000000 --- a/types/temp-dir/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "temp-dir-tests.ts" - ] -} diff --git a/types/temp-dir/tslint.json b/types/temp-dir/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/temp-dir/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/temp-write/index.d.ts b/types/temp-write/index.d.ts deleted file mode 100644 index b7cebd443a..0000000000 --- a/types/temp-write/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -// Type definitions for temp-write 3.3 -// Project: https://github.com/sindresorhus/temp-write#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// -export = tempWrite; - -declare function tempWrite(input: string | Buffer | NodeJS.ReadableStream, filepath?: string): Promise; - -declare namespace tempWrite { - function sync(input: string | Buffer, filepath?: string): string; -} diff --git a/types/temp-write/temp-write-tests.ts b/types/temp-write/temp-write-tests.ts deleted file mode 100644 index 37035e08f0..0000000000 --- a/types/temp-write/temp-write-tests.ts +++ /dev/null @@ -1,12 +0,0 @@ -import tempWrite = require('temp-write'); - -tempWrite('unicorn').then(path => { - path; // $ExpectType string -}); -tempWrite('unicorn', 'pony.png'); // $ExpectType Promise -tempWrite(process.stdin, 'pony.png'); -tempWrite(new Buffer('pony'), 'pony.png'); - -tempWrite.sync('unicorn'); // $ExpectType string -tempWrite.sync(new Buffer('unicorn')); -tempWrite.sync('unicorn', 'pony.png'); diff --git a/types/temp-write/tsconfig.json b/types/temp-write/tsconfig.json deleted file mode 100644 index e841595edb..0000000000 --- a/types/temp-write/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "temp-write-tests.ts" - ] -} \ No newline at end of file diff --git a/types/temp-write/tslint.json b/types/temp-write/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/temp-write/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/tempfile/index.d.ts b/types/tempfile/index.d.ts deleted file mode 100644 index 5d59f5d7d8..0000000000 --- a/types/tempfile/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Type definitions for tempfile 2.0 -// Project: https://github.com/sindresorhus/tempfile -// Definitions by: Sam Verschueren -// BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = tempfile; - -declare function tempfile(extension?: string): string; -declare namespace tempfile {} diff --git a/types/tempfile/tempfile-tests.ts b/types/tempfile/tempfile-tests.ts deleted file mode 100644 index b614a4a283..0000000000 --- a/types/tempfile/tempfile-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import tempfile = require('tempfile'); - -tempfile(); // $ExpectType string -tempfile('.png'); diff --git a/types/tempfile/tsconfig.json b/types/tempfile/tsconfig.json deleted file mode 100644 index 2f31cafb72..0000000000 --- a/types/tempfile/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "tempfile-tests.ts" - ] -} \ No newline at end of file diff --git a/types/tempfile/tslint.json b/types/tempfile/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/tempfile/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/term-size/index.d.ts b/types/term-size/index.d.ts deleted file mode 100644 index bf1eb9a2c5..0000000000 --- a/types/term-size/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Type definitions for term-size 1.2 -// Project: https://github.com/sindresorhus/term-size#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = termSize; - -declare function termSize(): termSize.TermSize; - -declare namespace termSize { - interface TermSize { - columns: number; - rows: number; - } -} diff --git a/types/term-size/term-size-tests.ts b/types/term-size/term-size-tests.ts deleted file mode 100644 index ed67a7e7fe..0000000000 --- a/types/term-size/term-size-tests.ts +++ /dev/null @@ -1,7 +0,0 @@ -import termSize = require('term-size'); - -const size: termSize.TermSize = termSize(); -// $ExpectType number -size.columns; -// $ExpectType number -size.rows; diff --git a/types/term-size/tsconfig.json b/types/term-size/tsconfig.json deleted file mode 100644 index 7e473f47a9..0000000000 --- a/types/term-size/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "term-size-tests.ts" - ] -} diff --git a/types/term-size/tslint.json b/types/term-size/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/term-size/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/terminal-image/index.d.ts b/types/terminal-image/index.d.ts deleted file mode 100644 index 7b52d962d2..0000000000 --- a/types/terminal-image/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Type definitions for terminal-image 0.1 -// Project: https://github.com/sindresorhus/terminal-image#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - -export function buffer(imageBuffer: Buffer): Promise; -export function file(filePath: string): Promise; diff --git a/types/terminal-image/terminal-image-tests.ts b/types/terminal-image/terminal-image-tests.ts deleted file mode 100644 index 89779ca377..0000000000 --- a/types/terminal-image/terminal-image-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import terminalImage = require('terminal-image'); - -// $ExpectType Promise -terminalImage.file('unicorn.jpg'); -// $ExpectType Promise -terminalImage.buffer((null as any) as Buffer); diff --git a/types/terminal-image/tsconfig.json b/types/terminal-image/tsconfig.json deleted file mode 100644 index a5a5b662bd..0000000000 --- a/types/terminal-image/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "terminal-image-tests.ts" - ] -} diff --git a/types/terminal-image/tslint.json b/types/terminal-image/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/terminal-image/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/terminal-link/index.d.ts b/types/terminal-link/index.d.ts deleted file mode 100644 index b7772ab581..0000000000 --- a/types/terminal-link/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Type definitions for terminal-link 1.1 -// Project: https://github.com/sindresorhus/terminal-link#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = terminalLink; - -declare function terminalLink(text: string, url: string, options?: terminalLink.Options): string; - -declare namespace terminalLink { - function isSupported(): boolean; - - interface Options { - fallback?: (text: string, url: string) => string; - } -} diff --git a/types/terminal-link/terminal-link-tests.ts b/types/terminal-link/terminal-link-tests.ts deleted file mode 100644 index 25bf536d0e..0000000000 --- a/types/terminal-link/terminal-link-tests.ts +++ /dev/null @@ -1,16 +0,0 @@ -import terminalLink = require('terminal-link'); - -// $ExpectType string -terminalLink('My Website', 'https://sindresorhus.com'); -terminalLink('My Website', 'https://sindresorhus.com', { - fallback(text, url) { - // $ExpectType string - text; - // $ExpectType string - url; - return text; - }, -}); - -// $ExpectType boolean -terminalLink.isSupported(); diff --git a/types/terminal-link/tsconfig.json b/types/terminal-link/tsconfig.json deleted file mode 100644 index fd40995e6f..0000000000 --- a/types/terminal-link/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "terminal-link-tests.ts" - ] -} diff --git a/types/terminal-link/tslint.json b/types/terminal-link/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/terminal-link/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/tildify/index.d.ts b/types/tildify/index.d.ts deleted file mode 100644 index a0dd100bf9..0000000000 --- a/types/tildify/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for tildify 1.2 -// Project: https://github.com/sindresorhus/tildify#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = tildify; - -declare function tildify(str: string): string; diff --git a/types/tildify/tildify-tests.ts b/types/tildify/tildify-tests.ts deleted file mode 100644 index 109f5f6c6e..0000000000 --- a/types/tildify/tildify-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import tildify = require('tildify'); - -// $ExpectType string -tildify('/Users/sindresorhus/dev'); diff --git a/types/tildify/tsconfig.json b/types/tildify/tsconfig.json deleted file mode 100644 index 4375409ba0..0000000000 --- a/types/tildify/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "tildify-tests.ts" - ] -} diff --git a/types/tildify/tslint.json b/types/tildify/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/tildify/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/ua-string/index.d.ts b/types/ua-string/index.d.ts deleted file mode 100644 index c9928a8709..0000000000 --- a/types/ua-string/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for ua-string 2.0 -// Project: https://github.com/sindresorhus/ua-string#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = uaString; - -declare const uaString: string; diff --git a/types/ua-string/tsconfig.json b/types/ua-string/tsconfig.json deleted file mode 100644 index 8186c1b708..0000000000 --- a/types/ua-string/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "ua-string-tests.ts" - ] -} diff --git a/types/ua-string/tslint.json b/types/ua-string/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/ua-string/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/ua-string/ua-string-tests.ts b/types/ua-string/ua-string-tests.ts deleted file mode 100644 index 3cdbf6b553..0000000000 --- a/types/ua-string/ua-string-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import uaString = require('ua-string'); - -// $ExpectType string -uaString; diff --git a/types/unique-string/index.d.ts b/types/unique-string/index.d.ts deleted file mode 100644 index cedb0dd5b9..0000000000 --- a/types/unique-string/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for unique-string 1.0 -// Project: https://github.com/sindresorhus/unique-string#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = uniqueString; - -declare function uniqueString(): string; diff --git a/types/unique-string/tsconfig.json b/types/unique-string/tsconfig.json deleted file mode 100644 index 03e2e6e75e..0000000000 --- a/types/unique-string/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "unique-string-tests.ts" - ] -} diff --git a/types/unique-string/tslint.json b/types/unique-string/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/unique-string/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/unique-string/unique-string-tests.ts b/types/unique-string/unique-string-tests.ts deleted file mode 100644 index c51176b20c..0000000000 --- a/types/unique-string/unique-string-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import uniqueString = require('unique-string'); - -// $ExpectType string -uniqueString(); diff --git a/types/untildify/index.d.ts b/types/untildify/index.d.ts deleted file mode 100644 index fbe3020cd7..0000000000 --- a/types/untildify/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for untildify 3.0 -// Project: https://github.com/sindresorhus/untildify#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = untildify; - -declare function untildify(name: string): string; diff --git a/types/untildify/tsconfig.json b/types/untildify/tsconfig.json deleted file mode 100644 index 75bfdd7d3e..0000000000 --- a/types/untildify/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "untildify-tests.ts" - ] -} \ No newline at end of file diff --git a/types/untildify/tslint.json b/types/untildify/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/untildify/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/untildify/untildify-tests.ts b/types/untildify/untildify-tests.ts deleted file mode 100644 index b7658d8969..0000000000 --- a/types/untildify/untildify-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import untildify = require('untildify'); - -// $ExpectType string -untildify('~/dev'); diff --git a/types/word-list-json/index.d.ts b/types/word-list-json/index.d.ts deleted file mode 100644 index ecd6f7214e..0000000000 --- a/types/word-list-json/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Type definitions for word-list-json 0.2 -// Project: https://github.com/sindresorhus/word-list -// Definitions by: Dovid Meiseles -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.4 - -interface Lengths { - [key: string]: number; -} - -type wordsArray = string[]; -interface Words extends wordsArray { - lengths: Lengths; -} - -declare const words: Words; - -export = words; diff --git a/types/word-list-json/tsconfig.json b/types/word-list-json/tsconfig.json deleted file mode 100644 index 3bbe8a5d08..0000000000 --- a/types/word-list-json/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "word-list-json-tests.ts" - ] -} \ No newline at end of file diff --git a/types/word-list-json/tslint.json b/types/word-list-json/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/word-list-json/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/word-list-json/word-list-json-tests.ts b/types/word-list-json/word-list-json-tests.ts deleted file mode 100644 index 0d6ed80d58..0000000000 --- a/types/word-list-json/word-list-json-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -import wordListJson = require('word-list-json'); - -wordListJson.lengths; // $ExpectType Lengths - -wordListJson; // $ExpectType Words diff --git a/types/write-pkg/index.d.ts b/types/write-pkg/index.d.ts deleted file mode 100644 index 31fa96e346..0000000000 --- a/types/write-pkg/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Type definitions for write-pkg 3.1 -// Project: https://github.com/sindresorhus/write-pkg#readme -// Definitions by: Aleh Zasypkin -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -interface WritePkg { - (path: string, data: { [k: string]: any }): Promise; - (data: { [k: string]: any }): Promise; - sync(path: string, data: { [k: string]: any }): void; - sync(data: { [k: string]: any }): void; -} - -declare const writePkg: WritePkg; - -export = writePkg; diff --git a/types/write-pkg/tsconfig.json b/types/write-pkg/tsconfig.json deleted file mode 100644 index b4ed969838..0000000000 --- a/types/write-pkg/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictFunctionTypes": true, - "strictNullChecks": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "write-pkg-tests.ts" - ] -} diff --git a/types/write-pkg/tslint.json b/types/write-pkg/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/write-pkg/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/write-pkg/write-pkg-tests.ts b/types/write-pkg/write-pkg-tests.ts deleted file mode 100644 index 46e2745cab..0000000000 --- a/types/write-pkg/write-pkg-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import WritePkg = require('write-pkg'); - -WritePkg('package.json', { version: 1 }); // $ExpectType Promise -WritePkg({ version: 1 }); // $ExpectType Promise -WritePkg.sync('package.json', { version: 1 }); // $ExpectType void -WritePkg.sync({ version: 1 }); // $ExpectType void diff --git a/types/xdg-basedir/index.d.ts b/types/xdg-basedir/index.d.ts deleted file mode 100644 index d18bc389f9..0000000000 --- a/types/xdg-basedir/index.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -// Type definitions for xdg-basedir 2.0 -// Project: https://github.com/sindresorhus/xdg-basedir -// Definitions by: Tomek Łaziuk -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export const data: string | null; -export const config: string | null; -export const cache: string | null; -export const runtime: string | null; -export const dataDirs: string[]; -export const configDirs: string[]; diff --git a/types/xdg-basedir/tsconfig.json b/types/xdg-basedir/tsconfig.json deleted file mode 100644 index 67144b1f3f..0000000000 --- a/types/xdg-basedir/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "xdg-basedir-tests.ts" - ] -} \ No newline at end of file diff --git a/types/xdg-basedir/tslint.json b/types/xdg-basedir/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/xdg-basedir/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/xdg-basedir/xdg-basedir-tests.ts b/types/xdg-basedir/xdg-basedir-tests.ts deleted file mode 100644 index 35eaa1551f..0000000000 --- a/types/xdg-basedir/xdg-basedir-tests.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as xdg from 'xdg-basedir'; - -JSON.stringify(xdg, undefined, 2); diff --git a/types/year-days/index.d.ts b/types/year-days/index.d.ts deleted file mode 100644 index e951377bed..0000000000 --- a/types/year-days/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for year-days 2.0 -// Project: https://github.com/sindresorhus/year-days#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = yearDays; - -declare function yearDays(year?: number | Date): number; diff --git a/types/year-days/tsconfig.json b/types/year-days/tsconfig.json deleted file mode 100644 index 094bd81f6d..0000000000 --- a/types/year-days/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "year-days-tests.ts" - ] -} diff --git a/types/year-days/tslint.json b/types/year-days/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/year-days/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/year-days/year-days-tests.ts b/types/year-days/year-days-tests.ts deleted file mode 100644 index e3d67ad831..0000000000 --- a/types/year-days/year-days-tests.ts +++ /dev/null @@ -1,8 +0,0 @@ -import yearDays = require('year-days'); - -// $ExpectType number -yearDays(); -// $ExpectType number -yearDays(2016); -// $ExpectType number -yearDays(new Date());