PromptShield logo PromptShield
API DocsInterfaces

ScanContext

Defined in: types.ts:247

Execution context for scanning text fragments.

Used when scanning partial content extracted from a larger source.

Properties

baseCol?

optional baseCol: number

Defined in: types.ts:258

Base column offset.

Default

1

baseLine?

optional baseLine: number

Defined in: types.ts:252

Base line offset.

Default

1

lineOffsets?

optional lineOffsets: number[]

Defined in: types.ts:263

Precomputed line offsets for performance.

On this page