@motiadev/core 0.5.5-beta.114-384584 → 0.5.6-beta.114
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.
|
@@ -14,6 +14,10 @@ const generateTypeFromSchema = (schema) => {
|
|
|
14
14
|
});
|
|
15
15
|
return props.length > 0 ? `{ ${props.join('; ')} }` : '{}';
|
|
16
16
|
}
|
|
17
|
+
else if (schema.type === 'object' && schema.additionalProperties) {
|
|
18
|
+
const propType = (0, exports.generateTypeFromSchema)(schema.additionalProperties);
|
|
19
|
+
return `Record<string, ${propType}>`;
|
|
20
|
+
}
|
|
17
21
|
if (schema.type === 'string') {
|
|
18
22
|
return schema.enum && schema.enum.length > 0 // must have at least one enum value
|
|
19
23
|
? schema.enum.map((value) => `'${value}'`).join(' | ')
|
|
@@ -12,7 +12,7 @@ const generateTypesString = (handlers, streams) => {
|
|
|
12
12
|
*
|
|
13
13
|
* Consider adding this file to .prettierignore and eslint ignore.
|
|
14
14
|
*/
|
|
15
|
-
import { EventHandler, ApiRouteHandler, ApiResponse,
|
|
15
|
+
import { EventHandler, ApiRouteHandler, ApiResponse, MotiaStream, CronHandler } from 'motia'
|
|
16
16
|
|
|
17
17
|
declare module 'motia' {
|
|
18
18
|
interface FlowContextStateStreams {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@motiadev/core",
|
|
3
3
|
"description": "Core functionality for the Motia framework, providing the foundation for building event-driven workflows.",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
|
-
"version": "0.5.
|
|
5
|
+
"version": "0.5.6-beta.114",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@amplitude/analytics-node": "^1.3.8",
|
|
8
8
|
"body-parser": "^1.20.3",
|