File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11import type { RocQueryResult } from '../../hooks/use_roc_query.js' ;
22import { useRocQuery } from '../../hooks/use_roc_query.js' ;
3- import type { TocEntry } from '../../types/db.js' ;
3+ import type { SampleTocEntry } from '../../types/db.js' ;
44import Spinner from '../spinner.js' ;
55
66import { useHomeContext , useHomeDispatchContext } from './home_context.js' ;
77import HomeSelector from './home_selector.js' ;
88
99export default function HomeSamples ( ) {
10- const { loading, error, result } = useRocQuery < TocEntry > ( 'sample_toc' ) ;
10+ const { loading, error, result } = useRocQuery < SampleTocEntry > ( 'sample_toc' ) ;
1111 if ( error ) {
1212 return < div > Failed to load sample ToC: { error ?. message } </ div > ;
1313 }
@@ -30,7 +30,7 @@ export default function HomeSamples() {
3030 ) ;
3131}
3232
33- function SampleToc ( props : { samples : Array < RocQueryResult < TocEntry > > } ) {
33+ function SampleToc ( props : { samples : Array < RocQueryResult < SampleTocEntry > > } ) {
3434 const { selectedSample } = useHomeContext ( ) ;
3535 const dispatch = useHomeDispatchContext ( ) ;
3636 function selectSample ( id : string ) {
Original file line number Diff line number Diff line change 55 useIframeBridgeContext ,
66 useIframeBridgeSample ,
77} from './contexts/iframe_bridge.js' ;
8+ export * from './types/db.js' ;
Original file line number Diff line number Diff line change 1- export interface TocEntry {
1+ export interface SampleTocEntry {
22 mf : string ;
33 mw : number ;
44 keyword : string [ ] ;
@@ -78,4 +78,5 @@ export interface SampleEntrySpectraNmr {
7878 jcamp : {
7979 filename : string ;
8080 } ;
81+ nmrium : any ;
8182}
You can’t perform that action at this time.
0 commit comments