diff --git a/index.d.ts b/index.d.ts index 8e47897..e666029 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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 { @@ -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;