Home / File/ replace-object.ts — tailwindcss Source File

replace-object.ts — tailwindcss Source File

Architecture documentation for replace-object.ts, a typescript file in the tailwindcss codebase. 0 imports, 3 dependents.

File typescript Oxide PreProcessors 3 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  cb055289_b1a4_fdf0_beff_09232c521413["replace-object.ts"]
  fd9821c7_1a1a_545c_2d82_048fc3c3d870["migrate-arbitrary-variants.ts"]
  fd9821c7_1a1a_545c_2d82_048fc3c3d870 --> cb055289_b1a4_fdf0_beff_09232c521413
  5d3b10aa_da00_02c8_3f52_47b3ae3aa06e["migrate-modernize-arbitrary-values.ts"]
  5d3b10aa_da00_02c8_3f52_47b3ae3aa06e --> cb055289_b1a4_fdf0_beff_09232c521413
  f6c14bbb_2e42_58cc_18f1_c89a243da9c0["canonicalize-candidates.ts"]
  f6c14bbb_2e42_58cc_18f1_c89a243da9c0 --> cb055289_b1a4_fdf0_beff_09232c521413
  style cb055289_b1a4_fdf0_beff_09232c521413 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

export function replaceObject<T extends object, U extends object | null>(target: T, source: U): U {
  // Clear out the target object, otherwise inspecting the final object will
  // look very confusing.
  for (let key in target) delete target[key]

  return Object.assign(target, source)
}

Domain

Subdomains

Functions

Frequently Asked Questions

What does replace-object.ts do?
replace-object.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the Oxide domain, PreProcessors subdomain.
What functions are defined in replace-object.ts?
replace-object.ts defines 1 function(s): replaceObject.
What files import replace-object.ts?
replace-object.ts is imported by 3 file(s): canonicalize-candidates.ts, migrate-arbitrary-variants.ts, migrate-modernize-arbitrary-values.ts.
Where is replace-object.ts in the architecture?
replace-object.ts is located at packages/tailwindcss/src/utils/replace-object.ts (domain: Oxide, subdomain: PreProcessors, directory: packages/tailwindcss/src/utils).

Analyze Your Own Codebase

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

Try Supermodel Free