Skip to content

Commit 0c8a5e2

Browse files
authored
export server types from /server (#2033)
1 parent 814e3c6 commit 0c8a5e2

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

.changeset/sharp-llamas-grab.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solidjs/start": patch
3+
---
4+
5+
export server types from /server

packages/start/src/index.tsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
// @refresh skip
22

3-
export type {
4-
APIEvent,
5-
APIHandler,
6-
Asset,
7-
ContextMatches,
8-
DocumentComponentProps,
9-
FetchEvent,
10-
HandlerOptions,
11-
PageEvent,
12-
ResponseStub,
13-
ServerFunctionMeta,
14-
} from "./server/types.ts";
15-
163
export { default as clientOnly } from "./shared/clientOnly.ts";
174
export { GET } from "./shared/GET.ts";
185
export { HttpHeader } from "./shared/HttpHeader.tsx";

packages/start/src/server/index.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@ export { getServerFunctionMeta } from "../shared/serverFunction.ts";
33
export { StartServer } from "./StartServer.tsx";
44
export { createHandler } from "./handler.ts";
55

6+
export type {
7+
APIEvent,
8+
APIHandler,
9+
Asset,
10+
ContextMatches,
11+
DocumentComponentProps,
12+
FetchEvent,
13+
HandlerOptions,
14+
PageEvent,
15+
ResponseStub,
16+
ServerFunctionMeta,
17+
} from "./types.ts";
18+
619
/**
720
* Checks if user has set a redirect status in the response.
821
* If not, falls back to the 302 (temporary redirect)

0 commit comments

Comments
 (0)