Skip to main content
Module

x/dinar/lib/interface/mod.ts

deno web framewrok maybe :<
Latest
File
import { ArgumentsTypes } from "../constant/ArgumentsTypes.ts";import { Context } from "../core/Context.ts";import { ServerRequest } from "../deps.ts";
export interface IMiddleware { apply(req: ServerRequest): void;}
export interface IPipe { validate(argTypes: ArgumentsMetadata[], c: Context): void;}
export interface IFilter { catch(e: any, c: Context): void;}
export interface IStatic { apply(c: Context): boolean | Promise<boolean>;}
export interface IInterceptor { apply(c: Context): void;}
export interface IGuard { can(c: Context): void;}
export interface ILogger { log(c: Context): void;}
export interface ArgumentsMetadata { value?: any; field: string; argType: any; metaType: ArgumentsTypes;}