Type Alias GraffitiPutObject<Schema>

GraffitiPutObject: Pick<GraffitiObjectBase, "value" | "channels" | "allowed"> & Partial<
    GraffitiObjectBase,
> & FromSchema<Schema & typeof GraffitiPutObjectJSONSchema>

This object is a subset of GraffitiObjectBase that a user must construct locally before calling Graffiti.put. This local copy does not require system-generated properties and may be statically typed with a JSON schema to prevent the accidental creation of erroneous objects.

This local object must have a value and channels and may optionally have an allowed property.

It may also include a url property to specify the URL of an existing object to replace. If no url is provided, one will be generated during object creation.

This object does not need a lastModified property since it will be automatically generated by the Graffiti system.

Type Parameters