Skip to content

Commit bec02d3

Browse files
committed
🚨 prettier
1 parent dc6bc0b commit bec02d3

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

‎packages/hub/src/vendor/type-fest/entry.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,12 @@ const setEntryNumber: Entry<typeof setExample> = [1, 1];
5757
@category Array
5858
@category Set
5959
*/
60-
export type Entry<BaseType> =
61-
BaseType extends Map<unknown, unknown> ? MapEntry<BaseType>
62-
: BaseType extends Set<unknown> ? SetEntry<BaseType>
63-
: BaseType extends readonly unknown[] ? ArrayEntry<BaseType>
64-
: BaseType extends object ? ObjectEntry<BaseType>
65-
: never;
60+
export type Entry<BaseType> = BaseType extends Map<unknown, unknown>
61+
? MapEntry<BaseType>
62+
: BaseType extends Set<unknown>
63+
? SetEntry<BaseType>
64+
: BaseType extends readonly unknown[]
65+
? ArrayEntry<BaseType>
66+
: BaseType extends object
67+
? ObjectEntry<BaseType>
68+
: never;

‎packages/hub/src/vendor/type-fest/set-required.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type {Except} from './except';
2-
import type {Simplify} from './simplify';
1+
import type { Except } from "./except";
2+
import type { Simplify } from "./simplify";
33

44
/**
55
Create a type that makes the given keys required. The remaining keys are kept as is. The sister of the `SetOptional` type.
@@ -26,10 +26,9 @@ type SomeRequired = SetRequired<Foo, 'b' | 'c'>;
2626
2727
@category Object
2828
*/
29-
export type SetRequired<BaseType, Keys extends keyof BaseType> =
30-
Simplify<
29+
export type SetRequired<BaseType, Keys extends keyof BaseType> = Simplify<
3130
// Pick just the keys that are optional from the base type.
3231
Except<BaseType, Keys> &
33-
// Pick the keys that should be required from the base type and make them required.
34-
Required<Pick<BaseType, Keys>>
35-
>;
32+
// Pick the keys that should be required from the base type and make them required.
33+
Required<Pick<BaseType, Keys>>
34+
>;

0 commit comments

Comments
 (0)