import { Dubbo , TDubboCallResult } from 'apache-dubbo-js' ; import { argumentMap } from 'interpret-util' ; import { TypeRequest } from './TypeRequest' ; export interface IBasicTypeProvider { testBasicType ( request ) : TDubboCallResult < TypeRequest > ; } export const BasicTypeProviderWrapper = { testBasicType : argumentMap } ; export function BasicTypeProvider ( dubbo ) { return dubbo . proxyService < IBasicTypeProvider > ( { dubboInterface : 'org.apache.dubbo.demo.BasicTypeProvider' , methods : BasicTypeProviderWrapper , } ) ; }