Skip to content

Commit 6708c7f

Browse files
committed
Update internals for fixes in TypeScript
1 parent 46afef7 commit 6708c7f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/core.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,12 @@ function highlight(value, language) {
148148
* @returns {void}
149149
*/
150150
function register(syntax) {
151-
// @ts-expect-error: runtime.
152151
if (typeof syntax !== 'function' || !syntax.displayName) {
153152
throw new Error('Expected `function` for `syntax`, got `' + syntax + '`')
154153
}
155154

156155
// Do not duplicate registrations.
157-
// @ts-expect-error: TypeScript is wrong.
158156
if (!own.call(refractor.languages, syntax.displayName)) {
159-
// @ts-expect-error: TypeScript is wrong.
160157
syntax(refractor)
161158
}
162159
}

0 commit comments

Comments
 (0)