diff --git a/packages/docs/modules/page-config/blocks/api/transform.ts b/packages/docs/modules/page-config/blocks/api/transform.ts index 1b1bb1dd27..a3bd39ba81 100644 --- a/packages/docs/modules/page-config/blocks/api/transform.ts +++ b/packages/docs/modules/page-config/blocks/api/transform.ts @@ -52,13 +52,22 @@ const stringifyMeta = (meta: ComponentMeta) => { types: slot.type }) }), {}), - emits: meta.events.reduce((acc, event) => ({ + events: meta.events.reduce((acc, event) => ({ ...acc, [event.name]: ({ types: event, }) }), {}), methods: {}, + // TODO: We need to use exposed in components before + // methods: meta.exposed + // .filter((method) => /^\(.*\)\s?=>.*$/.test(method.type)) + // .reduce((acc, method) => ({ + // ...acc, + // [method.name]: ({ + // types: method.type, + // }), + // }), {}) }) }