Skip to content

Commit 5de21af

Browse files
authored
Fix formatting
1 parent 13cb5ef commit 5de21af

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

dev/lib/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,9 +1338,9 @@ function extension(combined, extension) {
13381338
function combineHandles(left, right) {
13391339
if (!left) return right
13401340

1341-
return function (...params) {
1342-
const rightResult = right.apply(this, params)
1343-
return rightResult === false ? left.apply(this, params) : rightResult
1341+
return function (...parameters) {
1342+
const rightResult = right.apply(this, parameters)
1343+
return rightResult === false ? left.apply(this, parameters) : rightResult
13441344
}
13451345
}
13461346

dev/lib/types.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,10 @@ export type Handles = Record<string, Handle>
229229
* Nothing, if the token was fully handled by this extension and should be ignored by previous extensions / default logic.
230230
* Or `false`, if the token has not been handled by this extension and handling should fall back to preceding logic.
231231
*/
232-
export type Handle = (this: CompileContext, token: Token) => undefined | void | false
232+
export type Handle = (
233+
this: CompileContext,
234+
token: Token
235+
) => undefined | void | false
233236

234237
/**
235238
* Handle the case where the `right` token is open, but it is closed (by the

readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,9 @@ Handle a token (TypeScript type).
249249
###### Returns
250250
251251
Nothing, if the token was fully handled and should be ignored by previous
252-
extensions / default logic. Or `false`, if the token has not been handled here
253-
and the parser should fall back to preceding logic.
252+
extensions / default logic.
253+
Or `false`, if the token has not been handled here and the parser should fall
254+
back to preceding logic.
254255
255256
### `OnEnterError`
256257

0 commit comments

Comments
 (0)