Variable StashedRequestConst
StashedRequest: ObjectSchema<{
id: StringSchema<string>;
name: OptionalSchema<StringSchema<string>, undefined, undefined | string>;
origin: StringSchema<string>;
payload: VariantSchema<"type", [ObjectSchema<{
type: LiteralSchema<"connect", "connect">;
}, undefined, {
type: "connect";
}>, ObjectSchema<{
address: StringSchema<string>;
data: StringSchema<string>;
type: LiteralSchema<"sign-transaction-block", "sign-transaction-block">;
}, undefined, {
address: string;
data: string;
type: "sign-transaction-block";
}>, ObjectSchema<{
address: StringSchema<string>;
bytes: StringSchema<string>;
type: LiteralSchema<"sign-personal-message", "sign-personal-message">;
}, undefined, {
address: string;
bytes: string;
type: "sign-personal-message";
}>], {
type: "connect";
} | {
address: string;
data: string;
type: "sign-transaction-block";
} | {
address: string;
bytes: string;
type: "sign-personal-message";
}>;
}, undefined, {
id: string;
name?: string;
origin: string;
payload: {
type: "connect";
} | {
address: string;
data: string;
type: "sign-transaction-block";
} | {
address: string;
bytes: string;
type: "sign-personal-message";
};
}> = ...
Type declaration
id: StringSchema<string>
name: OptionalSchema<StringSchema<string>, undefined, undefined | string>
origin: StringSchema<string>
payload: VariantSchema<"type", [ObjectSchema<{
type: LiteralSchema<"connect", "connect">;
}, undefined, {
type: "connect";
}>, ObjectSchema<{
address: StringSchema<string>;
data: StringSchema<string>;
type: LiteralSchema<"sign-transaction-block", "sign-transaction-block">;
}, undefined, {
address: string;
data: string;
type: "sign-transaction-block";
}>, ObjectSchema<{
address: StringSchema<string>;
bytes: StringSchema<string>;
type: LiteralSchema<"sign-personal-message", "sign-personal-message">;
}, undefined, {
address: string;
bytes: string;
type: "sign-personal-message";
}>], {
type: "connect";
} | {
address: string;
data: string;
type: "sign-transaction-block";
} | {
address: string;
bytes: string;
type: "sign-personal-message";
}>
Type declaration
id: string
Optional
name?: string
origin: string
payload: {
type: "connect";
} | {
address: string;
data: string;
type: "sign-transaction-block";
} | {
address: string;
bytes: string;
type: "sign-personal-message";
}