Giter Club home page Giter Club logo

Comments (8)

matheus1lva avatar matheus1lva commented on June 10, 2024 1

I was half asleep, sorry! I forgot about webpack nano hahaha
If you want you can add those to @types, but I’ll be adding those as I have time this week (pretty busy with work)

from webpack-nano.

G-Rath avatar G-Rath commented on June 10, 2024 1

Sure thing!

I'll make one right now.

from webpack-nano.

matheus1lva avatar matheus1lva commented on June 10, 2024

Hi! There are!
@types/webpack-plugin-serve

from webpack-nano.

G-Rath avatar G-Rath commented on June 10, 2024

Hi! Those typings don't apply to webpack-nano because they're for webpack-plugin-serve.

I've got those types in my project, but still can't import from webpack-nano/argv.

I'll double check this when I'm back at my computer in ~30 minutes, but pretty sure TypeScript won't like trying to load the @types that have a different name to the package in question.

from webpack-nano.

G-Rath avatar G-Rath commented on June 10, 2024

Yeah I just checked: those typings don't reference webpack-nano at all, so won't be picked up by the type acquisitioner, nor consumed by TS

from webpack-nano.

shellscape avatar shellscape commented on June 10, 2024

Honest question here: why would a CLI with no API interface need types?

from webpack-nano.

G-Rath avatar G-Rath commented on June 10, 2024

@shellscape I know, but you can't do import argv from 'webpack-nano/argv' w/o the types.

It's weird one, and I suspect the types will either be just an export of unknown or any, but there is a use-case for require/importing... 🤷‍♀

from webpack-nano.

shellscape avatar shellscape commented on June 10, 2024

Yeah you're absolutely right on that one. That's small enough that I wouldn't be opposed to shipping a d.ts file in the package. Would you be willing to open a small PR for that?

from webpack-nano.

Related Issues (11)

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.