The HRESULT will be returned by calling a com method with no [out] or [out, retval] arguments.
To replicate this runtime behavior, such methods will now be annotated with an integer type for their return value.
However, leaving it as int could lead to misinterpretation of the value, so a type alias named Hresult is prepared to represent that it is one of the integer values of HRESULT.
Incomplete
Parts that cannot be annotated with a detailed type by the typeannotator will be annotated as Incomplete.
This name was inspired by typeshed.
Hresult
The
HRESULT
will be returned by calling a com method with no[out]
or[out, retval]
arguments.To replicate this runtime behavior, such methods will now be annotated with an integer type for their return value.
However, leaving it as
int
could lead to misinterpretation of the value, so a type alias namedHresult
is prepared to represent that it is one of the integer values of HRESULT.Incomplete
Parts that cannot be annotated with a detailed type by the
typeannotator
will be annotated asIncomplete
. This name was inspired bytypeshed
.