في الملف attributes-to-props.d.ts
أنواع الإرجاع للوظيفة attributesToProps
هي Object
مع String
العناصر.
ولكن في الدالة 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. هل ترغب في فتح علاقات عامة؟
EoleO يرجى مراجعة # 245
شكرا لاستجابتك
EoleO بالطبع ، لا تتردد في إعادة