MFML - v0.0.4
    Preparing search index...

    Type Alias TokenCallback

    TokenCallback: (token: Token, startIndex: number, endIndex: number) => void

    A callback that is invoked when a token is read from a text.

    Type Declaration

      • (token: Token, startIndex: number, endIndex: number): void
      • Parameters

        • token: Token

          The token that was read.

        • startIndex: number

          The start index of the first meaningful token char, inclusive.

        • endIndex: number

          The end index of the last meaningful token char, exclusive.

        Returns void