From 0a7292ad53df0f11f9df13011780df97f59d310d Mon Sep 17 00:00:00 2001 From: dakkar Date: Sat, 29 Jun 2024 09:30:45 +0100 Subject: [PATCH] fix types in our `difference` function --- src/internal/core/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/core/index.ts b/src/internal/core/index.ts index 0a5bec1..3c5c0eb 100644 --- a/src/internal/core/index.ts +++ b/src/internal/core/index.ts @@ -316,7 +316,7 @@ export function notMatch(parser: Parser): Parser { * @returns A {@link Failure} object if `parserExcluded` succeeds, or if `parserIncluded` fails, and a {@link Success} object * otherwise. */ -export function difference(parserIncluded: Parser, parserExcluded: Parser): Parser { +export function difference(parserIncluded: Parser, parserExcluded: Parser): Parser { return new Parser((input, index, state) => { const exclude = parserExcluded.handler(input, index, state);