/** * Framework Utilities * * Framework-specific utilities for integrating Plyaz with various JavaScript frameworks. * These are build-time/config-time helpers (as opposed to runtime streaming adapters). * * Types are NOT re-exported from here. Import them directly from '@plyaz/types/core': * - RouteContext, RouteHandler, RouteHandlerConfig, HandlersTypeMap * - NextJSRouteConfig, NextJSRouteContext, NextJSRouteHandler, NextJSRouteExports * - InjectedServices, PlyazNextConfigOptions, PlyazNextConfig * * @example Next.js config * ```typescript * import { withPlyazNextConfig } from '@plyaz/core/frameworks/nextjs'; * * export default withPlyazNextConfig({ ... }); * ``` * * @example Next.js route factory * ```typescript * import { createNextApiRoute } from '@plyaz/core/frameworks/nextjs'; * import type { NextJSRouteConfig } from '@plyaz/types/core'; * * export const { GET, POST } = createNextApiRoute({ * service: 'users', * handlers: { * GET: async (service) => service.getAll(), * POST: async (service, { body }) => service.create(body), * }, * }); * ``` */ export * from './base'; export { createNextApiRoute, withPlyazNextConfig, plyazServerExternalPackages, plyazWebpackClientFallbacks, plyazWebpackClientAliases, } from './nextjs'; export { createExpressRoute } from './express'; export * as NextJS from './nextjs'; export * as Express from './express'; export * as FrameworkBase from './base'; //# sourceMappingURL=index.d.ts.map