feat: add support for commenting and reacting on external content
This commit is contained in:
parent
5ba5c26fcd
commit
0bb62dd3fb
76 changed files with 1635 additions and 639 deletions
9
src/types/index.d.ts
vendored
9
src/types/index.d.ts
vendored
|
|
@ -170,7 +170,14 @@ export type TPollCreateData = {
|
|||
endsAt?: number
|
||||
}
|
||||
|
||||
export type TSearchType = 'profile' | 'profiles' | 'notes' | 'note' | 'hashtag' | 'relay'
|
||||
export type TSearchType =
|
||||
| 'profile'
|
||||
| 'profiles'
|
||||
| 'notes'
|
||||
| 'note'
|
||||
| 'hashtag'
|
||||
| 'relay'
|
||||
| 'externalContent'
|
||||
|
||||
export type TSearchParams = {
|
||||
type: TSearchType
|
||||
|
|
|
|||
19
src/types/twitter.d.ts
vendored
Normal file
19
src/types/twitter.d.ts
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
declare global {
|
||||
interface Window {
|
||||
twttr?: {
|
||||
widgets: {
|
||||
createTweet: (
|
||||
tweetId: string,
|
||||
container: HTMLElement,
|
||||
options?: {
|
||||
theme?: 'light' | 'dark'
|
||||
dnt?: boolean
|
||||
conversation?: 'none' | 'all'
|
||||
}
|
||||
) => Promise<HTMLElement | undefined>
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue