Skip to content

Commit

Permalink
feat: Accept any instead of client.Object (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellistarn authored Feb 22, 2024
1 parent fce5f0f commit 6ef983e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion object/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func GVK(o client.Object) schema.GroupVersionKind {
return lo.Must(apiutil.GVKForObject(o, scheme.Scheme))
}

func Unmarshal[T client.Object](raw []byte) *T {
func Unmarshal[T any](raw []byte) *T {
t := *new(T)
lo.Must0(yaml.Unmarshal(raw, &t))
return &t
Expand Down

0 comments on commit 6ef983e

Please sign in to comment.