Files
NativeScript/css/reworkcss.d.ts
Hristo Deshev 38f243de5c Move css and css-value modules to the toplevel.
This is the default location when installing from npm, and Angular uses
that when parsing CSS.

Updated module paths, requires, csproj, tsconfig and grunt tasks.
2015-08-03 12:01:09 +03:00

32 lines
666 B
TypeScript

declare module "css" {
export interface Position {
start: { line: number; column: number };
end: { line: number; column: number };
}
export interface Node {
type: string;
position: Position;
}
export interface Declaration extends Node {
property: string;
value: string;
}
export interface Rule extends Node {
selectors: string[];
declarations: Declaration[];
}
export interface StyleSheet {
rules: Rule[];
}
export interface SyntaxTree {
stylesheet: StyleSheet;
}
export function parse(css: string, options: any): SyntaxTree;
}