(metadata: ModuleMetadata)
| 16 | * @publicApi |
| 17 | */ |
| 18 | export function Module(metadata: ModuleMetadata): ClassDecorator { |
| 19 | const propsKeys = Object.keys(metadata); |
| 20 | validateModuleKeys(propsKeys); |
| 21 | |
| 22 | return (target: Function) => { |
| 23 | for (const property in metadata) { |
| 24 | if (Object.hasOwnProperty.call(metadata, property)) { |
| 25 | Reflect.defineMetadata(property, (metadata as any)[property], target); |
| 26 | } |
| 27 | } |
| 28 | }; |
| 29 | } |
no test coverage detected