You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the astro-tei demo code, the rendered <Tei/> component expects a useBehaviors prop that is currently not set, which results in a Typescript error.
Expected Behavior
No typescript error is shown in the demo code in index.astro.
Current Behavior
useBehaviours is neither set nor optional:
<divclass="tei"><Teidata={teiFile}/></div>
which results in the following TS error:
"Type '{ data: string; }' is not assignable to type 'IntrinsicAttributes & Props'. Property 'useBehaviors' is missing in type '{ data: string; }' but required in type 'Props'.ts(2322)"
Steps to Reproduce
Clone this repository, pnpm install and launch dev server
Check index.astro for type errors
Possible Solution
The Tei-Component expects the useBehaviors prop as defined in its types. As there's a default value set in the component itself (true), it could be made an optional prop. Alternatively, the demo code in index.astro could be amended to
Issue Summary
In the
astro-tei
demo code, the rendered<Tei/>
component expects auseBehaviors
prop that is currently not set, which results in a Typescript error.Expected Behavior
No typescript error is shown in the demo code in
index.astro
.Current Behavior
useBehaviours
is neither set nor optional:which results in the following TS error:
"Type '{ data: string; }' is not assignable to type 'IntrinsicAttributes & Props'. Property 'useBehaviors' is missing in type '{ data: string; }' but required in type 'Props'.ts(2322)"
Steps to Reproduce
index.astro
for type errorsPossible Solution
The Tei-Component expects the
useBehaviors
prop as defined in its types. As there's a default value set in the component itself (true
), it could be made an optional prop. Alternatively, the demo code inindex.astro
could be amended toContext
Your Environment
The text was updated successfully, but these errors were encountered: