Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@types? #13

Open
destinatus opened this issue Nov 13, 2018 · 0 comments
Open

@types? #13

destinatus opened this issue Nov 13, 2018 · 0 comments

Comments

@destinatus
Copy link

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;
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant