Skip to content

Commit

Permalink
Fixing order of args in find functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
vangorra committed Jan 19, 2016
1 parent 1de4128 commit 62550bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions meteor-publish-composite/meteor-publish-composite.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ declare interface IPublishCompositeConfigN {

declare interface IPublishCompositeConfig4<InLevel1, InLevel2, InLevel3, InLevel4, OutLevel> {
children? : IPublishCompositeConfigN[];
find(arg1 : InLevel1, arg2 : InLevel2, arg3 : InLevel3, arg4 : InLevel4) : Mongo.Cursor<OutLevel>;
find(arg4 : InLevel4, arg3 : InLevel3, arg2 : InLevel2, arg1 : InLevel1) : Mongo.Cursor<OutLevel>;
}

declare interface IPublishCompositeConfig3<InLevel1, InLevel2, InLevel3, OutLevel> {
children? : IPublishCompositeConfig4<InLevel1, InLevel2, InLevel3, OutLevel, any>[];
find(arg1 : InLevel1, arg2 : InLevel2, arg3 : InLevel3) : Mongo.Cursor<OutLevel>;
find(arg3 : InLevel3, arg2 : InLevel2, arg1 : InLevel1) : Mongo.Cursor<OutLevel>;
}

declare interface IPublishCompositeConfig2<InLevel1, InLevel2, OutLevel> {
children? : IPublishCompositeConfig3<InLevel1, InLevel2, OutLevel, any>[];
find(arg1 : InLevel1, arg2 : InLevel2) : Mongo.Cursor<OutLevel>;
find(arg2 : InLevel2, arg1 : InLevel1) : Mongo.Cursor<OutLevel>;
}

declare interface IPublishCompositeConfig1<InLevel1, OutLevel> {
Expand All @@ -36,6 +36,6 @@ declare interface IPublishCompositeConfig<OutLevel> {
}

declare module Meteor {
function publishComposite(name : string, config : IPublishCompositeConfig<any>) : void;
function publishComposite(name : string, config : IPublishCompositeConfig<any>|IPublishCompositeConfig<any>[]) : void;
function publishComposite(name : string, configFunc : (...args : any[]) => IPublishCompositeConfig<any>) : void;
}

0 comments on commit 62550bd

Please sign in to comment.