File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,14 @@ export interface HardcoverMessage {
99 text : string ;
1010}
1111
12+ interface ResolvedHardcoverMetadata {
13+ title : string ;
14+ description : string | null ;
15+ image_url : string | null ;
16+ isbn : string | null ;
17+ slug : string | null ;
18+ }
19+
1220interface FormSetter {
1321 setFieldValue : ( field : string , value : unknown ) => void ;
1422}
@@ -264,15 +272,7 @@ export const useHardcoverBookActions = ({
264272 } ;
265273
266274 const selectSearchResult = async ( result : HardcoverSearchResult ) => {
267- let resolvedMetadata :
268- | {
269- title : string ;
270- description : string | null ;
271- image_url : string | null ;
272- isbn : string | null ;
273- slug : string | null ;
274- }
275- | undefined ;
275+ let resolvedMetadata : ResolvedHardcoverMetadata | undefined ;
276276
277277 if ( hardcoverApiKey ) {
278278 const metadataById = await commands . fetchHardcoverMetadataByBookId (
You can’t perform that action at this time.
0 commit comments