Skip to content

API > @blocksuite/virgo > transformInput

Function: transformInput ​

transformInput<TextAttributes>( inputType, data, attributes, vRange, editor): void

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
inputTypestring
datanull | string
attributesTextAttributes
vRangeVRange
editorVEditor< {bold: null | true; code: null | true; italic: null | true; link: null | string; strike: null | true; underline: null | true;} >

Returns ​

void

Defined In ​

packages/virgo/src/utils/transform-input.ts:35