diff --git a/index.d.ts b/index.d.ts index 30e2e337..73f0ff18 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,11 +1,6 @@ type Orientation = 'portrait' | 'landscape'; export type Breakpoints = Record; -export type Options = { - breakpoints?: Breakpoints; - errorPrefix?: string; -}; - declare enum DefaultBreakpoints { xs = 'xs', sm = 'sm', @@ -36,7 +31,11 @@ export interface DefaultStyledBreakpointsTheme { }; } -declare function createStyledBreakpointsTheme({ - breakpoints, - errorPrefix, -}: Options): DefaultStyledBreakpointsTheme; +interface Options { + breakpoints?: Breakpoints; + errorPrefix?: string; +} + +declare function createStyledBreakpointsTheme( + options: Options +): DefaultStyledBreakpointsTheme;