UNPKG

@tomisakae/syosetu-api

Version:

Enterprise-grade Fastify TypeScript API for Syosetu.com data extraction using official API and web scraping. Run instantly with 'npx @tomisakae/syosetu-api'

7 lines 593 B
import { FastifyReply } from 'fastify'; export declare const sendSuccess: <T>(reply: FastifyReply, data: T, message?: string, statusCode?: number) => void; export declare const sendError: (reply: FastifyReply, error: string, statusCode?: number, details?: Record<string, unknown>) => void; export declare const sendValidationError: (reply: FastifyReply, errors: string[]) => void; export declare const sendNotFound: (reply: FastifyReply, resource?: string) => void; export declare const sendInternalError: (reply: FastifyReply, message?: string) => void; //# sourceMappingURL=response.d.ts.map