From 9ca619975b2cee0844e7e4522a7ff593eb1acba5 Mon Sep 17 00:00:00 2001 From: Jordan Dialpuri <44945647+Dialpuri@users.noreply.github.com> Date: Sun, 26 Nov 2023 15:52:15 +0000 Subject: [PATCH] formatted types --- webserver/src/interfaces/types.ts | 74 +++++++++++++++---------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/webserver/src/interfaces/types.ts b/webserver/src/interfaces/types.ts index 9735f400..74aaddb0 100644 --- a/webserver/src/interfaces/types.ts +++ b/webserver/src/interfaces/types.ts @@ -1,30 +1,30 @@ import { Dispatch, SetStateAction } from "react"; -export interface TorsionEntry { - sugar_1: string, - sugar_2: string, +export interface TorsionEntry { + sugar_1: string, + sugar_2: string, atom_number_1: string - atom_number_2: string, - phi: number, - psi: number + atom_number_2: string, + phi: number, + psi: number } -export interface TableDataEntry { - svg: string, - wurcs: string, - chain: string, - glyconnect_id: string, +export interface TableDataEntry { + svg: string, + wurcs: string, + chain: string, + glyconnect_id: string, glytoucan_id: string, - id: string, - torsion_err: number, - conformation_err: number, - anomer_err: number, - puckering_err: number, - chirality_err: number, + id: string, + torsion_err: number, + conformation_err: number, + anomer_err: number, + puckering_err: number, + chirality_err: number, torsions: Array } -export interface HeaderProps { +export interface HeaderProps { resetApp: boolean, setResetApp: Dispatch>, PDBCode: string, @@ -43,7 +43,7 @@ export interface HeaderProps { failureText: string } -export interface DatabaseHeaderProps { +export interface DatabaseHeaderProps { resetApp: boolean, setResetApp: Dispatch>, PDBCode: string, @@ -53,46 +53,46 @@ export interface DatabaseHeaderProps { loadingText: string, fallback: boolean, failureText: string, - results: any, + results: any, } -export interface DatabaseResultProps { +export interface DatabaseResultProps { results: any PDBCode: string } -export interface SNFGProps extends HeaderProps { +export interface SNFGProps extends HeaderProps { filename: string } -export interface UploadButtonProps { +export interface UploadButtonProps { setCoordinateFile: Dispatch>, setReflectionFile: Dispatch> } -export interface GlycanDetailProps { - tableData: Array, - hideMoorhen: boolean, +export interface GlycanDetailProps { + tableData: Array, + hideMoorhen: boolean, setHideMoorhen: Dispatch>, - rowID: number, - forwardControls: any, - scrollPosition: number, - controls: any, - molecule: any, + rowID: number, + forwardControls: any, + scrollPosition: number, + controls: any, + molecule: any, map: any } -export interface NoGlycansProps { - setResetApp: Dispatch>, +export interface NoGlycansProps { + setResetApp: Dispatch>, text: string } -export interface SVGTableProps { - tableData: Array, - allowRowClick: boolean, +export interface SVGTableProps { + tableData: Array, + allowRowClick: boolean, rowClick: boolean, - setRowClicked: Dispatch>, + setRowClicked: Dispatch>, setRowID: Dispatch> }