diff options
Diffstat (limited to 'resources/studip.d.ts')
| -rw-r--r-- | resources/studip.d.ts | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/resources/studip.d.ts b/resources/studip.d.ts new file mode 100644 index 0000000..5ec8fef --- /dev/null +++ b/resources/studip.d.ts @@ -0,0 +1,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; +} |
