Home / File/ todo_type-annotations-props.ts — react Source File

todo_type-annotations-props.ts — react Source File

Architecture documentation for todo_type-annotations-props.ts, a typescript file in the react codebase.

Entity Profile

Relationship Graph

Source Code

// @enableUseTypeAnnotations
function useArray(items: Array<number>) {
  // With type information we know that the callback cannot escape
  // and does not need to be memoized, only the result needs to be
  // memoized:
  return items.filter(x => x !== 0);
}

export const FIXTURE_ENTRYPOINT = {
  fn: useArray,
  params: [[1, 0, 2, 0, 3, 0, 42]],
};

Subdomains

Functions

Frequently Asked Questions

What does todo_type-annotations-props.ts do?
todo_type-annotations-props.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 todo_type-annotations-props.ts?
todo_type-annotations-props.ts defines 1 function(s): useArray.
Where is todo_type-annotations-props.ts in the architecture?
todo_type-annotations-props.ts is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/type-annotations/todo_type-annotations-props.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