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> {
8181const simpleUnit = memoize ( ( kind : string ) => word . skip ( tag ( keyword ( kind ) ) ) ) ;
8282function detectRepetition (
8383 source : ReadonlyArray < string > ,
84- ) : { before : string ; repeat : string ; after : string } {
84+ ) : Readonly < { before : string ; repeat : string ; after : string } > {
8585 if ( source . length === 1 ) {
8686 return { before : source [ 0 ] , repeat : "" , after : "" } ;
8787 }
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ function binaryWords(
197197 } else if ( ! contentWordSet . has ( words [ 1 ] ) ) {
198198 throw new UnrecognizedError ( `"${ words [ 1 ] } " as content word` ) ;
199199 } else {
200- return words as [ string , string ] ;
200+ return words as readonly [ bottom : string , top : string ] ;
201201 }
202202 } ) ;
203203}
You can’t perform that action at this time.
0 commit comments