@augment-vir/common 5.0.0 → 6.0.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.
Files changed (97) hide show
  1. package/dist/cjs/augments/ansi.d.ts +1 -0
  2. package/dist/cjs/augments/ansi.d.ts.map +1 -0
  3. package/dist/cjs/augments/array.d.ts +3 -2
  4. package/dist/cjs/augments/array.d.ts.map +1 -0
  5. package/dist/cjs/augments/async.d.ts +1 -0
  6. package/dist/cjs/augments/async.d.ts.map +1 -0
  7. package/dist/cjs/augments/common-number.d.ts +1 -0
  8. package/dist/cjs/augments/common-number.d.ts.map +1 -0
  9. package/dist/cjs/augments/common-string.d.ts +2 -1
  10. package/dist/cjs/augments/common-string.d.ts.map +1 -0
  11. package/dist/cjs/augments/date.d.ts +1 -0
  12. package/dist/cjs/augments/date.d.ts.map +1 -0
  13. package/dist/cjs/augments/environment.d.ts +1 -0
  14. package/dist/cjs/augments/environment.d.ts.map +1 -0
  15. package/dist/cjs/augments/error.d.ts +1 -0
  16. package/dist/cjs/augments/error.d.ts.map +1 -0
  17. package/dist/cjs/augments/function.d.ts +2 -0
  18. package/dist/cjs/augments/function.d.ts.map +1 -0
  19. package/dist/cjs/augments/object.d.ts +8 -7
  20. package/dist/cjs/augments/object.d.ts.map +1 -0
  21. package/dist/cjs/augments/promise.d.ts +3 -2
  22. package/dist/cjs/augments/promise.d.ts.map +1 -0
  23. package/dist/cjs/augments/regexp.d.ts +1 -0
  24. package/dist/cjs/augments/regexp.d.ts.map +1 -0
  25. package/dist/cjs/augments/tuple.d.ts +4 -3
  26. package/dist/cjs/augments/tuple.d.ts.map +1 -0
  27. package/dist/cjs/augments/type-of.d.ts +6 -4
  28. package/dist/cjs/augments/type-of.d.ts.map +1 -0
  29. package/dist/cjs/augments/type.d.ts +11 -10
  30. package/dist/cjs/augments/type.d.ts.map +1 -0
  31. package/dist/cjs/index.d.ts +1 -0
  32. package/dist/cjs/index.d.ts.map +1 -0
  33. package/dist/esm/augments/ansi.d.ts +1 -0
  34. package/dist/esm/augments/ansi.d.ts.map +1 -0
  35. package/dist/esm/augments/array.d.ts +3 -2
  36. package/dist/esm/augments/array.d.ts.map +1 -0
  37. package/dist/esm/augments/async.d.ts +1 -0
  38. package/dist/esm/augments/async.d.ts.map +1 -0
  39. package/dist/esm/augments/common-number.d.ts +1 -0
  40. package/dist/esm/augments/common-number.d.ts.map +1 -0
  41. package/dist/esm/augments/common-string.d.ts +2 -1
  42. package/dist/esm/augments/common-string.d.ts.map +1 -0
  43. package/dist/esm/augments/date.d.ts +1 -0
  44. package/dist/esm/augments/date.d.ts.map +1 -0
  45. package/dist/esm/augments/environment.d.ts +1 -0
  46. package/dist/esm/augments/environment.d.ts.map +1 -0
  47. package/dist/esm/augments/error.d.ts +1 -0
  48. package/dist/esm/augments/error.d.ts.map +1 -0
  49. package/dist/esm/augments/function.d.ts +2 -0
  50. package/dist/esm/augments/function.d.ts.map +1 -0
  51. package/dist/esm/augments/object.d.ts +8 -7
  52. package/dist/esm/augments/object.d.ts.map +1 -0
  53. package/dist/esm/augments/promise.d.ts +3 -2
  54. package/dist/esm/augments/promise.d.ts.map +1 -0
  55. package/dist/esm/augments/regexp.d.ts +1 -0
  56. package/dist/esm/augments/regexp.d.ts.map +1 -0
  57. package/dist/esm/augments/tuple.d.ts +4 -3
  58. package/dist/esm/augments/tuple.d.ts.map +1 -0
  59. package/dist/esm/augments/type-of.d.ts +6 -4
  60. package/dist/esm/augments/type-of.d.ts.map +1 -0
  61. package/dist/esm/augments/type.d.ts +11 -10
  62. package/dist/esm/augments/type.d.ts.map +1 -0
  63. package/dist/esm/index.d.ts +1 -0
  64. package/dist/esm/index.d.ts.map +1 -0
  65. package/dist/types/augments/ansi.d.ts +1 -0
  66. package/dist/types/augments/ansi.d.ts.map +1 -0
  67. package/dist/types/augments/array.d.ts +3 -2
  68. package/dist/types/augments/array.d.ts.map +1 -0
  69. package/dist/types/augments/async.d.ts +1 -0
  70. package/dist/types/augments/async.d.ts.map +1 -0
  71. package/dist/types/augments/common-number.d.ts +1 -0
  72. package/dist/types/augments/common-number.d.ts.map +1 -0
  73. package/dist/types/augments/common-string.d.ts +2 -1
  74. package/dist/types/augments/common-string.d.ts.map +1 -0
  75. package/dist/types/augments/date.d.ts +1 -0
  76. package/dist/types/augments/date.d.ts.map +1 -0
  77. package/dist/types/augments/environment.d.ts +1 -0
  78. package/dist/types/augments/environment.d.ts.map +1 -0
  79. package/dist/types/augments/error.d.ts +1 -0
  80. package/dist/types/augments/error.d.ts.map +1 -0
  81. package/dist/types/augments/function.d.ts +2 -0
  82. package/dist/types/augments/function.d.ts.map +1 -0
  83. package/dist/types/augments/object.d.ts +8 -7
  84. package/dist/types/augments/object.d.ts.map +1 -0
  85. package/dist/types/augments/promise.d.ts +3 -2
  86. package/dist/types/augments/promise.d.ts.map +1 -0
  87. package/dist/types/augments/regexp.d.ts +1 -0
  88. package/dist/types/augments/regexp.d.ts.map +1 -0
  89. package/dist/types/augments/tuple.d.ts +4 -3
  90. package/dist/types/augments/tuple.d.ts.map +1 -0
  91. package/dist/types/augments/type-of.d.ts +6 -4
  92. package/dist/types/augments/type-of.d.ts.map +1 -0
  93. package/dist/types/augments/type.d.ts +11 -10
  94. package/dist/types/augments/type.d.ts.map +1 -0
  95. package/dist/types/index.d.ts +1 -0
  96. package/dist/types/index.d.ts.map +1 -0
  97. package/package.json +2 -14
@@ -1,11 +1,12 @@
1
+ import { AnyFunction } from '@augment-vir/common';
1
2
  declare function getTypeOf(x: any): "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
2
- export declare type TypeOf = ReturnType<typeof getTypeOf>;
3
- export declare type TypeOfWithArray = TypeOf | 'array';
4
- export declare type TypeOfMapping = {
3
+ export type TypeOf = ReturnType<typeof getTypeOf>;
4
+ export type TypeOfWithArray = TypeOf | 'array';
5
+ export type TypeOfMapping = {
5
6
  array: any[];
6
7
  bigint: bigint;
7
8
  boolean: boolean;
8
- function: (...args: any[]) => any;
9
+ function: AnyFunction;
9
10
  number: number;
10
11
  object: object;
11
12
  string: string;
@@ -15,3 +16,4 @@ export declare type TypeOfMapping = {
15
16
  export declare function typeOfWithArray(input: unknown): TypeOfWithArray;
16
17
  export declare function isTypeOfWithArray<T extends TypeOfWithArray>(input: unknown, testType: T): input is TypeOfMapping[T];
17
18
  export {};
19
+ //# sourceMappingURL=type-of.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-of.d.ts","sourceRoot":"","sources":["../../../src/augments/type-of.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,qBAAqB,CAAC;AAIhD,iBAAS,SAAS,CAAC,CAAC,EAAE,GAAG,+FAExB;AAED,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAElD,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,OAAO,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG;IACxB,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,WAAW,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,SAAS,CAAC;CACxB,CAAC;AAEF,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CAE/D;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,eAAe,EACvD,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,CAAC,GACZ,KAAK,IAAI,aAAa,CAAC,CAAC,CAAC,CAG3B"}
@@ -1,34 +1,34 @@
1
1
  /** Makes all properties in an object writable. This is the opposite of Readonly<> */
2
- export declare type Writeable<T> = {
2
+ export type Writeable<T> = {
3
3
  -readonly [P in keyof T]: T[P];
4
4
  };
5
5
  /** Makes all property values in an object also readonly. Can cause issues on primitive. */
6
- export declare type DeepWriteable<T> = {
6
+ export type DeepWriteable<T> = {
7
7
  -readonly [P in keyof T]: DeepWriteable<T[P]>;
8
8
  };
9
9
  /** Replace properties in T with properties in U. */
10
- export declare type Overwrite<T, U> = Pick<T, Exclude<keyof T, keyof U>> & U;
10
+ export type Overwrite<T, U> = Pick<T, Exclude<keyof T, keyof U>> & U;
11
11
  /** Extract the element type out of an array type. */
12
- export declare type ArrayElement<ArrayType extends ReadonlyArray<any>> = ArrayType[number];
12
+ export type ArrayElement<ArrayType extends ReadonlyArray<any>> = ArrayType[number];
13
13
  /**
14
14
  * Same as the Required<> built-in type helper but this requires that each property be present and
15
15
  * be not null.
16
16
  */
17
- export declare type RequiredAndNotNull<T> = {
17
+ export type RequiredAndNotNull<T> = {
18
18
  [P in keyof T]-?: NonNullable<T[P]>;
19
19
  };
20
20
  /** Require only a subset of object properties. */
21
- export declare type RequiredBy<T, K extends keyof T> = Overwrite<T, Required<Pick<T, K>>>;
21
+ export type RequiredBy<T, K extends keyof T> = Overwrite<T, Required<Pick<T, K>>>;
22
22
  /**
23
23
  * Require only a subset of object properties and require that they be not null. This is
24
24
  * particularly useful in conjunction with the "exactOptionalPropertyTypes" tsconfig flag.
25
25
  */
26
- export declare type RequiredAndNotNullBy<T, K extends keyof T> = Omit<T, K> & Required<{
26
+ export type RequiredAndNotNullBy<T, K extends keyof T> = Omit<T, K> & Required<{
27
27
  [PropertyName in K]: NonNullable<T[PropertyName]>;
28
28
  }>;
29
29
  /** If type T = type U, then type Y. Else type N. */
30
- export declare type IfEquals<T, U, Y = unknown, N = never> = (<G>() => G extends T ? 1 : 2) extends <G>() => G extends U ? 1 : 2 ? Y : N;
31
- export declare type UnPromise<T> = T extends PromiseLike<infer PromiseType> ? Awaited<PromiseType> : T;
30
+ export type IfEquals<T, U, Y = unknown, N = never> = (<G>() => G extends T ? 1 : 2) extends <G>() => G extends U ? 1 : 2 ? Y : N;
31
+ export type UnPromise<T> = T extends PromiseLike<infer PromiseType> ? Awaited<PromiseType> : T;
32
32
  /**
33
33
  * This function returns another function that simply returns whatever input it's given. However, it
34
34
  * also checks that the input matches the original wrapNarrowTypeWithTypeCheck's generic, while
@@ -43,7 +43,7 @@ export declare function wrapNarrowTypeWithTypeCheck<P>(): <T extends P>(input: T
43
43
  * This type helper is useful for forcing function generics to be explicitly provided, rather than
44
44
  * inferring them from the given inputs. See the test file for examples.
45
45
  */
46
- export declare type NoInfer<T> = [T][T extends any ? 0 : never];
46
+ export type NoInfer<T> = [T][T extends any ? 0 : never];
47
47
  /**
48
48
  * This is a type helper that ensures the given input matches the given generic type. The generic is
49
49
  * setup in such a way that if it is omitted (which is typically allowed in TypeScript, resulting in
@@ -52,3 +52,4 @@ export declare type NoInfer<T> = [T][T extends any ? 0 : never];
52
52
  * input.
53
53
  */
54
54
  export declare function ensureType<ExpectedType = never>(input: NoInfer<ExpectedType>): NoInfer<ExpectedType>;
55
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/augments/type.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI;IAAC,CAAC,UAAU,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAC,CAAC;AAE5D,2FAA2F;AAC3F,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI;IAAC,CAAC,UAAU,CAAC,IAAI,MAAM,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAC,CAAC;AAE/E,oDAAoD;AACpD,MAAM,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAErE,qDAAqD;AACrD,MAAM,MAAM,YAAY,CAA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AAC,GAAG,KAAK,CAAC,CAAC;AAExD;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,YAAY,GAAG,KAAK,EAC3C,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,GAC7B,OAAO,CAAC,YAAY,CAAC,CAEvB"}
@@ -13,3 +13,4 @@ export * from './augments/regexp';
13
13
  export * from './augments/tuple';
14
14
  export * from './augments/type';
15
15
  export * from './augments/type-of';
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare const ansiRegex: RegExp;
2
+ //# sourceMappingURL=ansi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ansi.d.ts","sourceRoot":"","sources":["../../../src/augments/ansi.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,SAAS,QAAsC,CAAC"}
@@ -2,12 +2,13 @@ import { AtLeastTuple } from './tuple';
2
2
  import { ArrayElement } from './type';
3
3
  export declare function filterOutIndexes<T>(array: ReadonlyArray<T>, indexes: ReadonlyArray<number>): T[];
4
4
  export declare function flatten2dArray<T>(array2d: ReadonlyArray<ReadonlyArray<T>>): T[];
5
- export declare type AtLeastOneEntryArray<ArrayGeneric extends ReadonlyArray<any>> = AtLeastTuple<ArrayElement<ArrayGeneric>, 1>;
5
+ export type AtLeastOneEntryArray<ArrayGeneric extends ReadonlyArray<any>> = AtLeastTuple<ArrayElement<ArrayGeneric>, 1>;
6
6
  export declare function trimArrayStrings(input: ReadonlyArray<string>): string[];
7
7
  export declare function typedArrayIncludes<T>(array: ReadonlyArray<T>, input: unknown): input is T;
8
- declare type MapCallbackType<ArrayType extends ReadonlyArray<any>, OutputType> = (value: ArrayElement<ArrayType>, index: number, array: ArrayType) => OutputType;
8
+ type MapCallbackType<ArrayType extends ReadonlyArray<any>, OutputType> = (value: ArrayElement<ArrayType>, index: number, array: ArrayType) => OutputType;
9
9
  /** Preserves tuple types. */
10
10
  export declare function typedMap<InputArrayGeneric extends ReadonlyArray<any>, OutputType>(arrayToMap: InputArrayGeneric, mapCallback: MapCallbackType<InputArrayGeneric, OutputType>): {
11
11
  [Index in keyof InputArrayGeneric]: OutputType;
12
12
  };
13
13
  export {};
14
+ //# sourceMappingURL=array.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../../src/augments/array.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,SAAS,CAAC;AACrC,OAAO,EAAC,YAAY,EAAC,MAAM,QAAQ,CAAC;AAEpC,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAEhG;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAI/E;AAED,MAAM,MAAM,oBAAoB,CAAC,YAAY,SAAS,aAAa,CAAC,GAAG,CAAC,IAAI,YAAY,CACpF,YAAY,CAAC,YAAY,CAAC,EAC1B,CAAC,CACJ,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,CAEvE;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,CAAC,CAEzF;AAED,KAAK,eAAe,CAAC,SAAS,SAAS,aAAa,CAAC,GAAG,CAAC,EAAE,UAAU,IAAI,CACrE,KAAK,EAAE,YAAY,CAAC,SAAS,CAAC,EAC9B,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,SAAS,KACf,UAAU,CAAC;AAahB,6BAA6B;AAC7B,wBAAgB,QAAQ,CAAC,iBAAiB,SAAS,aAAa,CAAC,GAAG,CAAC,EAAE,UAAU,EAC7E,UAAU,EAAE,iBAAiB,EAC7B,WAAW,EAAE,eAAe,CAAC,iBAAiB,EAAE,UAAU,CAAC,GAC5D;KAAE,KAAK,IAAI,MAAM,iBAAiB,GAAG,UAAU;CAAC,CAMlD"}
@@ -12,3 +12,4 @@ export declare function awaitedFilter<OriginalGeneric>(arrayInput: ReadonlyArray
12
12
  */
13
13
  blocking?: boolean | undefined;
14
14
  }): Promise<OriginalGeneric[]>;
15
+ //# sourceMappingURL=async.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../../../src/augments/async.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,eAAe,EAChD,KAAK,EAAE,aAAa,CAAC,eAAe,CAAC,EACrC,QAAQ,EAAE,CACN,YAAY,EAAE,eAAe,EAC7B,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,aAAa,CAAC,eAAe,CAAC,KACzC,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,GAC9B,OAAO,CAAC,IAAI,CAAC,CAEf;AAED,wBAAsB,kBAAkB,CAAC,eAAe,EAAE,aAAa,EACnE,KAAK,EAAE,aAAa,CAAC,eAAe,CAAC,EACrC,QAAQ,EAAE,CACN,YAAY,EAAE,eAAe,EAC7B,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,aAAa,CAAC,eAAe,CAAC,KACzC,aAAa,GAAG,WAAW,CAAC,aAAa,CAAC,GAChD,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC,CAiBnC;AAED,wBAAsB,aAAa,CAAC,eAAe,EAC/C,UAAU,EAAE,aAAa,CAAC,eAAe,CAAC,EAC1C,cAAc,EAAE,CACZ,YAAY,EAAE,eAAe,EAC7B,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,aAAa,CAAC,eAAe,CAAC,KACzC,OAAO,CAAC,OAAO,CAAC,EACrB,OAAO,CAAC,EAAE;IACN;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAClC,GACF,OAAO,CAAC,eAAe,EAAE,CAAC,CAM5B"}
@@ -30,3 +30,4 @@ export declare function truncateNumber(originalValue: unknown, { customSuffixes,
30
30
  suppressErrorLogging?: boolean;
31
31
  customErrorLogCallback?: (...args: any) => void;
32
32
  }): string;
33
+ //# sourceMappingURL=common-number.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common-number.d.ts","sourceRoot":"","sources":["../../../src/augments/common-number.ts"],"names":[],"mappings":"AAGA,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAevD;AAED,wBAAgB,KAAK;AACjB;;;GAGG;AACH,EACI,KAAK,EACL,GAAG,EACH,GAAG,GACN,EAAE;IACC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACf,GACF,MAAM,CAER;AA6CD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAC1B,aAAa,EAAE,OAAO,EACtB,EACI,cAAc,EACd,oBAAoB,EACpB,sBAAsB,GACzB,GAAE;IACC,cAAc,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACvC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,sBAAsB,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;CAC9C,GACP,MAAM,CA2CR"}
@@ -16,7 +16,7 @@ export declare function removeCommasFromNumberString(numberString: string): stri
16
16
  export declare function collapseWhiteSpace(input: string): string;
17
17
  /** Same as String.prototype.split but includes the delimiter to split by in the output array. */
18
18
  export declare function splitIncludeSplit(original: string, splitterInput: string | RegExp, caseSensitive: boolean): readonly string[];
19
- export declare type CasingOptions = {
19
+ export type CasingOptions = {
20
20
  capitalizeFirstLetter: boolean;
21
21
  };
22
22
  export declare function capitalizeFirstLetter<InputGeneric extends string>(input: InputGeneric): Capitalize<InputGeneric>;
@@ -42,3 +42,4 @@ export declare function getAllIndexesOf<IncludeLength extends boolean | undefine
42
42
  length: number;
43
43
  }[] : number[];
44
44
  export declare function typedSplit(input: string, splitString: string): AtLeastTuple<string, 1>;
45
+ //# sourceMappingURL=common-string.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common-string.d.ts","sourceRoot":"","sources":["../../../src/augments/common-string.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,YAAY,EAAC,MAAM,SAAS,CAAC;AAErC;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,aAAa,CAAC,GAAG,CAAC,EAAE,WAAW,SAAQ,GAAG,MAAM,CAiB9F;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED,eAAO,MAAM,WAAW,8BAAwB,CAAC;AAEjD,wBAAgB,4BAA4B,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAEzE;AAED,gGAAgG;AAChG,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQxD;AAED,iGAAiG;AACjG,wBAAgB,iBAAiB,CAC7B,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,GAAG,MAAM,EAC9B,aAAa,EAAE,OAAO,qBAgCzB;AAED,MAAM,MAAM,aAAa,GAAG;IACxB,qBAAqB,EAAE,OAAO,CAAC;CAClC,CAAC;AAMF,wBAAgB,qBAAqB,CAAC,YAAY,SAAS,MAAM,EAC7D,KAAK,EAAE,YAAY,GACpB,UAAU,CAAC,YAAY,CAAC,CAM1B;AAMD,wBAAgB,oBAAoB,CAChC,YAAY,EAAE,MAAM,EACpB,aAAa,GAAE,OAAO,CAAC,aAAa,CAAC,GAAG,SAAgC,GACzE,MAAM,CAmBR;AAOD,wBAAgB,oBAAoB,CAAC,YAAY,EAAE,MAAM,UAsBxD;AAED,wBAAgB,oBAAoB,CAChC,cAAc,EAAE,MAAM,EACtB,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,MAAM,SAAmB,GAC1B,MAAM,CAKR;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE3D;AAiBD,wBAAgB,eAAe,CAAC,aAAa,SAAS,OAAO,GAAG,SAAS,EAAE,EACvE,QAAQ,EACR,SAAS,EACT,aAAa,EACb,aAAa,GAChB,EAAE;IACC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B;;;OAGG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,aAAa,CAAC;CACjC,GAAG,aAAa,SAAS,IAAI,GAAG;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAC,EAAE,GAAG,MAAM,EAAE,CA2D5E;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC,CAEtF"}
@@ -24,3 +24,4 @@ export declare function createDateFromNamedCommaFormat(commaFormatString: string
24
24
  * @param isoFormatString Should be a date in the format YYYY-MM-DD.
25
25
  */
26
26
  export declare function createDateFromUtcIsoFormat(isoFormatString: string): Date;
27
+ //# sourceMappingURL=date.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../src/augments/date.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,qIAaxB,CAAC;AAEX,eAAO,MAAM,sBAAsB,UAElC,CAAC;AAEF,qBAAa,gBAAiB,SAAQ,KAAK;IACvC,SAAyB,IAAI,sBAAsB;CACtD;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACrC,iBAAiB,EAAE,MAAM,EACzB,UAAU,GAAE,MAAM,GAAG,MAAW,QAmBnC;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,CAC1C,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,UAAQ,QAoC7B;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI,CAOxE"}
@@ -1 +1,2 @@
1
1
  export declare function isBrowser(): boolean;
2
+ //# sourceMappingURL=environment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../../src/augments/environment.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,YAExB"}
@@ -6,3 +6,4 @@ export declare function combineErrors(errors?: undefined): undefined;
6
6
  export declare function combineErrorMessages(errors?: ReadonlyArray<Error | string | undefined> | undefined): string;
7
7
  export declare function extractErrorMessage(error: unknown): string;
8
8
  export declare function ensureError(input: unknown): Error;
9
+ //# sourceMappingURL=error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/augments/error.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,YAAY,EAAC,MAAM,SAAS,CAAC;AAErC,wBAAgB,aAAa,CAAC,MAAM,EAAE,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC;AACrE,wBAAgB,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC;AACvE,wBAAgB,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,SAAS,CAAC;AAC/E,wBAAgB,aAAa,CAAC,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;AAgB7D,wBAAgB,oBAAoB,CAChC,MAAM,CAAC,EAAE,aAAa,CAAC,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC,GAAG,SAAS,GAC/D,MAAM,CAMR;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAU1D;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,CAMjD"}
@@ -1 +1,3 @@
1
+ export type AnyFunction = (...args: any[]) => any;
1
2
  export declare function isTruthy<T>(input: T): input is NonNullable<T>;
3
+ //# sourceMappingURL=function.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../../src/augments/function.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AAElD,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,IAAI,WAAW,CAAC,CAAC,CAAC,CAE7D"}
@@ -7,18 +7,18 @@ export declare function isKeyof<ObjectGeneric>(key: PropertyKey, object: ObjectG
7
7
  export declare function filterToEnumValues<T extends object>(inputs: ReadonlyArray<unknown>, checkEnum: T, caseInsensitive?: boolean): T[keyof T][];
8
8
  export declare function getObjectTypedKeys<ObjectGeneric extends unknown>(input: ObjectGeneric): ReadonlyArray<keyof ObjectGeneric>;
9
9
  export declare function getObjectTypedValues<ObjectGeneric extends unknown>(input: ObjectGeneric): ObjectGeneric[keyof ObjectGeneric][];
10
- declare type ExtractValue<KeyGeneric extends PropertyKey, ParentGeneric> = KeyGeneric extends keyof ParentGeneric ? RequiredBy<ParentGeneric, KeyGeneric>[KeyGeneric] : KeyGeneric extends keyof Extract<ParentGeneric, Record<KeyGeneric, any>> ? RequiredBy<Extract<ParentGeneric, Record<KeyGeneric, any>>, KeyGeneric>[KeyGeneric] : never;
11
- declare type CombinedParentValue<KeyGeneric extends PropertyKey, ParentGeneric> = ExtractValue<KeyGeneric, ParentGeneric> extends never ? unknown : ExtractValue<KeyGeneric, ParentGeneric>;
12
- declare type CombineTypeWithKey<KeyGeneric extends PropertyKey, ParentGeneric> = ParentGeneric & Record<KeyGeneric, CombinedParentValue<KeyGeneric, ParentGeneric>>;
10
+ type ExtractValue<KeyGeneric extends PropertyKey, ParentGeneric> = KeyGeneric extends keyof ParentGeneric ? RequiredBy<ParentGeneric, KeyGeneric>[KeyGeneric] : KeyGeneric extends keyof Extract<ParentGeneric, Record<KeyGeneric, any>> ? RequiredBy<Extract<ParentGeneric, Record<KeyGeneric, any>>, KeyGeneric>[KeyGeneric] : never;
11
+ type CombinedParentValue<KeyGeneric extends PropertyKey, ParentGeneric> = ExtractValue<KeyGeneric, ParentGeneric> extends never ? unknown : ExtractValue<KeyGeneric, ParentGeneric>;
12
+ type CombineTypeWithKey<KeyGeneric extends PropertyKey, ParentGeneric> = ParentGeneric & Record<KeyGeneric, CombinedParentValue<KeyGeneric, ParentGeneric>>;
13
13
  export declare function typedHasProperty<KeyGeneric extends PropertyKey, ParentGeneric>(inputObject: ParentGeneric, inputKey: KeyGeneric): inputObject is CombineTypeWithKey<KeyGeneric, ParentGeneric>;
14
14
  export declare function typedHasProperties<KeyGeneric extends PropertyKey, ParentGeneric>(inputObject: ParentGeneric, inputKeys: ReadonlyArray<KeyGeneric>): inputObject is CombineTypeWithKey<KeyGeneric, ParentGeneric>;
15
15
  export declare function isObject(input: any): input is NonNullable<object>;
16
16
  export declare function getEntriesSortedByKey(input: object): [string, unknown][];
17
17
  export declare function areJsonEqual(a: object, b: object): boolean;
18
- export declare type InnerMappedValues<EntireInputGeneric extends object, MappedValueGeneric> = {
18
+ export type InnerMappedValues<EntireInputGeneric extends object, MappedValueGeneric> = {
19
19
  [MappedProp in keyof EntireInputGeneric]: MappedValueGeneric;
20
20
  };
21
- export declare type MappedValues<EntireInputGeneric extends object, MappedValueGeneric> = MappedValueGeneric extends PromiseLike<unknown> ? Promise<InnerMappedValues<EntireInputGeneric, UnPromise<MappedValueGeneric>>> : InnerMappedValues<EntireInputGeneric, UnPromise<MappedValueGeneric>>;
21
+ export type MappedValues<EntireInputGeneric extends object, MappedValueGeneric> = MappedValueGeneric extends PromiseLike<unknown> ? Promise<InnerMappedValues<EntireInputGeneric, UnPromise<MappedValueGeneric>>> : InnerMappedValues<EntireInputGeneric, UnPromise<MappedValueGeneric>>;
22
22
  /**
23
23
  * Creates a new object with the same properties as the input object, but with values set to the
24
24
  * result of mapCallback for each property.
@@ -27,7 +27,7 @@ export declare function mapObjectValues<EntireInputGeneric extends object, Mappe
27
27
  export declare function filterObject<ObjectGeneric extends object>(inputObject: ObjectGeneric, callback: (key: keyof ObjectGeneric, value: ObjectValueType<ObjectGeneric>, fullObject: ObjectGeneric) => boolean): Partial<ObjectGeneric>;
28
28
  /** The input here must be serializable otherwise JSON parsing errors will be thrown */
29
29
  export declare function copyThroughJson<T>(input: T): T;
30
- export declare type ObjectValueType<T extends object> = T[keyof T];
30
+ export type ObjectValueType<T extends object> = T[keyof T];
31
31
  /**
32
32
  * Checks that the first input, testThisOne, matches the object shape of the second input,
33
33
  * compareToThisOne. Does not compare exact values of properties, only types.
@@ -42,7 +42,7 @@ export declare type ObjectValueType<T extends object> = T[keyof T];
42
42
  * entries in that array.
43
43
  */
44
44
  export declare function matchesObjectShape<MatchThisGeneric extends object>(testThisOne: unknown, compareToThisOne: NoInfer<ObjectWithAtLeastSingleEntryArrays<MatchThisGeneric>>, allowExtraProps?: boolean, shouldLogWhy?: boolean): testThisOne is MatchThisGeneric;
45
- export declare type ObjectWithAtLeastSingleEntryArrays<BaseObject extends object> = {
45
+ export type ObjectWithAtLeastSingleEntryArrays<BaseObject extends object> = {
46
46
  [Prop in keyof BaseObject]: BaseObject[Prop] extends ReadonlyArray<any> ? AtLeastOneEntryArray<BaseObject[Prop]> : BaseObject[Prop] extends object ? ObjectWithAtLeastSingleEntryArrays<BaseObject[Prop]> : BaseObject[Prop];
47
47
  };
48
48
  /**
@@ -61,3 +61,4 @@ export declare type ObjectWithAtLeastSingleEntryArrays<BaseObject extends object
61
61
  export declare function assertMatchesObjectShape<MatchThisGeneric extends object = never>(testThisOne: unknown, compareToThisOne: NoInfer<ObjectWithAtLeastSingleEntryArrays<MatchThisGeneric>>, allowExtraProps?: boolean): asserts testThisOne is MatchThisGeneric;
62
62
  export declare function typedObjectFromEntries<KeyType extends PropertyKey, ValueType>(entries: ReadonlyArray<Readonly<[KeyType, ValueType]>>): Record<KeyType, ValueType>;
63
63
  export {};
64
+ //# sourceMappingURL=object.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../../src/augments/object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,SAAS,CAAC;AAG7C,OAAO,EAAC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAC,MAAM,QAAQ,CAAC;AAEtD,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAGxE;AAED,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAG3E;AAED,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,GAAG,KAAK,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAE/F;AAED,wBAAgB,OAAO,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,CAAC,CAAC,EAC/E,eAAe,UAAQ,GACxB,OAAO,CAAC,WAAW,IAAI,gBAAgB,CA0BzC;AAoED,wBAAgB,sBAAsB,CAAC,OAAO,SAAS,WAAW,EAAE,SAAS,EACzE,OAAO,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,GACvD,MAAM,CAAC,OAAO,EAAE,SAAS,CAAC,CAE5B"}
@@ -8,16 +8,17 @@ export declare class PromiseTimeoutError extends Error {
8
8
  }
9
9
  export declare function wrapPromiseInTimeout<PromiseValueType>(durationMs: number, originalPromise: PromiseLike<PromiseValueType>): Promise<PromiseValueType>;
10
10
  /** A promise which can be resolved or rejected by external code. */
11
- export declare type DeferredPromiseWrapper<T> = {
11
+ export type DeferredPromiseWrapper<T> = {
12
12
  promise: Promise<T>;
13
13
  resolve: (value: T | PromiseLike<T>) => void;
14
14
  reject: (reason?: any) => void;
15
15
  };
16
16
  export declare function createDeferredPromiseWrapper<T = void>(): DeferredPromiseWrapper<T>;
17
- export declare type WaitForConditionInputs = {
17
+ export type WaitForConditionInputs = {
18
18
  conditionCallback: () => boolean | Promise<boolean>;
19
19
  timeoutMs?: number;
20
20
  intervalMs?: number;
21
21
  timeoutMessage?: string;
22
22
  };
23
23
  export declare function waitForCondition({ conditionCallback, timeoutMs, intervalMs, timeoutMessage, }: WaitForConditionInputs): Promise<void>;
24
+ //# sourceMappingURL=promise.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promise.d.ts","sourceRoot":"","sources":["../../../src/augments/promise.ts"],"names":[],"mappings":"AAGA,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAYnD;AAED,wBAAgB,aAAa,CAAC,CAAC,EAC3B,KAAK,EAAE,CAAC,GAAG,OAAO,GACnB,KAAK,IAAI,CAAC,SAAS,WAAW,CAAC,MAAM,SAAS,CAAC,GAAG,WAAW,CAAC,SAAS,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC,CAMjG;AAED,qBAAa,mBAAoB,SAAQ,KAAK;aAItB,UAAU,EAAE,MAAM;aACT,OAAO,EAAE,MAAM;IAJ5C,SAAyB,IAAI,yBAAyB;gBAGlC,UAAU,EAAE,MAAM,EACT,OAAO,GAAE,MAAqD;CAI9F;AAED,wBAAgB,oBAAoB,CAAC,gBAAgB,EACjD,UAAU,EAAE,MAAM,EAClB,eAAe,EAAE,WAAW,CAAC,gBAAgB,CAAC,GAC/C,OAAO,CAAC,gBAAgB,CAAC,CAc3B;AAED,oEAAoE;AACpE,MAAM,MAAM,sBAAsB,CAAC,CAAC,IAAI;IACpC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACpB,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC7C,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;CAClC,CAAC;AAEF,wBAAgB,4BAA4B,CAAC,CAAC,GAAG,IAAI,KAAK,sBAAsB,CAAC,CAAC,CAAC,CAoBlF;AAED,MAAM,MAAM,sBAAsB,GAAG;IACjC,iBAAiB,EAAE,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,wBAAsB,gBAAgB,CAAC,EACnC,iBAAiB,EACjB,SAAiB,EACjB,UAAgB,EAChB,cAAmB,GACtB,EAAE,sBAAsB,iBA0BxB"}
@@ -1,3 +1,4 @@
1
1
  export declare function deDupeRegExFlags(flags: string): string;
2
2
  export declare function addRegExpFlags(originalRegExp: RegExp, flags: string): RegExp;
3
3
  export declare function safeMatch(input: string, regExp: RegExp): string[];
4
+ //# sourceMappingURL=regexp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"regexp.d.ts","sourceRoot":"","sources":["../../../src/augments/regexp.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAItD;AAED,wBAAgB,cAAc,CAAC,cAAc,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAU5E;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAGjE"}
@@ -1,8 +1,9 @@
1
- export declare type Tuple<ArrayElementGeneric, LengthGeneric extends number> = LengthGeneric extends LengthGeneric ? number extends LengthGeneric ? ArrayElementGeneric[] : _TupleOf<ArrayElementGeneric, LengthGeneric, []> : never;
2
- declare type _TupleOf<ArrayElementGeneric, LengthGeneric extends number, FullArrayGeneric extends unknown[]> = FullArrayGeneric['length'] extends LengthGeneric ? FullArrayGeneric : _TupleOf<ArrayElementGeneric, LengthGeneric, [ArrayElementGeneric, ...FullArrayGeneric]>;
3
- export declare type AtLeastTuple<ArrayElementGeneric, LengthGeneric extends number> = readonly [
1
+ export type Tuple<ArrayElementGeneric, LengthGeneric extends number> = LengthGeneric extends LengthGeneric ? number extends LengthGeneric ? ArrayElementGeneric[] : _TupleOf<ArrayElementGeneric, LengthGeneric, []> : never;
2
+ type _TupleOf<ArrayElementGeneric, LengthGeneric extends number, FullArrayGeneric extends unknown[]> = FullArrayGeneric['length'] extends LengthGeneric ? FullArrayGeneric : _TupleOf<ArrayElementGeneric, LengthGeneric, [ArrayElementGeneric, ...FullArrayGeneric]>;
3
+ export type AtLeastTuple<ArrayElementGeneric, LengthGeneric extends number> = readonly [
4
4
  ...Tuple<ArrayElementGeneric, LengthGeneric>,
5
5
  ...ArrayElementGeneric[]
6
6
  ];
7
7
  export declare function isLengthAtLeast<ArrayElementGeneric, LengthGeneric extends number>(array: ReadonlyArray<ArrayElementGeneric>, length: LengthGeneric): array is AtLeastTuple<ArrayElementGeneric, LengthGeneric>;
8
8
  export {};
9
+ //# sourceMappingURL=tuple.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tuple.d.ts","sourceRoot":"","sources":["../../../src/augments/tuple.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,CACb,mBAAmB,EACnB,aAAa,SAAS,MAAM,IAC5B,aAAa,SAAS,aAAa,GACjC,MAAM,SAAS,aAAa,GACxB,mBAAmB,EAAE,GACrB,QAAQ,CAAC,mBAAmB,EAAE,aAAa,EAAE,EAAE,CAAC,GACpD,KAAK,CAAC;AACZ,KAAK,QAAQ,CACT,mBAAmB,EACnB,aAAa,SAAS,MAAM,EAC5B,gBAAgB,SAAS,OAAO,EAAE,IAClC,gBAAgB,CAAC,QAAQ,CAAC,SAAS,aAAa,GAC9C,gBAAgB,GAChB,QAAQ,CAAC,mBAAmB,EAAE,aAAa,EAAE,CAAC,mBAAmB,EAAE,GAAG,gBAAgB,CAAC,CAAC,CAAC;AAE/F,MAAM,MAAM,YAAY,CAAC,mBAAmB,EAAE,aAAa,SAAS,MAAM,IAAI,SAAS;IACnF,GAAG,KAAK,CAAC,mBAAmB,EAAE,aAAa,CAAC;IAC5C,GAAG,mBAAmB,EAAE;CAC3B,CAAC;AAEF,wBAAgB,eAAe,CAAC,mBAAmB,EAAE,aAAa,SAAS,MAAM,EAC7E,KAAK,EAAE,aAAa,CAAC,mBAAmB,CAAC,EACzC,MAAM,EAAE,aAAa,GACtB,KAAK,IAAI,YAAY,CAAC,mBAAmB,EAAE,aAAa,CAAC,CAE3D"}
@@ -1,11 +1,12 @@
1
+ import { AnyFunction } from '@augment-vir/common';
1
2
  declare function getTypeOf(x: any): "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
2
- export declare type TypeOf = ReturnType<typeof getTypeOf>;
3
- export declare type TypeOfWithArray = TypeOf | 'array';
4
- export declare type TypeOfMapping = {
3
+ export type TypeOf = ReturnType<typeof getTypeOf>;
4
+ export type TypeOfWithArray = TypeOf | 'array';
5
+ export type TypeOfMapping = {
5
6
  array: any[];
6
7
  bigint: bigint;
7
8
  boolean: boolean;
8
- function: (...args: any[]) => any;
9
+ function: AnyFunction;
9
10
  number: number;
10
11
  object: object;
11
12
  string: string;
@@ -15,3 +16,4 @@ export declare type TypeOfMapping = {
15
16
  export declare function typeOfWithArray(input: unknown): TypeOfWithArray;
16
17
  export declare function isTypeOfWithArray<T extends TypeOfWithArray>(input: unknown, testType: T): input is TypeOfMapping[T];
17
18
  export {};
19
+ //# sourceMappingURL=type-of.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-of.d.ts","sourceRoot":"","sources":["../../../src/augments/type-of.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,qBAAqB,CAAC;AAIhD,iBAAS,SAAS,CAAC,CAAC,EAAE,GAAG,+FAExB;AAED,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAElD,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,OAAO,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG;IACxB,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,WAAW,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,SAAS,CAAC;CACxB,CAAC;AAEF,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CAE/D;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,eAAe,EACvD,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,CAAC,GACZ,KAAK,IAAI,aAAa,CAAC,CAAC,CAAC,CAG3B"}
@@ -1,34 +1,34 @@
1
1
  /** Makes all properties in an object writable. This is the opposite of Readonly<> */
2
- export declare type Writeable<T> = {
2
+ export type Writeable<T> = {
3
3
  -readonly [P in keyof T]: T[P];
4
4
  };
5
5
  /** Makes all property values in an object also readonly. Can cause issues on primitive. */
6
- export declare type DeepWriteable<T> = {
6
+ export type DeepWriteable<T> = {
7
7
  -readonly [P in keyof T]: DeepWriteable<T[P]>;
8
8
  };
9
9
  /** Replace properties in T with properties in U. */
10
- export declare type Overwrite<T, U> = Pick<T, Exclude<keyof T, keyof U>> & U;
10
+ export type Overwrite<T, U> = Pick<T, Exclude<keyof T, keyof U>> & U;
11
11
  /** Extract the element type out of an array type. */
12
- export declare type ArrayElement<ArrayType extends ReadonlyArray<any>> = ArrayType[number];
12
+ export type ArrayElement<ArrayType extends ReadonlyArray<any>> = ArrayType[number];
13
13
  /**
14
14
  * Same as the Required<> built-in type helper but this requires that each property be present and
15
15
  * be not null.
16
16
  */
17
- export declare type RequiredAndNotNull<T> = {
17
+ export type RequiredAndNotNull<T> = {
18
18
  [P in keyof T]-?: NonNullable<T[P]>;
19
19
  };
20
20
  /** Require only a subset of object properties. */
21
- export declare type RequiredBy<T, K extends keyof T> = Overwrite<T, Required<Pick<T, K>>>;
21
+ export type RequiredBy<T, K extends keyof T> = Overwrite<T, Required<Pick<T, K>>>;
22
22
  /**
23
23
  * Require only a subset of object properties and require that they be not null. This is
24
24
  * particularly useful in conjunction with the "exactOptionalPropertyTypes" tsconfig flag.
25
25
  */
26
- export declare type RequiredAndNotNullBy<T, K extends keyof T> = Omit<T, K> & Required<{
26
+ export type RequiredAndNotNullBy<T, K extends keyof T> = Omit<T, K> & Required<{
27
27
  [PropertyName in K]: NonNullable<T[PropertyName]>;
28
28
  }>;
29
29
  /** If type T = type U, then type Y. Else type N. */
30
- export declare type IfEquals<T, U, Y = unknown, N = never> = (<G>() => G extends T ? 1 : 2) extends <G>() => G extends U ? 1 : 2 ? Y : N;
31
- export declare type UnPromise<T> = T extends PromiseLike<infer PromiseType> ? Awaited<PromiseType> : T;
30
+ export type IfEquals<T, U, Y = unknown, N = never> = (<G>() => G extends T ? 1 : 2) extends <G>() => G extends U ? 1 : 2 ? Y : N;
31
+ export type UnPromise<T> = T extends PromiseLike<infer PromiseType> ? Awaited<PromiseType> : T;
32
32
  /**
33
33
  * This function returns another function that simply returns whatever input it's given. However, it
34
34
  * also checks that the input matches the original wrapNarrowTypeWithTypeCheck's generic, while
@@ -43,7 +43,7 @@ export declare function wrapNarrowTypeWithTypeCheck<P>(): <T extends P>(input: T
43
43
  * This type helper is useful for forcing function generics to be explicitly provided, rather than
44
44
  * inferring them from the given inputs. See the test file for examples.
45
45
  */
46
- export declare type NoInfer<T> = [T][T extends any ? 0 : never];
46
+ export type NoInfer<T> = [T][T extends any ? 0 : never];
47
47
  /**
48
48
  * This is a type helper that ensures the given input matches the given generic type. The generic is
49
49
  * setup in such a way that if it is omitted (which is typically allowed in TypeScript, resulting in
@@ -52,3 +52,4 @@ export declare type NoInfer<T> = [T][T extends any ? 0 : never];
52
52
  * input.
53
53
  */
54
54
  export declare function ensureType<ExpectedType = never>(input: NoInfer<ExpectedType>): NoInfer<ExpectedType>;
55
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/augments/type.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI;IAAC,CAAC,UAAU,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAC,CAAC;AAE5D,2FAA2F;AAC3F,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI;IAAC,CAAC,UAAU,CAAC,IAAI,MAAM,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAC,CAAC;AAE/E,oDAAoD;AACpD,MAAM,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,OAAO,CA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C;AAED;;;GAGG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;AAExD;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,YAAY,GAAG,KAAK,EAC3C,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,GAC7B,OAAO,CAAC,YAAY,CAAC,CAEvB"}
@@ -13,3 +13,4 @@ export * from './augments/regexp';
13
13
  export * from './augments/tuple';
14
14
  export * from './augments/type';
15
15
  export * from './augments/type-of';
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@augment-vir/common",
3
- "version": "5.0.0",
3
+ "version": "6.0.0",
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"
@@ -19,22 +19,10 @@
19
19
  "types": "dist/types/index.d.ts",
20
20
  "scripts": {
21
21
  "compile": "tsc --project tsconfig.json && tsc --project tsconfig.cjs.json && tsc --project tsconfig.esm.json",
22
- "docs:update": "virmator code-in-markdown",
23
22
  "test": "echo \"use common-test to run tests\" && exit 0"
24
23
  },
25
24
  "dependencies": {
26
- "type-fest": "^3.2.0"
27
- },
28
- "devDependencies": {
29
- "istanbul-smart-text-reporter": "^1.0.0",
30
- "prettier": "^2.7.1",
31
- "prettier-plugin-jsdoc": "^0.4.2",
32
- "prettier-plugin-multiline-arrays": "^1.1.1",
33
- "prettier-plugin-organize-imports": "^3.2.0",
34
- "prettier-plugin-packagejson": "^2.3.0",
35
- "prettier-plugin-sort-json": "^0.0.3",
36
- "prettier-plugin-toml": "^0.3.1",
37
- "typescript": "^4.8.4"
25
+ "type-fest": "^3.3.0"
38
26
  },
39
27
  "publishConfig": {
40
28
  "access": "public"