mirror of
https://github.com/zhigang1992/firecms.git
synced 2026-06-17 02:51:51 +08:00
Schema types V3
This commit is contained in:
@@ -218,8 +218,8 @@ export function saveEntity(
|
||||
* Delete an entity
|
||||
* @param entity
|
||||
*/
|
||||
export function deleteEntity(
|
||||
entity: Entity<any>
|
||||
export function deleteEntity<S extends EntitySchema>(
|
||||
entity: Entity<S>
|
||||
): Promise<void> {
|
||||
console.debug("Deleting entity", entity);
|
||||
return entity.reference.delete();
|
||||
|
||||
Reference in New Issue
Block a user