TypeScript ๋ฒ์ : 2.2.1
์ต์ ๋ฒ์ 2.2.1์ typescript์ ํจ๊ป gulp typescript๋ฅผ ์ฌ์ฉํ๋ฉด ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค.
typescript/lib/lib.d.ts(163,15): error TS2304: Cannot find name 'object'.
typescript/lib/lib.d.ts(170,15): error TS2304: Cannot find name 'object'.
์์๋๋ ๋์ :
์ค๋ฅ์์ด ์ปดํ์ผ
์ค์ ํ๋ :
typescript/lib/lib.d.ts(163,15): error TS2304: Cannot find name 'object'.
typescript/lib/lib.d.ts(170,15): error TS2304: Cannot find name 'object'.
-> ์ค์ ์ด๋ฆ์ ๋ค์๊ณผ ๊ฐ์ด ๋ณ๊ฒฝํ๋ฉด (๊ฐ์ฒด๋ฅผ Object๋ก ๋ณ๊ฒฝ) ์ปดํ์ผ ์ค๋ฅ๊ฐ ํด๊ฒฐ๋ฉ๋๋ค.
create(o: Object | null): any;
/**
* Creates an object that has the specified prototype, and that optionally contains specified properties.
* <strong i="18">@param</strong> o Object to use as a prototype. May be null
* <strong i="19">@param</strong> properties JavaScript object that contains one or more property descriptors.
*/
create(o: Object | null, properties: PropertyDescriptorMap): any;
object
์ TS2.2์ ํค์๋์
๋๋ค. lib
์์ ์ป์ ๋ฒ์ ๊ณผ ๋ค๋ฅธ ๋ฒ์ ์ผ๋ก ์ปดํ์ผ ํ ์ ์์ต๋๊น?
๋ด ํจํค์ง json (dev ๋ฐ "normal"์ข
์์ฑ์ ์ด์ค ํญ๋ชฉ)์์ ์ผ๋ถ ์ค๋ฅ๋ฅผ ๋ฐ๊ฒฌํ์ต๋๋ค.-> ์์ ํ๊ณ ๋ชจ๋ ํจํค์ง๋ฅผ ๋ค์ ์ค์นํ์ต๋๋ค.-> ์ด์ ์๋ํ๋ ๊ฒ ๊ฐ์ต๋๋ค.
ํํธ ์ฃผ์
์ ๊ฐ์ฌํฉ๋๋ค
๐ ๊ฐ์ฌํฉ๋๋ค @ andy-ms
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
object
์ TS2.2์ ํค์๋์ ๋๋ค.lib
์์ ์ป์ ๋ฒ์ ๊ณผ ๋ค๋ฅธ ๋ฒ์ ์ผ๋ก ์ปดํ์ผ ํ ์ ์์ต๋๊น?