Home / File/ type-annotation-var-array_.flow.js — react Source File

type-annotation-var-array_.flow.js — react Source File

Architecture documentation for type-annotation-var-array_.flow.js, a javascript file in the react codebase. 1 imports, 0 dependents.

File javascript 1 imports

Entity Profile

Dependency Diagram

graph LR
  5736dae6_e474_58ae_857b_f51f6cffcf81["type-annotation-var-array_.flow.js"]
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  5736dae6_e474_58ae_857b_f51f6cffcf81 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style 5736dae6_e474_58ae_857b_f51f6cffcf81 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

// @flow @enableUseTypeAnnotations
import {identity} from 'shared-runtime';

function Component(props: {id: number}) {
  const x: Array<number> = makeArray(props.id);
  const y = x.at(0);
  return y;
}

function makeArray<T>(x: T): Array<T> {
  return [x];
}

export const FIXTURE_ENTRYPOINT = {
  fn: Component,
  params: [{id: 42}],
};

Dependencies

  • shared-runtime

Frequently Asked Questions

What does type-annotation-var-array_.flow.js do?
type-annotation-var-array_.flow.js is a source file in the react codebase, written in javascript.
What does type-annotation-var-array_.flow.js depend on?
type-annotation-var-array_.flow.js imports 1 module(s): shared-runtime.
Where is type-annotation-var-array_.flow.js in the architecture?
type-annotation-var-array_.flow.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/type-annotations/type-annotation-var-array_.flow.js (directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/type-annotations).

Analyze Your Own Codebase

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

Try Supermodel Free