renovate/lib/datasource/common.ts
2021-03-02 21:44:55 +01:00

10 lines
286 B
TypeScript

import type { GetPkgReleasesConfig } from './types';
export function isGetPkgReleasesConfig(
input: unknown
): input is GetPkgReleasesConfig {
return (
(input as GetPkgReleasesConfig).datasource !== undefined &&
(input as GetPkgReleasesConfig).depName !== undefined
);
}