Type Alias TransformFilename<N>

TransformFilename<N>: ((chapter: N, index: number) => string)

Transform the filename of a chapter.

NOTE: The filename must be the full path of the chapter, and end with the .xhtml extension. This is however not validated upstream, so it is up to the caller to ensure this.

Type Parameters

Type declaration

    • (chapter, index): string
    • Parameters

      • chapter: N

        The chapter to transform.

      • index: number

        The index of the chapter. This is 1-based.

      Returns string

OEBS/chapter-${index}.xhtml