Skip to main content

handles

Stentor API Reference


Stentor API Reference / stentor-utils/src / handles

Function: handles()

handles(intent, id, how?): boolean

Defined in: packages/stentor-utils/src/handler.ts:149

Does the provided Intent / Handler handle the provided ID in some way or another.

This checks redirect, content, & forward for the ID as a key.

Optionally, you can specify if you only want to check either redirect, content, or forward. The default is to check all three.

Parameters​

intent​

Intent | Handler\<Content, Data, Forward, Redirect>

id​

string

how?​

HandledIn = HandledIn.Any

Returns​

boolean