From 4aa525754fd64a693d415fe7922b9569461499fc Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Sat, 27 Jul 2019 20:27:41 -0700 Subject: [PATCH] Allow setting params having non-standard type --- lib/device.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/device.ts b/lib/device.ts index 2c76bc6..a42a09b 100644 --- a/lib/device.ts +++ b/lib/device.ts @@ -75,12 +75,6 @@ export function sanitizeParameterValue( } break; default: - if (parameterValue[1] != null) { - throw new Error( - `Parameter value type "${parameterValue[1]}" not recognized.` - ); - } - parameterValue[0] = JSON.parse(JSON.stringify(parameterValue[0])); break; }