Skip to content

Commit d3340c2

Browse files
habdelraclaude
andcommitted
Fix router.ts: import SupportedMimeType locally (not just re-export)
router.ts uses SupportedMimeType as a type in method signatures, so it needs a local import in addition to the re-export. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 97fb479 commit d3340c2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/runtime-common/router.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ function formatUnknownError(error: unknown): string {
4747

4848
export type Method = 'GET' | 'QUERY' | 'POST' | 'PATCH' | 'DELETE' | 'HEAD';
4949

50-
export { SupportedMimeType } from './supported-mime-type';
50+
import { SupportedMimeType } from './supported-mime-type';
51+
export { SupportedMimeType };
5152

5253
function isHTTPMethod(method: unknown): method is Method {
5354
if (typeof method !== 'string') {

0 commit comments

Comments
 (0)