function isSigner(signer): signer is SmartAccountSigner;Defined in: aa-sdk/core/src/signer/schema.ts:18
Checks if the provided object is a SmartAccountSigner.
import { isSigner, LocalAccountSigner } from "@aa-sdk/core";
const signer = new LocalAccountSigner(...);
console.log(isSigner(signer)); // true| Parameter | Type | Description |
|---|---|---|
|
| the object to check |
signer is SmartAccountSigner
A boolean indicating whether the object is a SmartAccountSigner