iansinnott / react-string-replace

A simple way to safely do string replacement with React components
MIT License
652 stars 56 forks source link

chore(types): updated ReactNode type #88

Closed zbigniewstefaniuk closed 1 year ago

zbigniewstefaniuk commented 1 year ago

Hi, in this PR I've updated Typescript return tupe from function from deprecated ReactNodeArray to ReactNode[] and also first param of the function is also accepting ReactNode[] instead of ReactNodeArray

zbigniewstefaniuk commented 1 year ago

@iansinnott hello, any comments ? :D

iansinnott commented 1 year ago

Cheers, thanks @zbigniewstefaniuk