* Converts a JavaScript Object Notation (JSON) string into a type in static context. * * @param {TypeFn } typeFn Type function. * @param {string} x A valid JSON string. * @param {Function} reviver A function that transforms the results. This function is called for each m
(typeFn: TypeFn<TObject>, x: string, reviver?: (this: any, key: string, value: any) => any)
| 1059 | * @returns {TypeLike<TObject>} Type created from provided input value or undefined. |
| 1060 | */ |
| 1061 | public static parse<TObject>(typeFn: TypeFn<TObject>, x: string, reviver?: (this: any, key: string, value: any) => any): TypeLike<TObject> |
| 1062 | { |
| 1063 | return this.staticTypeManager.parse(typeFn, x, reviver); |
| 1064 | } |
| 1065 | |
| 1066 | /** |
| 1067 | * Converts a JavaScript Object Notation (JSON) string into a type. |
no test coverage detected