Remove example data types
This commit is contained in:
parent
d872ee19d0
commit
f0594c63d5
|
@ -42,28 +42,14 @@
|
||||||
snippets: $snippets,
|
snippets: $snippets,
|
||||||
}) as any[]
|
}) as any[]
|
||||||
|
|
||||||
// Enrich bindings with evaluations and highlighted HTML
|
// Deeply set values for all readable bindings
|
||||||
const enrichedBindings: any[] = bindings.map((binding, idx) => {
|
const enrichedBindings: any[] = bindings.map((binding, idx) => {
|
||||||
return {
|
return {
|
||||||
...binding,
|
...binding,
|
||||||
value: bindingEvaluations[idx],
|
value: bindingEvaluations[idx],
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
let context = {}
|
||||||
let context = {
|
|
||||||
_dataTypes: {
|
|
||||||
date: new Date(),
|
|
||||||
string: "foo",
|
|
||||||
number: 1234,
|
|
||||||
undefined: undefined,
|
|
||||||
null: null,
|
|
||||||
true: true,
|
|
||||||
false: false,
|
|
||||||
array: [1, 2, 3],
|
|
||||||
object: { foo: "bar" },
|
|
||||||
error: new Error(),
|
|
||||||
},
|
|
||||||
}
|
|
||||||
for (let binding of enrichedBindings) {
|
for (let binding of enrichedBindings) {
|
||||||
Helpers.deepSet(context, binding.readableBinding, binding.value)
|
Helpers.deepSet(context, binding.readableBinding, binding.value)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue