Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/todo-optional-call-chain-in-optional.ts
2026-08-27 21:09:14 +00:00

14 lines
302 B
TypeScript

function useFoo(props: {value: {x: string; y: string} | null}) {
const value = props.value;
return createArray(value?.x, value?.y)?.join(', ');
}
function createArray<T>(...args: Array<T>): Array<T> {
return args;
}
export const FIXTURE_ENTRYPONT = {
fn: useFoo,
props: [{value: null}],
};