Skip to content

Type Alias: SoundManagerConstructorSignalSubscription

ts
type SoundManagerConstructorSignalSubscription = () =>
  | void
  | [() => void]
  | [() => void, boolean];

A type representing a signal subscription for the SoundManager which is passed to the constructor so that they are subscribed on creation. Formats include:

  • A callback function
  • A tuple containing a callback function as the first element
  • A tuple containing a callback function as the first element and a boolean once flag as the second element which indicates if the subscription should be removed after the first invocation.