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