index.d.ts 549 B

123456789101112131415161718
  1. /**
  2. Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms).
  3. @param codePoint - The [code point](https://en.wikipedia.org/wiki/Code_point) of a character.
  4. @example
  5. ```
  6. import isFullwidthCodePoint from 'is-fullwidth-code-point';
  7. isFullwidthCodePoint('谢'.codePointAt(0));
  8. //=> true
  9. isFullwidthCodePoint('a'.codePointAt(0));
  10. //=> false
  11. ```
  12. */
  13. export default function isFullwidthCodePoint(codePoint: number): boolean;