Skip to content

Expose TypographyKeys #2715

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export {default as Colors} from './colors';
export {default as DesignTokens} from './designTokens';
export {default as DesignTokensDM} from './designTokensDM';
export {default as Scheme, SchemeType, Schemes, SchemeChangeListener} from './scheme';
export {default as Typography} from './typography';
export {default as Typography, TypographyKeys} from './typography';
export {default as BorderRadiuses} from './borderRadiuses';
export {default as Shadows} from './shadows';
export {default as Spacings} from './spacings';
Expand Down
3 changes: 2 additions & 1 deletion src/style/typography.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import {TextStyle} from 'react-native';
import _ from 'lodash';
import Constants from '../commons/Constants';

import TypographyPresets from './typographyPresets';
import TypographyPresets, {TypographyKeys} from './typographyPresets';
export type {TypographyKeys};
import type {Dictionary, ExtendTypeWith} from '../typings/common';

type MeasureTextTypography = TextStyle & {allowFontScaling?: boolean};
Expand Down
2 changes: 1 addition & 1 deletion src/style/typographyPresets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const text100: TextStyle = {
fontFamily: 'System'
};

type TypographyKeys = Record<
export type TypographyKeys = Record<
| 'text10'
| 'text20'
| 'text30'
Expand Down