youtube-node
youtube-node copied to clipboard
index.d.ts typings are incorrect for callbacks
The definition for the search method is currently:
public search(id: string, maxResults: number, params: Object, callback: (validate?: Error) => void, data?: YtResult): void;
I believe that it should be:
public search(id: string, maxResults: number, params: Object, callback: (validate?: Error, data?: YtResult) => void): void;
I also believe that the getPlaylistItemsById and related methods also have the same problem.
Bumping this, same issue
Can also confirm