Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
emitEvents2() {
emit(this, "e1", "value");
emit(this, "e1", 1); //// TS2345: not assignable
emit(this, "e2", "value", 1);
emit(this, "e2", "value"); //// TS2554: Expected 4 arguments
emit(this, "e3");
emit(this, "e3", "value"); //// TS2554: Expected 2 arguments
}
}
emitEvents() {
emit(this, "e1", "value");
emit(this, "e1", 1); //// TS2345: not assignable
emit(this, "e2", "value", 1);
emit(this, "e2", "value"); //// TS2554: Expected 4 arguments
}
}
emitEvents2() {
emit(this, "e1", "value");
emit(this, "e1", 1); //// TS2345: not assignable
emit(this, "e2", "value", 1);
emit(this, "e2", "value"); //// TS2554: Expected 4 arguments
emit(this, "e3");
emit(this, "e3", "value"); //// TS2554: Expected 2 arguments
}
}
emitEvents2() {
emit(this, "e1", "value");
emit(this, "e1", 1); //// TS2345: not assignable
emit(this, "e2", "value", 1);
emit(this, "e2", "value"); //// TS2554: Expected 4 arguments
emit(this, "e3");
emit(this, "e3", "value"); //// TS2554: Expected 2 arguments
}
}
emitEvents2() {
emit(this, "e1", "value");
emit(this, "e1", 1); //// TS2345: not assignable
emit(this, "e2", "value", 1);
emit(this, "e2", "value"); //// TS2554: Expected 4 arguments
emit(this, "e3");
emit(this, "e3", "value"); //// TS2554: Expected 2 arguments
}
}
emitEvents2() {
emit(this, "e1", "value");
emit(this, "e1", 1); //// TS2345: not assignable
emit(this, "e2", "value", 1);
emit(this, "e2", "value"); //// TS2554: Expected 4 arguments
emit(this, "e3");
emit(this, "e3", "value"); //// TS2554: Expected 2 arguments
}
}
emitEvents2() {
emit(this, "e1", "value");
emit(this, "e1", 1); //// TS2345: not assignable
emit(this, "e2", "value", 1);
emit(this, "e2", "value"); //// TS2554: Expected 4 arguments
emit(this, "e3");
emit(this, "e3", "value"); //// TS2554: Expected 2 arguments
}
}
emitEvents() {
emit(this, "e1", "value");
emit(this, "e1", 1); //// TS2345: not assignable
emit(this, "e2", "value", 1);
emit(this, "e2", "value"); //// TS2554: Expected 4 arguments
}
}
emitEvents() {
emit(this, "e1", "value");
emit(this, "e1", 1); //// TS2345: not assignable
emit(this, "e2", "value", 1);
emit(this, "e2", "value"); //// TS2554: Expected 4 arguments
}
}
emitCustomEvent(arg: string) {
emit(this, "customEvent", arg);
}