From a99ef9df6f17ad36b9159cfec84724959aaf47de Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Mon, 29 Jun 2020 11:01:05 +0200 Subject: [PATCH] chore(types): extract types for conventional-commits-detector (#6633) --- lib/missing.d.ts | 5 ----- package.json | 1 + yarn.lock | 5 +++++ 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/missing.d.ts b/lib/missing.d.ts index c5a5ccc8d5c148..7e22cc933e6f50 100644 --- a/lib/missing.d.ts +++ b/lib/missing.d.ts @@ -1,8 +1,3 @@ -declare module 'conventional-commits-detector' { - function detector(commits: string[]): string; - export = detector; -} - declare module 'json-dup-key-validator' { export function validate( jsonString: string, diff --git a/package.json b/package.json index f1a06847f1bcb6..bd9fae2ddbd06d 100644 --- a/package.json +++ b/package.json @@ -191,6 +191,7 @@ "@types/cacache": "12.0.1", "@types/chai": "4.2.11", "@types/clean-git-ref": "2.0.0", + "@types/conventional-commits-detector": "1.0.0", "@types/convert-hrtime": "2.0.0", "@types/eslint": "6.8.1", "@types/fs-extra": "9.0.1", diff --git a/yarn.lock b/yarn.lock index 79c204405b7625..287fb1124cc1ce 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1485,6 +1485,11 @@ resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0" integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ== +"@types/conventional-commits-detector@1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@types/conventional-commits-detector/-/conventional-commits-detector-1.0.0.tgz#27e143c481d6fa6146863d77e6b91de877d4f09e" + integrity sha512-ZB+G1yG5pQoWaaHg0D4H9c29q61Y0O/kyOtEx0IKL3Gca3EGEcN3jh5OHnoQp00/pFoqJR63htsviivOkTXuCw== + "@types/convert-hrtime@2.0.0": version "2.0.0" resolved "https://registry.yarnpkg.com/@types/convert-hrtime/-/convert-hrtime-2.0.0.tgz#48d8215750e602a8ea439591c741cc927c116bb1"