From b0a921e70b341b83efbae12ef927af763a4dd7ca Mon Sep 17 00:00:00 2001 From: Arturas Date: Tue, 12 Mar 2019 21:18:03 +0000 Subject: [PATCH] remove varargs from std serialiser --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 7dff9dd..7ca7037 100644 --- a/src/index.ts +++ b/src/index.ts @@ -22,8 +22,8 @@ const ERR_NOT_A_METHOD = '@Memoise can only decorate methods'; const ROOT: unique symbol = Symbol('@Memoise cache'); -const stdSerialiser: SerFn = function (...args: any[]): string { - return JSON.stringify(args); +const stdSerialiser: SerFn = function (): string { + return JSON.stringify(arguments); }; function resolveCache(instance: any, methodSym: symbol): any {