Fanis Tharropoulos
09/10/2024, 5:15 PMCollectionFieldSchema
, the resulting type of update schema isn't sure to be matching that of CollectionUpdateSchema
. A solution to this would be to just guard the constant with the CollectionFieldSchema
type, or just guard the update schema object and define any change in there i.e
const update_schema: CollectionUpdateSchema = {
fields: [
{
name: "title",
type: "string",
optional: false,
},
],
};