mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00

- 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)
21 lines
769 B
TypeScript
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;
|
|
}
|