Type 'string | null' is not assignable to type 'string | undefined'.
Argument of type 'Quest' is not assignable to parameter of type '{ id: string; title?: string | undefined; rating?: number | undefined; rating_denominator?: number | undefined; reward_xp?: number | undefined; goal?: string | undefined; target?: Date | undefined; ... 7 more ...; objectives?: { ...; }[] | undefined; }'.
Types of property 'description' are incompatible.
Type 'string | null' is not assignable to type 'string | undefined'.
Type 'null' is not assignable to type 'string | undefined'.ts(2345)
I'm getting type directly from:
type Quest = RouterOutputs["quests"]["getById"];
and update procedure is below...
also lmk if I'm updating custom types wrong
Types of property 'description' are incompatible.
Type 'string | null' is not assignable to type 'string | undefined'.
Type 'null' is not assignable to type 'string | undefined'.ts(2345)
I'm getting type directly from:
type Quest = RouterOutputs["quests"]["getById"];
and update procedure is below...
also lmk if I'm updating custom types wrong