You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The use case is flow which warns about inexact spread. My template looks
like this and I need to spread props before any other prop.
```js
const template = (code, options, state) => `
// @flow
// Generated from ${state.filePath}
import * as React from "react";
type Props = {
size?: string | number,
fill?: string
};
const style = {
display: "block",
flex: "0 0 auto",
};
export const ${state.componentName} = ({ size, fill, ...props }: Props) => {
return (
${code}
);
};
`;
```
0 commit comments