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 OxideEngine PreProcessors 3 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  de65aaee_2caa_4757_c9fa_c7fb4bc23fc0["replace-object.ts"]
  dfcf938d_abe9_684f_720a_29a0a1797759["migrate-arbitrary-variants.ts"]
  dfcf938d_abe9_684f_720a_29a0a1797759 --> de65aaee_2caa_4757_c9fa_c7fb4bc23fc0
  01bf11c3_0faa_9a23_ba13_a455d9c3e825["migrate-modernize-arbitrary-values.ts"]
  01bf11c3_0faa_9a23_ba13_a455d9c3e825 --> de65aaee_2caa_4757_c9fa_c7fb4bc23fc0
  7d350d81_5de1_f9f3_5b2c_19ec8fd3c37e["canonicalize-candidates.ts"]
  7d350d81_5de1_f9f3_5b2c_19ec8fd3c37e --> de65aaee_2caa_4757_c9fa_c7fb4bc23fc0
  style de65aaee_2caa_4757_c9fa_c7fb4bc23fc0 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 OxideEngine 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: OxideEngine, 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