@tldraw/store
Advanced tools
Comparing version 3.7.0-canary.0d410e3f96b2 to 3.7.0-canary.13ac3b31f5ab
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.0d410e3f96b2", | ||
"3.7.0-canary.13ac3b31f5ab", | ||
"cjs" | ||
); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@tldraw/store", | ||
"description": "A tiny little drawing app (store).", | ||
"version": "3.7.0-canary.0d410e3f96b2", | ||
"version": "3.7.0-canary.13ac3b31f5ab", | ||
"author": { | ||
@@ -45,4 +45,4 @@ "name": "tldraw Inc.", | ||
"dependencies": { | ||
"@tldraw/state": "3.7.0-canary.0d410e3f96b2", | ||
"@tldraw/utils": "3.7.0-canary.0d410e3f96b2", | ||
"@tldraw/state": "3.7.0-canary.13ac3b31f5ab", | ||
"@tldraw/utils": "3.7.0-canary.13ac3b31f5ab", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
791478
12824
+ Added@tldraw/state@3.7.0-canary.13ac3b31f5ab(transitive)
+ Added@tldraw/utils@3.7.0-canary.13ac3b31f5ab(transitive)
- Removed@tldraw/state@3.7.0-canary.0d410e3f96b2(transitive)
- Removed@tldraw/utils@3.7.0-canary.0d410e3f96b2(transitive)