(id: string, options?: {
readonly description?: string | undefined
readonly attributes?: Metric.Attributes | undefined
readonly preregisteredWords?: ReadonlyArray<string> | undefined
})
| 1792 | readonly #preregisteredWords: ReadonlyArray<string> | undefined |
| 1793 | |
| 1794 | constructor(id: string, options?: { |
| 1795 | readonly description?: string | undefined |
| 1796 | readonly attributes?: Metric.Attributes | undefined |
| 1797 | readonly preregisteredWords?: ReadonlyArray<string> | undefined |
| 1798 | }) { |
| 1799 | super(id, options?.description, attributesToRecord(options?.attributes)) |
| 1800 | this.#preregisteredWords = options?.preregisteredWords |
| 1801 | } |
| 1802 | |
| 1803 | createHooks(): Metric.Hooks<string, FrequencyState> { |
| 1804 | const occurrences = new Map<string, number>() |
nothing calls this directly
no test coverage detected