Move from JavaScript to TypeScript #2

Merged
alan merged 7 commits from typescript into master 2024-01-13 03:00:34 -05:00
2 changed files with 22 additions and 0 deletions
Showing only changes of commit baa2983231 - Show all commits

View File

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