Skip to content

Commit

Permalink
fix(index): update return type of main function (remove any)
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Nov 7, 2019
1 parent 2377cb0 commit c6e8a54
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
* @example
* import StyleToObject from 'style-to-object';
* StyleToObject('line-height: 42;');
*
*/

declare function StyleToObject(
style: string,
iterator?: StyleToObject.Iterator
): { [name: string]: any } | null;
): { [name: string]: string } | null;

export = StyleToObject;

declare namespace StyleToObject {
Expand All @@ -19,7 +18,7 @@ declare namespace StyleToObject {
column: number;
}

// declaration is object from module `inline-style-parser`
// declaration is an object from module `inline-style-parser`
interface Declaration {
type: string;
property: string;
Expand Down

0 comments on commit c6e8a54

Please sign in to comment.