Variable defaultConst

    default: {
        add: ((userModel: {
            model: IModel;
            template: string;
        }, user: {
            id: string;
        }) => Promise<any>);
        del: ((userModel: {
            id: string;
        }) => Promise<void>);
        get: (<T>(id: string, data: T) => Promise<undefined | IUserModel<T>>);
        update: ((UserModel: {
            id: string;
        }, data: any[]) => Promise<void>);
    } = ...

    Type declaration

    • add: ((userModel: {
          model: IModel;
          template: string;
      }, user: {
          id: string;
      }) => Promise<any>)
        • (userModel, user): Promise<any>
        • Add

          Parameters

          • userModel: {
                model: IModel;
                template: string;
            }

            User model

          • user: {
                id: string;
            }

            User

            • id: string

          Returns Promise<any>

          UserModel

    • del: ((userModel: {
          id: string;
      }) => Promise<void>)
        • (userModel): Promise<void>
        • Parameters

          • userModel: {
                id: string;
            }

            User model

            • id: string

          Returns Promise<void>

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

          Type Parameters

          Parameters

          • id: string

            User model id

          • data: T

            Data

          Returns Promise<undefined | IUserModel<T>>

          UserModel

    • update: ((UserModel: {
          id: string;
      }, data: any[]) => Promise<void>)
        • (UserModel, data): Promise<void>
        • Update

          Parameters

          • UserModel: {
                id: string;
            }

            User model

            • id: string
          • data: any[]

            Data

          Returns Promise<void>

    Generated using TypeDoc and TypeDoc Airthium Plugin