UNPKG

next-rest-framework

Version:

Next REST Framework - write type-safe, self-documenting REST APIs in Next.js

26 lines (25 loc) 1.01 kB
import { type NextRestFrameworkConfig } from '../types'; export declare const logInitInfo: ({ config }: { config: NextRestFrameworkConfig; }) => void; export declare const logReservedPaths: ({ config, baseUrl }: { config: NextRestFrameworkConfig; baseUrl: string; }) => void; export declare const warnAboutReservedPath: ({ path, name, configName }: { path?: string | undefined; name: string; configName: 'openApiJsonPath' | 'openApiYamlPath' | 'swaggerUiPath'; }) => void; export declare const warnAboutDirNotFound: ({ configName, path }: { configName: 'appDirPath' | 'apiRoutesPath'; path: string; }) => void; export declare const logIgnoredPaths: (paths: string[]) => void; export declare const handleReservedPathWarnings: ({ pathname, config: { openApiJsonPath, openApiYamlPath, swaggerUiPath } }: { pathname?: string | undefined; config: NextRestFrameworkConfig; }) => void; export declare const logNextRestFrameworkError: ({ error }: { error: unknown; }) => void;