---
title: BodyAcceptsDoor
description: A type that the Authoring surface names.
---

# `BodyAcceptsDoor`

Type, in `@jr2/orchestrator/src/workspace.ts`. It is type plumbing: it computes a type from the types of a Machine or of its parts, and a workflow module does not write it. The signature of an export, or a type that it names, names this type, so its declaration is here. The [Authoring surface](../authoring-surface.md) page lists each export.

```ts
type BodyAcceptsDoor<TBody extends AnyStateMachine, TDoor, TSlots extends string> =
  TDoor & Workspaced<TDoor, TSlots> & HostInjectedInput extends InputFrom<TBody>
    ? BodyNamesNoSlotUnderOpenMap<TBody, TSlots>
    : { "the body's declared input must accept the door plus the injected handles": Workspaced<TDoor, TSlots> };
```
