Skip to content

Commit 278b70a

Browse files
ianmacartneyConvex, Inc.
authored andcommitted
make server.ts import types explicitly (#42811)
GitOrigin-RevId: a3fbd533542e48bec03a0e1bd5aed50c4c8d5a33
1 parent ee2fd45 commit 278b70a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cli/codegen_templates/component_server.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export function componentServerTS(isRoot: boolean): string {
55
${header(
66
"Generated utilities for implementing server-side Convex query and mutation functions.",
77
)}
8-
import {
8+
import type {
99
ActionBuilder,
1010
${isRoot ? "AnyComponents," : ""}
1111
HttpActionBuilder,
@@ -16,6 +16,8 @@ export function componentServerTS(isRoot: boolean): string {
1616
GenericQueryCtx,
1717
GenericDatabaseReader,
1818
GenericDatabaseWriter,
19+
} from "convex/server";
20+
import {
1921
actionGeneric,
2022
httpActionGeneric,
2123
queryGeneric,

0 commit comments

Comments
 (0)