From fecf4a9e6c2df5f96d00b2c0c4eb0ca16276e36e Mon Sep 17 00:00:00 2001 From: Robert Van Gorkom Date: Tue, 19 Jan 2016 08:08:04 -0800 Subject: [PATCH] Adding array return type and formating to play nice with tslint. --- .../meteor-publish-composite.d.ts | 38 +++++++++++++++---- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/meteor-publish-composite/meteor-publish-composite.d.ts b/meteor-publish-composite/meteor-publish-composite.d.ts index 0fe64fa17..afc02bc55 100644 --- a/meteor-publish-composite/meteor-publish-composite.d.ts +++ b/meteor-publish-composite/meteor-publish-composite.d.ts @@ -7,27 +7,43 @@ declare interface IPublishCompositeConfigN { children? : IPublishCompositeConfigN[]; - find(...args : any[]) : Mongo.Cursor; + find( + ...args : any[] + ) : Mongo.Cursor; } declare interface IPublishCompositeConfig4 { children? : IPublishCompositeConfigN[]; - find(arg4 : InLevel4, arg3 : InLevel3, arg2 : InLevel2, arg1 : InLevel1) : Mongo.Cursor; + find( + arg4 : InLevel4, + arg3 : InLevel3, + arg2 : InLevel2, + arg1 : InLevel1 + ) : Mongo.Cursor; } declare interface IPublishCompositeConfig3 { children? : IPublishCompositeConfig4[]; - find(arg3 : InLevel3, arg2 : InLevel2, arg1 : InLevel1) : Mongo.Cursor; + find( + arg3 : InLevel3, + arg2 : InLevel2, + arg1 : InLevel1 + ) : Mongo.Cursor; } declare interface IPublishCompositeConfig2 { children? : IPublishCompositeConfig3[]; - find(arg2 : InLevel2, arg1 : InLevel1) : Mongo.Cursor; + find( + arg2 : InLevel2, + arg1 : InLevel1 + ) : Mongo.Cursor; } declare interface IPublishCompositeConfig1 { children? : IPublishCompositeConfig2[]; - find(arg1 : InLevel1) : Mongo.Cursor; + find( + arg1 : InLevel1 + ) : Mongo.Cursor; } declare interface IPublishCompositeConfig { @@ -36,6 +52,14 @@ declare interface IPublishCompositeConfig { } declare module Meteor { - function publishComposite(name : string, config : IPublishCompositeConfig|IPublishCompositeConfig[]) : void; - function publishComposite(name : string, configFunc : (...args : any[]) => IPublishCompositeConfig) : void; + function publishComposite( + name : string, + config : IPublishCompositeConfig|IPublishCompositeConfig[] + ) : void; + + function publishComposite( + name : string, + configFunc : (...args : any[]) => + IPublishCompositeConfig|IPublishCompositeConfig[] + ) : void; }