@witchcraft/spellcraft
    Preparing search index...

    Function removeShortcut

    • Type Parameters

      • THooks extends Partial<Hooks>
      • TCheck extends boolean | "only" = true

      Parameters

      • shortcut: Shortcut
      • manager: Pick<Manager, "shortcuts" | "commands" | "keys"> & PickManager<
            "options",
            "stringifier"
            | "conditionEquals"
            | "evaluateCondition",
        > & Record<any, any> & { hooks?: THooks }
      • opts: { check?: TCheck } = {}

      Returns Result<
          TCheck extends "only" ? true : Shortcut<string, Condition>,

              | KnownError<"MISSING">
              | CanHookErrors<
                  THooks extends never ? never : THooks,
                  "canSetShortcutsProp",
              >,
      >