🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
38
node_modules/style-to-object/index.d.ts
generated
vendored
Normal file
38
node_modules/style-to-object/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
/**
|
||||
* Parses inline style to object.
|
||||
*
|
||||
* @example
|
||||
* import StyleToObject from 'style-to-object';
|
||||
* StyleToObject('line-height: 42;');
|
||||
*/
|
||||
declare function StyleToObject(
|
||||
style: string,
|
||||
iterator?: StyleToObject.Iterator
|
||||
): { [name: string]: string } | null;
|
||||
|
||||
export = StyleToObject;
|
||||
|
||||
declare namespace StyleToObject {
|
||||
interface DeclarationPos {
|
||||
line: number;
|
||||
column: number;
|
||||
}
|
||||
|
||||
// declaration is an object from module `inline-style-parser`
|
||||
interface Declaration {
|
||||
type: string;
|
||||
property: string;
|
||||
value: string;
|
||||
position: {
|
||||
start: DeclarationPos;
|
||||
end: DeclarationPos;
|
||||
source: any;
|
||||
};
|
||||
}
|
||||
|
||||
type Iterator = (
|
||||
property: string,
|
||||
value: string,
|
||||
declaration: Declaration
|
||||
) => void;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue