attributes-to-props.d.ts
ํ์ผ์์ attributesToProps
ํจ์์ ๋ฐํ ์ ํ์ String
ํญ๋ชฉ์ด ์๋ Object
์
๋๋ค.
๊ทธ๋ฌ๋ attributesToProps
ํจ์์์ setStyleProp
๋ CSSInline
๋ฅผ StyleObject
๋ก ๋ณํํ๋ ํธ์ถ์
๋๋ค.
ํจ์์ ๋ฐํ์์ด๋ค StyleObject
๊ฐ ์๋ String
.
CSSProperty
๋ฅผ ์ป์ผ๋ ค๋ ๊ฒฝ์ฐ ์ด ์
๋ ฅ ์ค๋ฅ์ ๊ฒฐ๊ณผ๋ ์ค๋ฅ์
๋๋ค.
attributes-to-props.d.ts
์
๋ฐ์ดํธ:
export type Attributes = Record<string, string>;
export type Props = Record<string, string> & {
style: Record<string, string>;
};
์ด ๋ฌธ์ @EoleO๋ฅผ ๋ง๋ค์ด ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค. PR์ ์์ํ์๊ฒ ์ต๋๊น?
@EoleO ๋ฆฌ๋ทฐ #245
์๋ตํด ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค.
@EoleO ๋ฌผ๋ก ์ฌ์ ํ ๋ฌธ์ ๊ฐ ๋ฐ์ํ๋ฉด ์ธ์ ๋ ์ง ๋ค์ ์ฌ์ญ์์ค.