diff --git a/packages/core/tsconfig.build.json b/packages/core/tsconfig.build.json index 92e47bf2b..29f718e37 100644 --- a/packages/core/tsconfig.build.json +++ b/packages/core/tsconfig.build.json @@ -10,6 +10,8 @@ "dist" ], "compilerOptions": { + "noEmit": false, + "emitDeclarationOnly": true, "outDir": "./dist/types" } } diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json index 3c6698426..8d699f0f9 100644 --- a/packages/core/tsconfig.json +++ b/packages/core/tsconfig.json @@ -3,7 +3,6 @@ "include": ["src"], "exclude": ["node_modules", "dist"], "compilerOptions": { - "emitDeclarationOnly": true, "rootDir": "src", "outDir": "./dist/types", "baseUrl": "src", diff --git a/packages/tldraw/README.md b/packages/tldraw/README.md index 0ff14834a..3105ec9aa 100644 --- a/packages/tldraw/README.md +++ b/packages/tldraw/README.md @@ -22,11 +22,7 @@ Import the `TLDraw` React component and use it in your app. import { TLDraw } from '@tldraw/tldraw' function App() { - return ( -
- -
- ) + return } ``` @@ -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`. | diff --git a/packages/tldraw/tsconfig.build.json b/packages/tldraw/tsconfig.build.json index 92e47bf2b..29f718e37 100644 --- a/packages/tldraw/tsconfig.build.json +++ b/packages/tldraw/tsconfig.build.json @@ -10,6 +10,8 @@ "dist" ], "compilerOptions": { + "noEmit": false, + "emitDeclarationOnly": true, "outDir": "./dist/types" } } diff --git a/packages/tldraw/tsconfig.json b/packages/tldraw/tsconfig.json index 49fd2d297..909bcd3a9 100644 --- a/packages/tldraw/tsconfig.json +++ b/packages/tldraw/tsconfig.json @@ -3,7 +3,6 @@ "include": ["src"], "exclude": ["node_modules", "dist"], "compilerOptions": { - "emitDeclarationOnly": true, "rootDir": "src", "outDir": "./dist/types", "baseUrl": "src",