You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/compose/composer.ts
+18-4Lines changed: 18 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -133,7 +133,12 @@ export class Composer<
133
133
*
134
134
* Mostly useful at the end of input for an empty stream.
135
135
*/
136
-
streamInfo(){
136
+
streamInfo(): {
137
+
comment: string
138
+
directives: Directives
139
+
errors: YAMLParseError[]
140
+
warnings: YAMLWarning[]
141
+
}{
137
142
return{
138
143
comment: parsePrelude(this.prelude).comment,
139
144
directives: this.directives,
@@ -148,13 +153,19 @@ export class Composer<
148
153
* @param forceDoc - If the stream contains no document, still emit a final document including any comments and directives that would be applied to a subsequent document.
149
154
* @param endOffset - Should be set if `forceDoc` is also set, to set the document range end and to indicate errors correctly.
* @param forceDoc - If the stream contains no document, still emit a final document including any comments and directives that would be applied to a subsequent document.
246
257
* @param endOffset - Should be set if `forceDoc` is also set, to set the document range end and to indicate errors correctly.
0 commit comments