From 5505d3f11f1d64d60074111c309401f7dd03850f Mon Sep 17 00:00:00 2001 From: Gertjan Reynaert Date: Mon, 11 Mar 2019 09:25:59 +0100 Subject: [PATCH] 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. --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 889d1095..5f1166e8 100644 --- a/index.d.ts +++ b/index.d.ts @@ -102,7 +102,7 @@ export interface ClipProps { clipPath?: string } -VectorEffectProps { +interface VectorEffectProps { vectorEffect?: "none" | "non-scaling-stroke" | "nonScalingStroke" | "default" | "inherit" | "uri"; }