isWritableRole

function isWritableRole(role): role is WRITABLE_SIGNER | WRITABLE;

Returns true if the AccountRole given represents that of a writable account. Also refines the TypeScript type of the supplied role.

Parameters

ParameterType
roleAccountRole

Returns

role is WRITABLE_SIGNER | WRITABLE

On this page