🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
34
node_modules/emmet/dist/stylesheet/snippets.d.ts
generated
vendored
Normal file
34
node_modules/emmet/dist/stylesheet/snippets.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
import type { CSSValue, FunctionCall, Literal } from '@emmetio/css-abbreviation';
|
||||
export type CSSSnippet = CSSSnippetRaw | CSSSnippetProperty;
|
||||
interface KeywordMap {
|
||||
[name: string]: FunctionCall | Literal;
|
||||
}
|
||||
export declare const enum CSSSnippetType {
|
||||
Raw = "Raw",
|
||||
Property = "Property"
|
||||
}
|
||||
interface CSSSnippetBase {
|
||||
type: CSSSnippetType;
|
||||
key: string;
|
||||
}
|
||||
export interface CSSSnippetRaw extends CSSSnippetBase {
|
||||
type: CSSSnippetType.Raw;
|
||||
value: string;
|
||||
}
|
||||
export interface CSSSnippetProperty extends CSSSnippetBase {
|
||||
type: CSSSnippetType.Property;
|
||||
property: string;
|
||||
value: CSSValue[][];
|
||||
keywords: KeywordMap;
|
||||
dependencies: CSSSnippetProperty[];
|
||||
}
|
||||
/**
|
||||
* Creates structure for holding resolved CSS snippet
|
||||
*/
|
||||
export default function createSnippet(key: string, value: string): CSSSnippet;
|
||||
/**
|
||||
* Nests more specific CSS properties into shorthand ones, e.g.
|
||||
* `background-position-x` -> `background-position` -> `background`
|
||||
*/
|
||||
export declare function nest(snippets: CSSSnippet[]): CSSSnippet[];
|
||||
export {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue