(agent: { props?: T })
| 2 | * Gets props from agent or throws if undefined |
| 3 | */ |
| 4 | export function getProps<T = unknown>(agent: { props?: T }): T { |
| 5 | if (!agent.props) { |
| 6 | throw new Error('Props required') |
| 7 | } |
| 8 | return agent.props |
| 9 | } |
no outgoing calls
no test coverage detected