mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-22 17:46:56 +03:00
refactor(redux-devtools-serialize): use @types/jsan (#624)
This commit is contained in:
parent
639bfffa3e
commit
3cd1ae1754
|
@ -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": {
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user