default: {
    add: (
        project: { id: string },
        geometry: { name: string; uid: string },
    ) => Promise<INewGeometry>;
    del: (geometry: { id: string }) => Promise<void>;
    get: <T extends TGeometryGet>(
        id: string,
        data: T,
    ) => Promise<undefined | IGeometry<T>>;
    update: (geometry: { id: string }, data: any[]) => Promise<void>;
} = ...

Type declaration

  • add: (
        project: { id: string },
        geometry: { name: string; uid: string },
    ) => Promise<INewGeometry>
  • del: (geometry: { id: string }) => Promise<void>
  • get: <T extends TGeometryGet>(
        id: string,
        data: T,
    ) => Promise<undefined | IGeometry<T>>
  • update: (geometry: { id: string }, data: any[]) => Promise<void>