vim-js icon indicating copy to clipboard operation
vim-js copied to clipboard

Highlight broken when using flow generic types

Open miuirussia opened this issue 4 years ago • 1 comments
trafficstars

image

const pick = <O: Object, K: { [string]: 0 }>(obj: O, ks: K): $Pick<O, K> => {
  const result: any = {};
  const keys = Object.keys(ks);
  for (let i = 0, n = keys.length; i < n; i++) {
    const key = keys[i];
    result[key] = obj[key];
  }
  return result;
};

const FormRow = styled.div`
`;

const FormCaption = ({ children }) => (
  <FormCaptionInner>
    <strong>{children}</strong>
  </FormCaptionInner>
);

const FormCaptionInner = styled.div`
  text-align: right;
`;

miuirussia avatar Jul 02 '21 09:07 miuirussia

It's a valid issue, will try to fix it later.

yuezk avatar Jul 04 '21 12:07 yuezk