How to use the vue-tsx-support.withUnknownProps 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 / extend.tsx View on Github external
// 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);
}
github wonderful-panda / vue-tsx-support / test / tsc / basic / extend.tsx View on Github external
/* 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);
    ;
}
github wonderful-panda / vue-tsx-support / test / tsc / basic / extend.tsx View on Github external
// 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);
}
github wonderful-panda / vue-tsx-support / test / tsc / basic / extend.tsx View on Github external
/* 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);
    ;
}