Skip to content

Commit b1b9b88

Browse files
committed
Revert part of the change.
1 parent 792e9e4 commit b1b9b88

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

src/WebApiTestApplication/Scripts/Interfaces/Interfaces.ts

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,62 @@ namespace Interfaces {
7878
return this;
7979
}
8080
}
81+
82+
export interface IChain1Generic1<T> {
83+
value: T;
84+
}
85+
86+
export class Chain1Generic1<T> implements IChain1Generic1<T>, Endpoints.IHaveQueryParams {
87+
value: T;
88+
89+
getQueryParams() {
90+
return this;
91+
}
92+
}
93+
94+
export interface IChain1Generic2<T1, T2> {
95+
value11: T1;
96+
value12: T2;
97+
}
98+
99+
export class Chain1Generic2<T1, T2> implements IChain1Generic2<T1, T2>, Endpoints.IHaveQueryParams {
100+
value11: T1;
101+
value12: T2;
102+
103+
getQueryParams() {
104+
return this;
105+
}
106+
}
107+
108+
export interface IChain2Generic1<TValue> extends IChain1Generic2<TValue, number> {
109+
value2: TValue;
110+
}
111+
112+
export class Chain2Generic1<TValue> extends Chain1Generic2<TValue, number> implements IChain2Generic1<TValue>, Endpoints.IHaveQueryParams {
113+
value2: TValue;
114+
115+
constructor() {
116+
super();
117+
}
118+
119+
getQueryParams() {
120+
return this;
121+
}
122+
}
123+
124+
export interface IChain3 extends IChain2Generic1<Interfaces.MegaClass> {
125+
value3: any;
126+
}
127+
128+
export class Chain3 extends Chain2Generic1<Interfaces.MegaClass> implements IChain3, Endpoints.IHaveQueryParams {
129+
value3: any;
130+
131+
constructor() {
132+
super();
133+
}
134+
135+
getQueryParams() {
136+
return this;
137+
}
138+
}
81139
}

src/WebApiTestApplication/Watts.config.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
"InterfacesOutputDirectory": "./Scripts/Interfaces",
2424
"InterfacesFileName": "Interfaces.ts",
2525
"InterfacesNamespace": "Interfaces",
26+
"InterfaceMatches": [
27+
{
28+
"Match": "WebApiTestApplication.Controllers.*Chain.*$"
29+
}
30+
],
2631

2732
"ScanOtherModules": true,
2833
"WriteNamespaceAsModule": false,

0 commit comments

Comments
 (0)