Skip to content
On this page

KirbyQueryResponse

Importable from #nuxt-kql.

ts
import type { KirbyQueryResponse } from '#nuxt-kql'

Type Declarations

INFO

Types are re-exported from the kirby-fest package.

ts
interface KirbyQueryResponse<
  T = any,
  Pagination extends boolean = false
> {
  code: number
  status: string
  result?: Pagination extends true
    ? {
        data: T
        pagination: {
          page: number
          pages: number
          offset: number
          limit: number
          total: number
        }
      }
    : T
}

Released under the MIT License.