TS error: When I use position restyleFunctions

オープン
#267 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
react-native, typescript
領域
mobile

調査の方向性

Reproduce the reported composeRestyleFunctions snippet with @shopify/restyle 2.4.2, React Native 0.71.9, and TypeScript 4.8.4; the issue does not name a source file or test. Trace the type definitions used by spacing, layout, and position, and consider the work done when this example compiles without the reported TypeScript error.

索引モデルが issue の本文から書いたものです。

説明

bug

Current behavior

Hello, I got this error:
image

My code:

export type BaseIconProps = LayoutProps<Theme> & SpacingProps<Theme> & PositionProps<Theme>;
const restyleFunctions = composeRestyleFunctions<Theme, BaseIconProps>([spacing, layout, position]);

Expected behavior

No error:)

Platform:

  • iOS
  • Android

Environment

"react": "18.2.0",
"react-native": "0.71.9",
"@shopify/restyle": "^2.4.2",
"typescript": "~4.8.4"

主要言語
TypeScript
スター
3.4k
フォーク
154
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Shopify/restyle のほかの issue

Shopify/restyle の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。