Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from Jun 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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