# Function PaginatedResponseSchema

- PaginatedResponseSchema<
  T extends ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>,
  >(
  dataSchema: T,
  ): ZodObject<
  {
  data: ZodArray<T>;
  hasMore: ZodBoolean;
  limit: ZodNumber;
  offset: ZodNumber;
  total: ZodNumber;
  },
  >

  Paginated response schema factory

  #### Type Parameters

  - T extends ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>

  #### Parameters

  - dataSchema: T

  #### Returns ZodObject<
  {
  data: ZodArray<T>;
  hasMore: ZodBoolean;
  limit: ZodNumber;
  offset: ZodNumber;
  total: ZodNumber;
  },
  >

  - Defined in schemas/ep/common.ts:69