Type Alias: ObjectRead
type ObjectRead =
| {
details: IotaObjectData;
status: "VersionFound";
}
| {
details: string;
status: "ObjectNotExists";
}
| {
details: IotaObjectRef;
status: "ObjectDeleted";
}
| {
details: [string, string];
status: "VersionNotFound";
}
| {
details: {
asked_version: string;
latest_version: string;
object_id: string;
};
status: "VersionTooHigh";
};
Type Declaration
{
details: IotaObjectData;
status: "VersionFound";
}
| Name | Type |
|---|---|
details | IotaObjectData |
status | "VersionFound" |
The object exists and is found with this version
{
details: string;
status: "ObjectNotExists";
}
| Name | Type |
|---|---|
details | string |
status | "ObjectNotExists" |
{
details: IotaObjectRef;
status: "ObjectDeleted";
}
| Name | Type |
|---|---|
details | IotaObjectRef |
status | "ObjectDeleted" |
{
details: [string, string];
status: "VersionNotFound";
}
| Name | Type |
|---|---|
details | [string, string] |
status | "VersionNotFound" |
{
details: {
asked_version: string;
latest_version: string;
object_id: string;
};
status: "VersionTooHigh";
}
| Name | Type |
|---|---|
details | object |
details.asked_version | string |
details.latest_version | string |
details.object_id | string |
status | "VersionTooHigh" |