mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-27 18:10:32 +00:00
* autogenerate files * add strictFunctionTypes * create type definitions for typography.js * add type tests * use pascal case instead of camel case
13 lines
410 B
TypeScript
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
|