feat: core chunk 7

This commit is contained in:
TrèsAbhi committed 2023-10-14 11:36:10 -05:00
1 parent d726005c38
commit 01dd7ad9c6
39 files changed
+83 -87

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
export interface PSAData {
title: string;
description: string;
}
export interface PSA {
data: PSAData | null;
}
export const psa: PSA = { data: null };
console.log('Caching PSA...');
fetch(
'https://gist.githubusercontent.com/tresabhi/ed4b136f08856e615212e573aabe1968/raw',
)
.then((response) => response.json())
.then((data) => {
psa.data = data as PSAData;
console.log('PSA cached');
});