Fix TypeScript compilation errors in examples#497
Merged
xuyushun441-sys merged 4 commits intomainfrom Feb 3, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Add @objectstack/runtime dependency to examples/features package.json - Export RouteEntry type from runtime package - Fix pluginSource property access in registry-example.ts - Add type annotations to middleware parameter in middleware-example.ts - Add enabled field to all middleware registrations - Fix MockProtocolProvider type casting in rest-server-example.ts - Add missing config fields (objectParamStyle, cacheTtl, defaultAtomic) - Add type annotation to newUser variable - Add RouteEntry type to route parameter Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Rename 'req' to 'request' in batch operation methods for better code clarity Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix issue with action run step
Fix TypeScript compilation errors in examples/features
Feb 3, 2026
Contributor
|
@copilot fix build |
- Fix plugin-crm import path: ../../plugin-bi -> ../plugin-bi - Fix guide-cli import path: ../../plugin-advanced-crm -> ../plugin-crm - Add manifest to guide-cli config (required for all apps) - Remove broken CRMPlugin import from guide-cli (simplify example) Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Contributor
Author
Fixed in commit 7305cdf. The build was failing because:
All builds now pass successfully. ✅ |
Copilot
AI
changed the title
Fix TypeScript compilation errors in examples/features
Fix TypeScript compilation errors in examples
Feb 3, 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.
CI build failing due to TypeScript errors in
examples/featuresand incorrect import paths inexamples/guide-cliandexamples/plugin-crm.Changes
Dependency & Exports
@objectstack/runtimetoexamples/features/package.jsonRouteEntrytype from runtime packageType Safety in examples/features
registry-example.ts: Type guard formetadata.pluginSourceaccessmiddleware-example.ts: AddedMiddlewaretype to forEach callback,enabled: trueto all registrationsrest-server-example.ts:routeparameter andnewUservariableobjectParamStyle,cacheTtl,defaultAtomicImport Path Corrections
examples/plugin-crm/objectstack.config.ts: Fixed import path from../../plugin-bito../plugin-biexamples/guide-cli/objectstack.config.ts:../../plugin-advanced-crmto../plugin-crmmanifestfield for app configurationAll example files now compile with strict TypeScript checks and the full build passes successfully.
Original prompt
💡 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.