chore: update the type to reflect that the parent always exists

This commit is contained in:
Nick the Sick 2024-11-01 16:51:12 +01:00
parent 077c540cf9
commit c57ac23760
No known key found for this signature in database
GPG Key ID: F575992F156E5BCC

View File

@ -16,7 +16,8 @@ export interface CodeBlockLowlightOptions extends CodeBlockOptions {
export const CodeBlockLowlight = CodeBlock.extend<CodeBlockLowlightOptions>({
addOptions() {
return {
...this.parent?.(),
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
...this.parent!(),
lowlight: {},
}
},