Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 649 Bytes

prsc.ok.md

File metadata and controls

24 lines (14 loc) · 649 Bytes

Home > prsc > ok

ok() function

Creates a successful ParseResult with an undefined value. Use this to signal success in cases where no value is required.

Signature:

export declare function ok(offset: number): ParseResult<undefined>;

Parameters

Parameter Type Description
offset number The offset in the input at which to continue parsing

Returns:

ParseResult<undefined>