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

x/windmill/node_modules/yaml/browser/index.js>CST.setScalarValue

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 CST.setScalarValue
import { CST } from "https://deno.land/x/windmill@v1.421.2/node_modules/yaml/browser/index.js";
const { setScalarValue } = CST;

Set the value of token to the given string value, overwriting any previous contents and type that it may have.

Best efforts are made to retain any comments previously associated with the token, though all contents within a collection's items will be overwritten.

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

token

Any token. If it does not include an indent value, the value will be stringified as if it were an implicit key.

value

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

optional
context = [UNSUPPORTED]

In most cases, values after a key should have an additional level of indentation.