Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

fixing lifecycle type #140

Merged
merged 1 commit into from
Sep 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
* limitations under the License.
*/

import { BeagleUIElement } from '@zup-it/beagle-web'
import { IdentifiableBeagleUIElement } from '@zup-it/beagle-web'

export function transformItems(tabView: Record<string, any>) {
export function transformItems(tabView: IdentifiableBeagleUIElement) {
if (!Array.isArray(tabView.children)) return
tabView.children.forEach((child: BeagleUIElement) => {
tabView.children.forEach((child) => {
child._beagleComponent_ = 'beagle:tabitem'
})
}