Skip to content

Commit 5f6f280

Browse files
committed
export types
1 parent 656c285 commit 5f6f280

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,18 @@
4949
"default": "./dist/commonjs/client/index.js"
5050
}
5151
},
52+
"./validators": {
53+
"import": {
54+
"@convex-dev/component-source": "./src/validators.ts",
55+
"types": "./dist/esm/validators.d.ts",
56+
"default": "./dist/esm/validators.js"
57+
},
58+
"require": {
59+
"@convex-dev/component-source": "./src/validators.ts",
60+
"types": "./dist/commonjs/validators.d.ts",
61+
"default": "./dist/commonjs/validators.js"
62+
}
63+
},
5264
"./react": {
5365
"import": {
5466
"@convex-dev/component-source": "./src/react/index.ts",

src/client/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ import {
5959
vStorageOptions,
6060
vTextArgs,
6161
} from "../validators";
62-
import { RunActionCtx, RunMutationCtx, RunQueryCtx, UseApi } from "./types";
62+
import { RunActionCtx, RunMutationCtx, RunQueryCtx, UseApi } from "./types.js";
6363

6464
export { convexToZod, zodToConvex };
65+
export type { ThreadDoc, MessageDoc } from "./types.js";
6566

6667
export type ContextOptions = {
6768
/**

0 commit comments

Comments
 (0)