Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/index.d.ts
Original file line numberDiff line numberDiff line change
@@ -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<TStore, Key extends string> = Key extends keyof TStore
Expand DownExpand Up@@ -33,7 +34,7 @@ export function factoryActions<Store>(): {
// The direct function (might be redundant if factoryActions is used)
export function createActions<Store, T extends readonly string[]>(names: T): StoreActions<Store, T>;

export function withVlow(...args: any[]): any;
export function withVlow<P extends object>(...args: unknown[]): (Component: React.ComponentType<P>) => React.ComponentType<P>;

export namespace Component {
function extend(SuperClass: any): any;
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line numberDiff line numberDiff line change
Expand Up@@ -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;
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line numberDiff line numberDiff line change
@@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/index.d.ts
Original file line numberDiff line numberDiff line change
@@ -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<TStore, Key extends string> = Key extends keyof TStore
Expand DownExpand Up@@ -33,7 +34,7 @@ export function factoryActions<Store>(): {
// The direct function (might be redundant if factoryActions is used)
export function createActions<Store, T extends readonly string[]>(names: T): StoreActions<Store, T>;

export function withVlow(...args: any[]): any;
export function withVlow<P extends object>(...args: unknown[]): (Component: React.ComponentType<P>) => React.ComponentType<P>;

export namespace Component {
function extend(SuperClass: any): any;
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line numberDiff line numberDiff line change
Expand Up@@ -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;
Expand Down