fix: re-add utility types
This commit is contained in:
		
							
								
								
									
										20
									
								
								src/types.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								src/types.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
export interface Edge {
 | 
			
		||||
  from: string;
 | 
			
		||||
  to: string;
 | 
			
		||||
  color: string;
 | 
			
		||||
  relation: "likes" | "dislikes"
 | 
			
		||||
}
 | 
			
		||||
export interface Node {
 | 
			
		||||
  id: string;
 | 
			
		||||
}
 | 
			
		||||
export default interface NetworkData {
 | 
			
		||||
  nodes: Node[];
 | 
			
		||||
  edges: Edge[];
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export interface PlayerRanking {
 | 
			
		||||
  name: string;
 | 
			
		||||
  rank: number;
 | 
			
		||||
  std: number;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user