Skip to content

Instantly share code, notes, and snippets.

@alexzuza
Created July 8, 2019 05:22
Show Gist options
  • Save alexzuza/007d46314e9c7a1c8f366b5940460a7b to your computer and use it in GitHub Desktop.
Save alexzuza/007d46314e9c7a1c8f366b5940460a7b to your computer and use it in GitHub Desktop.
t17
const _ctor1: (init: Partial<Pick<i1.ChildComponent, "prop">>) => i1.ChildComponent = (null!);
function _tcb1(ctx: i0.AppComponent) {
if (true) {
var _t1 = document.createElement("app-child");
var _t2 = _ctor1({ prop: "text" }); // error TS2322: Type 'string' is not assignable to type 'number'.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment