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.

utils.d.ts 1.4KB

123456789101112131415161718192021222324252627282930313233
  1. export declare const enum LaunchErrorCodes {
  2. ERR_LAUNCHER_PATH_NOT_SET = "ERR_LAUNCHER_PATH_NOT_SET",
  3. ERR_LAUNCHER_INVALID_USER_DATA_DIRECTORY = "ERR_LAUNCHER_INVALID_USER_DATA_DIRECTORY",
  4. ERR_LAUNCHER_UNSUPPORTED_PLATFORM = "ERR_LAUNCHER_UNSUPPORTED_PLATFORM",
  5. ERR_LAUNCHER_NOT_INSTALLED = "ERR_LAUNCHER_NOT_INSTALLED"
  6. }
  7. export declare function defaults<T>(val: T | undefined, def: T): T;
  8. export declare function delay(time: number): Promise<unknown>;
  9. export declare class LauncherError extends Error {
  10. message: string;
  11. code?: string | undefined;
  12. constructor(message?: string, code?: string | undefined);
  13. }
  14. export declare class ChromePathNotSetError extends LauncherError {
  15. message: string;
  16. code: LaunchErrorCodes;
  17. }
  18. export declare class InvalidUserDataDirectoryError extends LauncherError {
  19. message: string;
  20. code: LaunchErrorCodes;
  21. }
  22. export declare class UnsupportedPlatformError extends LauncherError {
  23. message: string;
  24. code: LaunchErrorCodes;
  25. }
  26. export declare class ChromeNotInstalledError extends LauncherError {
  27. message: string;
  28. code: LaunchErrorCodes;
  29. }
  30. export declare function getPlatform(): "aix" | "android" | "darwin" | "freebsd" | "linux" | "openbsd" | "sunos" | "win32" | "cygwin" | "netbsd" | "wsl";
  31. export declare function makeTmpDir(): string;
  32. export declare function toWinDirFormat(dir?: string): string;
  33. export declare function getLocalAppDataPath(path: string): string;