Skip to content

Commit

Permalink
formatted types
Browse files Browse the repository at this point in the history
  • Loading branch information
Dialpuri committed Nov 26, 2023
1 parent cd40c07 commit 9ca6199
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions webserver/src/interfaces/types.ts
Original file line number Diff line number Diff line change
@@ -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<TorsionEntry>
}

export interface HeaderProps {
export interface HeaderProps {
resetApp: boolean,
setResetApp: Dispatch<SetStateAction<boolean>>,
PDBCode: string,
Expand All @@ -43,7 +43,7 @@ export interface HeaderProps {
failureText: string
}

export interface DatabaseHeaderProps {
export interface DatabaseHeaderProps {
resetApp: boolean,
setResetApp: Dispatch<SetStateAction<boolean>>,
PDBCode: string,
Expand All @@ -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<SetStateAction<File | null>>,
setReflectionFile: Dispatch<SetStateAction<File | null>>
}

export interface GlycanDetailProps {
tableData: Array<TableDataEntry>,
hideMoorhen: boolean,
export interface GlycanDetailProps {
tableData: Array<TableDataEntry>,
hideMoorhen: boolean,
setHideMoorhen: Dispatch<SetStateAction<boolean>>,
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<SetStateAction<boolean>>,
export interface NoGlycansProps {
setResetApp: Dispatch<SetStateAction<boolean>>,
text: string
}

export interface SVGTableProps {
tableData: Array<TableDataEntry>,
allowRowClick: boolean,
export interface SVGTableProps {
tableData: Array<TableDataEntry>,
allowRowClick: boolean,
rowClick: boolean,
setRowClicked: Dispatch<SetStateAction<boolean>>,
setRowClicked: Dispatch<SetStateAction<boolean>>,
setRowID: Dispatch<SetStateAction<number>>
}

0 comments on commit 9ca6199

Please sign in to comment.