by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Ben Szymkow
    @simcof
    A lot of projects I'm involved with in modern era use TypeScript. I notice there is not a declaration file on GitHub (that I could find). Do you know if anyone has done this yet?
    Athan
    @kgryte
    @simcof The project does have TypeScript declaration files! We have about 75% percent TypeScript declaration file coverage at the moment. For those packages having declaration files, they are included in the ./docs/types folder local to each package.
    Ben Szymkow
    @simcof
    oh wow! amazing!
    thank you @kgryte
    Athan
    @kgryte
    In our tsconfig.json file, this is how we resolve the various declared types: https://github.com/stdlib-js/stdlib/blob/develop/tsconfig.json#L38
    This works in VSCode TMK, as confirmed by @Planeshifter .
    If you have specific instructions that we can include in the main project README to better help people configure their projects for use with TypeScript, definitely let us know!
    Ben Szymkow
    @simcof
    I am just looking through the @stdlib folder in node_modules
    can;t find a docs folder anywhere
    is the idea you need to install packages individually ?
    Athan
    @kgryte
    Nope. You shouldn’t have to.
    Ben Szymkow
    @simcof
    (I ineffeciently just installed entire package)
    Athan
    @kgryte
    Installing the entire library is fine.
    Aside, here are the project’s TS docs: https://stdlib.io/docs/ts/
    And the docs folder is local to each individual package. So for example, here is the docs/types folder for the package @stdlib/stats/base/dmean: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/stats/base/dmean/docs/types
    Ben Szymkow
    @simcof
    ahh right, its in the github repo but not in the distribution
    Athan
    @kgryte
    For use with VSCode, we’ve relied on using globs in @stdlib/stdlib’s root tsconfig.json file, as linked to above.
    @simcof Wait?!?! Really. Let me check.
    Hmm…the docs/types folders should be present on npm install.
    Ahh…but the tsconfig.json file is not.
    Ben Szymkow
    @simcof
    image.png
    the only file in the types folder is package.json
    Athan
    @kgryte
    Maybe we need to publish the tsconfig.json file with the npm tarball.
    @simcof Sorry about that. Let me try working on resolving this issue over the next couple days.
    Ben Szymkow
    @simcof
    and the stats/base directory does not have a dmean directory (just a "dists" ne)
    cheers! I'll make sure I test it once done!
    Athan
    @kgryte
    Ah…sorry. We have added a bunch of functionality, all of which is on the latest develop and have yet to cut a new release.
    Cutting a new release is on our todo list.
    Re: testing. Great! Will circle back when I have an update!
    Thanks for reaching out!
    Ben Szymkow
    @simcof
    no worries, the library is tops! for what it is worth -> we are looking to use it for a few projects as part of OpenMined (https://github.com/OpenMined), which is an open source organisation that is building privacy-preserving tools. We are a funded organisation involved in a lot of COVID-19 related work (contact tracing app, bluetooth protocols and a bunch of other stuff)
    Athan
    @kgryte
    Awesome!
    Ben Szymkow
    @simcof
    over-eager TypeScript junkie checking in -> any updates? again thanks for helping out here! :)
    Athan
    @kgryte
    @simcof I created a repo which demonstrates using stdlib in a TypeScript project: https://github.com/kgryte/stdlib-typescript
    Ben Szymkow
    @simcof
    thanks!
    Athan
    @kgryte
    Everything seems to work for me.
    Ben Szymkow
    @simcof
    brilliant, will check it out tonight
    Athan
    @kgryte
    It is possible that, for whatever functionality you are using, we are simply missing type declarations. If so, let us know what that functionality is and we can prioritize writing those declarations.
    Ben Szymkow
    @simcof
    thanks for that
    we are doing a lot of stats stuff
    so the random package and stats package will be our first focus
    Athan
    @kgryte
    @Planeshifter Has been working on adding additional TypeScript declarations and plans to prioritize this in short order.
    Ben Szymkow
    @simcof
    brilliant
    Athan
    @kgryte
    If you can make a list of packages without declarations that you are using, we can work on adding those first.
    …from the look of things, we seem to have declarations for most all of @stdlib/random and for most of @stdlib/stats/*.
    Athan
    @kgryte
    @simcof Were you able to get things working?
    Ben Szymkow
    @simcof
    @kgryte will be looking today
    was having troubles
    Athan
    @kgryte
    @simcof No worries! Just ping whenever. :)