Skip to content

Commit f69312c

Browse files
author
Matthias Alif
committed
Minor fix
1 parent 966990a commit f69312c

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

dist/App.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="node" />
22
import Koa from "koa";
3+
import { Server } from 'http';
34
export default class App {
45
/**
56
* @ignore
@@ -44,5 +45,5 @@ export default class App {
4445
* @desc Launches the app and starts listening on the configured port.
4546
* @return {Koa}
4647
*/
47-
start(): Promise<import("http").Server>;
48+
start(): Promise<Server>;
4849
}

dist/App.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/types/i18n/en.json

-1
This file was deleted.

dist/types/i18n/fr.json

-1
This file was deleted.

src/App.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import notFound from "./middlewares/notFound";
99

1010
import { objValToArray } from "./utils/utils";
1111
import * as docGenerator from "./utils/docGenerator";
12+
import { Server } from 'http';
1213

1314
export default class App {
1415
/**
@@ -112,7 +113,7 @@ export default class App {
112113
* @desc Launches the app and starts listening on the configured port.
113114
* @return {Koa}
114115
*/
115-
async start() {
116+
public async start(): Promise<Server> {
116117
this.koaApp.use(notFound());
117118

118119
docGenerator.end();

tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
"compilerOptions": {
33
/* Basic Options */
44
"target": "ES2017" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */,
5-
"declaration": true, /* Tell TypeScript to emit .d.ts files */
65
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
76
"lib": [
87
"es6"
98
] /* Specify library files to be included in the compilation. */,
109
// "allowJs": true, /* Allow javascript files to be compiled. */
1110
// "checkJs": true, /* Report errors in .js files. */
1211
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
13-
// "declaration": true, /* Generates corresponding '.d.ts' file. */
12+
"declaration": true, /* Generates corresponding '.d.ts' file. */
1413
"sourceMap": true /* Generates corresponding '.map' file. */,
1514
// "outFile": "./", /* Concatenate and emit output to single file. */
1615
"outDir": "dist" /* Redirect output structure to the directory. */,

0 commit comments

Comments
 (0)