Variable defaultConst

    default: {
        add: ((project: {
            id: string;
        }, geometry: {
            name: string;
            uid: string;
        }) => Promise<INewGeometry>);
        del: ((geometry: {
            id: string;
        }) => Promise<void>);
        get: (<T>(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>)
        • (project, geometry): Promise<INewGeometry>
        • Add

          Parameters

          • project: {
                id: string;
            }

            Project

            • id: string
          • geometry: {
                name: string;
                uid: string;
            }

            Geometry

            • name: string
            • uid: string

          Returns Promise<INewGeometry>

          Geometry

    • del: ((geometry: {
          id: string;
      }) => Promise<void>)
        • (geometry): Promise<void>
        • Delete

          Parameters

          • geometry: {
                id: string;
            }

            Geometry

            • id: string

          Returns Promise<void>

    • get: (<T>(id: string, data: T) => Promise<undefined | IGeometry<T>>)
    • update: ((geometry: {
          id: string;
      }, data: any[]) => Promise<void>)
        • (geometry, data): Promise<void>
        • Update

          Parameters

          • geometry: {
                id: string;
            }

            Geometry

            • id: string
          • data: any[]

            Data

          Returns Promise<void>

    Generated using TypeDoc and TypeDoc Airthium Plugin