We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Switch
Currently, the Switch global is a variable that is an instance of the SwitchClass class.
SwitchClass
Instead, Switch should be a singleton module that is defined as:
import * as Switch from './switch'; export type * as Switch from './switch'; def('Switch', Switch);
This way, it will be a namespace at the TypeScript and TypeDoc level, and we get rid of SwitchClass entirely.
The text was updated successfully, but these errors were encountered:
Convert Switch global into a "namespace"
bec450a
Closes #34.
Successfully merging a pull request may close this issue.
Currently, the
Switch
global is a variable that is an instance of theSwitchClass
class.Instead,
Switch
should be a singleton module that is defined as:This way, it will be a namespace at the TypeScript and TypeDoc level, and we get rid of
SwitchClass
entirely.The text was updated successfully, but these errors were encountered: