function isEntryPointVersion(value): value is keyof EntryPointRegistry<Chain>;Defined in: aa-sdk/core/src/entrypoint/index.ts:34
Checks if the given value is a valid key of the EntryPointRegistry.
import { isEntryPointVersion } from "@aa-sdk/core";
const valid = isEntryPointVersion("0.6.0");
const invalid = isEntryPointVersion("0.8.0");| Parameter | Type | Description |
|---|---|---|
|
| The value to be checked |
value is keyof EntryPointRegistry<Chain>
true if the value is a valid key of EntryPointRegistry, false otherwise