diff --git a/src/index.ts b/src/index.ts index 2fb8d40..ba01466 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1301,7 +1301,7 @@ export function tsPlugin(options?: { ) { this.raise( pattern.start, - TypeScriptError.UnsupportedSignatureParameterKind(pattern.type) + TypeScriptError.UnsupportedSignatureParameterKind({ type: pattern.type }) ); } return pattern as any;