Skip to content

fix: export Displayable for type annotation compatibility#824

Merged
pissang merged 1 commit intoecomfe:masterfrom
baojd42:fix-export-displayable
Sep 14, 2021
Merged

fix: export Displayable for type annotation compatibility#824
pissang merged 1 commit intoecomfe:masterfrom
baojd42:fix-export-displayable

Conversation

@baojd42
Copy link

@baojd42 baojd42 commented Sep 13, 2021

Export Displayable so it can be used for type annotation, especially in the case below

import * as zrender from 'zrender'

function (g: zrender.Group) {
    g.eachChild((el: zrender.Displayable) => { /* do something */ })
}

@pissang pissang merged commit bb2ffb1 into ecomfe:master Sep 14, 2021
@baojd42 baojd42 deleted the fix-export-displayable branch September 15, 2021 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants