File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 77 *
88 */
99
10- export { negotiateLanguages , NegotiateLanguagesOptions } from "./negotiate_languages" ;
10+ export {
11+ negotiateLanguages , NegotiateLanguagesOptions
12+ } from "./negotiate_languages" ;
1113export { acceptedLanguages } from "./accepted_languages" ;
1214export { filterMatches } from "./matches" ;
Original file line number Diff line number Diff line change @@ -87,8 +87,8 @@ export abstract class SyntaxNode extends BaseNode {
8787
8888export class Resource extends SyntaxNode {
8989 public type = "Resource" as const ;
90- public body : Array < Entry | Junk > ;
91- constructor ( body : Array < Entry | Junk > = [ ] ) {
90+ public body : Array < Entry > ;
91+ constructor ( body : Array < Entry > = [ ] ) {
9292 super ( ) ;
9393 this . body = body ;
9494 }
@@ -421,7 +421,7 @@ export class Junk extends SyntaxNode {
421421}
422422
423423export class Span extends BaseNode {
424- public type = "Span" ;
424+ public type = "Span" as const ;
425425 public start : number ;
426426 public end : number ;
427427
@@ -433,7 +433,7 @@ export class Span extends BaseNode {
433433}
434434
435435export class Annotation extends SyntaxNode {
436- public type = "Annotation" ;
436+ public type = "Annotation" as const ;
437437 public code : string ;
438438 public arguments : Array < unknown > ;
439439 public message : string ;
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ export abstract class Transformer extends Visitor {
9393 return this . genericVisit ( node ) ;
9494 }
9595
96- genericVisit ( node : AST . BaseNode ) : AST . BaseNode | undefined {
96+ genericVisit ( node : AST . BaseNode ) : AST . BaseNode {
9797 for ( const key of Object . keys ( node ) ) {
9898 let prop = node [ key ] ;
9999 if ( prop instanceof AST . BaseNode ) {
You can’t perform that action at this time.
0 commit comments