Skip to content

Commit 2c9db11

Browse files
committed
refactor: change export to type for FlatQuery, FieldValue, FlatQueryValue, and Query
1 parent 567f7a5 commit 2c9db11

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/base/core/src/types/Selector.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,21 @@ export type GetType<T, P extends string> =
5858
? T[P]
5959
: never
6060

61-
export type FlatQuery<T> = {
61+
type FlatQuery<T> = {
6262
[P in DotNotation<T>]?: FlatQueryValue<T, P>
6363
}
6464

65-
export type FieldValue<U> = U extends string
65+
type FieldValue<U> = U extends string
6666
? string | RegExp | FieldExpression<string>
6767
: U | FieldExpression<U>
6868

69-
export type FlatQueryValue<T, P extends string> = GetType<T, P> extends never
69+
type FlatQueryValue<T, P extends string> = GetType<T, P> extends never
7070
? never
7171
: GetType<T, P> extends Array<infer U>
7272
? FieldValue<U> | FieldValue<U[]>
7373
: FieldValue<GetType<T, P>>
7474

75-
export type Query<T> = FlatQuery<T> & {
75+
type Query<T> = FlatQuery<T> & {
7676
$or?: Query<T>[],
7777
$and?: Query<T>[],
7878
$nor?: Query<T>[],

0 commit comments

Comments
 (0)