Skip to content

feat: add typed registry for type-safe function names and signatures#9

Merged
tapava merged 2 commits into
mainfrom
feature/typed-registry
Jan 18, 2026
Merged

feat: add typed registry for type-safe function names and signatures#9
tapava merged 2 commits into
mainfrom
feature/typed-registry

Conversation

@tapava
Copy link
Copy Markdown
Owner

@tapava tapava commented Jan 18, 2026

Closes #5
Close #7

  • Add ComputeFunctionRegistry interface for declaration merging
  • Update ComputeKit.register() and run() with typed registry support
  • Update React hooks (useCompute, useComputeCallback, useComputeFunction, useParallelBatch)
  • Add DefineFunction helper type for cleaner registry definitions
  • Export all registry types from @computekit/core and @computekit/react
  • Update documentation with typed registry usage examples

Users can now extend ComputeFunctionRegistry to get:

  • Autocomplete for registered function names
  • Type inference for input/output types
  • Compile-time errors for incorrect usage

Closes #5

- Add ComputeFunctionRegistry interface for declaration merging
- Update ComputeKit.register() and run() with typed registry support
- Update React hooks (useCompute, useComputeCallback, useComputeFunction, useParallelBatch)
- Add DefineFunction helper type for cleaner registry definitions
- Export all registry types from @computekit/core and @computekit/react
- Update documentation with typed registry usage examples

Users can now extend ComputeFunctionRegistry to get:
- Autocomplete for registered function names
- Type inference for input/output types
- Compile-time errors for incorrect usage
@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
computekit-demo Ready Ready Preview, Comment Jan 18, 2026 4:14pm

@tapava tapava self-assigned this Jan 18, 2026
@tapava tapava merged commit 42cc556 into main Jan 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Type-safe function registry with automatic input/output type inference Add Typed registry

2 participants