Skip to content
New issue

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

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

Already on GitHub? # to your account

Generic parameters with extend keyword break all subsequent tokenization #695

Closed
infctr opened this issue Dec 12, 2018 · 0 comments
Closed

Comments

@infctr
Copy link

infctr commented Dec 12, 2018

TS and JS Grammar Extension version: 0.0.47 / latest

❯ code-insiders -v
1.30.0-insider
85f805acf9436381b878cab5ab6c5146beec7893
x64

Code

export type bindActionsToPayloadReturns = <A, M extends ActionCreatorsMapObject<A>>(
  actionCreators: M,
  dispatch: Dispatch
) => ActionsWithPromises<M>;

export const bindActions = bindActionCreators as bindActionsToPayloadReturns;

The token definitely has to be keyword.control.export.ts. The following code is okay

export type bindActionsToPayloadReturns = <A, M>(
  actionCreators: M,
  dispatch: Dispatch
) => ActionsWithPromises<M>;

export const bindActions = bindActionCreators as bindActionsToPayloadReturns;

dec-12-2018 23-23-00

image

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant