Skip to content

Commit

Permalink
Refine type
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltaranto committed Jan 30, 2023
1 parent fd9a77f commit 14d3086
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
4 changes: 0 additions & 4 deletions packages/core/src/createFontStack.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
} from './createFontStack';
const merriweatherSans = {
familyName: 'Merriweather Sans',
capHeight: 1486,
ascent: 1968,
descent: -546,
lineGap: 0,
Expand All @@ -14,7 +13,6 @@ const merriweatherSans = {
};
const appleSystem = {
familyName: '-apple-system',
capHeight: 1443,
ascent: 1950,
descent: -420,
lineGap: 0,
Expand All @@ -23,7 +21,6 @@ const appleSystem = {
};
const arial = {
familyName: 'Arial',
capHeight: 1467,
ascent: 1854,
descent: -434,
lineGap: 67,
Expand All @@ -32,7 +29,6 @@ const arial = {
};
const helveticaNeue = {
familyName: 'Helvetica Neue',
capHeight: 714,
ascent: 952,
descent: -213,
lineGap: 28,
Expand Down
8 changes: 1 addition & 7 deletions packages/core/src/createFontStack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,7 @@ export const toCssProperty = (property: string) =>

type FontStackMetrics = Pick<
FontMetrics,
| 'familyName'
| 'ascent'
| 'descent'
| 'capHeight'
| 'lineGap'
| 'unitsPerEm'
| 'xWidthAvg'
'familyName' | 'ascent' | 'descent' | 'lineGap' | 'unitsPerEm' | 'xWidthAvg'
>;

interface OverrideValuesParams {
Expand Down

0 comments on commit 14d3086

Please sign in to comment.