@ssa-ui-kit/utils 2.8.3 → 2.9.0-canary-4b2c248-20250414
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/dist/utils/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/utils/types.d.ts
CHANGED
|
@@ -2,3 +2,5 @@ export type PathValue = string | number | boolean | null;
|
|
|
2
2
|
export interface PathObject {
|
|
3
3
|
[key: string | number]: PathValue | PathObject;
|
|
4
4
|
}
|
|
5
|
+
export type Has<T extends string, U extends string> = Exclude<U, T> extends never ? true : false;
|
|
6
|
+
export type MustInclude<T extends readonly string[], I extends string> = Has<T[number], I> extends true ? T : never;
|