Skip to content

Commit

Permalink
Fix types for TS 4.9
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed May 1, 2023
1 parent 2e66f4c commit dc544ee
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions dev/lib/syntax.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* @typedef {import('micromark-util-types').Extension} Extension
* @typedef {import('micromark-util-types').Resolver} Resolver
* @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext
* @typedef {import('micromark-util-types').Tokenizer} Tokenizer
* @typedef {import('micromark-util-types').State} State
* @typedef {import('micromark-util-types').Token} Token
Expand Down Expand Up @@ -161,7 +162,10 @@ function resolveTable(events, context) {
return events
}

/** @type {Tokenizer} */
/**
* @this {TokenizeContext}
* @type {Tokenizer}
*/
function tokenizeTable(effects, ok, nok) {
const self = this
/** @type {Array<Align>} */
Expand Down Expand Up @@ -609,7 +613,10 @@ function tokenizeTable(effects, ok, nok) {
}
}

/** @type {Tokenizer} */
/**
* @this {TokenizeContext}
* @type {Tokenizer}
*/
function tokenizeNextPrefixedOrBlank(effects, ok, nok) {
let size = 0

Expand Down

0 comments on commit dc544ee

Please sign in to comment.