Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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 createScalarToken
import { createScalarToken } from "https://deno.land/x/windmill@v1.394.4/node_modules/yaml/dist/parse/cst-scalar.d.ts";

Create a new scalar token with value

Values that represent an actual string but may be parsed as a different type should use a type other than 'PLAIN', as this function does not support any schema operations and won't check for such conflicts.

Parameters

value: string

The string representation of the value, which will have its content properly indented.

context: { end?: SourceToken[]; implicitKey?: boolean; indent: number; inFlow?: boolean; offset?: number; type?: Scalar.Type; }

Comments and whitespace after the end of the value, or after the block scalar header. If undefined, a newline will be added.