@maxlkatze/cms
Version:
A git based Nuxt Module CMS - zero effort, zero cost
16 lines (15 loc) • 400 B
TypeScript
import type { Ref } from 'vue';
export interface NewsArticle {
id: string;
title: string;
content: string;
date: string;
author: string;
tags: string[];
}
export declare function useGitHubNews(): {
newsArticles: Ref<NewsArticle[], NewsArticle[]>;
isLoading: Ref<boolean, boolean>;
error: Ref<string | null, string | null>;
refreshNews: () => Promise<void>;
};