Fixing order of args in find functions.

This commit is contained in:
Robert Van Gorkom
2016-01-18 21:11:51 -08:00
parent 1de41285d9
commit 62550bd2dc
+4 -4
View File
@@ -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> {
@@ -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;
}