Files
Boye Borg 2b9558d869 Type definitions for "typography.js" (#28625)
* autogenerate files

* add strictFunctionTypes

* create type definitions for typography.js

* add type tests

* use pascal case instead of camel case
2018-09-10 16:10:37 -07:00

13 lines
410 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