Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const onClick = () => {
emit(ctx, "customEvent", "value");
emitOn(ctx, "onCutstomEvent", "value");
emit(ctx, "customEvent2", "value"); //// TS2345
emitOn(ctx, "onCutstomEvent2", "value"); //// TS2345
emit(ctx, "customEvent", 1); //// TS2345
emitOn(ctx, "onCutstomEvent", 1); //// TS2345
emitUpdate(ctx, "foo", "value");
emitUpdate(ctx, "fooo", "value"); //// TS2345
emitUpdate(ctx, "foo", 0); //// TS2345
};
return () => <div class="{props.foo}">{ctx.slots.ss(true)}</div>;
const onClick = () => {
emit(ctx, "customEvent", "value");
emitOn(ctx, "onCutstomEvent", "value");
emit(ctx, "customEvent2", "value"); //// TS2345
emitOn(ctx, "onCutstomEvent2", "value"); //// TS2345
emit(ctx, "customEvent", 1); //// TS2345
emitOn(ctx, "onCutstomEvent", 1); //// TS2345
emitUpdate(ctx, "foo", "value");
emitUpdate(ctx, "fooo", "value"); //// TS2345
emitUpdate(ctx, "foo", 0); //// TS2345
};
return () => <div class="{props.foo}">{ctx.slots.ss(true)}</div>;
const onClick = () => {
emit(ctx, "customEvent", "value");
emitOn(ctx, "onCutstomEvent", "value");
emit(ctx, "customEvent2", "value"); //// TS2345
emitOn(ctx, "onCutstomEvent2", "value"); //// TS2345
emit(ctx, "customEvent", 1); //// TS2345
emitOn(ctx, "onCutstomEvent", 1); //// TS2345
emitUpdate(ctx, "foo", "value");
emitUpdate(ctx, "fooo", "value"); //// TS2345
emitUpdate(ctx, "foo", 0); //// TS2345
};
return () => <div class="{props.foo}">{ctx.slots.ss(true)}</div>;