UNPKG

@next/font

Version:

`@next/font` includes built-in automatic self-hosting for any font file. This means you can optimally load web fonts with zero layout shift, thanks to the underlying CSS size-adjust property used.

10 lines (9 loc) 383 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.formatAvailableValues = void 0; /** * Formats an array of values into a string that can be used error messages. * ["a", "b", "c"] => "`a`, `b`, `c`" */ const formatAvailableValues = (values) => values.map((val) => `\`${val}\``).join(', '); exports.formatAvailableValues = formatAvailableValues;