This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

WithProperties

Additional type information that can be added to the NgElement class, for properties that are added based on the inputs and methods of the underlying component.

type WithProperties<P> = { [property in keyof P]: P[property]; };
      
      type WithProperties<P> = {
    [property in keyof P]: P[property];
};