UNPKG

@nfdi4plants/swate-components

Version:

Customizable React components for ontology annotation, based on Swate and the ARC.

44 lines 2.32 kB
import { Json_$union } from './Json.fs.js'; import { Option } from '@fable-org/fable-library-js/Option.js'; import { FSharpList } from '@fable-org/fable-library-js/List.js'; export declare function InteropUtil_isDateOffset(x: any): boolean; export declare function InteropUtil_isObjectLiteral(x: any): boolean; export declare function InteropUtil_isBigInt(x: any): boolean; /** * Tries to parse a string into a Json structured JSON data. */ export declare function SimpleJson_tryParse(input: string): Option<Json_$union>; /** * Parses the input string into a structured JSON data. Fails with an exception if parsing fails. */ export declare function SimpleJson_parse(input: string): Json_$union; /** * Stringifies a Json object back to string representation */ export declare function SimpleJson_toString(_arg: Json_$union): string; export declare function SimpleJson_toPlainObject(input: Json_$union): any; export declare function SimpleJson_stringify<a>(value: a): string; export declare function SimpleJson_parseNative$0027(x: any): Json_$union; /** * Parses and converts the input string to Json using Javascript's native parsing capabilities */ export declare function SimpleJson_parseNative(input: string): Json_$union; export declare function SimpleJson_tryParseNative(input: string): Option<Json_$union>; /** * Tries to convert an object literal to the Json by calling JSON.stringify on the object first */ export declare function SimpleJson_fromObjectLiteral<a>(x: a): Option<Json_$union>; /** * Transforms all keys of the objects within the Json structure */ export declare function SimpleJson_mapKeys(f: ((arg0: string) => string), _arg: Json_$union): Json_$union; /** * Transforms object values recursively using function `f` that takes the key and value of the object and returns a new value */ export declare function SimpleJson_mapbyKey(f: ((arg0: string, arg1: Json_$union) => Json_$union), _arg: Json_$union): Json_$union; /** * Transforms keys of object selectively by path segments */ export declare function SimpleJson_mapKeysByPath(f: ((arg0: FSharpList<string>) => Option<string>), json: Json_$union): Json_$union; export declare function SimpleJson_readPath(keys_mut: FSharpList<string>, input_mut: Json_$union): Option<Json_$union>; //# sourceMappingURL=SimpleJson.fs.d.ts.map