useGetToPath error
<Button
onClick={() => {
go({
to: getToPath({
resource: "roles",
action: "list",
meta: {
id: 1,
authorId: 2,
},
}),
});
}}
>
Go To Edit Post
</Button>
Type 'string' is not assignable to type 'IResourceItem'.ts(2322)
index.d.ts(3, 5): The expected type comes from property 'resource' which is declared here on type 'UseToPathParams' error
onClick={() => {
go({
to: getToPath({
resource: "roles",
action: "list",
meta: {
id: 1,
authorId: 2,
},
}),
});
}}
>
Go To Edit Post
</Button>
Type 'string' is not assignable to type 'IResourceItem'.ts(2322)
index.d.ts(3, 5): The expected type comes from property 'resource' which is declared here on type 'UseToPathParams' error
