Merge pull request #10440 from joemclo/altFixes

AltJs - edit SourceModel interface to add optional rest parameters to remote and
This commit is contained in:
Mine Starks
2016-08-04 10:38:45 -07:00
committed by GitHub
+2 -2
View File
@@ -53,8 +53,8 @@ declare namespace AltJS {
export type Source = {[name:string]: () => SourceModel<any>};
export interface SourceModel<S> {
local(state:any):any;
remote(state:any):Promise<S>;
local(state:any, ...args: any[]):any;
remote(state:any, ...args: any[]):Promise<S>;
shouldFetch?(fetchFn:(...args:Array<any>) => boolean):void;
loading?:(args:any) => void;
success?:(state:S) => void;