@flashist/appframework 0.0.141 → 0.0.143
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/app/data/state/AppModuleState.d.ts +1 -1
- package/debug/data/state/DebugModuleState.d.ts +1 -1
- package/device/data/state/DeviceModuleState.d.ts +1 -1
- package/display/views/button/SimpleButtonConfig.d.ts +1 -1
- package/display/views/button/simple-image-button/SimpleImageButtonConfig.d.ts +1 -1
- package/display/views/layout/container/ILayoutableChild.d.ts +1 -1
- package/ecs-rendermodule/ecs/components/RenderComponent.d.ts +1 -1
- package/package.json +1 -1
- package/pages/data/state/PagesModuleState.d.ts +1 -1
- package/state/data/DeepKeyTypings.d.ts +6 -6
- package/state/data/DeepReadableTypings.d.ts +1 -1
- package/time/data/state/TimeModuleAppState.d.ts +1 -1
|
@@ -11,4 +11,4 @@ export declare const SimpleButtonDefaultConfig: {
|
|
|
11
11
|
export interface ISingleButtonStateConfig {
|
|
12
12
|
alpha: number;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export type SimpleButtonConfig = Partial<typeof SimpleButtonDefaultConfig>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DisplayObjectContainer } from "@flashist/flibs";
|
|
2
|
-
export
|
|
2
|
+
export type ILayoutableChild = DisplayObjectContainer;
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
type Writable<T, O> = T extends O ? T : {
|
|
2
2
|
[P in keyof T as IfEquals<{
|
|
3
3
|
[Q in P]: T[P];
|
|
4
4
|
}, {
|
|
5
5
|
-readonly [Q in P]: T[P];
|
|
6
6
|
}, P>]: T[P];
|
|
7
7
|
};
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
type IfEquals<X, Y, A = X, B = never> = (<T>() => T extends X ? 1 : 2) extends (<T>() => T extends Y ? 1 : 2) ? A : B;
|
|
9
|
+
type Cleanup<T> = 0 extends (1 & T) ? unknown : T extends readonly any[] ? (Exclude<keyof T, keyof any[]> extends never ? {
|
|
10
10
|
[k: `${number}`]: T[number];
|
|
11
11
|
} : Omit<T, keyof any[]>) : T;
|
|
12
|
-
|
|
12
|
+
type PrefixKeys<V, K extends PropertyKey, O> = V extends O ? {
|
|
13
13
|
[P in K]: V;
|
|
14
14
|
} : V extends object ? {
|
|
15
15
|
[P in keyof V as `${Extract<K, string | number>}.${Extract<P, string | number>}`]: V[P];
|
|
16
16
|
} : {
|
|
17
17
|
[P in K]: V;
|
|
18
18
|
};
|
|
19
|
-
|
|
20
|
-
export
|
|
19
|
+
type ValueOf<T> = T[keyof T];
|
|
20
|
+
export type Flatten<T, O = never> = Writable<Cleanup<T>, O> extends infer U ? U extends O ? U : U extends object ? ValueOf<{
|
|
21
21
|
[K in keyof U]-?: (x: PrefixKeys<Flatten<U[K], O>, K, O>) => void;
|
|
22
22
|
}> | ((x: U) => void) extends (x: infer I) => void ? {
|
|
23
23
|
[K in keyof I]: I[K];
|