From 6a354c277c81b02b2a9db9334af051948cfeb597 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Mon, 21 Dec 2020 23:55:54 +0100 Subject: [PATCH] Set API response as per Shlink v2 --- src/utils/services/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/services/types.ts b/src/utils/services/types.ts index 9f5f9225..36f2fe82 100644 --- a/src/utils/services/types.ts +++ b/src/utils/services/types.ts @@ -86,7 +86,7 @@ interface InvalidArgumentError extends ProblemDetailsError { interface InvalidShortUrlDeletion extends ProblemDetailsError { type: 'INVALID_SHORTCODE_DELETION'; - threshold?: number; + threshold: number; } export const isInvalidArgumentError = (error?: ProblemDetailsError): error is InvalidArgumentError =>