vtils

Home > utils > RichUrl > transform

RichUrl.transform() method

转换数据中的富链接。

Signature:

static transform<TData, TDesc>(data: TData, callback: (parsedRichUrl: ParsedRichUrl<TDesc>, data: TData) => Promise<string>): Promise<TData>;

Parameters

Parameter Type Description
data TData 数据
callback (parsedRichUrl: ParsedRichUrl<TDesc>, data: TData) => Promise<string> 回调

Returns:

Promise<TData>

返回转换后的数据