refactor(api): strengthen typing
add dedicated fetchResult type (ex., for `listQuerier` return)
This commit is contained in:
parent
48db8b0575
commit
e37a54e775
6
typings/fetchResult.ts
Normal file
6
typings/fetchResult.ts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import { IStory } from "~/models/stories";
|
||||||
|
|
||||||
|
export interface StoryFetchResult {
|
||||||
|
stories: IStory[];
|
||||||
|
total: number;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user