Intrinsic String Manipulation Types Uppercase Lowercase Capitalize Uncapitalize Beyond being recognized in the contextual type of an object literal, the interface acts like any empty interface. The ThisType marker interface is simply an empty interface declared in lib.d.ts. Notice how the type of the methods property simultaneously is an inference target and a source for the this type in methods. In the example above, the methods object in the argument to makeObject has a contextual type that includes ThisType and therefore the type of this in methods within the methods object is.
0 Comments
Leave a Reply. |