@cleanweb/react 2.1.1-beta.2 → 2.1.1-beta.3
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/build/base/methods.d.ts
CHANGED
@@ -16,7 +16,7 @@ export declare class ComponentMethods<TProps extends object = {}, TState extends
|
|
16
16
|
readonly props: TProps;
|
17
17
|
readonly state: TState extends TStateData ? TCleanState<TState> : null;
|
18
18
|
_hmrPreserveKeys: Array<keyof this | (string & {})>;
|
19
|
-
_onHmrUpdate
|
19
|
+
_onHmrUpdate?: <TInstance extends this>(oldInstance: TInstance) => void;
|
20
20
|
}
|
21
21
|
type UseMethods = {
|
22
22
|
<Class extends typeof ComponentMethods<object, object>>(Methods: Class & Constructor<InstanceType<Class>>, props: InstanceType<Class>['props'], state: InstanceType<Class>['state']): InstanceType<Class>;
|
@@ -59,7 +59,7 @@ export declare class ComponentLogic<TProps extends TPropsBase = null> {
|
|
59
59
|
*/
|
60
60
|
useHooks: () => object | void;
|
61
61
|
_hmrPreserveKeys: Array<keyof this | (string & {})>;
|
62
|
-
_onHmrUpdate
|
62
|
+
_onHmrUpdate?: <TInstance extends this>(oldInstance: TInstance) => void;
|
63
63
|
}
|
64
64
|
/**
|
65
65
|
* Returns an instance of the provided class, which holds methods for your component and
|