Special chapter class for extended functionality

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

client: AzurAPI
fuse?: Fuse<Chapter>
raw: Chapter[]

Methods

  • Determines whether all the members of an array satisfy the specified test

    Parameters

    • predicate: ((value: Chapter, index: number, array: Chapter[]) => unknown)

      A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.

    Returns boolean

  • Returns the elements of an array that meet the condition specified in a callback function.

    Parameters

    • predicate: ((value: Chapter, index: number, array: Chapter[]) => unknown)

      A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.

    Returns Chapter[]

  • Performs the specified action for each element in an array.

    Parameters

    • callbackfn: ((value: Chapter, index: number, array: Chapter[]) => void)

      A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.

    Returns void

  • Search fuse cache

    Parameters

    • name: string

      Any

    Returns FuseResult<Chapter>[]

  • Get by id

    Parameters

    • id: string

      String of number

    Returns [] | (Chapter | SubChapter)[]

  • Calls a defined callback function on each element of an array, and returns an array that contains the results.

    Type Parameters

    • U

    Parameters

    • callbackfn: ((value: Chapter, index: number, array: Chapter[]) => U)

      A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.

    Returns U[]

  • Get chapter by name

    Parameters

    • name: string

      Chapter name

    • languages: Language[] = ...

      Language to search

    Returns [] | (Chapter | SubChapter)[]

  • Set the cache

    Parameters

    Returns void

  • Determines whether the specified callback function returns true for any element of an array.

    Parameters

    • predicate: ((value: Chapter, index: number, array: Chapter[]) => unknown)

      A function that accepts up to three arguments. The some method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.

    Returns boolean

Generated using TypeDoc