wxml
Version:
wxml parser and serializer.
18 lines (14 loc) • 325 B
text/typescript
/**
* @since 20180808 10:56
* @author vivaxy
*/
import NODE_TYPES from '../types/node-types';
export default abstract class BaseNode {
public type: NODE_TYPES;
public parentNode: BaseNode | null;
constructor(type: NODE_TYPES) {
this.type = type;
this.parentNode = null;
}
abstract toJSON(): Object;
}