mobx-state-tree 7.3.2 → 7.4.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ISimpleType } from "../../internal";
|
|
2
2
|
/** @hidden */
|
|
3
|
-
export type UnionStringArray<T extends readonly string[]> = T[number];
|
|
4
|
-
export declare function enumeration<T extends string>(options: readonly T[]): ISimpleType<UnionStringArray<T[]>>;
|
|
5
|
-
export declare function enumeration<T extends string>(name: string, options: readonly T[]): ISimpleType<UnionStringArray<T[]>>;
|
|
3
|
+
export type UnionStringArray<T extends readonly (string | number)[]> = T[number];
|
|
4
|
+
export declare function enumeration<T extends string | number>(options: readonly T[]): ISimpleType<UnionStringArray<T[]>>;
|
|
5
|
+
export declare function enumeration<T extends string | number>(name: string, options: readonly T[]): ISimpleType<UnionStringArray<T[]>>;
|