DefinitelyTyped / definitelytyped.github.io

Website content for definitelytyped.org
http://definitelytyped.org
MIT License
239 stars 96 forks source link

Use String Types For node `dgram.createSocket` Type #70

Closed mjbvz closed 7 years ago

mjbvz commented 7 years ago

From https://github.com/Microsoft/vscode/issues/27160

Current signature of node's dgram.createSocket is:

    export function createSocket(type: string, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;

Type should be restricted to the strings 'udp4' or 'udp6'

mjbvz commented 7 years ago

Sorry, wrong repo