Init repo con git

This commit is contained in:
Samuele E. Locatelli
2025-08-21 08:59:27 +00:00
parent 4771dea3dc
commit 1d4b5aba63
2457 changed files with 540681 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
/**
* 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;