Skip to content
Snippets Groups Projects
Unverified Commit 4fa5eeb8 authored by Sergei Zharinov's avatar Sergei Zharinov Committed by GitHub
Browse files

refactor(util/template): Strict null checks (#14031)

parent 60af784e
No related branches found
No related tags found
No related merge requests found
......@@ -149,9 +149,11 @@ const allowedFieldsList = Object.keys(allowedFields)
type CompileInput = Record<string, unknown>;
function getFilteredObject(input: CompileInput): any {
type FilteredObject = Record<string, CompileInput | CompileInput[] | unknown>;
function getFilteredObject(input: CompileInput): FilteredObject {
const obj = clone(input);
const res = {};
const res: FilteredObject = {};
const allAllowed = [
...Object.keys(allowedFields),
...exposedConfigOptions,
......
......@@ -385,7 +385,6 @@
"lib/util/ignore.ts",
"lib/util/merge-confidence/index.ts",
"lib/util/package-rules.ts",
"lib/util/template/index.ts",
"lib/versioning/api.ts",
"lib/versioning/aws-machine-image/index.ts",
"lib/versioning/common.ts",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment