From 73cee2deb66bce2e9de19e7b142dd3e48c5af1cc Mon Sep 17 00:00:00 2001 From: Yang Liu Date: Mon, 9 Dec 2019 15:38:09 -0800 Subject: [PATCH] no need to add overloading --- index.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/index.ts b/index.ts index 919b901..a353c40 100644 --- a/index.ts +++ b/index.ts @@ -159,12 +159,6 @@ export class Decoder implements ICaster { } /** @since 1.7.0 */ - decode(typeName: string, data: unknown, onError?: (errors: string[]) => void): T | undefined; - decode( - genericType: GenericType, - data: unknown, - onError?: (errors: string[]) => void, - ): T | undefined; decode( typeArg: string | GenericType, data: unknown,