We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7290507 commit 4b1fdd0Copy full SHA for 4b1fdd0
src/parser.ts
@@ -1,10 +1,5 @@
1
import type { Either, Right } from '@matt.kantor/either'
2
3
-export type Success<Output> = {
4
- readonly remainingInput: string
5
- readonly output: Output
6
-}
7
-
8
export type InvalidInputError = {
9
readonly input: string
10
readonly message: string
@@ -17,3 +12,8 @@ export type Parser<Output> = (
17
12
export type ParserWhichAlwaysSucceeds<Output> = (
18
13
input: string,
19
14
) => Right<Success<Output>>
15
+
16
+export type Success<Output> = {
+ readonly remainingInput: string
+ readonly output: Output
+}
0 commit comments