mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
666 B
TypeScript
18 lines
666 B
TypeScript
import Typography from 'typography';
|
|
|
|
const typography = new Typography({
|
|
baseFontSize: '18px',
|
|
baseLineHeight: 1.45,
|
|
headerFontFamily: ['Avenir Next', 'Helvetica Neue', 'Segoe UI', 'Helvetica', 'Arial', 'sans-serif'],
|
|
bodyFontFamily: ['Georgia', 'serif']
|
|
});
|
|
|
|
typography.createStyles(); // $ExpectType string
|
|
typography.toJSON(); // $ExpectType object
|
|
typography.options; // $ExpectType TypographyOptions
|
|
typography.rhythm(2); // $ExpectType string
|
|
typography.scale(2 / 5); // $ExpectType BaseLine
|
|
typography.adjustFontSizeTo(); // $ExpectType object
|
|
typography.linesForFontSize(1); // $ExpectType number
|
|
typography.establishBaseline(); // $ExpectType BaseLine
|