Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added initial types #153

Merged
merged 2 commits into from
Mar 21, 2020
Merged

added initial types #153

merged 2 commits into from
Mar 21, 2020

Conversation

fluxin
Copy link
Contributor

@fluxin fluxin commented Mar 14, 2020

No description provided.

@fluxin fluxin mentioned this pull request Mar 14, 2020
@leeoniya
Copy link
Owner

hey @fluxin,

any idea how to get VScode to pick up the types in a test.js file? do i need a jsconfig.json [1]?

how would VScode associate types/index.d.ts with e.g. /dist/uPlot.esm.js or /src/uPlot.js.

also, the lib constructor is uPlot, not UPlot as in this PR, is that an issue?

[1] https://code.visualstudio.com/docs/languages/jsconfig

@leeoniya
Copy link
Owner

leeoniya commented Mar 19, 2020

ok, i finally got it working by sticking the file into /dist/uPlot.esm.d.ts and creating a jsconfig.json with "compilerOptions": {"checkJs": true} and adding "typings": "./dist/uPlot.esm.d.ts" to package.json

@leeoniya
Copy link
Owner

i've it merged this locally and it's working well. i'm making a lot of additions and some changes, so it'll be another day or two before i push everything up. i might have some more questions later, but everything is straightforward so far.

@fluxin
Copy link
Contributor Author

fluxin commented Mar 19, 2020 via email

@leeoniya
Copy link
Owner

Sorry for the lack of responding at a customer's this week

no worries :) this PR is exactly the type of scaffold i was needing. you did a great job of covering the majority of the necessary nuances - it must have taken some time to crawl through the docs, demos and source to put it together, so thanks.

i've added single-line jsdoc comments to pretty much everything i've reviewed and corrected so far. i also made a couple minor API refinements along the way.

i'm about 70% done at 353 LOC. what's left to review/finish is:

  • Axis
  • Grid
  • Ticks
  • Scale
  • Hooks

i'll finish it up this weekend and maybe you, @leolabs, @photonstorm, @danyalejandro can take a look afterwards for tweaks/issues before i tag a new version.

@leeoniya leeoniya merged commit d6b2897 into leeoniya:master Mar 21, 2020
@fluxin
Copy link
Contributor Author

fluxin commented Mar 21, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants