UNPKG
parser-ts
Version:
latest (0.7.0)
next (0.4.0)
0.7.0
0.6.16
0.6.15
0.6.14
0.6.13
0.6.12
0.6.11
0.6.10
0.6.9
0.6.8
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.1
0.5.0
0.4.3
0.4.2
0.4.1
0.4.0
0.3.0
0.2.1
0.2.0
0.1.0
0.0.2
0.0.1
String parser combinators for TypeScript
github.com/gcanti/parser-ts
gcanti/parser-ts
parser-ts
/
es6
/
code-frame.d.ts
10 lines
(9 loc)
•
288 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{
Either
}
from
'fp-ts/es6/Either'
import
{
Char
}
from
'./char'
import
{
Parser
}
from
'./Parser'
/** * Returns a pretty printed error message using `
@babel
/code-frame` * *
@since
0.6.0 */
export
declare
const
run
: <A>
(
p
:
Parser
<
Char
, A>,
source
:
string
) =>
Either
<
string
, A>