aboutsummaryrefslogtreecommitdiff
path: root/src/definitions/system.ts
blob: 16578a43dd6060b484973c4e38fb93608779af7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import type { LocaleEntry } from './definitions';

/**
 * The possible definitions related to files and operating systems.
 */
export type SystemDefinition = LocaleEntry<{
  /**
   * Returns some common file paths.
   */
  directory_path: string[];

  /**
   * The mime type definitions with some additional information.
   */
  mime_type: { [mimeType: string]: SystemMimeTypeEntryDefinition };
}>;

/**
 * The mime-type entry details.
 */
export interface SystemMimeTypeEntryDefinition {
  extensions: string[];
}