Skip to content

Commit

Permalink
fix: fontWeight typings (#42707)
Browse files Browse the repository at this point in the history
Summary:
This PR fixes the typings for `fontWeight` style prop. Flow file has below typings but they were missing in typescript file.

```
  fontWeight?:
    | 'normal'
    | 'bold'
    | '100'
    | '200'
    | '300'
    | '400'
    | '500'
    | '600'
    | '700'
    | '800'
    | '900'
    | 100
    | 200
    | 300
    | 400
    | 500
    | 600
    | 700
    | 800
    | 900
    | 'ultralight'
    | 'thin'
    | 'light'
    | 'medium'
    | 'regular'
    | 'semibold'
    | 'condensedBold'
    | 'condensed'
    | 'heavy'
    | 'black'
    | undefined;
```

## Changelog:

[GENERAL] [ADDED] - Added missing typings for fontWeight style prop.

Pull Request resolved: #42707

Test Plan: Tested manually.

Reviewed By: cortinico

Differential Revision: D53191119

Pulled By: NickGerleman

fbshipit-source-id: 47c00ea81be5aa217d57be0609cfc7bd4e8e6843
  • Loading branch information
ankit-tailor authored and facebook-github-bot committed Jan 30, 2024
1 parent fe337f2 commit fb5f79c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/react-native/Libraries/StyleSheet/StyleSheetTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,25 @@ export interface TextStyle extends TextStyleIOS, TextStyleAndroid, ViewStyle {
| '700'
| '800'
| '900'
| 100
| 200
| 300
| 400
| 500
| 600
| 700
| 800
| 900
| 'ultralight'
| 'thin'
| 'light'
| 'medium'
| 'regular'
| 'semibold'
| 'condensedBold'
| 'condensed'
| 'heavy'
| 'black'
| undefined;
letterSpacing?: number | undefined;
lineHeight?: number | undefined;
Expand Down

0 comments on commit fb5f79c

Please sign in to comment.