@leafer/decorator 1.0.0-alpha.1 → 1.0.0-alpha.6

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 CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@leafer/decorator",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.6",
4
4
  "description": "@leafer/decorator",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
7
7
  "main": "src/index.ts",
8
- "files": ["src"],
8
+ "files": [
9
+ "src"
10
+ ],
9
11
  "repository": {
10
12
  "type": "git",
11
13
  "url": "https://github.com/leaferjs/leafer.git"
@@ -17,10 +19,10 @@
17
19
  "leaferjs"
18
20
  ],
19
21
  "dependencies": {
20
- "@leafer/platform": "1.0.0-alpha.1",
21
- "@leafer/debug": "1.0.0-alpha.1"
22
+ "@leafer/platform": "1.0.0-alpha.6",
23
+ "@leafer/debug": "1.0.0-alpha.6"
22
24
  },
23
25
  "devDependencies": {
24
- "@leafer/interface": "1.0.0-alpha.1"
26
+ "@leafer/interface": "1.0.0-alpha.6"
25
27
  }
26
- }
28
+ }
package/src/data.ts CHANGED
@@ -157,7 +157,7 @@ export function sortType(defaultValue?: __Value) {
157
157
  // get
158
158
 
159
159
  export function dataProcessor(processor: IObject) {
160
- return (target: ILeaf, key: string) => {
160
+ return (target: ILeaf, _key: string) => {
161
161
  defineKey(target, '__DataProcessor', {
162
162
  get() { return processor }
163
163
  })
@@ -165,7 +165,7 @@ export function dataProcessor(processor: IObject) {
165
165
  }
166
166
 
167
167
  export function layoutProcessor(processor: IObject) {
168
- return (target: ILeaf, key: string) => {
168
+ return (target: ILeaf, _key: string) => {
169
169
  defineKey(target, '__LayoutProcessor', {
170
170
  get() { return processor }
171
171
  })
package/src/rewrite.ts CHANGED
@@ -22,7 +22,7 @@ export function rewrite(method: IFunction) {
22
22
  }
23
23
 
24
24
  export function rewriteAble() {
25
- return (target: IObject) => {
25
+ return (_target: IObject) => {
26
26
  doRewrite()
27
27
  }
28
28
  }