isSignerRole

function isSignerRole(role): role is WRITABLE_SIGNER | READONLY_SIGNER;

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

Parameters

ParameterType
roleAccountRole

Returns

role is WRITABLE_SIGNER | READONLY_SIGNER

On this page