I am using a Svelte component with an array of globbed files as input. The component for testing is this:
SessionIndex2.svelte
<script lang="ts">
export let files: Record<string, any>[];
console.log("TEMP", files.pop());
</script>
<div>
</div>
While the parent class is this:
Foo.astro
---
import SessionsIndex2 from "@/components/rpg/SessionsIndex2.svelte";
const files = await Astro.glob('@content/rpg/star/sessions/*');
---
<SessionsIndex2 files={files} />
With this, though, I get this error:
Type '{ files: Record<string, any>[]; }' is not assignable to type 'IntrinsicAttributes & ComponentConstructorOptions<any>'.
Property 'files' does not exist on type 'IntrinsicAttributes & ComponentConstructorOptions<any>'