HomePhabricator
Diffusion Comm 6e7b8508c797

[lib] Update `MinimallyEncoded*Info` types to be `$ReadOnly`

Description

[lib] Update MinimallyEncoded*Info types to be $ReadOnly

Summary:
Updated the MinimallyEncoded*Info types to be $ReadOnly since spreading the "base" types drops the "read only" property and makes them writable... which caused some Flow issues.

Also going ahead and adding minimallyEncoded discriminator property to all of the types as we did for MinimallyEncodedRawThreadInfo in D9766 to help Flow refine types.

Test Plan: Flow, updated unit tests

Reviewers: ashoat, ginsu, tomek, rohan

Reviewed By: tomek

Subscribers: wyilio

Differential Revision: https://phab.comm.dev/D9788

Details

Provenance
atulAuthored on Nov 9 2023, 11:56 AM
Reviewer
tomek
Differential Revision
D9788: [lib] Update `MinimallyEncoded*Info` types to be `$ReadOnly`
Parents
rCOMM6609133ca9dd: [lib] Use `RawThreadInfos` type everywhere
Branches
Unknown
Tags
Unknown