Variable defaultConst

    default: {
        add: ((user: {
            email: string;
            password: string;
        }) => Promise<IFrontNewUser>);
        check: ((user: {
            email: string;
            password: string;
        }) => Promise<{
            valid: boolean;
        }>);
        del: (() => Promise<void>);
        delById: ((id: string) => Promise<void>);
        update: ((data: any[]) => Promise<void>);
        updateById: ((id: string, data: any[]) => Promise<void>);
        useUser: (() => [undefined | IFrontUser, {
            clearUser: (() => Promise<void>);
            errorUser: Error;
            loadingUser: boolean;
            mutateUser: ((user: Partial<IFrontMutateUser>) => Promise<void>);
        }]);
        useUsers: (() => [IFrontUsers, {
            addOneUser: ((user: IFrontNewUser) => Promise<void>);
            delOneUser: ((user: IFrontMutateUsersItem) => Promise<void>);
            errorUsers: Error;
            loadingUsers: boolean;
            mutateOneUser: ((user: IFrontMutateUsersItem) => Promise<void>);
        }]);
    } = ...

    Type declaration

    • add: ((user: {
          email: string;
          password: string;
      }) => Promise<IFrontNewUser>)
        • (user): Promise<IFrontNewUser>
        • Add

          Parameters

          • user: {
                email: string;
                password: string;
            }

            User

            • email: string
            • password: string

          Returns Promise<IFrontNewUser>

          User

    • check: ((user: {
          email: string;
          password: string;
      }) => Promise<{
          valid: boolean;
      }>)
        • (user): Promise<{
              valid: boolean;
          }>
        • Check

          Parameters

          • user: {
                email: string;
                password: string;
            }

            User

            • email: string
            • password: string

          Returns Promise<{
              valid: boolean;
          }>

          User

    • del: (() => Promise<void>)
        • (): Promise<void>
        • Delete

          Returns Promise<void>

    • delById: ((id: string) => Promise<void>)
        • (id): Promise<void>
        • Delete by id

          Parameters

          • id: string

            User id

          Returns Promise<void>

    • update: ((data: any[]) => Promise<void>)
        • (data): Promise<void>
        • Update

          Parameters

          • data: any[]

            Data

          Returns Promise<void>

    • updateById: ((id: string, data: any[]) => Promise<void>)
        • (id, data): Promise<void>
        • Update by id

          Parameters

          • id: string

            User id

          • data: any[]

            Data

          Returns Promise<void>

    • useUser: (() => [undefined | IFrontUser, {
          clearUser: (() => Promise<void>);
          errorUser: Error;
          loadingUser: boolean;
          mutateUser: ((user: Partial<IFrontMutateUser>) => Promise<void>);
      }])
        • (): [undefined | IFrontUser, {
              clearUser: (() => Promise<void>);
              errorUser: Error;
              loadingUser: boolean;
              mutateUser: ((user: Partial<IFrontMutateUser>) => Promise<void>);
          }]
        • Use user

          Returns [undefined | IFrontUser, {
              clearUser: (() => Promise<void>);
              errorUser: Error;
              loadingUser: boolean;
              mutateUser: ((user: Partial<IFrontMutateUser>) => Promise<void>);
          }]

          User

    • useUsers: (() => [IFrontUsers, {
          addOneUser: ((user: IFrontNewUser) => Promise<void>);
          delOneUser: ((user: IFrontMutateUsersItem) => Promise<void>);
          errorUsers: Error;
          loadingUsers: boolean;
          mutateOneUser: ((user: IFrontMutateUsersItem) => Promise<void>);
      }])

    Generated using TypeDoc and TypeDoc Airthium Plugin