Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.383.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