Template issue class

This commit is contained in:
Alan O'Cull 2024-01-12 19:19:03 -05:00
parent e76bd94617
commit baa2983231
2 changed files with 22 additions and 0 deletions

View File

@ -22,6 +22,7 @@ fetch(url).then((res) => {
res.json().then((data) => {
console.log('Got data ');
console.log(data);
console.log(data.labels);
})
})

21
src/issue.ts Normal file
View File

@ -0,0 +1,21 @@
class Issue {
constructor(
public title: String,
public desc: String,
public labels: String[],
public assignees: String[],
public dueDate: Date,
public open: boolean,
) {}
/**
* @param obj JSON Object
*/
public static fromGitea(obj: any) {
}
}
export { Issue as default };