@nodescript/core
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -39,3 +39,3 @@ import * as t from '../types/index.js'; | ||
*/ | ||
getTargetSchema(): t.DataSchema; | ||
getTargetSchema(): t.DataSchemaSpec; | ||
} |
import { GraphEvalContext } from './ctx.js'; | ||
import { DataSchema } from './data.js'; | ||
export declare type NodeMetadata = { | ||
label: string; | ||
description: string; | ||
deprecated: string; | ||
hidden: boolean; | ||
params: Record<string, ParamMetadata>; | ||
result: DataSchema<any>; | ||
}; | ||
import { NodeMetadata } from './metadata.js'; | ||
export declare type NodeDef = { | ||
@@ -48,13 +41,1 @@ metadata: NodeMetadata; | ||
}; | ||
export declare type ParamMetadata = { | ||
kind?: 'lambda'; | ||
schema: DataSchema; | ||
scope?: Record<string, DataSchema>; | ||
default?: string; | ||
label?: string; | ||
addItemLabel?: string; | ||
removeItemLabel?: string; | ||
keyPlaceholder?: string; | ||
valuePlaceholder?: string; | ||
hideEntries?: boolean; | ||
}; |
@@ -7,3 +7,4 @@ export * from './ctx.js'; | ||
export * from './loader.js'; | ||
export * from './metadata.js'; | ||
export * from './model.js'; | ||
export * from './node-result.js'; |
@@ -8,4 +8,5 @@ // This file is auto-generated | ||
export * from './loader.js'; | ||
export * from './metadata.js'; | ||
export * from './model.js'; | ||
export * from './node-result.js'; | ||
//# sourceMappingURL=index.js.map |
import { DeepPartial } from './deep-partial.js'; | ||
import { NodeMetadata } from './defs.js'; | ||
import { NodeMetadata } from './metadata.js'; | ||
export interface Graph { | ||
@@ -4,0 +4,0 @@ metadata: NodeMetadata; |
@@ -1,6 +0,6 @@ | ||
import { DataSchema, DataType } from '../types/data.js'; | ||
import { DataSchemaSpec, DataType } from '../types/data.js'; | ||
export declare function parseAny(str: string): any; | ||
export declare function getType(data: unknown): DataType; | ||
export declare function checkType(data: unknown, allowedTypes: DataType | DataType[]): void; | ||
export declare function isSchemaCompatible(desiredSchema: DataSchema<unknown>, actualSchema: DataSchema<unknown>): boolean; | ||
export declare function isSchemaCompatible(desiredSchema: DataSchemaSpec, actualSchema: DataSchemaSpec): boolean; | ||
export declare class InvalidTypeError extends Error { | ||
@@ -7,0 +7,0 @@ name: string; |
{ | ||
"name": "@nodescript/core", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"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
Sorry, the diff of this file is not supported yet
117475
128
2107