MCPcopy Create free account
hub / github.com/dipscope/TypeManager.TS / stringify

Method stringify

src/type-manager.ts:1032–1035  ·  view source on GitHub ↗

* Converts provided value to a JavaScript Object Notation (JSON) string in static context. * * @param {TypeFn } typeFn Type function. * @param {any} x Input value, usually an object or array, to be converted. * @param {Function|Array |Array } replacer A fun

(typeFn: TypeFn<TObject>, x: any, replacer?: (this: any, key: string, value: any) => any | Array<number> | Array<string> | null, space?: string | number)

Source from the content-addressed store, hash-verified

1030 * @returns {string} JSON string.
1031 */
1032 public static stringify<TObject>(typeFn: TypeFn<TObject>, x: any, replacer?: (this: any, key: string, value: any) => any | Array<number> | Array<string> | null, space?: string | number): string
1033 {
1034 return this.staticTypeManager.stringify(typeFn, x, replacer, space);
1035 }
1036
1037 /**
1038 * Converts provided value to a JavaScript Object Notation (JSON) string.

Callers 3

convertMethod · 0.80
stringifyFunction · 0.80

Calls 2

serializeMethod · 0.95
jsonStringifyFunction · 0.90

Tested by

no test coverage detected