question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ts] conflicting font types

See original GitHub issue

uPlot.Axis currently defines:

        font?: CanvasRenderingContext2D['font'];
        labelFont?: CanvasRenderingContext2D['font'];

While true for values passed into constructor, various callbacks actually need to deal with values processed by pxRatioFont(), which, it seems, actually has (non-null? not sure about that) return type [string, number, number].

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Venryxcommented, Oct 9, 2021

I unfortunately do not have the time/motivation for this right now. I can provide technical support (ie. answers to “how do I make the type system do this?” questions) if anyone else wants to take on the job, though. (the type-transformers above should be enough to get started)

0reactions
leeoniyacommented, Oct 8, 2021

before committing to this route, i’d like to see an initial scaffold PR for what this might look like; don’t bother doing the entire typings file, but a decent amount of it that covers different cases, including multi-level nested computed types. if it looks reasonable enough to maintain, then we can go ahead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Conflicts between typings exposed globally #22331 - GitHub
The issue here is caused by the declaration files defining the same global functions. this can be remedied by either 1. both defining...
Read more >
Typography: Concordant, Contrasting & Conflicting! - SitePoint
Within the Times New Roman typeface there are several styles, namely Regular (Roman), Italic, Bold and Bold Italic. The heading is larger and ......
Read more >
Typescript conflict between "module/index.d.ts" and "@types ...
I tried all combinations and I so far I see "node_modules/{module}/{module}.d.ts" always takes priority over "node_modules/@types/{module}/index ...
Read more >
The Dos and Don'ts of Pairing Typefaces
The six typeface classifications — serif, sans-serif, slab-serif, script, display, and monospaced — are pictured to represent headline and body- ...
Read more >
How to Combine Fonts, How Not To, and the Best Font ...
Using the same style of fonts can create conflict in the design. ... These 10 do's and don'ts are a few pointers that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found