From c2a14bc6c4b9a9f47612c659e1d458cc8c5197ac Mon Sep 17 00:00:00 2001 From: Duc Anh Phi <> Date: Tue, 22 Aug 2023 18:04:36 +0200 Subject: [PATCH] fix linting --- source/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/index.ts b/source/index.ts index 284a16d..ec1df8f 100644 --- a/source/index.ts +++ b/source/index.ts @@ -804,7 +804,7 @@ function unique(values: T[]): T[] { function typeErrorMessageMultipleValues(expectedType: AssertionTypeDescription | AssertionTypeDescription[], values: unknown[]): string { const uniqueExpectedTypes = unique((isArray(expectedType) ? expectedType : [expectedType]).map(value => `\`${value}\``)); const uniqueValueTypes = unique(values.map(value => `\`${is(value)}\``)); - return `Expected values which are ${uniqueExpectedTypes.join(", ")}. Received values of type${uniqueValueTypes.length > 1 ? 's' : ''} ${uniqueValueTypes.join(", ")}.`; + return `Expected values which are ${uniqueExpectedTypes.join(', ')}. Received values of type${uniqueValueTypes.length > 1 ? 's' : ''} ${uniqueValueTypes.join(', ')}.`; } // Type assertions have to be declared with an explicit type.