displayString

import { displayString } from "jsr:@ende/http/unstable-structured-fields";

function · experimental

function displayString(value: string): Extract<BareItem, { type: "displaystring" }>

Creates a display string Bare Item.

value: string

The display string value (can contain Unicode).

Returns

A Bare Item of type displaystring.

Example: Usage

import { displayString } from "@ende/http/unstable-structured-fields";
import { assertEquals } from "@ende/assert";

assertEquals(displayString("héllo"), { type: "displaystring", value: "héllo" });

Source