UNPKG

renovate

Version:

Automated dependency updates. Flexible so you don't need to be.

14 lines (13 loc) 708 B
import type { JsonValue } from 'type-fest'; import type { Nullish } from '../types'; /** * Tries to detect the `platform` from a url. * * @param url the url to detect `platform` from * @returns matched `platform` if found, otherwise `null` */ export declare function detectPlatform(url: string): 'azure' | 'bitbucket' | 'bitbucket-server' | 'forgejo' | 'gitea' | 'github' | 'gitlab' | null; export declare function noLeadingAtSymbol(input: string): string; export declare function parseJson(content: Nullish<string>, filename: string): JsonValue; export declare function parseJsonWithFallback(content: string, context: string): JsonValue; export declare function parseJsonc(content: string): JsonValue;