Type Alias: SaveResult<TData>
SaveResult<
TData> =object&TData|object&TData
Defined in: packages/core/src/saves/types.ts:116
Result of every save operation, discriminated on success.
Type Parameters
TData
TData = unknown
Extra fields carried by both branches, so a caller can read them without narrowing first.
Example
const result = await slot.save({ title: "Chapter 2" });
if (!result.success && result.code !== "cancelled") {
toast(result.error);
}