UNPKG
@vivaxy/wxml
Version:
latest (2.1.0)
2.1.0
2.0.3
2.0.2
2.0.1
2.0.0
1.0.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0
0.0.0
🌇WXML parser and serializer.
github.com/vivaxy/WXML
vivaxy/WXML
@vivaxy/wxml
/
lib
/
nodes
/
text.d.ts
15 lines
(14 loc)
•
313 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/** *
@since
20180808 11:15 *
@author
vivaxy
*/
import
BaseNode
from
'./base'
;
import
NODE_TYPES
from
'../types/node-types'
;
export
default
class
TextNode
extends
BaseNode
{
textContent
:
string
;
constructor
(
text
:
string
);
toJSON
(): {
type
:
NODE_TYPES
;
textContent
:
string
; }; }