@nfdi4plants/swate-components
Version:
Customizable React components for ontology annotation, based on Swate and the ARC.
59 lines • 4.24 kB
TypeScript
import { FSharpMap } from '@fable-org/fable-library-js/Map.js';
import { FSharpList } from '@fable-org/fable-library-js/List.js';
import { Union } from '@fable-org/fable-library-js/Types.js';
import { Json_$union } from './Json.fs.js';
import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
import { Option } from '@fable-org/fable-library-js/Option.js';
import { TypeInfo_$union } from './TypeInfo.fs.js';
export declare const Convert_isBrowser: (() => boolean);
export declare const Convert_insideBrowser: boolean;
/**
* Uses internal representation of F# maps to determine whether we are using Fable 3 or not
*/
export declare function Convert_usingFable3(): boolean;
export declare const Convert_isUsingFable3: boolean;
export type Convert_InternalMap_$union = Convert_InternalMap<0> | Convert_InternalMap<1> | Convert_InternalMap<2>;
export type Convert_InternalMap_$cases = {
0: ["MapEmpty", []];
1: ["MapOne", [string, Json_$union]];
2: ["MapNode", [string, Json_$union, Convert_InternalMap_$union, Convert_InternalMap_$union]];
};
export declare function Convert_InternalMap_MapEmpty(): Convert_InternalMap<0>;
export declare function Convert_InternalMap_MapOne(Item1: string, Item2: Json_$union): Convert_InternalMap<1>;
export declare function Convert_InternalMap_MapNode(Item1: string, Item2: Json_$union, Item3: Convert_InternalMap_$union, Item4: Convert_InternalMap_$union): Convert_InternalMap<2>;
export declare class Convert_InternalMap<Tag extends keyof Convert_InternalMap_$cases> extends Union<Tag, Convert_InternalMap_$cases[Tag][0]> {
readonly tag: Tag;
readonly fields: Convert_InternalMap_$cases[Tag][1];
constructor(tag: Tag, fields: Convert_InternalMap_$cases[Tag][1]);
cases(): string[];
}
export declare function Convert_InternalMap_$reflection(): TypeInfo;
export declare function Convert_flattenMap(_arg: Convert_InternalMap_$union): FSharpList<[string, Json_$union]>;
export declare function Convert_$007CKeyValue$007C_$007C(key: string, map: FSharpMap<string, Json_$union>): Option<[string, Json_$union, FSharpMap<string, Json_$union>]>;
export declare function Convert_$007CNonArray$007C_$007C(_arg: Json_$union): Option<Json_$union>;
export declare function Convert_$007CMapEmpty$007C_$007C(json: Json_$union): Option<Json_$union>;
export declare function Convert_$007CMapKey$007C_$007C(_arg: Json_$union): Option<string>;
export declare function Convert_$007CMapOne$007C_$007C(_arg: Json_$union): Option<[string, Json_$union]>;
export declare function Convert_$007CMapNode$007C_$007C(_arg: Json_$union): Option<[string, Json_$union, Json_$union, Json_$union]>;
export declare function Convert_generateMap(json: Json_$union): Option<Convert_InternalMap_$union>;
export declare function Convert_flatteFable3Map(tree: FSharpMap<string, Json_$union>): FSharpList<[string, Json_$union]>;
export declare function Convert_flattenFable3Lists(linkedList: FSharpMap<string, Json_$union>): FSharpList<Json_$union>;
/**
* Returns whether the type information resembles a type of a sequence of elements (including tuples)
*/
export declare function Convert_arrayLike(_arg: TypeInfo_$union): boolean;
export declare function Convert_isRecord(_arg: TypeInfo_$union): boolean;
export declare function Convert_unionOfRecords(_arg: TypeInfo_$union): boolean;
export declare function Convert_optional(_arg: TypeInfo_$union): boolean;
export declare function Convert_isQuoted(input: string): boolean;
export declare function Convert_betweenQuotes(input: string): string;
export declare function Convert_removeQuotes(input: string): string;
export declare function Convert_fromJsonAs(input_mut: Json_$union, typeInfo_mut: TypeInfo_$union): any;
export declare function Convert_fromJson<t>(json: Json_$union, typeInfo: TypeInfo_$union): t;
export declare const Convert_quoteText: ((arg0: string) => string);
export declare function Convert_serialize(value_mut: any, typeInfo_mut: TypeInfo_$union): string;
/**
* Serialized the input value object into JSON, uses built-in JSON.stringify and should be used with Fable 2.x or earlier
*/
export declare function Fable_SimpleJson_Json__Json_stringify_Static_4E60E31B(value: any): string;
//# sourceMappingURL=Json.Converter.fs.d.ts.map