-
ใช้
namespaceในการจัดกลุ่มของinterface/typeเพื่อหลีกเลี่ยงชื่อซ้ำ ทำไม่ทำ -
import ด้วยวิธีนี้เสมอ
สไตล์การเขียนโค้ด
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
namespace ในการจัดกลุ่มของ interface / type เพื่อหลีกเลี่ยงชื่อซ้ำ
ทำ
export namespace ModuleNamespace {
export interface SampleInterface { ... }
export type SampleType = { ... }
}
export interface SampleInterface { ... }
export type SampleType = { ... }
import type { ModuleNamespace } from '<path-to-your-type>';