We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ce77f7 commit 6cf0741Copy full SHA for 6cf0741
1 file changed
src/types.ts
@@ -9,6 +9,15 @@ import type Request from './router/Request.js';
9
import type Response from './router/Response.js';
10
import type Router from './router/Router.js';
11
12
+//--------------------------------------------------------------------//
13
+// General Types
14
+
15
+export type ExtendsType<T, U> = U & Pick<T, Exclude<keyof T, keyof U>>;
16
17
+export type Constructor<T, U extends Record<string, unknown> = {}> = U & {
18
+ new (): T;
19
+};
20
21
//--------------------------------------------------------------------//
22
// Data Types
23
0 commit comments