-
Notifications
You must be signed in to change notification settings - Fork 577
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9ad379
commit 5d28443
Showing
5 changed files
with
52 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './typings/egg'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "@midwayjs/definition", | ||
"version": "1.3.2", | ||
"description": "declare all midway dependencies by typescript definition", | ||
"scripts": { | ||
"lint": "../../node_modules/.bin/tslint --format prose -c ../../tslint.json *.ts", | ||
"test-local": "midway-bin test", | ||
"test": "npm run lint && midway-bin test", | ||
"ci": "npm run lint && midway-bin cov" | ||
}, | ||
"dependencies": { | ||
"egg": "^2.14.2", | ||
"egg-logger": "^2.3.1" | ||
}, | ||
"keywords": [ | ||
"midway", | ||
"typings", | ||
"definition" | ||
], | ||
"engines": { | ||
"node": ">= 8.0.0" | ||
}, | ||
"author": "Harry Chen <[email protected]>", | ||
"repository": { | ||
"type": "git", | ||
"url": "http://github.com/midwayjs/midway.git" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import * as egg from 'egg'; | ||
import * as eggLogger from 'egg-logger'; | ||
|
||
export declare namespace Egg { | ||
export interface Context extends egg.Context {} | ||
export interface IContextLocals extends egg.IContextLocals {} | ||
export type EggEnvType = egg.EggEnvType; | ||
export interface EggPlugin extends egg.EggPlugin {} | ||
export interface EggAppConfig extends egg.EggAppConfig {} | ||
export interface IApplicationLocals extends egg.IApplicationLocals {} | ||
export interface EggApplication extends egg.EggApplication {} | ||
export interface EggAppInfo extends egg.EggAppInfo {} | ||
export interface EggHttpClient extends egg.EggHttpClient {} | ||
export interface EggContextHttpClient extends egg.EggContextHttpClient {} | ||
export interface Request extends egg.Request {} | ||
export interface Response extends egg.Response {} | ||
export interface Router extends egg.Router {} | ||
export interface EggLoggerOptions extends eggLogger.EggLoggerOptions {} | ||
export type EggLoggerLevel = eggLogger.LoggerLevel; | ||
export interface EggLogger extends eggLogger.EggLogger {} | ||
export interface EggLoggers extends eggLogger.EggLoggers {} | ||
export interface EggContextLogger extends eggLogger.EggContextLogger {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters