refactor(redux-devtools-serialize): use @types/jsan (#624)

This commit is contained in:
Nathan Bierema 2020-08-30 17:42:19 -04:00 committed by GitHub
parent 639bfffa3e
commit 3cd1ae1754
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 30 deletions

View File

@ -35,6 +35,7 @@
"jsan": "^3.1.13" "jsan": "^3.1.13"
}, },
"devDependencies": { "devDependencies": {
"@types/jsan": "^3.1.0",
"immutable": "^4.0.0-rc.12" "immutable": "^4.0.0-rc.12"
}, },
"peerDependencies": { "peerDependencies": {

View File

@ -1,30 +0,0 @@
declare module 'jsan' {
export interface Options {
date?: boolean;
function?: boolean;
regex?: boolean;
undefined?: boolean;
error?: boolean;
symbol?: boolean;
map?: boolean;
set?: boolean;
nan?: boolean;
infinity?: boolean;
refs?: boolean;
}
export function stringify(
value: unknown,
replacer?: (
key: string,
value: unknown
) => unknown | (number | string)[] | null,
space?: string | number,
_options?: Options | boolean
): string;
export function parse(
text: string,
reviver?: (key: string, value: unknown) => unknown
): unknown;
}

View File

@ -3190,6 +3190,11 @@
jest-diff "^25.2.1" jest-diff "^25.2.1"
pretty-format "^25.2.1" pretty-format "^25.2.1"
"@types/jsan@^3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@types/jsan/-/jsan-3.1.0.tgz#128fdb14a102134ede764b11682e795d1b380c43"
integrity sha512-V5wfm0++TqM92D0ZkAhl9MDQHPTi88fXhMNVin5LV/Y3RnuU/FUv6wML4Vt/amZmPN9WaFTmDhKW+h58kAFmIg==
"@types/json-schema@^7.0.3", "@types/json-schema@^7.0.4": "@types/json-schema@^7.0.3", "@types/json-schema@^7.0.4":
version "7.0.5" version "7.0.5"
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.5.tgz#dcce4430e64b443ba8945f0290fb564ad5bac6dd" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.5.tgz#dcce4430e64b443ba8945f0290fb564ad5bac6dd"