---
to: api.ts
---
import { defineAPI, WidgetPropertyType } from '@wix/blocks';

export default defineAPI({
  props: {
    name: {
      type: WidgetPropertyType.STRING,
    },
  },
  events: { load: {} },
  functions: {
    myPublicFunction: {},
  },
});
