Home / File/ optional-call-chain-in-ternary.ts — react Source File

optional-call-chain-in-ternary.ts — react Source File

Architecture documentation for optional-call-chain-in-ternary.ts, a typescript file in the react codebase. 1 imports, 0 dependents.

File typescript TestingUtilities Fixtures 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  c1476238_ce6d_f339_8725_9ce470bf8602["optional-call-chain-in-ternary.ts"]
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  c1476238_ce6d_f339_8725_9ce470bf8602 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style c1476238_ce6d_f339_8725_9ce470bf8602 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {useNoAlias} from 'shared-runtime';

function useFoo(props: {value: {x: string; y: string} | null}) {
  const value = props.value;
  return useNoAlias(value?.x, value?.y) ? {} : null;
}

export const FIXTURE_ENTRYPONT = {
  fn: useFoo,
  props: [{value: null}],
};

Subdomains

Functions

Dependencies

  • shared-runtime

Frequently Asked Questions

What does optional-call-chain-in-ternary.ts do?
optional-call-chain-in-ternary.ts is a source file in the react codebase, written in typescript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in optional-call-chain-in-ternary.ts?
optional-call-chain-in-ternary.ts defines 1 function(s): useFoo.
What does optional-call-chain-in-ternary.ts depend on?
optional-call-chain-in-ternary.ts imports 1 module(s): shared-runtime.
Where is optional-call-chain-in-ternary.ts in the architecture?
optional-call-chain-in-ternary.ts is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/optional-call-chain-in-ternary.ts (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free