Skip to content

PROMPT_CANCEL

Sentinel value representing a cancelled/aborted prompt in the test prompter's answer queue.

Uses Symbol.for() for cross-bundle safety — the same symbol is returned regardless of which copy of the module is loaded.

Signatures

ts
const PROMPT_CANCEL: unique symbol;

Examples

ts
const prompter = createTestPrompter([
  'us',           // first prompt answered 'us'
  PROMPT_CANCEL,  // second prompt cancelled
]);

See Also

Released under the MIT License.