@jayfong/x-server 2.95.2 → 2.96.0

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.
@@ -193,6 +193,18 @@ class ApiGenerator {
193
193
  const comment = this.getComment(keySymbol);
194
194
  let isRequired = keySymbol ? !(keySymbol.getFlags() & _tsMorph.ts.SymbolFlags.Optional) : false;
195
195
 
196
+ // Decimal, Prisma 生成的
197
+ if (valueSymbolName === 'Decimal') {
198
+ return {
199
+ name: 'decimal',
200
+ desc: comment.description,
201
+ required: isRequired,
202
+ type: 'number',
203
+ enum: [],
204
+ children: []
205
+ };
206
+ }
207
+
196
208
  // WS
197
209
  if (valueSymbolName === 'SocketStream') {
198
210
  return {
@@ -188,6 +188,18 @@ export class ApiGenerator {
188
188
  const comment = this.getComment(keySymbol);
189
189
  let isRequired = keySymbol ? !(keySymbol.getFlags() & ts.SymbolFlags.Optional) : false;
190
190
 
191
+ // Decimal, Prisma 生成的
192
+ if (valueSymbolName === 'Decimal') {
193
+ return {
194
+ name: 'decimal',
195
+ desc: comment.description,
196
+ required: isRequired,
197
+ type: 'number',
198
+ enum: [],
199
+ children: []
200
+ };
201
+ }
202
+
191
203
  // WS
192
204
  if (valueSymbolName === 'SocketStream') {
193
205
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jayfong/x-server",
3
- "version": "2.95.2",
3
+ "version": "2.96.0",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "lib/_cjs/index.js",