Slight changes to tsconfigs to fix bug with `yarn docs`

pull/73/head
Steve Ruiz 2021-09-04 22:32:05 +01:00
rodzic 50fc3ce961
commit 9e12f96904
5 zmienionych plików z 6 dodań i 7 usunięć

Wyświetl plik

@ -10,6 +10,8 @@
"dist"
],
"compilerOptions": {
"noEmit": false,
"emitDeclarationOnly": true,
"outDir": "./dist/types"
}
}

Wyświetl plik

@ -3,7 +3,6 @@
"include": ["src"],
"exclude": ["node_modules", "dist"],
"compilerOptions": {
"emitDeclarationOnly": true,
"rootDir": "src",
"outDir": "./dist/types",
"baseUrl": "src",

Wyświetl plik

@ -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`. |

Wyświetl plik

@ -10,6 +10,8 @@
"dist"
],
"compilerOptions": {
"noEmit": false,
"emitDeclarationOnly": true,
"outDir": "./dist/types"
}
}

Wyświetl plik

@ -3,7 +3,6 @@
"include": ["src"],
"exclude": ["node_modules", "dist"],
"compilerOptions": {
"emitDeclarationOnly": true,
"rootDir": "src",
"outDir": "./dist/types",
"baseUrl": "src",