Skip to content

Type Alias: InternalErrorCode ​

InternalErrorCode = "layout/default-not-registered" | "slide/rel-index-out-of-range" | "slide/part-already-in-deck" | "import/part-went-missing" | "import/slide-link-not-placed" | "import/rescale-mode-changed" | "chart/type-not-routed" | "slide/object-type-not-routed" | "ooxml/member-not-in-sequence" | "slide/link-target-not-a-number" | "hyperlink/not-validated" | "animation/timing-scaffold-failed" | "media/rel-ids-not-consecutive" | "oxml/node-has-no-document" | "oxml/node-has-no-parent"

Conditions carried by InternalError: an invariant the library maintains itself did not hold. Reaching one is a bug in ts-pptx, not something a consumer can fix by changing their input — which is exactly why it is worth being able to tell apart from the four classes above.