Skip to content

createMoneyFormatter

createMoneyFormatter(moneyFormat): (amount) => string

Defined in: .pnpm/@[email protected]_graphql@[email protected]_typescript@6.0.3/node_modules/@storesynk/core/dist/money-format.d.ts:9

Creates a price formatter based on Shopify’s moneyFormat string. Ported from main/2.1.0/src/utils/helpers.ts:1334

Pure and environment-free: the same function runs in the browser (displayers) and on the server (the SSR transform), which is what keeps server-rendered prices byte-identical to what the client runtime writes on adoption.

string

(amount) => string