@rbxts/charm
Advanced tools
Comparing version 0.5.0 to 0.5.1
{ | ||
"name": "@rbxts/charm", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Atomic state management for Roblox", | ||
@@ -5,0 +5,0 @@ "main": "src/init.lua", |
@@ -246,3 +246,12 @@ export = Charm; | ||
type DataTypes = { | ||
[P in keyof CheckableTypes as P extends keyof CheckablePrimitives ? never : P]: CheckableTypes[P]; | ||
}; | ||
/** | ||
* A type that should not be made partial in patches. | ||
*/ | ||
type DataType = DataTypes[keyof DataTypes]; | ||
/** | ||
* A partial patch that can be applied to the state to update it. Represents | ||
@@ -262,5 +271,7 @@ * the difference between the current state and the next state. | ||
? readonly (SyncPatch<T> | None | undefined)[] | ||
: State extends object | ||
? { readonly [P in keyof State]?: SyncPatch<State[P]> } | ||
: State); | ||
: State extends DataType | ||
? State | ||
: State extends object | ||
? { readonly [P in keyof State]?: SyncPatch<State[P]> } | ||
: State); | ||
@@ -267,0 +278,0 @@ /** |
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
59678
311