@mocanvas/store · type

RecordCreateProps

type RecordCreateProps<R extends UnknownRecord, RequiredProps extends keyof R> = Pick<R, RequiredProps> & Partial<Omit<R, RequiredProps | "typeName">>

Properties the caller must pass to create(): the record's data keys minus whatever withDefaultProperties provides. id is always optional.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.