From dec85b7515ecf1835afe9059a2d90ad299276d41 Mon Sep 17 00:00:00 2001 From: Christian Meredith Date: Mon, 9 Feb 2026 13:09:40 +1100 Subject: [PATCH 1/2] Fix return type of publishOnce function Fixing a typo in pub-sub.d.ts that caused publishOnce to trigger tsc errors in a Meteor project. --- pub-sub.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pub-sub.d.ts b/pub-sub.d.ts index 6d02927..b4cdb51 100644 --- a/pub-sub.d.ts +++ b/pub-sub.d.ts @@ -35,7 +35,7 @@ export const config: Config; */ export function configure(options: Partial): Config; -export declare function publishOnce(name: string, handler: (...args: any[]): { [collectionName: string]: object[] }; +export declare function publishOnce(name: string, handler: (...args: any[]): { [collectionName: string]: object[] }): void; export declare function stream(name: string, handler: (...args: any[]) => void): void; declare module 'meteor/meteor' { From 01403ec5bf6cb51c9bf81832db7afecf19d8642a Mon Sep 17 00:00:00 2001 From: Christian Meredith Date: Mon, 9 Feb 2026 13:14:17 +1100 Subject: [PATCH 2/2] Update publishOnce handler type to return void --- pub-sub.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pub-sub.d.ts b/pub-sub.d.ts index b4cdb51..ceca3f9 100644 --- a/pub-sub.d.ts +++ b/pub-sub.d.ts @@ -35,7 +35,7 @@ export const config: Config; */ export function configure(options: Partial): Config; -export declare function publishOnce(name: string, handler: (...args: any[]): { [collectionName: string]: object[] }): void; +export declare function publishOnce(name: string, handler: (...args: any[]) => void): void; export declare function stream(name: string, handler: (...args: any[]) => void): void; declare module 'meteor/meteor' {