From 20d8e44883e0a2d695301e4efcbd493b5078e641 Mon Sep 17 00:00:00 2001 From: Joe Mclo Date: Wed, 3 Aug 2016 10:21:04 +0100 Subject: [PATCH] edit SourceModel interface to add optional rest parameters to remote and local methods --- alt/alt.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alt/alt.d.ts b/alt/alt.d.ts index 20da159f35..575d476451 100644 --- a/alt/alt.d.ts +++ b/alt/alt.d.ts @@ -53,8 +53,8 @@ declare namespace AltJS { export type Source = {[name:string]: () => SourceModel}; export interface SourceModel { - local(state:any):any; - remote(state:any):Promise; + local(state:any, ...args: any[]):any; + remote(state:any, ...args: any[]):Promise; shouldFetch?(fetchFn:(...args:Array) => boolean):void; loading?:(args:any) => void; success?:(state:S) => void;