UNPKG
@felisdiligens/md-table-tools
Version:
latest (0.2.0)
0.2.0
0.1.3
0.1.2
0.1.1
0.1.0
MultiMarkdown table tools
@felisdiligens/md-table-tools
/
src
/
tables
/
tableParser.ts
14 lines
(11 loc)
•
307 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
{
Table
}
from
"./table.js"
;
export
class
ParsingError
extends
Error
{
constructor
(
msg
:
string
) {
super
(msg);
// Set the prototype explicitly.
Object
.
setPrototypeOf
(
this
,
ParsingError
.
prototype
); } }
export
interface
TableParser
{
parse
(
table
:
string
):
Table
; }