Variable defaultConst

    default: {
        add: ((avatar: {
            name: string;
            path: string;
            type: string;
        }) => Promise<INewAvatar>);
        del: ((avatar: {
            id: string;
        }) => Promise<void>);
        get: (<T>(id: string, data: T) => Promise<undefined | IAvatar<T>>);
    } = ...

    Type declaration

    • add: ((avatar: {
          name: string;
          path: string;
          type: string;
      }) => Promise<INewAvatar>)
        • (avatar): Promise<INewAvatar>
        • Add

          Parameters

          • avatar: {
                name: string;
                path: string;
                type: string;
            }

            Avatar

            • name: string
            • path: string
            • type: string

          Returns Promise<INewAvatar>

          Avatar

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

          Parameters

          • avatar: {
                id: string;
            }

            Avatar

            • id: string

          Returns Promise<void>

    • get: (<T>(id: string, data: T) => Promise<undefined | IAvatar<T>>)
        • <T>(id, data): Promise<undefined | IAvatar<T>>
        • Get

          Type Parameters

          Parameters

          • id: string

            Avatar id

          • data: T

            Data

          Returns Promise<undefined | IAvatar<T>>

          Avatar

    Generated using TypeDoc and TypeDoc Airthium Plugin