File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/base/core/src/types Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 > [ ] ,
You can’t perform that action at this time.
0 commit comments