mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
21 lines
415 B
TypeScript
21 lines
415 B
TypeScript
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');
|
|
});
|