UNPKG
@scinorandex/sparse
Version:
latest (0.0.2)
0.0.2
0.0.1
Yet another parser generator
@scinorandex/sparse
/
dist
/
utils
/
Result.d.ts
10 lines
(9 loc)
•
183 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{
GrammarToken
}
from
"src/grammarParser"
;
export
type
Result
<T> = {
success
:
true
;
value
: T; } | {
success
:
false
;
reason
:
string
;
token
:
GrammarToken
; };