@nodescript/core
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -57,2 +57,3 @@ import { Graph } from '../model/graph.js'; | ||
description: '', | ||
keywords: [], | ||
deprecated: '', | ||
@@ -81,2 +82,3 @@ hidden: false, | ||
description: '', | ||
keywords: [], | ||
deprecated: '', | ||
@@ -83,0 +85,0 @@ hidden: true, |
@@ -18,2 +18,6 @@ import { Schema } from 'airtight'; | ||
description: { type: 'string' }, | ||
keywords: { | ||
type: 'array', | ||
items: { type: 'string' }, | ||
}, | ||
deprecated: { | ||
@@ -27,2 +31,6 @@ type: 'string', | ||
}, | ||
async: { | ||
type: 'boolean', | ||
optional: true | ||
}, | ||
params: { | ||
@@ -29,0 +37,0 @@ type: 'object', |
@@ -10,2 +10,3 @@ import { DataSchemaSpec } from './data.js'; | ||
description: string; | ||
keywords: string[]; | ||
deprecated?: string; | ||
@@ -15,2 +16,3 @@ hidden?: boolean; | ||
result: DataSchemaSpec; | ||
async?: boolean; | ||
}; |
@@ -12,4 +12,6 @@ import { GraphEvalContext } from './ctx.js'; | ||
params: ParamDefs<Params>; | ||
result: DataSchema<Result>; | ||
}; | ||
export declare type OperatorCompute<P, R> = (this: void, params: P, ctx: GraphEvalContext) => R | Promise<R>; | ||
result: Result extends Promise<infer R> ? DataSchema<R> : DataSchema<Result>; | ||
} & (Result extends Promise<any> ? { | ||
async: true; | ||
} : {}); | ||
export declare type OperatorCompute<P, R> = (this: void, params: P, ctx: GraphEvalContext) => R; |
{ | ||
"name": "@nodescript/core", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Visual programming language for Browser and Node", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
121569
2180