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

x/windmill/node_modules/yaml/browser/dist/parse/cst.js>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.417.3/node_modules/yaml/browser/dist/parse/cst.js";

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

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

context

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