aboutsummaryrefslogtreecommitdiff
path: root/src/definitions/internet.ts
blob: e4687534a520d10524982705e168addabd191a7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import type { EmojiType, HTTPStatusCodeType } from '../modules/internet';
import type { LocaleEntry } from './definitions';

/**
 * The possible definitions related to internet stuff.
 */
export type InternetDefinition = LocaleEntry<{
  /**
   * Common top level and similar domains (e.g `de`, `co.uk`).
   */
  domain_suffix: string[];

  /**
   * Some email domains containing `example` (e.g. `example.com`).
   */
  example_email: string[];

  /**
   * Some free-mail domains used in that country (e.g. `gmail.de`).
   */
  free_email: string[];

  /**
   * List of all fully-qualified emojis.
   */
  emoji: Record<EmojiType, string[]>;

  /**
   * List of some HTTP status codes.
   */
  http_status_code: Record<HTTPStatusCodeType, number[]>;
}>;