florian-lefebvre / astro-integration-kit

A package that contains utilities to help you build Astro integrations.

Home Page:https://astro-integration-kit.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

defineIntegrations defaults is required when there are no options

florian-lefebvre opened this issue · comments

import { createResolver, defineIntegration } from 'astro-integration-kit';

export default defineIntegration({
  name: 'my-integration',
  defaults: {} as any as never,
  setup() {
    const { resolve } = createResolver(import.meta.url);

    return {
      'astro:config:setup': async ({ addDevToolbarApp }) => {
        addDevToolbarApp(resolve('./plugin.ts'));
      },
    };
  },
});

Here we should be able not to specify defaults