Giter Site home page Giter Site logo

Comments (3)

hsiaosiyuan0 avatar hsiaosiyuan0 commented on August 23, 2024

@dongzhangli 并不会全量的将所有的 Java 文件转换成等价的 TS 文件,而是由 Provider 为入口点,收集并转换它所依赖的定义。从你提供的代码来看,PaymentProvider 只依赖了 PaymentMethod 并不依赖 PaymentMethodOLP

from dubbo-js.

lidongzhangg avatar lidongzhangg commented on August 23, 2024

实际在消费方是new PaymentMethodOLP,而不是PaymentMethod,在消费方找不到PaymentMethodOLP类。
这可能是接口设计的问题...

PaymentMethod  paymentMethod = new PaymentMethodOLP();
paymentProvider. guaranteePayment(paymentMethod)

from dubbo-js.

creasy2010 avatar creasy2010 commented on August 23, 2024

+1
如果这方面有强烈需求 , 可以搞个pr , 处理如下:
判断如果参数为abstract 或 interface 扫包下实现的类进行单独翻译,而方法的参数类型声明为 ? extend xx

这个issue先关闭了.

from dubbo-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.