Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix(frontend): annotate the Emittery singletons for emittery v2.2.0 (#21809)
renovate[bot]283540669e8e
diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yamlindex 1ef95cede7..e5b83e3348 100644--- a/frontend/pnpm-lock.yaml+++ b/frontend/pnpm-lock.yaml@@ -252,7 +252,7 @@ importers:version: 0.12.1emittery:specifier: ^2.0.0- version: 2.0.0+ version: 2.2.0events:specifier: ^3.3.0version: 3.3.0@@ -2549,8 +2549,8 @@ packages:resolution: {integrity: sha512-IhMYKHE4S2vtx0QrhBP3lYOIKDeIiJXBrdq9MGYkuB8ZHqhrBnHNfSUndjXFewrX1CPK8chwq+2NA0K0hliYuw==}- resolution: {integrity: sha512-FLtgn/CGBXiX3ZtPAm5q4LWWepHChOt55J9u01WFu3dyap2U7IwptlrqoE1COR/kxwdy/DOxIBALSxIW449I1g==}+ resolution: {integrity: sha512-zpmLSuVIqrtTPDR2IYiTbxXB6XgrS7+rRk5uT4w6qgmxeNvtdnSaAOGNNbVokgm+0F6zrRufshUfSlnsPc7d8g==}engines: {node: '>=22'}@@ -5951,7 +5951,7 @@ snapshots:- [email protected]: {}+ [email protected]: {}diff --git a/frontend/src/lib/plan/events.ts b/frontend/src/lib/plan/events.tsindex 58e1322af0..402510a092 100644--- a/frontend/src/lib/plan/events.ts+++ b/frontend/src/lib/plan/events.ts@@ -7,4 +7,7 @@ export type PlanEvents = {};};-export const planEvents = new Emittery<PlanEvents>();+// Annotated rather than inferred: Emittery's default type argument names the+// listenerAdded and listenerRemoved symbols, which it does not export, so tsc+// cannot write the inferred type into a declaration file (TS4023).+export const planEvents: Emittery<PlanEvents> = new Emittery<PlanEvents>();diff --git a/frontend/src/modules/sql-editor/components/ResultPanel/resultTabContext.ts b/frontend/src/modules/sql-editor/components/ResultPanel/resultTabContext.tsindex 02449b0578..7c566a1d94 100644--- a/frontend/src/modules/sql-editor/components/ResultPanel/resultTabContext.ts+++ b/frontend/src/modules/sql-editor/components/ResultPanel/resultTabContext.ts@@ -18,6 +18,12 @@ export type CloseTabAction =* local `onSelect` prop instead — keeping the channel single-consumer* avoids cross-listener fan-out when both strips are visible.*/-export const resultTabEvents = new Emittery<{+export type ResultTabEvents = {"close-tab": { index: number; action: CloseTabAction };-}>();+};++// Annotated rather than inferred: Emittery's default type argument names the+// listenerAdded and listenerRemoved symbols, which it does not export, so tsc+// cannot write the inferred type into a declaration file (TS4023).+export const resultTabEvents: Emittery<ResultTabEvents> =+ new Emittery<ResultTabEvents>();