We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8de7bf commit e2f05c9Copy full SHA for e2f05c9
src/lib/types.ts
@@ -81,6 +81,10 @@ export interface HttpClientConfig {
81
* @deprecated keep compatible with egg 3.x, no more used
82
*/
83
useHttpClientNext?: boolean;
84
+ /**
85
+ * Allow http2
86
+ */
87
+ allowH2?: boolean;
88
}
89
90
/**
test/index.test-d.ts
@@ -146,6 +146,9 @@ class AppBoot implements ILifecycleBoot {
146
147
148
const app1 = {} as Application;
149
+
150
+expectType<boolean>(app1.config.httpclient.allowH2!);
151
152
const appBoot = new AppBoot(app1);
153
expectType<IBoot>(appBoot);
154
expectType<ILifecycleBoot>(appBoot);
0 commit comments