isEntryPointVersion

1function 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.

Example

1import { isEntryPointVersion } from "@aa-sdk/core";
2
3const valid = isEntryPointVersion("0.6.0");
4const invalid = isEntryPointVersion("0.8.0");

Parameters

ParameterTypeDescription

value

any

The value to be checked

Returns

value is keyof EntryPointRegistry<Chain>

true if the value is a valid key of EntryPointRegistry, false otherwise