Skip to content

Commit

Permalink
Fixed return type annotation on calculateFontMetrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnavion committed Sep 22, 2016
1 parent 41d8516 commit 21cf48a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderers/web/font-size.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function fontMetricsFromLineHeights(lowerLineHeight: number, upperLineHeight: nu
* @param {string} fontFamily
* @param {string} fallbackFonts
* @param {!HTMLDivElement} fontSizeElement
* @return {!Promise.<number>}
* @return {!Promise.<[number, number]>}
*/
export function calculateFontMetrics(fontFamily: string, fallbackFonts: string, fontSizeElement: HTMLDivElement): Promise<[number, number]> {
return lineHeightForFontSize(fontFamily, 180, fallbackFonts, fontSizeElement).then(lowerLineHeight =>
Expand Down

0 comments on commit 21cf48a

Please sign in to comment.