Public Source Viewer

비나래아카이브 개발자 포털

실제 서비스 구조를 살펴볼 수 있는 공개용 코드 뷰어입니다. 인증, 세션, 외부 연동, 토큰, 관리자 식별 등 보안상 민감한 구현은 파일 단위 또는 줄 단위로 검열됩니다.

Redacted View
src/types/custom.d.ts
공개 가능
1 // express-flash 타입 정의
2 declare module 'express-flash' {
3 import { RequestHandler } from 'express';
4 function flash(): RequestHandler;
5 export = flash;
6 }
7
8 // express-title 타입 정의
9 declare module 'express-title' {
10 import { RequestHandler } from 'express';
11 function title(): RequestHandler;
12 export = title;
13 }
14
15 // date-and-time 타입 정의
16 declare module 'date-and-time' {
17 export function format(date: Date, pattern: string): string;
18 export function parse(dateString: string, pattern: string): Date;
19 }
20
21 // vhost 타입 정의
22 declare module 'vhost' {
23 import { RequestHandler } from 'express';
24 function vhost(hostname: string, handler: RequestHandler): RequestHandler;
25 export = vhost;
26 }
27
28 // express-favicon 타입 정의
29 declare module 'express-favicon' {
30 import { RequestHandler } from 'express';
31 function favicon(path: string): RequestHandler;
32 export = favicon;
33 }
34
35 // vhttps 타입 정의
36 declare module 'vhttps' {
37 const content: any;
38 export = content;
39 }
40
41 // request 모듈의 post 함수 타입 정의
42 declare module 'request' {
43 export function post(options: any, callback?: (error: any, response: any, body: any) => void): any;
44 }
45