Skip to content

Commit f3b1dd3

Browse files
authored
Fix Priority TS Type (#43)
Priority should be a number, not a string
1 parent 95ed08b commit f3b1dd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.esm.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ declare module 'chart.js' {
2222
colorTo: (data: ScriptableContext<'sankey'>) => string;
2323
colorMode: 'gradient' | 'from' | 'to';
2424
/* Map<node.key, priority_value> */
25-
priority?: Record<string, string>
25+
priority?: Record<string, number>
2626
/* Map<node.key, label> */
2727
labels?: Record<string, string>
2828

0 commit comments

Comments
 (0)