Skip to content

feat: make RegisterCustomTypeFunc generic with type inference - #46

Merged
paganotoni merged 1 commit into
mainfrom
feat-generic-register-custom-type
Mar 4, 2026
Merged

feat: make RegisterCustomTypeFunc generic with type inference#46
paganotoni merged 1 commit into
mainfrom
feat-generic-register-custom-type

Conversation

@tatang26

Copy link
Copy Markdown
Contributor

Replace the old (func(string) (any, error), any) signature with a generic [T any] version that infers the target type from the function return type. Supports concrete types, interface types, and backward-compatible any+hint registration. Includes tests for all paths.

Ultraworked with Sisyphus

Replace the old (func(string) (any, error), any) signature with a generic
[T any] version that infers the target type from the function return type.
Supports concrete types, interface types, and backward-compatible any+hint
registration. Includes tests for all paths.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
@paganotoni
paganotoni merged commit 16ba73d into main Mar 4, 2026
1 check passed
@paganotoni
paganotoni deleted the feat-generic-register-custom-type branch March 4, 2026 20:58
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.

2 participants