import { ChartType, Scriptable, ScriptableContext } from '../index.esm'; interface test { pie?: Scriptable>, line?: Scriptable>, testA?: Scriptable> testB?: Scriptable> testC?: Scriptable> testD?: Scriptable> } const testImpl: test = { pie: (ctx) => ctx.parsed, line: (ctx) => ctx.parsed.x + ctx.parsed.y, testA: (ctx) => ctx.parsed, testB: (ctx) => ctx.parsed.x + ctx.parsed.y, // @ts-expect-error combined type should not be any testC: (ctx) => ctx.fail, // combined types are intersections and permit invalid usage testD: (ctx) => ctx.parsed + ctx.parsed.x + ctx.parsed.r + ctx.parsed._custom.barEnd };