diff --git a/lib/index.d.ts b/lib/index.d.ts index a14af2e..3564460 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -1,4 +1,5 @@ // index.d.ts (Should contain all the declarations for the 'vlow' module) +import type * as React from 'react'; // Helper types type SafeStoreLookup = Key extends keyof TStore @@ -33,7 +34,7 @@ export function factoryActions(): { // The direct function (might be redundant if factoryActions is used) export function createActions(names: T): StoreActions; -export function withVlow(...args: any[]): any; +export function withVlow

(...args: unknown[]): (Component: React.ComponentType

) => React.ComponentType

; export namespace Component { function extend(SuperClass: any): any; diff --git a/lib/index.js b/lib/index.js index 41dbf4d..f90fedb 100644 --- a/lib/index.js +++ b/lib/index.js @@ -24,7 +24,7 @@ import Component from './component.js'; import { createActions, factoryActions } from './actions.js'; import withVlow from './withVlow.js'; var Vlow = { - version: '1.1.28' + version: '1.1.29' }; Vlow.Store = Store; Vlow.Component = Component; diff --git a/package-lock.json b/package-lock.json index 433e782..87b6dad 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "vlow", - "version": "1.1.28", + "version": "1.1.29", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "vlow", - "version": "1.1.28", + "version": "1.1.29", "license": "MIT", "dependencies": { "@babel/runtime": "^7.28.6", diff --git a/package.json b/package.json index 4d863f5..bae4e1f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vlow", - "version": "1.1.28", + "version": "1.1.29", "type": "module", "description": "A simple library for unidirectional dataflow architecture inspired by Reflux", "main": "lib/index.js", diff --git a/src/index.d.ts b/src/index.d.ts index a14af2e..3564460 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -1,4 +1,5 @@ // index.d.ts (Should contain all the declarations for the 'vlow' module) +import type * as React from 'react'; // Helper types type SafeStoreLookup = Key extends keyof TStore @@ -33,7 +34,7 @@ export function factoryActions(): { // The direct function (might be redundant if factoryActions is used) export function createActions(names: T): StoreActions; -export function withVlow(...args: any[]): any; +export function withVlow

(...args: unknown[]): (Component: React.ComponentType

) => React.ComponentType

; export namespace Component { function extend(SuperClass: any): any; diff --git a/src/index.js b/src/index.js index dc8c344..08faf5e 100644 --- a/src/index.js +++ b/src/index.js @@ -25,7 +25,7 @@ import {createActions, factoryActions} from './actions.js'; import withVlow from './withVlow.js'; const Vlow = { - version: '1.1.28', + version: '1.1.29', }; Vlow.Store = Store;