create-faas-app 8.0.0-beta.27 → 8.0.0-beta.28

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/dist/index.mjs CHANGED
@@ -6,7 +6,7 @@ import { dirname, join } from "node:path";
6
6
  import { fileURLToPath } from "node:url";
7
7
  import enquirer from "enquirer";
8
8
  //#region package.json
9
- var version = "8.0.0-beta.26";
9
+ var version = "8.0.0-beta.27";
10
10
  //#endregion
11
11
  //#region src/action/index.ts
12
12
  const prompt = enquirer.prompt;
@@ -112,6 +112,8 @@ ${getTemplateNames().join(", ")}`)).option("--name <name>", "Project name").opti
112
112
  //#endregion
113
113
  //#region src/index.ts
114
114
  /**
115
+ * # create-faas-app
116
+ *
115
117
  * [![License: MIT](https://img.shields.io/npm/l/create-faas-app.svg)](https://github.com/faasjs/faasjs/blob/main/packages/create-faas-app/LICENSE)
116
118
  * [![NPM Version](https://img.shields.io/npm/v/create-faas-app.svg)](https://www.npmjs.com/package/create-faas-app)
117
119
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-faas-app",
3
- "version": "8.0.0-beta.27",
3
+ "version": "8.0.0-beta.28",
4
4
  "homepage": "https://faasjs.com/doc/create-faas-app",
5
5
  "bugs": {
6
6
  "url": "https://github.com/faasjs/faasjs/issues"
@@ -1,3 +1,20 @@
1
+ declare module '@faasjs/types' {
2
+ interface FaasActions {
3
+ '/pages/home/api/users/list': {
4
+ Params: { limit: number }
5
+ Data: { total?: number; users?: { id: number; name: string }[] }
6
+ }
7
+ '/pages/home/api/users/create': {
8
+ Params: { name?: string | undefined }
9
+ Data: { message?: string; total?: number; user?: { id: number; name: string } }
10
+ }
11
+ '/pages/home/api/auth/me': {
12
+ Params: Record<string, never>
13
+ Data: { current_user?: { id: number; name: string; role: string } }
14
+ }
15
+ }
16
+ }
17
+
1
18
  import { faas, useApp } from '@faasjs/ant-design'
2
19
  import { Button, Card, Input, Space, Table, Typography } from 'antd'
3
20
  import { useState } from 'react'
@@ -1,3 +1,12 @@
1
+ declare module '@faasjs/types' {
2
+ interface FaasActions {
3
+ '/pages/home/api/hello': {
4
+ Params: { name?: string | undefined }
5
+ Data: { message?: string }
6
+ }
7
+ }
8
+ }
9
+
1
10
  import { useState } from 'react'
2
11
 
3
12
  import { faas } from '../../react-client'