@helios-lang/type-utils
Advanced tools
Comparing version 0.1.9 to 0.1.10
{ | ||
"name": "@helios-lang/type-utils", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "Global utility types", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -8,16 +8,2 @@ declare global { | ||
| { [key: string]: JsonSafe } | ||
namespace Json { | ||
function parse( | ||
text: string, | ||
reviver?: ((this: any, key: string, value: any) => any) | undefined | ||
): JsonSafe | ||
function stringify( | ||
value: JsonSafe, | ||
replacer?: | ||
| ((this: any, key: string, value: any) => any) | ||
| undefined, | ||
space?: string | number | undefined | ||
): string | ||
} | ||
} | ||
@@ -35,1 +21,16 @@ | ||
export function isRight<L, R>(either: Either<L, R>): either is { right: R } | ||
/** | ||
* Must be imported explicitly in order to override default JSON namespace | ||
*/ | ||
export namespace JSON { | ||
function parse( | ||
text: string, | ||
reviver?: ((this: any, key: string, value: any) => any) | undefined | ||
): JsonSafe | ||
function stringify( | ||
value: JsonSafe, | ||
replacer?: ((this: any, key: string, value: any) => any) | undefined, | ||
space?: string | number | undefined | ||
): string | ||
} |
6101
150