Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/windmill/node_modules/yaml/dist/parse/cst-scalar.d.ts>resolveAsScalar

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
function resolveAsScalar
import { resolveAsScalar } from "https://deno.land/x/windmill@v1.43.1/node_modules/yaml/dist/parse/cst-scalar.d.ts";

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