import { ITxHash , ITxSigned } from '@types' ; export function notUndefined < T > ( x ) { return x !== undefined ; } export const isTxSigned = ( walletResponse ) : walletResponse is ITxSigned => ! ! walletResponse . _isBuffer ; export const isTxHash = ( walletResponse ) : walletResponse is ITxHash => typeof walletResponse === 'string' ;