@angular/compiler
Version:
Angular - the compiler library
20 lines (19 loc) • 700 B
TypeScript
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Parses string representation of a style and converts it into object literal.
*
* @param value string representation of style as used in the `style` attribute in HTML.
* Example: `color: red; height: auto`.
* @returns an object literal. `{ color: 'red', height: 'auto'}`.
*/
export declare function parseStyle(value: string): {
[key: string]: any;
};
export declare function stripUnnecessaryQuotes(value: string): string;
export declare function hyphenate(value: string): string;