You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The function defaultFlamegraphTooltip is exported from your distribution index, however no type is present in your index.d.ts.
Without a type exported, a Typescript compiler does not think the function exists and will refuse to compile.
To Reproduce
Steps to reproduce the behavior:
Create a new typescript file
Import defaultFlamegraphTooltip from your library (import { defaultFlamegraphTooltip } from 'd3-flame-graph';)
See error TS2305: Module '"d3-flame-graph"' has no exported member 'defaultFlamegraphTooltip'.
Expected behavior
If types were set this would compile with no issue. The function is correctly exported, so if I prepend the line above with //@ts-ignore I can continue without issue. This is, however, obviously not ideal.
Desktop (please complete the following information):
OS: Linux
Browser: Firefox
Version: 90.0
Additional context
For this issue my desktop information might not be too relevant. My Typescript version is "4.4.2"
The text was updated successfully, but these errors were encountered:
nickgirardo
changed the title
Typescript: no type for defaultFlamegraphTooltip
TypeScript: no type for defaultFlamegraphTooltip
Sep 12, 2021
Describe the bug
The function
defaultFlamegraphTooltip
is exported from your distribution index, however no type is present in yourindex.d.ts
.Without a type exported, a Typescript compiler does not think the function exists and will refuse to compile.
To Reproduce
Steps to reproduce the behavior:
defaultFlamegraphTooltip
from your library (import { defaultFlamegraphTooltip } from 'd3-flame-graph';
)TS2305: Module '"d3-flame-graph"' has no exported member 'defaultFlamegraphTooltip'.
Expected behavior
If types were set this would compile with no issue. The function is correctly exported, so if I prepend the line above with
//@ts-ignore
I can continue without issue. This is, however, obviously not ideal.Desktop (please complete the following information):
Additional context
For this issue my desktop information might not be too relevant. My Typescript version is "4.4.2"
The text was updated successfully, but these errors were encountered: