Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// 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);
}
/* 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);
;
}
// 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);
}
/* 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);
;
}