Skip to content

パッケージとして利用できるように修正#35

Draft
i-kaneko-abel wants to merge 1 commit intoc-3lab:mainfrom
i-kaneko-abel:feature/external-map-support
Draft

パッケージとして利用できるように修正#35
i-kaneko-abel wants to merge 1 commit intoc-3lab:mainfrom
i-kaneko-abel:feature/external-map-support

Conversation

@i-kaneko-abel
Copy link
Contributor

@i-kaneko-abel i-kaneko-abel commented Jan 29, 2024

主な修正点は以下。

  • 外部からパッケージとしてimportするための設定
  • パッケージとして利用する際に型エラーが発生するのでその解消
  • 環境変数がundifinedの可能性があり、型エラーが発生するのでその解消

ブランチ名変更に伴い過去のコメントは以下
#32

@Sheile Sheile marked this pull request as ready for review January 29, 2024 10:45

let html = '';
res.data.forEach((d) => {
res.data.forEach((d: any) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

anyでなく可能であれば型を定義することはできますでしょうか?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

上記修正致しました。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

anyに関しては上記だけではないと思いますので他の今回の変更箇所も対応いただければと思います。

if (!variable) return defaultValue
const value = parseFloat(variable)
if (Number.isNaN(value)) return defaultValue
return value
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

;がないようです。linter、formatterでこの辺りは引っ掛からないんでしたけ。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

上記修正致しました。
linter、formatterについては別途定例等で会話させてください。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

上記の対象(12行目)だけではないと思います。9~12行目全て;が抜けていると思います。

@i-kaneko-abel i-kaneko-abel force-pushed the feature/external-map-support branch from e7b2a79 to 024650d Compare January 30, 2024 10:23
@i-kaneko-abel i-kaneko-abel deleted the feature/external-map-support branch February 1, 2024 03:22
@i-kaneko-abel i-kaneko-abel restored the feature/external-map-support branch February 1, 2024 03:24
@i-kaneko-abel i-kaneko-abel reopened this Feb 1, 2024
@k-oizumi-abel k-oizumi-abel changed the base branch from main to feature/export-map-component February 2, 2024 09:21
@k-oizumi-abel k-oizumi-abel changed the base branch from feature/export-map-component to main February 2, 2024 09:29
@k-oizumi-abel k-oizumi-abel marked this pull request as draft February 2, 2024 09:29
@i-kaneko-abel i-kaneko-abel force-pushed the feature/external-map-support branch from 024650d to 924484e Compare February 5, 2024 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants