1.1.0 • Published 8 years ago

flowscript v1.1.0

Weekly downloads
12
License
-
Repository
-
Last release
8 years ago

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