Exporting Typescript types

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

メンテナーはふだん 2 日以内に返信

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
nodejs, typescript

調査の方向性

まずパッケージのエントリーポイントと公開パッケージの設定を確認し、examples/prisma_example/README.md に示されている import と比較します。TypeScript のコンシューマーが dist に入り込まずにラッパーを import できること、また公開パッケージが型定義を公開していることを確認します。TypeScript コンシューマーのテストまたは再現手順で結果を確認できるはずです。

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

説明

bug
Describe the bug

Trying to use this project in a typescript project. But it doesn't appear to have exported types, so right now it can't be imported into the project...

Expected Behavior

Types included in the exported package

What plugins are used? What other connection properties were set?

N/A

Current Behavior

No type definitions exported.

You can also tell that that this isn't working quite right in the examples importing in this fashion:

import { AwsPGClient } from "aws-advanced-nodejs-wrapper/dist/pg/lib/index.js";
Reproduction Steps

Install in a Typescript project and try to import the wrapper

Possible Solution

No response

Additional Information/Context

No response

The AWS Advanced NodeJs Wrapper version used

N/A

Node version used

22

Operating System and version

macOS

主要言語
TypeScript
スター
38
フォーク
17
平均マージ
3日 11時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

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

aws/aws-advanced-nodejs-wrapper のほかの issue

aws/aws-advanced-nodejs-wrapper の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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