Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CrudRepository<T, K>

Type parameters

  • T

  • K: keyof T

Hierarchy

  • CrudRepository

Index

Properties

create

create: (data: any, options: any) => PromiseLike<T>

Type declaration

    • (data: any, options: any): PromiseLike<T>
    • Parameters

      • data: any
      • options: any

      Returns PromiseLike<T>

deleteById

deleteById: (id: T[K], options: any) => PromiseLike<any>

Type declaration

    • (id: T[K], options: any): PromiseLike<any>
    • Parameters

      • id: T[K]
      • options: any

      Returns PromiseLike<any>

detailById

detailById: (id: T[K], options: any) => PromiseLike<T>

Type declaration

    • (id: T[K], options: any): PromiseLike<T>
    • Parameters

      • id: T[K]
      • options: any

      Returns PromiseLike<T>

list

list: (filters: any, options: any) => PromiseLike<T[]>

Type declaration

    • (filters: any, options: any): PromiseLike<T[]>
    • Parameters

      • filters: any
      • options: any

      Returns PromiseLike<T[]>

updateById

updateById: (id: T[K], data: any, options: any) => PromiseLike<T>

Type declaration

    • (id: T[K], data: any, options: any): PromiseLike<T>
    • Parameters

      • id: T[K]
      • data: any
      • options: any

      Returns PromiseLike<T>

Generated using TypeDoc