Last active
June 28, 2017 13:33
-
-
Save sebcode/c691dbc1d3d00f541cfe80615026817d to your computer and use it in GitHub Desktop.
testfile for vim-javascript/misc-flow-fixes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// [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' | |
// ^^^^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pangloss/vim-javascript#991