UNPKG

vasille

Version:

The same framework which is designed to build bulletproof frontends (core library).

21 lines (20 loc) 528 B
import { Destroyable } from "../../../core/destroyable.js"; import type { IValue } from "../../../core/ivalue.js"; /** * Describe a common binding logic * @class Binding */ export declare class Binding<T> implements Destroyable { private binding; private func; /** * Constructs a common binding logic * @param value {IValue} the value to bind */ constructor(value: IValue<T>); protected init(bounded: (v: T) => void): void; /** * Just clear bindings */ destroy(): void; }