Skip to content

Commit

Permalink
fix release errors from previous pr (#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dashron authored Apr 12, 2024
1 parent c17091a commit 5e3934c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions example/RenderError.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { PropsWithChildren } from 'react';

interface Props {}

Expand All @@ -7,7 +7,7 @@ interface State {
message?: string;
}

class RenderError extends React.Component<Props, State> {
class RenderError extends React.Component<PropsWithChildren<Props>, State> {
state = { hasError: false, message: null };

static getDerivedStateFromError(error: Error) {
Expand Down
5 changes: 2 additions & 3 deletions processor/transform/callouts.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { visit } from 'unist-util-visit';
import { Node } from 'unist';
import emojiRegex from 'emoji-regex';
import { Blockquote, BlockContent, Parent, DefinitionContent, Root } from 'mdast';
import { Blockquote, BlockContent, Parent, DefinitionContent } from 'mdast';

const regex = `^(${emojiRegex().source}|⚠)(\\s+|$)`;

Expand Down Expand Up @@ -32,7 +31,7 @@ interface Callout extends Parent {
}

const calloutTransformer = () => {
return (tree: Root) => {
return (tree: any) => {
visit(tree, 'blockquote', (node: Blockquote | Callout) => {
try {
if (!(node.children[0].type === 'paragraph' && node.children[0].children[0].type === 'text')) return;
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"DOM.iterable"
],
"module": "es2020",
"moduleResolution": "node",
"moduleResolution": "Bundler",
"outDir": "dist",
"sourceMap": true,
"types": ["vitest/globals"]
Expand Down

0 comments on commit 5e3934c

Please sign in to comment.