+13
| import { Client as OSSClient } from 'oss-client'; | ||
| export { OSSClient }; | ||
| declare module 'egg' { | ||
| interface Application { | ||
| oss: { get(id: string): OSSClient } & OSSClient; | ||
| } | ||
| interface Context { | ||
| oss: Application['oss']; | ||
| } | ||
| } |
+6
-0
| 3.1.0 / 2022-12-04 | ||
| ================== | ||
| **features** | ||
| * [[`aabc2af`](http://github.com/eggjs/egg-oss/commit/aabc2af01cdbc50928edcdc9f6bc3818887d1772)] - 📦 NEW: Support d.ts (#16) (fengmk2 <<fengmk2@gmail.com>>) | ||
| 3.0.0 / 2022-10-27 | ||
@@ -3,0 +9,0 @@ ================== |
+9
-6
| { | ||
| "name": "egg-oss", | ||
| "version": "3.0.0", | ||
| "version": "3.1.0", | ||
| "description": "OSS plugin for egg", | ||
@@ -8,2 +8,3 @@ "eggPlugin": { | ||
| }, | ||
| "types": "index.d.ts", | ||
| "files": [ | ||
@@ -14,3 +15,4 @@ "app", | ||
| "lib", | ||
| "app.js" | ||
| "app.js", | ||
| "index.d.ts" | ||
| ], | ||
@@ -32,3 +34,4 @@ "keywords": [ | ||
| "eslint-config-egg": "^12.1.0", | ||
| "is-type-of": "^1.2.1" | ||
| "is-type-of": "^1.2.1", | ||
| "tsd": "^0.25.0" | ||
| }, | ||
@@ -40,7 +43,7 @@ "engines": { | ||
| "lint": "eslint .", | ||
| "test": "npm run lint -- --fix && npm run test-local", | ||
| "tsd": "tsd", | ||
| "test": "npm run lint -- --fix && npm run tsd && npm run test-local", | ||
| "test-local": "egg-bin test", | ||
| "cov": "egg-bin cov", | ||
| "pkgfiles": "egg-bin pkgfiles", | ||
| "ci": "egg-bin pkgfiles --check && npm run lint && npm run cov" | ||
| "ci": "npm run lint && npm run tsd && npm run cov" | ||
| }, | ||
@@ -47,0 +50,0 @@ "repository": { |
11585
4.53%10
11.11%70
16.67%7
16.67%