Installation
npm install --save @types/meteor-publish-composite
Summary
This package contains type definitions for meteor-publish-composite (https://github.com/englue/meteor-publish-composite).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/meteor-publish-composite.
index.d.ts
/// <reference types="meteor" />
declare interface PublishCompositeConfigN {
collectionName?: string | undefined;
children?: PublishCompositeConfigN[] | undefined;
find(
...args: any[]
): Mongo.Cursor<any>;
}
declare interface PublishCompositeConfig4<InLevel1, InLevel2, InLevel3, InLevel4, OutLevel> {
collectionName?: string | undefined;
children?: PublishCompositeConfigN[] | undefined;
find(
arg4: InLevel4,
arg3: InLevel3,
arg2: InLevel2,
arg1: InLevel1,
): Mongo.Cursor<OutLevel>;
}
declare interface PublishCompositeConfig3<InLevel1, InLevel2, InLevel3, OutLevel> {
collectionName?: string | undefined;
children?: Array<PublishCompositeConfig4<InLevel1, InLevel2, InLevel3, OutLevel, any>> | undefined;
find(
arg3: InLevel3,
arg2: InLevel2,
arg1: InLevel1,
): Mongo.Cursor<OutLevel>;
}
declare interface PublishCompositeConfig2<InLevel1, InLevel2, OutLevel> {
collectionName?: string | undefined;
children?: Array<PublishCompositeConfig3<InLevel1, InLevel2, OutLevel, any>> | undefined;
find(
arg2: InLevel2,
arg1: InLevel1,
): Mongo.Cursor<OutLevel>;
}
declare interface PublishCompositeConfig1<InLevel1, OutLevel> {
collectionName?: string | undefined;
children?: Array<PublishCompositeConfig2<InLevel1, OutLevel, any>> | undefined;
find(
arg1: InLevel1,
): Mongo.Cursor<OutLevel>;
}
declare interface PublishCompositeConfig<OutLevel> {
collectionName?: string | undefined;
children?: Array<PublishCompositeConfig1<OutLevel, any>> | undefined;
find(): Mongo.Cursor<OutLevel>;
}
declare module "meteor/reywood:publish-composite" {
function publishComposite(
name: string,
config: PublishCompositeConfig<any> | Array<PublishCompositeConfig<any>>,
): void;
function publishComposite(
name: string,
configFunc: (...args: any[]) => PublishCompositeConfig<any> | Array<PublishCompositeConfig<any>>,
): void;
}
Additional Details
- Last updated: Tue, 30 Jan 2024 2145 GMT
- Dependencies: @types/meteor, @types/node
Credits
These definitions were written by Robert Van Gorkom, and Matthew Zartman.