diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-24 09:45:27 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-24 09:45:27 +0900 |
| commit | b679163d01b0152b38db658fe49d8a57c6aad930 (patch) | |
| tree | 9919cc598ed825c6841f47813010dac2d704614d /src/server/api/endpoints.ts | |
| parent | Update schemas.ts (diff) | |
| download | sharkey-b679163d01b0152b38db658fe49d8a57c6aad930.tar.gz sharkey-b679163d01b0152b38db658fe49d8a57c6aad930.tar.bz2 sharkey-b679163d01b0152b38db658fe49d8a57c6aad930.zip | |
Improve type definitions
Diffstat (limited to 'src/server/api/endpoints.ts')
| -rw-r--r-- | src/server/api/endpoints.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/api/endpoints.ts b/src/server/api/endpoints.ts index 2873dd3c1e..7abee95a51 100644 --- a/src/server/api/endpoints.ts +++ b/src/server/api/endpoints.ts @@ -1,6 +1,7 @@ import { Context } from 'cafy'; import * as path from 'path'; import * as glob from 'glob'; +import { Schema } from '../../prelude/schema'; export type Param = { validator: Context<any>; @@ -29,7 +30,7 @@ export interface IEndpointMeta { }; }; - res?: any; + res?: Schema; /** * このエンドポイントにリクエストするのにユーザー情報が必須か否か |