πŸ“šΒ Reference


πŸ“œΒ Chapter


Module

.d.ts


declare const global = 'sth';

μ „μ—­ λ³€μˆ˜μ™€ μ „μ—­ ν•¨μˆ˜μ— λŒ€ν•œ νƒ€μž… μ„ μ–Έ


// μ „μ—­ λ³€μˆ˜
declare const pi = 3.14;

// μ „μ—­ ν•¨μˆ˜
declare namespace myLib {
  function greet(person: string): string;
  let name: string;
}
myLib.greet('μΊ‘ν‹΄');
myLib.name = 'νƒ€λ…ΈμŠ€';