Skip to content

Instantly share code, notes, and snippets.

@sebcode
Last active June 28, 2017 13:33
Show Gist options
  • Save sebcode/c691dbc1d3d00f541cfe80615026817d to your computer and use it in GitHub Desktop.
Save sebcode/c691dbc1d3d00f541cfe80615026817d to your computer and use it in GitHub Desktop.
testfile for vim-javascript/misc-flow-fixes
// [1]
const fetch = (
a: string = '',
b: Object = {},
//^
) => { }
function fetch2(
a: string = '',
b: Object = {},
) {}
// [2]
export type Contacts = Array<Contact>
// ^^^^^
export type Contacts = {
all: Array<Contact>
}
// [3]
const search = () => {
return (dispatch, getState: () => State) => {
const state = getState()
// ^^^^^^^^^^^
}
}
// [4]
const norm = (a: string, b: string) => { }
const norm = (a: string, b: string): Node => { }
// ^
// [5]
export type AAA = { }
import type { BBB } from 'bbb'
// ^^^^
@sebcode
Copy link
Author

sebcode commented Jun 28, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment