UNPKG

@teamsparta/blog-system

Version:
119 lines (118 loc) 2.47 kB
export type BlogContent = { body: string; tag: string; }; export type BlogKeyword = { body: string; }; export type BlogFloating = { text: string; url: string; }; declare class Link { sendScrap: (param1: object) => void; } declare class Share { sendScrap: (param1: object) => void; } declare global { interface Window { Kakao: Kakao; } } declare class Kakao { init: (param1: string) => void; Link: Link; Share: Share; Auth: any; isInitialized: () => boolean; } export interface Filter { [key: string]: boolean; all: boolean; review: boolean; story: boolean; } export interface StoryDto { _id: string; url_title: string; created_at: Date; category: string; category_name?: string; view: number; title: string; banner_url: string; first_line: string; summary: string; readingTime: number; curationOrder: string; } export type Props = { blogPost: StoryDetailDTO; bannerAlt: string; parsedAlt: string; keywords: string; popularPosts: StoryDto[]; nearestRound: string; nearestRoundEnrollEndDate: string; }; export interface StoryDetailDTO { _id: string; deployed?: boolean; key_type?: "url_title" | "id"; url_title: string; created_at: string | Date; og_title: string; og_desc?: string; ogimg: string; category: string; summary: string; view: number; title: string; banner_url: string; contents?: { body: string; tag: string; alt?: string; link?: string; caption?: string; size?: string; }[]; floating?: { text: string; url: string; }; show: boolean; content?: string; readingTime?: number; curationOrder?: number; ctaShow?: boolean; keywords?: { body: string; }[]; serviceType?: string; } export interface KakaoInfoDto { storyTitle: string; ogImage: string; storyCategory: string; url: string; } export declare const filterCategory: { [filterType: string]: string[]; }; export declare const categoryTitle: { [serviceType: string]: { [categoryType: string]: string; }; }; export declare const storyUrlVersion: { [serviceType: string]: string; }; export declare const isFilterShown: { [serviceType: string]: boolean; }; export declare const serviceLogLabel: { [serviceType: string]: string; }; export {};