@augment-vir/common 26.1.0 → 26.2.1

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,8 +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 [
13
+ export type RemoveFirstTupleEntry<T extends ReadonlyArray<unknown>> = T extends readonly [
14
14
  firstArg: unknown,
15
15
  ...theRest: infer TheRest
16
- ] ? TheRest : never;
16
+ ] ? TheRest : T;
17
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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@augment-vir/common",
3
- "version": "26.1.0",
3
+ "version": "26.2.1",
4
4
  "homepage": "https://github.com/electrovir/augment-vir/tree/main/packages/common",
5
5
  "bugs": {
6
6
  "url": "https://github.com/electrovir/augment-vir/issues"