Fix typescript error in index.d.ts

When upgrading to react-native-svg 9.3.1 I got these error messages in Typescript

```
node_modules/react-native-svg/index.d.ts:105:19 - error TS1005: ';' expected.

105 VectorEffectProps {
                      ~

node_modules/react-native-svg/index.d.ts:106:16 - error TS1109: Expression expected.

106   vectorEffect?: "none" | "non-scaling-stroke" | "nonScalingStroke" | "default" | "inherit" | "uri";
                   ~


Found 2 errors.
```

It seems to me that this was caused by forgetting to add the `interface` keyword before `VectorEffectProps`.

This pr fixes that.
This commit is contained in:
Gertjan Reynaert
2019-03-11 09:25:59 +01:00
committed by GitHub
parent 84e6f2402c
commit 5505d3f11f
Vendored
+1 -1
View File
@@ -102,7 +102,7 @@ export interface ClipProps {
clipPath?: string
}
VectorEffectProps {
interface VectorEffectProps {
vectorEffect?: "none" | "non-scaling-stroke" | "nonScalingStroke" | "default" | "inherit" | "uri";
}