Adds @xuqm/h5-sdk/private entry point with JSON-based initialization, feature gating, and error codes for private deployment scenarios. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
16 行
528 B
TypeScript
16 行
528 B
TypeScript
import { ISignal } from './computed.js';
|
|
import { Dependency, Link } from './system.js';
|
|
export interface IWritableSignal<T = any> extends ISignal<T> {
|
|
set(value: T): void;
|
|
}
|
|
export declare function signal<T>(): Signal<T | undefined>;
|
|
export declare function signal<T>(oldValue: T): Signal<T>;
|
|
export declare class Signal<T = any> implements Dependency {
|
|
currentValue: T;
|
|
subs: Link | undefined;
|
|
subsTail: Link | undefined;
|
|
constructor(currentValue: T);
|
|
get(): NonNullable<T>;
|
|
set(value: T): void;
|
|
}
|