0.0.6 • Published 10 months ago
@jiangweiye/cloudflare-service v0.0.6
@jiangweiye/cloudflare-service
install
with pnpm
pnpm add @jiangweiye/cloudflare-service
with yarn
yarn add @jiangweiye/cloudflare-service
with npm
npm install @jiangweiye/cloudflare-service
type
export declare class Service {
static success(data: any, message?: string): Response;
static clientError(reason?: string): Response;
static notFound(reason?: string): Response;
static unauthorized(reason?: string): Response;
static gatewayTimeout(reason?: string): Response;
static serverError(reason?: string): Response;
static unknownError(reason?: string): Response;
}