We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9173b3c commit 49c1848Copy full SHA for 49c1848
src/data-api/types/common.ts
@@ -157,7 +157,7 @@ export type StrictProjection<Schema extends SomeDoc> = {
157
? 1 | 0 | true | false | ProjectionSlice
158
: 1 | 0 | true | false;
159
} & {
160
- '*': 1 | 0 | true | false;
+ '*'?: 1 | 0 | true | false;
161
};
162
163
/**
tests/typing/strict-projection.ts
@@ -43,3 +43,12 @@ const test4: StrictProjection<Schema> = {
43
const test5: StrictProjection<ConvolutedSchema2> = {
44
numOrArray: { $slice: [1, 3] },
45
}
46
+
47
+const test6: StrictProjection<ConvolutedSchema2> = {
48
+ numOrArray: { $slice: [1, 3] },
49
+ '*': 1,
50
+}
51
52
+const test7: StrictProjection<ConvolutedSchema2> = {
53
+ '*': false,
54
0 commit comments