import { ILoginParams , ILoginSuccess , ILoginError } from './simple-login.service' ; export const asyncLoginFunction = ( params = { } ) : Promise < ILoginSuccess | ILoginError > => { return new Promise ( ( resolve , reject ) => { resolve ( { data : { id : Math . floor ( Math . random ( ) * 10000 ) , } , } ) ; } ) ; } ;