You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
plugins in TomSettings is currently typed as plugins: any[];.
According to the docs, plugins without options can be an array of strings, but with options its an object.
The code below works, but leads to a TS error:
const_select=newTomSelect('#select',{plugins: {dropdown_input: {},clear_button: {title: 'Remove all selected options',},remove_button: {title: 'Remove this item',},},})
Leads to:
TS2322: Type '{ dropdown_input: {}; clear_button: { title: string; }; remove_button: { title: string; }; }' is not assignable to type 'any[]'. Object literal may only specify known properties, and 'dropdown_input' does not exist in type 'any[]'.
(if you remove the dropdown_input property the error moves to clear_button)
The text was updated successfully, but these errors were encountered:
Hi!
plugins
inTomSettings
is currently typed asplugins: any[];
.According to the docs, plugins without options can be an array of strings, but with options its an object.
The code below works, but leads to a TS error:
Leads to:
(if you remove the
dropdown_input
property the error moves toclear_button
)The text was updated successfully, but these errors were encountered: