Skip to content

Commit

Permalink
Fix broken typing based on PureComponent's defaultProps
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmost committed Sep 7, 2023
1 parent 8523011 commit 7150ddc
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 69 deletions.
2 changes: 1 addition & 1 deletion packages/react-code-blocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"maintainers": [
"thomasmost"
],
"version": "0.1.3",
"version": "0.1.4",
"homepage": "https://react-code-blocks.rajinwonderland.vercel.app",
"license": "MIT",
"main": "dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/react-code-blocks/src/components/CodeBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ export default class CodeBlock extends PureComponent<CodeBlockProps, {}> {

static displayName = 'CodeBlock';

static defaultProps = {
static defaultProps: CodeBlockProps = {
text: "",
showLineNumbers: true,
wrapLongLines: false,
startingLineNumber : 1,
Expand Down
104 changes: 37 additions & 67 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7150ddc

Please sign in to comment.