Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

virtual-types.js 517B

123456789101112131415161718192021222324
  1. import virtualTypes from "../../lib/path/lib/virtual-types.js";
  2. export default function generateValidators() {
  3. let output = `/*
  4. * This file is auto-generated! Do not modify it directly.
  5. * To re-generate run 'make build'
  6. */
  7. import * as t from "@babel/types";
  8. export interface VirtualTypeAliases {
  9. `;
  10. for (const type of Object.keys(virtualTypes)) {
  11. output += ` ${type}: ${(virtualTypes[type].types || ["Node"])
  12. .map(t => `t.${t}`)
  13. .join(" | ")};`;
  14. }
  15. output += `
  16. }
  17. `;
  18. return output;
  19. }