-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
style-property.d.ts
31 lines (21 loc) · 1.25 KB
/
style-property.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
declare module "ui/styling/style-property" {
import definition = require("ui/styling");
import observable = require("ui/core/dependency-observable");
export type StyleProperty = Property;
export type ResolvedStylePropertyHandler = (property: Property | string, value: any) => void;
export function withStyleProperty(name: string, value: any, resolvedCallback: ResolvedStylePropertyHandler): void;
export function getShorthandPairs(name: string, value: any): Array<KeyValuePair<Property, any>>;
export function registerShorthandCallback(name: string, callback: (value: any) => Array<KeyValuePair<Property, any>>): void;
export function getPropertyByName(name: string): Property;
export function getPropertyByCssName(name: string): Property;
export function eachProperty(callback: (property: Property) => void);
export function eachInheritableProperty(callback: (property: Property) => void);
export class Property extends observable.Property implements definition.Property {
constructor(name: string, cssName: string, metadata: observable.PropertyMetadata, valueConverter?: (value: any) => any);
cssName: string;
}
export interface KeyValuePair<K, V> {
property: K;
value: V;
}
}