youtubei.js / Types / EmitterOptions
Interface: EmitterOptions
Defined in: src/utils/javascript/JsExtractor.ts:15
Properties
disallowSideEffectInitializers?
optionaldisallowSideEffectInitializers:boolean|SideEffectPolicyOptions
Defined in: src/utils/javascript/JsExtractor.ts:26
When true or configured, replace unsafe initializers (calls, new, etc.) with undefined to avoid executing side-effectful code. Use { mode: 'loose' } to allow a broader set of expressions.
exportRawValues?
optionalexportRawValues:boolean
Defined in: src/utils/javascript/JsExtractor.ts:35
When true, also export raw values of matched nodes.
forceVarPredeclaration?
optionalforceVarPredeclaration:boolean
Defined in: src/utils/javascript/JsExtractor.ts:31
When true, emit a single var declaration for every variable encountered, even if it originally had an initializer.
maxDepth?
optionalmaxDepth:number
Defined in: src/utils/javascript/JsExtractor.ts:20
The maximum depth to traverse when emitting dependencies. If not specified, there is no limit on the depth.
rawValueOnly?
optionalrawValueOnly:string[]
Defined in: src/utils/javascript/JsExtractor.ts:39
Array of names to skip emitting code/deps for, but still export the raw value.