Variable defaultConst

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

    Type declaration

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

          Parameters

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

            User model

          • user: {
                id: string;
            }

            User

            • id: string

          Returns Promise<IUserModel<[]>>

          New user model

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

          Parameters

          • user: {
                id: string;
            }

            User

            • id: string
          • userModel: {
                id: string;
            }

            User model

            • id: string

          Returns Promise<void>

    • getWithData: (<T>(id: string, data: T) => Promise<undefined | IUserModelWithData<T>>)
    • 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