aboutsummaryrefslogtreecommitdiff
path: root/resources/studip.d.ts
blob: 5ec8fef976240e59684d18ee3de1eb3cf657cc4d (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
import { Emitter } from 'mitt';
import { URLHelper } from './assets/javascripts/lib/url_helper.d.ts';
export {};

declare global {
    interface Window {
        STUDIP: {
            wysiwyg_enabled: boolean;
            INSTALLED_LANGUAGES: { [name: string]: InstalledLanguage };
            ABSOLUTE_URI_STUDIP: string;
            ASSETS_URL: string;
            CSRF_TOKEN: { name: string; value: string };
            URLHelper: URLHelper;
            eventBus: Emitter;
        };
    }
}

export interface InstalledLanguage {
    name: string;
    path: string;
    picture: string;
    selected: boolean;
}