The first object-literal argument of a call, or undefined.
(node: CallExpression)
| 177 | |
| 178 | /** The first object-literal argument of a call, or undefined. */ |
| 179 | function firstObjectArg(node: CallExpression): ObjectExpression | undefined { |
| 180 | return node.arguments.find( |
| 181 | (a): a is ObjectExpression => a.type === 'ObjectExpression', |
| 182 | ) |
| 183 | } |
| 184 | |
| 185 | /** |
| 186 | * Resolve the provider from a call's first object argument by inspecting its |