mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-17 19:21:20 +03:00
fix: caseFreeTags types (#267)
* fix: try to fix types * fix: changeset
This commit is contained in:
@@ -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
|
||||||
@@ -10,8 +10,12 @@ import { render } from '@testing-library/react'
|
|||||||
|
|
||||||
import BBCode from '../src';
|
import BBCode from '../src';
|
||||||
|
|
||||||
const renderBBCode = (input, options) => render(
|
import type { BBobCoreOptions } from "@bbob/types";
|
||||||
<BBCode plugins={[preset()]} options={options}>{input}</BBCode>
|
|
||||||
|
const plugins = [preset()]
|
||||||
|
|
||||||
|
const renderBBCode = (input: string, options?: BBobCoreOptions) => render(
|
||||||
|
<BBCode plugins={plugins} options={options}>{input}</BBCode>
|
||||||
).container.innerHTML;
|
).container.innerHTML;
|
||||||
|
|
||||||
describe('@bbob/react', () => {
|
describe('@bbob/react', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user