mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
14 lines
410 B
TypeScript
14 lines
410 B
TypeScript
/**
|
|
* Returns a URL or a path with slash at the end
|
|
* In production can be URL, abolute path, relative path
|
|
* In development always will be an absolute path
|
|
* In development can use `path` module functions for operations
|
|
*/
|
|
declare function getPublicUrlOrPath(
|
|
isEnvDevelopment: boolean,
|
|
homepage: string | undefined,
|
|
envPublicUrl: string | undefined,
|
|
): string;
|
|
|
|
export = getPublicUrlOrPath;
|