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

Emit delegates in definitions #17

Open
andry-tino opened this issue Nov 22, 2016 · 0 comments
Open

Emit delegates in definitions #17

andry-tino opened this issue Nov 22, 2016 · 0 comments

Comments

@andry-tino
Copy link
Owner

andry-tino commented Nov 22, 2016

Ability to emit delegates in definition files. Simple delegates like:

public delegate int ExampleEventHandler(object sender, PersonalEventArgs eventArgs);

Suggestions

Simplification: emit them as empty classes:

declare|export class ExampleEventHandler { }

Evaluate later the possibility of rendering them as proper functions:

declare|export ExampleEventHandler: (object, PersonalEventArgs) => number;

Proper implementation

Allow the ability to specify an external C# file when generating definitions. Normal input files will be converted into definitions and the passed file will be as well. The final definitions will be emitted together in the bundle.

To be considered Evaluate the possibility to have this feature available only when specifying the bundle option.

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

No branches or pull requests

1 participant