UNPKG

@web-atoms/core

Version:
13 lines 697 B
import { IValueConverter } from "../core/IValueConverter"; import { IDisposable } from "../core/types"; import { AtomViewModel } from "./AtomViewModel"; /** * Binds source property to target property with optional two ways * @param target target whose property will be set * @param propertyName name of target property * @param source source to read property from * @param path property path of source * @param twoWays optional, two ways {@link IValueConverter} */ export default function bindProperty(vm: AtomViewModel, target: any, propertyName: string, source: any, path: string[][], twoWays?: IValueConverter | ((v: any) => any)): IDisposable; //# sourceMappingURL=bindProperty.d.ts.map