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
}
}
function by_convert() {
const Base = vuetsx.ofType().convert(Vue.extend({}));
/* add more attributes */
const Extend = vuetsx.ofType().extendFrom(Base);
// OK
console.log(s) } />;
// NG
; //// TS2322 | TS2326 | TS2769: 'bar' is missing
// NG
; //// TS2322 | TS2326 | TS2769: 'foo' is missing
const WithNativeOn = vuetsx.withNativeOn(Base);
;
const WithHtmlAttrs = vuetsx.withHtmlAttrs(Base);
;