File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,17 @@ import type { Ref } from 'vue';
5
5
6
6
export type OmitStrict < Object , Key extends keyof Object > = Omit < Object , Key > ;
7
7
8
- export type HasRequiredProperties < Object > = Object extends { } | null | undefined
9
- ? false
10
- : true ;
8
+ export type HasRequiredProperties < Object > =
9
+ // if any empty object can be assigned to Object
10
+ { } extends Object
11
+ ? false
12
+ : // if null can be assigned to Object
13
+ null extends Object
14
+ ? false
15
+ : // if undefined can be assigned to Object
16
+ undefined extends Object
17
+ ? false
18
+ : true ;
11
19
12
20
/** @see {@link https://github.com/nuxt/nuxt/blob/42114f44a60ae326b58c05afe92ad535227d8f37/packages/nuxt/src/app/composables/fetch.ts#L20 } */
13
21
export type ComputedOptions < T extends Record < string , any > > = {
You can’t perform that action at this time.
0 commit comments