Skip to content

Commit

Permalink
Change context constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
scripthunter7 committed Oct 13, 2023
1 parent 40e0c30 commit f3aeafc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/css-tokenizer/src/common/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ export class TokenizerContext {
* @param source Source string
* @param onToken Callback function to call when a token is found
* @param onError Callback function to call when a parsing error occurs
* @param shiftOffset Number of code points to shift the offset (default: 0)
* @param shiftOffset Number of code points to shift the offset
*/
constructor(source: string, onToken: OnTokenCallback, onError: OnErrorCallback, shiftOffset = 0) {
constructor(source: string, onToken: OnTokenCallback, onError: OnErrorCallback, shiftOffset: number) {
// Set the source and offset
this.source = source;
this.cursor = shiftOffset;
Expand Down

0 comments on commit f3aeafc

Please sign in to comment.