Home / File/ types.js — react Source File

types.js — react Source File

Architecture documentation for types.js, a javascript file in the react codebase. 0 imports, 2 dependents.

Entity Profile

Dependency Diagram

graph LR
  a20e28a6_49e7_d981_96eb_f6f2ef1589af["types.js"]
  895b64ec_6219_126e_b7be_a2d6f2c8d780["resolveBoxStyle.js"]
  895b64ec_6219_126e_b7be_a2d6f2c8d780 --> a20e28a6_49e7_d981_96eb_f6f2ef1589af
  000d0fc2_7992_5e09_af69_667403fcc410["setupNativeStyleEditor.js"]
  000d0fc2_7992_5e09_af69_667403fcc410 --> a20e28a6_49e7_d981_96eb_f6f2ef1589af
  style a20e28a6_49e7_d981_96eb_f6f2ef1589af fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow
 */

export type BoxStyle = $ReadOnly<{
  bottom: number,
  left: number,
  right: number,
  top: number,
}>;

export type Layout = {
  x: number,
  y: number,
  width: number,
  height: number,
  left: number,
  top: number,
  margin: BoxStyle,
  padding: BoxStyle,
};

export type Style = Object;

export type StyleAndLayout = {
  id: number,
  style: Style | null,
  layout: Layout | null,
};

Domain

Frequently Asked Questions

What does types.js do?
types.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain.
What files import types.js?
types.js is imported by 2 file(s): resolveBoxStyle.js, setupNativeStyleEditor.js.
Where is types.js in the architecture?
types.js is located at packages/react-devtools-shared/src/backend/NativeStyleEditor/types.js (domain: BabelCompiler, directory: packages/react-devtools-shared/src/backend/NativeStyleEditor).

Analyze Your Own Codebase

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

Try Supermodel Free