fix(Typings): Output public constructors in .d.ts files
Closes #3926. Closes #3963
This commit is contained in:
@ -8,14 +8,8 @@ var broker = instance.app.createClientMessageBroker(ECHO_CHANNEL, false);
|
||||
document.getElementById("send_echo")
|
||||
.addEventListener("click", (e) => {
|
||||
var val = (<HTMLInputElement>document.getElementById("echo_input")).value;
|
||||
// TODO(jteplitz602): Replace default constructors with real constructors
|
||||
// once they're in the .d.ts file (#3926)
|
||||
var args = new UiArguments();
|
||||
args.method = "echo";
|
||||
var fnArg = new FnArg();
|
||||
fnArg.value = val;
|
||||
fnArg.type = PRIMITIVE;
|
||||
args.args = [fnArg];
|
||||
var fnArg = new FnArg(val, PRIMITIVE);
|
||||
var args = new UiArguments("echo", [fnArg]);
|
||||
|
||||
broker.runOnService(args, PRIMITIVE)
|
||||
.then((echo_result: string) => {
|
||||
|
Reference in New Issue
Block a user