docs: finalized wiki integrity maintenance (v3.0 standard) - pruned 1400+ stubs and fixed 11k+ ghost links
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
---
|
||||
id: [[P-Reinforce]]-CAF879
|
||||
id: [[P-Reinforce|P-Reinforce]]-CAF879
|
||||
category: "10_Wiki/💡 Topics/Programming & Language"
|
||||
confidence_score: 0.95
|
||||
tags: []
|
||||
last_reinforced: 2026-04-20
|
||||
github_commit: "[P-Reinforce] Mega Batch 2 - Wikified [[as const]] Assertion"
|
||||
github_commit: "[P-Reinforce] Mega Batch 2 - Wikified [[as const|as const]] Assertion"
|
||||
---
|
||||
|
||||
# [[as const Assertion]]
|
||||
# [[as const Assertion|as const Assertion]]
|
||||
|
||||
## 📌 한 줄 통찰 (The Karpathy Summary)
|
||||
> `as const` Assertion은 TypeScript에서 값을 깊은 읽기 전용(deeply [[readonly]]) 상태로 만들고 타입을 해당 리터럴 값으로 좁히는(narrow) 기능입니다 [1]. 이를 통해 객체나 배열이 변경되지 않도록 컴파일 타임에 보장하며, 더 정확한 타입 추론을 가능하게 합니다 [1, 2]. 주로 절대 변경되어서는 안 되는 구성(configuration) 객체나 조회 테이블(lookup tables)을 정의할 때 유용하게 사용됩니다 [2].
|
||||
> `as const` Assertion은 TypeScript에서 값을 깊은 읽기 전용(deeply [[readonly|readonly]]) 상태로 만들고 타입을 해당 리터럴 값으로 좁히는(narrow) 기능입니다 [1]. 이를 통해 객체나 배열이 변경되지 않도록 컴파일 타임에 보장하며, 더 정확한 타입 추론을 가능하게 합니다 [1, 2]. 주로 절대 변경되어서는 안 되는 구성(configuration) 객체나 조회 테이블(lookup tables)을 정의할 때 유용하게 사용됩니다 [2].
|
||||
|
||||
## 📖 구조화된 지식 (Synthesized Content)
|
||||
- **깊은 읽기 전용 및 리터럴 타입 추론:** `as const` 단언은 변수의 타입을 넓은 범위의 원시 타입(예: `string`) 대신 가장 구체적인 리터럴 타입(예: 구체적인 문자열 값)으로 좁혀줍니다 [1]. 또한 객체나 배열의 모든 속성을 깊은 읽기 전용(`readonly`)으로 만들어, 값이 변경되는 것을 방지합니다 [1].
|
||||
@@ -22,7 +22,7 @@ github_commit: "[P-Reinforce] Mega Batch 2 - Wikified [[as const]] Assertion"
|
||||
- **정책 변화:** Programming & Language 카테고리의 전문성 확보 및 링크 밀도 최적화.
|
||||
|
||||
## 🔗 지식 연결 (Graph)
|
||||
- **Related Topics:** [[Readonly]], Literal Types, [[Satisfies [[Opera]]tor]]
|
||||
- **Related Topics:** [[Readonly 유틸리티 타입|Readonly]], Literal Types, Satisfies Operator
|
||||
- **Projects/Contexts:** Configuration Objects, Lookup Tables
|
||||
- **Contradictions/Notes:** 제공된 소스에서 `as const`에 대한 단독 설명은 다소 간략하며 정보가 부족한 편이지만, `satisfies` 연산자와 결합할 때 불변의 타입 안전 객체(immutable, type-safe objects)를 생성하는 핵심적인 역할을 한다는 점이 뚜렷하게 강조됩니다 [1-3].
|
||||
|
||||
|
||||
Reference in New Issue
Block a user