Skip to main content

getCustomizationBodyWithOffset

eslint-plugin-copilot Documentation v1.1.4


eslint-plugin-copilot Documentation / _internal/customization-body / getCustomizationBodyWithOffset

Function: getCustomizationBodyWithOffset()

function getCustomizationBodyWithOffset(sourceText: string): Readonly<{
body: string;
offset: number;
}>;

Defined in: _internal/customization-body.ts:8

Extract the Markdown body and its absolute character offset.

Parameters​

ParameterType
sourceTextstring

Returns​

Readonly<{ body: string; offset: number; }>