市场夺宝奇兵
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.

39 lines
2.0 KiB

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