Tempo API
    Preparing search index...

    Interface TermLifecycleHooks

    Protocol contract for Term Plugins implementing lifecycle hooks.

    Hierarchy (View Summary)

    Indexable

    • [key: symbol]:
          | (
              (
                  input: string,
                  context?: TermParseContext,
              ) => ZonedDateTime | Tempo | undefined
          )
          | (
              (
                  groups: Record<string, any>,
                  anchor: Tempo,
                  context?: TermParseContext,
              ) => ZonedDateTime | Tempo | undefined
          )
          | (
              (
                  unit: string,
                  count: number,
                  tempo: Tempo,
              ) => ZonedDateTime | Tempo | undefined
          )
          | ((other: Tempo, unit: string, tempo: Tempo) => number | undefined)
          | (
              (
                  boundary: "start" | "mid" | "end",
                  unit: string,
                  tempo: Tempo,
              ) => ZonedDateTime | Tempo | undefined
          )
          | ((token: string, tempo: Tempo) => string | undefined)
          | undefined