first commit

This commit is contained in:
Stefan Hacker
2026-04-03 09:38:48 +02:00
commit 37ad745546
47450 changed files with 3120798 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
import * as type from './types';
export declare const JSON: type.JSON;
export type { json, json_string } from './types';
+5
View File
@@ -0,0 +1,5 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.JSON = void 0;
exports.JSON = (typeof global !== 'undefined' ? global.JSON : window.JSON);
//# sourceMappingURL=index.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/json-brand/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,IAAI,GAAG,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAyB,CAAC"}
+10
View File
@@ -0,0 +1,10 @@
export type json<T> = json_string<T>;
export type json_string<T extends any = any> = string & {
__BRAND__: 'JSON_STRING';
__TYPE__: T;
};
export interface JSON {
parse<T>(text: json<T>, reviver?: (key: any, value: any) => any): T;
stringify<T>(value: T, replacer?: (key: string, value: any) => any, space?: string | number): json<T>;
stringify<T>(value: T, replacer?: (number | string)[] | null, space?: string | number): json<T>;
}
+3
View File
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=types.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/json-brand/types.ts"],"names":[],"mappings":""}