import { Big } from "big.js" ; param { string } username param { string } password returns { Promise . < Big > } export async function SignIn ( username ? , password ? ) { if ( ! username || ! password ) { return Promise . resolve ( new Big ( 401 ) ) ; } return new Promise ( resolve => { const onSuccess = ( ) : void => resolve ( new Big ( 200 ) ) ; const onError = ( error ) : void => resolve ( new Big ( error . status ) ) ; mx . login ( username , password , onSuccess , onError as any ) ; } ) ; }