Closed Seanmclem closed 1 year ago
When enabling typescript for my node-pty usage - I am now seeing a waring that 'ptyProcess.on' is deprecated. However, it suggests no alternative, and I see that syntax used in the README.. So is my editor wrong or are the docs outdated?
'ptyProcess.on' is deprecated
Seems like the correct syntax is ptyProcess.onData((data: any) => {
ptyProcess.onData((data: any) => {
rather than
ptyProcess.on('data', function (data: any) {
Still, the README would need updated, no?
Yes, the readme is out of date atm 👍
Environment details
Issue description
When enabling typescript for my node-pty usage - I am now seeing a waring that
'ptyProcess.on' is deprecated
. However, it suggests no alternative, and I see that syntax used in the README.. So is my editor wrong or are the docs outdated?