(options?: T)
| 4 | * @returns |
| 5 | */ |
| 6 | export function GetOptionsObject<T extends object>(options?: T): T { |
| 7 | if (typeof options === 'undefined') { |
| 8 | return Object.create(null) |
| 9 | } |
| 10 | if (typeof options === 'object') { |
| 11 | return options |
| 12 | } |
| 13 | throw new TypeError('Options must be an object') |
| 14 | } |
no outgoing calls
no test coverage detected