use @octokit/graphql instead of plain graphql for /api/projects

This commit is contained in:
2021-07-14 07:26:07 -04:00
parent 38ba41ca0b
commit 9c26cd7bff
9 changed files with 270 additions and 227 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
type TrackSchema = {
export type TrackSchema = {
name: string;
artists: Array<{
name: string;
@@ -15,7 +15,7 @@ type TrackSchema = {
};
};
type Track = {
export type Track = {
isPlaying: boolean;
artist?: string;
title?: string;
@@ -24,7 +24,7 @@ type Track = {
songUrl?: string;
};
type Activity = {
export type Activity = {
is_playing: boolean;
item?: TrackSchema;
};