How to use the vue-tsx-support/lib/vca.emitOn function in vue-tsx-support

To help you get started, we’ve selected a few vue-tsx-support examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wonderful-panda / vue-tsx-support / test / tsc / basic / vca.tsx View on Github external
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 () =&gt; <div class="{props.foo}">{ctx.slots.ss(true)}</div>;
github wonderful-panda / vue-tsx-support / test / tsc / basic / vca.tsx View on Github external
const onClick = () =&gt; {
      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 () =&gt; <div class="{props.foo}">{ctx.slots.ss(true)}</div>;
github wonderful-panda / vue-tsx-support / test / tsc / basic / vca.tsx View on Github external
const onClick = () =&gt; {
      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 () =&gt; <div class="{props.foo}">{ctx.slots.ss(true)}</div>;