decode_codepoint.d.ts 765 B

12345678910111213141516171819
  1. /**
  2. * Polyfill for `String.fromCodePoint`. It is used to create a string from a Unicode code point.
  3. */
  4. export declare const fromCodePoint: (...codePoints: number[]) => string;
  5. /**
  6. * Replace the given code point with a replacement character if it is a
  7. * surrogate or is outside the valid range. Otherwise return the code
  8. * point unchanged.
  9. */
  10. export declare function replaceCodePoint(codePoint: number): number;
  11. /**
  12. * Replace the code point if relevant, then convert it to a string.
  13. *
  14. * @deprecated Use `fromCodePoint(replaceCodePoint(codePoint))` instead.
  15. * @param codePoint The code point to decode.
  16. * @returns The decoded code point.
  17. */
  18. export default function decodeCodePoint(codePoint: number): string;
  19. //# sourceMappingURL=decode_codepoint.d.ts.map