Skip to content

makeServiceTextMeasurer

function makeServiceTextMeasurer(postMethod: <T, R>(url: string, body: R) => Promise<T>): TextMeasurer;

Defined in: packages/dynamic-design-engine/src/textMeasurement/serviceTextMeasurer.ts:85

Create a text measurer that uses the text measurement service to measure text

ParameterTypeDescription
postMethod<T, R>(url: string, body: R) => Promise<T>A function that sends a POST request to a service with the given URL and POST body

TextMeasurer