All Projects → Kiikurage → Babel Plugin Flow To Typescript

Kiikurage / Babel Plugin Flow To Typescript

Licence: mit
Babel plugin to convert Flow code into TypeScript

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects
flow
126 projects

Labels

Projects that are alternatives of or similar to Babel Plugin Flow To Typescript

Book
《现代化前端工程师权威指南》https://guoyongfeng.github.io/book/
Stars: ✭ 141 (-9.62%)
Mutual labels:  babel
Breko Hub
Babel React Koa Hot Universal Boilerplate
Stars: ✭ 145 (-7.05%)
Mutual labels:  babel
Webpack Babel Multi Target Plugin
A Webpack plugin that works with Babel to allow differential loading - production deployment of ES2015 builds targeted to modern browsers, with an ES5 fallback for legacy browsers.
Stars: ✭ 150 (-3.85%)
Mutual labels:  babel
Project Webcube
Continuously updated JS infrastructure for modern web dev
Stars: ✭ 141 (-9.62%)
Mutual labels:  babel
React Starter Kit
完美使用 React, Redux, and React-Router!超好用的脚手架
Stars: ✭ 1,755 (+1025%)
Mutual labels:  babel
Koa Restful Boilerplate
Koa 2 RESTful API boilerplate
Stars: ✭ 146 (-6.41%)
Mutual labels:  babel
Glup
Some of the gulp tutorial -《gulp笔记》
Stars: ✭ 136 (-12.82%)
Mutual labels:  babel
Babel Plugin Lodash
Modular Lodash builds without the hassle.
Stars: ✭ 1,903 (+1119.87%)
Mutual labels:  babel
Js Stack Boilerplate
Final boilerplate code of the JavaScript Stack from Scratch tutorial –
Stars: ✭ 145 (-7.05%)
Mutual labels:  babel
Generator Phaser Plus
[🛑 DISCONTINUED] It has been a long journey but development of `generator-phaser-plus` is now over. I recommend you have a look and fork `yandeu/phaser-project-template` instead.
Stars: ✭ 148 (-5.13%)
Mutual labels:  babel
Babel Plugin Transform Typescript Metadata
Babel plugin to emit decorator metadata like typescript compiler
Stars: ✭ 142 (-8.97%)
Mutual labels:  babel
Iceberg
Front-End Boilerplate built with React + Babel + Webpack + SASS
Stars: ✭ 144 (-7.69%)
Mutual labels:  babel
Keepformac
keep for mac
Stars: ✭ 147 (-5.77%)
Mutual labels:  babel
Frr
The FRRouting Protocol Suite
Stars: ✭ 2,009 (+1187.82%)
Mutual labels:  babel
Lighthouse Badges
🚦Generate badges (shields.io) based on Lighthouse performance.
Stars: ✭ 150 (-3.85%)
Mutual labels:  babel
Kickup
🚚 Boilerplate for your perfect front-end environment (utilizing Gulp.js, Babel, and more)
Stars: ✭ 139 (-10.9%)
Mutual labels:  babel
Swc
swc is a super-fast compiler written in rust; producing widely-supported javascript from modern standards and typescript.
Stars: ✭ 18,627 (+11840.38%)
Mutual labels:  babel
Webpack Encore
A simple but powerful API for processing & compiling assets built around Webpack
Stars: ✭ 1,975 (+1166.03%)
Mutual labels:  babel
Babel Plugin Webpack Alias
babel 6 plugin which allows to use webpack resolve options
Stars: ✭ 151 (-3.21%)
Mutual labels:  babel
React Itunes Search
🎵Simple web app for itunes search with React
Stars: ✭ 147 (-5.77%)
Mutual labels:  babel

babel-plugin-flow-to-typescript

Babel plugin to convert Flow code into TypeScript

How to use

$ npm install -g @babel/cli @babel/core
$ npm install babel-plugin-flow-to-typescript

# you must use [email protected]^7.x.x
$ babel --version
7.4.4 (@babel/core 7.4.5)

$ babel --plugins babel-plugin-flow-to-typescript ${SRC_FLOW_FILE} -o ${DEST_TS_FILE}

Implementation status

Supported? Syntax Flow TypeScript
Maybe type let a:?number let a: number | null | undefined
Void type void void
Object type Object object
Mixed type mixed unknown
Function type (A, B) => C (x1: A, x2: B) => C
Exact type {| a: A |} { a: A }
Indexers { [A]: B } { [a: A]: B }
Existential type Map<*, *> Map<any, any>
Opaque types opaque type A = B type A = B
Variance interface A { +b: B, -c: C } interface A { readonly b: B, c: C }
Type parameter bounds function f<A: string>(a:A){} function f<A extends string>(a:A){}
Cast (a: A) (a as A)
type/typeof import import type A from 'module' import A from 'module'
$Keys $Keys<X> keyof X
$Values $Values<X> X[keyof X]
$ReadOnly $Readonly<X> Readonly<X>
$Exact $Exact<X> X
$Diff $Diff<X, Y> Pick<X, Exclude<keyof X, keyof Y>>
$PropertyType $PropertyType<T, k> T[k]
$ElementType $ElementType<T, k> T[k]
$Shape $Shape<T> Partial<T>
Class Class<T> typeof T
typeof operator typeof foo typeof foo
JSX - -
Tuple type [number, string] [number, string]
Type alias type A = string type A = string
Flow Ignore $FlowFixMe any
Interfaces interface X { +prop: string } interface X { readonly prop: string }
Optional Members a?.b ...
Declare functions declare function x(false): true; function x(x0: false): true;
Declare Class ... ...
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].