@nfdi4plants/swate-components
Version:
Customizable React components for ontology annotation, based on Swate and the ARC.
41 lines • 2.05 kB
TypeScript
import { FSharpList } from '@fable-org/fable-library-js/List.js';
import { RemoteBuilderOptions } from './Types.fs.js';
import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
/**
* Starts with default configuration for building a proxy
*/
export declare function RemotingModule_createApi(): RemoteBuilderOptions;
/**
* Defines how routes are built using the type name and method name. By default, the generated routes are of the form `/typeName/methodName`.
*/
export declare function RemotingModule_withRouteBuilder(builder: ((arg0: string, arg1: string) => string), options: RemoteBuilderOptions): RemoteBuilderOptions;
/**
* Sets the base url for the request. Useful if you are making cross-domain requests
*/
export declare function RemotingModule_withBaseUrl(url: string, options: RemoteBuilderOptions): RemoteBuilderOptions;
/**
* Adds custom headers to each request of the proxy
*/
export declare function RemotingModule_withCustomHeader(headers: FSharpList<[string, string]>, options: RemoteBuilderOptions): RemoteBuilderOptions;
/**
* Sets the authorization header of every request from the proxy
*/
export declare function RemotingModule_withAuthorizationHeader(token: string, options: RemoteBuilderOptions): RemoteBuilderOptions;
/**
* Sets the withCredentials option on the XHR request, which is useful for CORS scenarios
*/
export declare function RemotingModule_withCredentials(withCredentials: boolean, options: RemoteBuilderOptions): RemoteBuilderOptions;
/**
* Specifies that the API uses binary serialization for responses
*/
export declare function RemotingModule_withBinarySerialization(options: RemoteBuilderOptions): RemoteBuilderOptions;
export declare class Remoting {
constructor();
}
export declare function Remoting_$reflection(): TypeInfo;
export declare function Remoting_$ctor(): Remoting;
/**
* For internal library use only.
*/
export declare function Remoting_buildProxy_64DC51C<$a>(options: RemoteBuilderOptions, resolvedType: any): $a;
//# sourceMappingURL=Remoting.fs.d.ts.map