Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rbxts/reflex-class

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rbxts/reflex-class - npm Package Compare versions

Comparing version 1.1.7 to 1.2.0

2

out/index.d.ts
export * from "./source/class-producer";
export * from "./source/decorators";
export * from "./source/custom-broadcaster/broadcaster";
export * from "./source/custom-broadcaster/broadcast-receiver";

13

out/source/class-producer.d.ts

@@ -0,3 +1,4 @@

/// <reference types="charm" />
import { Atom } from "@rbxts/charm";
import { Janitor } from "@rbxts/janitor";
import { Producer } from "@rbxts/reflex";
export type InferClassProducerState<T> = T extends IClassProducer<infer S> ? S : never;

@@ -8,4 +9,3 @@ export interface IClassProducer<S extends object = object> {

Subscribe<T>(selector: (state: S) => T, listener: (state: T, previousState: T) => void): () => void;
Subscribe<T>(selector: (state: S) => T, predicate: ((state: T, previousState: T) => boolean) | undefined, listener: (state: T, previousState: T) => void): () => void;
Subscribe<T>(...args: unknown[]): () => void;
Subscribe(...args: unknown[]): () => void;
Dispatch(newState: S): void;

@@ -16,3 +16,3 @@ Destroy(): void;

protected abstract state: S;
protected producer: Producer<S>;
protected atom: Atom<S>;
private __janitor;

@@ -23,12 +23,11 @@ constructor();

Subscribe<T>(selector: (state: S) => T, listener: (state: T, previousState: T) => void): () => void;
Subscribe<T>(selector: (state: S) => T, predicate: ((state: T, previousState: T) => boolean) | undefined, listener: (state: T, previousState: T) => void): () => void;
Dispatch(newState: S): S;
Dispatch(newState: S): void;
/** @internal @hidden */
__GetJanitor(): Janitor<void>;
Destroy(): void;
private initProducer;
/** @internal @hidden */
private deferInitProducer;
private initStateProperty;
/** @internal @hidden */
private subscribeToInitialState;
}
import { IClassProducer, InferClassProducerState } from "../class-producer";
export declare const Subscribe: <T extends IClassProducer<InferClassProducerState<T>>, R>(selector: (state: InferClassProducerState<T>) => R, predicate?: ((state: R, previousState: R) => boolean) | undefined) => (target: T, propertyKey: string, descriptor: TypedPropertyDescriptor<(this: T, state?: R | undefined, previousState?: R | undefined) => void>) => void;
export declare const Subscribe: <T extends IClassProducer<InferClassProducerState<T>>, R>(selector: (state: InferClassProducerState<T>) => R) => (target: T, propertyKey: string, descriptor: TypedPropertyDescriptor<(this: T, state?: R | undefined, previousState?: R | undefined) => void>) => void;
{
"name": "@rbxts/reflex-class",
"version": "1.1.7",
"version": "1.2.0",
"description": "",

@@ -39,2 +39,3 @@ "main": "out/init.lua",

"dependencies": {
"@rbxts/charm": "^0.2.0",
"@rbxts/immut": "^0.4.4-ts.0",

@@ -41,0 +42,0 @@ "@rbxts/janitor": "^1.15.7-ts.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc