buildo / react-placeholder

A React component to easily replicate your page with nice placeholders while the content is loading
MIT License
1.61k stars 97 forks source link

index.d.ts missing 'style' property #67

Closed don-p closed 6 years ago

don-p commented 6 years ago

The index.d.ts typescript definition file is missing the 'style' property, in ReactPlaceholderProps. As a result, using 'style' in the ReactPlaceholder component causes TypeScript compilation to fail. This means the examples as shown will not compile in TypeScript.

'style' needs to be added as an optional property in ReactPlaceholderProps.