Add demo CAD kernel Controller, and typing to suit
We might be adding JSCAD soon and adding some guidance on the happy path with good typing for the CadKernels is a good idea related to #411
This commit is contained in:
@@ -5,9 +5,10 @@ import {
|
||||
createUnhealthyResponse,
|
||||
timeoutErrorMessage,
|
||||
RenderArgs,
|
||||
DefaultKernelExport,
|
||||
} from './common'
|
||||
|
||||
export const render = async ({
|
||||
export const render: DefaultKernelExport['render'] = async ({
|
||||
code,
|
||||
settings: { quality = 'low' },
|
||||
}: RenderArgs) => {
|
||||
@@ -52,7 +53,7 @@ export const render = async ({
|
||||
}
|
||||
}
|
||||
|
||||
const openscad = {
|
||||
const openscad: DefaultKernelExport = {
|
||||
render,
|
||||
// more functions to come
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user