Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Include the types in the build
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Mar 5, 2021
1 parent c77b185 commit d148a0b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/select-list-view.ts
Expand Up @@ -8,8 +8,9 @@ export type EtchElement = HTMLElement
type EtchScheduler = any

import { SelectListProperties } from './select-list-properties'
export type { SelectListProperties } from './select-list-properties'

module.exports = class SelectListView {
export default class SelectListView {
/** When creating a new instance of a select list, or when calling `update` on an existing one,
you can supply an object with the typeof SelectListProperties */
props: SelectListProperties
Expand Down Expand Up @@ -434,6 +435,8 @@ module.exports = class SelectListView {
}
}
}
// cjs export for backward compatibility
module.exports = SelectListView

type ListItemViewProps = { element: EtchElement ; selected: boolean; onclick: () => void }

Expand Down

0 comments on commit d148a0b

Please sign in to comment.