hasVerb

View as MarkdownOpen in Claude

Check if a verb name is defined in the SWML schema.

Parameters

verbName
stringRequired

The verb name to look up.

Returns

booleantrue if the verb exists in the schema.

Example

1import { SchemaUtils } from '@signalwire/sdk';
2
3const schema = new SchemaUtils();
4console.log(schema.hasVerb('answer')); // true
5console.log(schema.hasVerb('foobar')); // false