Code Monkey home page Code Monkey logo

Comments (6)

atomiks avatar atomiks commented on June 4, 2024 1

In Derivable's case it has 1 looser property type than it should. As for React, it's just unsightly yeah

from floating-ui.

bsunderhus avatar bsunderhus commented on June 4, 2024

This seems to be related to microsoft/rushstack#2479

from floating-ui.

atomiks avatar atomiks commented on June 4, 2024

Ok, I think I know how to fix Derivable_2 (it needs to use the DOM, not Core type), but I guess we can manually patch React_2 back to React after the types have been generated.

from floating-ui.

bsunderhus avatar bsunderhus commented on June 4, 2024

Ok, I think I know how to fix Derivable_2 (it needs to use the DOM, not Core type), but I guess we can manually patch React_2 back to React after the types have been generated.

Is it necessary though? it still points to the same export which is the react package, and it's not like React_2 is leaking....
The same question goes for the Derivable_2 is there any type mismatching because of this?

I guess your point is that it looks a little ugly to have that _2 on the typings when someone investigates the typings 😅. It seems to be an open issue on API extractor side though, so I'd agree that if we want this gone we'll have to patch it after file generation for sure

from floating-ui.

bsunderhus avatar bsunderhus commented on June 4, 2024

please assign this issue to me @atomiks , I'll follow up with a PR ASAP

from floating-ui.

bsunderhus avatar bsunderhus commented on June 4, 2024

I can see that this strategy of adding a suffix is to avoid conflicts, in the case of Derivable_2 is because there's a local definition of Derivable that makes sense to me. In the case of React_2 for some reason API extractor is assuming there's a local definition of React?! that is weird

from floating-ui.

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.