@cartridge-engine/keyboard-engine
    Preparing search index...

    Function setIfAbsent

    • Insert a value into the map, throwing if the id already exists. Used by addAction / addSequenceAction and the inner loops of defineShortcutAction / defineSequenceAction.

      Type Parameters

      • T

      Parameters

      • map: Map<string, T>
      • id: string
      • value: T
      • duplicateMessage: string

      Returns void