a919968f9c
- Modified: - renaming the following constants in `lib/types/ui/editor/INodes`: - NODE_TYPE_CONSTANT = "node:data:constant"; - NODE_TYPE_DATA_TO_TOKEN = "node:logic:data-to-token"; - NODE_TYPE_FLOW_OPERATION = "node:logic:flow"; - NODE_TYPE_PLACE = "node:logic:place"; - NODE_TYPE_TOKEN_TO_DATA = "node:logic:token-to-data"; - NODE_TYPE_TRANSITION = "node:logic:transition"; - NODE_TYPE_VAR = "node:data:constant"; - NODE_TYPE_MODULE = "node:module"; - updating `TServiceGetPortsReturn` (adding `label` and removing `type`)and `IServiceEditPage` (remove `getPorts`) in `lib/types/ui/editor/IServiceEditPage` - relocating `IUiDefinition` to `lib/types/ui/helpers.interface` - influences `lib/ui/helpers.browser` and `lib/ui/helpers.nodejs` - fixing Link.bat
19 lines
645 B
TypeScript
19 lines
645 B
TypeScript
import { stringifyWithFunctions } from "../helpers/jsonMethods";
|
|
import { IGenericNopeModule, INopeModule } from "../types";
|
|
import { TRenderInstancePage } from "../types/ui";
|
|
|
|
/**
|
|
* Converts the convertInstanceRenderPage to a string, which could be
|
|
* store or something similar.
|
|
*
|
|
* @export
|
|
* @template I The Instance Type
|
|
* @param {(TRenderInstancePage<I & IGenericNopeModule>)} callback The callback to stringify.
|
|
* @return {string} The parsed String.
|
|
*/
|
|
export function convertInstanceRenderPage<I extends INopeModule>(
|
|
callback: TRenderInstancePage<I & IGenericNopeModule>
|
|
): string {
|
|
return stringifyWithFunctions(callback);
|
|
}
|