refactor: Tag class support in registerTag()

This commit is contained in:
Jun Yang
2022-11-27 14:04:01 +08:00
parent 1f6ce7c822
commit 92992689cd
145 changed files with 694 additions and 768 deletions
+4
View File
@@ -0,0 +1,4 @@
export * from './emitter'
export * from './simple-emitter'
export * from './streamed-emitter'
export * from './keeping-type-emitter'
+2 -2
View File
@@ -1,5 +1,5 @@
import { stringify, toValue } from '../util/underscore'
import { Emitter } from '../types'
import { stringify, toValue } from '../util'
import { Emitter } from './emitter'
export class KeepingTypeEmitter implements Emitter {
public buffer: any = '';
+1 -1
View File
@@ -1,4 +1,4 @@
import { stringify } from '../util/underscore'
import { stringify } from '../util'
import { Emitter } from './emitter'
export class SimpleEmitter implements Emitter {
+1 -1
View File
@@ -1,4 +1,4 @@
import { stringify } from '../util/underscore'
import { stringify } from '../util'
import { Emitter } from './emitter'
import { PassThrough } from 'stream'