From c1545d58020f4f48e32a562fd959def12c71451e Mon Sep 17 00:00:00 2001 From: Akash Vishwakarma Date: Mon, 17 Dec 2018 14:11:39 +0530 Subject: [PATCH] updating code as per the alt documentation As per the alt documentation, success and error shouldn't be optional --- types/alt/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/alt/index.d.ts b/types/alt/index.d.ts index c95e1653b0..515a67986a 100644 --- a/types/alt/index.d.ts +++ b/types/alt/index.d.ts @@ -58,8 +58,8 @@ declare namespace AltJS { remote(state:any, ...args: any[]):Promise; shouldFetch?(fetchFn:(...args:Array) => boolean):void; loading?:(args:any) => void; - success?:(state:S) => void; - error?:(args:any) => void; + success:(state:S) => void; + error:(args:any) => void; interceptResponse?(response:any, action:Action, ...args:Array):any; }