add type hints

This commit is contained in:
joshuaboud 2022-05-26 14:46:10 -03:00
parent d829f5f39c
commit f94edd5b8e
No known key found for this signature in database
GPG Key ID: 17EFB59E2A8BF50E

View File

@ -173,8 +173,14 @@ const defaultSettings = {
export default {
setup() {
const showMenu = ref(false);
/**
* @type {NavigatorSettings}
*/
const settings = inject(settingsInjectionKey);
const settingsStorageKey = "houstonNavigatorSettingsKey";
/**
* @type {Ref<boolean>}
*/
const darkMode = inject('darkModeInjectionKey') ?? ref(false);
function getTheme() {
let prefersDark = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches;