Files
web-temp/layers/types/Common.ts

66 lines
1.3 KiB
TypeScript

import type { HTMLAttributes } from 'vue'
import type { StoveJsService } from '#layers/types/Stove'
export type ClassType = HTMLAttributes['class']
declare global {
interface Window {
stoveJsService?: StoveJsService
}
}
interface CommonRequestType {
baseApiUrl: string
gameId: string
}
interface CommonResponseType {
code?: number
message?: string
}
interface CommonPeriodType {
startDate?: string
endDate?: string
}
interface ParsedCustomLinkOptions {
tm: (key: string) => { txt: string }
query?: Record<string, any>
}
// 타입 정의
interface FooterMenuItem {
title: string
url: string
target?: string
active?: string
}
interface GameRatingInfo {
title: string
company_name: string
rating_grade: string
reg_no: string
prod_date: string
rating_class_no: string
rating_type: string
content_info: string
}
interface FooterData {
use_game_rating: boolean
game_rating_info: GameRatingInfo
use_dev_ci_url?: boolean
dev_ci_url?: string
dev_ci_img_path?: string
fund_display_yn?: string
fund_display_url?: string
}
interface DevCiConfig {
dev_ci_yn: boolean
dev_ci_img_path: string
}
export type { CommonRequestType, CommonResponseType, CommonPeriodType, ParsedCustomLinkOptions, FooterMenuItem, GameRatingInfo, FooterData, DevCiConfig }