/
kochenov
/
universal-modular
Обзор
Документация
Войти
/
kochenov
/
universal-modular
Код
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/stringify-entities/lib/core.d.ts
26 строк
808 B
Kochenov Dmitry
feat(foundation): Шаг 1.3 — Установить Node.js 24 + VitePress + настроить конфигурацию
10 июл 2026, 11:06
10 июл 2026, 11:06
70eff21
Код
Авторство
О чём код?
/** * Encode certain characters in `value`. * * @param {string} value * @param {CoreWithFormatOptions} options * @returns {string} */ export function core(value: string, options: CoreWithFormatOptions): string; export type CoreOptions = { /** * Whether to only escape the given subset of characters. */ subset?: ReadonlyArray<string>; /** * Whether to only escape possibly dangerous characters. * Those characters are `"`, `&`, `'`, `<`, `>`, and `` ` ``. */ escapeOnly?: boolean; }; export type FormatOptions = { /** * Format strategy. */ format: (code: number, next: number, options: CoreWithFormatOptions) => string; }; export type CoreWithFormatOptions = CoreOptions & FormatOptions & import('./util/format-smart.js').FormatSmartOptions;