Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
chore(types): extract types for json-dup-key-validator (#6634)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
  • Loading branch information
JamieMagee and viceice committed Jun 29, 2020
1 parent e8c80fb commit e9ecc76
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/missing.d.ts
@@ -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;
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Expand Up @@ -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"
Expand Down

0 comments on commit e9ecc76

Please sign in to comment.