JSTQL-JS-Transform/output_testing/1001object-shorthand-method-1.js

21 lines
297 B
JavaScript
Raw Normal View History

import { createHookWrapper } from "shared-runtime";
function useHook({
a,
b
}) {
return {
x: function () {
return [a];
},
y() {
return [b];
}
};
}
export const FIXTURE_ENTRYPOINT = {
fn: useHook |> createHookWrapper(%),
params: [{
a: 1,
b: 2
}]
};