-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Add error for using generalized expressions with export assignments in ambient contexts #18444
Add error for using generalized expressions with export assignments in ambient contexts #18444
Conversation
…n ambient contexts
Please add an entry for this change in https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#typescript-26 |
@mhegazy done. |
@weswigham I thought we were going to allow |
@andy-ms Nope, we said identifier or qualified name only. @andy-ms, can it be rewritten as import { Collection } from "mongodb";
/**
* @summary MongoDB store adapter.
* @class
*/
class MongoStore {
/**
* @summary Constructor.
* @constructor
* @param {Function} getCollection The collection.
* @param {Object} options The otpions.
*/
constructor(getCollection: (collection: (c: Collection) => void) => void, options?: Object);
}
export = MongoStore; ? |
Fixes #17991