renovate/lib/datasource/common.ts

11 lines
286 B
TypeScript
Raw Normal View History

2021-03-02 20:44:55 +00:00
import type { GetPkgReleasesConfig } from './types';
export function isGetPkgReleasesConfig(
input: unknown
): input is GetPkgReleasesConfig {
return (
(input as GetPkgReleasesConfig).datasource !== undefined &&
(input as GetPkgReleasesConfig).depName !== undefined
);
}