智慧水务管理系统 - 精河县供水工程综合管理平台

mention-utils.d.ts 684B

12345678910111213141516
  1. /**
  2. * Determines if the given character can be part of a mention's text characters.
  3. *
  4. * Accepts characters that match the RegExp `/[-\w.]/`, which are the possible
  5. * mention characters for any service.
  6. *
  7. * We'll confirm the match based on the user-configured service name after the
  8. * match is found.
  9. */
  10. export declare function isMentionTextChar(charCode: number): boolean;
  11. /**
  12. * Determines if the given `mention` text is valid.
  13. */
  14. export declare function isValidMention(mention: string, serviceName: MentionService): boolean;
  15. export type MentionService = 'twitter' | 'instagram' | 'soundcloud' | 'tiktok' | 'youtube';
  16. export declare const mentionServices: MentionService[];