-
Notifications
You must be signed in to change notification settings - Fork 72
ais-configure : Type '{ hitsPerPage: number; }' is not assignable to type 'PlainSearchParameters'. #969
Comments
Hi @johnico, thank you for raising the issue. I cannot reproduce it on my end so there's probably information I'm missing.
Thank you ! |
@aymeric-giraudet thanks i can put diffrent params than hitsPerPage without typing issue but nothing happen
code : module
Component.ts
html
|
Thanks @johnico for the info ! I have the same version but no such issue, if I create an object with the same type used by Configure it's fine : import { PlainSearchParameters } from 'algoliasearch-helper';
import { SearchOptions } from 'instantsearch.js';
const test: PlainSearchParameters = { hitsPerPage: 10 };
const test2: SearchOptions = { hitsPerPage: 10 }; Could you try that, check the definitions for |
@aymeric-giraudet I have added any to the object and it works now Also tried to remove node modules . I see the object in the node modules code . I have typescript 4.7.4 |
version : 4.14 on angular 14.5
i have tried to set hitsForPage in order to support pagination
so i bring the
NgAisConfigureModule
and added :
I got the following error on "hitsPerPage"
is here any way to define the items per page ?
The text was updated successfully, but these errors were encountered: