DigiChanges / solid-experience

https://solid-experience-one.vercel.app
MIT License
15 stars 14 forks source link

compatible with solidJs 1.5.0 #66

Closed hhhxxjj closed 2 years ago

hhhxxjj commented 2 years ago

createResource(authRepository.getAllPermissions()) isn't compatible with solidJs 1.5.0.

the error is as follows:

TS2345: Argument of type '(urlSearchParams?: QueryParams) => Promise<PermissionListResponse>' is not assignable to parameter of type 'ResourceFetcher<true, PermissionListResponse, unknown>'.   Types of parameters 'urlSearchParams' and 'k' are incompatible.     Type 'true' has no properties in common with type 'QueryParams'

Murzbul commented 2 years ago

Thanks for sharing the bug.

We will be updating it soon.

hhhxxjj commented 2 years ago

Thanks for the quick response. @Murzbul