mirror of
https://activitypub.software/TransFem-org/sfm-js
synced 2024-11-21 05:35:10 +00:00
fix types in our difference
function
This commit is contained in:
parent
71857405ae
commit
0a7292ad53
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ export function notMatch(parser: Parser<unknown>): Parser<null> {
|
|||
* @returns A {@link Failure} object if `parserExcluded` succeeds, or if `parserIncluded` fails, and a {@link Success} object
|
||||
* otherwise.
|
||||
*/
|
||||
export function difference(parserIncluded: Parser<unknown>, parserExcluded: Parser<unknown>): Parser<string> {
|
||||
export function difference(parserIncluded: Parser<string>, parserExcluded: Parser<string>): Parser<string> {
|
||||
return new Parser((input, index, state) => {
|
||||
const exclude = parserExcluded.handler(input, index, state);
|
||||
|
||||
|
|
Loading…
Reference in a new issue