@yoroi/types
Version:
The Yoroi Types package of Yoroi SDK
42 lines (40 loc) • 1.01 kB
Flow
/**
* Flowtype definitions for cardano
* Generated by Flowgen from a Typescript Definition
* Flowgen v1.21.0
*/
export interface LinksUriRules {
+requiredParams: $ReadOnlyArray<string>;
+optionalParams: $ReadOnlyArray<string>;
+forbiddenParams: $ReadOnlyArray<string>;
+extraParams: "include" | "deny" | "drop";
}
export interface LinksUriConfig {
+rules: LinksUriRules;
+scheme?: string;
+authority?: string;
+version?: string;
+path?: string;
}
export type LinksWebCardanoUriConfig = {
+scheme: "web+cardano",
+authority: "" | "transfer" | "claim",
+version: "v1" | "",
...
} & LinksUriConfig;
export type LinksParams = $ReadOnly<{ [key: string]: any, ... }>;
export type LinksLink<T: LinksUriConfig> = $ReadOnly<{
config: T,
params: LinksParams,
link: string,
...
}>;
export type LinksModule<T: LinksUriConfig> = $ReadOnly<{
create: (args: {
config: T,
params: LinksParams,
...
}) => LinksLink<T>,
parse: (text: string) => LinksLink<T> | void,
...
}>;