chore(types): extract types for json-dup-key-validator (#6634)

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
This commit is contained in:
Jamie Magee 2020-06-29 15:50:44 +02:00 committed by GitHub
parent e8c80fbe62
commit e9ecc765c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 12 deletions

12
lib/missing.d.ts vendored
View file

@ -1,15 +1,3 @@
declare module 'json-dup-key-validator' {
export function validate(
jsonString: string,
allowDuplicatedKeys?: boolean
): string | undefined;
export function parse<T = unknown>(
jsonString: string,
allowDuplicatedKeys?: boolean
): T;
}
declare module 'changelog-filename-regex' {
const re: RegExp;
export = re;

View file

@ -202,6 +202,7 @@
"@types/ini": "1.3.30",
"@types/jest": "26.0.3",
"@types/js-yaml": "3.12.4",
"@types/json-dup-key-validator": "1.0.0",
"@types/json5": "0.0.30",
"@types/later": "1.2.6",
"@types/lodash": "4.14.157",

View file

@ -1592,6 +1592,11 @@
resolved "https://registry.yarnpkg.com/@types/js-yaml/-/js-yaml-3.12.4.tgz#7d3b534ec35a0585128e2d332db1403ebe057e25"
integrity sha512-fYMgzN+9e28R81weVN49inn/u798ruU91En1ZnGvSZzCRc5jXx9B2EDhlRaWmcO1RIxFHL8AajRXzxDuJu93+A==
"@types/json-dup-key-validator@1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@types/json-dup-key-validator/-/json-dup-key-validator-1.0.0.tgz#3a666ab980e5e957960e9341e13eabd4fd9a24f3"
integrity sha512-D/pvJeKintUSW4G+aBRSvReECxCHbMcE9IuSU7cfWQAtYStE/vH8OLXFw38JJ37dSEnpcOkEV7q4WmdvtV0zHg==
"@types/json-schema@*", "@types/json-schema@^7.0.3":
version "7.0.5"
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.5.tgz#dcce4430e64b443ba8945f0290fb564ad5bac6dd"