@augment-vir/common 26.0.2 → 26.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,4 +10,8 @@ export type MappedTuple<Tuple extends ReadonlyArray<any>, NewValueType> = {
|
|
|
10
10
|
[I in keyof Tuple]: NewValueType;
|
|
11
11
|
};
|
|
12
12
|
export type MaybeTuple<T> = T | AtLeastTuple<T, 1>;
|
|
13
|
+
export type RemoveFirstTupleEntry<T extends ReadonlyArray<unknown>> = T extends [
|
|
14
|
+
firstArg: unknown,
|
|
15
|
+
...theRest: infer TheRest
|
|
16
|
+
] ? TheRest : never;
|
|
13
17
|
export {};
|
|
@@ -62,3 +62,7 @@ export type NoInfer<T> = [T][T extends any ? 0 : never];
|
|
|
62
62
|
* input.
|
|
63
63
|
*/
|
|
64
64
|
export declare function ensureType<ExpectedType = never>(input: NoInfer<ExpectedType>): NoInfer<ExpectedType>;
|
|
65
|
+
/** Picks only the public properties of a type. */
|
|
66
|
+
export type Public<T> = {
|
|
67
|
+
[P in keyof T]: T[P];
|
|
68
|
+
};
|