-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Could not find a declaration file for module 'simple-ldap-search'. '/node_modules/simple-ldap-search/dist/index.js' implicitly has an 'any' type.
Try npm install @types/simple-ldap-search if it exists or add a new declaration (.d.ts) file containing declare module 'simple-ldap-search';
Using in typescript and getting this error when making javascript dist folder.
import SimpleLDAP from 'simple-ldap-search';
export class LdapClient {
public static async Search(userString: string) {
const conf = {
url: '***:389',
base: '****',
dn: ****',
password: '****'
}
const ldap = new SimpleLDAP(conf);
const filter = '***';
const attributes = [****];
const users = await ldap.search(filter, attributes);
return users;
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels