File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ function template<T>(parser: Parser<T>): Parser<T> {
81
81
const simpleUnit = memoize ( ( kind : string ) => word . skip ( tag ( keyword ( kind ) ) ) ) ;
82
82
function detectRepetition (
83
83
source : ReadonlyArray < string > ,
84
- ) : { before : string ; repeat : string ; after : string } {
84
+ ) : Readonly < { before : string ; repeat : string ; after : string } > {
85
85
if ( source . length === 1 ) {
86
86
return { before : source [ 0 ] , repeat : "" , after : "" } ;
87
87
}
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ function binaryWords(
197
197
} else if ( ! contentWordSet . has ( words [ 1 ] ) ) {
198
198
throw new UnrecognizedError ( `"${ words [ 1 ] } " as content word` ) ;
199
199
} else {
200
- return words as [ string , string ] ;
200
+ return words as readonly [ bottom : string , top : string ] ;
201
201
}
202
202
} ) ;
203
203
}
You can’t perform that action at this time.
0 commit comments