fix: create missing scripts/types/ TypeScript definitions and unblock from .gitignore#414
Merged
pethers merged 3 commits intostricttypingfrom Feb 21, 2026
Merged
Conversation
Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
… gitignore Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add evening analysis content validator for assessment quality
fix: create missing scripts/types/ TypeScript definitions and unblock from .gitignore
Feb 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
npx tsc --project tsconfig.scripts.json --noEmitwas failing with 80+TS2307: Cannot find module './types/*.js'errors because thescripts/types/directory was never committed — it was silently excluded by thetypes/pattern in.gitignore.Changes
.gitignore!scripts/types/negation so the directory is tracked by gitscripts/types/— new type definition fileslanguage.tsLanguage(14-language union)article.tsArticleData,ArticleType,ArticleCategory,GenerationResult,GeneratedArticle,MCPCallRecord,BreakingEventData,BreakingNewsOptions,BreakingNewsValidationcontent.tsBreadcrumbLabels,FooterLabelSet,ContentLabelSet,CommitteeNameMapeditorial.tsEditorialPillar,PillarHeadings,LocalizedPillarHeadingsvalidation.tsStructureValidation,EveningAnalysisValidation,QualityResult,CrossRefValidationResult,BatchValidationResult,CISummary,RequiredToolsMapmcp.tsMCPClientConfig,JsonRpcRequest/Response, search/filter param types,RiksdagDocumentworkflow.tsWorkflowState,MCPCacheEntry,RecentArticleEntry,DuplicateCheckResult,WorkflowRecordparty.tsPartyCode,PartyVariantMapType fixes resolved alongside missing files
QualityResult— optional fields to accommodate the early-error return path inarticle-quality-enhancer.tsRiksdagDocument— addeddokumentnamn?andid?to fix'{}' not assignable to 'string'inmcp-client.tsMCPCallRecord.resulttyped asunknown(notunknown[]) to matchfetchVotingRecordsreturnArticleTypeextended with'breaking';BreakingEventData/Options/Validationadded to unblocknews-types/breaking-news.tsand its tests💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.