global.d.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. import "../../src/types/index";
  2. import defaultLocaleJSON from "../src/variants/locales/default.json";
  3. declare global {
  4. namespace NCoreUIKit {
  5. type PaletteNames = "gmcore";
  6. interface PaletteKey extends Record<PaletteType, unknown>, Record<PaletteNames, unknown> {
  7. }
  8. type ProjectLocalizationL = typeof defaultLocaleJSON[0];
  9. type GeneratedProjectTranslations = {
  10. [K in keyof ProjectLocalizationL["translations"]]: ProjectLocalizationL["translations"][K];
  11. };
  12. interface Translation extends GeneratedTranslations, GeneratedProjectTranslations {
  13. }
  14. /*
  15. type DefaultPaletteL = typeof defaultThemeJSON.palettes[0];
  16. type SystemDataL = DefaultPaletteL["themes"]["dark"]["system"];
  17. type DefaultSystemColorsL = SystemDataL;
  18. interface SystemColorPalette extends DefaultSystemColors, DefaultSystemColorsL {
  19. }
  20. type ContentDataL = DefaultPaletteL["themes"]["dark"]["content"];
  21. type DefaultContentColorsL = ContentDataL;
  22. interface ContentColorPalette extends DefaultContentColors, DefaultContentColorsL {
  23. }
  24. */
  25. }
  26. }