@leafer/decorator 1.0.0-rc.8 → 1.0.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/src/data.ts +2 -2
- package/types/index.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer/decorator",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.9",
|
|
4
4
|
"description": "@leafer/decorator",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"leaferjs"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@leafer/platform": "1.0.0-rc.
|
|
26
|
-
"@leafer/debug": "1.0.0-rc.
|
|
25
|
+
"@leafer/platform": "1.0.0-rc.9",
|
|
26
|
+
"@leafer/debug": "1.0.0-rc.9"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@leafer/interface": "1.0.0-rc.
|
|
29
|
+
"@leafer/interface": "1.0.0-rc.9"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/src/data.ts
CHANGED
|
@@ -192,7 +192,7 @@ export function cursorType(defaultValue?: IValue) {
|
|
|
192
192
|
// get
|
|
193
193
|
|
|
194
194
|
export function dataProcessor(processor: IObject) {
|
|
195
|
-
return (target:
|
|
195
|
+
return (target: IObject, _key?: string) => {
|
|
196
196
|
defineKey(target, '__DataProcessor', {
|
|
197
197
|
get() { return processor }
|
|
198
198
|
})
|
|
@@ -200,7 +200,7 @@ export function dataProcessor(processor: IObject) {
|
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
export function layoutProcessor(processor: IObject) {
|
|
203
|
-
return (target:
|
|
203
|
+
return (target: IObject, _key?: string) => {
|
|
204
204
|
defineKey(target, '__LayoutProcessor', {
|
|
205
205
|
get() { return processor }
|
|
206
206
|
})
|
package/types/index.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ declare function maskType(defaultValue?: IValue): (target: ILeaf, key: string) =
|
|
|
18
18
|
declare function eraserType(defaultValue?: IValue): (target: ILeaf, key: string) => void;
|
|
19
19
|
declare function hitType(defaultValue?: IValue): (target: ILeaf, key: string) => void;
|
|
20
20
|
declare function cursorType(defaultValue?: IValue): (target: ILeaf, key: string) => void;
|
|
21
|
-
declare function dataProcessor(processor: IObject): (target:
|
|
22
|
-
declare function layoutProcessor(processor: IObject): (target:
|
|
21
|
+
declare function dataProcessor(processor: IObject): (target: IObject, _key?: string) => void;
|
|
22
|
+
declare function layoutProcessor(processor: IObject): (target: IObject, _key?: string) => void;
|
|
23
23
|
declare function defineDataProcessor(target: ILeaf, key: string, defaultValue?: IValue): void;
|
|
24
24
|
|
|
25
25
|
declare function rewrite(method: IFunction): (target: IObject, key: string) => void;
|