Using loadTable with correct types in typescript with p5js

Sorry for the mis type, it is,

export default plot_diagram 

and i changed to

import * as p5 from "p5/index";

still no difference. The problem is line,

data = (p as any).loadTable(CSV_FILE, CSV_TYPE, CSV_HEADER);

that data is empty.