Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@types/reflux
Advanced tools
npm install --save @types/reflux
This package contains type definitions for reflux (https://github.com/reflux/refluxjs).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/reflux/v0.
export as namespace Reflux;
export interface StoreDefinition {
listenables?: any[] | undefined;
init?: Function | undefined;
getInitialState?: Function | undefined;
[propertyName: string]: any;
}
export interface ListenFn {
(...params: any[]): any;
completed: Function;
failed: Function;
}
export interface Listenable {
listen: ListenFn;
}
export interface Subscription {
stop: Function;
listenable: Listenable;
}
export interface Store {
hasListener(listenable: Listenable): boolean;
listenToMany(listenables: Listenable[]): void;
validateListening(listenable: Listenable): string;
listenTo(listenable: Listenable, callback: Function, defaultCallback?: Function): Subscription;
stopListeningTo(listenable: Listenable): boolean;
stopListeningToAll(): void;
fetchInitialState(listenable: Listenable, defaultCallback: Function): void;
trigger(state: any): void;
listen(callback: Function, bindContext: any): Function;
}
export interface ActionsDefinition {
[index: string]: any;
}
export interface Actions {
[index: string]: Listenable;
}
export function createStore(definition: StoreDefinition): Store;
export function createAction(definition?: ActionsDefinition): any;
export function createActions(definitions: ActionsDefinition | string[]): any;
export function connect(store: Store, key?: string): void;
export function listenTo(store: Store, handler: string): void;
export function setState(state: any): void;
export function ListenerMixin(): any;
These definitions were written by Maurice de Beijer.
FAQs
TypeScript definitions for reflux
The npm package @types/reflux receives a total of 15,324 weekly downloads. As such, @types/reflux popularity was classified as popular.
We found that @types/reflux demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.