@novice1/frame - v0.3.1
    Preparing search index...

    Interface FrameworkOptions

    interface FrameworkOptions {
        bodyParser?: { json?: OptionsJson; urlencoded?: OptionsUrlencoded };
        cookieParser?: { options?: CookieParseOptions; secret?: string | string[] };
        cors?: boolean | CorsOptions | CorsOptionsDelegate<CorsRequest>;
        validatorOnError?: ErrorRequestHandler<
            ParamsDictionary,
            any,
            any,
            ParsedQs,
            Record<string, any>,
            any,
        >;
    }

    Hierarchy

    • FrameworkOptions
      • FrameworkOptions
    Index

    Properties

    bodyParser?: { json?: OptionsJson; urlencoded?: OptionsUrlencoded }
    cookieParser?: { options?: CookieParseOptions; secret?: string | string[] }
    cors?: boolean | CorsOptions | CorsOptionsDelegate<CorsRequest>
    validatorOnError?: ErrorRequestHandler<
        ParamsDictionary,
        any,
        any,
        ParsedQs,
        Record<string, any>,
        any,
    >

    Error request handler for the default validator if no validitor was set in constructor