( type?: string | AttrOptions | object, options?: (AttrOptions & object) | string | symbol, desc?: PropertyDescriptor )
| 274 | export function attr(type: string, options?: AttrOptions & object): DataDecorator; |
| 275 | export function attr(target: object, key: string | symbol, desc?: PropertyDescriptor): void; // see note on DataDecorator for why void |
| 276 | export function attr( |
| 277 | type?: string | AttrOptions | object, |
| 278 | options?: (AttrOptions & object) | string | symbol, |
| 279 | desc?: PropertyDescriptor |
| 280 | ): DataDecorator | void { |
| 281 | const args = [type, options, desc]; |
| 282 | // see note on DataDecorator for why void |
| 283 | return isElementDescriptor(args) ? (_attr()(...args) as void) : _attr(type, options as object); |
| 284 | } |
no test coverage detected