UNPKG

@surface/custom-element

Version:

Provides support of directives and data binding on custom elements.

8 lines (7 loc) 494 B
import type { Delegate } from "@surface/core"; import type { Subscription } from "@surface/observer"; export default class DataBind { static observe(target: object, observables: string[][], listener: Delegate<[unknown]>, lazy?: boolean): Subscription; static oneWay(root: object, path: string[], listener: Delegate<[unknown]>, lazy?: boolean): Subscription; static twoWay(left: object, leftPath: string[], right: object, rightPath: string[]): [Subscription, Subscription]; }