I am developing an NPM library that utilizes socket.io and is being written in Typescript.
Imagine my library contains a function like this:
public someFunction = (_socket: Socket) => {}
When using my library in an application, only this function is called, not the socket.io directly:
public anotherFunction = ():void => {
myLibraryClass.someFunction(socket);
}
It is clear that my library requires socket.io to be installed.
Yet, I am wondering if, in cases where I do not use anything from socket.io in my application, is it essential to install the socket.io library via NPM, or is installing just the @types file enough?