fix: npm run lint(tsc --noEmit) 실제 0 에러 달성 — 기존 93건 정리
- tsconfig에 supabase 제외 (Deno 런타임 코드를 프론트 tsc+DOM lib로 검사하던 오류 79건) - src/vite-env.d.ts 추가 (import.meta.env 타입 6건) - @types/react 부재 환경의 JSX key 시임 4건 (ColorSwatchCard·WorkflowCard·EnvKeyRow·ApiCard) - transformPlan latestPosts 타입 캐스트, transformReport unknown 경유 캐스트, MultiChannelInput trim 가드 - Office 임시 잠금 파일(~$*.pptx) 삭제 반영 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WgWoJZAvvzMxTpWeenZSia
This commit is contained in:
1 parent
58fb4a317d
commit
85d72e4cfb
9 files changed
+13
-8
No files matched your search
@@ -194,8 +194,10 @@ function buildAssets(enrichment: EnrichmentData | undefined): { assets: AssetCar
|
||||
// Instagram posts → photo assets
|
||||
const igAccounts = enrichment.instagramAccounts || (enrichment.instagram ? [enrichment.instagram] : []);
|
||||
for (const ig of igAccounts) {
|
||||
if (ig.latestPosts) {
|
||||
for (const p of (ig.latestPosts as { type?: string; likes?: number; caption?: string }[]).slice(0, 3)) {
|
||||
const igPosts = (ig as { latestPosts?: { type?: string; likes?: number; caption?: string }[] })
|
||||
.latestPosts;
|
||||
if (igPosts) {
|
||||
for (const p of igPosts.slice(0, 3)) {
|
||||
assets.push({
|
||||
id: `ig-${assetIdx++}`,
|
||||
source: 'social',
|
||||
|
||||
@@ -159,7 +159,7 @@ function buildDiagnosis(report: ApiReport): DiagnosisItem[] {
|
||||
}
|
||||
if (ch.issues) {
|
||||
for (const issue of ch.issues) {
|
||||
const issueObj = issue as Record<string, unknown>;
|
||||
const issueObj = issue as unknown as Record<string, unknown>;
|
||||
const detail = typeof issue === 'string'
|
||||
? issue
|
||||
: typeof issueObj.issue === 'string'
|
||||
|
||||
Reference in new issue
Block a user