Skip to content

Highlight broken when using flow generic types #20

Description

@miuirussia

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;
`;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions