From 9c49d6f26a15fb6760c5d0bcb945e1a23c899480 Mon Sep 17 00:00:00 2001 From: cawcenter Date: Sun, 14 Dec 2025 13:30:43 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20TypeScript=20Schema=20Fixes:=20C?= =?UTF-8?q?omplete=20type=20safety=20for=20Directus=20SDK?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fixed DirectusSchema to use array types (Sites[], Posts[], etc.) as required by Directus SDK v11+ - Added missing fields to Pages interface: permalink, blocks, seo_title, seo_description, seo_image - Added missing fields to Posts interface: excerpt, featured_image, published_at, category, author - Added missing fields to Navigation interface: target - Added missing fields to GeneratedArticles: is_published, date_updated - Added missing fields to LocationsCities: county - Cleaned up 'as unknown' type casts in fetchers.ts - All TypeScript compilation errors resolved --- frontend/bundle-stats.html | 2 +- frontend/src/lib/directus/fetchers.ts | 7 ++- frontend/src/lib/schemas.ts | 80 ++++++++++++++++----------- 3 files changed, 55 insertions(+), 34 deletions(-) diff --git a/frontend/bundle-stats.html b/frontend/bundle-stats.html index 5cd83d6..77719d4 100644 --- a/frontend/bundle-stats.html +++ b/frontend/bundle-stats.html @@ -4929,7 +4929,7 @@ var drawChart = (function (exports) {