flowscript

1.1.0 • Public • Published

flowscript

Optionally typed Javascript using flowtype.

Usage

// @flow
 
let another = require('./another.fs')
let ignored = require('./ignored.js')
let string = require('magic-string')
 
function add(num1: number, num2: number): number {
  return num1 + num2;
}
var x: number = add(3, 4);
console.log(x);
fs index.fs
// => 7

Features

  • Deals with the flowtype boilerplate so you can just use the language
  • Dynamic typechecking based on your actual dependencies
  • Faster type stripping using same technique buble uses
  • Opt-in to flowscript using .fs

Installation

npm install flowscript

Readme

Keywords

none

Package Sidebar

Install

npm i flowscript

Weekly Downloads

7

Version

1.1.0

License

none

Last publish

Collaborators

  • mattmueller