Skip to content

Commit

Permalink
fix: exports more server types
Browse files Browse the repository at this point in the history
  • Loading branch information
GiveMe-A-Name committed Jul 24, 2024
1 parent 6b3f453 commit 7c311fd
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/cool-panthers-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@modern-js/runtime': patch
'@modern-js/app-tools': patch
---

fix: exports more server types
fix: 导出更多的 server 类型
11 changes: 11 additions & 0 deletions packages/runtime/plugin-runtime/src/exports/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,24 @@ import {
} from '@modern-js/types';

export type {
// cache
Container,
CacheControl,
CacheOptionProvider,
CacheOption,

// middleware
UnstableMiddlewareContext,
UnstableMiddleware,
UnstableNext,

// monitors
MonitorEvent,
Monitors,
CoreMonitor,
LogEvent,
LogLevel,
TimingEvent,
} from '@modern-js/types';

export const hook = (
Expand Down
2 changes: 2 additions & 0 deletions packages/solutions/app-tools/src/exports/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import {
UnstableNext,
} from '@modern-js/types';

export type { ServerPlugin } from '@modern-js/server-core';

export type RenderMiddleware = UnstableMiddleware;

export type RenderMiddlewareContext = UnstableMiddlewareContext;
Expand Down

0 comments on commit 7c311fd

Please sign in to comment.