mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
move interfaces to commmon directory
This commit is contained in:
1 parent
6a724fbf09
commit
5c7d545bf5
9 files changed
+29
-84
No files matched your search
@@ -1,35 +1,14 @@
|
||||
import { pool } from "./db";
|
||||
import { ESX, getSource } from "./server";
|
||||
import { Tweet, Profile } from '../../phone/src/common/interfaces/twitter';
|
||||
import events from "../utils/events";
|
||||
import config from "../utils/config";
|
||||
|
||||
interface Profile {
|
||||
id: number;
|
||||
profile_name: string;
|
||||
identifier: string;
|
||||
avatar_url?: string;
|
||||
bio?: string;
|
||||
location?: string;
|
||||
job?: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
interface ProfileName {
|
||||
profile_name: string;
|
||||
}
|
||||
|
||||
interface Tweet {
|
||||
id: number;
|
||||
profile_name?: string;
|
||||
avatar_url?: string;
|
||||
message: string;
|
||||
createdAt?: string;
|
||||
updatedAt?: string;
|
||||
images?: string;
|
||||
likes?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve the latest 100 tweets
|
||||
* @param profileId - twitter profile id of the player
|
||||
|
||||
Reference in new issue
Block a user