value-enhancer
Advanced tools
Comparing version 5.0.3 to 5.0.4
@@ -173,3 +173,3 @@ import { R as ReadonlyVal } from './typings-2bae36c2.js'; | ||
*/ | ||
type ReadonlyReactiveList<TValue> = Omit<ReactiveList<TValue>, "setLength" | "push" | "pop" | "pushHead" | "popHead" | "set" | "insert" | "delete" | "clear" | "replace" | "reverse" | "sort">; | ||
type ReadonlyReactiveList<TValue> = Pick<ReactiveList<TValue>, typeof Symbol.iterator | "$" | "array" | "length" | "entries" | "values" | "keys" | "get" | "first" | "last" | "splice" | "toString" | "toLocaleString" | "toJSON" | "dispose">; | ||
/** | ||
@@ -228,3 +228,3 @@ * Create a new ReactiveList. | ||
*/ | ||
type ReadonlyReactiveMap<TKey, TValue> = Omit<ReactiveMap<TKey, TValue>, "$" | "delete" | "clear" | "set" | "batchSet" | "replace"> & { | ||
type ReadonlyReactiveMap<TKey, TValue> = Pick<ReactiveMap<TKey, TValue>, typeof Symbol.iterator | typeof Symbol.toStringTag | "toJSON" | "dispose" | "forEach" | "get" | "has" | "size" | "entries" | "keys" | "values"> & { | ||
readonly $: ReadonlyVal<ReadonlyReactiveMap<TKey, TValue>>; | ||
@@ -288,3 +288,3 @@ }; | ||
*/ | ||
type ReadonlyReactiveSet<TValue> = Omit<ReactiveSet<TValue>, "$" | "delete" | "clear" | "add" | "replace"> & { | ||
type ReadonlyReactiveSet<TValue> = Pick<ReactiveSet<TValue>, typeof Symbol.iterator | typeof Symbol.toStringTag | "toJSON" | "dispose" | "forEach" | "has" | "size" | "entries" | "keys" | "values"> & { | ||
readonly $: ReadonlyVal<ReadonlyReactiveSet<TValue>>; | ||
@@ -291,0 +291,0 @@ }; |
{ | ||
"name": "value-enhancer", | ||
"version": "5.0.3", | ||
"version": "5.0.4", | ||
"private": false, | ||
@@ -46,3 +46,3 @@ "description": "A tiny library to enhance value with reactive wrapper.", | ||
"prepublishOnly": "pnpm run build", | ||
"lint": "eslint --ext .ts,.tsx . && prettier --check .", | ||
"lint": "eslint --ext .ts,.tsx . && prettier --check . && tsc --noEmit", | ||
"test": "tsc --noEmit -p ./test/tsconfig.json && jest", | ||
@@ -49,0 +49,0 @@ "docs": "typedoc --options typedoc.json", |
@@ -202,16 +202,19 @@ import { readonlyVal } from "../readonly-val"; | ||
*/ | ||
export type ReadonlyReactiveList<TValue> = Omit< | ||
export type ReadonlyReactiveList<TValue> = Pick< | ||
ReactiveList<TValue>, | ||
| "setLength" | ||
| "push" | ||
| "pop" | ||
| "pushHead" | ||
| "popHead" | ||
| "set" | ||
| "insert" | ||
| "delete" | ||
| "clear" | ||
| "replace" | ||
| "reverse" | ||
| "sort" | ||
| typeof Symbol.iterator | ||
| "$" | ||
| "array" | ||
| "length" | ||
| "entries" | ||
| "values" | ||
| "keys" | ||
| "get" | ||
| "first" | ||
| "last" | ||
| "splice" | ||
| "toString" | ||
| "toLocaleString" | ||
| "toJSON" | ||
| "dispose" | ||
>; | ||
@@ -218,0 +221,0 @@ |
@@ -45,5 +45,15 @@ import { readonlyVal } from "../readonly-val"; | ||
*/ | ||
export type ReadonlyReactiveMap<TKey, TValue> = Omit< | ||
export type ReadonlyReactiveMap<TKey, TValue> = Pick< | ||
ReactiveMap<TKey, TValue>, | ||
"$" | "delete" | "clear" | "set" | "batchSet" | "replace" | ||
| typeof Symbol.iterator | ||
| typeof Symbol.toStringTag | ||
| "toJSON" | ||
| "dispose" | ||
| "forEach" | ||
| "get" | ||
| "has" | ||
| "size" | ||
| "entries" | ||
| "keys" | ||
| "values" | ||
> & { | ||
@@ -50,0 +60,0 @@ readonly $: ReadonlyVal<ReadonlyReactiveMap<TKey, TValue>>; |
@@ -45,5 +45,14 @@ import { readonlyVal } from "../readonly-val"; | ||
*/ | ||
export type ReadonlyReactiveSet<TValue> = Omit< | ||
export type ReadonlyReactiveSet<TValue> = Pick< | ||
ReactiveSet<TValue>, | ||
"$" | "delete" | "clear" | "add" | "replace" | ||
| typeof Symbol.iterator | ||
| typeof Symbol.toStringTag | ||
| "toJSON" | ||
| "dispose" | ||
| "forEach" | ||
| "has" | ||
| "size" | ||
| "entries" | ||
| "keys" | ||
| "values" | ||
> & { | ||
@@ -50,0 +59,0 @@ readonly $: ReadonlyVal<ReadonlyReactiveSet<TValue>>; |
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
149640
4258