DefinitelyTyped/types/react-dev-utils/getPublicUrlOrPath.d.ts
2020-02-13 15:28:54 -08:00

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;