-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodels.ts
More file actions
32 lines (28 loc) · 740 Bytes
/
Copy pathmodels.ts
File metadata and controls
32 lines (28 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/// <reference path="angular-1.4.d.ts" />
module Models {
export class User {
name: string;
gravatar_id: string;
repos_url: string;
constructor(n: string, gid: string, url: string) {
this.name = n;
this.gravatar_id = gid;
this.repos_url = url;
}
}
export class Repo {
name: string;
stargazers_count: number;
language: string;
}
export interface IGHViewerScope extends angular.IScope
{
message: string;
error: string;
username: string;
user: User;
search: (username: string) => void;
repoSortOrder: string;
repos: Repo[];
}
}