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

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