@types/fbjs
Version:
TypeScript definitions for fbjs
15 lines (12 loc) • 349 B
TypeScript
/**
* Hyphenates a camelcased string, for example:
*
* > hyphenate('backgroundColor')
* < "background-color"
*
* For CSS style names, use `hyphenateStyleName` instead which works properly
* with all vendor prefixes, including `ms`.
*/
declare function hyphenate(str: string): string;
declare namespace hyphenate {}
export = hyphenate;