Slight changes to tsconfigs to fix bug with yarn docs
This commit is contained in:
parent
50fc3ce961
commit
9e12f96904
5 changed files with 6 additions and 7 deletions
|
@ -10,6 +10,8 @@
|
|||
"dist"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"noEmit": false,
|
||||
"emitDeclarationOnly": true,
|
||||
"outDir": "./dist/types"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
"include": ["src"],
|
||||
"exclude": ["node_modules", "dist"],
|
||||
"compilerOptions": {
|
||||
"emitDeclarationOnly": true,
|
||||
"rootDir": "src",
|
||||
"outDir": "./dist/types",
|
||||
"baseUrl": "src",
|
||||
|
|
|
@ -22,11 +22,7 @@ Import the `TLDraw` React component and use it in your app.
|
|||
import { TLDraw } from '@tldraw/tldraw'
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<div>
|
||||
<TLDraw />
|
||||
</div>
|
||||
)
|
||||
return <TLDraw />
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -38,6 +34,7 @@ The `TLDraw` React component is the [tldraw](https://tldraw.com) editor exported
|
|||
|
||||
| Prop | Type | Description |
|
||||
| --------------- | ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `id` | `string` | (optional) An id under which to persist the component's state. |
|
||||
| `document` | `TLDrawDocument` | (optional) An initial [`TLDrawDocument`](#tldrawdocument) object. |
|
||||
| `currentPageId` | `string` | (optional) A current page id, referencing the `TLDrawDocument` object provided via the `document` prop. |
|
||||
| `onMount` | `(TLDrawState) => void` | (optional) A callback function that will be called when the editor first mounts, receiving the current `TLDrawState`. |
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
"dist"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"noEmit": false,
|
||||
"emitDeclarationOnly": true,
|
||||
"outDir": "./dist/types"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
"include": ["src"],
|
||||
"exclude": ["node_modules", "dist"],
|
||||
"compilerOptions": {
|
||||
"emitDeclarationOnly": true,
|
||||
"rootDir": "src",
|
||||
"outDir": "./dist/types",
|
||||
"baseUrl": "src",
|
||||
|
|
Loading…
Reference in a new issue