Skip to content

Latest commit

 

History

History
executable file
·
23 lines (19 loc) · 612 Bytes

installation.md

File metadata and controls

executable file
·
23 lines (19 loc) · 612 Bytes

Installation

You can get the latest release and the type setDefinitions using npm:

npm install swagger-express-ts reflect-metadata --save

swagger-express-ts requires the experimentalDecorators, emitDecoratorMetadata and lib compilation options in your tsconfig.json file.

{
    "compilerOptions": {
        "target": "es5",
        "lib": ["es6"],
        "types": ["reflect-metadata", "swagger-express-ts"],
        "module": "commonjs",
        "moduleResolution": "node",
        "experimentalDecorators": true,
        "emitDecoratorMetadata": true
    }
}