Appearance
Type Alias: AnyShape ​
AnyShape =
AutoShape|Picture|Connector|GraphicFrame|GroupShape
The concrete shape kinds as a discriminated union keyed on the Shape.shapeType literal. The read API (Slide.shapes, Slide.shapeById, GroupShape.shapes, Presentation.importShape, …) returns this rather than the abstract Shape base, so a consumer can narrow to a subtype by its discriminant and reach the subtype-only members — e.g. if (shape.shapeType === 'graphicFrame') shape.chart or, equivalently, the isGraphicFrame guard. The abstract Shape base is still exported for the "common members only" case and for instanceof checks.