import IInjectorService = angular . auto . IInjectorService ; import { ReactInject } from '@spinnaker/core' ; export class TencentcloudNgReactInjector extends ReactInject { public $injectorProxy = { } as IInjectorService ; public initialize ( $injector ) { const realInjector = $injector as any ; const proxyInjector = this . $injectorProxy as any ; Object . keys ( $injector ) . filter ( key => typeof realInjector [ key ] === 'function' ) . forEach ( key => proxyInjector [ key ] = realInjector [ key ] . bind ( realInjector ) ) ; } } export const TencentcloudNgReact = new TencentcloudNgReactInjector ( ) ;