mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
9 lines
219 B
TypeScript
9 lines
219 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;
|
|
}
|