Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JS/Flow] Method and class property methods with flow types #119

Closed
Whoaa512 opened this issue Mar 29, 2018 · 4 comments
Closed

[JS/Flow] Method and class property methods with flow types #119

Whoaa512 opened this issue Mar 29, 2018 · 4 comments

Comments

@Whoaa512
Copy link
Contributor

Image

screenshot 2018-03-29 12 21 17

Sample code

// @flow
class Foo {
    otherMethod(items: string[]) {
        return ['baz', 'buz']
    }

    someMethod = (items: string[]) => {
        return ['baz', 'buz']
    }

    getSelectedItems = (): { bar: string[] } => {
        return ['baz', 'buz']
    }

    someMethod = (items: string[]): string[] => {
        return ['baz', 'buz']
    }

    setSelectedItems(items: string[]): string[] {
        return ['baz', 'buz']
    }
}
@borela
Copy link
Owner

borela commented Mar 30, 2018

Fixed https://github.com/borela/naomi/releases/tag/v3.15.5

@borela
Copy link
Owner

borela commented Mar 30, 2018

One thing to remember, it would still have trouble to highlight multiline arrow functions because of a limitation in sublime's regex engine #25.

@borela
Copy link
Owner

borela commented Mar 30, 2018

The patch is on package control.

@borela borela closed this as completed Mar 30, 2018
@Whoaa512
Copy link
Contributor Author

Sweet thank you! Yup still watching that sublime thread for progress on multiline arrows.

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

No branches or pull requests

2 participants