Skip to content

Commit 698b96a

Browse files
thomasballingerConvex, Inc.
authored andcommitted
Export public types from server/index.js (#23875)
Export types needed by convex-helpers to be able to build declaration files. GitOrigin-RevId: 50e50a827d7f1bbbee92c0a588ee642d06e6bcf9
1 parent a4c4321 commit 698b96a

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

npm-packages/convex/src/server/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,12 @@ export type { Scheduler, SchedulableFunctionReference } from "./scheduler.js";
126126
export { cronJobs } from "./cron.js";
127127
export type { CronJob, Crons } from "./cron.js";
128128
export type {
129+
SystemFields,
130+
IdField,
129131
WithoutSystemFields,
130132
WithOptionalSystemFields,
133+
SystemIndexes,
134+
IndexTiebreakerField,
131135
} from "./system_fields.js";
132136
export { httpRouter, HttpRouter, ROUTABLE_HTTP_METHODS } from "./router.js";
133137
export type { RoutableMethod } from "./router.js";
@@ -174,3 +178,8 @@ export type {
174178
VectorFilterBuilder,
175179
FilterExpression,
176180
} from "./vector_search.js";
181+
182+
/**
183+
* @public
184+
*/
185+
export type { BetterOmit, Expand } from "../type_utils.js";

npm-packages/convex/src/values/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ export type {
1414
NumericValue,
1515
} from "./value.js";
1616
export { v, Validator } from "./validator.js";
17-
export type { PropertyValidators, ObjectType } from "./validator.js";
17+
export type {
18+
PropertyValidators,
19+
ObjectType,
20+
ObjectValidator,
21+
} from "./validator.js";
1822
/* @internal */
1923
export type { ValidatorJSON, ObjectFieldType } from "./validator.js";
2024
import * as Base64 from "./base64.js";

npm-packages/convex/src/values/validator.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ export type ObjectType<Validators extends PropertyValidators> = Expand<
213213
* Calculate the type of a {@link Validator} for an object.
214214
*
215215
* This is used within the validator builder, {@link v}.
216+
*
217+
* @public
216218
*/
217219
export type ObjectValidator<Validators extends PropertyValidators> = Validator<
218220
// Compute the TypeScript type this validator refers to.

0 commit comments

Comments
 (0)