Skip to content

Type Alias: HitObject ​

HitObject = HitCircle | HitSlider | HitSpinner | HitHold

Defined in: src/beatmap/types.ts:244

Union of all hit object types.

ts
import { parseOsu } from 'osu-files'

return parseOsu(source).hitObjects[0]

Released under the MIT License.