19 lines
329 B
TypeScript
19 lines
329 B
TypeScript
import { gql } from '@apollo/client';
|
|
|
|
export interface GetServerTimeResponse {
|
|
// eslint-disable-next-line camelcase
|
|
current_time: Array<{ currentTimestamp: Date }>;
|
|
}
|
|
|
|
export const GET_SERVER_TIME = gql`
|
|
query getServerTime {
|
|
current_time {
|
|
currentTimestamp
|
|
}
|
|
}
|
|
`;
|
|
|
|
export default {
|
|
GET_SERVER_TIME,
|
|
};
|