@nu-art/ts-common 0.204.67 → 0.204.69

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 (2) hide show
  1. package/package.json +1 -1
  2. package/utils/types.d.ts +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nu-art/ts-common",
3
- "version": "0.204.67",
3
+ "version": "0.204.69",
4
4
  "description": "js and ts infra",
5
5
  "keywords": [
6
6
  "TacB0sS",
package/utils/types.d.ts CHANGED
@@ -238,3 +238,10 @@ export type WithRequired<T, K extends keyof T> = T & {
238
238
  [P in K]-?: T[P];
239
239
  };
240
240
  export type AsyncVoidFunction = () => Promise<void>;
241
+ declare const brand: unique symbol;
242
+ export type Brand<T, Brand extends string> = T & {
243
+ [brand]: Brand;
244
+ };
245
+ export type RelativePath = Brand<string, 'RelativePath'>;
246
+ export type AbsolutePath = Brand<string, 'AbsolutePath'>;
247
+ export {};