anu-verzum 1.10.0 → 1.11.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 { AnuElement, Props } from '../elements';
|
|
2
|
-
export declare abstract class Component<P extends
|
|
2
|
+
export declare abstract class Component<P extends Record<string, any> = Props, S extends Record<string, any> = Record<string, any>> {
|
|
3
3
|
props: P;
|
|
4
4
|
state: S;
|
|
5
5
|
context: Record<string, any>;
|
|
@@ -6,7 +6,7 @@ export type ContextValue<T> = {
|
|
|
6
6
|
value: T;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
-
export type ConsumerProps<T> = Props & {
|
|
9
|
+
export type ConsumerProps<T> = Omit<Props, 'children'> & {
|
|
10
10
|
children: (ctx: ContextValue<T>) => AnuElement | null;
|
|
11
11
|
};
|
|
12
12
|
export type Context<T extends Record<string, any> = Record<string, any>> = {
|
package/package.json
CHANGED