I added a custom client directive to my Astro config, and it's working but the language server is throwing errors when it's included in Astro files.
<Splash client:tina site={site} />
Throws Property 'client:tina' does not exist on type 'IntrinsicAttributes & SplashProps'. I tried adding the following to a local declaration file but it didn't solve it:
declare module 'astro' {
interface AstroClientDirectives {
'client:tina'?: boolean
}
}
tsconfig does point to where this declaration file + custom directive file live:
"typeRoots": ["./node_modules/@types", "./client-directives"],
Wondering if this is something else, since it's a React component / React interface that's throwing the error? How should I properly type this directive?