BlockSuite API Documentation / @blocksuite/affine-block-database / databasePropertyConverts
Variable: databasePropertyConverts
const
databasePropertyConverts: ({convert
:ConvertFunction
<PropertyModel
<"multi-select"
, {options
:object
[]; },string
[],string
[]>,PropertyModel
<"select"
, {options
:object
[]; },null
|string
,null
|string
>>;from
:any
;to
:any
; } | {convert
:ConvertFunction
<PropertyModel
<"number"
, {decimal
:number
;format
:"number"
|"numberWithCommas"
|"percent"
|"currencyYen"
|"currencyINR"
|"currencyCNY"
|"currencyUSD"
|"currencyEUR"
|"currencyGBP"
; },null
|number
,null
|number
>,PropertyModel
<"progress"
, {},number
,number
>>;from
:any
;to
:any
; } | {convert
:ConvertFunction
<PropertyModel
<"progress"
, {},number
,number
>,PropertyModel
<"number"
, {decimal
:number
;format
:"number"
|"numberWithCommas"
|"percent"
|"currencyYen"
|"currencyINR"
|"currencyCNY"
|"currencyUSD"
|"currencyEUR"
|"currencyGBP"
; },null
|number
,null
|number
>>;from
:any
;to
:any
; } | {convert
:ConvertFunction
<PropertyModel
<"select"
, {options
:object
[]; },null
|string
,null
|string
>,PropertyModel
<"multi-select"
, {options
:object
[]; },string
[],string
[]>>;from
:any
;to
:any
; } | {convert
:ConvertFunction
<PropertyModel
<"rich-text"
, {},undefined
|RichTextCellType
,string
>,PropertyModel
<"select"
, {options
:object
[]; },null
|string
,null
|string
>>;from
:any
;to
:any
; } | {convert
:ConvertFunction
<PropertyModel
<"rich-text"
, {},undefined
|RichTextCellType
,string
>,PropertyModel
<"multi-select"
, {options
:object
[]; },string
[],string
[]>>;from
:any
;to
:any
; } | {convert
:ConvertFunction
<PropertyModel
<"rich-text"
, {},undefined
|RichTextCellType
,string
>,PropertyModel
<"number"
, {decimal
:number
;format
:"number"
|"numberWithCommas"
|"percent"
|"currencyYen"
|"currencyINR"
|"currencyCNY"
|"currencyUSD"
|"currencyEUR"
|"currencyGBP"
; },null
|number
,null
|number
>>;from
:any
;to
:any
; } | {convert
:ConvertFunction
<PropertyModel
<"rich-text"
, {},undefined
|RichTextCellType
,string
>,PropertyModel
<"progress"
, {},number
,number
>>;from
:any
;to
:any
; } | {convert
:ConvertFunction
<PropertyModel
<"rich-text"
, {},undefined
|RichTextCellType
,string
>,PropertyModel
<"checkbox"
, {},boolean
,boolean
>>;from
:any
;to
:any
; } | {convert
:ConvertFunction
<PropertyModel
<"checkbox"
, {},boolean
,boolean
>,PropertyModel
<"rich-text"
, {},undefined
|RichTextCellType
,string
>>;from
:any
;to
:any
; } | {convert
:ConvertFunction
<PropertyModel
<"multi-select"
, {options
:object
[]; },string
[],string
[]>,PropertyModel
<"rich-text"
, {},undefined
|RichTextCellType
,string
>>;from
:any
;to
:any
; } | {convert
:ConvertFunction
<PropertyModel
<"number"
, {decimal
:number
;format
:"number"
|"numberWithCommas"
|"percent"
|"currencyYen"
|"currencyINR"
|"currencyCNY"
|"currencyUSD"
|"currencyEUR"
|"currencyGBP"
; },null
|number
,null
|number
>,PropertyModel
<"rich-text"
, {},undefined
|RichTextCellType
,string
>>;from
:any
;to
:any
; } | {convert
:ConvertFunction
<PropertyModel
<"progress"
, {},number
,number
>,PropertyModel
<"rich-text"
, {},undefined
|RichTextCellType
,string
>>;from
:any
;to
:any
; } | {convert
:ConvertFunction
<PropertyModel
<"select"
, {options
:object
[]; },null
|string
,null
|string
>,PropertyModel
<"rich-text"
, {},undefined
|RichTextCellType
,string
>>;from
:any
;to
:any
; })[]
Defined in: packages/affine/blocks/block-database/src/properties/converts.ts:13