Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 745 Bytes

properties.api.md

File metadata and controls

28 lines (23 loc) · 745 Bytes

API Report File for "@lumino/properties"

Do not edit this file. It is a report generated by API Extractor.

// @public
export class AttachedProperty<T, U> {
    constructor(options: AttachedProperty.IOptions<T, U>);
    coerce(owner: T): void;
    get(owner: T): U;
    readonly name: string;
    set(owner: T, value: U): void;
}

// @public
export namespace AttachedProperty {
    export function clearData(owner: unknown): void;
    export interface IOptions<T, U> {
        changed?: (owner: T, oldValue: U, newValue: U) => void;
        coerce?: (owner: T, value: U) => U;
        compare?: (oldValue: U, newValue: U) => boolean;
        create: (owner: T) => U;
        name: string;
    }
}