mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 08:32:56 +00:00
21 lines
1.3 KiB
TypeScript
21 lines
1.3 KiB
TypeScript
import { RemoteEntryInfo } from "./types/common.js";
|
|
import { ModuleInfo } from "./types/snapshot.js";
|
|
//#region src/utils.d.ts
|
|
declare const parseEntry: (str: string, devVerOrUrl?: string, separator?: string) => RemoteEntryInfo;
|
|
declare global {
|
|
var FEDERATION_DEBUG: string | undefined;
|
|
}
|
|
declare const composeKeyWithSeparator: (...args: (string | undefined)[]) => string;
|
|
declare const encodeName: (name: string, prefix?: string, withExt?: boolean) => string;
|
|
declare const decodeName: (name: string, prefix?: string, withExt?: boolean) => string;
|
|
declare const generateExposeFilename: (exposeName: string, withExt: boolean) => string;
|
|
declare const generateShareFilename: (pkgName: string, withExt: boolean) => string;
|
|
declare const getResourceUrl: (module: ModuleInfo, sourceUrl: string) => string;
|
|
declare const assert: (condition: any, msg: string) => asserts condition;
|
|
declare const error: (msg: string | Error | unknown) => never;
|
|
declare const warn: (msg: Parameters<typeof console.warn>[0]) => void;
|
|
declare function safeToString(info: any): string;
|
|
declare function isRequiredVersion(str: string): boolean;
|
|
//#endregion
|
|
export { assert, composeKeyWithSeparator, decodeName, encodeName, error, generateExposeFilename, generateShareFilename, getResourceUrl, isRequiredVersion, parseEntry, safeToString, warn };
|
|
//# sourceMappingURL=utils.d.ts.map
|