wind-waker
#
Classes#
Type aliases#
ActionƬ Action<T
>: (input
: T
, ctx
: Context
<T
>) => any
| void
#
Type parametersName | Type |
---|---|
T | any |
#
Type declarationâ–¸ (input
, ctx
): any
| void
#
ParametersName | Type |
---|---|
input | T |
ctx | Context <T > |
#
Returnsany
| void
#
Defined in#
ActionConfigƬ ActionConfig: Object
#
Type declarationName | Type |
---|---|
fn | Action |
pipes | Pipe [] |
#
Defined in#
ActionsƬ Actions: Map
<string
, ActionConfig
>
#
Defined in#
ContextƬ Context<T
>: { code?
: number
; input?
: T
; rawBody
: string
; req
: IncomingMessage
& Record
<string
, any
> ; res
: ServerResponse
& Record
<string
, any
> ; url
: URL
} & Record
<string
, any
>
#
Type parametersName | Type |
---|---|
T | any |
#
Defined in#
PipeƬ Pipe: (ctx
: Context
) => void
| Promise
<any
> | any
#
Type declarationâ–¸ (ctx
): void
| Promise
<any
> | any
#
ParametersName | Type |
---|---|
ctx | Context |
#
Returnsvoid
| Promise
<any
> | any
#
Defined in#
Functions#
$codeâ–¸ Const
$code(statusCode
): (__namedParameters
: Context
<any
>) => void
#
ParametersName | Type |
---|---|
statusCode | number |
#
Returnsfn
â–¸ (__namedParameters
): void
#
ParametersName | Type |
---|---|
__namedParameters | Context <any > |
#
Returnsvoid
#
Defined in#
$corsâ–¸ Const
$cors(options?
): (__namedParameters
: Object
) => void
#
ParametersName | Type |
---|---|
options | CorsOptions |
#
Returnsfn
â–¸ (__namedParameters
): void
#
ParametersName | Type |
---|---|
__namedParameters | Object |
#
Returnsvoid
#
Defined in#
$helmetâ–¸ Const
$helmet(options?
): Pipe
#
ParametersName | Type |
---|---|
options | HelmetOptions |
#
Returns#
Defined inpipes/third-party/helmet.ts:28
#
actionâ–¸ action(name
, fn
, pipes?
): void
#
ParametersName | Type | Default value |
---|---|---|
name | string | undefined |
fn | Action | undefined |
pipes | Pipe [] | [] |
#
Returnsvoid
#
Defined in#
endâ–¸ Const
end(): Promise
<App
>
#
ReturnsPromise
<App
>
#
Defined in#
expressâ–¸ Const
express(pipe
): Pipe
Provides compatibility with express middlewares
#
ParametersName | Type |
---|---|
pipe | ExpressMiddleware |
#
Returns#
Defined in#
setPipesâ–¸ Const
setPipes(fn
, pipes?
): Pipe
[]
#
ParametersName | Type | Default value |
---|---|---|
fn | Action <any > | undefined |
pipes | Pipe [] | [] |
#
ReturnsPipe
[]
#
Defined in#
startâ–¸ Const
start(port?
, options?
): Promise
<App
>
#
ParametersName | Type | Default value |
---|---|---|
port | number | 4000 |
options | AppOptions | {} |
#
ReturnsPromise
<App
>