mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-30 16:50:47 +08:00
Properly type 'source'
Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
@@ -8,9 +8,9 @@
|
||||
export let content: proj.ProjectContent;
|
||||
export let revision: string;
|
||||
export let locator: string;
|
||||
export let source: any;
|
||||
export let source: proj.Source;
|
||||
|
||||
const { addressOrName, peer, seed } = source;
|
||||
const { addressOrName, peer, seed, project, urn, branches } = source;
|
||||
|
||||
const navigateCommit = (path: string, content?: proj.ProjectContent) => {
|
||||
// Replaces path with current path if none passed.
|
||||
@@ -23,8 +23,6 @@
|
||||
}
|
||||
};
|
||||
|
||||
let { project, urn, branches } = source;
|
||||
|
||||
$: [revision_,] = proj.splitPrefixFromPath(locator, branches, project.head);
|
||||
$: content = proj.ProjectContent.Commit;
|
||||
$: revision = revision_;
|
||||
|
||||
Reference in New Issue
Block a user