@novice1/routing 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/router.d.ts +13 -1
- package/package.json +1 -1
package/lib/router.d.ts
CHANGED
|
@@ -2,16 +2,28 @@ import * as e from 'express';
|
|
|
2
2
|
import * as core from 'express-serve-static-core';
|
|
3
3
|
import { ParsedQs } from 'qs'
|
|
4
4
|
|
|
5
|
+
declare global {
|
|
6
|
+
namespace NoviceRouting {
|
|
7
|
+
// These open interfaces may be extended in an application-specific manner via declaration merging.
|
|
8
|
+
// See for example method-override.d.ts (https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/method-override/index.d.ts)
|
|
9
|
+
interface MetaParameters {}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
5
13
|
declare namespace routing {
|
|
6
14
|
|
|
7
15
|
//--- META
|
|
8
16
|
|
|
17
|
+
export interface MetaParameters extends NoviceRouting.MetaParameters {
|
|
18
|
+
[x: string]: any;
|
|
19
|
+
}
|
|
20
|
+
|
|
9
21
|
export interface BaseMeta<ResType> {
|
|
10
22
|
name?: string;
|
|
11
23
|
description?: string;
|
|
12
24
|
tags?: string | string[];
|
|
13
25
|
auth?: boolean;
|
|
14
|
-
parameters?:
|
|
26
|
+
parameters?: MetaParameters;
|
|
15
27
|
responses?: ResType;
|
|
16
28
|
}
|
|
17
29
|
|