PlannerOutputFor
PlannerOutputFor<
R> =Rextendsunknown? [SkipReplyFlagOf<R>] extends [false|undefined] ?GridResponse|TilingResponse:ReplylessPlannerOutput:never
Defined in: packages/protocol/src/lib/request.ts:325
The Planner result a request of type R may receive, chosen by its
ChartRequest.skipReply flag. Every member carries a top-level
type: 'plan' for a layout result, 'needs_clarification' for a
NeedsClarification.
- flag absent or
false: GridResponse or TilingResponse, both with a requireduserMessage - flag
true: GridResponseWithoutReply, TilingResponseWithoutReply or NeedsClarification - flag only known as
boolean: thetruecase, since the request may have set it
Distributes over a union of request types. The types do not tie a
result’s layout to the request’s layout mode, so a mismatch is rejected
at runtime only, by validation against context.layoutMode.
Type Parameters
Section titled “Type Parameters”R extends object