Function attachTextToListItem

  • 現在行のリスト要素に対して、先頭や末尾にテキストを追記します

    Parameters

    • text: string
    • Optional option: {
          attached?: "prefix" | "suffix";
          cursor?: "last";
      }
      • Optional attached?: "prefix" | "suffix"

        prefix: 先頭に追記 (default)

        • suffix: 末尾に追記
      • Optional cursor?: "last"

        last: 追記後、現在行の末尾にカーソルを移動する

        await attachTextToListItem("👺")
        await attachTextToListItem("🐈", { attached: "suffix", cursor: "last" })

    Returns void

Generated using TypeDoc