mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00

Add dev-setup to figure out links Update development workflow Update package.json and dts-ios Update the iOS declarations grunt is now fine
36 lines
775 B
TypeScript
36 lines
775 B
TypeScript
declare module "css" {
|
|
export interface Position {
|
|
start: { line: number; column: number };
|
|
end: { line: number; column: number };
|
|
}
|
|
|
|
export interface Node {
|
|
type: "rule" | "keyframes" | "declaration" | "import";
|
|
position: Position;
|
|
}
|
|
|
|
export interface Declaration extends Node {
|
|
property: string;
|
|
value: string;
|
|
}
|
|
|
|
export interface Rule extends Node {
|
|
selectors: string[];
|
|
declarations: Node[];
|
|
}
|
|
|
|
export interface Keyframes extends Rule {
|
|
name: string;
|
|
}
|
|
|
|
export interface StyleSheet {
|
|
rules: Node[];
|
|
}
|
|
|
|
export interface SyntaxTree {
|
|
stylesheet: StyleSheet;
|
|
}
|
|
|
|
export function parse(css: string, options: any): SyntaxTree;
|
|
}
|