Fix no-use-before-define

This commit is contained in:
AkiraFukushima 2023-01-05 00:48:03 +09:00
parent 0450c87366
commit c176f371ad
No known key found for this signature in database
GPG key ID: B6E51BAC4DE1A957
6 changed files with 105 additions and 105 deletions

View file

@ -1,32 +1,4 @@
namespace Entity {
export type Attachment = {
id: string
type: 'unknown' | 'image' | 'gifv' | 'video' | 'audio'
url: string
remote_url: string | null
preview_url: string | null
text_url: string | null
meta: Meta | null
description: string | null
blurhash: string | null
}
export type Meta = {
original?: Sub
small?: Sub
focus?: Focus
length?: string
duration?: number
fps?: number
size?: string
width?: number
height?: number
aspect?: number
audio_encode?: string
audio_bitrate?: string
audio_channel?: string
}
export type Sub = {
// For Image, Gifv, and Video
width?: number
@ -46,4 +18,32 @@ namespace Entity {
x: number
y: number
}
export type Meta = {
original?: Sub
small?: Sub
focus?: Focus
length?: string
duration?: number
fps?: number
size?: string
width?: number
height?: number
aspect?: number
audio_encode?: string
audio_bitrate?: string
audio_channel?: string
}
export type Attachment = {
id: string
type: 'unknown' | 'image' | 'gifv' | 'video' | 'audio'
url: string
remote_url: string | null
preview_url: string | null
text_url: string | null
meta: Meta | null
description: string | null
blurhash: string | null
}
}

View file

@ -1,11 +1,4 @@
namespace Entity {
export type PushSubscription = {
id: string
endpoint: string
server_key: string
alerts: Alerts
}
export type Alerts = {
follow: boolean
favourite: boolean
@ -13,4 +6,11 @@ namespace Entity {
reblog: boolean
poll: boolean
}
export type PushSubscription = {
id: string
endpoint: string
server_key: string
alerts: Alerts
}
}

View file

@ -1,32 +1,4 @@
namespace MastodonEntity {
export type Attachment = {
id: string
type: 'unknown' | 'image' | 'gifv' | 'video' | 'audio'
url: string
remote_url: string | null
preview_url: string | null
text_url: string | null
meta: Meta | null
description: string | null
blurhash: string | null
}
export type Meta = {
original?: Sub
small?: Sub
focus?: Focus
length?: string
duration?: number
fps?: number
size?: string
width?: number
height?: number
aspect?: number
audio_encode?: string
audio_bitrate?: string
audio_channel?: string
}
export type Sub = {
// For Image, Gifv, and Video
width?: number
@ -46,4 +18,32 @@ namespace MastodonEntity {
x: number
y: number
}
export type Meta = {
original?: Sub
small?: Sub
focus?: Focus
length?: string
duration?: number
fps?: number
size?: string
width?: number
height?: number
aspect?: number
audio_encode?: string
audio_bitrate?: string
audio_channel?: string
}
export type Attachment = {
id: string
type: 'unknown' | 'image' | 'gifv' | 'video' | 'audio'
url: string
remote_url: string | null
preview_url: string | null
text_url: string | null
meta: Meta | null
description: string | null
blurhash: string | null
}
}

View file

@ -1,11 +1,4 @@
namespace MastodonEntity {
export type PushSubscription = {
id: string
endpoint: string
server_key: string
alerts: Alerts
}
export type Alerts = {
follow: boolean
favourite: boolean
@ -13,4 +6,11 @@ namespace MastodonEntity {
reblog: boolean
poll: boolean
}
export type PushSubscription = {
id: string
endpoint: string
server_key: string
alerts: Alerts
}
}

View file

@ -1,32 +1,4 @@
namespace PleromaEntity {
export type Attachment = {
id: string
type: 'unknown' | 'image' | 'gifv' | 'video' | 'audio'
url: string
remote_url: string | null
preview_url: string | null
text_url: string | null
meta: Meta | null
description: string | null
blurhash: string | null
}
export type Meta = {
original?: Sub
small?: Sub
focus?: Focus
length?: string
duration?: number
fps?: number
size?: string
width?: number
height?: number
aspect?: number
audio_encode?: string
audio_bitrate?: string
audio_channel?: string
}
export type Sub = {
// For Image, Gifv, and Video
width?: number
@ -46,4 +18,32 @@ namespace PleromaEntity {
x: number
y: number
}
export type Meta = {
original?: Sub
small?: Sub
focus?: Focus
length?: string
duration?: number
fps?: number
size?: string
width?: number
height?: number
aspect?: number
audio_encode?: string
audio_bitrate?: string
audio_channel?: string
}
export type Attachment = {
id: string
type: 'unknown' | 'image' | 'gifv' | 'video' | 'audio'
url: string
remote_url: string | null
preview_url: string | null
text_url: string | null
meta: Meta | null
description: string | null
blurhash: string | null
}
}

View file

@ -1,11 +1,4 @@
namespace PleromaEntity {
export type PushSubscription = {
id: string
endpoint: string
server_key: string
alerts: Alerts
}
export type Alerts = {
follow: boolean
favourite: boolean
@ -13,4 +6,11 @@ namespace PleromaEntity {
reblog: boolean
poll: boolean
}
export type PushSubscription = {
id: string
endpoint: string
server_key: string
alerts: Alerts
}
}