I want to host an LDAP Server using ldapjs. Sadly there is no documentation for TypeScript yet. So I found the typings in @types/nodejs
but there are no server methods present:
import ldap = require('ldapjs')
let server = ldap.createServer()
This gives me an error in VS Code that no method called createServer
is present. Only createClient
is showing. Also the index.d.ts
from the Typings package contains only a Client
interface:
export interface Client extends EventEmitter { // ...
How can I get the correct Typings for server usage?