Skip to content

Commit

Permalink
fix: caseFreeTags types (#267)
Browse files Browse the repository at this point in the history
* fix: try to fix types

* fix: changeset
  • Loading branch information
JiLiZART authored Nov 26, 2024
1 parent 5b14eea commit 8a9cfd6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .changeset/purple-bottles-return.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
"@bbob/react": patch
"@bbob/cli": patch
"@bbob/core": patch
"@bbob/html": patch
"@bbob/parser": patch
"@bbob/plugin-helper": patch
"@bbob/preset": patch
"@bbob/preset-html5": patch
"@bbob/preset-react": patch
"@bbob/preset-vue": patch
"@bbob/types": patch
"@bbob/vue2": patch
"@bbob/vue3": patch
---

Fix types for BbobCoreOptions
8 changes: 6 additions & 2 deletions packages/bbob-react/test/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ import { render } from '@testing-library/react'

import BBCode from '../src';

const renderBBCode = (input, options) => render(
<BBCode plugins={[preset()]} options={options}>{input}</BBCode>
import type { BBobCoreOptions } from "@bbob/types";

const plugins = [preset()]

const renderBBCode = (input: string, options?: BBobCoreOptions) => render(
<BBCode plugins={plugins} options={options}>{input}</BBCode>
).container.innerHTML;

describe('@bbob/react', () => {
Expand Down

0 comments on commit 8a9cfd6

Please sign in to comment.