update: (
id: any,
change: any,
) =>
| {
errors: string[];
message?: undefined;
ok: boolean;
readiness?: undefined;
relationship?: undefined;
}
| {
errors?: undefined;
message: string;
ok: boolean;
readiness: { missing: string[]; ready: boolean };
relationship: {};
} = update
Type Declaration
-
- (
id: any,
change: any,
):
| {
errors: string[];
message?: undefined;
ok: boolean;
readiness?: undefined;
relationship?: undefined;
}
| {
errors?: undefined;
message: string;
ok: boolean;
readiness: { missing: string[]; ready: boolean };
relationship: {};
}
-
Returns
| {
errors: string[];
message?: undefined;
ok: boolean;
readiness?: undefined;
relationship?: undefined;
}
| {
errors?: undefined;
message: string;
ok: boolean;
readiness: { missing: string[]; ready: boolean };
relationship: {};
}
{ ok: true, relationship, readiness, message }, or { ok: false, errors }
Changes one attribute of a relationship.