ddd-react 1.3.4 → 1.3.5

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/README.md CHANGED
@@ -1 +1,3 @@
1
- # react-new
1
+ # React v2
2
+
3
+ [npm](https://www.npmjs.com/package/ddd-react)
@@ -1,6 +1,6 @@
1
1
  import type { ComponentState, VDOMNode, WithChildrenProps } from './types';
2
2
  export declare abstract class Component<P = {}, S = ComponentState, ContextValueType = null> {
3
- private isMounted;
3
+ isMounted: boolean;
4
4
  vdom: VDOMNode | null;
5
5
  private hostEl;
6
6
  parent: Component | null;
package/dist/ref.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export interface Ref<T = unknown> {
2
2
  current: T | null;
3
3
  }
4
- export declare function createRef<T = unknown>(initialValue?: T): Ref<T>;
4
+ export declare function createRef<T = unknown>(initialValue?: T | null): Ref<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ddd-react",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "scripts": {
5
5
  "test": "echo \"Error: no test specified\" && exit 1",
6
6
  "type-check": "tsc --noEmit",