From 5e7dacf87deb111ecd31249f782ee4cf2aca3112 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Mon, 15 Apr 2019 21:21:20 +0200 Subject: [PATCH] Deprecate types for packages that provide their own types --- notNeededPackages.json | 348 ++++++++++++++++++ types/anybar/anybar-tests.ts | 5 - types/anybar/index.d.ts | 9 - types/anybar/tsconfig.json | 23 -- types/anybar/tslint.json | 3 - types/auto-bind/auto-bind-tests.ts | 65 ---- types/auto-bind/index.d.ts | 25 -- types/auto-bind/tsconfig.json | 23 -- types/auto-bind/tslint.json | 1 - types/beeper/beeper-tests.ts | 7 - types/beeper/index.d.ts | 9 - types/beeper/tsconfig.json | 23 -- types/beeper/tslint.json | 1 - types/bin-version/bin-version-tests.ts | 6 - types/bin-version/index.d.ts | 14 - types/bin-version/tsconfig.json | 23 -- types/bin-version/tslint.json | 1 - .../builtin-modules/builtin-modules-tests.ts | 8 - types/builtin-modules/index.d.ts | 7 - types/builtin-modules/static.d.ts | 2 - types/builtin-modules/tsconfig.json | 24 -- types/builtin-modules/tslint.json | 1 - types/callsites/callsites-tests.ts | 20 - types/callsites/index.d.ts | 27 -- types/callsites/tsconfig.json | 23 -- types/callsites/tslint.json | 1 - types/camelcase-keys/camelcase-keys-tests.ts | 10 - types/camelcase-keys/index.d.ts | 15 - types/camelcase-keys/tsconfig.json | 23 -- types/camelcase-keys/tslint.json | 1 - types/clean-stack/clean-stack-tests.ts | 8 - types/clean-stack/index.d.ts | 14 - types/clean-stack/tsconfig.json | 23 -- types/clean-stack/tslint.json | 1 - types/clear-require/clear-require-tests.ts | 8 - types/clear-require/index.d.ts | 14 - types/clear-require/tsconfig.json | 23 -- types/clear-require/tslint.json | 1 - types/cli-boxes/cli-boxes-tests.ts | 17 - types/cli-boxes/index.d.ts | 23 -- types/cli-boxes/tsconfig.json | 23 -- types/cli-boxes/tslint.json | 1 - types/cli-cursor/cli-cursor-tests.ts | 11 - types/cli-cursor/index.d.ts | 28 -- types/cli-cursor/tsconfig.json | 23 -- types/cli-cursor/tslint.json | 1 - types/clipboardy/clipboardy-tests.ts | 10 - types/clipboardy/index.d.ts | 9 - types/clipboardy/tsconfig.json | 23 -- types/clipboardy/tslint.json | 1 - .../condense-whitespace-tests.ts | 7 - types/condense-whitespace/index.d.ts | 8 - types/condense-whitespace/tsconfig.json | 23 -- types/condense-whitespace/tslint.json | 1 - types/convert-hrtime/convert-hrtime-tests.ts | 9 - types/convert-hrtime/index.d.ts | 16 - types/convert-hrtime/tsconfig.json | 23 -- types/convert-hrtime/tslint.json | 1 - .../create-html-element-tests.ts | 48 --- types/create-html-element/index.d.ts | 40 -- types/create-html-element/package.json | 7 - .../ts3.1/create-html-element-tests.ts | 64 ---- types/create-html-element/ts3.1/index.d.ts | 38 -- types/create-html-element/ts3.1/tsconfig.json | 24 -- types/create-html-element/ts3.1/tslint.json | 1 - types/create-html-element/tsconfig.json | 24 -- types/create-html-element/tslint.json | 1 - types/crypto-hash/crypto-hash-tests.ts | 29 -- types/crypto-hash/index.d.ts | 48 --- types/crypto-hash/tsconfig.json | 23 -- types/crypto-hash/tslint.json | 1 - .../crypto-random-string-tests.ts | 4 - types/crypto-random-string/index.d.ts | 13 - types/crypto-random-string/tsconfig.json | 23 -- types/crypto-random-string/tslint.json | 3 - types/cycled/cycled-tests.ts | 53 --- types/cycled/index.d.ts | 58 --- types/cycled/tsconfig.json | 23 -- types/cycled/tslint.json | 1 - types/dargs/dargs-tests.ts | 29 -- types/dargs/index.d.ts | 20 - types/dargs/tsconfig.json | 23 -- types/dargs/tslint.json | 1 - types/debounce-fn/debounce-fn-tests.ts | 10 - types/debounce-fn/index.d.ts | 34 -- types/debounce-fn/tsconfig.json | 23 -- types/debounce-fn/tslint.json | 1 - .../define-lazy-prop-tests.ts | 10 - types/define-lazy-prop/index.d.ts | 9 - types/define-lazy-prop/tsconfig.json | 23 -- types/define-lazy-prop/tslint.json | 1 - types/detect-newline/detect-newline-tests.ts | 7 - types/detect-newline/index.d.ts | 12 - types/detect-newline/tsconfig.json | 23 -- types/detect-newline/tslint.json | 1 - .../devtools-detect/devtools-detect-tests.ts | 10 - types/devtools-detect/index.d.ts | 16 - types/devtools-detect/tsconfig.json | 24 -- types/devtools-detect/tslint.json | 80 ---- types/dot-prop/dot-prop-tests.ts | 23 -- types/dot-prop/index.d.ts | 17 - types/dot-prop/tsconfig.json | 23 -- types/dot-prop/tslint.json | 1 - types/dot-prop/v2/dot-prop-tests.ts | 10 - types/dot-prop/v2/index.d.ts | 7 - types/dot-prop/v2/tsconfig.json | 28 -- types/dot-prop/v2/tslint.json | 1 - .../electron-config/electron-config-tests.ts | 29 -- types/electron-config/index.d.ts | 70 ---- types/electron-config/tsconfig.json | 23 -- types/electron-config/tslint.json | 7 - types/electron-debug/electron-debug-tests.ts | 8 - types/electron-debug/index.d.ts | 17 - types/electron-debug/tsconfig.json | 23 -- types/electron-debug/tslint.json | 80 ---- .../electron-is-dev/electron-is-dev-tests.ts | 3 - types/electron-is-dev/index.d.ts | 9 - types/electron-is-dev/tsconfig.json | 23 -- types/electron-is-dev/tslint.json | 1 - types/electron-store/electron-store-tests.ts | 58 --- types/electron-store/index.d.ts | 114 ------ types/electron-store/tsconfig.json | 23 -- types/electron-store/tslint.json | 7 - .../electron-unhandled-tests.ts | 5 - types/electron-unhandled/index.d.ts | 15 - types/electron-unhandled/tsconfig.json | 23 -- types/electron-unhandled/tslint.json | 1 - types/electron-util/electron-util-tests.ts | 41 --- types/electron-util/index.d.ts | 41 --- types/electron-util/tsconfig.json | 23 -- types/electron-util/tslint.json | 3 - .../elegant-spinner/elegant-spinner-tests.ts | 8 - types/elegant-spinner/index.d.ts | 12 - types/elegant-spinner/tsconfig.json | 19 - types/elegant-spinner/tslint.json | 3 - types/empty-trash/empty-trash-tests.ts | 5 - types/empty-trash/index.d.ts | 9 - types/empty-trash/tsconfig.json | 23 -- types/empty-trash/tslint.json | 1 - types/file-url/file-url-tests.ts | 13 - types/file-url/index.d.ts | 33 -- types/file-url/tsconfig.json | 23 -- types/file-url/tslint.json | 1 - types/filter-console/filter-console-tests.ts | 8 - types/filter-console/index.d.ts | 44 --- types/filter-console/tsconfig.json | 23 -- types/filter-console/tslint.json | 1 - types/find-versions/find-versions-tests.ts | 4 - types/find-versions/index.d.ts | 8 - types/find-versions/tsconfig.json | 16 - types/find-versions/tslint.json | 1 - types/first-run/first-run-tests.ts | 6 - types/first-run/index.d.ts | 26 -- types/first-run/tsconfig.json | 23 -- types/first-run/tslint.json | 1 - types/get-emails/get-emails-tests.ts | 6 - types/get-emails/index.d.ts | 8 - types/get-emails/tsconfig.json | 23 -- types/get-emails/tslint.json | 1 - types/get-urls/get-urls-tests.ts | 16 - types/get-urls/index.d.ts | 17 - types/get-urls/package.json | 6 - types/get-urls/tsconfig.json | 23 -- types/get-urls/tslint.json | 1 - .../git-remote-origin-url-tests.ts | 4 - types/git-remote-origin-url/index.d.ts | 8 - types/git-remote-origin-url/tsconfig.json | 23 -- types/git-remote-origin-url/tslint.json | 1 - .../github-username/github-username-tests.ts | 4 - types/github-username/index.d.ts | 8 - types/github-username/tsconfig.json | 23 -- types/github-username/tslint.json | 1 - types/gravatar-url/gravatar-url-tests.ts | 12 - types/gravatar-url/index.d.ts | 16 - types/gravatar-url/tsconfig.json | 23 -- types/gravatar-url/tslint.json | 1 - types/gzip-size/gzip-size-tests.ts | 16 - types/gzip-size/index.d.ts | 54 --- types/gzip-size/tsconfig.json | 23 -- types/gzip-size/tslint.json | 3 - types/gzip-size/v3/gzip-size-tests.ts | 7 - types/gzip-size/v3/index.d.ts | 13 - types/gzip-size/v3/tsconfig.json | 28 -- types/gzip-size/v3/tslint.json | 3 - types/has-emoji/has-emoji-tests.ts | 6 - types/has-emoji/index.d.ts | 8 - types/has-emoji/tsconfig.json | 23 -- types/has-emoji/tslint.json | 1 - types/hex-rgb/hex-rgb-tests.ts | 4 - types/hex-rgb/index.d.ts | 24 -- types/hex-rgb/tsconfig.json | 23 -- types/hex-rgb/tslint.json | 1 - types/in-range/in-range-tests.ts | 9 - types/in-range/index.d.ts | 8 - types/in-range/tsconfig.json | 23 -- types/in-range/tslint.json | 1 - types/locate-path/index.d.ts | 18 - types/locate-path/locate-path-tests.ts | 19 - types/locate-path/tsconfig.json | 23 -- types/locate-path/tslint.json | 1 - types/pkg-up/index.d.ts | 12 - types/pkg-up/pkg-up-tests.ts | 6 - types/pkg-up/tsconfig.json | 23 -- types/pkg-up/tslint.json | 1 - types/plur/index.d.ts | 12 - types/plur/plur-tests.ts | 5 - types/plur/tsconfig.json | 16 - types/plur/tslint.json | 1 - types/random-float/index.d.ts | 9 - types/random-float/random-float-tests.ts | 6 - types/random-float/tsconfig.json | 23 -- types/random-float/tslint.json | 1 - types/random-int/index.d.ts | 9 - types/random-int/random-int-tests.ts | 6 - types/random-int/tsconfig.json | 23 -- types/random-int/tslint.json | 1 - types/random-item/index.d.ts | 8 - types/random-item/random-item-tests.ts | 6 - types/random-item/tsconfig.json | 23 -- types/random-item/tslint.json | 1 - types/random-obj-key/index.d.ts | 9 - types/random-obj-key/random-obj-key-tests.ts | 4 - types/random-obj-key/tsconfig.json | 23 -- types/random-obj-key/tslint.json | 1 - types/random-obj-prop/index.d.ts | 8 - .../random-obj-prop/random-obj-prop-tests.ts | 4 - types/random-obj-prop/tsconfig.json | 23 -- types/random-obj-prop/tslint.json | 1 - types/resolve-from/index.d.ts | 13 - types/resolve-from/resolve-from-tests.ts | 6 - types/resolve-from/tsconfig.json | 23 -- types/resolve-from/tslint.json | 3 - types/resolve-from/v2/index.d.ts | 7 - types/resolve-from/v2/resolve-from-tests.ts | 7 - types/resolve-from/v2/tsconfig.json | 28 -- types/resolve-from/v2/tslint.json | 79 ---- types/resolve-global/index.d.ts | 12 - types/resolve-global/resolve-global-tests.ts | 6 - types/resolve-global/tsconfig.json | 23 -- types/resolve-global/tslint.json | 1 - types/unique-random-array/index.d.ts | 8 - types/unique-random-array/tsconfig.json | 23 -- types/unique-random-array/tslint.json | 1 - .../unique-random-array-tests.ts | 6 - types/unique-random/index.d.ts | 9 - types/unique-random/tsconfig.json | 23 -- types/unique-random/tslint.json | 80 ---- types/unique-random/unique-random-tests.ts | 4 - types/write-json-file/index.d.ts | 18 - types/write-json-file/tsconfig.json | 23 -- types/write-json-file/tslint.json | 1 - .../write-json-file/write-json-file-tests.ts | 37 -- 252 files changed, 348 insertions(+), 3971 deletions(-) delete mode 100644 types/anybar/anybar-tests.ts delete mode 100644 types/anybar/index.d.ts delete mode 100644 types/anybar/tsconfig.json delete mode 100644 types/anybar/tslint.json delete mode 100644 types/auto-bind/auto-bind-tests.ts delete mode 100644 types/auto-bind/index.d.ts delete mode 100644 types/auto-bind/tsconfig.json delete mode 100644 types/auto-bind/tslint.json delete mode 100644 types/beeper/beeper-tests.ts delete mode 100644 types/beeper/index.d.ts delete mode 100644 types/beeper/tsconfig.json delete mode 100644 types/beeper/tslint.json delete mode 100644 types/bin-version/bin-version-tests.ts delete mode 100644 types/bin-version/index.d.ts delete mode 100644 types/bin-version/tsconfig.json delete mode 100644 types/bin-version/tslint.json delete mode 100644 types/builtin-modules/builtin-modules-tests.ts delete mode 100644 types/builtin-modules/index.d.ts delete mode 100644 types/builtin-modules/static.d.ts delete mode 100644 types/builtin-modules/tsconfig.json delete mode 100644 types/builtin-modules/tslint.json delete mode 100644 types/callsites/callsites-tests.ts delete mode 100644 types/callsites/index.d.ts delete mode 100644 types/callsites/tsconfig.json delete mode 100644 types/callsites/tslint.json delete mode 100644 types/camelcase-keys/camelcase-keys-tests.ts delete mode 100644 types/camelcase-keys/index.d.ts delete mode 100644 types/camelcase-keys/tsconfig.json delete mode 100644 types/camelcase-keys/tslint.json delete mode 100644 types/clean-stack/clean-stack-tests.ts delete mode 100644 types/clean-stack/index.d.ts delete mode 100644 types/clean-stack/tsconfig.json delete mode 100644 types/clean-stack/tslint.json delete mode 100644 types/clear-require/clear-require-tests.ts delete mode 100644 types/clear-require/index.d.ts delete mode 100644 types/clear-require/tsconfig.json delete mode 100644 types/clear-require/tslint.json delete mode 100644 types/cli-boxes/cli-boxes-tests.ts delete mode 100644 types/cli-boxes/index.d.ts delete mode 100644 types/cli-boxes/tsconfig.json delete mode 100644 types/cli-boxes/tslint.json delete mode 100644 types/cli-cursor/cli-cursor-tests.ts delete mode 100644 types/cli-cursor/index.d.ts delete mode 100644 types/cli-cursor/tsconfig.json delete mode 100644 types/cli-cursor/tslint.json delete mode 100644 types/clipboardy/clipboardy-tests.ts delete mode 100644 types/clipboardy/index.d.ts delete mode 100644 types/clipboardy/tsconfig.json delete mode 100644 types/clipboardy/tslint.json delete mode 100644 types/condense-whitespace/condense-whitespace-tests.ts delete mode 100644 types/condense-whitespace/index.d.ts delete mode 100644 types/condense-whitespace/tsconfig.json delete mode 100644 types/condense-whitespace/tslint.json delete mode 100644 types/convert-hrtime/convert-hrtime-tests.ts delete mode 100644 types/convert-hrtime/index.d.ts delete mode 100644 types/convert-hrtime/tsconfig.json delete mode 100644 types/convert-hrtime/tslint.json delete mode 100644 types/create-html-element/create-html-element-tests.ts delete mode 100644 types/create-html-element/index.d.ts delete mode 100644 types/create-html-element/package.json delete mode 100644 types/create-html-element/ts3.1/create-html-element-tests.ts delete mode 100644 types/create-html-element/ts3.1/index.d.ts delete mode 100644 types/create-html-element/ts3.1/tsconfig.json delete mode 100644 types/create-html-element/ts3.1/tslint.json delete mode 100644 types/create-html-element/tsconfig.json delete mode 100644 types/create-html-element/tslint.json delete mode 100644 types/crypto-hash/crypto-hash-tests.ts delete mode 100644 types/crypto-hash/index.d.ts delete mode 100644 types/crypto-hash/tsconfig.json delete mode 100644 types/crypto-hash/tslint.json delete mode 100644 types/crypto-random-string/crypto-random-string-tests.ts delete mode 100644 types/crypto-random-string/index.d.ts delete mode 100644 types/crypto-random-string/tsconfig.json delete mode 100644 types/crypto-random-string/tslint.json delete mode 100644 types/cycled/cycled-tests.ts delete mode 100644 types/cycled/index.d.ts delete mode 100644 types/cycled/tsconfig.json delete mode 100644 types/cycled/tslint.json delete mode 100644 types/dargs/dargs-tests.ts delete mode 100644 types/dargs/index.d.ts delete mode 100644 types/dargs/tsconfig.json delete mode 100644 types/dargs/tslint.json delete mode 100644 types/debounce-fn/debounce-fn-tests.ts delete mode 100644 types/debounce-fn/index.d.ts delete mode 100644 types/debounce-fn/tsconfig.json delete mode 100644 types/debounce-fn/tslint.json delete mode 100644 types/define-lazy-prop/define-lazy-prop-tests.ts delete mode 100644 types/define-lazy-prop/index.d.ts delete mode 100644 types/define-lazy-prop/tsconfig.json delete mode 100644 types/define-lazy-prop/tslint.json delete mode 100644 types/detect-newline/detect-newline-tests.ts delete mode 100644 types/detect-newline/index.d.ts delete mode 100644 types/detect-newline/tsconfig.json delete mode 100644 types/detect-newline/tslint.json delete mode 100644 types/devtools-detect/devtools-detect-tests.ts delete mode 100644 types/devtools-detect/index.d.ts delete mode 100644 types/devtools-detect/tsconfig.json delete mode 100644 types/devtools-detect/tslint.json delete mode 100644 types/dot-prop/dot-prop-tests.ts delete mode 100644 types/dot-prop/index.d.ts delete mode 100644 types/dot-prop/tsconfig.json delete mode 100644 types/dot-prop/tslint.json delete mode 100644 types/dot-prop/v2/dot-prop-tests.ts delete mode 100644 types/dot-prop/v2/index.d.ts delete mode 100644 types/dot-prop/v2/tsconfig.json delete mode 100644 types/dot-prop/v2/tslint.json delete mode 100644 types/electron-config/electron-config-tests.ts delete mode 100644 types/electron-config/index.d.ts delete mode 100644 types/electron-config/tsconfig.json delete mode 100644 types/electron-config/tslint.json delete mode 100644 types/electron-debug/electron-debug-tests.ts delete mode 100644 types/electron-debug/index.d.ts delete mode 100644 types/electron-debug/tsconfig.json delete mode 100644 types/electron-debug/tslint.json delete mode 100644 types/electron-is-dev/electron-is-dev-tests.ts delete mode 100644 types/electron-is-dev/index.d.ts delete mode 100644 types/electron-is-dev/tsconfig.json delete mode 100644 types/electron-is-dev/tslint.json delete mode 100644 types/electron-store/electron-store-tests.ts delete mode 100644 types/electron-store/index.d.ts delete mode 100644 types/electron-store/tsconfig.json delete mode 100644 types/electron-store/tslint.json delete mode 100644 types/electron-unhandled/electron-unhandled-tests.ts delete mode 100644 types/electron-unhandled/index.d.ts delete mode 100644 types/electron-unhandled/tsconfig.json delete mode 100644 types/electron-unhandled/tslint.json delete mode 100644 types/electron-util/electron-util-tests.ts delete mode 100644 types/electron-util/index.d.ts delete mode 100644 types/electron-util/tsconfig.json delete mode 100644 types/electron-util/tslint.json delete mode 100644 types/elegant-spinner/elegant-spinner-tests.ts delete mode 100644 types/elegant-spinner/index.d.ts delete mode 100644 types/elegant-spinner/tsconfig.json delete mode 100644 types/elegant-spinner/tslint.json delete mode 100644 types/empty-trash/empty-trash-tests.ts delete mode 100644 types/empty-trash/index.d.ts delete mode 100644 types/empty-trash/tsconfig.json delete mode 100644 types/empty-trash/tslint.json delete mode 100644 types/file-url/file-url-tests.ts delete mode 100644 types/file-url/index.d.ts delete mode 100644 types/file-url/tsconfig.json delete mode 100644 types/file-url/tslint.json delete mode 100644 types/filter-console/filter-console-tests.ts delete mode 100644 types/filter-console/index.d.ts delete mode 100644 types/filter-console/tsconfig.json delete mode 100644 types/filter-console/tslint.json delete mode 100644 types/find-versions/find-versions-tests.ts delete mode 100644 types/find-versions/index.d.ts delete mode 100644 types/find-versions/tsconfig.json delete mode 100644 types/find-versions/tslint.json delete mode 100644 types/first-run/first-run-tests.ts delete mode 100644 types/first-run/index.d.ts delete mode 100644 types/first-run/tsconfig.json delete mode 100644 types/first-run/tslint.json delete mode 100644 types/get-emails/get-emails-tests.ts delete mode 100644 types/get-emails/index.d.ts delete mode 100644 types/get-emails/tsconfig.json delete mode 100644 types/get-emails/tslint.json delete mode 100644 types/get-urls/get-urls-tests.ts delete mode 100644 types/get-urls/index.d.ts delete mode 100644 types/get-urls/package.json delete mode 100644 types/get-urls/tsconfig.json delete mode 100644 types/get-urls/tslint.json delete mode 100644 types/git-remote-origin-url/git-remote-origin-url-tests.ts delete mode 100644 types/git-remote-origin-url/index.d.ts delete mode 100644 types/git-remote-origin-url/tsconfig.json delete mode 100644 types/git-remote-origin-url/tslint.json delete mode 100644 types/github-username/github-username-tests.ts delete mode 100644 types/github-username/index.d.ts delete mode 100644 types/github-username/tsconfig.json delete mode 100644 types/github-username/tslint.json delete mode 100644 types/gravatar-url/gravatar-url-tests.ts delete mode 100644 types/gravatar-url/index.d.ts delete mode 100644 types/gravatar-url/tsconfig.json delete mode 100644 types/gravatar-url/tslint.json delete mode 100644 types/gzip-size/gzip-size-tests.ts delete mode 100644 types/gzip-size/index.d.ts delete mode 100644 types/gzip-size/tsconfig.json delete mode 100644 types/gzip-size/tslint.json delete mode 100644 types/gzip-size/v3/gzip-size-tests.ts delete mode 100644 types/gzip-size/v3/index.d.ts delete mode 100644 types/gzip-size/v3/tsconfig.json delete mode 100644 types/gzip-size/v3/tslint.json delete mode 100644 types/has-emoji/has-emoji-tests.ts delete mode 100644 types/has-emoji/index.d.ts delete mode 100644 types/has-emoji/tsconfig.json delete mode 100644 types/has-emoji/tslint.json delete mode 100644 types/hex-rgb/hex-rgb-tests.ts delete mode 100644 types/hex-rgb/index.d.ts delete mode 100644 types/hex-rgb/tsconfig.json delete mode 100644 types/hex-rgb/tslint.json delete mode 100644 types/in-range/in-range-tests.ts delete mode 100644 types/in-range/index.d.ts delete mode 100644 types/in-range/tsconfig.json delete mode 100644 types/in-range/tslint.json delete mode 100644 types/locate-path/index.d.ts delete mode 100644 types/locate-path/locate-path-tests.ts delete mode 100644 types/locate-path/tsconfig.json delete mode 100644 types/locate-path/tslint.json delete mode 100644 types/pkg-up/index.d.ts delete mode 100644 types/pkg-up/pkg-up-tests.ts delete mode 100644 types/pkg-up/tsconfig.json delete mode 100644 types/pkg-up/tslint.json delete mode 100644 types/plur/index.d.ts delete mode 100644 types/plur/plur-tests.ts delete mode 100644 types/plur/tsconfig.json delete mode 100644 types/plur/tslint.json delete mode 100644 types/random-float/index.d.ts delete mode 100644 types/random-float/random-float-tests.ts delete mode 100644 types/random-float/tsconfig.json delete mode 100644 types/random-float/tslint.json delete mode 100644 types/random-int/index.d.ts delete mode 100644 types/random-int/random-int-tests.ts delete mode 100644 types/random-int/tsconfig.json delete mode 100644 types/random-int/tslint.json delete mode 100644 types/random-item/index.d.ts delete mode 100644 types/random-item/random-item-tests.ts delete mode 100644 types/random-item/tsconfig.json delete mode 100644 types/random-item/tslint.json delete mode 100644 types/random-obj-key/index.d.ts delete mode 100644 types/random-obj-key/random-obj-key-tests.ts delete mode 100644 types/random-obj-key/tsconfig.json delete mode 100644 types/random-obj-key/tslint.json delete mode 100644 types/random-obj-prop/index.d.ts delete mode 100644 types/random-obj-prop/random-obj-prop-tests.ts delete mode 100644 types/random-obj-prop/tsconfig.json delete mode 100644 types/random-obj-prop/tslint.json delete mode 100644 types/resolve-from/index.d.ts delete mode 100644 types/resolve-from/resolve-from-tests.ts delete mode 100644 types/resolve-from/tsconfig.json delete mode 100644 types/resolve-from/tslint.json delete mode 100644 types/resolve-from/v2/index.d.ts delete mode 100644 types/resolve-from/v2/resolve-from-tests.ts delete mode 100644 types/resolve-from/v2/tsconfig.json delete mode 100644 types/resolve-from/v2/tslint.json delete mode 100644 types/resolve-global/index.d.ts delete mode 100644 types/resolve-global/resolve-global-tests.ts delete mode 100644 types/resolve-global/tsconfig.json delete mode 100644 types/resolve-global/tslint.json delete mode 100644 types/unique-random-array/index.d.ts delete mode 100644 types/unique-random-array/tsconfig.json delete mode 100644 types/unique-random-array/tslint.json delete mode 100644 types/unique-random-array/unique-random-array-tests.ts delete mode 100644 types/unique-random/index.d.ts delete mode 100644 types/unique-random/tsconfig.json delete mode 100644 types/unique-random/tslint.json delete mode 100644 types/unique-random/unique-random-tests.ts delete mode 100644 types/write-json-file/index.d.ts delete mode 100644 types/write-json-file/tsconfig.json delete mode 100644 types/write-json-file/tslint.json delete mode 100644 types/write-json-file/write-json-file-tests.ts diff --git a/notNeededPackages.json b/notNeededPackages.json index 1c4d832b0e..e18892348f 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -72,6 +72,12 @@ "sourceRepoURL": "https://github.com/ant-design/ant-design", "asOfVersion": "1.0.0" }, + { + "libraryName": "anybar", + "typingsPackageName": "anybar", + "sourceRepoURL": "https://github.com/sindresorhus/anybar", + "asOfVersion": "4.0.0" + }, { "libraryName": "anydb-sql", "typingsPackageName": "anydb-sql", @@ -150,6 +156,12 @@ "sourceRepoURL": "https://github.com/code-chris/aurelia-knockout", "asOfVersion": "2.1.0" }, + { + "libraryName": "auto-bind", + "typingsPackageName": "auto-bind", + "sourceRepoURL": "https://github.com/sindresorhus/auto-bind", + "asOfVersion": "2.1.0" + }, { "libraryName": "autobind-decorator", "typingsPackageName": "autobind-decorator", @@ -204,6 +216,12 @@ "sourceRepoURL": "https://github.com/brianloveswords/base64url", "asOfVersion": "2.0.0" }, + { + "libraryName": "beeper", + "typingsPackageName": "beeper", + "sourceRepoURL": "https://github.com/sindresorhus/beeper", + "asOfVersion": "2.0.0" + }, { "libraryName": "BigInteger.js", "typingsPackageName": "big-integer", @@ -216,6 +234,12 @@ "sourceRepoURL": "https://github.com/MikeMcl/bignumber.js/", "asOfVersion": "5.0.0" }, + { + "libraryName": "bin-version", + "typingsPackageName": "bin-version", + "sourceRepoURL": "https://github.com/sindresorhus/bin-version", + "asOfVersion": "3.1.0" + }, { "libraryName": "bingmaps", "typingsPackageName": "bingmaps", @@ -252,12 +276,24 @@ "sourceRepoURL": "https://github.com/bugsnag/bugsnag-js", "asOfVersion": "3.1.0" }, + { + "libraryName": "builtin-modules", + "typingsPackageName": "builtin-modules", + "sourceRepoURL": "https://github.com/sindresorhus/builtin-modules", + "asOfVersion": "3.1.0" + }, { "libraryName": "CacheFactory", "typingsPackageName": "cachefactory", "sourceRepoURL": "https://github.com/jmdobry/CacheFactory", "asOfVersion": "3.0.0" }, + { + "libraryName": "callsites", + "typingsPackageName": "callsites", + "sourceRepoURL": "https://github.com/sindresorhus/callsites", + "asOfVersion": "3.0.0" + }, { "libraryName": "camel-case", "typingsPackageName": "camel-case", @@ -270,6 +306,12 @@ "sourceRepoURL": "https://github.com/sindresorhus/camelcase", "asOfVersion": "5.2.0" }, + { + "libraryName": "camelcase-keys", + "typingsPackageName": "camelcase-keys", + "sourceRepoURL": "https://github.com/sindresorhus/camelcase-keys", + "asOfVersion": "5.1.0" + }, { "libraryName": "catalog", "typingsPackageName": "catalog", @@ -312,12 +354,42 @@ "sourceRepoURL": "https://github.com/saltyrtc/chunked-dc-js", "asOfVersion": "0.2.2" }, + { + "libraryName": "clean-stack", + "typingsPackageName": "clean-stack", + "sourceRepoURL": "https://github.com/sindresorhus/clean-stack", + "asOfVersion": "2.1.0" + }, { "libraryName": "clean-webpack-plugin", "typingsPackageName": "clean-webpack-plugin", "sourceRepoURL": "https://github.com/johnagan/clean-webpack-plugin", "asOfVersion": "2.0.0" }, + { + "libraryName": "clear-module", + "typingsPackageName": "clear-require", + "sourceRepoURL": "https://github.com/sindresorhus/clear-module", + "asOfVersion": "3.2.0" + }, + { + "libraryName": "cli-boxes", + "typingsPackageName": "cli-boxes", + "sourceRepoURL": "https://github.com/sindresorhus/cli-boxes", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "cli-cursor", + "typingsPackageName": "cli-cursor", + "sourceRepoURL": "https://github.com/sindresorhus/cli-cursor", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "clipboardy", + "typingsPackageName": "clipboardy", + "sourceRepoURL": "https://github.com/sindresorhus/clipboardy", + "asOfVersion": "2.0.0" + }, { "libraryName": "colors.js (colors)", "typingsPackageName": "colors", @@ -330,6 +402,12 @@ "sourceRepoURL": "https://github.com/tj/commander.js", "asOfVersion": "2.12.2" }, + { + "libraryName": "condense-whitespace", + "typingsPackageName": "condense-whitespace", + "sourceRepoURL": "https://github.com/sindresorhus/condense-whitespace", + "asOfVersion": "2.0.0" + }, { "libraryName": "conf", "typingsPackageName": "conf", @@ -348,6 +426,12 @@ "sourceRepoURL": "https://github.com/blakeembrey/constant-case", "asOfVersion": "1.1.2" }, + { + "libraryName": "convert-hrtime", + "typingsPackageName": "convert-hrtime", + "sourceRepoURL": "https://github.com/sindresorhus/convert-hrtime", + "asOfVersion": "3.0.0" + }, { "libraryName": "copy-text-to-clipboard", "typingsPackageName": "copy-text-to-clipboard", @@ -480,12 +564,42 @@ "sourceRepoURL": "https://github.com/sindresorhus/cpy", "asOfVersion": "7.1.1" }, + { + "libraryName": "create-html-element", + "typingsPackageName": "create-html-element", + "sourceRepoURL": "https://github.com/sindresorhus/create-html-element", + "asOfVersion": "2.1.0" + }, + { + "libraryName": "crypto-hash", + "typingsPackageName": "crypto-hash", + "sourceRepoURL": "https://github.com/sindresorhus/crypto-hash", + "asOfVersion": "1.1.0" + }, + { + "libraryName": "crypto-random-string", + "typingsPackageName": "crypto-random-string", + "sourceRepoURL": "https://github.com/sindresorhus/crypto-random-string", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "cycled", + "typingsPackageName": "cycled", + "sourceRepoURL": "https://github.com/sindresorhus/cycled", + "asOfVersion": "1.1.0" + }, { "libraryName": "cypress", "typingsPackageName": "cypress", "sourceRepoURL": "https://cypress.io", "asOfVersion": "1.1.3" }, + { + "libraryName": "dargs", + "typingsPackageName": "dargs", + "sourceRepoURL": "https://github.com/sindresorhus/dargs", + "asOfVersion": "6.1.0" + }, { "libraryName": "date-fns", "typingsPackageName": "date-fns", @@ -498,6 +612,12 @@ "sourceRepoURL": "https://github.com/DataDog/dd-trace-js", "asOfVersion": "0.9.0" }, + { + "libraryName": "debounce-fn", + "typingsPackageName": "debounce-fn", + "sourceRepoURL": "https://github.com/sindresorhus/debounce-fn", + "asOfVersion": "3.0.0" + }, { "libraryName": "decamelize", "typingsPackageName": "decamelize", @@ -522,6 +642,12 @@ "sourceRepoURL": "git@github.com:KyleAMathews/deepmerge.git", "asOfVersion": "2.2.0" }, + { + "libraryName": "define-lazy-prop", + "typingsPackageName": "define-lazy-prop", + "sourceRepoURL": "https://github.com/sindresorhus/define-lazy-prop", + "asOfVersion": "2.0.0" + }, { "libraryName": "del", "typingsPackageName": "del", @@ -540,12 +666,24 @@ "sourceRepoURL": "https://github.com/DamonOehlman/detect-browser", "asOfVersion": "4.0.0" }, + { + "libraryName": "detect-newline", + "typingsPackageName": "detect-newline", + "sourceRepoURL": "https://github.com/sindresorhus/detect-newline", + "asOfVersion": "3.0.0" + }, { "libraryName": "DevExtreme", "typingsPackageName": "devextreme", "sourceRepoURL": "http://js.devexpress.com/", "asOfVersion": "16.2.1" }, + { + "libraryName": "devtools-detect", + "typingsPackageName": "devtools-detect", + "sourceRepoURL": "https://github.com/sindresorhus/devtools-detect", + "asOfVersion": "3.0.0" + }, { "libraryName": "Dexie.js", "typingsPackageName": "dexie", @@ -570,6 +708,12 @@ "sourceRepoURL": "https://github.com/blakeembrey/dot-case", "asOfVersion": "1.1.2" }, + { + "libraryName": "dot-prop", + "typingsPackageName": "dot-prop", + "sourceRepoURL": "https://github.com/sindresorhus/dot-prop", + "asOfVersion": "5.0.0" + }, { "libraryName": "dva", "typingsPackageName": "dva", @@ -624,6 +768,48 @@ "sourceRepoURL": "https://github.com/loopline-systems/electron-builder", "asOfVersion": "2.8.0" }, + { + "libraryName": "electron-store", + "typingsPackageName": "electron-config", + "sourceRepoURL": "https://github.com/sindresorhus/electron-store", + "asOfVersion": "3.2.0" + }, + { + "libraryName": "electron-debug", + "typingsPackageName": "electron-debug", + "sourceRepoURL": "https://github.com/sindresorhus/electron-debug", + "asOfVersion": "2.1.0" + }, + { + "libraryName": "electron-is-dev", + "typingsPackageName": "electron-is-dev", + "sourceRepoURL": "https://github.com/sindresorhus/electron-is-dev", + "asOfVersion": "1.1.0" + }, + { + "libraryName": "electron-store", + "typingsPackageName": "electron-store", + "sourceRepoURL": "https://github.com/sindresorhus/electron-store", + "asOfVersion": "3.2.0" + }, + { + "libraryName": "electron-unhandled", + "typingsPackageName": "electron-unhandled", + "sourceRepoURL": "https://github.com/sindresorhus/electron-unhandled", + "asOfVersion": "2.2.0" + }, + { + "libraryName": "electron-util", + "typingsPackageName": "electron-util", + "sourceRepoURL": "https://github.com/sindresorhus/electron-util", + "asOfVersion": "0.11.0" + }, + { + "libraryName": "elegant-spinner", + "typingsPackageName": "elegant-spinner", + "sourceRepoURL": "https://github.com/sindresorhus/elegant-spinner", + "asOfVersion": "2.0.0" + }, { "libraryName": "element-ready", "typingsPackageName": "element-ready", @@ -642,6 +828,12 @@ "sourceRepoURL": "https://github.com/Sembiance/email-validator", "asOfVersion": "1.0.6" }, + { + "libraryName": "empty-trash", + "typingsPackageName": "empty-trash", + "sourceRepoURL": "https://github.com/sindresorhus/empty-trash", + "asOfVersion": "3.0.0" + }, { "libraryName": "env-paths", "typingsPackageName": "env-paths", @@ -750,6 +942,12 @@ "sourceRepoURL": "https://github.com/sindresorhus/file-type", "asOfVersion": "10.9.1" }, + { + "libraryName": "file-url", + "typingsPackageName": "file-url", + "sourceRepoURL": "https://github.com/sindresorhus/file-url", + "asOfVersion": "3.0.0" + }, { "libraryName": "filenamify", "typingsPackageName": "filenamify", @@ -762,6 +960,18 @@ "sourceRepoURL": "https://github.com/sindresorhus/filenamify-url", "asOfVersion": "2.0.0" }, + { + "libraryName": "filter-console", + "typingsPackageName": "filter-console", + "sourceRepoURL": "https://github.com/sindresorhus/filter-console", + "asOfVersion": "0.1.1" + }, + { + "libraryName": "find-versions", + "typingsPackageName": "find-versions", + "sourceRepoURL": "https://github.com/sindresorhus/find-versions", + "asOfVersion": "3.1.0" + }, { "libraryName": "FineUploader", "typingsPackageName": "fine-uploader", @@ -774,6 +984,12 @@ "sourceRepoURL": "https://www.firebase.com/docs/javascript/firebase", "asOfVersion": "3.2.1" }, + { + "libraryName": "first-run", + "typingsPackageName": "first-run", + "sourceRepoURL": "https://github.com/sindresorhus/first-run", + "asOfVersion": "2.0.0" + }, { "libraryName": "fkill", "typingsPackageName": "fkill", @@ -828,6 +1044,12 @@ "sourceRepoURL": "https://github.com/manuelbieh/Geolib", "asOfVersion": "2.0.23" }, + { + "libraryName": "get-emails", + "typingsPackageName": "get-emails", + "sourceRepoURL": "https://github.com/sindresorhus/get-emails", + "asOfVersion": "3.0.0" + }, { "libraryName": "get-port", "typingsPackageName": "get-port", @@ -846,12 +1068,30 @@ "sourceRepoURL": "https://github.com/sindresorhus/get-stream", "asOfVersion": "5.0.0" }, + { + "libraryName": "get-urls", + "typingsPackageName": "get-urls", + "sourceRepoURL": "https://github.com/sindresorhus/get-urls", + "asOfVersion": "9.1.0" + }, + { + "libraryName": "git-remote-origin-url", + "typingsPackageName": "git-remote-origin-url", + "sourceRepoURL": "https://github.com/sindresorhus/git-remote-origin-url", + "asOfVersion": "3.0.0" + }, { "libraryName": "github", "typingsPackageName": "github", "sourceRepoURL": "https://github.com/mikedeboer/node-github", "asOfVersion": "7.1.0" }, + { + "libraryName": "github-username", + "typingsPackageName": "github-username", + "sourceRepoURL": "https://github.com/sindresorhus/github-username", + "asOfVersion": "5.0.0" + }, { "libraryName": "gitlab", "typingsPackageName": "gitlab", @@ -876,6 +1116,12 @@ "sourceRepoURL": "https://github.com/PeculiarVentures/graphene", "asOfVersion": "2.0.31" }, + { + "libraryName": "gravatar-url", + "typingsPackageName": "gravatar-url", + "sourceRepoURL": "https://github.com/sindresorhus/gravatar-url", + "asOfVersion": "3.0.0" + }, { "libraryName": "griddle-react", "typingsPackageName": "griddle-react", @@ -900,6 +1146,12 @@ "sourceRepoURL": "https://github.com/ivogabe/gulp-typescript", "asOfVersion": "2.13.0" }, + { + "libraryName": "gzip-size", + "typingsPackageName": "gzip-size", + "sourceRepoURL": "https://github.com/sindresorhus/gzip-size", + "asOfVersion": "5.1.0" + }, { "libraryName": "handlebars", "typingsPackageName": "handlebars", @@ -918,6 +1170,12 @@ "sourceRepoURL": "https://github.com/sindresorhus/hard-rejection", "asOfVersion": "2.0.0" }, + { + "libraryName": "has-emoji", + "typingsPackageName": "has-emoji", + "sourceRepoURL": "https://github.com/sindresorhus/has-emoji", + "asOfVersion": "1.1.0" + }, { "libraryName": "has-yarn", "typingsPackageName": "has-yarn", @@ -930,6 +1188,12 @@ "sourceRepoURL": "https://github.com/sindresorhus/hasha", "asOfVersion": "4.0.0" }, + { + "libraryName": "hex-rgb", + "typingsPackageName": "hex-rgb", + "sourceRepoURL": "https://github.com/sindresorhus/hex-rgb", + "asOfVersion": "4.1.0" + }, { "libraryName": "hibp", "typingsPackageName": "hibp", @@ -996,6 +1260,12 @@ "sourceRepoURL": "https://github.com/facebook/immutable-js", "asOfVersion": "3.8.7" }, + { + "libraryName": "in-range", + "typingsPackageName": "in-range", + "sourceRepoURL": "https://github.com/sindresorhus/in-range", + "asOfVersion": "2.0.0" + }, { "libraryName": "interactjs", "typingsPackageName": "interact.js", @@ -1278,6 +1548,12 @@ "sourceRepoURL": "https://github.com/thgreasi/localForage-cordovaSQLiteDriver", "asOfVersion": "1.5.0" }, + { + "libraryName": "locate-path", + "typingsPackageName": "locate-path", + "sourceRepoURL": "https://github.com/sindresorhus/locate-path", + "asOfVersion": "4.0.0" + }, { "libraryName": "lodash-decorators", "typingsPackageName": "lodash-decorators", @@ -1866,6 +2142,12 @@ "sourceRepoURL": "https://github.com/sindresorhus/pkg-dir", "asOfVersion": "4.0.0" }, + { + "libraryName": "pkg-up", + "typingsPackageName": "pkg-up", + "sourceRepoURL": "https://github.com/sindresorhus/pkg-up", + "asOfVersion": "3.1.0" + }, { "libraryName": "pkg-versions", "typingsPackageName": "pkg-versions", @@ -1878,6 +2160,12 @@ "sourceRepoURL": "http://plottablejs.org/", "asOfVersion": "3.7.0" }, + { + "libraryName": "plur", + "typingsPackageName": "plur", + "sourceRepoURL": "https://github.com/sindresorhus/plur", + "asOfVersion": "3.1.0" + }, { "libraryName": "png-async", "typingsPackageName": "png-async", @@ -1944,6 +2232,36 @@ "sourceRepoURL": "https://github.com/sindresorhus/quick-lru", "asOfVersion": "3.0.0" }, + { + "libraryName": "random-float", + "typingsPackageName": "random-float", + "sourceRepoURL": "https://github.com/sindresorhus/random-float", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "random-int", + "typingsPackageName": "random-int", + "sourceRepoURL": "https://github.com/sindresorhus/random-int", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "random-item", + "typingsPackageName": "random-item", + "sourceRepoURL": "https://github.com/sindresorhus/random-item", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "random-obj-key", + "typingsPackageName": "random-obj-key", + "sourceRepoURL": "https://github.com/sindresorhus/random-obj-key", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "random-obj-prop", + "typingsPackageName": "random-obj-prop", + "sourceRepoURL": "https://github.com/sindresorhus/random-obj-prop", + "asOfVersion": "2.0.0" + }, { "libraryName": "Raven JS", "typingsPackageName": "raven-js", @@ -2154,6 +2472,18 @@ "sourceRepoURL": "https://github.com/rackt/reselect", "asOfVersion": "2.2.0" }, + { + "libraryName": "resolve-from", + "typingsPackageName": "resolve-from", + "sourceRepoURL": "https://github.com/sindresorhus/resolve-from", + "asOfVersion": "5.0.0" + }, + { + "libraryName": "resolve-global", + "typingsPackageName": "resolve-global", + "sourceRepoURL": "https://github.com/sindresorhus/resolve-global", + "asOfVersion": "1.0.0" + }, { "libraryName": "rest-io", "typingsPackageName": "rest-io", @@ -2532,6 +2862,18 @@ "sourceRepoURL": "https://github.com/dpa99c/phonegap-launch-navigator", "asOfVersion": "4.0.0" }, + { + "libraryName": "unique-random", + "typingsPackageName": "unique-random", + "sourceRepoURL": "https://github.com/sindresorhus/unique-random", + "asOfVersion": "2.1.0" + }, + { + "libraryName": "unique-random-array", + "typingsPackageName": "unique-random-array", + "sourceRepoURL": "https://github.com/sindresorhus/unique-random-array", + "asOfVersion": "2.0.0" + }, { "libraryName": "Universal Router", "typingsPackageName": "universal-router", @@ -2682,6 +3024,12 @@ "sourceRepoURL": "https://github.com/yyc-git/Wonder-FRP", "asOfVersion": "0.1.25" }, + { + "libraryName": "write-json-file", + "typingsPackageName": "write-json-file", + "sourceRepoURL": "https://github.com/sindresorhus/write-json-file", + "asOfVersion": "3.2.0" + }, { "libraryName": "x2js", "typingsPackageName": "x2js", diff --git a/types/anybar/anybar-tests.ts b/types/anybar/anybar-tests.ts deleted file mode 100644 index dbc7a5edd6..0000000000 --- a/types/anybar/anybar-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -import anybar = require('anybar'); - -anybar('red', { port: 123 }); - -anybar('green'); diff --git a/types/anybar/index.d.ts b/types/anybar/index.d.ts deleted file mode 100644 index a9a2452b06..0000000000 --- a/types/anybar/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Type definitions for anybar 2.0 -// Project: https://github.com/sindresorhus/anybar -// Definitions by: Chris Khoo -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.1 - -declare function anybar(color: string, options?: { port: number }): void; - -export = anybar; diff --git a/types/anybar/tsconfig.json b/types/anybar/tsconfig.json deleted file mode 100644 index 2f04506e12..0000000000 --- a/types/anybar/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", - "anybar-tests.ts" - ] -} diff --git a/types/anybar/tslint.json b/types/anybar/tslint.json deleted file mode 100644 index f93cf8562a..0000000000 --- a/types/anybar/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "dtslint/dt.json" -} diff --git a/types/auto-bind/auto-bind-tests.ts b/types/auto-bind/auto-bind-tests.ts deleted file mode 100644 index 2c3754e09d..0000000000 --- a/types/auto-bind/auto-bind-tests.ts +++ /dev/null @@ -1,65 +0,0 @@ -import autoBind = require("auto-bind"); - -const emptyConfig: autoBind.AutoBindOptions = {}; -const onlyIncludeInConfig: autoBind.AutoBindOptions = { - include: [] -}; -const onlyExcludeInConfig: autoBind.AutoBindOptions = { - exclude: [] -}; -const emptyArraysInConfig: autoBind.AutoBindOptions = { - include: [], - exclude: [] -}; -const regexConfig: autoBind.AutoBindOptions = { - include: [/test[123]/], - exclude: [/test[123]/, /^regex[123]$/] -}; -const stringConfig: autoBind.AutoBindOptions = { - include: ["test"], - exclude: ["123", "abc"] -}; -const mixConfig: autoBind.AutoBindOptions = { - include: ["test", /test[123]/], - exclude: ["123", /test[123]/] -}; - -class TestConfigs { - constructor() { - // no config - autoBind(this); - autoBind.react(this); - - // empty configs - autoBind(this, emptyConfig); - autoBind.react(this, emptyConfig); - - // include only configs - autoBind(this, onlyIncludeInConfig); - autoBind.react(this, onlyIncludeInConfig); - - // exclude only configs - autoBind(this, onlyExcludeInConfig); - autoBind.react(this, onlyExcludeInConfig); - - // empty array configs - autoBind(this, emptyArraysInConfig); - autoBind.react(this, emptyArraysInConfig); - - // regex configs - autoBind(this, regexConfig); - autoBind.react(this, regexConfig); - - // string configs - autoBind(this, stringConfig); - autoBind.react(this, stringConfig); - - // mix configs - autoBind(this, mixConfig); - autoBind.react(this, mixConfig); - } - - shutUpNoUnnecessaryClass() { - // noop - } -} diff --git a/types/auto-bind/index.d.ts b/types/auto-bind/index.d.ts deleted file mode 100644 index 9b91fb3da6..0000000000 --- a/types/auto-bind/index.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Type definitions for auto-bind 1.2 -// Project: https://github.com/sindresorhus/auto-bind#readme -// Definitions by: Sindre Seppola -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -declare namespace autoBind { - interface AutoBindOptions { - include?: Array; - exclude?: Array; - } - - type AutoBindFunction = ( - self: selfT, - options?: AutoBindOptions - ) => selfT; -} - -interface AutoBindModule - extends autoBind.AutoBindFunction { - react: autoBind.AutoBindFunction; -} - -declare const autoBind: AutoBindModule; -export = autoBind; diff --git a/types/auto-bind/tsconfig.json b/types/auto-bind/tsconfig.json deleted file mode 100644 index d9589cadad..0000000000 --- a/types/auto-bind/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es5" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "auto-bind-tests.ts" - ] -} diff --git a/types/auto-bind/tslint.json b/types/auto-bind/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/auto-bind/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/beeper/beeper-tests.ts b/types/beeper/beeper-tests.ts deleted file mode 100644 index b3f6f8d60b..0000000000 --- a/types/beeper/beeper-tests.ts +++ /dev/null @@ -1,7 +0,0 @@ -import beeper = require('beeper'); - -beeper(); -beeper(3); -beeper(3, () => {}); -beeper('****-*-*'); -beeper('****-*-*', () => {}); diff --git a/types/beeper/index.d.ts b/types/beeper/index.d.ts deleted file mode 100644 index 3e17e4be1c..0000000000 --- a/types/beeper/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Type definitions for beeper 1.1 -// Project: https://github.com/sindresorhus/beeper#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = beeper; - -declare function beeper(count?: number, cb?: () => void): void; -declare function beeper(melody: string, cb?: () => void): void; diff --git a/types/beeper/tsconfig.json b/types/beeper/tsconfig.json deleted file mode 100644 index 54614ad773..0000000000 --- a/types/beeper/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", - "beeper-tests.ts" - ] -} diff --git a/types/beeper/tslint.json b/types/beeper/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/beeper/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/bin-version/bin-version-tests.ts b/types/bin-version/bin-version-tests.ts deleted file mode 100644 index 7decda3e66..0000000000 --- a/types/bin-version/bin-version-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import binVersion = require('bin-version'); - -// $ExpectType Promise -binVersion('curl'); -// $ExpectType Promise -binVersion('openssl', { args: ['version'] }); diff --git a/types/bin-version/index.d.ts b/types/bin-version/index.d.ts deleted file mode 100644 index 3db592bec7..0000000000 --- a/types/bin-version/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Type definitions for bin-version 3.0 -// Project: https://github.com/sindresorhus/bin-version#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = binVersion; - -declare function binVersion(binary: string, options?: binVersion.Options): Promise; - -declare namespace binVersion { - interface Options { - args?: string[]; - } -} diff --git a/types/bin-version/tsconfig.json b/types/bin-version/tsconfig.json deleted file mode 100644 index e89af3fdb8..0000000000 --- a/types/bin-version/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", - "bin-version-tests.ts" - ] -} diff --git a/types/bin-version/tslint.json b/types/bin-version/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/bin-version/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/builtin-modules/builtin-modules-tests.ts b/types/builtin-modules/builtin-modules-tests.ts deleted file mode 100644 index dadcb6ea72..0000000000 --- a/types/builtin-modules/builtin-modules-tests.ts +++ /dev/null @@ -1,8 +0,0 @@ -import * as builtins from 'builtin-modules'; -import * as builtinsStatic from 'builtin-modules/static'; - -let builtin: string = builtins[0]; -builtin = builtinsStatic[0]; - -builtins.push('foo'); // $ExpectError -builtinsStatic.pop('foo'); // $ExpectError diff --git a/types/builtin-modules/index.d.ts b/types/builtin-modules/index.d.ts deleted file mode 100644 index a800bfd4f2..0000000000 --- a/types/builtin-modules/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Type definitions for builtin-modules 2.0 -// Project: https://github.com/sindresorhus/builtin-modules#readme -// Definitions by: Klaus Meinhardt -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare const builtinModules: ReadonlyArray; -export = builtinModules; diff --git a/types/builtin-modules/static.d.ts b/types/builtin-modules/static.d.ts deleted file mode 100644 index 1b9dbb78cd..0000000000 --- a/types/builtin-modules/static.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const builtinModules: ReadonlyArray; -export = builtinModules; diff --git a/types/builtin-modules/tsconfig.json b/types/builtin-modules/tsconfig.json deleted file mode 100644 index b8ce33b916..0000000000 --- a/types/builtin-modules/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", - "static.d.ts", - "builtin-modules-tests.ts" - ] -} \ No newline at end of file diff --git a/types/builtin-modules/tslint.json b/types/builtin-modules/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/builtin-modules/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/callsites/callsites-tests.ts b/types/callsites/callsites-tests.ts deleted file mode 100644 index abe174537d..0000000000 --- a/types/callsites/callsites-tests.ts +++ /dev/null @@ -1,20 +0,0 @@ -import callsites = require('callsites'); - -function unicorn() { - callsites(); // $ExpectType CallSite[] - callsites()[0].getThis(); // $ExpectType object | undefined - callsites()[0].getTypeName(); // $ExpectType string - callsites()[0].getFunction(); // $ExpectType Function | undefined - callsites()[0].getFunctionName(); // $ExpectType string - callsites()[0].getMethodName(); // $ExpectType string | null - callsites()[0].getFileName(); // $ExpectType string | undefined - callsites()[0].getLineNumber(); // $ExpectType number - callsites()[0].getColumnNumber(); // $ExpectType number - callsites()[0].getEvalOrigin(); // $ExpectType string | CallSite - callsites()[0].isToplevel(); // $ExpectType boolean - callsites()[0].isEval(); // $ExpectType boolean - callsites()[0].isNative(); // $ExpectType boolean - callsites()[0].isConstructor(); // $ExpectType boolean -} - -unicorn(); diff --git a/types/callsites/index.d.ts b/types/callsites/index.d.ts deleted file mode 100644 index aea96c767f..0000000000 --- a/types/callsites/index.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Type definitions for callsites 2.0 -// Project: https://github.com/sindresorhus/callsites#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.2 - -export = callsites; - -declare function callsites(): callsites.CallSite[]; - -declare namespace callsites { - interface CallSite { - getThis(): object | undefined; - getTypeName(): string; - getFunction(): Function | undefined; // tslint:disable-line ban-types - getFunctionName(): string; - getMethodName(): string | null; - getFileName(): string | undefined; - getLineNumber(): number; - getColumnNumber(): number; - getEvalOrigin(): CallSite | string; - isToplevel(): boolean; - isEval(): boolean; - isNative(): boolean; - isConstructor(): boolean; - } -} diff --git a/types/callsites/tsconfig.json b/types/callsites/tsconfig.json deleted file mode 100644 index 010199b740..0000000000 --- a/types/callsites/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", - "callsites-tests.ts" - ] -} \ No newline at end of file diff --git a/types/callsites/tslint.json b/types/callsites/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/callsites/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/camelcase-keys/camelcase-keys-tests.ts b/types/camelcase-keys/camelcase-keys-tests.ts deleted file mode 100644 index 099b8c4a14..0000000000 --- a/types/camelcase-keys/camelcase-keys-tests.ts +++ /dev/null @@ -1,10 +0,0 @@ -import camelcaseKeys = require('camelcase-keys'); - -camelcaseKeys({'foo-bar': true}); -// => {fooBar: true} - -camelcaseKeys({'foo-bar': true, nested: {unicorn_rainbow: true}}, {deep: true}); -// => {fooBar: true, nested: {unicornRainbow: true}} - -camelcaseKeys({_: [], 'foo-bar': true}); -// => {_: [], fooBar: true} diff --git a/types/camelcase-keys/index.d.ts b/types/camelcase-keys/index.d.ts deleted file mode 100644 index e29a576e6b..0000000000 --- a/types/camelcase-keys/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Type definitions for camelcase-keys 4.1 -// Project: https://github.com/sindresorhus/camelcase-keys#readme -// Definitions by: Mohamed Hegazy -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.2 - -export = camelcaseKeys; -declare function camelcaseKeys(input: any, options?: { exclude?: string[] | RegExp[], deep?: boolean }): any; - -declare namespace camelcaseKeys { - interface Options { - deep?: boolean; - exclude?: Array; - } -} diff --git a/types/camelcase-keys/tsconfig.json b/types/camelcase-keys/tsconfig.json deleted file mode 100644 index f99870f8d9..0000000000 --- a/types/camelcase-keys/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", - "camelcase-keys-tests.ts" - ] -} \ No newline at end of file diff --git a/types/camelcase-keys/tslint.json b/types/camelcase-keys/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/camelcase-keys/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/clean-stack/clean-stack-tests.ts b/types/clean-stack/clean-stack-tests.ts deleted file mode 100644 index 72bef3f6b3..0000000000 --- a/types/clean-stack/clean-stack-tests.ts +++ /dev/null @@ -1,8 +0,0 @@ -import cleanStack = require('clean-stack'); - -const error = new Error('Missing unicorn'); - -if (error.stack) { - cleanStack(error.stack); // $ExpectType string - cleanStack(error.stack, {pretty: true}); // $ExpectType string -} diff --git a/types/clean-stack/index.d.ts b/types/clean-stack/index.d.ts deleted file mode 100644 index 59af64e31b..0000000000 --- a/types/clean-stack/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Type definitions for clean-stack 1.3 -// Project: https://github.com/sindresorhus/clean-stack#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = cleanStack; - -declare function cleanStack(stack: string, options?: cleanStack.Options): string; - -declare namespace cleanStack { - interface Options { - pretty?: boolean; - } -} diff --git a/types/clean-stack/tsconfig.json b/types/clean-stack/tsconfig.json deleted file mode 100644 index e1fa33ac6c..0000000000 --- a/types/clean-stack/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", - "clean-stack-tests.ts" - ] -} \ No newline at end of file diff --git a/types/clean-stack/tslint.json b/types/clean-stack/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/clean-stack/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/clear-require/clear-require-tests.ts b/types/clear-require/clear-require-tests.ts deleted file mode 100644 index 53aea4d832..0000000000 --- a/types/clear-require/clear-require-tests.ts +++ /dev/null @@ -1,8 +0,0 @@ -import * as clear from 'clear-require'; - -clear('my-module'); // clear specific module from require cache - -clear.all(); // clear all of the require cache - -clear.match(new RegExp('^.*$')); // clear all modules which match the RegExp -clear.match(/^.*$/); // similar to above but using /regex/ notation diff --git a/types/clear-require/index.d.ts b/types/clear-require/index.d.ts deleted file mode 100644 index 1ee315c5b4..0000000000 --- a/types/clear-require/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Type definitions for clear-require 2.0 -// Project: https://github.com/sindresorhus/clear-module, https://github.com/sindresorhus/clear-require -// Definitions by: dan-j -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -interface ClearRequire { - (moduleId: string): boolean; - all(): void; - match(regex: RegExp): void; -} - -declare const clear: ClearRequire; - -export = clear; diff --git a/types/clear-require/tsconfig.json b/types/clear-require/tsconfig.json deleted file mode 100644 index 538fbe385e..0000000000 --- a/types/clear-require/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", - "clear-require-tests.ts" - ] -} \ No newline at end of file diff --git a/types/clear-require/tslint.json b/types/clear-require/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/clear-require/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/cli-boxes/cli-boxes-tests.ts b/types/cli-boxes/cli-boxes-tests.ts deleted file mode 100644 index 9885f28777..0000000000 --- a/types/cli-boxes/cli-boxes-tests.ts +++ /dev/null @@ -1,17 +0,0 @@ -import cliBoxes = require('cli-boxes'); - -cliBoxes.single; // $ExpectType BoxDefinition -cliBoxes.double; // $ExpectType BoxDefinition -cliBoxes.round; // $ExpectType BoxDefinition -cliBoxes['single-double']; // $ExpectType BoxDefinition -cliBoxes['double-single']; // $ExpectType BoxDefinition -cliBoxes.classic; // $ExpectType BoxDefinition - -const single = cliBoxes.single; - -single.bottomLeft; // $ExpectType string -single.bottomRight; // $ExpectType string -single.horizontal; // $ExpectType string -single.topLeft; // $ExpectType string -single.topRight; // $ExpectType string -single.vertical; // $ExpectType string diff --git a/types/cli-boxes/index.d.ts b/types/cli-boxes/index.d.ts deleted file mode 100644 index e3b4c7be79..0000000000 --- a/types/cli-boxes/index.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -// Type definitions for cli-boxes 1.0 -// Project: https://github.com/sindresorhus/cli-boxes -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.1 - -export = boxes; -declare const boxes: boxes.Boxes; - -declare namespace boxes { - type BoxNames = 'single' | 'double' | 'round' | 'single-double' | 'double-single' | 'classic'; - - type Boxes = Record; - - interface BoxDefinition { - topLeft: string; - topRight: string; - bottomRight: string; - bottomLeft: string; - vertical: string; - horizontal: string; - } -} diff --git a/types/cli-boxes/tsconfig.json b/types/cli-boxes/tsconfig.json deleted file mode 100644 index f8a8653c69..0000000000 --- a/types/cli-boxes/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-boxes-tests.ts" - ] -} diff --git a/types/cli-boxes/tslint.json b/types/cli-boxes/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/cli-boxes/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/cli-cursor/cli-cursor-tests.ts b/types/cli-cursor/cli-cursor-tests.ts deleted file mode 100644 index 877ce32f94..0000000000 --- a/types/cli-cursor/cli-cursor-tests.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { show, hide, toggle } from 'cli-cursor'; - -hide(); -hide(process.stderr); - -show(); -show(process.stderr); - -toggle(); -toggle(false); -toggle(false, process.stderr); diff --git a/types/cli-cursor/index.d.ts b/types/cli-cursor/index.d.ts deleted file mode 100644 index d6decf8479..0000000000 --- a/types/cli-cursor/index.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -// Type definitions for cli-cursor 2.1 -// Project: https://github.com/sindresorhus/cli-cursor#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - -/** - * Show cursor. - * - * @param stream defaults to `process.stderr` - */ -export function show(stream?: NodeJS.WritableStream): void; - -/** - * Hide cursor. - * - * @param stream defaults to `process.stderr` - */ -export function hide(stream?: NodeJS.WritableStream): void; - -/** - * Toggle cursor visibility. - * - * @param force is useful to show or hide the cursor based on a boolean. - * @param stream defaults to `process.stderr` - */ -export function toggle(force?: boolean, stream?: NodeJS.WritableStream): void; diff --git a/types/cli-cursor/tsconfig.json b/types/cli-cursor/tsconfig.json deleted file mode 100644 index 2d57093f55..0000000000 --- a/types/cli-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", - "cli-cursor-tests.ts" - ] -} diff --git a/types/cli-cursor/tslint.json b/types/cli-cursor/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/cli-cursor/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/clipboardy/clipboardy-tests.ts b/types/clipboardy/clipboardy-tests.ts deleted file mode 100644 index 33ae8ac9a8..0000000000 --- a/types/clipboardy/clipboardy-tests.ts +++ /dev/null @@ -1,10 +0,0 @@ -import clipboardy = require('clipboardy'); - -clipboardy.writeSync('🦄'); -clipboardy.write('🦄').then(() => {}); - -let str: string; -str = clipboardy.readSync(); -clipboardy.read().then(toPaste => { - str = toPaste; -}); diff --git a/types/clipboardy/index.d.ts b/types/clipboardy/index.d.ts deleted file mode 100644 index 12e2c3b85a..0000000000 --- a/types/clipboardy/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Type definitions for clipboardy 1.1 -// Project: https://github.com/sindresorhus/clipboardy#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export function write(input: string): Promise; -export function writeSync(input: string): void; -export function read(): Promise; -export function readSync(): string; diff --git a/types/clipboardy/tsconfig.json b/types/clipboardy/tsconfig.json deleted file mode 100644 index 6d6bfcc76a..0000000000 --- a/types/clipboardy/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", - "clipboardy-tests.ts" - ] -} \ No newline at end of file diff --git a/types/clipboardy/tslint.json b/types/clipboardy/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/clipboardy/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/condense-whitespace/condense-whitespace-tests.ts b/types/condense-whitespace/condense-whitespace-tests.ts deleted file mode 100644 index 027b106195..0000000000 --- a/types/condense-whitespace/condense-whitespace-tests.ts +++ /dev/null @@ -1,7 +0,0 @@ -import condense = require("condense-whitespace"); - -// $ExpectType string -condense(" \n\n\t Hello World \t\n"); - -// $ExpectError -condense(1); diff --git a/types/condense-whitespace/index.d.ts b/types/condense-whitespace/index.d.ts deleted file mode 100644 index 403d0eeec1..0000000000 --- a/types/condense-whitespace/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for condense-whitespace 1.0 -// Project: https://github.com/sindresorhus/condense-whitespace -// Definitions by: Daniel Cassidy -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare function condenseWhitespace(str: string): string; - -export = condenseWhitespace; diff --git a/types/condense-whitespace/tsconfig.json b/types/condense-whitespace/tsconfig.json deleted file mode 100644 index 8d5705205d..0000000000 --- a/types/condense-whitespace/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", - "condense-whitespace-tests.ts" - ] -} diff --git a/types/condense-whitespace/tslint.json b/types/condense-whitespace/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/condense-whitespace/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/convert-hrtime/convert-hrtime-tests.ts b/types/convert-hrtime/convert-hrtime-tests.ts deleted file mode 100644 index 986b427027..0000000000 --- a/types/convert-hrtime/convert-hrtime-tests.ts +++ /dev/null @@ -1,9 +0,0 @@ -/// - -import convertHrtime = require('convert-hrtime'); - -const time = convertHrtime(process.hrtime(process.hrtime())); -let num: number; -num = time.seconds; -num = time.milliseconds; -num = time.nanoseconds; diff --git a/types/convert-hrtime/index.d.ts b/types/convert-hrtime/index.d.ts deleted file mode 100644 index a23d222eec..0000000000 --- a/types/convert-hrtime/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Type definitions for convert-hrtime 2.0 -// Project: https://github.com/sindresorhus/convert-hrtime#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = convertHrtime; - -declare function convertHrtime(hrtime: [number, number]): convertHrtime.HRTime; - -declare namespace convertHrtime { - interface HRTime { - seconds: number; - milliseconds: number; - nanoseconds: number; - } -} diff --git a/types/convert-hrtime/tsconfig.json b/types/convert-hrtime/tsconfig.json deleted file mode 100644 index 9d2b304763..0000000000 --- a/types/convert-hrtime/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", - "convert-hrtime-tests.ts" - ] -} \ No newline at end of file diff --git a/types/convert-hrtime/tslint.json b/types/convert-hrtime/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/convert-hrtime/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/create-html-element/create-html-element-tests.ts b/types/create-html-element/create-html-element-tests.ts deleted file mode 100644 index e94b6cb617..0000000000 --- a/types/create-html-element/create-html-element-tests.ts +++ /dev/null @@ -1,48 +0,0 @@ -import createHtmlElement = require('create-html-element'); - -createHtmlElement(); // $ExpectType HTMLDivElement -// $ExpectType HTMLDivElement -createHtmlElement({ - attributes: { - class: 'unicorn', - rainbow: true, - horse: false, - number: 1, - multiple: ['a', 'b'], - }, -}); -createHtmlElement({ html: '🦄' }); // $ExpectType HTMLDivElement -createHtmlElement({ text: 'Hello World' }); // $ExpectType HTMLDivElement -createHtmlElement({ html: '🦄', text: 'Hello World' }); // $ExpectError - -createHtmlElement({ name: 'h1' }); // $ExpectType HTMLHeadingElement -// $ExpectType HTMLHeadingElement -createHtmlElement({ - name: 'h1', - attributes: { - class: 'unicorn', - rainbow: true, - horse: false, - number: 1, - multiple: ['a', 'b'], - }, -}); -createHtmlElement({ name: 'h1', html: '🦄' }); // $ExpectType HTMLHeadingElement -createHtmlElement({ name: 'h1', text: 'Hello World' }); // $ExpectType HTMLHeadingElement -createHtmlElement({ name: 'h1', html: '🦄', text: 'Hello World' }); // $ExpectError - -createHtmlElement({ name: 'foo' }); // $ExpectType HTMLElement -// $ExpectType HTMLElement -createHtmlElement({ - name: 'foo', - attributes: { - class: 'unicorn', - rainbow: true, - horse: false, - number: 1, - multiple: ['a', 'b'], - }, -}); -createHtmlElement({ name: 'foo', html: '🦄' }); // $ExpectType HTMLElement -createHtmlElement({ name: 'foo', text: 'Hello World' }); // $ExpectType HTMLElement -createHtmlElement({ name: 'foo', html: '🦄', text: 'Hello World' }); // $ExpectError diff --git a/types/create-html-element/index.d.ts b/types/create-html-element/index.d.ts deleted file mode 100644 index 86fd758b3e..0000000000 --- a/types/create-html-element/index.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -// Type definitions for create-html-element 2.0 -// Project: https://github.com/sindresorhus/create-html-element#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.8 - -export = createHtmlElement; - -declare function createHtmlElement( - options?: createHtmlElement.OptionsWithoutTagName -): HTMLDivElement; -declare function createHtmlElement( - options: createHtmlElement.Options -): HTMLElementTagNameMap[K]; -declare function createHtmlElement(options: createHtmlElement.Options): HTMLElement; - -declare namespace createHtmlElement { - type Without = { [P in Exclude]?: never }; - type XOR = (T | U) extends object ? (Without & U) | (Without & T) : T | U; - - interface AttributesOptions { - attributes?: { [key: string]: string | boolean | number | string[] }; - } - - interface HtmlOptions { - html?: string; - } - - interface TextOptions { - text?: string; - } - - type OptionsWithoutTagName = AttributesOptions & XOR; - - interface OptionsWithTagName extends AttributesOptions { - name: K; - } - - type Options = OptionsWithTagName & XOR; -} diff --git a/types/create-html-element/package.json b/types/create-html-element/package.json deleted file mode 100644 index bb80441dc0..0000000000 --- a/types/create-html-element/package.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "private": true, - "types": "index", - "typesVersions": { - ">=3.1.0-0": { "*": ["ts3.1/*"] } - } -} diff --git a/types/create-html-element/ts3.1/create-html-element-tests.ts b/types/create-html-element/ts3.1/create-html-element-tests.ts deleted file mode 100644 index 6d44f3df60..0000000000 --- a/types/create-html-element/ts3.1/create-html-element-tests.ts +++ /dev/null @@ -1,64 +0,0 @@ -import createHtmlElement = require('create-html-element'); - -createHtmlElement(); // $ExpectType HTMLDivElement -// $ExpectType HTMLDivElement -createHtmlElement({ - attributes: { - class: 'unicorn', - rainbow: true, - horse: false, - number: 1, - multiple: ['a', 'b'], - }, -}); -createHtmlElement({ html: '🦄' }); // $ExpectType HTMLDivElement -createHtmlElement({ text: 'Hello World' }); // $ExpectType HTMLDivElement -createHtmlElement({ html: '🦄', text: 'Hello World' }); // $ExpectError - -createHtmlElement({ name: 'h1' }); // $ExpectType HTMLHeadingElement -// $ExpectType HTMLHeadingElement -createHtmlElement({ - name: 'h1', - attributes: { - class: 'unicorn', - rainbow: true, - horse: false, - number: 1, - multiple: ['a', 'b'], - }, -}); -createHtmlElement({ name: 'h1', html: '🦄' }); // $ExpectType HTMLHeadingElement -createHtmlElement({ name: 'h1', text: 'Hello World' }); // $ExpectType HTMLHeadingElement -createHtmlElement({ name: 'h1', html: '🦄', text: 'Hello World' }); // $ExpectError - -createHtmlElement({ name: 'listing' }); // $ExpectType HTMLPreElement -// $ExpectType HTMLPreElement -createHtmlElement({ - name: 'listing', - attributes: { - class: 'unicorn', - rainbow: true, - horse: false, - number: 1, - multiple: ['a', 'b'], - }, -}); -createHtmlElement({ name: 'listing', html: '🦄' }); // $ExpectType HTMLPreElement -createHtmlElement({ name: 'listing', text: 'Hello World' }); // $ExpectType HTMLPreElement -createHtmlElement({ name: 'listing', html: '🦄', text: 'Hello World' }); // $ExpectError - -createHtmlElement({ name: 'foo' }); // $ExpectType HTMLElement -// $ExpectType HTMLElement -createHtmlElement({ - name: 'foo', - attributes: { - class: 'unicorn', - rainbow: true, - horse: false, - number: 1, - multiple: ['a', 'b'], - }, -}); -createHtmlElement({ name: 'foo', html: '🦄' }); // $ExpectType HTMLElement -createHtmlElement({ name: 'foo', text: 'Hello World' }); // $ExpectType HTMLElement -createHtmlElement({ name: 'foo', html: '🦄', text: 'Hello World' }); // $ExpectError diff --git a/types/create-html-element/ts3.1/index.d.ts b/types/create-html-element/ts3.1/index.d.ts deleted file mode 100644 index 113f9ba588..0000000000 --- a/types/create-html-element/ts3.1/index.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -export = createHtmlElement; - -declare function createHtmlElement( - options?: createHtmlElement.OptionsWithoutTagName -): HTMLDivElement; -declare function createHtmlElement( - options: createHtmlElement.Options -): HTMLElementTagNameMap[K]; -/** @deprecated */ -declare function createHtmlElement( - options: createHtmlElement.Options -): HTMLElementDeprecatedTagNameMap[K]; -declare function createHtmlElement(options: createHtmlElement.Options): HTMLElement; - -declare namespace createHtmlElement { - type Without = { [P in Exclude]?: never }; - type XOR = (T | U) extends object ? (Without & U) | (Without & T) : T | U; - - interface AttributesOptions { - attributes?: { [key: string]: string | boolean | number | string[] }; - } - - interface HtmlOptions { - html?: string; - } - - interface TextOptions { - text?: string; - } - - type OptionsWithoutTagName = AttributesOptions & XOR; - - interface OptionsWithTagName extends AttributesOptions { - name: K; - } - - type Options = OptionsWithTagName & XOR; -} diff --git a/types/create-html-element/ts3.1/tsconfig.json b/types/create-html-element/ts3.1/tsconfig.json deleted file mode 100644 index 6c82d9de10..0000000000 --- a/types/create-html-element/ts3.1/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../../", - "typeRoots": [ - "../../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "create-html-element-tests.ts" - ] -} diff --git a/types/create-html-element/ts3.1/tslint.json b/types/create-html-element/ts3.1/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/create-html-element/ts3.1/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/create-html-element/tsconfig.json b/types/create-html-element/tsconfig.json deleted file mode 100644 index 44a7146986..0000000000 --- a/types/create-html-element/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "create-html-element-tests.ts" - ] -} diff --git a/types/create-html-element/tslint.json b/types/create-html-element/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/create-html-element/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/crypto-hash/crypto-hash-tests.ts b/types/crypto-hash/crypto-hash-tests.ts deleted file mode 100644 index 73e62ad1c6..0000000000 --- a/types/crypto-hash/crypto-hash-tests.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { sha1, sha256, sha384, sha512 } from 'crypto-hash'; - -// $ExpectType Promise -sha1('🦄'); -// $ExpectType Promise -sha1('🦄', { outputFormat: 'buffer' }); -// $ExpectType Promise -sha1('🦄', { outputFormat: 'hex' }); - -// $ExpectType Promise -sha256('🦄'); -// $ExpectType Promise -sha256('🦄', { outputFormat: 'buffer' }); -// $ExpectType Promise -sha256('🦄', { outputFormat: 'hex' }); - -// $ExpectType Promise -sha384('🦄'); -// $ExpectType Promise -sha384('🦄', { outputFormat: 'buffer' }); -// $ExpectType Promise -sha384('🦄', { outputFormat: 'hex' }); - -// $ExpectType Promise -sha512('🦄'); -// $ExpectType Promise -sha512('🦄', { outputFormat: 'buffer' }); -// $ExpectType Promise -sha512('🦄', { outputFormat: 'hex' }); diff --git a/types/crypto-hash/index.d.ts b/types/crypto-hash/index.d.ts deleted file mode 100644 index c22864b2ae..0000000000 --- a/types/crypto-hash/index.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -// Type definitions for crypto-hash 1.0 -// Project: https://github.com/sindresorhus/crypto-hash#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export function sha1( - buffer: string | ArrayBuffer | ArrayBufferView, - options?: OptionsHexOutput -): Promise; -export function sha1( - buffer: string | ArrayBuffer | ArrayBufferView, - options: OptionBufferOutput -): Promise; - -export function sha256( - buffer: string | ArrayBuffer | ArrayBufferView, - options?: OptionsHexOutput -): Promise; -export function sha256( - buffer: string | ArrayBuffer | ArrayBufferView, - options: OptionBufferOutput -): Promise; - -export function sha384( - buffer: string | ArrayBuffer | ArrayBufferView, - options?: OptionsHexOutput -): Promise; -export function sha384( - buffer: string | ArrayBuffer | ArrayBufferView, - options: OptionBufferOutput -): Promise; - -export function sha512( - buffer: string | ArrayBuffer | ArrayBufferView, - options?: OptionsHexOutput -): Promise; -export function sha512( - buffer: string | ArrayBuffer | ArrayBufferView, - options: OptionBufferOutput -): Promise; - -export interface OptionsHexOutput { - outputFormat?: 'hex'; -} - -export interface OptionBufferOutput { - outputFormat: 'buffer'; -} diff --git a/types/crypto-hash/tsconfig.json b/types/crypto-hash/tsconfig.json deleted file mode 100644 index 410ee34985..0000000000 --- a/types/crypto-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", - "crypto-hash-tests.ts" - ] -} diff --git a/types/crypto-hash/tslint.json b/types/crypto-hash/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/crypto-hash/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/crypto-random-string/crypto-random-string-tests.ts b/types/crypto-random-string/crypto-random-string-tests.ts deleted file mode 100644 index 1a66c25981..0000000000 --- a/types/crypto-random-string/crypto-random-string-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import generate = require('crypto-random-string'); - -// $ExpectType string -generate(10); diff --git a/types/crypto-random-string/index.d.ts b/types/crypto-random-string/index.d.ts deleted file mode 100644 index dc41e18428..0000000000 --- a/types/crypto-random-string/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -// Type definitions for crypto-random-string 1.0 -// Project: https://github.com/sindresorhus/crypto-random-string -// Definitions by: Manuel Warum -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/** - * Generate a hexadecimal string of the given length. - * @param length the length of the random string. - * @return a string of the specified length. - */ -declare function cryptoRandomString(length: number): string; - -export = cryptoRandomString; diff --git a/types/crypto-random-string/tsconfig.json b/types/crypto-random-string/tsconfig.json deleted file mode 100644 index fd68e9d080..0000000000 --- a/types/crypto-random-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", - "crypto-random-string-tests.ts" - ] -} diff --git a/types/crypto-random-string/tslint.json b/types/crypto-random-string/tslint.json deleted file mode 100644 index f93cf8562a..0000000000 --- a/types/crypto-random-string/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "dtslint/dt.json" -} diff --git a/types/cycled/cycled-tests.ts b/types/cycled/cycled-tests.ts deleted file mode 100644 index f5945be629..0000000000 --- a/types/cycled/cycled-tests.ts +++ /dev/null @@ -1,53 +0,0 @@ -import Cycled = require('cycled'); - -const cycled = new Cycled([1, 2, 3]); -// $ExpectType Cycled -cycled; - -// $ExpectType number -cycled.index; -cycled.index = 1; - -// $ExpectType number -cycled.current(); - -// $ExpectType number -cycled.next(); - -// $ExpectType number -cycled.previous(); - -// $ExpectType number -cycled.step(10); - -// $ExpectType Iterator -cycled.indefinitely(); - -// $ExpectType Iterator -cycled.indefinitelyReversed(); - -// $ExpectType number[] -[...cycled]; - -class TabComponent { - views: Cycled; - activeView: string; - - constructor(views: string[]) { - this.activeView = views[0]; - this.views = new Cycled(views); - } - - setActiveView(view: string) { - this.activeView = view; - this.views.index = this.views.indexOf(view); - } - - nextView() { - this.setActiveView(this.views.next()); - } - - previousView() { - this.setActiveView(this.views.previous()); - } -} diff --git a/types/cycled/index.d.ts b/types/cycled/index.d.ts deleted file mode 100644 index a0940934b8..0000000000 --- a/types/cycled/index.d.ts +++ /dev/null @@ -1,58 +0,0 @@ -// Type definitions for cycled 1.0 -// Project: https://github.com/sindresorhus/cycled#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = Cycled; - -// tslint:disable:jsdoc-format -declare class Cycled extends Array { - /** - * Initiates an array subclass with the methods documented below. - * Since it's an array, you can use all the normal array methods on it. - * - * The instance is an iterable that will cycle through the array. - * It will cycle through the number of elements equaling the length of the array from the current index. - * ``` -const numberCycle = new Cycled([1,2,3,4,5]); - -console.log(...numberCycle); -//=> 1 2 3 4 5 -``` - * - * @param input - */ - constructor(input: T[]); - - /** - * Get or set the current index. - */ - index: number; - - /** - * Returns the current item. - */ - current(): T; - /** - * Returns the next item. - */ - next(): T; - /** - * Returns the previous item. - */ - previous(): T; - /** - * Returns the item by going the given amount of `steps` through the array. - * For example, calling `step(2)` is like calling `next()` twice. You go backward by specifying a negative number. - * @param steps - */ - step(steps: number): T; - /** - * Returns an iterable that will cycle through the array indefinitely. - */ - indefinitely(): Iterator; - /** - * Returns an iterable that will cycle through the array backward indefinitely. - */ - indefinitelyReversed(): Iterator; -} diff --git a/types/cycled/tsconfig.json b/types/cycled/tsconfig.json deleted file mode 100644 index a8fb15e11e..0000000000 --- a/types/cycled/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", - "cycled-tests.ts" - ] -} diff --git a/types/cycled/tslint.json b/types/cycled/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/cycled/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/dargs/dargs-tests.ts b/types/dargs/dargs-tests.ts deleted file mode 100644 index 86ded8a0a8..0000000000 --- a/types/dargs/dargs-tests.ts +++ /dev/null @@ -1,29 +0,0 @@ -import dargs = require('dargs'); - -const input = { - _: ['some', 'option'], - foo: 'bar', - hello: true, - cake: false, - camelCase: 5, - multiple: ['value', 'value2'], - pieKind: 'cherry', - sad: ':(' -}; - -const excludes = ['sad', /.*Kind$/]; -const includes = ['camelCase', 'multiple', 'sad', /^pie.*/]; -const aliases = {file: 'f'}; - -// $ExpectType string[] -dargs(input, {excludes}); -dargs(input, {excludes, includes}); -dargs(input, {includes}); -dargs({ - foo: 'bar', - hello: true, - file: 'baz' -}, {aliases}); -dargs({foo: 'bar'}, {useEquals: false}); -dargs({foo: 'bar'}, {ignoreFalse: true}); -dargs({fooBar: 'baz'}, {allowCamelCase: true}); diff --git a/types/dargs/index.d.ts b/types/dargs/index.d.ts deleted file mode 100644 index 62ad42a9c1..0000000000 --- a/types/dargs/index.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -// Type definitions for dargs 5.1 -// Project: https://github.com/sindresorhus/dargs#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.2 - -export = dargs; - -declare function dargs(input: object, options?: dargs.Options): string[]; - -declare namespace dargs { - interface Options { - excludes?: ReadonlyArray; - includes?: ReadonlyArray; - aliases?: { [key: string]: string }; - useEquals?: boolean; - ignoreFalse?: boolean; - allowCamelCase?: boolean; - } -} diff --git a/types/dargs/tsconfig.json b/types/dargs/tsconfig.json deleted file mode 100644 index 88aef9d923..0000000000 --- a/types/dargs/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", - "dargs-tests.ts" - ] -} \ No newline at end of file diff --git a/types/dargs/tslint.json b/types/dargs/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/dargs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/debounce-fn/debounce-fn-tests.ts b/types/debounce-fn/debounce-fn-tests.ts deleted file mode 100644 index 9f9d3881e9..0000000000 --- a/types/debounce-fn/debounce-fn-tests.ts +++ /dev/null @@ -1,10 +0,0 @@ -import debounceFn = require('debounce-fn'); - -const debounced = debounceFn((s: string) => true); -debounced; // $ExpectType ((s: string) => boolean | undefined) & { cancel(): void; } - -debounceFn((s: string) => true); -debounceFn((s: string) => true, { wait: 100 }); -debounceFn((s: string) => true, { immediate: true }); - -debounced.cancel(); diff --git a/types/debounce-fn/index.d.ts b/types/debounce-fn/index.d.ts deleted file mode 100644 index 01e147a14a..0000000000 --- a/types/debounce-fn/index.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -// Type definitions for debounce-fn 1.0 -// Project: https://github.com/sindresorhus/debounce-fn#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 3.0 - -export = debounce; - -/** - * Returns a debounced function that delays calling the `input` function until after `wait` milliseconds - * have elapsed since the last time the debounced function was called. - * - * It comes with a `.cancel()` method to cancel any scheduled `input` function calls. - */ -declare function debounce( - input: (...args: TArgs) => TResult, - options?: debounce.Options -): ((...args: TArgs) => TResult | undefined) & { cancel(): void }; - -declare namespace debounce { - interface Options { - /** - * Time to wait until the `input` function is called. - * @default 0 - */ - wait?: number; - /** - * Trigger the function on the leading edge instead of the trailing edge of the `wait` interval. - * For example, can be useful for preventing accidental double-clicks on a "submit" button - * from firing a second time. - */ - immediate?: boolean; - } -} diff --git a/types/debounce-fn/tsconfig.json b/types/debounce-fn/tsconfig.json deleted file mode 100644 index f2d90018fb..0000000000 --- a/types/debounce-fn/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", - "debounce-fn-tests.ts" - ] -} diff --git a/types/debounce-fn/tslint.json b/types/debounce-fn/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/debounce-fn/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/define-lazy-prop/define-lazy-prop-tests.ts b/types/define-lazy-prop/define-lazy-prop-tests.ts deleted file mode 100644 index 31efb3f861..0000000000 --- a/types/define-lazy-prop/define-lazy-prop-tests.ts +++ /dev/null @@ -1,10 +0,0 @@ -import defineLazyProp = require('define-lazy-prop'); - -const unicorn = { - foo: 'bar' -}; - -const rainbowUnicorn = defineLazyProp(unicorn, 'rainbow', () => 1); - -rainbowUnicorn.rainbow; // $ExpectType number -rainbowUnicorn.foo; // $ExpectType string diff --git a/types/define-lazy-prop/index.d.ts b/types/define-lazy-prop/index.d.ts deleted file mode 100644 index 4cffe79a66..0000000000 --- a/types/define-lazy-prop/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Type definitions for define-lazy-prop 1.0 -// Project: https://github.com/sindresorhus/define-lazy-prop#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -export = defineLazyProp; - -declare function defineLazyProp(obj: O, prop: P, fn: () => T): O & {[K in P]: T}; diff --git a/types/define-lazy-prop/tsconfig.json b/types/define-lazy-prop/tsconfig.json deleted file mode 100644 index e72c943c52..0000000000 --- a/types/define-lazy-prop/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", - "define-lazy-prop-tests.ts" - ] -} \ No newline at end of file diff --git a/types/define-lazy-prop/tslint.json b/types/define-lazy-prop/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/define-lazy-prop/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/detect-newline/detect-newline-tests.ts b/types/detect-newline/detect-newline-tests.ts deleted file mode 100644 index b660d01ffc..0000000000 --- a/types/detect-newline/detect-newline-tests.ts +++ /dev/null @@ -1,7 +0,0 @@ -import detectNewline = require('detect-newline'); - -const res1 = detectNewline('foo\nbar\nbaz\r\n'); -res1; // $ExpectType "\r\n" | "\n" | null - -const res2 = detectNewline.graceful('foo\nbar\nbaz\r\n'); -res2; // $ExpectType "\r\n" | "\n" diff --git a/types/detect-newline/index.d.ts b/types/detect-newline/index.d.ts deleted file mode 100644 index 4a7aaad673..0000000000 --- a/types/detect-newline/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -// Type definitions for detect-newline 2.1 -// Project: https://github.com/sindresorhus/detect-newline#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = detectNewline; - -declare function detectNewline(str: string): '\r\n' | '\n' | null; - -declare namespace detectNewline { - function graceful(str: string): '\r\n' | '\n'; -} diff --git a/types/detect-newline/tsconfig.json b/types/detect-newline/tsconfig.json deleted file mode 100644 index a94c517f93..0000000000 --- a/types/detect-newline/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-newline-tests.ts" - ] -} \ No newline at end of file diff --git a/types/detect-newline/tslint.json b/types/detect-newline/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/detect-newline/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/devtools-detect/devtools-detect-tests.ts b/types/devtools-detect/devtools-detect-tests.ts deleted file mode 100644 index 0c13b86707..0000000000 --- a/types/devtools-detect/devtools-detect-tests.ts +++ /dev/null @@ -1,10 +0,0 @@ -// check if it's open -console.log('is DevTools open?', window.devtools.open); -// check it's orientation, null if not open -console.log('and DevTools orientation?', window.devtools.orientation); - -// get notified when it's opened/closed or orientation changes -window.addEventListener('devtoolschange', function (e) { - console.log('is DevTools open?', e.detail.open); - console.log('and DevTools orientation?', e.detail.orientation); -}); diff --git a/types/devtools-detect/index.d.ts b/types/devtools-detect/index.d.ts deleted file mode 100644 index c66d63f0fa..0000000000 --- a/types/devtools-detect/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Type definitions for ajv -// Project: https://github.com/sindresorhus/devtools-detect -// Definitions by: York Yao -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -type DevTools = { - open: boolean; - orientation: "vertical" | "horizontal"; -} -interface DevToolsEvent extends Event { - detail: DevTools; -} -interface Window { - devtools: DevTools; - addEventListener(type: "devtoolschange", listener: (ev: DevToolsEvent) => any, useCapture?: boolean): void; -} diff --git a/types/devtools-detect/tsconfig.json b/types/devtools-detect/tsconfig.json deleted file mode 100644 index 8ab64cb68c..0000000000 --- a/types/devtools-detect/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "devtools-detect-tests.ts" - ] -} \ No newline at end of file diff --git a/types/devtools-detect/tslint.json b/types/devtools-detect/tslint.json deleted file mode 100644 index 3d59f55fda..0000000000 --- a/types/devtools-detect/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/dot-prop/dot-prop-tests.ts b/types/dot-prop/dot-prop-tests.ts deleted file mode 100644 index 7b21eb76c9..0000000000 --- a/types/dot-prop/dot-prop-tests.ts +++ /dev/null @@ -1,23 +0,0 @@ -/// -import dotProp = require('dot-prop'); -import { get, has, set } from 'dot-prop'; - -get({foo: {bar: 'unicorn'}}, 'foo.bar'); -dotProp.get({foo: {bar: 'a'}}, 'foo.notDefined.deep'); -dotProp.get({foo: {bar: 'a'}}, 'foo.notDefined.deep', 'default value'); -dotProp.get({foo: {'dot.dot': 'unicorn'}}, 'foo.dot\\.dot'); - -const obj = {foo: {bar: 'a'}}; -set(obj, 'foo.bar', 'b'); -console.log(obj); -dotProp.set(obj, 'foo.baz', 'x'); -console.log(obj); - -has({foo: {bar: 'unicorn'}}, 'foo.bar'); -dotProp.has({foo: {bar: 'unicorn'}}, 'foo.bar'); - -dotProp.delete(obj, 'foo.bar'); -console.log(obj); -(obj as any).foo.bar = {x: 'y', y: 'x'}; -dotProp.delete(obj, 'foo.bar.x'); -console.log(obj); diff --git a/types/dot-prop/index.d.ts b/types/dot-prop/index.d.ts deleted file mode 100644 index 73078c456e..0000000000 --- a/types/dot-prop/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Type definitions for dot-prop 4.2 -// Project: https://github.com/sindresorhus/dot-prop#readme -// Definitions by: Sam Verschueren -// BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.2 - -interface DotProp { - get(obj: object, path: string, defaultValue?: any): any; - set(obj: T, path: string, value: any): T; - has(obj: object, path: string): boolean; - delete(obj: object, path: string): boolean; -} - -declare const dotProp: DotProp; - -export = dotProp; diff --git a/types/dot-prop/tsconfig.json b/types/dot-prop/tsconfig.json deleted file mode 100644 index cbacf32b41..0000000000 --- a/types/dot-prop/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", - "dot-prop-tests.ts" - ] -} \ No newline at end of file diff --git a/types/dot-prop/tslint.json b/types/dot-prop/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/dot-prop/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/dot-prop/v2/dot-prop-tests.ts b/types/dot-prop/v2/dot-prop-tests.ts deleted file mode 100644 index f9991f8d5b..0000000000 --- a/types/dot-prop/v2/dot-prop-tests.ts +++ /dev/null @@ -1,10 +0,0 @@ -import * as dotProp from 'dot-prop'; - -dotProp.get({foo: {bar: 'unicorn'}}, 'foo.bar'); -dotProp.get({foo: {bar: 'a'}}, 'foo.notDefined.deep'); -dotProp.get({foo: {'dot.dot': 'unicorn'}}, 'foo.dot\\.dot'); - -const obj = {foo: {bar: 'a'}}; -dotProp.set(obj, 'foo.bar', 'b'); -dotProp.set(obj, 'foo.baz', 'x'); -dotProp.set(obj, 'foo.dot\\.dot', 'unicorn'); diff --git a/types/dot-prop/v2/index.d.ts b/types/dot-prop/v2/index.d.ts deleted file mode 100644 index 86964e32a7..0000000000 --- a/types/dot-prop/v2/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Type definitions for dot-prop 2.x -// Project: https://github.com/sindresorhus/dot-prop -// Definitions by: Sam Verschueren -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export function get(object: any, path: string): any; -export function set(object: any, path: string, value: any): void; diff --git a/types/dot-prop/v2/tsconfig.json b/types/dot-prop/v2/tsconfig.json deleted file mode 100644 index f5770f3083..0000000000 --- a/types/dot-prop/v2/tsconfig.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "strictFunctionTypes": true, - "baseUrl": "../../", - "typeRoots": [ - "../../" - ], - "paths": { - "dot-prop": [ - "dot-prop/v2" - ] - }, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "dot-prop-tests.ts" - ] -} \ No newline at end of file diff --git a/types/dot-prop/v2/tslint.json b/types/dot-prop/v2/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/dot-prop/v2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/electron-config/electron-config-tests.ts b/types/electron-config/electron-config-tests.ts deleted file mode 100644 index a5ac9e9ec3..0000000000 --- a/types/electron-config/electron-config-tests.ts +++ /dev/null @@ -1,29 +0,0 @@ -import ElectronConfig = require('electron-config'); - -new ElectronConfig({ - defaults: {}, -}); - -new ElectronConfig({ - name: 'myConfiguration', -}); - -const electronConfig = new ElectronConfig(); - -electronConfig.set('foo', 'bar'); -electronConfig.set({ - foo: 'bar', - foo2: 'bar2', -}); -electronConfig.delete('foo'); -electronConfig.get('foo'); -electronConfig.has('foo'); -electronConfig.clear(); -electronConfig.size; -electronConfig.store; - -electronConfig.store = { - foo: 'bar', -}; - -electronConfig.path; diff --git a/types/electron-config/index.d.ts b/types/electron-config/index.d.ts deleted file mode 100644 index 9c2e299651..0000000000 --- a/types/electron-config/index.d.ts +++ /dev/null @@ -1,70 +0,0 @@ -// Type definitions for electron-config 0.2 -// Project: https://github.com/sindresorhus/electron-config -// Definitions by: Jose M. Medina , Daniel P. Alvarez -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -interface ElectronConfigOptions { - /** - * Default config. - */ - defaults?: {}; - - /** - * Name of the config file (without extension). - */ - name?: string; -} - -declare class ElectronConfig implements Iterable<[string, string | number | boolean | symbol | {}]> { - /** - * gets the item count - */ - size: number; - - /** - * Get all the config as an object or replace the current config with an object - */ - store: {}; - - /** - * Get the path to the config file. - */ - path: string; - constructor(options?: ElectronConfigOptions); - - /** - * Sets an item - */ - set(key: string, value: any): void; - - /** - * Sets multiple items at once - */ - set(object: {}): void; - - /** - * deletes an item - */ - delete(key: string): void; - - /** - * retrieves an item - */ - get(key: string): any; - - /** - * Checks if an item exists - */ - has(key: string): boolean; - - /** - * deletes all items - */ - clear(): void; - - [Symbol.iterator](): Iterator<[string, string | number | boolean | symbol | {}]>; -} - -declare namespace ElectronConfig {} // https://github.com/Microsoft/TypeScript/issues/5073 - -export = ElectronConfig; diff --git a/types/electron-config/tsconfig.json b/types/electron-config/tsconfig.json deleted file mode 100644 index 8462205033..0000000000 --- a/types/electron-config/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", - "electron-config-tests.ts" - ] -} \ No newline at end of file diff --git a/types/electron-config/tslint.json b/types/electron-config/tslint.json deleted file mode 100644 index e830836d23..0000000000 --- a/types/electron-config/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "dtslint/dt.json" , - "rules": { - "no-namespace":false, - "object-literal-key-quotes": false - } -} diff --git a/types/electron-debug/electron-debug-tests.ts b/types/electron-debug/electron-debug-tests.ts deleted file mode 100644 index 15910e76d7..0000000000 --- a/types/electron-debug/electron-debug-tests.ts +++ /dev/null @@ -1,8 +0,0 @@ -import debug = require('electron-debug') - -debug({enabled: false}); - -debug({showDevTools: true}); -debug({showDevTools: 'right'}); -debug({showDevTools: 'bottom'}); -debug({showDevTools: 'undocked'}); diff --git a/types/electron-debug/index.d.ts b/types/electron-debug/index.d.ts deleted file mode 100644 index 4806b7ccf5..0000000000 --- a/types/electron-debug/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Type definitions for electron-debug v1.1.0 -// Project: https://github.com/sindresorhus/electron-debug -// Definitions by: Daniel Perez Alvarez -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/** - * Install keyboard shortcuts and optionally activate DevTools on each - * created BrowserWindow. - */ -declare function electronDebug(options: { - /** Enable debug options. */ - enabled?: boolean; - /** Show DevTools on each created BrowserWindow. */ - showDevTools?: boolean | 'right' | 'bottom' | 'undocked'; -}): void; - -export = electronDebug; diff --git a/types/electron-debug/tsconfig.json b/types/electron-debug/tsconfig.json deleted file mode 100644 index 65a83c7c64..0000000000 --- a/types/electron-debug/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", - "electron-debug-tests.ts" - ] -} \ No newline at end of file diff --git a/types/electron-debug/tslint.json b/types/electron-debug/tslint.json deleted file mode 100644 index 3d59f55fda..0000000000 --- a/types/electron-debug/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/electron-is-dev/electron-is-dev-tests.ts b/types/electron-is-dev/electron-is-dev-tests.ts deleted file mode 100644 index e0415e805d..0000000000 --- a/types/electron-is-dev/electron-is-dev-tests.ts +++ /dev/null @@ -1,3 +0,0 @@ -import isDev = require("electron-is-dev"); - -isDev; // $ExpectType boolean diff --git a/types/electron-is-dev/index.d.ts b/types/electron-is-dev/index.d.ts deleted file mode 100644 index dae998c204..0000000000 --- a/types/electron-is-dev/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Type definitions for electron-is-dev 0.3 -// Project: https://github.com/sindresorhus/electron-is-dev#readme -// Definitions by: Troy McKinnon -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = electron_is_dev; - -/** Whether electron app is running is development environment. */ -declare const electron_is_dev: boolean; diff --git a/types/electron-is-dev/tsconfig.json b/types/electron-is-dev/tsconfig.json deleted file mode 100644 index 1260f76477..0000000000 --- a/types/electron-is-dev/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", - "electron-is-dev-tests.ts" - ] -} \ No newline at end of file diff --git a/types/electron-is-dev/tslint.json b/types/electron-is-dev/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/electron-is-dev/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/electron-store/electron-store-tests.ts b/types/electron-store/electron-store-tests.ts deleted file mode 100644 index 318af19f5c..0000000000 --- a/types/electron-store/electron-store-tests.ts +++ /dev/null @@ -1,58 +0,0 @@ -import ElectronStore = require('electron-store'); - -new ElectronStore({ - defaults: {} -}); - -new ElectronStore({ - name: 'myConfiguration', - cwd: 'unicorn' -}); - -const electronStore = new ElectronStore(); - -electronStore.set('foo', 'bar'); -electronStore.set({ - foo: 'bar', - foo2: 'bar2' -}); -electronStore.delete('foo'); -electronStore.get('foo'); -electronStore.get('foo', 42); -electronStore.has('foo'); -electronStore.clear(); - -electronStore.openInEditor(); - -electronStore.size; -electronStore.store; - -electronStore.store = { - foo: 'bar' -}; - -electronStore.path; - -interface SampleStore { - enabled: boolean; - interval: number; -} - -const typedElectronStore = new ElectronStore({ - defaults: { - enabled: true, - interval: 30000, - }, -}); - -const interval: number = typedElectronStore.get('interval'); -const enabled = false; -typedElectronStore.set('enabled', enabled); -typedElectronStore.set({ - enabled: true, - interval: 10000, -}); - -const offDidChange = typedElectronStore.onDidChange("enabled", (n: boolean | undefined, p: boolean | undefined) => {}); - -offDidChange(); diff --git a/types/electron-store/index.d.ts b/types/electron-store/index.d.ts deleted file mode 100644 index 721386de2f..0000000000 --- a/types/electron-store/index.d.ts +++ /dev/null @@ -1,114 +0,0 @@ -// Type definitions for electron-store 1.3 -// Project: https://github.com/sindresorhus/electron-store -// Definitions by: Daniel Perez Alvarez -// Jakub Synowiec -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -// TypeScript Version: 2.3 - -/// - -import EventEmitter = require("events"); - -type JSONValue = string | number | boolean | JSONObject | JSONArray; - -interface JSONObject { - [x: string]: JSONValue; -} - -interface JSONArray extends Array {} - -interface ElectronStoreOptions { - /** - * Default data. - */ - defaults?: T; - - /** - * Name of the storage file (without extension). - */ - name?: string; - - /** - * Storage file location. Don't specify this unless absolutely necessary! - */ - cwd?: string; - - /** - * When specified, the store will be encrypted using the aes-256-cbc encryption algorithm. - */ - encryptionKey?: string | Buffer; -} - -declare class ElectronStore implements Iterable<[string, JSONValue]> { - constructor(options?: ElectronStoreOptions); - - /** - * Set an item. - */ - set(key: K, value: T[K]): void; - set(key: string, value: any): void; - - /** - * Set multiple items at once. - */ - set(object: Pick | T | JSONObject): void; - - /** - * Get an item or defaultValue if the item does not exist. - */ - get(key: K, defaultValue?: JSONValue): T[K]; - get(key: string, defaultValue?: any): any; - - /** - * Check if an item exists. - */ - has(key: keyof T | string): boolean; - - /** - * Delete an item. - */ - delete(key: keyof T | string): void; - - /** - * Delete all items. - */ - clear(): void; - - /** - * Watches the given key, calling callback on any changes. When a key is first set oldValue - * will be undefined, and when a key is deleted newValue will be undefined. - */ - onDidChange( - key: K, - callback: (newValue: T[K] | undefined, oldValue: T[K] | undefined) => void - ): () => EventEmitter; - onDidChange( - key: string, - callback: (newValue: JSONValue | undefined, oldValue: JSONValue | undefined) => void - ): () => EventEmitter; - - /** - * Get the item count. - */ - size: number; - - /** - * Get all the data as an object or replace the current data with an object. - */ - store: T; - - /** - * Get the path to the storage file. - */ - path: string; - - /** - * Open the storage file in the user's editor. - */ - openInEditor(): void; - - [Symbol.iterator](): Iterator<[string, JSONValue]>; -} - -export = ElectronStore; diff --git a/types/electron-store/tsconfig.json b/types/electron-store/tsconfig.json deleted file mode 100644 index 6f21caec55..0000000000 --- a/types/electron-store/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", - "electron-store-tests.ts" - ] -} \ No newline at end of file diff --git a/types/electron-store/tslint.json b/types/electron-store/tslint.json deleted file mode 100644 index e830836d23..0000000000 --- a/types/electron-store/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "dtslint/dt.json" , - "rules": { - "no-namespace":false, - "object-literal-key-quotes": false - } -} diff --git a/types/electron-unhandled/electron-unhandled-tests.ts b/types/electron-unhandled/electron-unhandled-tests.ts deleted file mode 100644 index 42444658f8..0000000000 --- a/types/electron-unhandled/electron-unhandled-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -import * as unhandled from "electron-unhandled"; - -unhandled({ logger: 'foo' }); // $ExpectError -unhandled({ showDialog: 'bar' }); // $ExpectError -unhandled({ logger: (err: Error) => {}, showDialog: true }); // $ExpectType void diff --git a/types/electron-unhandled/index.d.ts b/types/electron-unhandled/index.d.ts deleted file mode 100644 index d560e05b80..0000000000 --- a/types/electron-unhandled/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Type definitions for electron-unhandled 1.1 -// Project: https://github.com/sindresorhus/electron-unhandled -// Definitions by: Olegs Jeremejevs -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare namespace unhandled { - interface Options { - logger?: (err: Error) => void; - showDialog?: boolean; - } -} - -declare function unhandled(options?: unhandled.Options): void; - -export = unhandled; diff --git a/types/electron-unhandled/tsconfig.json b/types/electron-unhandled/tsconfig.json deleted file mode 100644 index fa790385fe..0000000000 --- a/types/electron-unhandled/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", - "electron-unhandled-tests.ts" - ] -} diff --git a/types/electron-unhandled/tslint.json b/types/electron-unhandled/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/electron-unhandled/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/electron-util/electron-util-tests.ts b/types/electron-util/electron-util-tests.ts deleted file mode 100644 index 074be207ae..0000000000 --- a/types/electron-util/electron-util-tests.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { - activeWindow, - app, - appReady, - chromeVersion, - electronVersion, - fixPathForAsarUnpack, - is, - platform, - runJS -} from 'electron-util'; - -app.app; // $ExpectType any -app.BrowserWindow; // $ExpectType any -app.dialog; // $ExpectType any - -is.macos; // $ExpectType boolean -is.linux; // $ExpectType boolean -is.windows; // $ExpectType boolean -is.main; // $ExpectType boolean -is.renderer; // $ExpectType boolean -is.development; // $ExpectType boolean -is.usingAsar; // $ExpectType boolean -is.macAppStore; // $ExpectType boolean -is.windowsStore; // $ExpectType boolean - -appReady; // $ExpectType Promise -electronVersion; // $ExpectType string -chromeVersion; // $ExpectType string - -// $ExpectType string -platform({ - macos: 'm', - windows: 'w', - linux: 'l', - default: '' -}); - -activeWindow(); // $ExpectType any -runJS(''); // $ExpectType Promise -fixPathForAsarUnpack('file://test.txt'); // $ExpectType string diff --git a/types/electron-util/index.d.ts b/types/electron-util/index.d.ts deleted file mode 100644 index 911b0d758c..0000000000 --- a/types/electron-util/index.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -// Type definitions for electron-util 0.2 -// Project: https://github.com/sindresorhus/electron-util, https://github.com/sindresorhus/electron-util -// Definitions by: Kai Puth -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export const app: { - app: any, - BrowserWindow: any, - dialog: any, -}; - -export const is: { - macos: boolean, - linux: boolean, - windows: boolean, - main: boolean, - renderer: boolean, - development: boolean, - usingAsar: boolean, - macAppStore: boolean, - windowsStore: boolean, -}; - -export const appReady: Promise; -export const electronVersion: string; -export const chromeVersion: string; - -export interface PlatformsParameter { - macos?: T | (() => T); - windows?: T | (() => T); - linux?: T | (() => T); - default?: T | (() => T); -} - -export function platform(platforms: PlatformsParameter): T; - -export function activeWindow(): any; - -export function runJS(code: string, window?: any): Promise; - -export function fixPathForAsarUnpack(path: string): string; diff --git a/types/electron-util/tsconfig.json b/types/electron-util/tsconfig.json deleted file mode 100644 index 8ec587ccdf..0000000000 --- a/types/electron-util/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", - "electron-util-tests.ts" - ] -} \ No newline at end of file diff --git a/types/electron-util/tslint.json b/types/electron-util/tslint.json deleted file mode 100644 index f93cf8562a..0000000000 --- a/types/electron-util/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "dtslint/dt.json" -} diff --git a/types/elegant-spinner/elegant-spinner-tests.ts b/types/elegant-spinner/elegant-spinner-tests.ts deleted file mode 100644 index 5d2ddb9dc7..0000000000 --- a/types/elegant-spinner/elegant-spinner-tests.ts +++ /dev/null @@ -1,8 +0,0 @@ -import elegantSpinner = require('elegant-spinner'); - -const frameFunction = elegantSpinner(); - -// $ExpectType string -frameFunction(); - -const frames = elegantSpinner.frames; diff --git a/types/elegant-spinner/index.d.ts b/types/elegant-spinner/index.d.ts deleted file mode 100644 index fbb8d4710a..0000000000 --- a/types/elegant-spinner/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -// Type definitions for elegant-spinner 1.0 -// Project: https://github.com/sindresorhus/elegant-spinner -// Definitions by: Daniel Byrne -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = elegantSpinner; - -declare function elegantSpinner(): () => string; - -declare namespace elegantSpinner { - const frames: ReadonlyArray; -} diff --git a/types/elegant-spinner/tsconfig.json b/types/elegant-spinner/tsconfig.json deleted file mode 100644 index cdd768d4c6..0000000000 --- a/types/elegant-spinner/tsconfig.json +++ /dev/null @@ -1,19 +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", - "elegant-spinner-tests.ts" - ] -} diff --git a/types/elegant-spinner/tslint.json b/types/elegant-spinner/tslint.json deleted file mode 100644 index d88586e5bd..0000000000 --- a/types/elegant-spinner/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "dtslint/dt.json" -} diff --git a/types/empty-trash/empty-trash-tests.ts b/types/empty-trash/empty-trash-tests.ts deleted file mode 100644 index 296ec63745..0000000000 --- a/types/empty-trash/empty-trash-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -import emptyTrash = require('empty-trash'); - -(async () => { - await emptyTrash(); -})(); diff --git a/types/empty-trash/index.d.ts b/types/empty-trash/index.d.ts deleted file mode 100644 index ef3fca3040..0000000000 --- a/types/empty-trash/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Type definitions for empty-trash 2.1 -// Project: https://github.com/sindresorhus/empty-trash#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.1 - -export = emptyTrash; - -declare function emptyTrash(): Promise; diff --git a/types/empty-trash/tsconfig.json b/types/empty-trash/tsconfig.json deleted file mode 100644 index 172bf7299a..0000000000 --- a/types/empty-trash/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", - "empty-trash-tests.ts" - ] -} diff --git a/types/empty-trash/tslint.json b/types/empty-trash/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/empty-trash/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/file-url/file-url-tests.ts b/types/file-url/file-url-tests.ts deleted file mode 100644 index 463545b49f..0000000000 --- a/types/file-url/file-url-tests.ts +++ /dev/null @@ -1,13 +0,0 @@ -import fileUrl = require("file-url"); - -// from https://raw.githubusercontent.com/sindresorhus/file-url/df60ecfe08f9844569c794e92ecc2c53d1dd298d/readme.md - -fileUrl('unicorn.jpg'); -// => 'file:///Users/sindresorhus/dev/file-url/unicorn.jpg' - -fileUrl('/Users/pony/pics/unicorn.jpg'); -// => 'file:///Users/pony/pics/unicorn.jpg' - -// passing {resolve: false} will make it not call path.resolve() on the path -fileUrl('unicorn.jpg', {resolve: false}); -// => 'file:///unicorn.jpg' diff --git a/types/file-url/index.d.ts b/types/file-url/index.d.ts deleted file mode 100644 index 0772a16e38..0000000000 --- a/types/file-url/index.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -// Type definitions for file-url 2.0 -// Project: https://github.com/sindresorhus/file-url -// Definitions by: coderslagoon -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/* - Original typings for 1.0 were provided by - "MEDIA CHECK s.r.o. ", - Did not pass the tslint check, hence mentioning it here. -*/ - -/** - * Options for the fileUrl() API. - */ -interface FileUrlOptions { - /** - * Passing false will make it not call path.resolve() on the path. - */ - resolve?: boolean; -} - -/** - * Convert a path to a file URL. - * @param path File path to convert. - * @param options Options to use. - * @return File URL. - */ -declare function fileUrl(path: string, options?: FileUrlOptions): string; - -/** - * Convert a path to a file URL. - */ -export = fileUrl; diff --git a/types/file-url/tsconfig.json b/types/file-url/tsconfig.json deleted file mode 100644 index 4a6e413ce0..0000000000 --- a/types/file-url/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", - "file-url-tests.ts" - ] -} \ No newline at end of file diff --git a/types/file-url/tslint.json b/types/file-url/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/file-url/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/filter-console/filter-console-tests.ts b/types/filter-console/filter-console-tests.ts deleted file mode 100644 index 18bb766d32..0000000000 --- a/types/filter-console/filter-console-tests.ts +++ /dev/null @@ -1,8 +0,0 @@ -import filterConsole = require('filter-console'); - -const disableFilter = filterConsole(['🐼']); -disableFilter; // $ExpectType () => void -filterConsole([/🐼/]); -filterConsole([input => input === '🐼']); - -disableFilter(); diff --git a/types/filter-console/index.d.ts b/types/filter-console/index.d.ts deleted file mode 100644 index 58ee621211..0000000000 --- a/types/filter-console/index.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -// Type definitions for filter-console 0.1 -// Project: https://github.com/sindresorhus/filter-console#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.1 - -/// - -export = filterConsole; - -/** - * Filter out unwanted `console.log()` output. - * Can be useful when you don't control the output, for example, filtering out PropType warnings from a - * third-party React component. - * - * @param excludePatterns Console output that matches any of the given patterns are filtered from being logged. - * The patterns are matched against what would be logged and not the `console` method input arguments directly. - * Meaning an exclude pattern of `'foo bar'` will match `console.log('foo %s', 'bar')`. - * @returns A function, which when called, disables the filter. - */ -declare function filterConsole( - excludePatterns: Array boolean)>, - options?: filterConsole.Options -): () => void; - -declare namespace filterConsole { - interface Options { - /** - * Console methods to filter. - * @default ['log', 'debug', 'info', 'warn', 'error'] - */ - methods?: Array<'log' | 'debug' | 'info' | 'warn' | 'error'>; - - /** - * Use a custom `console` object. Can be useful for testing or mocking. - */ - console?: Console; - } - - type Console = Record< - 'log' | 'debug' | 'info' | 'warn' | 'error', - (message?: any, ...optionalParams: any[]) => void - >; -} diff --git a/types/filter-console/tsconfig.json b/types/filter-console/tsconfig.json deleted file mode 100644 index 34ed881aab..0000000000 --- a/types/filter-console/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", - "filter-console-tests.ts" - ] -} diff --git a/types/filter-console/tslint.json b/types/filter-console/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/filter-console/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/find-versions/find-versions-tests.ts b/types/find-versions/find-versions-tests.ts deleted file mode 100644 index e92e6d9848..0000000000 --- a/types/find-versions/find-versions-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import findVersions = require('find-versions'); - -findVersions('node v1.0.0'); // $ExpectType string[] -findVersions('1.0', { loose: true }); // $ExpectType string[] diff --git a/types/find-versions/index.d.ts b/types/find-versions/index.d.ts deleted file mode 100644 index 9531c1628f..0000000000 --- a/types/find-versions/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for find-versions 3.0 -// Project: https://github.com/sindresorhus/find-versions -// Definitions by: Leonid Logvinov -// Chris Arnesen -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare function findVersions(version: string, options?: { loose: boolean }): string[]; -export = findVersions; diff --git a/types/find-versions/tsconfig.json b/types/find-versions/tsconfig.json deleted file mode 100644 index 19c09a9df8..0000000000 --- a/types/find-versions/tsconfig.json +++ /dev/null @@ -1,16 +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", "find-versions-tests.ts"] -} diff --git a/types/find-versions/tslint.json b/types/find-versions/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/find-versions/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/first-run/first-run-tests.ts b/types/first-run/first-run-tests.ts deleted file mode 100644 index 5451c7c88c..0000000000 --- a/types/first-run/first-run-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import firstRun = require('first-run'); - -firstRun(); // $ExpectType boolean -firstRun({ name: 'foo' }); // $ExpectType boolean - -firstRun.clear(); diff --git a/types/first-run/index.d.ts b/types/first-run/index.d.ts deleted file mode 100644 index dc92053d03..0000000000 --- a/types/first-run/index.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -// Type definitions for first-run 1.2 -// Project: https://github.com/sindresorhus/first-run -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = firstRun; - -/** - * Check if it's the first time the process is run. - */ -declare function firstRun(options?: firstRun.Options): boolean; - -declare namespace firstRun { - /** - * Clear the state. - */ - function clear(): void; - - interface Options { - /** - * The name used to identify it. - * @default name field in your package.json - */ - name: string; - } -} diff --git a/types/first-run/tsconfig.json b/types/first-run/tsconfig.json deleted file mode 100644 index 6a4ce007ab..0000000000 --- a/types/first-run/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", - "first-run-tests.ts" - ] -} diff --git a/types/first-run/tslint.json b/types/first-run/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/first-run/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/get-emails/get-emails-tests.ts b/types/get-emails/get-emails-tests.ts deleted file mode 100644 index dbdad0f5a3..0000000000 --- a/types/get-emails/get-emails-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import getEmails = require('get-emails'); - -const text = 'Lorem ipsum dolor, sindresorhus@gmail.com consectetuer unicorn@rainbow.cake elit.'; - -// $ExpectType Set -getEmails(text); diff --git a/types/get-emails/index.d.ts b/types/get-emails/index.d.ts deleted file mode 100644 index 2063abc878..0000000000 --- a/types/get-emails/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for get-emails 2.1 -// Project: https://github.com/sindresorhus/get-emails#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = getEmails; - -declare function getEmails(text: string): Set; diff --git a/types/get-emails/tsconfig.json b/types/get-emails/tsconfig.json deleted file mode 100644 index 3590ec5f4b..0000000000 --- a/types/get-emails/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", - "get-emails-tests.ts" - ] -} diff --git a/types/get-emails/tslint.json b/types/get-emails/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/get-emails/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/get-urls/get-urls-tests.ts b/types/get-urls/get-urls-tests.ts deleted file mode 100644 index a901a2aac2..0000000000 --- a/types/get-urls/get-urls-tests.ts +++ /dev/null @@ -1,16 +0,0 @@ -import getUrls = require('get-urls'); - -const text = - 'Lorem ipsum dolor sit amet, //sindresorhus.com consectetuer adipiscing http://yeoman.io elit.'; - -// $ExpectType Set -getUrls(text); - -// $ExpectType Set -getUrls(text, { extractFromQueryString: true }); - -// $ExpectType Set -getUrls(text, { exclude: ['foo'] }); - -// $ExpectType Set -getUrls(text, { defaultProtocol: 'ftp' }); diff --git a/types/get-urls/index.d.ts b/types/get-urls/index.d.ts deleted file mode 100644 index b62c32aa24..0000000000 --- a/types/get-urls/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Type definitions for get-urls 8.0 -// Project: https://github.com/sindresorhus/get-urls#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -import { Options as NormalizeUrlOptions } from 'normalize-url'; - -export = getUrls; - -declare function getUrls(text: string, options?: getUrls.Options): Set; - -declare namespace getUrls { - interface Options extends NormalizeUrlOptions { - extractFromQueryString?: boolean; - exclude?: string[]; - } -} diff --git a/types/get-urls/package.json b/types/get-urls/package.json deleted file mode 100644 index 2dbe933ea4..0000000000 --- a/types/get-urls/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "private": true, - "dependencies": { - "normalize-url": "*" - } -} diff --git a/types/get-urls/tsconfig.json b/types/get-urls/tsconfig.json deleted file mode 100644 index fd5acf72bd..0000000000 --- a/types/get-urls/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", - "get-urls-tests.ts" - ] -} diff --git a/types/get-urls/tslint.json b/types/get-urls/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/get-urls/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/git-remote-origin-url/git-remote-origin-url-tests.ts b/types/git-remote-origin-url/git-remote-origin-url-tests.ts deleted file mode 100644 index 30b5541ab4..0000000000 --- a/types/git-remote-origin-url/git-remote-origin-url-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import gitRemoteOriginUrl = require('git-remote-origin-url'); - -const url1: Promise = gitRemoteOriginUrl(); -const url2: Promise = gitRemoteOriginUrl('my-custom-path'); diff --git a/types/git-remote-origin-url/index.d.ts b/types/git-remote-origin-url/index.d.ts deleted file mode 100644 index 2c8f227953..0000000000 --- a/types/git-remote-origin-url/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for git-remote-origin-url 2.0 -// Project: https://github.com/sindresorhus/git-remote-origin-url#readme -// Definitions by: Jay Anslow -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare function gitRemoteOriginUrl(cwd?: string): Promise; - -export = gitRemoteOriginUrl; diff --git a/types/git-remote-origin-url/tsconfig.json b/types/git-remote-origin-url/tsconfig.json deleted file mode 100644 index 063c49bfe3..0000000000 --- a/types/git-remote-origin-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", - "git-remote-origin-url-tests.ts" - ] -} \ No newline at end of file diff --git a/types/git-remote-origin-url/tslint.json b/types/git-remote-origin-url/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/git-remote-origin-url/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/github-username/github-username-tests.ts b/types/github-username/github-username-tests.ts deleted file mode 100644 index 0caee06bdc..0000000000 --- a/types/github-username/github-username-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import githubUsername = require('github-username'); - -// $ExpectType Promise -githubUsername('sindresorhus@gmail.com', 'deadbeef'); diff --git a/types/github-username/index.d.ts b/types/github-username/index.d.ts deleted file mode 100644 index a1083c7dc3..0000000000 --- a/types/github-username/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for github-username 4.1 -// Project: https://github.com/sindresorhus/github-username#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = githubUsername; - -declare function githubUsername(email: string, token: string): Promise; diff --git a/types/github-username/tsconfig.json b/types/github-username/tsconfig.json deleted file mode 100644 index 33308515f6..0000000000 --- a/types/github-username/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", - "github-username-tests.ts" - ] -} diff --git a/types/github-username/tslint.json b/types/github-username/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/github-username/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/gravatar-url/gravatar-url-tests.ts b/types/gravatar-url/gravatar-url-tests.ts deleted file mode 100644 index 868c9ebd0f..0000000000 --- a/types/gravatar-url/gravatar-url-tests.ts +++ /dev/null @@ -1,12 +0,0 @@ -import gravatarUrl = require('gravatar-url'); - -gravatarUrl('sindresorhus@gmail.com'); // $ExpectType string -gravatarUrl('sindresorhus@gmail.com', { default: 'monsterid' }); // $ExpectType string -gravatarUrl('sindresorhus@gmail.com', { default: 'monsterid', size: 200 }); // $ExpectType string -gravatarUrl('sindresorhus@gmail.com', { default: 'monsterid', rating: 'g', size: 200 }); // $ExpectType string -gravatarUrl('sindresorhus@gmail.com', { rating: 'g' }); // $ExpectType string -gravatarUrl('sindresorhus@gmail.com', { rating: 'pg' }); // $ExpectType string -gravatarUrl('sindresorhus@gmail.com', { rating: 'r' }); // $ExpectType string -gravatarUrl('sindresorhus@gmail.com', { rating: 'x' }); // $ExpectType string -gravatarUrl('sindresorhus@gmail.com', { rating: 'g', size: 200 }); // $ExpectType string -gravatarUrl('sindresorhus@gmail.com', { size: 200 }); // $ExpectType string diff --git a/types/gravatar-url/index.d.ts b/types/gravatar-url/index.d.ts deleted file mode 100644 index 4493ea0b76..0000000000 --- a/types/gravatar-url/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Type definitions for gravatar-url 2.0 -// Project: https://github.com/sindresorhus/gravatar-url -// Definitions by: Ivan Gabriele -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = GravatarUrl; - -declare function GravatarUrl(email: string, options?: GravatarUrl.Options): string; - -declare namespace GravatarUrl { - interface Options { - default?: string; - rating?: 'g' | 'pg' | 'r' | 'x'; - size?: number; - } -} diff --git a/types/gravatar-url/tsconfig.json b/types/gravatar-url/tsconfig.json deleted file mode 100644 index 8e61e09590..0000000000 --- a/types/gravatar-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", - "gravatar-url-tests.ts" - ] -} \ No newline at end of file diff --git a/types/gravatar-url/tslint.json b/types/gravatar-url/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/gravatar-url/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/gzip-size/gzip-size-tests.ts b/types/gzip-size/gzip-size-tests.ts deleted file mode 100644 index 70ea15b5e6..0000000000 --- a/types/gzip-size/gzip-size-tests.ts +++ /dev/null @@ -1,16 +0,0 @@ -import fs = require('fs'); -import gzipSize = require('gzip-size'); - -const string = 'Lorem ipsum dolor sit amet.'; - -console.log(string.length); - -gzipSize(string).then(size => console.log(size)); - -console.log(gzipSize.sync(string)); - -const stream = fs.createReadStream("index.d.ts"); -const gstream = stream.pipe(gzipSize.stream()).on("gzip-size", size => console.log(size)); -console.log(gstream.gzipSize); // Could be a number or undefined. Recommended to use "gzip-size" event instead - -gzipSize.file("index.d.ts").then(size => console.log(size)); diff --git a/types/gzip-size/index.d.ts b/types/gzip-size/index.d.ts deleted file mode 100644 index 66251e0da8..0000000000 --- a/types/gzip-size/index.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -// Type definitions for gzip-size 4.1 -// Project: https://github.com/sindresorhus/gzip-size -// Definitions by: York Yao -// Jimi van der Woning -// Andre Wiggins -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - -import * as stream from 'stream'; -import * as zlib from 'zlib'; - -interface GzipSizeStream extends stream.PassThrough { - on(event: string, listener: (...args: any[]) => void): this; - on(event: "gzip-size", listener: (size: number) => void): this; - - /** - * Contains the gzip size of the stream after it is finished. - * Since this happens asynchronously, it is recommended you use - * the `.on("gzip-size", size => console.log(size))` method instead - */ - gzipSize?: number; -} - -/** - * Returns a Promise for the size. - * @param input A string or Buffer to determine the gzip size of - * @param options Any zlib option - */ -declare function gzipSize(input: string | Buffer, options?: zlib.ZlibOptions): Promise; - -declare namespace gzipSize { - /** - * Returns the size synchronously - * @param input A string or Buffer to determine the gzip size of - * @param options Any zlib option - */ - function sync(input: string | Buffer, options?: zlib.ZlibOptions): number; - - /** - * Returns a stream.PassThrough. The stream emits a gzip-size event and has a gzipSize property. - * @param options Any zlib option - */ - function stream(options?: zlib.ZlibOptions): GzipSizeStream; - - /** - * Returns a Promise for the size of the file. - * @param path The path to the file - * @param options Any zlib option - */ - function file(path: string, options?: zlib.ZlibOptions): Promise; -} - -export = gzipSize; diff --git a/types/gzip-size/tsconfig.json b/types/gzip-size/tsconfig.json deleted file mode 100644 index 6d244facf6..0000000000 --- a/types/gzip-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", - "gzip-size-tests.ts" - ] -} \ No newline at end of file diff --git a/types/gzip-size/tslint.json b/types/gzip-size/tslint.json deleted file mode 100644 index e60c15844f..0000000000 --- a/types/gzip-size/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "dtslint/dt.json" -} \ No newline at end of file diff --git a/types/gzip-size/v3/gzip-size-tests.ts b/types/gzip-size/v3/gzip-size-tests.ts deleted file mode 100644 index f07d99bd50..0000000000 --- a/types/gzip-size/v3/gzip-size-tests.ts +++ /dev/null @@ -1,7 +0,0 @@ -import gzipSize = require('gzip-size'); - -const string = 'Lorem ipsum dolor sit amet.'; - -console.log(string.length); - -console.log(gzipSize.sync(string)); diff --git a/types/gzip-size/v3/index.d.ts b/types/gzip-size/v3/index.d.ts deleted file mode 100644 index 12b1899b54..0000000000 --- a/types/gzip-size/v3/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -// Type definitions for gzip-size 3.0 -// Project: https://github.com/sindresorhus/gzip-size -// Definitions by: York Yao -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - -declare function gzipSize(input: string | Buffer, callback: (error: Error, size: number) => void): string; -export = gzipSize; -declare namespace gzipSize { - function sync(input: string | Buffer): number; - function stream(): NodeJS.ReadWriteStream; -} diff --git a/types/gzip-size/v3/tsconfig.json b/types/gzip-size/v3/tsconfig.json deleted file mode 100644 index 62a3e7db2b..0000000000 --- a/types/gzip-size/v3/tsconfig.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../../", - "typeRoots": [ - "../../" - ], - "types": [], - "paths": { - "gzip-size": [ - "gzip-size/v3" - ] - }, - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "gzip-size-tests.ts" - ] -} \ No newline at end of file diff --git a/types/gzip-size/v3/tslint.json b/types/gzip-size/v3/tslint.json deleted file mode 100644 index e60c15844f..0000000000 --- a/types/gzip-size/v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "dtslint/dt.json" -} \ No newline at end of file diff --git a/types/has-emoji/has-emoji-tests.ts b/types/has-emoji/has-emoji-tests.ts deleted file mode 100644 index f1453f4cf5..0000000000 --- a/types/has-emoji/has-emoji-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import hasEmoji = require('has-emoji'); - -// $ExpectType boolean -hasEmoji('Unicorn 🦄'); -// $ExpectType boolean -hasEmoji('Cat'); diff --git a/types/has-emoji/index.d.ts b/types/has-emoji/index.d.ts deleted file mode 100644 index 2160e66497..0000000000 --- a/types/has-emoji/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for has-emoji 1.0 -// Project: https://github.com/sindresorhus/has-emoji#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = hasEmoji; - -declare function hasEmoji(candidate: string): boolean; diff --git a/types/has-emoji/tsconfig.json b/types/has-emoji/tsconfig.json deleted file mode 100644 index 646f983707..0000000000 --- a/types/has-emoji/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", - "has-emoji-tests.ts" - ] -} diff --git a/types/has-emoji/tslint.json b/types/has-emoji/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/has-emoji/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/hex-rgb/hex-rgb-tests.ts b/types/hex-rgb/hex-rgb-tests.ts deleted file mode 100644 index f9bbf5ea71..0000000000 --- a/types/hex-rgb/hex-rgb-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import hexRgb = require('hex-rgb'); - -hexRgb('#cd2222cc'); // $ExpectType RgbaObj -hexRgb('#cd2222cc', { format: 'array' }); // $ExpectType [number, number, number, number] diff --git a/types/hex-rgb/index.d.ts b/types/hex-rgb/index.d.ts deleted file mode 100644 index ab1de9bf24..0000000000 --- a/types/hex-rgb/index.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Type definitions for hex-rgb 3.0 -// Project: https://github.com/sindresorhus/hex-rgb#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = hexRgb; - -declare function hexRgb(hex: string): hexRgb.RgbaObj; -declare function hexRgb(hex: string, options: hexRgb.Options): hexRgb.RgbaArr; - -declare namespace hexRgb { - interface Options { - format: 'array'; - } - - interface RgbaObj { - red: number; - green: number; - blue: number; - alpha: number; - } - - type RgbaArr = [number, number, number, number]; -} diff --git a/types/hex-rgb/tsconfig.json b/types/hex-rgb/tsconfig.json deleted file mode 100644 index c20c71b94f..0000000000 --- a/types/hex-rgb/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", - "hex-rgb-tests.ts" - ] -} diff --git a/types/hex-rgb/tslint.json b/types/hex-rgb/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/hex-rgb/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/in-range/in-range-tests.ts b/types/in-range/in-range-tests.ts deleted file mode 100644 index 041aea264e..0000000000 --- a/types/in-range/in-range-tests.ts +++ /dev/null @@ -1,9 +0,0 @@ -import inRange = require("in-range"); - -inRange(30, 100); - -inRange(30, 10, 100); - -inRange(30, 100, 10); - -inRange(30, 10); diff --git a/types/in-range/index.d.ts b/types/in-range/index.d.ts deleted file mode 100644 index 6d81a61e4d..0000000000 --- a/types/in-range/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for in-range 1.0 -// Project: https://github.com/sindresorhus/in-range -// Definitions by: Daniel Rosenwasser -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare function in_range(x: number, start: number, end?: number): boolean; - -export = in_range; diff --git a/types/in-range/tsconfig.json b/types/in-range/tsconfig.json deleted file mode 100644 index 7d5182a929..0000000000 --- a/types/in-range/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", - "in-range-tests.ts" - ] -} \ No newline at end of file diff --git a/types/in-range/tslint.json b/types/in-range/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/in-range/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/locate-path/index.d.ts b/types/locate-path/index.d.ts deleted file mode 100644 index c863acdc3c..0000000000 --- a/types/locate-path/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Type definitions for locate-path 2.0 -// Project: https://github.com/sindresorhus/locate-path#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = locatePath; - -declare function locatePath(input: Iterable, options?: locatePath.Options): Promise; - -declare namespace locatePath { - function sync(input: Iterable, options?: {cwd?: string}): string | undefined; - - interface Options { - concurrency?: number; - preserveOrder?: boolean; - cwd?: string; - } -} diff --git a/types/locate-path/locate-path-tests.ts b/types/locate-path/locate-path-tests.ts deleted file mode 100644 index 9bab13c13e..0000000000 --- a/types/locate-path/locate-path-tests.ts +++ /dev/null @@ -1,19 +0,0 @@ -import locatePath = require('locate-path'); - -const files = [ - 'unicorn.png', - 'rainbow.png', // only this one actually exists on disk - 'pony.png' -]; - -let path: string | undefined; - -locatePath(files).then(foundPath => { - path = foundPath; -}); -locatePath(files, {concurrency: 2, preserveOrder: false, cwd: ''}).then(foundPath => { - path = foundPath; -}); - -path = locatePath.sync(files); -path = locatePath.sync(files, {cwd: ''}); diff --git a/types/locate-path/tsconfig.json b/types/locate-path/tsconfig.json deleted file mode 100644 index 355b51b851..0000000000 --- a/types/locate-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", - "locate-path-tests.ts" - ] -} \ No newline at end of file diff --git a/types/locate-path/tslint.json b/types/locate-path/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/locate-path/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/pkg-up/index.d.ts b/types/pkg-up/index.d.ts deleted file mode 100644 index d5a511543f..0000000000 --- a/types/pkg-up/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -// Type definitions for pkg-up 2.0 -// Project: https://github.com/sindresorhus/pkg-up#readme -// Definitions by: Emily Marigold Klassen -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = pkgUp; - -declare function pkgUp(cwd?: string): Promise; - -declare namespace pkgUp { - function sync(cwd?: string): string; -} diff --git a/types/pkg-up/pkg-up-tests.ts b/types/pkg-up/pkg-up-tests.ts deleted file mode 100644 index 79803ffd68..0000000000 --- a/types/pkg-up/pkg-up-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import pkgUp = require('pkg-up'); - -pkgUp().then(filepath => { - filepath; - // => '/Users/sindresorhus/foo/package.json' -}); diff --git a/types/pkg-up/tsconfig.json b/types/pkg-up/tsconfig.json deleted file mode 100644 index bd078c902c..0000000000 --- a/types/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", - "pkg-up-tests.ts" - ] -} diff --git a/types/pkg-up/tslint.json b/types/pkg-up/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/pkg-up/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/plur/index.d.ts b/types/plur/index.d.ts deleted file mode 100644 index 3f94e66fef..0000000000 --- a/types/plur/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -// Type definitions for plur 3.0 -// Project: https://github.com/sindresorhus/plur#readme -// Definitions by: Kyle Roach -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare function plur( - word: string, - plural: string | number, - count?: number -): string; - -export = plur; diff --git a/types/plur/plur-tests.ts b/types/plur/plur-tests.ts deleted file mode 100644 index be509830df..0000000000 --- a/types/plur/plur-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -import plur = require('plur'); - -const word = 'chicken'; - -plur(word, 2); diff --git a/types/plur/tsconfig.json b/types/plur/tsconfig.json deleted file mode 100644 index cb98c338e3..0000000000 --- a/types/plur/tsconfig.json +++ /dev/null @@ -1,16 +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", "plur-tests.ts"] -} diff --git a/types/plur/tslint.json b/types/plur/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/plur/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/random-float/index.d.ts b/types/random-float/index.d.ts deleted file mode 100644 index 646d263128..0000000000 --- a/types/random-float/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Type definitions for random-float 1.0 -// Project: https://github.com/sindresorhus/random-float -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = randomFloat; - -declare function randomFloat(max: number): number; -declare function randomFloat(min: number, max: number): number; // tslint:disable-line unified-signatures diff --git a/types/random-float/random-float-tests.ts b/types/random-float/random-float-tests.ts deleted file mode 100644 index 663190ce81..0000000000 --- a/types/random-float/random-float-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import randomFloat = require('random-float'); - -// $ExpectType number -randomFloat(5); -// $ExpectType number -randomFloat(10, 100); diff --git a/types/random-float/tsconfig.json b/types/random-float/tsconfig.json deleted file mode 100644 index faefa13645..0000000000 --- a/types/random-float/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", - "random-float-tests.ts" - ] -} diff --git a/types/random-float/tslint.json b/types/random-float/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/random-float/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/random-int/index.d.ts b/types/random-int/index.d.ts deleted file mode 100644 index 6f7f421976..0000000000 --- a/types/random-int/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Type definitions for random-int 1.0 -// Project: https://github.com/sindresorhus/random-int -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = randomInt; - -declare function randomInt(max: number): number; -declare function randomInt(min: number, max: number): number; // tslint:disable-line unified-signatures diff --git a/types/random-int/random-int-tests.ts b/types/random-int/random-int-tests.ts deleted file mode 100644 index 68165e9c5d..0000000000 --- a/types/random-int/random-int-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import randomInt = require('random-int'); - -// $ExpectType number -randomInt(5); -// $ExpectType number -randomInt(10, 100); diff --git a/types/random-int/tsconfig.json b/types/random-int/tsconfig.json deleted file mode 100644 index e1a576d337..0000000000 --- a/types/random-int/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", - "random-int-tests.ts" - ] -} diff --git a/types/random-int/tslint.json b/types/random-int/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/random-int/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/random-item/index.d.ts b/types/random-item/index.d.ts deleted file mode 100644 index 3fbbaca074..0000000000 --- a/types/random-item/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for random-item 1.0 -// Project: https://github.com/sindresorhus/random-item -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = randomItem; - -declare function randomItem(input: T[]): T; diff --git a/types/random-item/random-item-tests.ts b/types/random-item/random-item-tests.ts deleted file mode 100644 index 12185a0ad2..0000000000 --- a/types/random-item/random-item-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import randomItem = require('random-item'); - -// $ExpectType string -randomItem(['pony', 'unicorn', 'rainbow']); -// $ExpectType string | number -randomItem(['pony', 'unicorn', 'rainbow', 1]); diff --git a/types/random-item/tsconfig.json b/types/random-item/tsconfig.json deleted file mode 100644 index 279aba16b5..0000000000 --- a/types/random-item/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", - "random-item-tests.ts" - ] -} diff --git a/types/random-item/tslint.json b/types/random-item/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/random-item/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/random-obj-key/index.d.ts b/types/random-obj-key/index.d.ts deleted file mode 100644 index dfe12ca6f6..0000000000 --- a/types/random-obj-key/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Type definitions for random-obj-key 1.0 -// Project: https://github.com/sindresorhus/random-obj-key -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.1 - -export = randomObjKey; - -declare function randomObjKey(input: TObj): keyof TObj; diff --git a/types/random-obj-key/random-obj-key-tests.ts b/types/random-obj-key/random-obj-key-tests.ts deleted file mode 100644 index b12cf282ea..0000000000 --- a/types/random-obj-key/random-obj-key-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import randomObjKey = require('random-obj-key'); - -// $ExpectType "foo" | "bar" -randomObjKey({ foo: true, bar: true }); diff --git a/types/random-obj-key/tsconfig.json b/types/random-obj-key/tsconfig.json deleted file mode 100644 index aaaf33ba98..0000000000 --- a/types/random-obj-key/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", - "random-obj-key-tests.ts" - ] -} diff --git a/types/random-obj-key/tslint.json b/types/random-obj-key/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/random-obj-key/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/random-obj-prop/index.d.ts b/types/random-obj-prop/index.d.ts deleted file mode 100644 index f9aca5624f..0000000000 --- a/types/random-obj-prop/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for random-obj-prop 1.0 -// Project: https://github.com/sindresorhus/random-obj-prop -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = randomObjProp; - -declare function randomObjProp(input: { [key: string]: T }): T; diff --git a/types/random-obj-prop/random-obj-prop-tests.ts b/types/random-obj-prop/random-obj-prop-tests.ts deleted file mode 100644 index 7dd2fcd67d..0000000000 --- a/types/random-obj-prop/random-obj-prop-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ -import randomObjProp = require('random-obj-prop'); - -// $ExpectType string | number -randomObjProp({ foo: 'pony', bar: 1 }); diff --git a/types/random-obj-prop/tsconfig.json b/types/random-obj-prop/tsconfig.json deleted file mode 100644 index f155cfc211..0000000000 --- a/types/random-obj-prop/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", - "random-obj-prop-tests.ts" - ] -} diff --git a/types/random-obj-prop/tslint.json b/types/random-obj-prop/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/random-obj-prop/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/resolve-from/index.d.ts b/types/resolve-from/index.d.ts deleted file mode 100644 index 9715d3ed25..0000000000 --- a/types/resolve-from/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -// Type definitions for resolve-from 4.0 -// Project: https://github.com/sindresorhus/resolve-from -// Definitions by: unional -// BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = resolveFrom; - -declare function resolveFrom(fromDir: string, moduleId: string): string; - -declare namespace resolveFrom { - function silent(fromDir: string, moduleId: string): string | null; -} diff --git a/types/resolve-from/resolve-from-tests.ts b/types/resolve-from/resolve-from-tests.ts deleted file mode 100644 index dc645103ec..0000000000 --- a/types/resolve-from/resolve-from-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import resolveFrom = require("resolve-from"); - -// $ExpectType string -resolveFrom('foo', './bar'); -// $ExpectType string | null -resolveFrom.silent('foo', './baz'); diff --git a/types/resolve-from/tsconfig.json b/types/resolve-from/tsconfig.json deleted file mode 100644 index 790d2f09ee..0000000000 --- a/types/resolve-from/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-from-tests.ts" - ] -} diff --git a/types/resolve-from/tslint.json b/types/resolve-from/tslint.json deleted file mode 100644 index f93cf8562a..0000000000 --- a/types/resolve-from/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "dtslint/dt.json" -} diff --git a/types/resolve-from/v2/index.d.ts b/types/resolve-from/v2/index.d.ts deleted file mode 100644 index d29d0c1676..0000000000 --- a/types/resolve-from/v2/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Type definitions for resolve-from 2.0 -// Project: https://github.com/sindresorhus/resolve-from -// Definitions by: unional -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare function resolveFrom(fromDir: string, moduleId: string): string; -declare namespace resolveFrom {} -export = resolveFrom; diff --git a/types/resolve-from/v2/resolve-from-tests.ts b/types/resolve-from/v2/resolve-from-tests.ts deleted file mode 100644 index ddbc5bdbea..0000000000 --- a/types/resolve-from/v2/resolve-from-tests.ts +++ /dev/null @@ -1,7 +0,0 @@ -import resolveFrom = require("resolve-from"); - -let from: string; -let moduleId: string; -let result: string; - -result = resolveFrom(from, moduleId); diff --git a/types/resolve-from/v2/tsconfig.json b/types/resolve-from/v2/tsconfig.json deleted file mode 100644 index d9f3015659..0000000000 --- a/types/resolve-from/v2/tsconfig.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "strictFunctionTypes": true, - "baseUrl": "../../", - "typeRoots": [ - "../../" - ], - "paths": { - "resolve-from": [ - "resolve-from/v2" - ] - }, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "resolve-from-tests.ts" - ] -} diff --git a/types/resolve-from/v2/tslint.json b/types/resolve-from/v2/tslint.json deleted file mode 100644 index a41bf5d19a..0000000000 --- a/types/resolve-from/v2/tslint.json +++ /dev/null @@ -1,79 +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, - "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/resolve-global/index.d.ts b/types/resolve-global/index.d.ts deleted file mode 100644 index 30f6e563d9..0000000000 --- a/types/resolve-global/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -// Type definitions for resolve-global 0.1 -// Project: https://github.com/sindresorhus/resolve-global#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = resolveGlobal; - -declare function resolveGlobal(moduleId: string): string; - -declare namespace resolveGlobal { - function silent(moduleId: string): string | null; -} diff --git a/types/resolve-global/resolve-global-tests.ts b/types/resolve-global/resolve-global-tests.ts deleted file mode 100644 index 6a1270c368..0000000000 --- a/types/resolve-global/resolve-global-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import resolveGlobal = require('resolve-global'); - -// $ExpectType string -resolveGlobal('cat-names'); -// $ExpectType string | null -resolveGlobal.silent('cat-names'); diff --git a/types/resolve-global/tsconfig.json b/types/resolve-global/tsconfig.json deleted file mode 100644 index 141f47e1aa..0000000000 --- a/types/resolve-global/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-global-tests.ts" - ] -} diff --git a/types/resolve-global/tslint.json b/types/resolve-global/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/resolve-global/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/unique-random-array/index.d.ts b/types/unique-random-array/index.d.ts deleted file mode 100644 index 7e4ddacb0f..0000000000 --- a/types/unique-random-array/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Type definitions for unique-random-array 1.0 -// Project: https://github.com/sindresorhus/unique-random-array#readme -// Definitions by: BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = uniqueRandomArray; - -declare function uniqueRandomArray(input: T[]): () => T; diff --git a/types/unique-random-array/tsconfig.json b/types/unique-random-array/tsconfig.json deleted file mode 100644 index 40257f7e47..0000000000 --- a/types/unique-random-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", - "unique-random-array-tests.ts" - ] -} diff --git a/types/unique-random-array/tslint.json b/types/unique-random-array/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/unique-random-array/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/unique-random-array/unique-random-array-tests.ts b/types/unique-random-array/unique-random-array-tests.ts deleted file mode 100644 index de4563532c..0000000000 --- a/types/unique-random-array/unique-random-array-tests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import uniqueRandomArray = require('unique-random-array'); - -// $ExpectType () => number -uniqueRandomArray([1, 2, 3, 4]); -// $ExpectType () => string | number -uniqueRandomArray(["1", 2, 3, 4]); diff --git a/types/unique-random/index.d.ts b/types/unique-random/index.d.ts deleted file mode 100644 index eb07d386b0..0000000000 --- a/types/unique-random/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Type definitions for unique-random -// Project: https://github.com/sindresorhus/unique-random -// Definitions by: Yuki Kokubun -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - - -declare function uniqueRandom(min: number, max: number): () => number; - -export = uniqueRandom; diff --git a/types/unique-random/tsconfig.json b/types/unique-random/tsconfig.json deleted file mode 100644 index 7ee86c0a03..0000000000 --- a/types/unique-random/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", - "unique-random-tests.ts" - ] -} \ No newline at end of file diff --git a/types/unique-random/tslint.json b/types/unique-random/tslint.json deleted file mode 100644 index 3d59f55fda..0000000000 --- a/types/unique-random/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/unique-random/unique-random-tests.ts b/types/unique-random/unique-random-tests.ts deleted file mode 100644 index 5029dc0358..0000000000 --- a/types/unique-random/unique-random-tests.ts +++ /dev/null @@ -1,4 +0,0 @@ - -import uniqueRandom = require("unique-random"); -const rand = uniqueRandom(1, 10); -const num: number = rand(); diff --git a/types/write-json-file/index.d.ts b/types/write-json-file/index.d.ts deleted file mode 100644 index 72fd4d7301..0000000000 --- a/types/write-json-file/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Type definitions for write-json-file 2.2 -// Project: https://github.com/sindresorhus/write-json-file -// Definitions by: Denis Carriere -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare function writeJsonFile(filepath: string, data: any, options?: writeJsonFile.Options): Promise; -declare namespace writeJsonFile { - type Replacer = (key: string, value: any) => void; - interface Options { - indent?: string | number | null; - detectIndent?: boolean; - sortKeys?: boolean | ((a: string, b: string) => number); - replacer?: Replacer | Array | null; - mode?: number; - } - function sync(filepath: string, data: any, options?: Options): void; -} -export = writeJsonFile; diff --git a/types/write-json-file/tsconfig.json b/types/write-json-file/tsconfig.json deleted file mode 100644 index 7eca588265..0000000000 --- a/types/write-json-file/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", - "write-json-file-tests.ts" - ] -} \ No newline at end of file diff --git a/types/write-json-file/tslint.json b/types/write-json-file/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/write-json-file/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/write-json-file/write-json-file-tests.ts b/types/write-json-file/write-json-file-tests.ts deleted file mode 100644 index bad3b1a5a1..0000000000 --- a/types/write-json-file/write-json-file-tests.ts +++ /dev/null @@ -1,37 +0,0 @@ -import write = require('write-json-file'); - -// Basic -write('foo.json', {foo: true}).then(() => { }); -write.sync('foo.json', {foo: true}); - -// With options -const options: write.Options = { - indent: ' ', - detectIndent: true, - sortKeys: true, - mode: 0o666 -}; -write('foo.json', {foo: true}, options).then(() => { }); -write('foo.json', {foo: true}, {indent: 2}).then(() => { }); -write('foo.json', {foo: true}, {indent: null}).then(() => { }); -write('foo.json', {foo: true}, {sortKeys: (key1, key2) => key1 > key2 ? 1 : key1 < key2 ? -1 : 0}).then(() => { }); -write.sync('foo.json', {foo: true}, options); - -// JSON.stringify replacer -function replacer(key: any, value: any) { - // Filtering out properties - if (typeof value === 'string') { - return undefined; - } - return value; -} - -write.sync('foo.json', {foo: true}, {replacer}); -write.sync('foo.json', {foo: true}, {replacer: null}); -write.sync('foo.json', {foo: true}, {replacer: [1, 2, 3]}); -write.sync('foo.json', {foo: true}, {replacer: ['a', 'b', 'c']}); - -JSON.stringify({foo: true}, replacer); -JSON.stringify({foo: true}, null); -JSON.stringify({foo: true}, [1, 2, 3]); -JSON.stringify({foo: true}, ['a', 'b', 'c']);