@cleanweb/react 2.1.6 → 2.1.7-beta.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.
- package/build/helpers/index.d.ts +3 -0
- package/package.json +1 -1
package/build/helpers/index.d.ts
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
* <!-- @ mergeModuleWith API -->
|
3
3
|
* @module Helpers
|
4
4
|
*/
|
5
|
+
import type { ComponentLogic } from '../classy';
|
5
6
|
export * from './mount-state';
|
6
7
|
export * from './rerender';
|
7
8
|
export * from './use-component';
|
@@ -11,3 +12,5 @@ export * from './type-guards';
|
|
11
12
|
* It returns (void) without performing any operations.
|
12
13
|
*/
|
13
14
|
export declare const noOp: () => void;
|
15
|
+
export type StateFragment<TComponent extends ComponentLogic<any>> = Partial<ReturnType<TComponent['getInitialState']>>;
|
16
|
+
export type { StateFragment as SF };
|