(cls: Constructor<unknown>)
| 74 | }; |
| 75 | |
| 76 | function isServiceProvider(cls: Constructor<unknown>) { |
| 77 | const hasSupportedName = cls.name.endsWith('Provider'); |
| 78 | const hasValueMethod = typeof cls.prototype.value === 'function'; |
| 79 | return hasSupportedName && hasValueMethod; |
| 80 | } |
| 81 | |
| 82 | function isBindableClass(cls: Constructor<unknown>) { |
| 83 | if (MetadataInspector.getClassMetadata(BINDING_METADATA_KEY, cls)) { |