Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/aether/deps.ts>YAML.CST.resolveAsScalar

A Deno library to interface with the Discord API
Latest
function YAML.CST.resolveAsScalar
import { YAML } from "https://deno.land/x/aether@v0.0.3/deps.ts";
const { resolveAsScalar } = YAML.CST;

If token is a CST flow or block scalar, determine its string value and a few other attributes. Otherwise, return null.

Parameters

optional
strict: boolean
optional
onError: (
offset: number,
code: ErrorCode,
message: string,
) => void

Returns

{ value: string; type: Scalar.Type | null; comment: string; range: Range; }

Parameters

token: Token | null | undefined
optional
strict: boolean
optional
onError: (
offset: number,
code: ErrorCode,
message: string,
) => void

Returns

{ value: string; type: Scalar.Type | null; comment: string; range: Range; } | null