Skip to content

Commit

Permalink
Fix Priority TS Type (#43)
Browse files Browse the repository at this point in the history
Priority should be a number, not a string
  • Loading branch information
allout58 committed Sep 1, 2021
1 parent 95ed08b commit f3b1dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.esm.d.ts
Expand Up @@ -22,7 +22,7 @@ declare module 'chart.js' {
colorTo: (data: ScriptableContext<'sankey'>) => string;
colorMode: 'gradient' | 'from' | 'to';
/* Map<node.key, priority_value> */
priority?: Record<string, string>
priority?: Record<string, number>
/* Map<node.key, label> */
labels?: Record<string, string>

Expand Down

0 comments on commit f3b1dd3

Please sign in to comment.