From 09ff261f156a8599d45c1496fe246ded6e035191 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 26 Jul 2021 23:56:53 +0200 Subject: Added backend TSDoc/JSDoc comments & refactored a tiny bit --- packages/server/src/git/reference.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'packages/server/src/git/reference.ts') diff --git a/packages/server/src/git/reference.ts b/packages/server/src/git/reference.ts index b24f72d..4f4f5a0 100644 --- a/packages/server/src/git/reference.ts +++ b/packages/server/src/git/reference.ts @@ -11,6 +11,9 @@ export function isNodeGitReferenceTag(ref: NodeGitReference): boolean { return Boolean(ref.isTag()); } +/** + * A representation of a reference + */ export abstract class Reference { protected _ng_reference: NodeGitReference; protected _owner: Repository; @@ -18,6 +21,10 @@ export abstract class Reference { public id: string; public name: string; + /** + * @param owner - The repository which the reference is in + * @param reference - An instance of a Nodegit reference + */ constructor(owner: Repository, reference: NodeGitReference) { this._ng_reference = reference; this._owner = owner; -- cgit v1.2.3-18-g5258