Options
All
  • Public
  • Public/Protected
  • All
Menu

Module api/graphql/resolvers/_ordre-update

Index

Functions

Functions

Const ordreFix

  • ordreFix<I, O>(elements: I[], update: (id: string, props: Partial<I>) => Promise<O>): Promise<void>
  • Type parameters

    • I: { id: string; ordre: number }

    • O

    Parameters

    • elements: I[]
    • update: (id: string, props: Partial<I>) => Promise<O>
        • (id: string, props: Partial<I>): Promise<O>
        • Parameters

          • id: string
          • props: Partial<I>

          Returns Promise<O>

    Returns Promise<void>

Const ordreUpdate

  • ordreUpdate<I, O>(element: I, elements: I[], update: (id: string, props: Partial<I>) => Promise<O>): Promise<void>
  • Type parameters

    • I: { id: string; ordre: number }

    • O

    Parameters

    • element: I
    • elements: I[]
    • update: (id: string, props: Partial<I>) => Promise<O>
        • (id: string, props: Partial<I>): Promise<O>
        • Parameters

          • id: string
          • props: Partial<I>

          Returns Promise<O>

    Returns Promise<void>

Generated using TypeDoc