Use more specific enums types where previously using number #1198

Closed
NickGerleman wants to merge 1 commits from export-D42265824 into main
NickGerleman commented 2022-12-28 02:24:10 -08:00 (Migrated from github.com)

Summary: The Yoga JS bindings converted a previous Flow type directly to TypeScript. The enum types we expose are safer than accepting raw ordinal numbers, and we should replace the places in the typings where an ordinal was accepted instead of the specific type.

Differential Revision: D42265824

Summary: The Yoga JS bindings converted a previous Flow type directly to TypeScript. The enum types we expose are safer than accepting raw ordinal numbers, and we should replace the places in the typings where an ordinal was accepted instead of the specific type. Differential Revision: D42265824
facebook-github-bot commented 2022-12-28 02:24:38 -08:00 (Migrated from github.com)

This pull request was exported from Phabricator. Differential Revision: D42265824

This pull request was **exported** from Phabricator. Differential Revision: [D42265824](https://www.internalfb.com/diff/D42265824)
facebook-github-bot commented 2022-12-29 09:07:27 -08:00 (Migrated from github.com)

This pull request was exported from Phabricator. Differential Revision: D42265824

This pull request was **exported** from Phabricator. Differential Revision: [D42265824](https://www.internalfb.com/diff/D42265824)
facebook-github-bot commented 2022-12-29 09:12:34 -08:00 (Migrated from github.com)

This pull request was exported from Phabricator. Differential Revision: D42265824

This pull request was **exported** from Phabricator. Differential Revision: [D42265824](https://www.internalfb.com/diff/D42265824)
facebook-github-bot commented 2022-12-30 14:22:54 -08:00 (Migrated from github.com)

This pull request has been merged in facebook/yoga@9fe1e77274.

This pull request has been merged in facebook/yoga@9fe1e772749d1320cc1a0d9cc06334e502faa1f6.

Pull request closed

Sign in to join this conversation.
No description provided.