musescore-downloader/src/i18n/utils.ts

10 lines
181 B
TypeScript
Raw Normal View History

import type { LOCALE } from './'
/**
* type checking only so no missing keys
*/
export function createLocale<OBJ extends LOCALE> (obj: OBJ): OBJ {
return Object.freeze(obj)
}