JSTQL-JS-Transform/output_testing/1175object-method-shorthand-mutated-after.js

21 lines
No EOL
364 B
JavaScript

import { createHookWrapper, mutate, mutateAndReturn } from "shared-runtime";
function useHook({
value
}) {
const x = {
value
} |> mutateAndReturn(%);
const obj = {
getValue() {
return x;
}
};
obj |> mutate(%);
return obj;
}
export const FIXTURE_ENTRYPOINT = {
fn: useHook |> createHookWrapper(%),
params: [{
value: 0
}]
};