Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// OK
console.log(s) } />;
// NG
; //// TS2322 | TS2326 | TS2769: 'bar' is missing
// NG
; //// TS2322 | TS2326 | TS2769: 'foo' is missing
// Extend inherits prototype of Base.
const ext = new Extend();
console.log(ext.someProp, ext.someMethod());
const WithNativeOn = vuetsx.withNativeOn(Base);
;
console.log(new WithNativeOn().someProp);
const WithHtmlAttrs = vuetsx.withHtmlAttrs(Base);
;
console.log(new WithHtmlAttrs().someProp);
const WithUnknownProps = vuetsx.withUnknownProps(Base);
;
console.log(new WithUnknownProps().someProp);
}
// 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
// NG
; //// TS2322 | TS2326 | TS2769: 'foo' is missing
const WithNativeOn = vuetsx.withNativeOn(Base);
;
const WithHtmlAttrs = vuetsx.withHtmlAttrs(Base);
;
const WithUnknownProps = vuetsx.withUnknownProps(Base);
;
}
// OK
console.log(s) } />;
// NG
; //// TS2322 | TS2326 | TS2769: 'bar' is missing
// NG
; //// TS2322 | TS2326 | TS2769: 'foo' is missing
// Extend inherits prototype of Base.
const ext = new Extend();
console.log(ext.someProp, ext.someMethod());
const WithNativeOn = vuetsx.withNativeOn(Base);
;
console.log(new WithNativeOn().someProp);
const WithHtmlAttrs = vuetsx.withHtmlAttrs(Base);
;
console.log(new WithHtmlAttrs().someProp);
const WithUnknownProps = vuetsx.withUnknownProps(Base);
;
console.log(new WithUnknownProps().someProp);
}
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);
;
const WithUnknownProps = vuetsx.withUnknownProps(Base);
;
}