We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cssVariables
ui-react/src/utils/styles.ts
Lines 7 to 19 in 609190f
위 부분에서 v의 타입을 정확히 정의하기 위해서는 (MakeKebabCase<T> 같은 타입을 만든 후) `var(--solvedac-${MakeKebabCase<P>}-${string})`와 같이 정의되어야 합니다.
MakeKebabCase<T>
`var(--solvedac-${MakeKebabCase<P>}-${string})`
그 이유는 다음과 같습니다.
Lines 29 to 31 in 609190f
v는 위 코드에 의해 결정되고, 각 값은 vars 오브젝트의 키 k에 대해 `var(${vars[k]})`입니다.
v
vars
k
`var(${vars[k]})`
Lines 22 to 27 in 609190f
vars는 위 코드에 의해 결정되고, 각 값은 names 배열의 원소 name에 대해 `--solvedac-${toCssName(prefix)}-${toCssName(name)}`입니다.
names
name
`--solvedac-${toCssName(prefix)}-${toCssName(name)}`
Lines 4 to 5 in 609190f
toCssName은 위 코드와 같이 정의되고, 사이사이에 낀 알파벳 대문자를 소문자로 바꾸는 역할을 합니다.
toCssName
따라서, toCssName(prefix)의 타입은 P라고 볼 수 없습니다. 반례로 P = 'exampleValue', name = string일 때 실제 값은 --solvedac-example-value-${string}일 것입니다.
toCssName(prefix)
P
P = 'exampleValue'
name = string
--solvedac-example-value-${string}
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
ui-react/src/utils/styles.ts
Lines 7 to 19 in 609190f
위 부분에서 v의 타입을 정확히 정의하기 위해서는 (
MakeKebabCase<T>
같은 타입을 만든 후)`var(--solvedac-${MakeKebabCase<P>}-${string})`
와 같이 정의되어야 합니다.그 이유는 다음과 같습니다.
ui-react/src/utils/styles.ts
Lines 29 to 31 in 609190f
v
는 위 코드에 의해 결정되고, 각 값은vars
오브젝트의 키k
에 대해`var(${vars[k]})`
입니다.ui-react/src/utils/styles.ts
Lines 22 to 27 in 609190f
vars
는 위 코드에 의해 결정되고, 각 값은names
배열의 원소name
에 대해`--solvedac-${toCssName(prefix)}-${toCssName(name)}`
입니다.ui-react/src/utils/styles.ts
Lines 4 to 5 in 609190f
toCssName
은 위 코드와 같이 정의되고, 사이사이에 낀 알파벳 대문자를 소문자로 바꾸는 역할을 합니다.따라서,
toCssName(prefix)
의 타입은P
라고 볼 수 없습니다.반례로
P = 'exampleValue'
,name = string
일 때 실제 값은--solvedac-example-value-${string}
일 것입니다.The text was updated successfully, but these errors were encountered: