Skip to content

Commit

Permalink
feat: Add types for convertors
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 committed Mar 8, 2019
1 parent 4d01702 commit 3ed4f44
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,8 @@ export function generateMedia<Breakpoints = DefaultBreakpoints, Theme = any>(
declare const media: MediaGenerator<DefaultBreakpoints, any>

export default media

// Convertors --

export function pxToEm<B>(breakpoints: B, ratio?: number): B
export function pxToRem<B>(breakpoints: B, ratio?: number): B

0 comments on commit 3ed4f44

Please sign in to comment.