One opinion of the shell, which a host loads, leaves out or replaces (D-061).
const clock: KernlModule<'clock', { now(): number }> = { id: 'clock', setup: () => ({ api: { now: () => Date.now() } }),};const kernl = createKernl({ host, modules: [...kernlModules(), clock] });kernl.clock.now(); Copy
const clock: KernlModule<'clock', { now(): number }> = { id: 'clock', setup: () => ({ api: { now: () => Date.now() } }),};const kernl = createKernl({ host, modules: [...kernlModules(), clock] });kernl.clock.now();
Optional
Readonly
The kinds of question this module may put to the person through KernelContext.ask (D-067).
Ids of modules or kernel parts that must be loaded with this one.
One opinion of the shell, which a host loads, leaves out or replaces (D-061).
Example