UNPKG

933 BTypeScriptView Raw
1import { Oid } from "./oid";
2import { Repository } from "./repository";
3import { Signature } from "./signature";
4
5export class Note {
6 static create(
7 repo: Repository,
8 notesRef: string,
9 author: Signature,
10 committer: Signature,
11 oid: Oid,
12 note: string,
13 force: number,
14 ): Promise<Oid>;
15 static foreach(repo: Repository, notesRef: string, noteCb: Function, payload: any): Promise<number>;
16 static iteratorNew(repo: Repository, notesRef: string): Promise<any>;
17 static next(noteId: Oid, annotatedId: Oid, it: any): number;
18 static read(repo: Repository, notesRef: string, oid: Oid): Promise<Note>;
19 static remove(
20 repo: Repository,
21 notesRef: string,
22 author: Signature,
23 committer: Signature,
24 oid: Oid,
25 ): Promise<number>;
26
27 author(): Signature;
28 committer(): Signature;
29
30 id(): Oid;
31 message(): string;
32}