lukePeavey / SplitType

Javascript utility that splits text into lines, words, characters for animation
https://lukepeavey.github.io/SplitType/
545 stars 39 forks source link

'isSplit' is missing the type declarations #78

Open daviddelusenet opened 5 months ago

daviddelusenet commented 5 months ago

As the title says, isSplit is missing in the type declarations so this will throw an error:

const text = new SplitType(textRef.current, {
  types: 'lines',
  tagName: 'span',
});

text.isSplit // Property 'isSplit' does not exist on type 'SplitType'. Did you mean 'split'? ts(2551)