Skip to content

Commit

Permalink
integrate alpinejs into react types
Browse files Browse the repository at this point in the history
  • Loading branch information
vorant94 committed Aug 7, 2024
1 parent 01a7e54 commit 4b4c508
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/blog/src/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,24 @@ declare module "react" {
"lottie-player": unknown;
}
}

type AlpineListenableAttribute = `x-on:${"mouseenter" | "click"}`;
type AlpineBindableAttribute = `x-bind:${"class"}`;

interface Attributes
extends Partial<
Record<AlpineListenableAttribute | AlpineBindableAttribute, string>
> {
"x-data"?: string;
"x-cloak"?: string;
"x-teleport"?: string;
}
}

declare module "fastify" {
interface FastifyInstance {
env: Env;
}
}

Event;

0 comments on commit 4b4c508

Please sign in to comment.