Skip to content

API > @blocksuite/virgo > transformDelta

Function: transformDelta ​

transformDelta<TextAttributes>(delta): (DeltaInsert< TextAttributes > | "\n")[]

Type parameters ​

Parameter
TextAttributes extends {bold: null | true; code: null | true; italic: null | true; link: null | string; strike: null | true; underline: null | true;}

Parameters ​

ParameterType
deltaDeltaInsert< TextAttributes >

Returns ​

(DeltaInsert< TextAttributes > | "\n")[]

Defined In ​

packages/virgo/src/utils/delta-convert.ts:4