index.d.ts 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. declare const VIEW_MODE_STORAGE_KEY = "__vue-devtools-view-mode__";
  2. declare const VITE_PLUGIN_DETECTED_STORAGE_KEY = "__vue-devtools-vite-plugin-detected__";
  3. declare const VITE_PLUGIN_CLIENT_URL_STORAGE_KEY = "__vue-devtools-vite-plugin-client-url__";
  4. declare const BROADCAST_CHANNEL_NAME = "__vue-devtools-broadcast-channel__";
  5. declare const isBrowser: boolean;
  6. declare const target: typeof globalThis;
  7. declare const isInChromePanel: boolean;
  8. declare const isInIframe: boolean;
  9. declare const isInElectron: boolean;
  10. declare const isNuxtApp: boolean;
  11. declare const isInSeparateWindow: boolean;
  12. declare function NOOP(): void;
  13. declare const isNumeric: (str: string | number) => boolean;
  14. declare const isMacOS: () => boolean;
  15. declare function classify(str: string): string;
  16. declare function camelize(str: string): string;
  17. declare function kebabize(str: string): string;
  18. declare function basename(filename: string, ext: string): string;
  19. declare function sortByKey(state: unknown[]): Record<"key", number>[];
  20. /**
  21. * Check a string is start with `/` or a valid http url
  22. */
  23. declare function isUrlString(str: string): boolean;
  24. /**
  25. * @copyright [rfdc](https://github.com/davidmarkclements/rfdc)
  26. * @description A really fast deep clone alternative
  27. */
  28. declare const deepClone: <T>(input: T) => T;
  29. declare function randomStr(): string;
  30. declare function isObject<T extends object>(value: any): value is T;
  31. declare function isArray<T>(value: any): value is T[];
  32. declare function isSet<T>(value: any): value is Set<T>;
  33. declare function isMap<K, V>(value: any): value is Map<K, V>;
  34. export { BROADCAST_CHANNEL_NAME, NOOP, VIEW_MODE_STORAGE_KEY, VITE_PLUGIN_CLIENT_URL_STORAGE_KEY, VITE_PLUGIN_DETECTED_STORAGE_KEY, basename, camelize, classify, deepClone, isArray, isBrowser, isInChromePanel, isInElectron, isInIframe, isInSeparateWindow, isMacOS, isMap, isNumeric, isNuxtApp, isObject, isSet, isUrlString, kebabize, randomStr, sortByKey, target };