@yamada-ui/utils 1.5.2-dev-20240924045835 → 1.5.2-dev-20240924064656

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.
@@ -1,16 +1,16 @@
1
1
  type Primitive = null | undefined | string | number | boolean | symbol | bigint;
2
- type PathImpl<K extends string | number | symbol, V> = K extends string | number ? V extends Primitive ? `${K}` : `${K}.${Path<V>}` : ``;
3
- type Path<T> = {
4
- [K in keyof T]-?: PathImpl<K, T[K]>;
5
- }[keyof T];
6
- interface Dict<T = any> {
7
- [key: string]: T;
2
+ type PathImpl<Y extends string | number | symbol, M> = Y extends string | number ? M extends Primitive ? `${Y}` : `${Y}.${Path<M>}` : ``;
3
+ type Path<Y> = {
4
+ [M in keyof Y]-?: PathImpl<M, Y[M]>;
5
+ }[keyof Y];
6
+ interface Dict<Y = any> {
7
+ [key: string]: Y;
8
8
  }
9
9
  interface ObjectLiteral {
10
10
  }
11
11
  type StringLiteral = string & {};
12
12
  type Replace<Y extends string, M extends string, D extends string, H extends string = ""> = Y extends `${infer T}${M}${infer R}` ? Replace<R, M, D, `${H}${T}${D}`> : `${H}${Y}`;
13
- type Union<T> = T | StringLiteral;
13
+ type Union<Y> = Y | StringLiteral;
14
14
  type Length<T extends any[]> = T["length"];
15
15
  type Merge<Y, M> = Omit<Y, keyof M> & M;
16
16
  type MergeIfDefined<Y, M> = M extends undefined ? Y : Merge<Y, M>;
@@ -1,16 +1,16 @@
1
1
  type Primitive = null | undefined | string | number | boolean | symbol | bigint;
2
- type PathImpl<K extends string | number | symbol, V> = K extends string | number ? V extends Primitive ? `${K}` : `${K}.${Path<V>}` : ``;
3
- type Path<T> = {
4
- [K in keyof T]-?: PathImpl<K, T[K]>;
5
- }[keyof T];
6
- interface Dict<T = any> {
7
- [key: string]: T;
2
+ type PathImpl<Y extends string | number | symbol, M> = Y extends string | number ? M extends Primitive ? `${Y}` : `${Y}.${Path<M>}` : ``;
3
+ type Path<Y> = {
4
+ [M in keyof Y]-?: PathImpl<M, Y[M]>;
5
+ }[keyof Y];
6
+ interface Dict<Y = any> {
7
+ [key: string]: Y;
8
8
  }
9
9
  interface ObjectLiteral {
10
10
  }
11
11
  type StringLiteral = string & {};
12
12
  type Replace<Y extends string, M extends string, D extends string, H extends string = ""> = Y extends `${infer T}${M}${infer R}` ? Replace<R, M, D, `${H}${T}${D}`> : `${H}${Y}`;
13
- type Union<T> = T | StringLiteral;
13
+ type Union<Y> = Y | StringLiteral;
14
14
  type Length<T extends any[]> = T["length"];
15
15
  type Merge<Y, M> = Omit<Y, keyof M> & M;
16
16
  type MergeIfDefined<Y, M> = M extends undefined ? Y : Merge<Y, M>;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.types.ts"],"sourcesContent":["export type Primitive =\n | null\n | undefined\n | string\n | number\n | boolean\n | symbol\n | bigint\n\ntype PathImpl<K extends string | number | symbol, V> = K extends string | number\n ? V extends Primitive\n ? `${K}`\n : `${K}.${Path<V>}`\n : ``\n\nexport type Path<T> = {\n [K in keyof T]-?: PathImpl<K, T[K]>\n}[keyof T]\n\nexport interface Dict<T = any> {\n [key: string]: T\n}\n\nexport interface ObjectLiteral {}\n\nexport type StringLiteral = string & {}\n\nexport type Replace<\n Y extends string,\n M extends string,\n D extends string,\n H extends string = \"\",\n> = Y extends `${infer T}${M}${infer R}`\n ? Replace<R, M, D, `${H}${T}${D}`>\n : `${H}${Y}`\n\nexport type Union<T> = T | StringLiteral\n\nexport type Length<T extends any[]> = T[\"length\"]\n\nexport type Merge<Y, M> = Omit<Y, keyof M> & M\n\nexport type MergeIfDefined<Y, M> = M extends undefined ? Y : Merge<Y, M>\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../src/index.types.ts"],"sourcesContent":["export type Primitive =\n | null\n | undefined\n | string\n | number\n | boolean\n | symbol\n | bigint\n\ntype PathImpl<Y extends string | number | symbol, M> = Y extends string | number\n ? M extends Primitive\n ? `${Y}`\n : `${Y}.${Path<M>}`\n : ``\n\nexport type Path<Y> = {\n [M in keyof Y]-?: PathImpl<M, Y[M]>\n}[keyof Y]\n\nexport interface Dict<Y = any> {\n [key: string]: Y\n}\n\nexport interface ObjectLiteral {}\n\nexport type StringLiteral = string & {}\n\nexport type Replace<\n Y extends string,\n M extends string,\n D extends string,\n H extends string = \"\",\n> = Y extends `${infer T}${M}${infer R}`\n ? Replace<R, M, D, `${H}${T}${D}`>\n : `${H}${Y}`\n\nexport type Union<Y> = Y | StringLiteral\n\nexport type Length<T extends any[]> = T[\"length\"]\n\nexport type Merge<Y, M> = Omit<Y, keyof M> & M\n\nexport type MergeIfDefined<Y, M> = M extends undefined ? Y : Merge<Y, M>\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/utils",
3
- "version": "1.5.2-dev-20240924045835",
3
+ "version": "1.5.2-dev-20240924064656",
4
4
  "description": "Yamada UI utils",
5
5
  "keywords": [
6
6
  "utils",