Billboard.js: Typings issues in types/options.d.ts

Created on 20 Aug 2020  路  2Comments  路  Source: naver/billboard.js

Description

When trying to use billboardjs in a typescript project, the following errors are thrown when compiling:

ERROR in /billboard.js/types/options.d.ts(493,37):
493:37 Parameter 'd' implicitly has an 'any' type.
    491 |                        * Set ratio of labels position.
    492 |                        */
  > 493 |                       ratio? : number | ((this: Chart, d, radius, h) => number)
        |                                                        ^
    494 | 
    495 |                       /**
    496 |                        * Set threshold ratio to show/hide labels.
ERROR in /billboard.js/types/options.d.ts(493,40):
493:40 Parameter 'radius' implicitly has an 'any' type.
    491 |                        * Set ratio of labels position.
    492 |                        */
  > 493 |                       ratio? : number | ((this: Chart, d, radius, h) => number)
        |                                                           ^
    494 | 
    495 |                       /**
    496 |                        * Set threshold ratio to show/hide labels.
ERROR in /billboard.js/types/options.d.ts(493,48):
493:48 Parameter 'h' implicitly has an 'any' type.
    491 |                        * Set ratio of labels position.
    492 |                        */
  > 493 |                       ratio? : number | ((this: Chart, d, radius, h) => number)
        |                                                                   ^
    494 | 
    495 |                       /**
    496 |                        * Set threshold ratio to show/hide labels.

Steps to check or reproduce

Use billboard.js with typescript.

bug

All 2 comments

Hi @3bdNKocY, thanks for the report.

Thanks for the very quick fix. So far it's a joy to use the library.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eweap picture eweap  路  5Comments

matthiaskomarek picture matthiaskomarek  路  4Comments

serzhiio picture serzhiio  路  4Comments

davidhund picture davidhund  路  5Comments

nwpappas picture nwpappas  路  3Comments