summaryrefslogtreecommitdiff
path: root/model/job.ts
diff options
context:
space:
mode:
Diffstat (limited to 'model/job.ts')
-rw-r--r--model/job.ts10
1 files changed, 8 insertions, 2 deletions
diff --git a/model/job.ts b/model/job.ts
index a3b52dd..52386eb 100644
--- a/model/job.ts
+++ b/model/job.ts
@@ -6,8 +6,14 @@ export interface Job {
readonly arguments: JobArgT;
}
export const isJob = (j: unknown): j is Job =>
- !!(isObject(j) && "arguments" in j && isObject(j.arguments) &&
- "type" in j && typeof j.type === "string" && j);
+ !!(
+ isObject(j) &&
+ "arguments" in j &&
+ isObject(j.arguments) &&
+ "type" in j &&
+ typeof j.type === "string" &&
+ j
+ );
export interface FetchCodeJobProps extends JobArgT {
readonly remoteUrl: string;