SplitType
SplitType copied to clipboard
'isSplit' is missing the type declarations
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)