From e37a54e775d1bbeac11f588bfba3a046d8524fb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Wed, 6 Dec 2023 21:36:46 -0500 Subject: [PATCH] refactor(api): strengthen typing add dedicated fetchResult type (ex., for `listQuerier` return) --- typings/fetchResult.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 typings/fetchResult.ts diff --git a/typings/fetchResult.ts b/typings/fetchResult.ts new file mode 100644 index 0000000..2f5decf --- /dev/null +++ b/typings/fetchResult.ts @@ -0,0 +1,6 @@ +import { IStory } from "~/models/stories"; + +export interface StoryFetchResult { + stories: IStory[]; + total: number; +}