Files
NativeScript/ui/styling/style-scope.d.ts
Hristo Deshev 77838ae9c6 Change from "classic" TS 1.6 imports to the default resolution scheme.
- Use relative imports in place of most of our absolute ones.
- Add "private" ambient modules for modules that we need to import using
an absolute path (e.g. when app/.../test-something.ts needs to import
ui/styling/style-scope)
2015-09-29 16:25:49 +03:00

21 lines
769 B
TypeScript

//@private
declare module "ui/styling/style-scope" {
import view = require("ui/core/view");
import cssSelector = require("ui/styling/css-selector");
import cssParser = require("css");
export class StyleScope {
public css: string;
public addCss(cssString: string, cssFileName: string): void;
public static createSelectorsFromCss(css: string, cssFileName: string): cssSelector.CssSelector[];
public static createSelectorsFromImports(tree: cssParser.SyntaxTree): cssSelector.CssSelector[];
public ensureSelectors();
public applySelectors(view: view.View): void
public getVisualStates(view: view.View): Object;
}
export function applyInlineSyle(view: view.View, style: string): void;
}