Published inFlowNew type casting syntax for Flow: “as”To make it easier for new users to get started with Flow, we’re updating our type casting syntax to use “as”, like TypeScript, Hack, Swift…Feb 6, 2024Feb 6, 2024
Published inFlowImproved Flow Docs and Try FlowWe’ve refreshed our documentation, and added the ability to configure options and lints in Try Flow!Sep 19, 2023Sep 19, 2023
Published inFlowAnnouncing 5 new Flow tuple type featuresLabeled tuple elements, read-only tuples, optional tuple elements, tuple spread, and more.Aug 17, 2023A response icon1Aug 17, 2023A response icon1
Published inFlowAnnouncing Partial & Required Flow utility types + catch annotationsStarting in Flow version 0.201, make an object type’s fields all optional using Partial<ObjType> (use instead of the unsafe $Shape), and…Mar 15, 2023Mar 15, 2023
Published inFlowExact object types by default, by defaultWe announced 5 years ago a plan to eventually make exact object types the default. We are now proceeding with this plan. Starting with Flow…Feb 16, 2023A response icon2Feb 16, 2023A response icon2
Published inFlowImproved handling of the empty object in FlowFlow handled the empty object literal {} in a permissive but unsafe way. The fix increases safety and predictability, but requires using…Oct 20, 2022Oct 20, 2022
Published inFlowTypeScript Enums vs. Flow EnumsThe Flow team recently announced Flow Enums, a new language feature from Flow. If you’re familiar with TypeScript, you might be wondering…Sep 13, 2021Sep 13, 2021
Published inFlowIntroducing Flow EnumsAs announced in an earlier post, Flow will be introducing new language features. The first one is Flow Enums, an opt-in feature which…Sep 13, 2021A response icon1Sep 13, 2021A response icon1
Published inFlowIntroducing Flow Indexed Access TypesIndexed Access Types are a new type annotation syntax that allows you to get the type of a property from an object, array, or tuple type.Jul 21, 2021A response icon1Jul 21, 2021A response icon1