Kevin Amiranoff
Kevin Amiranoff

Reputation: 14523

Strange visual wrapping of spread argument in WebStorm with TypeScript

This is only a visual issue.

The ...rest argument gets wrapped in 3 different lines in WebStorm with TypeScript.

This is a sample of the code :

import React, { FC } from 'react';
import { View } from 'react-native';
import { MarkerProps } from 'react-native-maps';

export interface ITeddyMarkerDraggable extends MarkerProps {
}

const TeddyMarkerDraggable: FC<ITeddyMarkerDraggable> = ({
  props,
  ...rest,
}) => <View />;

export default TeddyMarkerDraggable;

and a picture to illustrate the issue: enter image description here

What do the grey arrows represent and which setting could I play around to help with the issue?

Upvotes: 0

Views: 41

Answers (1)

lena
lena

Reputation: 93868

Submitted to developers, please follow WEB-44657 for updates

Upvotes: 1

Related Questions