mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-08 13:12:59 +00:00
10 lines
218 B
TypeScript
10 lines
218 B
TypeScript
export function coerceToNull<T>(input: T | null | undefined): T | null {
|
|
return input ?? null;
|
|
}
|
|
|
|
export function coerceToUndefined<T>(
|
|
input: T | null | undefined
|
|
): T | undefined {
|
|
return input ?? undefined;
|
|
}
|