@tldraw/store
Advanced tools
Comparing version 3.7.0-canary.d87af567ddf9 to 3.7.0-canary.db18f4c24992
import { Atom } from '@tldraw/state'; | ||
import { Computed } from '@tldraw/state'; | ||
import { Expand } from '@tldraw/utils'; | ||
import { Result } from '@tldraw/utils'; | ||
@@ -323,3 +324,3 @@ | ||
*/ | ||
create(properties: Pick<R, RequiredProperties> & Omit<Partial<R>, RequiredProperties>): R; | ||
create(properties: Expand<Pick<R, RequiredProperties> & Omit<Partial<R>, RequiredProperties>>): R; | ||
/** | ||
@@ -326,0 +327,0 @@ * Clone a record of this type. |
@@ -56,5 +56,5 @@ "use strict"; | ||
"@tldraw/store", | ||
"3.7.0-canary.d87af567ddf9", | ||
"3.7.0-canary.db18f4c24992", | ||
"cjs" | ||
); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@tldraw/store", | ||
"description": "A tiny little drawing app (store).", | ||
"version": "3.7.0-canary.d87af567ddf9", | ||
"version": "3.7.0-canary.db18f4c24992", | ||
"author": { | ||
@@ -45,4 +45,4 @@ "name": "tldraw Inc.", | ||
"dependencies": { | ||
"@tldraw/state": "3.7.0-canary.d87af567ddf9", | ||
"@tldraw/utils": "3.7.0-canary.d87af567ddf9", | ||
"@tldraw/state": "3.7.0-canary.db18f4c24992", | ||
"@tldraw/utils": "3.7.0-canary.db18f4c24992", | ||
"lodash.isequal": "^4.5.0" | ||
@@ -49,0 +49,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
import { objectMapEntries, structuredClone, uniqueId } from '@tldraw/utils' | ||
import { Expand, objectMapEntries, structuredClone, uniqueId } from '@tldraw/utils' | ||
import { IdOf, UnknownRecord } from './BaseRecord' | ||
@@ -73,3 +73,5 @@ import { StoreValidator } from './Store' | ||
*/ | ||
create(properties: Pick<R, RequiredProperties> & Omit<Partial<R>, RequiredProperties>): R { | ||
create( | ||
properties: Expand<Pick<R, RequiredProperties> & Omit<Partial<R>, RequiredProperties>> | ||
): R { | ||
const result = { ...this.createDefaultProperties(), id: this.createId() } as any | ||
@@ -76,0 +78,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
791478
12824
+ Added@tldraw/state@3.7.0-canary.db18f4c24992(transitive)
+ Added@tldraw/utils@3.7.0-canary.db18f4c24992(transitive)
- Removed@tldraw/state@3.7.0-canary.d87af567ddf9(transitive)
- Removed@tldraw/utils@3.7.0-canary.d87af567ddf9(transitive)