Skip to content

API > @blocksuite/blocks > GetDataViewSelection

Type alias: GetDataViewSelection<K, T> ​

GetDataViewSelection: <K, T> T extends {type: K;} ? T : never

Type parameters ​

ParameterDefault
K extends DataViewSelection["type"]-
TDataViewSelection

Defined In ​

packages/blocks/src/_common/utils/types.ts:99