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

Declare interface for module.exports #19554

Closed
ORESoftware opened this issue Oct 28, 2017 · 2 comments
Closed

Declare interface for module.exports #19554

ORESoftware opened this issue Oct 28, 2017 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@ORESoftware
Copy link

ORESoftware commented Oct 28, 2017

Cannot declare interface for module.exports

TypeScript Version: 2.4

Code

I have tried:

export {} as X;
export {} implements X;

etc.
None of them seem to work. How to do this?

I have posted this question on SO:
https://stackoverflow.com/questions/46994615/declare-current-module-as-having-a-particular-interface

Expected behavior:
I would export to be able to declare the interface for which a CommonJS module should adhere.

Actual behavior:
I cannot seem to find a way to declare the interface for a module's exports.

@ORESoftware
Copy link
Author

ah, my issue seems related to this one: #420

@DanielRosenwasser DanielRosenwasser added the Duplicate An existing issue was already created label Oct 30, 2017
@typescript-bot
Copy link
Collaborator

Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.

@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants