Method declaration
Host to method declaration
import {Host} from "atomico";
type MyMethod = (value: number)=>void;
function component():Host<{myMethod: MyMethod }>{
const myMethod: MyMethod = ()=>{}
return <host myMethod={myMethod }/>
}Last updated
Was this helpful?
