diff --git a/src/server/runtime.ts b/src/server/runtime.ts index 0595ba8..9909fca 100644 --- a/src/server/runtime.ts +++ b/src/server/runtime.ts @@ -12,13 +12,14 @@ type ExtractExtension = Extensions extends WrakerAppPlugin< ? Extensions : never; -type ExtendedWrakerApp[] = []> = - WrakerApp & - (T extends [] ? {} : UnionToIntersection>); +type ExtendedWrakerApp[]> = WrakerApp & + UnionToIntersection>; export function defineWrakerApp[] = []>( - options?: Partial -): ExtendedWrakerApp { + options?: Omit, "plugins"> & { + plugins?: T; + } +) { return new WrakerApp(options) as ExtendedWrakerApp; }