github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/webapp/javascript/types/flot.d.ts (about) 1 // we only need this import for its side effects (ie importing flot types) 2 // eslint-disable-next-line import/no-unresolved 3 import 'flot'; 4 5 // @types/flot only exposes plotOptions 6 // but flot in fact exposes more parameters to us 7 // https://github.com/flot/flot/blob/370cf6ee85de0e0fcae5bf084e0986cda343e75b/source/jquery.flot.js#L361 8 type plotInitPluginParams = jquery.flot.plot & jquery.flot.plotOptions; 9 declare global { 10 declare namespace jquery.flot { 11 interface plugin { 12 init(plot: plotInitPluginParams): void; 13 } 14 15 interface plot { 16 p2c(point: point): canvasPoint; 17 } 18 } 19 }