mirror of
https://github.com/revanced/revanced-website.git
synced 2025-05-16 13:37:05 +02:00
13 lines
405 B
TypeScript
13 lines
405 B
TypeScript
import { readable } from 'svelte/store';
|
|
import type { Repository } from 'src/data/types';
|
|
|
|
export type ContribData = { repositories: Repository[] };
|
|
|
|
const fetchContributors = async (): Promise<ContribData> => {
|
|
const response = await fetch('https://releases.rvcd.win/contributors');
|
|
const data = await response.json();
|
|
return data;
|
|
};
|
|
|
|
export const ContributorsStore = readable(fetchContributors());
|