@oomol/types
v0.0.6
Published
Public Types for Oomol
Downloads
83
Keywords
Readme
@oomol/types
@oomol/types/oocana
from block code
import type { MainFunction } from "@oomol/types/oocana";
type Inputs = {
in: string;
};
type Outputs = {
out: string;
};
export const main: MainFunction<Inputs, Outputs> = ({ inputs, context }) => {
console.log("input", inputs.in);
return {
out: "output data",
};
};
@oomol/types/render
for block render
import type { NodeRenderer, RenderContext } from "@oomol/types/render";
const renderer: NodeRenderer = {
setup(dom: HTMLElement, context: RenderContext) {
return () => {
// dispose
};
},
};
export default renderer;