Skip to content

Commit

Permalink
fix: collection type error
Browse files Browse the repository at this point in the history
  • Loading branch information
YeSuX committed Aug 19, 2023
1 parent 73f4e14 commit 6b61458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/collection/src/collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type CollectionElement = HTMLElement
// This is because we encountered issues with generic types that cannot be statically analysed
// due to creating them dynamically via createCollection.

function createCollection<ItemElement extends HTMLElement, T>(name: string, ItemData: ComponentObjectPropsOptions) {
function createCollection<ItemElement extends HTMLElement, T>(name: string, ItemData?: ComponentObjectPropsOptions) {
/* -----------------------------------------------------------------------------------------------
* CollectionProvider
* --------------------------------------------------------------------------------------------- */
Expand Down

0 comments on commit 6b61458

Please sign in to comment.