Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function by_createComponent() {
const Base = vuetsx.createComponent({});
// NG
; //// TS2322 | TS2326 | TS2769: 'foo' is missing
// OK
;
// NG
; //// TS2322 | TS2339 | TS2769: Property 'bar' does not exist
// NG
; //// TS2322 | TS2339 | TS2769: Property 'onErr' does not exist
/* add more attributes */
const Extend = vuetsx.ofType().extendFrom(Base);
// OK
console.log(s) } />;
// NG
; //// TS2322 | TS2326 | TS2769: 'bar' is missing
import * as vuetsx from "vue-tsx-support";
import Vue from "vue";
interface Props {
text: string;
}
const MyComponent = vuetsx.createComponent({});
Vue.component("my-component", MyComponent);