Skip to content

Commit c356683

Browse files
committed
feat(server): add exports for custom handler and adapter support
Expose internal handler types and adapter interfaces. Improve visibility of handler internals required for overrides. Add shared entry point for common server utilities.
1 parent 778526d commit c356683

File tree

9 files changed

+408
-71
lines changed

9 files changed

+408
-71
lines changed

packages/server/package.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@
3939
"default": "./dist/api.cjs"
4040
}
4141
},
42+
"./common": {
43+
"import": {
44+
"types": "./dist/common.d.ts",
45+
"default": "./dist/common.js"
46+
},
47+
"require": {
48+
"types": "./dist/common.d.cts",
49+
"default": "./dist/common.cjs"
50+
}
51+
},
4252
"./express": {
4353
"import": {
4454
"types": "./dist/express.d.ts",
@@ -118,6 +128,16 @@
118128
"types": "./dist/tanstack-start.d.cts",
119129
"default": "./dist/tanstack-start.cjs"
120130
}
131+
},
132+
"./types": {
133+
"import": {
134+
"types": "./dist/types.d.ts",
135+
"default": "./dist/types.js"
136+
},
137+
"require": {
138+
"types": "./dist/types.d.cts",
139+
"default": "./dist/types.cjs"
140+
}
121141
}
122142
},
123143
"dependencies": {

packages/server/src/api/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
export { RestApiHandler, type RestApiHandlerOptions } from './rest';
22
export { RPCApiHandler, type RPCApiHandlerOptions } from './rpc';
3+
export * from './utils';

0 commit comments

Comments
 (0)