@financial-times/n-flow-ft-content

1.0.2 • Public • Published

n-flow-ft-content

Flow type definition for a piece of FT content, as represented in Elastic Search. Automatically generated on publish from the ES mappings.

Usage

npm install @financial-times/n-flow-ft-content, then in a Flow-activated repo you can import type {FtItem} from '@financial-times/n-flow-ft-content'.

Using Flow in your project

Add flow-bin as a dependency of your project. Create an empty .flowconfig file at the root of your project (e.g. by running flow init).

If you don't want to introduce a build step for your code, use the Flow comment syntax. Otherwise, install either babel-preset-flow or flow-remove-types and add it to your build process.

Run flow check as part of your CI tests, and maybe in a precommit hook. Encourage your developers to add a Flow integration to their editor.

Atom

Install atom-ide-ui and ide-flowtype. Alternatively, you could install the whole of Nuclide.

VS Code

Install Flow Language Support or vscode-flow-ide.

Sublime Text

Install FlowIDE, and optionally SublimeLinter-flow and the Babel syntax highlighting.

Other editors

https://flow.org/en/docs/editors/

Licence

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @financial-times/n-flow-ft-content

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • robertboulton
  • seraph2000
  • hamza.samih
  • notlee
  • emmalewis
  • aendra
  • the-ft
  • rowanmanning
  • chee
  • alexwilson