bendemboski / owner-types

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

owner-types

Repro for a type issue with getOwner(this). In thing.ts, the owner getter produces a type error, but the owner2 getter does not. Without a cast, the compiler is not recognizing this as a FrameworkObject so it's picking the version of getOwner() that accepts unknown and returns Owner | unknown.

About


Languages

Language:JavaScript 72.6%Language:HTML 21.1%Language:TypeScript 4.3%Language:Handlebars 2.0%