import { CoreSetup , CoreStart , Plugin } from '../../../../core/server' ; import { pieLabelsFunction , pieVisFunction } from '../common' ; import { ExpressionPiePluginSetup , ExpressionPiePluginStart , SetupDeps , StartDeps } from './types' ; export class ExpressionPiePlugin implements Plugin < ExpressionPiePluginSetup , ExpressionPiePluginStart , SetupDeps , StartDeps > { public setup ( core , { expressions } ) { expressions . registerFunction ( pieLabelsFunction ) ; expressions . registerFunction ( pieVisFunction ) ; } public start ( core , deps ) { } public stop ( ) { } }