JSTQL-JS-Transform/output_testing/1117object-method-maybe-alias.js

20 lines
348 B
JavaScript
Raw Normal View History

import { createHookWrapper, setProperty } from "shared-runtime";
function useHook(props) {
const x = {
getX() {
return props;
}
};
const y = {
getY() {
return "y";
}
};
return x |> setProperty(%, y);
}
export const FIXTURE_ENTRYPOINT = {
fn: useHook |> createHookWrapper(%),
params: [{
value: 0
}]
};