# @types/meteor-publish-composite

> TypeScript definitions for meteor-publish-composite

Latest version **0.0.43** (published 2024-01-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/meteor-publish-composite
pnpm add @types/meteor-publish-composite
yarn add @types/meteor-publish-composite
bun add @types/meteor-publish-composite
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.43 |
| Published | 2024-01-30 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51433 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/meteor-publish-composite
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/meteor-publish-composite
- npm.io page: https://npm.io/package/@types/meteor-publish-composite

## Dependencies (2)

- [@types/node](https://npm.io/package/@types/node.md) *
- [@types/meteor](https://npm.io/package/@types/meteor.md) *

## Recent versions

- 0.0.43 (latest) — 2024-01-30
- 0.0.42 (ts4.5) — 2023-11-21
- 0.0.38 (ts4.1) — 2022-06-22
- 0.0.37 (ts3.7) — 2021-07-08
- 0.0.35 (ts2.8) — 2018-10-03
- 0.0.33 (ts2.0) — 2017-10-13
- 0.0.41 — 2023-11-07
- 0.0.40 — 2023-10-18
- 0.0.39 — 2023-09-27
- 0.0.36 — 2020-01-08
- 0.0.34 — 2018-04-24
- 0.0.32 — 2016-09-19
- 0.0.31 — 2016-08-25
- 0.0.30 — 2016-08-19
- 0.0.29 — 2016-08-02
- … 10 more at https://npm.io/package/@types/meteor-publish-composite/versions

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/meteor-publish-composite/index.d.ts)
````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 21:35:45 GMT
 * Dependencies: [@types/meteor](https://npmjs.com/package/@types/meteor), [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Robert Van Gorkom](https://github.com/vangorra), and [Matthew Zartman](https://github.com/mrz5018).

---
_Source: https://npm.io/package/@types/meteor-publish-composite · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
