Skip to content

Commit

Permalink
fix: adjust the type of the "valuesOf" parameter (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
luckasnix authored Jun 1, 2024
1 parent 4a1df10 commit 4142e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/object-graph/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class ObjectGraph<NodeValue extends Record<string, unknown>> {
/**
* @description Returns all values of the provided property.
*/
public valuesOf(property: string) {
public valuesOf(property: keyof NodeValue) {
if (!property) {
throw new Error('Provide a value for the "property" parameter');
}
Expand Down

0 comments on commit 4142e1a

Please sign in to comment.