- resolveAsScalar(token, strict?, onError?): { 
 comment: string;
 range: Range;
 type: Type | null;
 value: string;
 }
- Parameters- token: FlowScalar | BlockScalar
- Optionalstrict: boolean
- OptionalonError: ((offset: number, code: ErrorCode, message: string) => void)- (offset, code, message): void
- Returns void
 
 
 
- Returns { 
 comment: string;
 range: Range;
 type: Type | null;
 value: string;
 }
- comment: string
- type: Type | null
- value: string
 
- resolveAsScalar(token, strict?, onError?): { 
 comment: string;
 range: Range;
 type: Type | null;
 value: string;
 } | null
- Parameters- token: undefined | null | yaml.CST.Token
- Optionalstrict: boolean
- OptionalonError: ((offset: number, code: ErrorCode, message: string) => void)- (offset, code, message): void
- Returns void
 
 
 
- Returns { 
 comment: string;
 range: Range;
 type: Type | null;
 value: string;
 } | null
If
tokenis a CST flow or block scalar, determine its string value and a few other attributes. Otherwise, returnnull.