fix: resolve remaining type errors in build scripts

Fix __String vs string type mismatch in imports transformer by
converting escapedText to string. Add @ts-expect-error for TypeDoc
Converter.on() which exists at runtime but is not in public type
exports.
This commit is contained in:
Daniel Sogl
2026-03-21 16:14:04 -07:00
parent 62956e429c
commit 4807ccdb27
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ function transformImports(file: SourceFile, _ctx: TransformationContext, ngcBuil
decorators.forEach((d) => (methods = getMethodsForDecorator(d).concat(methods)));
const methodElements = methods.map((name: string) => factory.createIdentifier(name));
const methodNames = methodElements.map((el: Identifier) => el.escapedText);
const methodNames = methodElements.map((el: Identifier) => String(el.escapedText));
importStatement.importClause.namedBindings.elements = [
factory.createIdentifier('AwesomeCordovaNativePlugin'),