-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.ts
25 lines (18 loc) · 875 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { Mixin } from 'ts-mixer';
import { always } from 'ramda';
import ExampleElement from '../../../../elements/Example';
import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor';
import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor';
export interface ExampleVisitorOptions extends MapVisitorOptions, FallbackVisitorOptions {}
class ExampleVisitor extends Mixin(MapVisitor, FallbackVisitor) {
public declare readonly element: ExampleElement;
protected declare readonly specPath: SpecPath<['value']>;
protected declare readonly canSupportSpecificationExtensions: false;
constructor(options: ExampleVisitorOptions) {
super(options);
this.element = new ExampleElement();
this.specPath = always(['value']);
this.canSupportSpecificationExtensions = false;
}
}
export default ExampleVisitor;