import { CoreSetup , CoreStart , Plugin } from '../../../src/core/server' ; import { FieldFormatsSetup , FieldFormatsStart } from '../../../src/plugins/field_formats/server' ; import { registerExampleFormat } from './examples/2_creating_custom_formatter' ; interface SetupDeps { fieldFormats : FieldFormatsSetup ; } interface StartDeps { fieldFormats : FieldFormatsStart ; } export class FieldFormatsExamplePlugin implements Plugin < void , void , SetupDeps , StartDeps > { public setup ( core , deps ) { registerExampleFormat ( deps . fieldFormats ) ; } public start ( core ) { return { } ; } public stop ( ) { } }