@jiangweiye/cloudflare-service
v0.0.6
Published
cloudflare-service-shared
Downloads
22
Readme
@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;
}