GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Type misalign between webpack and webpack-sources · Issue #12294 · webpack/webpack

Type misalign between webpack and webpack-sources #12294

New issue
Copy link
New issue
Copy link
Closed
#16805
Closed
Type misalign between webpack and webpack-sources#12294
#16805
Copy link
Labels
help wantedMaintainers welcome a community PR for thiswebpack-5Concerns the webpack 5 line

Description

@Austaras
Austaras
opened on Dec 31, 2020
Issue body actions

Bug report

In webpack's declarations.d.ts, Source is

export abstract class Source {
		size(): number;

		map(options?: MapOptions): Object;

while in @types/webpack-sources, it is

    map(options?: MapOptions): RawSourceMap | null;

What is the expected behavior?
typing of webpack and webpack-sources should be compatible.

In this case I believe the latter is more detailed, so it should be used. BTW, why doesn't webpack use this declaration but instead write its own?

Other relevant information:
webpack version: 5.11.1

Activity

Next
  1. alexander-akait commented on Dec 31, 2020

    @alexander-akait
    alexander-akait
    on Dec 31, 2020
    Member
    More actions

    Please respect time of other developers and use the issue template

  2. webpack-bot
    added
    webpack-5Concerns the webpack 5 line
    enhancement
    on Dec 31, 2020
  3. Austaras commented on Dec 31, 2020

    @Austaras
    Austaras
    on Dec 31, 2020
    Author
    More actions

    updated

  4. alexander-akait commented on Jan 3, 2021

    @alexander-akait
    alexander-akait
    on Jan 3, 2021
    Member
    More actions

    Update we can improve types here, PR welcome

  5. webpack-bot commented on Apr 5, 2021

    @webpack-bot
    webpack-bot
    on Apr 5, 2021
    Contributor
    More actions

    This issue had no activity for at least three months.

    It's subject to automatic issue closing if there is no activity in the next 15 days.

  6. webpack-bot
    added
    status: staleNo author response after a needs: request; close candidate
    on Apr 5, 2021
  7. alexander-akait commented on Apr 5, 2021

    @alexander-akait
    alexander-akait
    on Apr 5, 2021
    Member
    More actions

    bump

  8. webpack-bot
    removed
    status: staleNo author response after a needs: request; close candidate
    on Apr 5, 2021
  9. webpack-bot
    added
    status: staleNo author response after a needs: request; close candidate
    on Aug 11, 2021
  10. webpack-bot
    closed this as completedon Aug 26, 2021
  11. webpack-bot commented on Aug 26, 2021

    @webpack-bot
    webpack-bot
    on Aug 26, 2021
    Contributor
    More actions

    Issue was closed because of inactivity.

    If you think this is still a valid issue, please file a new issue with additional information.

  12. alexander-akait
    reopened this on Aug 26, 2021
  13. webpack-bot
    removed
    status: staleNo author response after a needs: request; close candidate
    on Aug 26, 2021
  14. webpack-bot
    added
    status: staleNo author response after a needs: request; close candidate
    on Nov 25, 2021
  15. 14 remaining items

  16. alexander-akait
    reopened this on Nov 7, 2022
  17. webpack-bot
    removed
    status: staleNo author response after a needs: request; close candidate
    on Nov 7, 2022
  18. webpack-bot
    added
    status: staleNo author response after a needs: request; close candidate
    on Feb 7, 2023
  19. webpack-bot
    closed this as completedon Feb 22, 2023
  20. alexander-akait
    reopened this on Mar 7, 2023
  21. webpack-bot
    removed
    status: staleNo author response after a needs: request; close candidate
    on Mar 7, 2023
  22. alexander-akait commented on Mar 7, 2023

    @alexander-akait
    alexander-akait
    on Mar 7, 2023
    Member
    More actions

    @TheLarkInn Should be easy, very annoing to lose types here

  23. TheLarkInn
    added this to webpack 5/6on Mar 7, 2023
  24. TheLarkInn
    moved this to Backlog in webpack 5/6on Mar 7, 2023
  25. TheLarkInn commented on Mar 13, 2023

    @TheLarkInn
    TheLarkInn
    on Mar 13, 2023
    Member
    More actions

    @Austaras would you be willing to submit a fix here?

  26. alexander-akait commented on Mar 13, 2023

    @alexander-akait
    alexander-akait
    on Mar 13, 2023
    Member
    More actions

    @TheLarkInn We already have fix #16805 😄

    Reacted by Austaras
  27. TheLarkInn
    closed this as completedin #16805on Mar 14, 2023
  28. github-project-automation
    moved this from Backlog to Done in webpack 5/6on Mar 14, 2023
  29. TheLarkInn
    moved this from Done to webpack 5 in webpack 5/6on Mar 14, 2023
  30. TheLarkInn
    moved this from webpack 5 to Shipped in webpack 5/6on Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedMaintainers welcome a community PR for thiswebpack-5Concerns the webpack 5 line

    Type

    No type

    Fields

    Priority

    None yet

    Projects

      • webpack 5/6
        Closed
        Status
        Shipped
        Show more project fields

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.