Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Typing Issue with passwordPolicy validatorCallback

オープン 初心者向け
#10,471 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

@dalyaidan1 がすでに取り組んでいます。

2026年5月24日 から。

  • #10477 @dalyaidan1 による — オープン
  • #10528 @dblythy による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
javascript, typescript
領域
api, backend

調査の方向性

まず types/Options/index.d.ts の validatorCallback 宣言を確認し、次に spec/PasswordPolicy.spec.js での使用方法および src/RestWrite.js での callback の呼び出しと比較します。ドキュメントに記載された callback の使用方法で TypeScript エラーが発生しないように型定義を更新し、関連する password-policy のチェックが引き続きパスすることを確認してください。

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

説明

type:bug
New Issue Checklist
Issue Description

Incorrect passwordPolicy Option validatorCallback typing.

The typing of the validatorCallback is () => void right now.

The spec uses this as () => bool
The rest prototype uses this as (password: string) => bool

Steps to reproduce

Add a passwordPolicy validatorCallback with correct typing:

const validatePassword = (password: string): boolean => {
  console.log('Validating password security');
  return password === 'badpw' ? false : true;
};
Actual Outcome
Type '(password: string) => boolean' is not assignable to type '() => void'.
  Target signature provides too few arguments. Expected 1 or more, but got 0.ts(2322)
index.d.ts(229, 5): The expected type comes from property 'validatorCallback' which is declared here on type 'PasswordPolicyOptions'
Expected Outcome

No typescript error.

Environment

I am using 9.9.0, but this is also on the alpha branch at time of writing.

Server

  • Parse Server version: 9.9.0
  • Operating system: N/A
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): Local

Database

  • System (MongoDB or Postgres): N/A
  • Database version: N/A
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): N/A

Client

  • SDK (iOS, Android, JavaScript, PHP, Unity, etc): N/A
  • SDK version: N/A

Happy to fill those out more if you think it will be helpful!

Logs
主要言語
JavaScript
スター
21.4k
フォーク
4.8k
平均マージ
6時間 46分
マージ済み PR(30日)
79

環境構築

はじめの一歩

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

parse-community/parse-server のほかの issue

parse-community/parse-server の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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