@wix/himalaya-cli 0.1462.0 → 0.1464.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -190,6 +190,19 @@ export interface PollDirective {
190
190
  /** Fire once immediately instead of waiting out the first interval. */
191
191
  immediate?: boolean;
192
192
  }
193
+ /**
194
+ * Stops the poll `id`. Return it as `_poll` — typically from the polled
195
+ * action itself, on the tick that sees the job finish: the host cancels `id` and does
196
+ * not re-arm it. Stopping an id that is not polling is a no-op. A stop never starts or
197
+ * replaces a poll, so it carries nothing else. Type a state's field as
198
+ * `_poll?: PollDirective | PollStopDirective` to allow both.
199
+ */
200
+ export interface PollStopDirective {
201
+ /** The id the poll was started under. */
202
+ id: string;
203
+ /** Must be the boolean `true`. */
204
+ stop: true;
205
+ }
193
206
  /**
194
207
  * RFC 0046 authoring helper. Validates the top-level Component shape and emits
195
208
  * deterministic JSON with recursively sorted object keys. Runtime validators