Skip to content

Commit

Permalink
feat(cli): improve the cli interface (#1591)
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwhite authored Oct 17, 2023
1 parent c70dcce commit fdbfc5c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cli/template/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,21 @@ interface File {
* 云函数调用入参
*/
interface FunctionContext {
/**
/**
* auth 对象解析自 JWT Token Payload
* @deprecated 用 user 替代
*/
auth?: {
uid?: string
}

/**
* user 对象解析自 JWT Token Payload
*/
user?: {
[key: string]: any
}

/**
* 上传到云函数的文件
*/
Expand Down Expand Up @@ -92,4 +100,4 @@ declare const global: typeof globalThis
/**
* 主函数,云函数的入口函数
*/
declare function main(ctx: FunctionContext): any
declare function main(ctx: FunctionContext): any

0 comments on commit fdbfc5c

Please sign in to comment.