mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-09 03:17:58 +00:00
Refine type for activeHandler in DirectiveStreamingParser
This commit is contained in:
parent
d18e110668
commit
7471bd51cf
1 changed files with 2 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ import { ParseContext, CodeBlockState } from "./ParseContext"
|
|||
import { DirectiveRegistryFactory } from "./DirectiveRegistryFactory"
|
||||
import { FallbackParser } from "./FallbackParser"
|
||||
import { XmlUtils } from "./XmlUtils"
|
||||
import { DirectiveHandler } from "./DirectiveHandler"
|
||||
|
||||
export class DirectiveStreamingParser {
|
||||
private static registry = DirectiveRegistryFactory.create()
|
||||
|
|
@ -23,7 +24,7 @@ export class DirectiveStreamingParser {
|
|||
const parser = sax.parser(false, { lowercase: true })
|
||||
let parseError = false
|
||||
let tagStack: string[] = []
|
||||
let activeHandler: any = null
|
||||
let activeHandler: DirectiveHandler | null = null
|
||||
|
||||
parser.onopentag = (node: sax.Tag) => {
|
||||
// Check if we're inside a code block (either global or within tool parameters)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue