Fix types

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
This commit is contained in:
Sebastian Martinez
2022-04-04 18:48:57 +02:00
committed by Alexis Sellier
parent 9620a17167
commit e2103483a9
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -1,13 +1,13 @@
<script lang="ts">
import Icon from "@app/Icon.svelte";
import type { CommitHeaderWithContext } from "@app/commit";
import type { CommitMetadata } from "@app/commit";
import type { Project } from "@app/project";
import { formatCommit } from "@app/utils";
import { createEventDispatcher } from "svelte";
import { ProjectContent } from "@app/project";
import { formatCommitTime } from "@app/commit";
export let commit: CommitHeaderWithContext;
export let commit: CommitMetadata;
export let project: Project;
const navigateHistory = (revision: string, content?: ProjectContent) => {
+3 -3
View File
@@ -2,11 +2,11 @@ import type { Stats } from "@app/project";
import type { Diff } from "@app/diff";
export interface CommitsHistory {
headers: CommitHeaderWithContext[];
headers: CommitMetadata[];
stats: Stats;
}
export interface CommitHeaderWithContext {
export interface CommitMetadata {
header: CommitHeader;
context: CommitContext;
}
@@ -58,7 +58,7 @@ export interface CommitHeader {
// A set of commits grouped by time.
export interface CommitGroup {
time: string;
commits: CommitHeaderWithContext[];
commits: CommitMetadata[];
}
export interface CommitStats {