JSTQL-JS-Transform/output_testing/1007object-shorthand-method-2.js

24 lines
302 B
JavaScript
Raw Normal View History

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