mirror of
https://github.com/ReVanced/revanced-website.git
synced 2026-01-19 01:03:56 +00: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());
|