Skip to content

Commit 4b1fdd0

Browse files
committed
Alphabetize parser.ts
1 parent 7290507 commit 4b1fdd0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/parser.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import type { Either, Right } from '@matt.kantor/either'
22

3-
export type Success<Output> = {
4-
readonly remainingInput: string
5-
readonly output: Output
6-
}
7-
83
export type InvalidInputError = {
94
readonly input: string
105
readonly message: string
@@ -17,3 +12,8 @@ export type Parser<Output> = (
1712
export type ParserWhichAlwaysSucceeds<Output> = (
1813
input: string,
1914
) => Right<Success<Output>>
15+
16+
export type Success<Output> = {
17+
readonly remainingInput: string
18+
readonly output: Output
19+
}

0 commit comments

Comments
 (0)