diff options
Diffstat (limited to '')
| -rw-r--r-- | src/index.d.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/index.d.ts b/src/index.d.ts new file mode 100644 index 0000000..fdaab41 --- /dev/null +++ b/src/index.d.ts @@ -0,0 +1,7 @@ +import { Either } from 'fp-ts/Either'; +declare type ParserResult<T> = [T, string]; +declare type ParserError = [string, string]; +declare type Parser<T> = (input: string) => Either<ParserError, ParserResult<T>>; +export declare const p_digit: Parser<string>; +export declare const many0: <T>(p: Parser<T>) => Parser<T[]>; +export {}; |
