@mtcute/core 0.10.1 → 0.10.2
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.
package/cjs/types/utils.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export type MaybePromise<T> = T | Promise<T>;
|
|
|
2
2
|
export type PartialExcept<T, K extends keyof T> = Partial<Omit<T, K>> & Pick<T, K>;
|
|
3
3
|
export type PartialOnly<T, K extends keyof T> = Partial<Pick<T, K>> & Omit<T, K>;
|
|
4
4
|
export type MaybeArray<T> = T | T[];
|
|
5
|
-
export type MustEqual<T, V> = T extends V ? (V extends T ? T : V) : V;
|
|
5
|
+
export type MustEqual<T, V> = (() => T) extends () => V ? ((() => V) extends () => T ? T : V) : V;
|
|
6
6
|
export type PublicPart<T> = {
|
|
7
7
|
[K in keyof T]: T[K];
|
|
8
8
|
};
|
package/cjs/types/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/types/utils.ts"],"names":[],"mappings":";;;AAUA,6DAA6D;AAC7D,SAAgB,WAAW,CAAC,CAAQ;IAChC,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAA;AACpC,CAAC;AAFD,kCAEC","sourcesContent":["export type MaybePromise<T> = T | Promise<T>\nexport type PartialExcept<T, K extends keyof T> = Partial<Omit<T, K>> & Pick<T, K>\nexport type PartialOnly<T, K extends keyof T> = Partial<Pick<T, K>> & Omit<T, K>\n\nexport type MaybeArray<T> = T | T[]\n\nexport type MustEqual<T, V> = T extends V ? (V extends T ? T : V) : V\n\nexport type PublicPart<T> = { [K in keyof T]: T[K] }\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function assertNever(x: never): never {\n throw new Error('Illegal state')\n}\n"]}
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/types/utils.ts"],"names":[],"mappings":";;;AAUA,6DAA6D;AAC7D,SAAgB,WAAW,CAAC,CAAQ;IAChC,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAA;AACpC,CAAC;AAFD,kCAEC","sourcesContent":["export type MaybePromise<T> = T | Promise<T>\nexport type PartialExcept<T, K extends keyof T> = Partial<Omit<T, K>> & Pick<T, K>\nexport type PartialOnly<T, K extends keyof T> = Partial<Pick<T, K>> & Omit<T, K>\n\nexport type MaybeArray<T> = T | T[]\n\nexport type MustEqual<T, V> = (() => T) extends () => V ? ((() => V) extends () => T ? T : V) : V\n\nexport type PublicPart<T> = { [K in keyof T]: T[K] }\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function assertNever(x: never): never {\n throw new Error('Illegal state')\n}\n"]}
|
package/esm/types/utils.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export type MaybePromise<T> = T | Promise<T>;
|
|
|
2
2
|
export type PartialExcept<T, K extends keyof T> = Partial<Omit<T, K>> & Pick<T, K>;
|
|
3
3
|
export type PartialOnly<T, K extends keyof T> = Partial<Pick<T, K>> & Omit<T, K>;
|
|
4
4
|
export type MaybeArray<T> = T | T[];
|
|
5
|
-
export type MustEqual<T, V> = T extends V ? (V extends T ? T : V) : V;
|
|
5
|
+
export type MustEqual<T, V> = (() => T) extends () => V ? ((() => V) extends () => T ? T : V) : V;
|
|
6
6
|
export type PublicPart<T> = {
|
|
7
7
|
[K in keyof T]: T[K];
|
|
8
8
|
};
|
package/esm/types/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/types/utils.ts"],"names":[],"mappings":"AAUA,6DAA6D;AAC7D,MAAM,UAAU,WAAW,CAAC,CAAQ;IAChC,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAA;AACpC,CAAC","sourcesContent":["export type MaybePromise<T> = T | Promise<T>\nexport type PartialExcept<T, K extends keyof T> = Partial<Omit<T, K>> & Pick<T, K>\nexport type PartialOnly<T, K extends keyof T> = Partial<Pick<T, K>> & Omit<T, K>\n\nexport type MaybeArray<T> = T | T[]\n\nexport type MustEqual<T, V> = T extends V ? (V extends T ? T : V) : V\n\nexport type PublicPart<T> = { [K in keyof T]: T[K] }\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function assertNever(x: never): never {\n throw new Error('Illegal state')\n}\n"]}
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/types/utils.ts"],"names":[],"mappings":"AAUA,6DAA6D;AAC7D,MAAM,UAAU,WAAW,CAAC,CAAQ;IAChC,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAA;AACpC,CAAC","sourcesContent":["export type MaybePromise<T> = T | Promise<T>\nexport type PartialExcept<T, K extends keyof T> = Partial<Omit<T, K>> & Pick<T, K>\nexport type PartialOnly<T, K extends keyof T> = Partial<Pick<T, K>> & Omit<T, K>\n\nexport type MaybeArray<T> = T | T[]\n\nexport type MustEqual<T, V> = (() => T) extends () => V ? ((() => V) extends () => T ? T : V) : V\n\nexport type PublicPart<T> = { [K in keyof T]: T[K] }\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function assertNever(x: never): never {\n throw new Error('Illegal state')\n}\n"]}
|