2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-05-15 11:59:37 +03:00

fix: caseFreeTags types (#267)

* fix: try to fix types

* fix: changeset
This commit is contained in:
Nikolay Kost
2024-11-26 13:11:20 +03:00
committed by GitHub
parent 5b14eeace2
commit 8a9cfd67c0
2 changed files with 23 additions and 2 deletions
+17
View File
@@ -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
+6 -2
View File
@@ -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', () => {