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:
@@ -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';
|
||||
|
||||
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', () => {
|
||||
|
||||
Reference in New Issue
Block a user