Home / File/ type-annotation-as-number.ts — react Source File

type-annotation-as-number.ts — react Source File

Architecture documentation for type-annotation-as-number.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
  670548c1_b911_350b_468e_3393a94f5733["type-annotation-as-number.ts"]
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  670548c1_b911_350b_468e_3393a94f5733 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style 670548c1_b911_350b_468e_3393a94f5733 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

function Component(props: {id: number}) {
  const x = identity(props.id);
  const y = x as number;
  return y;
}

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

Subdomains

Functions

Dependencies

  • shared-runtime

Frequently Asked Questions

What does type-annotation-as-number.ts do?
type-annotation-as-number.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 type-annotation-as-number.ts?
type-annotation-as-number.ts defines 1 function(s): Component.
What does type-annotation-as-number.ts depend on?
type-annotation-as-number.ts imports 1 module(s): shared-runtime.
Where is type-annotation-as-number.ts in the architecture?
type-annotation-as-number.ts is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/type-annotations/type-annotation-as-number.ts (domain: TestingUtilities, subdomain: Fixtures, 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