create-api.js 252 Bytes
import createAPIComponent from 'vue-create-api';

export default function createAPI(Vue, Component, events, single) {
  Vue.use(createAPIComponent, { componentPrefix: 'yoho-' });
  const api = Vue.createAPI(Component, events, single);

  return api;
}