Skip to content

makeOptions

makeOptions<T>(opt): OptionFN<T>

Create a options object

Type parameters

Type parameter
T

Parameters

ParameterType
opt(k) => Partial<T>

Returns

OptionFN<T>

Example

const myOptions = k.makeOptions(k => (\{
pos: k.vec2(100, 100),
scale: 2,
\}));
const myObj = k.extendMaker(k.makeObject, myOptions, (comps, opt) => (\{
// ...
\});
## Source
global.d.ts:16