问题
On line 60359 of this type definition file, there is the following declaration:
type ActivatedEventHandler = (ev: Windows.ApplicationModel.Activation.IActivatedEventArgs & WinRTEvent<any>) => void;
What does the &
sigil mean in this context?
回答1:
&
in a type position means type intersection.
More
https://www.typescriptlang.org/docs/handbook/advanced-types.html#intersection-types
来源:https://stackoverflow.com/questions/38317625/what-does-the-ampersand-mean-in-a-typescript-type-definition